.zm-editor{--zm-bg:#10131b;--zm-side:#1a1f2b;--zm-accent:#b59cff;color:#f7f7fc;background:var(--zm-bg);border-radius:18px;overflow:hidden;font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;box-shadow:0 16px 45px #0003}.zm-editor *{box-sizing:border-box}.zm-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #343a49;gap:12px}.zm-head strong{letter-spacing:2px;font-size:17px}.zm-head span{display:block;font-size:10px;letter-spacing:3px;color:var(--zm-accent)}.zm-head-actions{display:flex;gap:8px}.zm-editor button,.zm-editor select,.zm-editor input[type=text]{font:inherit;border:1px solid #434a5c;border-radius:8px;background:#2a3040;color:#fff;padding:9px 12px;cursor:pointer}.zm-editor button:hover{border-color:var(--zm-accent)}.zm-editor button:disabled{opacity:.5;cursor:wait}.zm-editor .zm-primary,.zm-editor .zm-upload,.zm-editor .zm-ai{background:#7554d5;color:#fff;border-color:#7554d5}.zm-body{display:grid;grid-template-columns:minmax(250px,295px) minmax(0,1fr);min-height:610px}.zm-panel{background:var(--zm-side);padding:20px;max-height:780px;overflow-y:auto}.zm-panel h3{font-size:12px;text-transform:uppercase;letter-spacing:1.3px;margin:22px 0 12px;color:#d5caff}.zm-panel label:not(.zm-upload){display:block;margin:10px 0;color:#e3e5ed}.zm-panel input[type=range]{display:block;width:100%;accent-color:#a78bfa;margin:7px 0}.zm-panel output{float:right;color:#bda9ff}.zm-upload{display:block;text-align:center;border-radius:9px;padding:12px;cursor:pointer;font-weight:700}.zm-small{color:#a9afc1;font-size:11px;margin:9px 0}.zm-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}.zm-panel input[type=text],.zm-panel select,.zm-ai{width:100%}.zm-ai{margin-top:4px}.zm-stage{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;background:radial-gradient(circle,#262b3b 0,#10131b 75%);gap:15px}.zm-placeholder{text-align:center;color:#c3c8d7}.zm-placeholder span{font-size:48px;color:#ae90ff}.zm-placeholder h2{color:#fff;font-size:21px;margin:10px 0}.zm-stage canvas{display:block;max-width:100%;max-height:600px;width:auto;height:auto;object-fit:contain;box-shadow:0 12px 45px #0008}.zm-stage canvas[hidden],.zm-placeholder[hidden]{display:none}.zm-status{color:#bec4d2;text-align:center;font-size:12px;margin:0}@media(max-width:720px){.zm-body{grid-template-columns:1fr}.zm-panel{max-height:none}.zm-stage{min-height:320px;padding:15px}.zm-head{padding:12px;flex-wrap:wrap}.zm-head-actions button{padding:8px}.zm-stage canvas{max-height:480px}}

/* v1.3: three-column desktop workspace, mobile canvas-first */
.zm-editor .zm-body{display:grid;grid-template-columns:minmax(235px,300px) minmax(300px,1fr) minmax(245px,310px);gap:12px;align-items:stretch;min-height:0}
.zm-editor .zm-panel{min-width:0;max-height:calc(100vh - 155px);overflow:auto;scrollbar-width:thin}
.zm-editor .zm-stage{min-width:0;min-height:430px;max-height:calc(100vh - 155px);display:flex;flex-direction:column;justify-content:center;align-items:center}
.zm-editor canvas{max-width:100%;max-height:calc(100vh - 225px);width:auto;height:auto;object-fit:contain}
.zm-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:195px;overflow:auto}
.zm-preset-tile{min-width:0;white-space:normal;font-size:11px;min-height:40px;background:#252d40;color:#fff;border:1px solid #3a455c;border-radius:6px;cursor:pointer}
.zm-preset-tile.is-active{border-color:#9c6bff;box-shadow:inset 0 0 0 1px #9c6bff}
@media(max-width:850px){.zm-editor .zm-body{display:flex;flex-direction:column}.zm-editor .zm-stage{order:-1;position:sticky;top:0;z-index:2;min-height:230px;max-height:42vh;background:#111725}.zm-editor canvas{max-height:34vh}.zm-editor .zm-panel{max-height:none;overflow:visible}.zm-preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v1.4 workspace layout: contained viewport, three-column desktop, mobile tab workspace */
.zm-editor{--zm-bg:#0b101c;--zm-side:#101827;--zm-accent:#8855ff;background:var(--zm-bg);border:1px solid #303b54;border-radius:16px;isolation:isolate}
.zm-editor .zm-head{background:#0c1422;padding:12px 18px;min-height:65px;gap:14px}
.zm-editor .zm-head strong{font-size:19px;letter-spacing:2px}.zm-editor .zm-head span{color:#ae85ff}
.zm-editor .zm-head-actions{align-items:center;flex-wrap:wrap}.zm-top-upload{display:inline-flex;align-items:center;justify-content:center;background:#7943ed;border-radius:8px;padding:10px 15px;font-weight:700;cursor:pointer;color:#fff}
.zm-editor .zm-body{grid-template-columns:minmax(220px,26%) minmax(0,1fr) minmax(230px,27%);gap:8px;padding:8px;height:min(760px,calc(100dvh - 130px));min-height:510px;overflow:hidden}
.zm-editor .zm-panel{max-height:none;height:100%;overflow-y:auto;overscroll-behavior:contain;background:#111827;border:1px solid #2d3850;border-radius:11px;padding:16px;scrollbar-color:#48516a transparent}
.zm-editor .zm-panel h3{margin:17px 0 9px;color:#b7c2df;font-size:11px;letter-spacing:1.2px}.zm-editor .zm-panel h3:first-of-type{margin-top:10px}
.zm-editor .zm-stage{height:100%;max-height:none;min-height:0;border:1px solid #2d3850;border-radius:11px;padding:14px;gap:10px;background:radial-gradient(circle at 50% 40%,#202c40,#0b111d 80%)}
.zm-editor .zm-stage canvas{max-height:calc(100% - 80px);max-width:100%;object-fit:contain;border-radius:5px}.zm-stage-label,.zm-right-heading{font-size:10px;letter-spacing:1.6px;font-weight:750;color:#acb8d0;align-self:flex-start}.zm-zoom-note{font-size:10px;color:#8290ab}
.zm-editor .zm-primary,.zm-editor .zm-ai,.zm-editor .zm-upload{background:linear-gradient(115deg,#8051ec,#6531e7);border-color:#8855ff}.zm-editor button:focus-visible,.zm-editor input:focus-visible,.zm-editor select:focus-visible,.zm-top-upload:focus-within{outline:2px solid #d1baff;outline-offset:2px}
.zm-editor .zm-preset-grid{max-height:170px}.zm-editor .zm-preset-tile{background:#202a3c}.zm-editor .zm-right-panel [data-action=order]{width:100%;padding:13px 10px;font-weight:700}.zm-mobile-tabs{display:none}
@media(max-width:1050px) and (min-width:761px){.zm-editor .zm-body{grid-template-columns:minmax(190px,25%) minmax(0,1fr) minmax(205px,27%)}.zm-editor .zm-panel{padding:11px}.zm-editor .zm-head{padding:10px}}
@media(max-width:760px){.zm-editor{border-radius:12px}.zm-editor .zm-head{padding:10px;min-height:60px}.zm-editor .zm-head strong{font-size:15px}.zm-editor .zm-head-actions{gap:5px}.zm-editor .zm-head-actions button,.zm-top-upload{font-size:11px;padding:7px 8px}.zm-editor .zm-body{display:block;height:min(73dvh,740px);min-height:420px;padding:7px;overflow:hidden}.zm-editor .zm-stage,.zm-editor .zm-panel{height:100%;max-height:none;min-height:0;overflow-y:auto;position:static;display:none;order:initial}.zm-editor[data-active-tab=photo] .zm-stage,.zm-editor[data-active-tab=tools] .zm-tools-panel,.zm-editor[data-active-tab=order] .zm-right-panel{display:flex}.zm-editor[data-active-tab=tools] .zm-tools-panel,.zm-editor[data-active-tab=order] .zm-right-panel{display:block}.zm-editor .zm-stage canvas{max-height:calc(100% - 75px)}.zm-mobile-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:8px 8px 0;background:#0b101c}.zm-mobile-tabs button{font-size:12px;padding:9px 3px;background:#20283a}.zm-mobile-tabs button.is-active{background:#7644e5;border-color:#a487ff}.zm-editor .zm-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:unset}.zm-editor .zm-stage{padding:9px}}

/* v1.5: fullscreen workspace ONLY on pages containing editor shortcode */
body.zm-ai-fullscreen-page{margin:0!important;overflow:hidden!important}
body.zm-ai-fullscreen-page .zm-editor{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;z-index:99990!important;display:flex!important;flex-direction:column!important;box-shadow:none!important}
body.zm-ai-fullscreen-page.admin-bar .zm-editor{top:32px!important;height:calc(100dvh - 32px)!important}
body.zm-ai-fullscreen-page .zm-editor .zm-body{height:auto!important;min-height:0!important;flex:1 1 auto!important}
body.zm-ai-fullscreen-page .zm-editor .zm-panel,body.zm-ai-fullscreen-page .zm-editor .zm-stage{min-height:0!important}
body.zm-ai-fullscreen-page .zm-editor .zm-stage canvas{max-height:calc(100% - 75px)!important}
.zm-brand{display:flex;flex-direction:column;align-items:flex-start}.zm-editor .zm-back-link{font-size:11px;letter-spacing:0;color:#c6b6ff;text-decoration:none;margin-top:2px}.zm-editor .zm-back-link:hover{text-decoration:underline;color:white}
@media(max-width:782px){body.zm-ai-fullscreen-page.admin-bar .zm-editor{top:46px!important;height:calc(100dvh - 46px)!important}}
@media(max-width:760px){body.zm-ai-fullscreen-page .zm-editor .zm-body{height:auto!important;flex:1 1 auto!important;min-height:0!important}body.zm-ai-fullscreen-page .zm-editor .zm-mobile-tabs{flex:none}body.zm-ai-fullscreen-page .zm-editor .zm-head{flex:none}body.zm-ai-fullscreen-page .zm-editor .zm-stage{min-height:0!important}body.zm-ai-fullscreen-page .zm-editor .zm-head-actions{justify-content:flex-end}}

/* v1.6: fixed three-column layout, no internal scrolling on desktop */
@media (min-width: 761px) {
 body.zm-ai-fullscreen-page .zm-editor .zm-body {grid-template-columns:minmax(205px,22%) minmax(0,56%) minmax(205px,22%);gap:5px;padding:5px;overflow:hidden;}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel {overflow:hidden!important;padding:clamp(7px,1vh,13px);scrollbar-width:none;}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage {padding:8px;overflow:hidden;}
 body.zm-ai-fullscreen-page .zm-editor .zm-head {min-height:52px;padding:5px 13px;}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel h3 {margin:9px 0 5px;font-size:10px;}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel label:not(.zm-upload) {margin:5px 0;font-size:12px;}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel input[type=range] {margin:3px 0;}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel .zm-small {font-size:10px;line-height:1.3;margin:5px 0;}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel button,body.zm-ai-fullscreen-page .zm-editor .zm-panel select,body.zm-ai-fullscreen-page .zm-editor .zm-panel input[type=text] {padding:7px;font-size:12px;}
 body.zm-ai-fullscreen-page .zm-editor .zm-preset-grid {max-height:min(48vh,340px);overflow:hidden;grid-template-columns:repeat(2,minmax(0,1fr));}
 body.zm-ai-fullscreen-page .zm-editor .zm-preset-tile {min-height:29px;font-size:10px;padding:3px;}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage canvas {max-height:calc(100% - 55px)!important;}
}
.zm-tool-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:10px 0;}
.zm-editor .zm-tool-tabs button{padding:6px 2px;font-size:11px;background:#222b3c;}
.zm-editor .zm-tool-tabs button.is-active{background:#7543e9;border-color:#ad91ff;}
.zm-tool-section{display:none;min-height:0;}.zm-tool-section.is-active{display:block;}
@media(max-width:760px){.zm-tool-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.zm-editor .zm-tool-tabs button{font-size:10px;padding:7px 1px}}

/* v1.7 all tools visible and compact */
@media(min-width:761px){
body.zm-ai-fullscreen-page .zm-editor .zm-body{grid-template-columns:minmax(245px,24%) minmax(0,52%) minmax(225px,24%);gap:4px;padding:4px;min-height:0}
body.zm-ai-fullscreen-page .zm-editor .zm-panel{padding:6px 9px!important;overflow:hidden!important;font-size:11px;line-height:1.18}
body.zm-ai-fullscreen-page .zm-editor .zm-head{min-height:43px;padding:3px 10px}
body.zm-ai-fullscreen-page .zm-editor .zm-panel h3{margin:6px 0 3px!important;font-size:9px;line-height:1.1}
body.zm-ai-fullscreen-page .zm-editor .zm-panel label:not(.zm-upload){margin:3px 0!important;font-size:10px;line-height:1.15}
body.zm-ai-fullscreen-page .zm-editor .zm-panel input[type=range]{margin:1px 0 3px!important;height:12px}
body.zm-ai-fullscreen-page .zm-editor .zm-panel button,body.zm-ai-fullscreen-page .zm-editor .zm-panel select,body.zm-ai-fullscreen-page .zm-editor .zm-panel input[type=text]{font-size:10px!important;padding:4px 5px!important;min-height:23px;line-height:1.1}
body.zm-ai-fullscreen-page .zm-editor .zm-upload{font-size:10px;padding:5px!important;line-height:1.15}
body.zm-ai-fullscreen-page .zm-editor .zm-panel .zm-small{font-size:9px!important;line-height:1.13!important;margin:3px 0!important}
body.zm-ai-fullscreen-page .zm-editor .zm-buttons{gap:3px}
body.zm-ai-fullscreen-page .zm-editor .zm-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;max-height:none!important;overflow:hidden!important}
body.zm-ai-fullscreen-page .zm-editor .zm-preset-tile{min-height:20px!important;font-size:9px!important;padding:2px!important}
body.zm-ai-fullscreen-page .zm-editor .zm-tool-section{display:block!important;min-height:0}
body.zm-ai-fullscreen-page .zm-editor .zm-tool-tabs{display:none!important}
body.zm-ai-fullscreen-page .zm-editor .zm-stage{padding:5px;gap:4px}
body.zm-ai-fullscreen-page .zm-editor .zm-stage canvas{max-height:calc(100% - 42px)!important}
}

/* v1.8 touchscreen: same three-column workspace across all viewport widths. */
@media (max-width: 760px), (pointer: coarse) {
 body.zm-ai-fullscreen-page .zm-editor .zm-mobile-tabs {display:none!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-body {
   display:grid!important;grid-template-columns:minmax(0,24%) minmax(0,52%) minmax(0,24%)!important;
   gap:3px!important;padding:3px!important;height:auto!important;min-height:0!important;
   flex:1 1 auto!important;overflow:hidden!important;align-items:stretch!important;
 }
 body.zm-ai-fullscreen-page .zm-editor .zm-panel,
 body.zm-ai-fullscreen-page .zm-editor .zm-stage {
   display:flex!important;flex-direction:column!important;position:static!important;order:initial!important;
   height:100%!important;max-height:none!important;min-height:0!important;min-width:0!important;
   overflow:hidden!important;padding:4px!important;gap:2px!important;border-radius:5px!important;
 }
 body.zm-ai-fullscreen-page .zm-editor .zm-panel {display:block!important;font-size:clamp(7px,1.05vw,11px)!important;line-height:1.12!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel h3 {font-size:clamp(7px,.9vw,10px)!important;margin:4px 0 2px!important;letter-spacing:0!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel label:not(.zm-upload) {font-size:inherit!important;margin:2px 0!important;line-height:1.12!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel button,
 body.zm-ai-fullscreen-page .zm-editor .zm-panel select,
 body.zm-ai-fullscreen-page .zm-editor .zm-panel input[type=text],
 body.zm-ai-fullscreen-page .zm-editor .zm-upload {
   font-size:inherit!important;min-height:22px!important;padding:3px 2px!important;line-height:1.1!important;
   border-radius:4px!important;overflow-wrap:anywhere;
 }
 body.zm-ai-fullscreen-page .zm-editor .zm-panel input[type=range] {height:15px!important;margin:0 0 2px!important;touch-action:pan-x}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel .zm-small {font-size:clamp(6px,.8vw,9px)!important;margin:2px 0!important;line-height:1.1!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-preset-grid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2px!important;max-height:none!important;overflow:hidden!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-preset-tile {font-size:inherit!important;min-height:20px!important;padding:2px 0!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-tool-section {display:block!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-tool-tabs {display:none!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head {min-height:34px!important;padding:3px 5px!important;flex-wrap:nowrap!important;gap:3px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head strong {font-size:clamp(10px,1.7vw,16px)!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head span {font-size:clamp(7px,1vw,10px)!important;letter-spacing:1px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head-actions {flex-wrap:nowrap!important;gap:3px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head-actions button,
 body.zm-ai-fullscreen-page .zm-editor .zm-top-upload {font-size:clamp(7px,1vw,11px)!important;padding:4px!important;white-space:nowrap}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage canvas {max-width:100%!important;max-height:calc(100% - 32px)!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage-label,
 body.zm-ai-fullscreen-page .zm-editor .zm-zoom-note,
 body.zm-ai-fullscreen-page .zm-editor .zm-status {font-size:clamp(7px,.85vw,10px)!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-placeholder h2 {font-size:clamp(10px,1.4vw,18px)!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-placeholder p {font-size:clamp(8px,1vw,12px)!important}
}
@media (max-width:600px) and (orientation:portrait) {
 body.zm-ai-fullscreen-page .zm-editor .zm-panel .zm-small {display:none!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel h3 {margin:3px 0 1px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel .zm-preset-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* v1.9: interactive empty photo stage */
.zm-editor .zm-stage .zm-dropzone:not([hidden]){display:flex;flex:1 1 auto;width:100%;min-height:0;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;border:2px dashed #7561ad;border-radius:12px;padding:15px;touch-action:manipulation;transition:background .15s,border-color .15s}
.zm-editor .zm-stage .zm-dropzone:hover,.zm-editor .zm-stage .zm-dropzone:focus-visible,.zm-editor .zm-stage.zm-drag-active .zm-dropzone{background:#7655d51c;border-color:#b49aff;outline:none}
.zm-editor .zm-stage .zm-dropzone h2{font-size:clamp(12px,1.4vw,21px);line-height:1.25}
.zm-editor .zm-stage .zm-dropzone p{font-size:clamp(10px,1vw,14px);max-width:95%}

/* v2.0 restauracija */
.zm-restoration{border:1px solid #55417d;border-radius:8px;padding:7px;margin:7px 0;background:#191c2b}.zm-restoration h3{margin:2px 0 6px;font-size:12px}.zm-restoration details{margin-top:6px}.zm-restoration summary{cursor:pointer;font-size:12px}.zm-restoration .zm-restore-line{display:block;font-size:11px;padding:3px 0}.zm-restoration button{font-size:11px;padding:6px;margin-top:4px;width:100%}.zm-restoration [disabled]{opacity:.55}.zm-restoration p{font-size:10px;line-height:1.25}

/* v2.0.1: remove.bg always visible above restoration and allow AI section to scroll on small screens. */
.zm-editor .zm-bg-shortcut{display:block!important;margin:5px 0 7px!important}
.zm-editor .zm-bg-shortcut button{display:block!important;width:100%!important;min-height:28px!important;background:linear-gradient(110deg,#8750ed,#6936dd)!important;color:#fff!important;font-weight:700!important}
.zm-editor .zm-tools-panel{overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin}
body.zm-ai-fullscreen-page .zm-editor .zm-tools-panel{overflow-y:auto!important}
@media(max-width:760px),(pointer:coarse){body.zm-ai-fullscreen-page .zm-editor .zm-tools-panel{overflow-y:auto!important;-webkit-overflow-scrolling:touch}}

/* v2.0.3: history and AI progress */
.zm-ai-progress{margin:10px 0;padding:10px;border:1px solid #7353a8;border-radius:10px;background:#1b2031;color:#f0eaff;font-size:12px}.zm-ai-progress[hidden]{display:none!important}.zm-ai-progress-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px}.zm-ai-track{height:8px;border-radius:12px;background:#3a354d;overflow:hidden}.zm-ai-track>div{height:100%;width:5%;background:linear-gradient(90deg,#7750ef,#c08cff);transition:width .35s}.zm-ai-progress button{margin-top:8px;padding:7px 12px;border:1px solid #8c72bf;border-radius:6px;background:#2e2943;color:#fff}.zm-ai-progress small{display:block;margin-top:5px;opacity:.75}.zm-head-actions button:disabled{opacity:.45;cursor:not-allowed}

/* Inpainting mask and touch-friendly brush */
.zm-inpaint-stage{position:relative;display:inline-block;max-width:100%;align-self:center;line-height:0}.zm-inpaint-stage [data-canvas]{max-width:100%;height:auto}.zm-inpaint-stage [data-inpaint-overlay]{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.zm-inpaint-tool{margin-top:12px;border:1px solid #6b4a9e;border-radius:10px;padding:10px;display:grid;gap:8px}.zm-inpaint-tool button{min-height:38px}.zm-inpaint-tool label{font-size:12px;display:grid;gap:4px}.zm-inpaint-tool input{width:100%}

.zm-editor .zm-edge-tool{margin:10px 0;padding:10px;border:1px solid #73529e;border-radius:10px;display:grid;gap:8px;background:#181b2a}.zm-editor .zm-edge-tool h3{margin:0;font-size:13px;text-transform:uppercase}.zm-editor .zm-edge-tool label{display:grid;gap:5px;font-size:12px}.zm-editor .zm-edge-tool input[type=range]{width:100%}.zm-editor .zm-edge-tool output{float:right;color:#c7a7ff}.zm-editor .zm-edge-tool button{min-height:34px}


.zm-inpaint-review:not([hidden]){display:grid;gap:8px;padding:12px;margin:12px 0;border:1px solid #a17af0;border-radius:10px;background:#1d2032}.zm-inpaint-review strong{color:#eee}.zm-inpaint-review button{min-height:38px}

/* v2.3.2 — UI refinement; presentation only, existing editor actions unchanged */
.zm-editor{--zm-accent:#aa8aff;--zm-side:#141d2e;line-height:1.45}
.zm-editor .zm-head{border-bottom:1px solid #35435d;box-shadow:0 3px 16px #0002}
.zm-editor .zm-panel{scrollbar-width:thin;scrollbar-color:#586683 transparent}
.zm-editor .zm-panel h3{letter-spacing:.35px;color:#d6dfff}
.zm-editor .zm-panel label{color:#e0e7f5}
.zm-editor .zm-stage{background:radial-gradient(ellipse at 50% 35%,#27344a,#0c1423 75%)}
.zm-editor .zm-stage-label,.zm-editor .zm-right-heading{color:#c4d0e7}
.zm-editor button,.zm-editor .zm-top-upload{transition:background-color .15s,border-color .15s,transform .15s;touch-action:manipulation}
.zm-editor button:not(:disabled):active,.zm-editor .zm-top-upload:active{transform:translateY(1px)}
.zm-editor button:focus-visible,.zm-editor input:focus-visible,.zm-editor select:focus-visible,.zm-editor summary:focus-visible,.zm-editor .zm-dropzone:focus-visible{outline:3px solid #e3d4ff!important;outline-offset:2px!important}
.zm-editor .zm-ai,.zm-editor .zm-primary{font-weight:700}
.zm-editor .zm-edge-tool,.zm-editor .zm-restoration,.zm-editor .zm-inpaint-tool{border-radius:12px}
.zm-editor .zm-inpaint-tool{background:#1b2334}
.zm-editor .zm-status{min-height:20px;color:#e1e8f7}
.zm-editor .zm-small{color:#b9c6dd}
.zm-editor button:disabled{opacity:.48;cursor:not-allowed}
@media(min-width:761px){body.zm-ai-fullscreen-page .zm-editor .zm-panel{overflow-y:auto!important;overscroll-behavior:contain}body.zm-ai-fullscreen-page .zm-editor .zm-preset-grid{overflow-y:auto!important}}
@media(max-width:760px){
 .zm-editor .zm-mobile-tabs{gap:7px;padding:9px 9px 3px}
 .zm-editor .zm-mobile-tabs button{min-height:44px;font-size:12px;font-weight:650;border-radius:9px}
 .zm-editor .zm-head-actions{gap:6px}
 .zm-editor .zm-head-actions button,.zm-editor .zm-top-upload{min-height:38px}
 .zm-editor .zm-panel{padding:14px!important}
 .zm-editor .zm-panel button,.zm-editor .zm-panel select{min-height:42px}
 .zm-editor .zm-panel .zm-small{display:block!important;font-size:11px!important;line-height:1.45!important}
 .zm-editor .zm-stage .zm-dropzone{padding:20px}
 .zm-editor .zm-stage .zm-dropzone h2{font-size:18px!important}
 .zm-editor .zm-stage .zm-dropzone p{font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){.zm-editor button,.zm-editor .zm-top-upload,.zm-editor .zm-ai-track>div{transition:none!important}}

/* v2.3.3 — studio workspace redesign; no editing behavior changed */
.zm-editor{--zm-bg:#090e18;--zm-side:#111a2a;--zm-accent:#b69aff;background:#090e18;color:#f2f5fc;font-size:13px}
.zm-editor .zm-head{background:linear-gradient(100deg,#101b2c,#111529);border-bottom:1px solid #34435d;padding:11px 18px;min-height:66px}
.zm-editor .zm-head strong{font-size:19px;letter-spacing:2.4px;color:#fff}
.zm-editor .zm-head span{letter-spacing:2px;color:#c1aaff}
.zm-editor .zm-head-actions{gap:7px}
.zm-editor .zm-head-actions button,.zm-editor .zm-top-upload{border-radius:10px;min-height:38px;font-weight:600}
.zm-editor .zm-head-actions [data-action=download]{box-shadow:0 4px 20px #7543e955}
.zm-editor .zm-panel{background:#121c2d;border:1px solid #33425c;border-radius:14px;box-shadow:inset 0 1px #ffffff08}
.zm-editor .zm-panel h3{color:#e4eaff!important;font-size:12px!important;line-height:1.4!important;letter-spacing:.45px!important;margin:15px 0 9px!important}
.zm-editor .zm-panel h3:first-of-type{margin-top:5px!important}
.zm-editor .zm-tool-section{border-bottom:1px solid #ffffff16;padding-bottom:12px;margin-bottom:12px}
.zm-editor .zm-tool-section:last-child{border-bottom:0}
.zm-editor .zm-panel label{font-weight:500;line-height:1.5}
.zm-editor .zm-panel button,.zm-editor .zm-panel select,.zm-editor .zm-panel input[type=text]{border-radius:9px;border-color:#465574;background:#222e43;color:#f6f7fc;min-height:36px}
.zm-editor .zm-panel button:hover:not(:disabled){background:#354260;border-color:#b69aff}
.zm-editor .zm-panel .zm-primary,.zm-editor .zm-panel .zm-ai,.zm-editor .zm-panel .zm-upload{background:linear-gradient(125deg,#8257ed,#6234cf);border-color:#a68afa;color:#fff}
.zm-editor .zm-panel .zm-ai:hover:not(:disabled),.zm-editor .zm-panel .zm-primary:hover:not(:disabled){background:linear-gradient(125deg,#9670ff,#7447eb)}
.zm-editor .zm-stage{background:radial-gradient(ellipse at 50% 43%,#26374f 0%,#111b2c 55%,#0a111d 100%);border:1px solid #35445d;border-radius:14px;box-shadow:inset 0 0 60px #0002}
.zm-editor .zm-stage-label{font-weight:800;color:#d1dcf2;letter-spacing:1.8px}
.zm-editor .zm-placeholder{border:2px dashed #627194;border-radius:18px;padding:32px 26px;background:#18243a99;max-width:440px;width:100%;cursor:pointer}
.zm-editor .zm-placeholder:hover{border-color:#b89cff;background:#253451aa}
.zm-editor .zm-placeholder span{color:#c7b0ff}
.zm-editor .zm-status{padding:5px 12px;border-radius:20px;background:#1a2a3e;color:#dce7f8}
.zm-editor .zm-right-heading{padding-bottom:12px;border-bottom:1px solid #3b4960;font-weight:800}
.zm-editor .zm-edge-tool,.zm-editor .zm-inpaint-tool,.zm-editor .zm-restoration{background:#1b2940;border:1px solid #48597a;border-radius:13px;padding:12px}
.zm-editor input[type=range]{accent-color:#ae8bff}
.zm-editor .zm-small{color:#c0cee3!important;line-height:1.5!important}
@media(min-width:761px){
 body.zm-ai-fullscreen-page .zm-editor .zm-body{grid-template-columns:minmax(245px,24%) minmax(0,52%) minmax(245px,24%);gap:9px;padding:9px}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel{padding:14px!important;overflow-y:auto!important;scrollbar-width:thin!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel h3{font-size:12px!important;margin:15px 0 8px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel button,body.zm-ai-fullscreen-page .zm-editor .zm-panel select{font-size:12px!important;padding:9px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-preset-grid{overflow-y:auto!important;max-height:200px!important}
}
@media(max-width:760px){
 .zm-editor .zm-head{gap:8px;padding:10px 12px}
 .zm-editor .zm-head-actions{width:100%;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}
 .zm-editor .zm-head-actions button,.zm-editor .zm-top-upload{white-space:nowrap;flex-shrink:0;min-height:42px}
 .zm-editor .zm-mobile-tabs{background:#0e1727;padding:9px;gap:7px}
 .zm-editor .zm-mobile-tabs button{background:#25324a;border:1px solid #3d4e6b;min-height:46px}
 .zm-editor .zm-mobile-tabs button.is-active{background:#7147dc;border-color:#c1a8ff;box-shadow:0 3px 12px #6035b955}
 .zm-editor .zm-body{padding:8px}
 .zm-editor .zm-stage,.zm-editor .zm-panel{border-radius:12px}
 .zm-editor .zm-placeholder{padding:22px 12px}
 .zm-editor .zm-panel button,.zm-editor .zm-panel select{min-height:44px!important}
}

/* v2.3.4: genuine mobile layout; overrides legacy three-column touchscreen rules. */
@media (max-width:760px) {
 body.zm-ai-fullscreen-page .zm-editor {width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-mobile-tabs {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;padding:8px!important;flex:none!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-mobile-tabs button {font-size:12px!important;line-height:1.2!important;min-height:48px!important;padding:8px 5px!important;white-space:normal!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-body {display:block!important;grid-template-columns:none!important;min-width:0!important;width:100%!important;height:auto!important;min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important;padding:8px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-panel,
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-stage {display:none!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;padding:15px!important;border-radius:12px!important}
 body.zm-ai-fullscreen-page .zm-editor[data-active-tab="photo"] .zm-stage {display:flex!important;min-height:280px!important;gap:12px!important;justify-content:center!important}
 body.zm-ai-fullscreen-page .zm-editor[data-active-tab="tools"] .zm-tools-panel,
 body.zm-ai-fullscreen-page .zm-editor[data-active-tab="order"] .zm-right-panel {display:block!important;font-size:14px!important;line-height:1.5!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel h3 {font-size:13px!important;margin:16px 0 9px!important;letter-spacing:.4px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel label:not(.zm-upload) {font-size:13px!important;line-height:1.5!important;margin:10px 0!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel button,
 body.zm-ai-fullscreen-page .zm-editor .zm-panel select,
 body.zm-ai-fullscreen-page .zm-editor .zm-panel input[type=text],
 body.zm-ai-fullscreen-page .zm-editor .zm-upload {font-size:13px!important;line-height:1.3!important;min-height:44px!important;padding:10px!important;border-radius:9px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel input[type=range] {height:30px!important;margin:6px 0!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel .zm-small {font-size:12px!important;line-height:1.5!important;margin:8px 0!important;display:block!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-preset-grid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;max-height:none!important;overflow:visible!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-preset-tile {min-height:44px!important;font-size:12px!important;padding:8px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage canvas {max-width:100%!important;max-height:52dvh!important;width:auto!important;height:auto!important;object-fit:contain!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-inpaint-stage {max-width:100%!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head {flex-wrap:wrap!important;padding:10px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head-actions {width:100%!important;overflow-x:auto!important;justify-content:flex-start!important;gap:6px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head-actions button,
 body.zm-ai-fullscreen-page .zm-editor .zm-top-upload {font-size:12px!important;min-height:40px!important;flex-shrink:0!important;white-space:nowrap!important}
}

/* v2.3.5 — persistent live canvas above mobile controls */
@media(max-width:760px){
 body.zm-ai-fullscreen-page .zm-editor .zm-body{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;overflow-y:auto!important;overflow-x:hidden!important;scroll-padding-top:15px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-stage{display:flex!important;order:-1!important;position:sticky!important;top:0!important;z-index:8!important;flex:0 0 auto!important;min-height:0!important;max-height:45dvh!important;padding:10px!important;gap:6px!important;background:#101a2b!important;box-shadow:0 8px 20px #050914bb!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-stage:has([data-placeholder]:not([hidden])){position:relative!important;max-height:none!important;min-height:260px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage-label{font-size:10px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage .zm-inpaint-stage{max-height:34dvh!important;display:flex!important;align-items:center!important;justify-content:center!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage canvas{max-height:34dvh!important;max-width:100%!important;width:auto!important;height:auto!important;object-fit:contain!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage .zm-status{font-size:11px!important;padding:2px 8px!important;margin:0!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage .zm-zoom-note{display:none!important}
 body.zm-ai-fullscreen-page .zm-editor[data-active-tab="photo"] .zm-body>.zm-panel{display:none!important}
 body.zm-ai-fullscreen-page .zm-editor[data-active-tab="tools"] .zm-body>.zm-tools-panel,
 body.zm-ai-fullscreen-page .zm-editor[data-active-tab="order"] .zm-body>.zm-right-panel{display:block!important;order:0!important;flex:0 0 auto!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head-actions{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:7px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head-actions button,
 body.zm-ai-fullscreen-page .zm-editor .zm-top-upload{flex:1 1 auto!important;min-width:0!important;white-space:normal!important;text-align:center!important}
}

/* v2.3.6: compact mobile controls and persistent, space-efficient live preview */
@media (max-width:760px) {
 body.zm-ai-fullscreen-page .zm-editor .zm-head{display:flex!important;flex-direction:column!important;gap:5px!important;padding:7px 10px!important;min-height:0!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-brand{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px 10px!important;width:100%!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-brand strong{font-size:13px!important;letter-spacing:1.3px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-brand span{font-size:9px!important;letter-spacing:1px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-back-link{font-size:11px!important;margin:0 0 0 auto!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head-actions{display:grid!important;grid-template-columns:minmax(0,1.55fr) repeat(3,minmax(0,.7fr)) minmax(0,1.2fr)!important;gap:5px!important;width:100%!important;padding:0!important;overflow:visible!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head-actions button,
 body.zm-ai-fullscreen-page .zm-editor .zm-top-upload{display:flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;height:36px!important;min-width:0!important;width:100%!important;padding:4px 3px!important;font-size:10px!important;line-height:1.1!important;white-space:normal!important;border-radius:8px!important;margin:0!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head-actions [data-action=download]{font-size:10px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-mobile-tabs{gap:5px!important;padding:5px 8px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-mobile-tabs button{min-height:36px!important;height:38px!important;font-size:11px!important;padding:4px!important;border-radius:8px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-body{gap:5px!important;padding:6px!important;scroll-padding-top:4px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-stage{max-height:235px!important;min-height:0!important;padding:7px!important;gap:3px!important;top:0!important;border-radius:9px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage-label{font-size:9px!important;letter-spacing:.8px!important;line-height:1.2!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage .zm-inpaint-stage{max-height:175px!important;min-height:0!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage canvas{max-height:175px!important;max-width:100%!important;object-fit:contain!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage .zm-status{font-size:10px!important;padding:1px 6px!important;min-height:0!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-stage:has([data-placeholder]:not([hidden])){min-height:180px!important;max-height:220px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-panel{padding:10px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-tools-panel>.zm-upload,
 body.zm-ai-fullscreen-page .zm-editor .zm-tools-panel>.zm-small:first-of-type{display:none!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel h3{margin:8px 0 5px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel label:not(.zm-upload){margin:5px 0!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel input[type=range]{margin:2px 0!important;height:26px!important}
}


/* v2.3.7: landscape touch workspace — independent scrolling and zoomable photo */
@media (orientation:landscape) and (pointer:coarse) {
 body.zm-ai-fullscreen-page .zm-editor .zm-head {flex:0 0 auto!important;min-height:34px!important;max-height:55px!important;padding:3px 8px!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:6px!important;overflow:hidden!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-brand {flex:0 0 auto!important;min-width:0!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-brand strong {font-size:12px!important;white-space:nowrap!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-brand span {font-size:8px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head-actions {display:flex!important;flex:1 1 auto!important;min-width:0!important;gap:4px!important;flex-wrap:nowrap!important;justify-content:flex-end!important;overflow-x:auto!important;scrollbar-width:thin!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-head-actions button,body.zm-ai-fullscreen-page .zm-editor .zm-top-upload {flex:0 0 auto!important;width:auto!important;min-height:29px!important;height:29px!important;font-size:10px!important;padding:3px 7px!important;white-space:nowrap!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-mobile-tabs {display:none!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-body {display:grid!important;grid-template-columns:minmax(0,24%) minmax(0,52%) minmax(0,24%)!important;gap:5px!important;padding:5px!important;min-height:0!important;overflow:hidden!important;align-items:stretch!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-panel {display:block!important;height:100%!important;max-height:none!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;touch-action:pan-y!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage {display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important;position:relative!important;padding:5px!important;gap:3px!important;justify-content:flex-start!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-photo-viewport {display:block!important;flex:1 1 auto!important;min-height:0!important;min-width:0!important;width:100%!important;overflow:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y!important;text-align:center!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-photo-viewport .zm-inpaint-stage {display:inline-block!important;position:relative!important;max-width:none!important;max-height:none!important;width:auto;min-width:0!important;line-height:0!important;vertical-align:top!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-photo-viewport .zm-inpaint-stage canvas[data-canvas] {display:block;max-width:none!important;max-height:none!important;width:100%!important;height:100%!important;object-fit:fill!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-photo-viewport .zm-inpaint-stage canvas[data-inpaint-overlay] {width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-photo-controls {display:flex!important;flex:0 0 auto!important;justify-content:center!important;align-items:center!important;gap:5px!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-photo-controls button {min-height:26px!important;padding:2px 9px!important;font-size:12px!important;line-height:1.2!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-stage-label,body.zm-ai-fullscreen-page .zm-editor .zm-status {flex:0 0 auto!important;margin:0!important;line-height:1.1!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-zoom-note {display:none!important}
}
.zm-photo-controls {display:none}

.zm-photo-viewport{display:contents}

/* v2.4.1 desktop zoom scoped to center stage */
@media (min-width:901px) and (pointer:fine){
 .zm-editor .zm-stage {display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important;position:relative!important;padding:5px!important;gap:3px!important;justify-content:flex-start!important}
 .zm-editor .zm-photo-viewport {display:block!important;flex:1 1 auto!important;min-height:0!important;min-width:0!important;width:100%!important;overflow:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y!important;text-align:center!important}
 .zm-editor .zm-photo-viewport .zm-inpaint-stage {display:inline-block!important;position:relative!important;max-width:none!important;max-height:none!important;width:auto;min-width:0!important;line-height:0!important;vertical-align:top!important}
 .zm-editor .zm-photo-viewport .zm-inpaint-stage canvas[data-canvas] {display:block;max-width:none!important;max-height:none!important;width:100%!important;height:100%!important;object-fit:fill!important}
 .zm-editor .zm-photo-viewport .zm-inpaint-stage canvas[data-inpaint-overlay] {width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
 .zm-editor .zm-photo-controls {display:flex!important;flex:0 0 auto!important;justify-content:center!important;align-items:center!important;gap:5px!important}
 .zm-editor .zm-photo-controls button {min-height:26px!important;padding:2px 9px!important;font-size:12px!important;line-height:1.2!important}

.zm-editor .zm-body{display:grid!important;grid-template-columns:minmax(220px,26%) minmax(0,1fr) minmax(230px,27%)!important}
.zm-editor .zm-tools-panel,.zm-editor .zm-right-panel{display:block!important;min-width:0!important}
.zm-editor .zm-stage{display:flex!important;min-width:0!important}
.zm-editor .zm-photo-viewport{min-height:100px!important}
}

.zm-editor .zm-brand{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0}
.zm-editor .zm-brand-logo{display:block;width:28px;height:28px;object-fit:contain;flex-shrink:0}
.zm-editor .zm-brand-copy{display:flex;flex-direction:column;min-width:0}
@media (orientation:landscape) and (pointer:coarse){
body.zm-ai-fullscreen-page .zm-editor .zm-head{overflow:visible!important;max-height:none!important;height:auto!important;min-height:44px!important;gap:8px!important}
body.zm-ai-fullscreen-page .zm-editor .zm-brand{flex:0 1 auto!important}
body.zm-ai-fullscreen-page .zm-editor .zm-head-actions{overflow-x:auto!important;min-width:0!important}
}

/* v2.4.2: transparent ZM brand, readable compact header */
.zm-editor .zm-head{overflow:visible!important;min-height:70px!important;height:auto!important;max-height:none!important;align-items:center!important}
.zm-editor .zm-brand{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;gap:10px!important;width:auto!important;min-width:165px!important;flex:0 0 auto!important}
.zm-editor .zm-brand-logo{width:34px!important;height:34px!important;object-fit:contain!important;display:block!important;flex:0 0 34px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.zm-editor .zm-brand-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:0!important;min-width:0!important;line-height:1.2!important}
.zm-editor .zm-brand-copy strong{display:block!important;font-size:15px!important;line-height:1.25!important;letter-spacing:1.5px!important;color:#fff!important;white-space:nowrap!important}
.zm-editor .zm-brand-copy span{display:block!important;font-size:9px!important;line-height:1.4!important;letter-spacing:1.5px!important;color:#bd9aff!important;white-space:nowrap!important}
.zm-editor .zm-brand-copy .zm-back-link{display:block!important;font-size:11px!important;line-height:1.4!important;margin-top:3px!important;white-space:nowrap!important}
.zm-editor .zm-head-actions{flex:0 1 auto!important;min-width:0!important;justify-content:flex-end!important}
@media (max-width:760px){.zm-editor .zm-head{min-height:0!important;padding:10px!important}.zm-editor .zm-brand{min-width:0!important}.zm-editor .zm-brand-logo{width:28px!important;height:28px!important;flex-basis:28px!important}.zm-editor .zm-brand-copy strong{font-size:13px!important}}
@media (orientation:landscape) and (pointer:coarse){body.zm-ai-fullscreen-page .zm-editor .zm-head{min-height:58px!important;overflow:visible!important}body.zm-ai-fullscreen-page .zm-editor .zm-brand{width:auto!important;flex:0 0 auto!important;flex-wrap:nowrap!important}body.zm-ai-fullscreen-page .zm-editor .zm-head-actions{flex:1 1 auto!important;overflow-x:auto!important}}

/* v2.4.3: touch gesture guard. Mouse and keyboard behavior unchanged. */
.zm-editor .zm-guarded-range{position:relative;display:block;width:100%}
.zm-editor .zm-guarded-range input[type=range]{width:100%}
.zm-editor .zm-range-touch-shield{display:none}
@media(pointer:coarse){
 .zm-editor .zm-guarded-range .zm-range-touch-shield{
  display:block;position:absolute;inset:0;z-index:2;
  touch-action:pan-y;cursor:ew-resize;background:transparent;
 }
}

/* v2.4.5 branded confirmation */
.zm-confirm-backdrop{position:fixed;inset:0;z-index:2147483647;background:rgba(5,9,22,.76);display:flex;align-items:center;justify-content:center;padding:16px}
.zm-confirm-card{width:min(420px,100%);background:#141d31;color:#f5f4ff;border:1px solid #66529c;border-radius:16px;padding:22px;box-shadow:0 20px 55px #0008;font:inherit}
.zm-confirm-card h3{margin:0 0 14px;font-size:18px}.zm-confirm-message{font-size:16px;line-height:1.5}.zm-confirm-privacy{font-size:12px;line-height:1.5;color:#bac3d7}.zm-confirm-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.zm-confirm-actions button{border-radius:9px;padding:11px 15px;color:white;background:#2b354b;border:1px solid #596079;cursor:pointer}.zm-confirm-actions button.zm-primary{background:#743ce9;border-color:#8d62ef}

/* v2.4.6: definitive three-panel visibility and grid placement for wide/landscape views.
   Explicit child selectors override legacy mobile tab hiding rules. */
@media (min-width:761px), (orientation:landscape) and (min-width:600px) {
 body.zm-ai-fullscreen-page .zm-editor .zm-mobile-tabs{display:none!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-body{
  display:grid!important;
  grid-template-columns:minmax(0,24%) minmax(0,52%) minmax(0,24%)!important;
  grid-template-rows:minmax(0,1fr)!important;
  width:100%!important;min-width:0!important;min-height:0!important;
  flex:1 1 auto!important;gap:0!important;padding:6px!important;
  overflow:hidden!important;align-items:stretch!important;
 }
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-tools-panel{
  display:block!important;grid-column:1!important;grid-row:1!important;
 }
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-stage{
  display:flex!important;grid-column:2!important;grid-row:1!important;
 }
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-right-panel{
  display:block!important;grid-column:3!important;grid-row:1!important;
 }
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-panel,
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-stage{
  position:relative!important;order:initial!important;top:auto!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;
  visibility:visible!important;
 }
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-stage{overflow:hidden!important}
}
@media (max-width:760px) and (orientation:portrait){
 body.zm-ai-fullscreen-page .zm-editor .zm-mobile-tabs{display:grid!important}
 body.zm-ai-fullscreen-page .zm-editor .zm-body{display:flex!important;flex-direction:column!important;grid-template-columns:none!important}
}

/* v2.4.7: hide redundant bottom status caption, retain aria-live for assistive tech */
.zm-editor [data-status].zm-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}


/* v2.4.8: resilient panel layout independent of page wrapper/body classes */
@media (min-width: 761px) {
 .zm-editor .zm-mobile-tabs{display:none!important}
 .zm-editor .zm-body{display:grid!important;grid-template-columns:minmax(220px,24%) minmax(0,1fr) minmax(230px,27%)!important;grid-template-rows:minmax(0,1fr)!important;gap:8px!important;width:100%!important;min-width:0!important;min-height:520px!important;overflow:hidden!important;align-items:stretch!important}
 .zm-editor .zm-body>.zm-tools-panel,.zm-editor .zm-body>.zm-right-panel{display:block!important;position:relative!important;grid-row:1!important;min-width:0!important;max-height:calc(100vh - 180px)!important;overflow-y:auto!important;overflow-x:hidden!important}
 .zm-editor .zm-body>.zm-tools-panel{grid-column:1!important}
 .zm-editor .zm-body>.zm-stage{display:flex!important;grid-column:2!important;grid-row:1!important;position:relative!important;order:initial!important;min-width:0!important;width:100%!important;max-height:calc(100vh - 180px)!important;overflow:auto!important}
 .zm-editor .zm-body>.zm-right-panel{grid-column:3!important}
}
@media (max-width:760px) {
 .zm-editor .zm-mobile-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 .zm-editor .zm-body{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;width:100%!important;min-width:0!important;min-height:0!important;overflow:visible!important}
 .zm-editor .zm-body>.zm-stage{display:flex!important;order:-1!important;width:100%!important;min-width:0!important;max-height:45vh!important;min-height:190px!important;position:relative!important;overflow:hidden!important}
 .zm-editor .zm-body>.zm-panel{display:none!important;width:100%!important;max-height:none!important;overflow:visible!important}
 .zm-editor[data-active-tab="tools"] .zm-body>.zm-tools-panel{display:block!important}
 .zm-editor[data-active-tab="order"] .zm-body>.zm-right-panel{display:block!important}
 .zm-editor[data-active-tab="photo"] .zm-body>.zm-panel{display:none!important}
}

/* v2.4.9: mobile portrait panels; overrides legacy fullscreen/desktop selectors */
@media (orientation:portrait) and (pointer:coarse), (max-width:760px) {
 html body.zm-ai-fullscreen-page .zm-editor .zm-mobile-tabs,
 .zm-editor .zm-mobile-tabs {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;flex:0 0 auto!important;width:100%!important;gap:6px!important}
 html body.zm-ai-fullscreen-page .zm-editor .zm-body,
 .zm-editor .zm-body {display:flex!important;flex-direction:column!important;grid-template-columns:none!important;grid-template-rows:none!important;align-items:stretch!important;flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;width:100%!important;overflow-y:auto!important;overflow-x:hidden!important;gap:8px!important;padding:8px!important;-webkit-overflow-scrolling:touch!important}
 html body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-stage,
 .zm-editor .zm-body>.zm-stage {display:flex!important;grid-column:auto!important;grid-row:auto!important;order:0!important;position:relative!important;top:auto!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:180px!important;max-height:42dvh!important;overflow:hidden!important;padding:8px!important}
 html body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-panel,
 .zm-editor .zm-body>.zm-panel {display:none!important;grid-column:auto!important;grid-row:auto!important;order:1!important;position:relative!important;top:auto!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;visibility:visible!important}
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="tools"] .zm-body>.zm-tools-panel,
 .zm-editor[data-active-tab="tools"] .zm-body>.zm-tools-panel,
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="order"] .zm-body>.zm-right-panel,
 .zm-editor[data-active-tab="order"] .zm-body>.zm-right-panel {display:block!important}
 .zm-editor .zm-body>.zm-stage .zm-inpaint-stage {max-height:30dvh!important}
 .zm-editor .zm-body>.zm-stage canvas {max-height:30dvh!important}
 .zm-editor .zm-mobile-tabs button {min-width:0!important;white-space:normal!important}
}

/* v2.4.10: keep live canvas visible ABOVE editing controls on mobile */
@media (max-width:760px) {
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="tools"] .zm-body>.zm-stage,
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="order"] .zm-body>.zm-stage,
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="photo"] .zm-body>.zm-stage,
 .zm-editor[data-active-tab="tools"] .zm-body>.zm-stage,
 .zm-editor[data-active-tab="order"] .zm-body>.zm-stage,
 .zm-editor[data-active-tab="photo"] .zm-body>.zm-stage {
   display:flex!important;flex-direction:column!important;order:-1!important;
   position:relative!important;top:auto!important;z-index:1!important;
   height:auto!important;min-height:160px!important;max-height:38dvh!important;
   width:100%!important;overflow:hidden!important;justify-content:center!important;
   padding:8px!important;gap:5px!important;
 }
 .zm-editor .zm-stage .zm-inpaint-stage{max-height:29dvh!important;min-height:0!important}
 .zm-editor .zm-stage canvas{max-height:29dvh!important;max-width:100%!important;object-fit:contain!important}
 .zm-editor .zm-stage:has([data-placeholder]:not([hidden])){max-height:32dvh!important}
 .zm-editor .zm-body>.zm-tools-panel{order:1!important}
 .zm-editor .zm-body>.zm-right-panel{order:1!important}
}


/* v2.4.19: single source of truth for portrait preview, replacing conflicting legacy overrides. */
@media (max-width:760px) and (orientation:portrait){
 body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-stage,
 .zm-editor .zm-body>.zm-stage{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:12px!important;gap:8px!important}
 .zm-editor .zm-stage .zm-photo-viewport{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;touch-action:pan-y!important}
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage{position:relative!important;display:block!important;flex:none!important;max-width:100%!important;max-height:none!important;min-width:0!important;min-height:0!important;overflow:visible!important;line-height:0!important;margin:0 auto!important}
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage canvas[data-canvas]{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:fill!important;box-sizing:border-box!important}
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage canvas[data-inpaint-overlay]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
 .zm-editor .zm-stage .zm-photo-controls{display:flex!important;position:relative!important;visibility:visible!important;flex:0 0 auto!important;justify-content:center!important;align-items:center!important;gap:8px!important;margin:8px auto!important;z-index:2!important}
 .zm-editor .zm-stage .zm-dropzone:not([hidden]){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-height:260px!important;height:auto!important;width:100%!important;padding:24px 12px!important;overflow:visible!important}
 .zm-editor .zm-stage .zm-dropzone:not([hidden]) span,.zm-editor .zm-stage .zm-dropzone:not([hidden]) h2,.zm-editor .zm-stage .zm-dropzone:not([hidden]) p{position:static!important;transform:none!important;text-align:center!important;margin:7px auto!important}
 .zm-editor .zm-stage .zm-zoom-note{display:none!important}
}

/* v2.4.20: responsive photo sizing with intrinsic canvas aspect ratio. */
@media (max-width:760px) and (orientation:portrait){
 .zm-editor .zm-stage .zm-photo-viewport{display:flex!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:auto!important;align-items:center!important;justify-content:flex-start!important;flex-direction:column!important}
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage{flex:0 0 auto!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;aspect-ratio:auto!important}
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage canvas[data-canvas]{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:fill!important}
 .zm-editor .zm-stage .zm-photo-controls{display:flex!important;visibility:visible!important;position:relative!important;margin:10px auto 2px!important;flex:none!important}
 .zm-editor .zm-body>.zm-stage{height:auto!important;max-height:none!important;overflow:visible!important}
}

/* v2.4.21: preserve the canvas intrinsic aspect ratio on narrow phones. */
@media (max-width:760px) and (orientation:portrait){
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage{max-width:none!important;aspect-ratio:auto!important;flex-shrink:0!important}
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage canvas[data-canvas]{width:100%!important;height:100%!important;object-fit:contain!important}
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage canvas[data-inpaint-overlay]{width:100%!important;height:100%!important}
}

/* v2.4.22: pin live preview while scrolling editing controls on mobile. */
@media (max-width:760px){
 html body.zm-ai-fullscreen-page .zm-editor .zm-body,
 .zm-editor .zm-body{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain!important;align-content:start!important;}
 html body.zm-ai-fullscreen-page .zm-editor .zm-body>.zm-stage,
 .zm-editor .zm-body>.zm-stage{
  position:sticky!important;top:0!important;z-index:30!important;
  order:-1!important;flex:0 0 auto!important;max-height:42dvh!important;
  min-height:0!important;overflow:hidden!important;
  background:#101a2b!important;box-shadow:0 7px 18px #050914bb!important;
 }
 .zm-editor .zm-stage .zm-photo-viewport{
  flex:1 1 auto!important;min-height:0!important;max-height:calc(42dvh - 75px)!important;
  overflow:auto!important;overscroll-behavior:contain!important;
 }
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage{flex-shrink:0!important;}
 .zm-editor .zm-stage .zm-photo-controls{flex:0 0 auto!important;}
 .zm-editor .zm-body>.zm-stage:has(.zm-dropzone:not([hidden])){
  max-height:42dvh!important;min-height:200px!important;
 }
 .zm-editor .zm-stage .zm-dropzone:not([hidden]){min-height:160px!important;max-height:32dvh!important;overflow:auto!important;}
}

/* v2.4.23: stable pinned preview: scroll controls independently, never scroll stage. */
@media (max-width:760px){
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="tools"] .zm-body,
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="order"] .zm-body{
  display:flex!important;flex-direction:column!important;flex:1 1 0!important;
  height:0!important;min-height:0!important;max-height:none!important;
  overflow:hidden!important;gap:7px!important;
 }
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="tools"] .zm-body>.zm-stage,
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="order"] .zm-body>.zm-stage{
  position:relative!important;top:auto!important;order:0!important;
  flex:0 0 auto!important;height:auto!important;max-height:40dvh!important;
  min-height:0!important;overflow:hidden!important;z-index:2!important;
 }
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="tools"] .zm-body>.zm-tools-panel,
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="order"] .zm-body>.zm-right-panel{
  display:block!important;position:relative!important;order:1!important;
  flex:1 1 0!important;height:0!important;min-height:0!important;
  max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;
 }
}

/* v2.4.24: narrow mobile zoom viewport, independent of editor controls. */
@media (max-width:760px) and (orientation:portrait){
 body.zm-ai-fullscreen-page .zm-editor .zm-stage .zm-photo-viewport,
 .zm-editor .zm-stage .zm-photo-viewport{
  display:block!important;position:relative!important;width:100%!important;
  height:clamp(170px,29dvh,310px)!important;min-height:170px!important;
  max-height:29dvh!important;overflow:auto!important;
  overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
  text-align:center!important;touch-action:pan-x pan-y!important;
 }
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage{
  display:block!important;position:relative!important;max-width:none!important;
  max-height:none!important;min-width:0!important;min-height:0!important;
  margin:0 auto!important;flex:none!important;
 }
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage canvas[data-canvas]{
  display:block!important;width:100%!important;height:100%!important;
  max-width:none!important;max-height:none!important;object-fit:contain!important;
 }
 .zm-editor .zm-stage .zm-photo-controls{position:relative!important;z-index:5!important;pointer-events:auto!important}
 .zm-editor .zm-stage .zm-photo-controls button{pointer-events:auto!important;touch-action:manipulation!important}
}

/* v2.4.25: same photo viewport behavior on narrow and wide phones. */
@media (max-width:760px) and (orientation:portrait){
 html body.zm-ai-fullscreen-page .zm-editor .zm-stage .zm-photo-viewport,
 .zm-editor .zm-stage .zm-photo-viewport{
  display:block!important;flex:0 0 auto!important;width:100%!important;
  height:clamp(165px,28dvh,300px)!important;min-height:0!important;
  max-height:none!important;overflow:auto!important;
  overscroll-behavior:contain!important;touch-action:pan-x pan-y!important;
  text-align:center!important;box-sizing:border-box!important;
 }
 html body.zm-ai-fullscreen-page .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage,
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage{
  display:block!important;position:relative!important;flex:none!important;
  max-width:none!important;max-height:none!important;min-width:0!important;
  min-height:0!important;margin-left:auto!important;margin-right:auto!important;
  transform:none!important;overflow:visible!important;
 }
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage canvas[data-canvas],
 .zm-editor .zm-stage .zm-photo-viewport .zm-inpaint-stage canvas[data-inpaint-overlay]{
  display:block!important;width:100%!important;height:100%!important;
  max-width:none!important;max-height:none!important;object-fit:fill!important;
 }
 .zm-editor .zm-stage .zm-photo-controls{position:relative!important;z-index:10!important;flex-shrink:0!important;pointer-events:auto!important}
 .zm-editor .zm-stage .zm-photo-controls button{pointer-events:auto!important;touch-action:manipulation!important}
}

/* v2.4.26: center the empty upload target inside the visible mobile preview. */
@media (max-width:760px){
 .zm-editor .zm-body>.zm-stage:has(.zm-dropzone:not([hidden])){
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:center!important;min-height:280px!important;max-height:none!important;
  height:auto!important;overflow:visible!important;padding:14px!important;
 }
 .zm-editor .zm-stage .zm-dropzone:not([hidden]){
  display:flex!important;flex:0 0 auto!important;align-self:center!important;
  width:100%!important;max-width:100%!important;height:auto!important;
  min-height:220px!important;max-height:none!important;overflow:visible!important;
  padding:26px 16px!important;margin:0 auto!important;
  flex-direction:column!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;gap:8px!important;
 }
 .zm-editor .zm-stage .zm-dropzone:not([hidden]) span,
 .zm-editor .zm-stage .zm-dropzone:not([hidden]) h2,
 .zm-editor .zm-stage .zm-dropzone:not([hidden]) p{
  position:static!important;transform:none!important;flex:none!important;
  max-width:100%!important;margin:0 auto!important;text-align:center!important;
  overflow-wrap:anywhere!important;line-height:1.35!important;
 }
 .zm-editor .zm-stage .zm-dropzone:not([hidden]) span{line-height:1!important}
}

/* v2.4.27: empty upload target is never sticky or clipped behind mobile tabs. */
@media (max-width:760px){
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="photo"] .zm-body>.zm-stage:has(.zm-dropzone:not([hidden])),
 .zm-editor[data-active-tab="photo"] .zm-body>.zm-stage:has(.zm-dropzone:not([hidden])){
  position:relative!important;top:auto!important;transform:none!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  align-items:center!important;order:0!important;z-index:1!important;
  height:100%!important;min-height:0!important;max-height:none!important;
  padding:16px!important;overflow-y:auto!important;overflow-x:hidden!important;
  scroll-padding-top:16px!important;
 }
 html body.zm-ai-fullscreen-page .zm-editor[data-active-tab="photo"] .zm-body,
 .zm-editor[data-active-tab="photo"] .zm-body{overflow:hidden!important;min-height:0!important;}
 .zm-editor[data-active-tab="photo"] .zm-stage .zm-dropzone:not([hidden]){
  position:relative!important;inset:auto!important;transform:none!important;
  flex:0 0 auto!important;width:100%!important;max-width:100%!important;
  min-height:200px!important;height:auto!important;max-height:none!important;
  margin:auto!important;padding:22px 12px!important;overflow:visible!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;
 }
 .zm-editor[data-active-tab="photo"] .zm-stage .zm-stage-label{flex:0 0 auto!important;position:relative!important;top:auto!important;}
}

/* Text typography panel */
.zm-text-editor{display:grid;gap:10px;margin-top:14px}.zm-text-editor label{display:grid;gap:5px}.zm-text-editor textarea,.zm-text-editor select{width:100%;min-width:0;box-sizing:border-box}.zm-text-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.zm-text-row button{min-width:36px;padding:8px}.zm-text-row button.is-active{outline:2px solid #64a8ff;outline-offset:-2px}.zm-text-row label{display:flex;align-items:center;gap:5px}.zm-text-check{display:flex!important;flex-direction:row;align-items:center}.zm-text-editor input[type=range]{width:100%}

/* Collapsible tools below the always-visible corrections, presets and transformations */
.zm-tool-fold { margin: 12px 0; border: 1px solid rgba(190,205,240,.25); border-radius: 12px; padding: 0 12px; background: rgba(24,39,62,.35); }
.zm-tool-fold > summary { display: list-item; cursor: pointer; padding: 15px 4px; font-weight: 750; color: #f5f6ff; list-style-position: inside; user-select: none; }
.zm-tool-fold > summary::marker { color: #d8a5ff; }
.zm-tool-fold[open] { padding-bottom: 14px; }
.zm-tool-fold[open] > summary { border-bottom: 1px solid rgba(190,205,240,.18); margin-bottom: 12px; }
.zm-tool-fold > summary:focus-visible { outline: 2px solid #d8a5ff; outline-offset: 3px; }
