/* Step navigation leaves all existing editing and print controls intact. */
.editor[data-desk-step]{height:auto;min-height:calc(100vh - 120px);grid-template-rows:auto auto auto 1fr auto;align-content:start}
.dw-steps,.dw-setup,.dw-ad,.dw-page-nav,.dw-bottom{grid-column:1/-1}.dw-steps{display:flex;gap:8px;padding:18px 24px;background:#e9f2fb}.dw-steps button{display:flex;align-items:center;gap:8px;flex:1;min-height:46px;border:1px solid #b6cce0;background:white;text-align:left;padding:10px 14px;border-radius:8px;color:#153b60;font-size:14px}.dw-steps button span{display:grid;place-items:center;width:25px;height:25px;flex-shrink:0;border-radius:50%;background:#edf3fa}.dw-steps button[aria-current=step]{background:#165aa7;color:white;border-color:#165aa7}.dw-steps button[aria-current=step] span{background:#ffffff25}.dw-setup,.dw-ad{width:min(900px,calc(100% - 32px));margin:24px auto;padding:24px;background:white;border:1px solid #ccd8e1;border-radius:12px;box-sizing:border-box}.dw-setup h1,.dw-ad h1{font-size:25px;line-height:1.3;margin:0 0 12px}.dw-setup p,.dw-ad p{line-height:1.6;color:#405368}.dw-format{padding:15px;background:#eef5fc;border-radius:8px;margin:20px 0}.dw-setup label{display:grid;gap:7px;font-size:14px;font-weight:600;margin:15px 0}.dw-setup input:not([type=color]),.dw-setup select{width:100%;box-sizing:border-box;min-height:44px;border:1px solid #afc4d5;border-radius:6px;padding:10px;font:16px inherit;background:white;color:#172e44}.dw-settings-home{display:grid;grid-template-columns:220px 1fr;gap:24px;margin-top:25px}.dw-settings-home .variant{display:flex;flex-direction:column;align-self:start;gap:10px;margin:0}.dw-settings-home .variant button{min-height:44px;padding:12px;border-radius:6px}.dw-settings-home section{padding:0}.dw-page-nav{padding:15px 24px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#fff;border-bottom:1px solid #d8e3ec}.dw-page-nav label{display:flex;align-items:center;gap:12px;font-size:14px}.dw-page-nav select{min-height:44px;padding:8px;max-width:100%;border:1px solid #b6cce0;border-radius:6px;font-size:16px}.dw-page-nav p{flex-basis:100%;margin:0;font-size:13px;color:#50677b}.dw-page-nav button,.dw-bottom button{min-height:44px;padding:10px 16px;border:1px solid #adbed0;border-radius:7px;background:#fff;color:#153b60}.dw-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:16px 24px;background:#e9f2fb;font-size:13px}.dw-bottom .primary{color:white;background:#165aa7}.dw-ad-picture{max-width:280px;margin:15px auto;text-align:center;border:2px solid #adc9df;border-radius:5px;overflow:hidden}.dw-ad-picture span{display:block;padding:28px 10px;background:#eef5fc}.dw-ad-picture strong{display:block;padding:9px;border-top:2px dashed #165aa7;background:#d5eaff;font-size:12px}
.editor[data-desk-step] .workspace,.editor[data-desk-step] .settings,.editor[data-desk-step] .page-sidebar{height:auto;max-height:none;overflow:visible}.editor[data-desk-step] .workspace{min-width:0}.editor[data-desk-step] .page-sidebar{max-height:900px;overflow:auto}.editor[data-desk-step] [hidden]{display:none!important}.editor:not([data-desk-step="1"]) .dw-setup,.editor:not([data-desk-step="3"]) .dw-ad,.editor[data-desk-step="1"]>.page-sidebar,.editor[data-desk-step="1"]>.workspace,.editor[data-desk-step="1"]>.settings,.editor[data-desk-step="4"]>.page-sidebar,.editor[data-desk-step="4"]>.workspace,.editor[data-desk-step="4"]>.settings,.editor:is([data-desk-step="1"],[data-desk-step="4"])>#mobileStudio,.editor:is([data-desk-step="1"],[data-desk-step="4"])>.dw-page-nav{display:none!important}
.editor[data-desk-step] .mobile-global,.editor[data-desk-step] .mobile-jump-label,.editor[data-desk-step] .mobile-intro,.editor[data-desk-step] .mobile-checkout{display:none!important}.editor[data-desk-step] #orderDialog{grid-column:1/-1;position:static;transform:none;width:min(650px,calc(100% - 32px));max-height:none;margin:24px auto;border:1px solid #c5d8e8;box-shadow:none;box-sizing:border-box;background:white;color:#172e44}.editor:not([data-desk-step="4"]) #orderDialog{display:none!important}.editor[data-desk-step] #orderQuantity{font-size:18px;min-height:44px}.editor[data-desk-step] #confirmOrder{min-height:48px}.editor[data-desk-step] .settings-title,.editor[data-desk-step] .page-summary{display:none}
@media(max-width:880px){.editor[data-desk-step]{display:flex;flex-direction:column}.dw-steps{display:grid;grid-template-columns:1fr 1fr;padding:12px;gap:6px}.dw-steps button{font-size:13px;padding:8px}.dw-setup,.dw-ad{padding:16px;margin:12px auto}.dw-setup h1,.dw-ad h1{font-size:22px}.dw-settings-home{display:block}.dw-settings-home .variant{flex-direction:row}.dw-settings-home .variant button{flex:1}.dw-page-nav{padding:12px}.dw-page-nav label{flex:1;display:grid;gap:5px;min-width:0}.dw-page-nav select{width:100%}.dw-bottom{position:sticky;bottom:0;z-index:30;padding:12px 10px max(12px,env(safe-area-inset-bottom));font-size:12px}.dw-bottom button{font-size:13px;padding:10px}.editor[data-desk-step] .mobile-page-card{margin:0}.editor[data-desk-step] #mobileStudio{padding-top:0}.editor[data-desk-step] #orderDialog{padding:18px}.editor[data-desk-step] #orderDialog h2{font-size:24px}}

.editor[data-desk-step] #orderDialog :is(#orderSummary,#orderPriceDetail,#orderMessage){font-size:14px;line-height:1.6;color:#405368}
@media(max-width:880px){.editor[data-desk-step] #mobileStudio{width:100%;box-sizing:border-box;padding:12px!important}.editor[data-desk-step] .mobile-page-card{width:100%;box-sizing:border-box}}

/* One responsive preview/settings layout for the guided editor. */
@font-face{font-family:Open;src:url(../../includes/fonts/OpenSans-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:Open;src:url(../../includes/fonts/OpenSans-Bold.ttf);font-weight:700;font-display:swap}
@font-face{font-family:DeskMontserrat;src:url(../../includes/fonts/Montserrat-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:DeskMontserrat;src:url(../../includes/fonts/Montserrat-Bold.ttf);font-weight:700;font-display:swap}
@font-face{font-family:DeskNotoSans;src:url(../../includes/fonts/NotoSans-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:DeskNotoSans;src:url(../../includes/fonts/NotoSans-Bold.ttf);font-weight:700;font-display:swap}
@font-face{font-family:DeskPoppins;src:url(../../includes/fonts/Poppins-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:DeskPoppins;src:url(../../includes/fonts/Poppins-Bold.ttf);font-weight:700;font-display:swap}
@font-face{font-family:DeskRoboto;src:url(../../includes/fonts/Roboto-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:DeskRoboto;src:url(../../includes/fonts/Roboto-Bold.ttf);font-weight:700;font-display:swap}
@font-face{font-family:Lora;src:url(../../includes/fonts/Lora-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:Lora;src:url(../../includes/fonts/Lora-Bold.ttf);font-weight:700;font-display:swap}
@font-face{font-family:DeskMerriweather;src:url(../../includes/fonts/Merriweather-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:DeskMerriweather;src:url(../../includes/fonts/Merriweather-Bold.ttf);font-weight:700;font-display:swap}
@font-face{font-family:DeskLibreBaskerville;src:url(../../includes/fonts/LibreBaskerville-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:DeskLibreBaskerville;src:url(../../includes/fonts/LibreBaskerville-Bold.ttf);font-weight:700;font-display:swap}
@font-face{font-family:DeskCrimsonText;src:url(../../includes/fonts/CrimsonText-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:DeskCrimsonText;src:url(../../includes/fonts/CrimsonText-Bold.ttf);font-weight:700;font-display:swap}
@font-face{font-family:DeskPlayfairDisplay;src:url(../../includes/fonts/PlayfairDisplay-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:DeskPlayfairDisplay;src:url(../../includes/fonts/PlayfairDisplay-Bold.ttf);font-weight:700;font-display:swap}

.editor[data-desk-step]{grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto;max-width:1600px;margin:0 auto}
.editor[data-desk-step]>.page-sidebar{display:none!important}
.editor[data-desk-step]>.workspace{grid-column:1;align-self:start;position:sticky;top:0;padding:26px 30px}
.editor[data-desk-step]>.settings{grid-column:2;position:static;min-width:0;padding:20px 24px}
.editor[data-desk-step] .canvas-area{min-height:0;padding:28px 0 15px;flex:none}
.editor[data-desk-step] .workspace-heading{margin-bottom:8px}
.editor[data-desk-step] .page-arrows{display:none}
.editor[data-desk-step] .settings label{font-size:13px}
.editor[data-desk-step] .settings input:not([type=range]),.editor[data-desk-step] .settings select,.editor[data-desk-step] .settings textarea{font-size:15px;max-width:100%}
.editor[data-desk-step] .settings button{min-height:40px}
.editor[data-desk-step] .settings .helper{font-size:12px}
.editor[data-desk-step] .settings h3{font-size:15px}
.dw-setup{width:calc(100% - 48px);max-width:1400px;margin:24px auto;padding:28px}
.dw-setup-heading{margin-bottom:24px}.dw-setup-heading p{margin:8px 0}
.dw-setup-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:32px;align-items:start}
.dw-live-preview{min-width:0;background:#eef3f8;padding:20px;border-radius:12px;position:sticky;top:20px}
.dw-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}.dw-preview-heading h2{font-size:20px;margin:0}.dw-preview-heading span{color:#526b80;font-size:12px;white-space:nowrap}
#dwSetupSheet{position:relative;width:100%;aspect-ratio:280/140;background:#fffef9;container-type:inline-size;overflow:hidden;font-family:var(--font);box-shadow:0 4px 16px #233d5b1a}
#dwSetupSheet .photo-frame{outline:0;border:0;pointer-events:none}#dwSetupSheet .note{color:var(--accent);-webkit-text-fill-color:var(--accent)}
.dw-preview-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}.dw-preview-footer p{font-size:12px;margin:0}.dw-preview-footer button{min-height:42px;padding:8px 12px;flex-shrink:0;font-size:13px}
.dw-setup-controls{min-width:0}.dw-setup-controls>label:first-child{margin-top:0}.dw-setup .dw-format{margin:18px 0}.dw-format p{font-size:13px;margin:8px 0 12px}
.dw-variant-home .variant{margin:0;gap:8px}.dw-variant-home .variant button{font-size:14px;min-height:44px;padding:8px}
.dw-settings-home{display:block;margin-top:20px}.dw-settings-home h3{font-size:16px;margin:0 0 8px}.dw-settings-home .custom-color-label{display:flex;align-items:center;gap:10px}.dw-settings-home input[type=color]{width:44px;height:40px;padding:3px;flex-shrink:0}
.dw-ad{width:calc(100% - 48px);max-width:none;margin:24px auto 0;padding:20px 24px}.dw-ad h1{font-size:24px}.dw-ad p{margin-bottom:0}
.editor[data-desk-step="3"] .workspace{padding-top:24px}.editor[data-desk-step="3"] .material-line{display:none}
.dw-page-nav select{width:min(560px,100%)}
@media(max-width:1100px) and (min-width:881px){.dw-setup-grid{grid-template-columns:minmax(0,1fr) 300px;gap:22px}.dw-setup{padding:22px}.dw-live-preview{padding:14px}.dw-preview-footer{align-items:flex-start;flex-direction:column}.editor[data-desk-step]{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:880px){
 .mobile-page-preview #sheet.stand-sheet{aspect-ratio:280/30;background:white}.mobile-page-preview #sheet.stand-sheet .sheet-inner{padding:0}
 .mobile-page-preview #sheet.stand-sheet{aspect-ratio:280/30;background:white}.mobile-page-preview #sheet.stand-sheet .sheet-inner{padding:0}
 .dw-setup{width:calc(100% - 24px);padding:16px;margin:12px auto}.dw-setup-heading{margin-bottom:16px}.dw-setup-grid{grid-template-columns:minmax(0,1fr);gap:24px}.dw-live-preview{position:static;padding:12px}.dw-preview-heading{margin-bottom:12px}.dw-preview-heading h2{font-size:18px}.dw-preview-heading span{font-size:11px}.dw-preview-footer{gap:8px;align-items:flex-start;flex-wrap:wrap}.dw-preview-footer p{flex:1;min-width:130px}.dw-preview-footer button{font-size:12px;min-height:40px}.dw-ad{width:calc(100% - 24px);margin:12px auto;padding:16px}.dw-ad h1{font-size:22px}.dw-setup-controls{width:100%}.dw-bottom{position:static}.dw-page-nav{gap:8px}.dw-page-nav p{font-size:12px}.dw-steps button{min-width:0}.dw-settings-home .variant{flex-direction:row}
}

.editor[data-desk-step="4"] #orderDialog{width:calc(100% - 48px);max-width:1400px;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;padding:24px}
#orderDialog>.preview-top{grid-column:1/-1;margin-bottom:0}.dw-review{min-width:0;background:#edf3f8;border-radius:12px;padding:20px}.dw-review h2{margin:0 0 10px;font-size:22px}.dw-review p{font-size:14px;line-height:1.6;margin:0 0 18px;color:#405368}.dw-review-nav{display:flex;align-items:center;gap:10px;margin-bottom:20px}.dw-review-nav select{min-width:0;min-height:44px;font-size:15px}.dw-review button{min-height:44px;padding:10px 14px}.dw-review-nav button{flex-shrink:0}#dwReviewEdit{margin-top:18px}
#dwReviewSheet{position:relative;width:100%;aspect-ratio:280/140;container-type:inline-size;overflow:hidden;background:#fffef9;font-family:var(--font);box-shadow:0 4px 16px #233d5b20}#dwReviewSheet.stand-sheet{aspect-ratio:280/30;background:white}#dwReviewSheet.stand-sheet .sheet-inner{padding:0}#dwReviewSheet .photo-frame{outline:0;border:0;pointer-events:none}#dwReviewSheet .move-frame{display:none}#dwReviewSheet .note{color:var(--accent);-webkit-text-fill-color:var(--accent)}
.dw-order-controls{min-width:0}.dw-order-controls>label{font-size:15px}.editor[data-desk-step="4"] #orderSummary{text-align:left;margin-top:0}
@media(max-width:880px){.editor[data-desk-step="4"] #orderDialog{display:flex;flex-direction:column;gap:20px;width:calc(100% - 24px);padding:16px}.dw-review{padding:12px}.dw-review h2{font-size:20px}.dw-review-nav{gap:6px}.dw-review-nav button{padding:8px 10px}.dw-review-nav select{font-size:14px}}
html[data-theme=dark] :is(.dw-live-preview,.dw-review){background:#172631;color:#f3f7fc}html[data-theme=dark] :is(.dw-preview-heading span,.dw-review p){color:#cadbe8}

/* Larger centered cover, equal 8 mm gaps around the title; print renderer matches. */
.cover-center .photo-frame{left:3.571429cqw;top:3.571429cqw;width:92.857143cqw;height:42.857143cqw}
.cover-center:has(.cover-own-text) .photo-frame{height:35.714286cqw}
.cover-center .cover-own-text{top:42.142857cqw;height:5cqw}
.stand-canvas .ad-copy{display:flex;flex-direction:column;align-items:stretch;padding:0;overflow:hidden;line-height:1.2}
.stand-canvas .ad-copy>span{display:block;width:100%;overflow-wrap:anywhere}
#sheet .stand-canvas .ad-copy:has(>span:empty):before{content:attr(data-placeholder);opacity:.5}
#coverBandControls{display:grid;gap:12px;margin-top:14px}
#coverBandControls[hidden]{display:none}
#coverBandControls input[type=color]{width:100%;height:36px;padding:3px}

.review-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.review-actions button{margin-top:0!important}.review-issues{margin:20px 0;background:#fff;border:1px solid #d5dfe8;border-radius:10px;padding:16px;color:#273e52}.review-issues ul{max-height:220px;overflow:auto;list-style:none;padding:0;margin:10px 0 0}.review-issues li+li{border-top:1px solid #e5eaf0}.review-issues li button{border:0;background:none;color:#875210;text-align:left;width:100%;font-size:13px;padding:10px 0}.review-issues p{font-size:12px}.review-approval{display:flex!important;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5;margin:18px 0}.review-approval input{width:20px!important;height:20px;flex-shrink:0;margin-top:1px}
.dw-order-controls[hidden],.calendar-studio-order-sidebar[hidden]{display:none!important}
#orderDialog:has(.dw-order-controls[hidden]){grid-template-columns:minmax(0,1fr)!important;max-width:1040px!important}
.dw-review,.cw-review{perspective:1100px}#dwReviewSheet,#cwReviewCanvas{backface-visibility:hidden}


/* Cover A/B use the same full-photo crop and 280 x 140 mm geometry in print. */
.cover-sheet{background:#fff!important}.cover-page-background{position:absolute;inset:0;pointer-events:none}
.cover-sheet .sheet-inner:has(.cover-band-a),.cover-sheet .sheet-inner:has(.cover-column-b){padding:0}
.cover-band-a,.cover-column-b{display:block;isolation:isolate}
.cover-band-a .photo-frame,.cover-column-b .photo-frame{position:absolute;inset:0;border:0!important;border-radius:0}
.cover-band-a .photo-frame:after,.cover-column-b .photo-frame:after{display:none}
.cover-band-a .photo-frame img,.cover-column-b .photo-frame img{width:calc(100% + 2.142857cqw);height:calc(100% + 2.142857cqw);left:-1.071429cqw;top:-1.071429cqw;max-width:none}
.cover-design-panel{position:absolute;background:var(--cover-panel);color:var(--cover-ink);pointer-events:none}
.cover-band-a .cover-design-panel{left:0;right:0;top:75%;bottom:0}
.cover-column-b .cover-design-panel{left:0;top:0;bottom:0;width:32%}
.cover-design-panel .cover-own-text{position:absolute;color:inherit;text-align:left;justify-content:flex-start;overflow:hidden;display:flex;align-items:center;font-size:2.897817cqw;font-weight:700}
.cover-design-panel .cover-own-text>span{display:block;width:100%;overflow-wrap:anywhere}
.cover-band-a .cover-own-text{left:4.285714cqw;top:1.785714cqw;width:67.857143cqw;height:8.928571cqw}
.cover-column-b .cover-own-text{left:4.285714cqw;top:7.857143cqw;width:23.428571cqw;height:19.285714cqw}
.cover-design-year{position:absolute;display:flex;align-items:center;font-family:var(--font);font-size:4.157738cqw;line-height:1.2;white-space:nowrap}
.cover-band-a .cover-design-year{right:4.285714cqw;top:1.785714cqw;width:18.571429cqw;height:8.928571cqw;justify-content:flex-end}
.cover-column-b .cover-design-year{left:4.285714cqw;top:33.571429cqw;width:23.428571cqw;height:9.285714cqw}
