@font-face{font-family:Manrope;src:url('fonts/Manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}
@font-face{font-family:'Noto Sans';src:url('fonts/NotoSans.ttf') format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:Montserrat;src:url('fonts/Montserrat.ttf') format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:Lora;src:url('fonts/Lora.ttf') format('truetype');font-weight:400 700;font-display:swap}
@font-face{font-family:'Dancing Script';src:url('fonts/DancingScript.ttf') format('truetype');font-weight:400 700;font-display:swap}
/* Original interface. Existing shop palette and locally hosted Manrope. */
:root{color-scheme:light;--ink:#07111f;--text:#263244;--muted:#657184;--line:#e4e6ed;--pink:#cf2f80;--purple:#8c35e8;--soft:#fff7fb;--gradient:linear-gradient(110deg,#cf2f80,#8c35e8)}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:#f8f9fc;color:var(--text);font:13px/1.55 Manrope,system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.38}button,input,select,textarea,summary,canvas{outline-offset:3px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,canvas:focus-visible{outline:3px solid var(--purple)}button{color:inherit}h1,h2,h3,p{margin-top:0}h2{font-size:17px;letter-spacing:-.4px;color:var(--ink);margin-bottom:18px}h3{font-size:12px;color:var(--ink);margin:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#studio{max-width:1920px;padding:0 22px 14px;margin:auto}.brand-bar{display:flex;align-items:center;justify-content:space-between;min-height:68px;margin-bottom:14px;border-bottom:1px solid var(--line)}.wordmark{display:flex;align-items:center;gap:7px;font-size:21px;font-weight:800;letter-spacing:-1.2px;line-height:1;color:var(--ink)}.wordmark-light{font-weight:400}.brand-logo{width:44px;height:44px;object-fit:contain;mix-blend-mode:multiply}.wordmark small{display:block;font-size:8px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-top:6px;font-weight:600}.language{margin:0}.language select{min-height:34px;font-size:11px;padding-block:5px}.studio-layout{display:grid;grid-template-columns:354px minmax(0,1fr);gap:16px;align-items:start}.drawer-closed .studio-layout{grid-template-columns:65px minmax(0,1fr)}.controls{display:flex;align-items:flex-start;min-width:0;gap:8px}.editor-tabs{display:flex;flex-direction:column;gap:5px;flex:0 0 65px;padding:5px;background:white;border:1px solid var(--line);border-radius:15px}.editor-tabs button{border:0;background:none;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:70px;padding:8px 2px;font-size:10px;font-weight:700;color:var(--muted)}.editor-tabs button>span:first-child{font-size:24px;line-height:1;font-weight:400}.editor-tabs button[aria-selected=true]{color:var(--pink);background:var(--soft)}.editor-tabs button:hover{background:#f7f5fa}.tool-drawer{position:relative;min-width:0;flex:1;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 4px 18px #07111f04;overflow:hidden}.close-tools{position:absolute;right:11px;top:12px;background:none;border:0;z-index:1;font-size:22px;color:var(--muted);width:30px;height:30px;border-radius:8px}.close-tools:hover{background:#f5f5f8}.control-panel{padding:23px 19px}.control-panel>h2{padding-right:25px}.panel-intro{font-size:11px;color:var(--muted);line-height:1.7;margin:-7px 0 18px}label{display:flex;flex-direction:column;gap:7px;margin:16px 0;font-size:11px;font-weight:600}input[type=range]{width:100%;accent-color:var(--pink);height:27px;margin:0}input[type=number],select,textarea{width:100%;min-height:39px;border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:#fff;color:var(--ink)}textarea{resize:vertical;min-height:85px;max-height:200px}input[type=color]{width:100%;height:39px;border:1px solid var(--line);padding:4px;border-radius:8px;background:white}input[type=checkbox]{width:15px;height:15px;min-width:15px;accent-color:var(--pink);margin:2px 0}.checkbox{display:flex;flex-direction:row;align-items:flex-start;gap:8px;font-weight:400;margin:10px 0}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}.field-pair>*{min-width:0}output{color:var(--pink);font-weight:700;font-variant-numeric:tabular-nums}.hint{font-size:10px;color:var(--muted);line-height:1.7;margin:10px 0 0}.advanced{margin-top:18px;font-size:11px;color:var(--muted)}summary{cursor:pointer;font-weight:600;list-style-position:inside}.advanced[open]>summary{color:var(--ink);margin-bottom:12px}.control-divider{border-top:1px solid var(--line);margin:20px 0}.section-line{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:18px 0 4px;font-size:11px;font-weight:700}.section-line .text-button{font-size:10px;padding:4px}.button-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.subtle,.primary,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;min-height:35px;padding:7px 10px;font-size:11px;font-weight:700;border:1px solid var(--line);background:#fff}.subtle:hover:not(:disabled){border-color:var(--pink);color:var(--pink)}.text-button{background:none;border:0;color:var(--muted)}.text-button:hover:not(:disabled){color:var(--pink)}.primary{border:0;color:white;background:var(--gradient);min-height:39px;padding:10px 17px}.primary:disabled{background:#e7e9ef;color:#9399a5;opacity:1}.full{width:100%}.danger{color:#a63551}.shape-options{display:flex;gap:5px}.shape-options button{display:flex;align-items:center;flex-direction:column;gap:9px;flex:1;min-width:0;padding:13px 3px 10px;background:#fff;border:1px solid var(--line);border-radius:9px;font-size:9px;font-weight:600}.shape-icon{display:block;border:1.5px solid currentColor;width:24px;height:21px;color:var(--muted)}.shape-icon.square{width:21px}.shape-icon.landscape{height:16px;margin:2.5px 0}.shape-icon.portrait{width:16px}.shape-options button[aria-pressed=true],.size-options button[aria-pressed=true],.collage-options button[aria-pressed=true]{border-color:var(--pink);background:var(--soft);color:var(--pink)}.shape-options button[aria-pressed=true] .shape-icon{color:var(--pink)}.size-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:17px}.size-options button{min-height:41px;border:1px solid var(--line);border-radius:8px;background:white;font-size:11px;font-weight:600}.upload{position:relative;border:1px dashed #d5bfdc;border-radius:10px;background:linear-gradient(140deg,#fff9fc,#fbf8ff);padding:19px 6px;text-align:center;align-items:center;cursor:pointer;gap:6px;margin:0;overflow:hidden}.upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.upload:focus-within{outline:3px solid var(--purple)}.upload strong{font-size:12px;color:var(--ink)}.upload>span:last-child{font-size:9px;font-weight:400;color:var(--muted)}.upload-icon{color:var(--pink);margin-bottom:3px}.upload-icon svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.5}.sample-button{border:0;background:none;width:100%;font-size:10px;padding:12px 0;color:var(--purple)}.sample-button>span:first-child{margin-right:5px}.sample-button>span:last-child{margin-left:5px}.photo-list{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:8px}.photo-list:empty{display:none}.photo-list button{padding:5px;background:#fff;border:1px solid var(--line);border-radius:8px;font-size:9px;text-align:left}.photo-list img{display:block;width:100%;height:62px;object-fit:cover;border-radius:4px;margin-bottom:4px}.photo-list button[aria-pressed=true]{border-color:var(--pink);color:var(--pink);background:var(--soft)}.photo-zoom-control{display:grid;grid-template-columns:31px 1fr 31px;gap:7px;align-items:center}.photo-zoom-control button{font-size:18px;padding:0}.zoom-label>span{display:flex;justify-content:space-between;gap:8px}.photo-options{padding-top:12px;border-top:1px solid var(--line)}.photo-position{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;font-size:10px}.position-buttons{display:flex;gap:4px}.position-buttons button{font-size:15px;min-width:31px;padding:4px}.photo-actions{justify-content:space-between;margin-top:15px}.image-info{font-size:9px;color:var(--muted);overflow-wrap:anywhere;margin:12px 0 0}.layers{display:flex;gap:5px;flex-wrap:wrap;margin:13px 0}.layers:empty{display:none}.layers button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--line);border-radius:7px;background:#fafafe;padding:5px 8px;font-size:10px}.layers button.active{color:var(--pink);border-color:var(--pink)}fieldset{border:0;margin:0;padding:0;min-width:0}.collage-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.collage-options button{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid var(--line);background:white;padding:12px 8px;border-radius:10px;font-size:10px}.layout-icon{display:grid;grid-template-columns:1fr;width:72px;height:57px;gap:3px;color:var(--muted)}.layout-icon i{border:1px solid currentColor;background:#f5f6f9}.layout-icon[data-grid=pair],.layout-icon[data-grid=grid]{grid-template-columns:1fr 1fr}.layout-icon[data-grid=stack],.layout-icon[data-grid=grid]{grid-template-rows:1fr 1fr}.collage-options [aria-pressed=true] .layout-icon{color:var(--pink)}.collage-spacing{margin:20px 0}
.workspace{display:flex;flex-direction:column;gap:11px;min-width:0}.preview-card{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.canvas-stage{position:relative;height:clamp(460px,calc(100dvh - 260px),900px);padding:14px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#fff 20%,#f7f8fc 95%);overflow:hidden}#preview{display:block;width:100%;height:100%;touch-action:none;cursor:grab;min-width:0}#preview:active{cursor:grabbing}.empty-state{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;text-align:center;width:240px;max-width:80%}.canvas-add{display:grid;place-items:center;width:54px;height:54px;border:0;border-radius:50%;color:#fff;background:var(--gradient);font-size:34px;line-height:1;margin-bottom:13px;box-shadow:0 5px 18px #cf2f8020}.empty-state h3{font-size:15px;margin-bottom:7px}.empty-state p{font-size:10px;color:var(--muted);margin-bottom:4px}.empty-state .text-button{font-size:10px;color:var(--purple)}.canvas-bottom-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;border-top:1px solid var(--line)}.history-tools .subtle{font-size:19px;min-width:35px;padding:2px;border:0;background:#f8f9fc}.view-zoom,.view-actions{display:flex;align-items:center;gap:5px}.view-zoom .subtle{min-width:33px;font-size:18px;padding:2px 6px}.view-zoom output{min-width:37px;text-align:center;color:var(--ink);font-size:10px}.view-actions>.subtle{font-size:19px;min-width:35px;padding:2px 6px}.view-menu{position:relative;color:var(--muted);font-size:11px}.view-menu>summary{padding:8px 10px;border-radius:8px;background:#f8f9fc;list-style:none}.view-menu[open]>div{position:absolute;bottom:44px;right:0;z-index:5;background:white;box-shadow:0 6px 30px #07111f20;border:1px solid var(--line);padding:14px;border-radius:10px;width:225px;display:flex;flex-direction:column;gap:5px}.tabs{display:flex;padding:3px;background:#f5f6fa;border-radius:8px;gap:3px}.tabs button{border:0;background:none;padding:7px 9px;border-radius:5px;font-size:10px}.tabs button.active{background:#fff;box-shadow:0 1px 4px #07111f12}.preview-help{font-size:9px;color:var(--muted);text-align:center;min-height:14px;margin:0;padding:0 12px 9px}.design-bottom-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:1px 3px}.design-bottom-bar .primary{min-height:38px}.design-bottom-bar .text-button{font-size:12px;padding-inline:0;color:var(--ink)}.quality-summary{border:0;background:none;color:var(--muted);font-size:10px;text-align:center;padding:7px}.quality-summary.warning{color:#9c6518}.status-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.mini-card{border:1px solid var(--line);border-radius:10px;padding:13px;background:white;font-size:11px}.mini-card p{font-size:10px;color:var(--muted);margin:5px 0 0}.mini-card.warning{background:#fffaf1;border-color:#e5cf9e}.export-card{background:white;border:1px solid var(--line);border-radius:12px;padding:18px}.export-heading{display:flex;justify-content:space-between;gap:14px}.export-heading h2{font-size:14px;margin:0}.output-settings{margin:0;font-size:10px}.output-settings select{font-size:11px}.export-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px}.acknowledgement{font-size:11px}.message{font-size:10px;line-height:1.7;color:var(--muted);margin:0;min-height:0;overflow-wrap:anywhere}.message:empty{display:none}.message.error{color:#a22a42}.studio-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-top:1px solid var(--line);margin-top:17px;padding-top:9px;font-size:9px;color:var(--muted)}.footer-actions{display:flex;align-items:flex-start;gap:15px}.footer-actions .text-button{padding:0;min-height:18px;font-size:9px}.scope{max-width:640px}.scope summary{text-align:right;font-size:9px;font-weight:400}.scope p{font-size:11px;margin:10px 0;line-height:1.8}.drag-over{outline:3px solid var(--pink);outline-offset:-4px;background:#fff1f8!important}#preview-dialog{width:min(1600px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:16px;background:white;color:var(--text)}#preview-dialog::backdrop{background:#07111fa0}#preview-dialog .preview-card{border:0;border-radius:0}#preview-dialog .canvas-stage{height:calc(100dvh - 150px);max-height:1000px}body:has(#preview-dialog[open]){overflow:hidden}
@media(max-width:1100px) and (min-width:761px){#studio{padding-inline:15px}.studio-layout{grid-template-columns:324px minmax(0,1fr);gap:12px}.editor-tabs{flex-basis:60px}.control-panel{padding:21px 15px}.design-bottom-bar{flex-wrap:wrap;gap:7px}.quality-summary{max-width:180px}.canvas-bottom-bar{padding:10px}.canvas-stage{padding:10px}.drawer-closed .studio-layout{grid-template-columns:60px minmax(0,1fr)}}
@media(max-width:760px){#studio{padding:0 10px 12px}.brand-bar{min-height:59px;margin-bottom:10px}.wordmark{font-size:19px}.brand-logo{width:38px;height:38px}.studio-layout,.drawer-closed .studio-layout{display:flex;flex-direction:column;gap:10px}.workspace{display:contents}.preview-card{order:1;width:100%}.controls{order:2;width:100%;display:flex;flex-direction:column;gap:9px}.editor-tabs{flex:none;width:100%;flex-direction:row;padding:4px}.editor-tabs button{flex:1;min-height:53px;flex-direction:row;gap:6px;font-size:10px}.editor-tabs button>span:first-child{font-size:21px}.tool-drawer{flex:none;width:100%}.control-panel{padding:20px}.photo-list{grid-template-columns:repeat(4,1fr)}.photo-list img{height:54px}.design-bottom-bar{order:3;width:100%;gap:8px;flex-wrap:wrap}.design-bottom-bar .text-button{font-size:11px}.design-bottom-bar .primary{font-size:11px}.quality-summary{font-size:9px;max-width:140px}.canvas-stage{height:clamp(300px,46dvh,470px);padding:7px}.canvas-bottom-bar{padding:9px 10px;gap:7px}.history-tools{gap:2px}.history-tools .subtle{min-width:28px;font-size:19px}.view-zoom{gap:2px}.view-zoom .subtle{min-width:28px;min-height:35px}.view-zoom output{min-width:33px;font-size:9px}.view-zoom .text-button{padding:4px 5px}.view-actions{gap:4px}.view-menu>summary{font-size:10px;padding:8px}.preview-help{font-size:8px}#review-panel{order:4;width:100%}.message{order:5;width:100%}.status-grid{gap:8px}.mini-card{padding:11px;font-size:10px}.mini-card p{font-size:9px}.export-card{padding:15px}.export-actions{flex-wrap:wrap;gap:10px}.export-actions .primary{width:100%}.studio-footer{font-size:8px;gap:10px;flex-direction:column}.footer-actions{justify-content:space-between;width:100%}.scope{max-width:75%}.scope summary{text-align:right}.collage-options{grid-template-columns:repeat(4,1fr);gap:7px}.collage-options button{padding:10px 3px;font-size:9px}.layout-icon{width:55px;height:44px}.shape-options{gap:9px}.shape-options button{font-size:10px}.size-options{grid-template-columns:repeat(4,1fr);gap:7px}.size-options button{font-size:10px}.photo-position{flex-wrap:nowrap}#preview-dialog .canvas-stage{height:calc(100dvh - 150px)}}
@media(prefers-reduced-motion:no-preference){button{transition:background .12s,color .12s,border-color .12s}}

.photo-fit-buttons{display:flex;gap:7px;margin-top:10px}.photo-fit-buttons button{flex:1;font-size:10px;padding:6px}.coverage-note{color:var(--muted);background:#f5f6f9;border-radius:7px;padding:9px}#photo-overview[aria-pressed=true]{color:var(--purple);background:#f8f2ff;border-radius:8px}

/* Keep the full shop catalogue easy to scan without displacing the photo preview. */
.size-options{max-height:329px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d5bfdc transparent;padding:3px;margin:14px -3px 0}.size-options button{padding:7px 3px;white-space:nowrap}.size-count{font-size:9px;margin-top:8px}

.preview-switch{position:absolute;top:12px;right:12px;z-index:2;display:flex;gap:2px;padding:3px;background:#ffffffed;border:1px solid var(--line);border-radius:10px;box-shadow:0 2px 10px #07111f08}.preview-switch button{font-size:11px;font-weight:700;border:0;background:none;border-radius:6px;min-height:36px;padding:6px 12px;color:var(--muted)}.preview-switch button[aria-pressed=true]{color:var(--pink);background:var(--soft)}
.canvas-stage.is-finished{background:radial-gradient(ellipse at 48% 38%,#fff 0%,#faf9f7 60%,#f1f0ef 100%)}

.frame-options{border-top:1px solid var(--line);padding:12px 18px 16px;background:#fff}.sides-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.sides-heading h3{font-size:13px}.sides-heading button{font-size:11px;min-height:44px;padding:6px 10px}.frame-finishes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.frame-finishes button{display:flex;align-items:center;gap:12px;min-height:76px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:left}.frame-finishes button>span:last-child{display:flex;flex-direction:column;gap:3px}.frame-finishes strong{font-size:12px;font-weight:700}.frame-finishes small{font-size:11px;line-height:1.45;color:var(--muted)}.frame-finishes button[aria-pressed=true]{color:var(--pink);border-color:var(--pink);background:var(--soft)}.frame-finishes button:hover{border-color:var(--pink)}
.finish-icon{display:block;position:relative;flex:none;width:30px;height:34px;background:linear-gradient(145deg,#e6dccb 38%,#99aaa1 39% 63%,#617c76 64%);border-radius:2px;box-shadow:0 2px 4px #07111f18;transform:skewY(-4deg)}.finish-icon:after{content:'';position:absolute;top:-2px;left:100%;width:7px;height:100%;transform:skewY(-25deg);transform-origin:left bottom;border-radius:0 1px 1px 0;background:linear-gradient(145deg,#d7c8af 39%,#879c92 40% 63%,#58766c 64%)}.white-icon:after{background:#fff;box-shadow:inset -1px 0 2px #07111f25}.colour-icon:after{background:var(--side-colour,#07111f);box-shadow:inset -1px 0 2px #07111f25}.frame-colour{margin:12px 0 0;display:flex;flex-direction:row;align-items:center;gap:12px;font-size:12px}.frame-colour input[type=color]{width:60px;height:38px;padding:3px}
@media(max-width:1100px){.frame-finishes button{gap:8px;padding:10px}.finish-icon{width:24px;height:29px;margin-right:3px}.frame-finishes strong{font-size:11px}.frame-finishes small{font-size:10px}}
@media(max-width:760px){.preview-switch{top:9px;right:9px}.preview-switch button{font-size:10px;padding:5px 9px;min-height:34px}.frame-options{padding:10px 13px 14px}.frame-finishes{grid-template-columns:1fr;gap:7px}.frame-finishes button{min-height:63px;gap:14px;padding:10px 13px}.frame-finishes strong{font-size:12px}.frame-finishes small{font-size:11px}.finish-icon{width:24px;height:29px;margin-right:3px}}
#preview-dialog .canvas-stage{height:calc(100dvh - 215px)}#preview-dialog:has(#frame-options:not([hidden])) .canvas-stage{height:calc(100dvh - 425px);min-height:220px}#preview-dialog{overflow-y:auto}
@media(max-width:760px){#preview-dialog:has(#frame-options:not([hidden])) .canvas-stage{height:calc(100dvh - 560px);min-height:220px}}

@media(min-width:761px){.preview-card:has(#frame-options:not([hidden])) .canvas-stage{height:clamp(420px,calc(100dvh - 460px),800px)}#preview-dialog .preview-card:has(#frame-options:not([hidden])) .canvas-stage{height:calc(100dvh - 425px)}}

/* Explicit colour confirmation and simple inspection controls. */
.frame-colour .colour-swatch{width:24px;height:24px;border-radius:4px;background:var(--side-colour);border:1px solid #07111f25}.frame-colour button{min-height:44px;font-variant-numeric:tabular-nums}.continuous-icon:after{background:linear-gradient(145deg,#d7c8af 20%,#879c92 21% 47%,#58766c 48%)}.frame-finishes button:disabled{opacity:.55}.preview-help{font-size:10px;line-height:1.6}.canvas-stage.is-finished #preview{cursor:grab}.colour-dialog{width:min(390px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;margin:auto;padding:24px;border:1px solid var(--line);border-radius:16px;background:white;color:var(--ink);box-shadow:0 16px 70px #07111f38}.colour-dialog::backdrop{background:#07111f80}.colour-dialog h2{font-size:20px;margin:0 0 7px}.colour-dialog>p{font-size:13px;color:var(--muted);line-height:1.6;margin-bottom:17px}.colour-map-wrap{position:relative;width:100%;height:180px;border-radius:8px}.colour-map-wrap canvas{display:block;width:100%;height:100%;border-radius:8px;cursor:crosshair;touch-action:none}.colour-map-wrap>span{position:absolute;pointer-events:none;width:16px;height:16px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #07111fa0;transform:translate(-50%,-50%)}.colour-dialog label{font-size:12px;margin:0}.colour-dialog input{font-size:14px;min-height:44px}.colour-hue{margin:14px 0!important;gap:3px}.colour-hue input{accent-color:var(--pink);background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);height:12px;min-height:28px;border-radius:20px}.colour-values{display:grid;grid-template-columns:66px 1fr;gap:14px;align-items:end}.colour-values>div{height:44px;border-radius:8px;border:1px solid var(--line)}.colour-rgb{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.colour-rgb input{min-width:0;width:100%}.colour-dialog input[aria-invalid=true]{border-color:#a22a42}.colour-dialog>.colour-error{font-size:11px;color:#a22a42;margin:12px 0 0}.colour-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.colour-dialog-actions button{min-height:44px;min-width:95px;font-size:14px}
@media(min-width:761px) and (max-width:1250px){.frame-finishes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.frame-finishes{grid-template-columns:1fr}.preview-help{font-size:10px}.photo-zoom-control{grid-template-columns:44px 1fr 44px}.photo-zoom-control button,.photo-fit-buttons button{min-height:44px}.colour-dialog{padding:20px}.colour-dialog h2{font-size:19px}.colour-dialog>p{font-size:12px}}
.colour-hue input[type=range]{appearance:none;-webkit-appearance:none;background:transparent;height:36px;min-height:36px;cursor:pointer}.colour-hue input[type=range]::-webkit-slider-runnable-track{height:12px;border-radius:20px;background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.colour-hue input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:22px;border-radius:50%;margin-top:-5px;background:#fff;border:2px solid #657184;box-shadow:0 1px 3px #07111f30}.colour-hue input[type=range]::-moz-range-track{height:12px;border-radius:20px;background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.colour-hue input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#fff;border:2px solid #657184}

.production-card{margin-bottom:12px}.production-card .export-actions>.hint{max-width:440px;margin:0}.production-warning{color:#9c6518;background:#fffaf1;padding:9px;border-radius:7px}#production-status:empty{display:none}#production-cancel{min-height:44px}

.export-rights{margin:12px 0;font-size:12px}.export-card:not(.production-card) .export-actions{justify-content:flex-end}

/* On phones, one clear task at a time. Desktop keeps the full editing workspace. */
.mobile-steps,.mobile-intro,.mobile-navigation,.mobile-photo-tools{display:none}
@media(max-width:760px){
  #studio{padding-bottom:124px}
  .brand-bar{margin-bottom:0}
  .mobile-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:sticky;top:0;z-index:6;background:#f8f9fcf5;backdrop-filter:blur(12px);padding:10px 0 8px;gap:4px;border-bottom:1px solid var(--line)}
  .mobile-steps button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:12px;font-weight:700;padding:5px 2px}
  .mobile-steps button>span:first-child{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e9eaf0;font-size:11px;flex:none}
  .mobile-steps button[aria-current=step]{color:var(--pink);background:var(--soft)}
  .mobile-steps button[aria-current=step]>span:first-child{background:var(--pink);color:white}
  .mobile-steps button:disabled{opacity:.55}
  .mobile-intro{display:block;padding:17px 5px 12px}
  .mobile-intro h2{font-size:20px;margin:0 0 5px}
  .mobile-intro p{font-size:13px;color:var(--muted);margin:0;line-height:1.6}
  .controls>.editor-tabs,.close-tools,.design-bottom-bar{display:none}
  .mobile-photo-tools{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:11px;background:white}
  .mobile-photo-tools button{flex:1;min-height:44px;border:0;border-radius:7px;background:none;font-size:13px;font-weight:700;color:var(--muted)}
  .mobile-photo-tools button[aria-pressed=true]{background:var(--soft);color:var(--pink)}
  #studio[data-mobile-step=size] .preview-card,#studio[data-mobile-step=size] .mobile-photo-tools,
  #studio[data-mobile-step=photo][data-has-design=false] .preview-card,
  #studio[data-mobile-step=sides] .controls,#studio[data-mobile-step=review] .controls{display:none}
  #studio:not([data-mobile-step=sides]) .frame-options{display:none}
  #studio[data-mobile-step=photo] .controls{scroll-margin-top:76px}
  #tool-drawer{scroll-margin-top:76px}
  .control-panel{padding:18px}
  .control-panel h2{font-size:18px;margin-bottom:14px}
  #studio[data-mobile-step=size] #panel-size>h2,#studio[data-mobile-step=size] #panel-size>.panel-intro,
  #studio[data-mobile-step=photo] #panel-photo>h2{display:none}
  #studio[data-mobile-step=size] #edge-options{display:none}
  .shape-options button{min-height:80px;font-size:13px}
  .size-options{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible;gap:8px}
  .size-options button{min-height:46px;font-size:13px}
  .size-count{font-size:12px}
  .canvas-stage{height:clamp(250px,35dvh,360px)}
  .canvas-bottom-bar{flex-wrap:wrap;gap:4px;padding:8px}
  .history-tools .subtle,.view-zoom .subtle,.view-actions>.subtle{min-height:44px;min-width:32px}
  .view-zoom output{font-size:12px;min-width:39px}
  .view-zoom .text-button,.view-menu>summary{min-height:44px;font-size:12px;display:flex;align-items:center;justify-content:center}
  .view-zoom .text-button{padding-inline:6px}
  .preview-switch button{min-height:44px;font-size:12px}
  .preview-help{font-size:12px;padding:0 10px 10px}
  .frame-options{padding:13px}
  .frame-finishes{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .frame-finishes button{align-items:flex-start;gap:8px;padding:11px 9px;min-height:109px}
  .finish-icon{width:18px;height:23px;margin:3px 4px 0 0}
  .frame-finishes strong{font-size:13px;line-height:1.45}
  .frame-finishes small{font-size:12px;line-height:1.5}
  .sides-heading h3{font-size:15px}
  .sides-heading button{font-size:12px}
  .upload{padding:24px 10px;gap:8px}
  .upload strong{font-size:18px}
  .upload>span:last-child{font-size:13px}
  .sample-button{font-size:13px;min-height:48px}
  .section-line{font-size:13px}
  .section-line .text-button,.photo-fit-buttons button,#photo-overview{font-size:13px;min-height:44px}
  .crop-hint,.image-info,.hint{font-size:12px}
  .control-panel input:not([type=range]):not([type=checkbox]):not([type=file]),.control-panel select,.control-panel textarea{font-size:16px}
  .collage-options button{font-size:12px;min-height:82px}
  .photo-list button{font-size:12px}
  .mobile-navigation{display:block;position:fixed;bottom:0;left:0;right:0;z-index:7;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:9px 14px max(12px,env(safe-area-inset-bottom));box-shadow:0 -3px 18px #07111f08}
  .mobile-navigation-info{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;margin-bottom:7px}
  .mobile-navigation-info>span{color:var(--muted);font-size:12px;text-align:right;max-width:65%;line-height:1.4}
  .mobile-navigation-actions{display:flex;gap:9px}
  .mobile-navigation-actions button{min-height:46px;font-size:14px}
  #mobile-back{min-width:85px}
  #mobile-next{flex:1}
  #studio[data-mobile-step=review] #mobile-back{width:100%}
  #review-panel .mini-card{font-size:13px}
  #review-panel .mini-card p{font-size:12px}
  #review-panel .export-rights{font-size:14px;min-height:44px}
  #review-panel .export-actions button{min-height:48px;font-size:14px}
  .studio-footer{font-size:11px}
  .footer-actions .text-button,.scope summary{min-height:44px;font-size:12px}
  #preview-dialog .frame-options{display:none}
  #preview-dialog .canvas-stage,#preview-dialog:has(#frame-options:not([hidden])) .canvas-stage{height:calc(100dvh - 190px)}
}
@media(max-width:359px){.mobile-steps button{font-size:11px;gap:3px}.mobile-steps button>span:first-child{width:18px;height:18px}.canvas-bottom-bar .history-tools{display:none}.frame-finishes button{min-height:124px}}
.mobile-finish-description{display:none}
@media(max-width:760px){
  .mobile-photo-tools{width:100%}
  #studio[data-mobile-step=sides] .canvas-stage{height:clamp(180px,27dvh,260px)}
  .frame-finishes .finish-description{display:none}
  .frame-finishes .mobile-finish-description{display:block}
  .frame-finishes button{min-height:90px;gap:6px}
  .frame-finishes .finish-icon{display:none}
  .frame-finishes strong{font-size:13px}
  .frame-finishes small{font-size:12px}
}
@media(max-width:760px){
  #mobile-title{scroll-margin-top:78px}
  #studio[data-mobile-step=sides] .history-tools,#studio[data-mobile-step=review] .history-tools{display:none}
  #studio[data-mobile-step=sides] .canvas-bottom-bar,#studio[data-mobile-step=review] .canvas-bottom-bar{justify-content:center}
}

/* Photo selection and removal are separate sibling buttons: no nested targets. */
.photo-item{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;min-width:0}
.photo-item:has(.photo-select[aria-pressed=true]){border-color:var(--pink);background:var(--soft)}
.photo-list .photo-select{display:block;width:100%;border:0;border-radius:0;background:transparent;padding:6px;font-size:11px}
.photo-list .photo-select[aria-pressed=true]{background:transparent}
.photo-list .photo-remove{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:44px;border:0;border-top:1px solid var(--line);border-radius:0;background:#fff9fb;color:#a63551;text-align:center;font-size:11px;font-weight:700;padding:6px}
.photo-list .photo-remove>span:first-child{font-size:21px;line-height:1;font-weight:400}
.photo-list .photo-remove:hover:not(:disabled){background:#ffeaf2}
.photo-list button:focus-visible{outline-offset:-4px}
@media(max-width:760px){.photo-list{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-list .photo-select,.photo-list .photo-remove{font-size:13px}.photo-list img{height:88px}}

/* Print inspection is independent of crop and the editor's fitted-view zoom. */
.print-quality-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 18px;border-top:1px solid var(--line);background:#f8faf9}
.print-quality-bar strong{font-size:13px}.print-quality-bar p{font-size:12px;color:var(--muted);margin:4px 0 0;line-height:1.6}
.print-quality-bar .subtle{flex:none;min-height:44px;font-size:12px}
.print-quality-bar.is-warning,.print-detail-warning.is-warning{background:#fff8e9;color:#805313}
.photo-quality-tag{display:block;background:#fff1cf;color:#805313;border-radius:4px;font-size:10px;padding:3px 4px;margin-top:5px;white-space:normal;line-height:1.4}
.print-detail-dialog{width:min(900px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;padding:23px;border:1px solid var(--line);border-radius:16px;color:var(--text);background:#fff}
.print-detail-dialog::backdrop{background:#07111f90}body:has(#print-detail-dialog[open]){overflow:hidden}
.print-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.print-detail-heading h2{font-size:22px;margin:0 0 5px}.print-detail-heading p{font-size:13px;color:var(--muted);margin:0}
.print-detail-heading .subtle{min-height:44px;min-width:75px;font-size:14px}
.print-detail-warning{font-size:13px;line-height:1.6;padding:11px 13px;border-radius:8px;background:#f6f8f7;margin:15px 0}
.print-detail-layout{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px}
#print-detail{display:block;width:100%;height:340px;border:1px solid var(--line);border-radius:10px;touch-action:none;cursor:grab;background:#f3f3f5}
#print-detail:active{cursor:grabbing}#print-overview{display:block;width:150px;height:170px;cursor:crosshair;border:1px solid var(--line);border-radius:8px;touch-action:none}
.print-detail-overview p,#print-detail-region{font-size:12px;color:var(--muted);margin:9px 0 0;line-height:1.6}
#print-detail-note{font-size:12px;margin:14px 0 0;line-height:1.65}
@media(max-width:760px){
 .print-quality-bar{padding:12px;gap:10px;flex-wrap:wrap}.print-quality-bar .subtle{width:100%;font-size:13px}
 #studio[data-mobile-step=sides] .print-quality-bar{display:none}
 .print-detail-dialog{padding:16px}.print-detail-heading h2{font-size:19px}.print-detail-heading p{font-size:12px}
 .print-detail-layout{display:flex;flex-direction:column-reverse;gap:12px}#print-detail{height:clamp(180px,30dvh,270px)}
 .print-detail-overview{display:flex;align-items:center;gap:12px}#print-overview{width:90px;height:90px;flex:none}
 .print-detail-overview p{font-size:12px;margin:0}.print-detail-warning{font-size:12px;margin:12px 0}
 .photo-quality-tag{font-size:11px}
}
.detail-warning-actions{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 14px}.detail-warning-actions button{min-height:44px;font-size:12px}
@media(max-width:760px){.detail-warning-actions button{flex:1;font-size:12px;padding-inline:8px}}
.detail-zoom-controls{display:flex;align-items:center;justify-content:center;gap:9px;border-top:1px solid var(--line);margin-top:16px;padding-top:14px}
.detail-zoom-controls button{min-width:44px;min-height:44px;font-size:18px}.detail-zoom-controls output{min-width:48px;text-align:center;font-size:13px;font-weight:700}
.detail-zoom-controls #detail-zoom-reset{font-size:13px;margin-left:7px;padding-inline:14px}
@media(max-width:380px){.detail-zoom-controls{gap:7px;flex-wrap:wrap}.detail-zoom-controls #detail-zoom-reset{margin-left:0}}

/* Customer controls stay beside the preview, with no floating controls over artwork. */
.history-tools,.preview-help,.view-menu{display:none!important}
.preview-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;background:#fff;border-bottom:1px solid var(--line)}
.preview-heading .preview-switch{position:static;box-shadow:none;border:0;background:#f7f8fc;margin:0;flex-wrap:wrap}
.close-preview{font-size:25px;min-width:44px;min-height:44px;flex:none}
.canvas-bottom-bar{justify-content:space-between;flex-wrap:wrap}
.view-actions>#preview-expand{font-size:12px;min-height:44px;padding:8px 12px;gap:7px}
.view-actions>#pan-view-direct{font-size:12px;min-height:44px;padding:8px}
.photo-adjustments{padding:12px 18px 16px;border-top:1px solid var(--line);background:#fff;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px;row-gap:7px}
.photo-adjustments>.section-line:first-child{grid-column:1/-1;margin:0;font-size:13px}
.photo-adjustments>.section-line:nth-of-type(2){grid-column:1/-1;margin:0}
.photo-adjustments .zoom-label,.photo-adjustments .photo-zoom-control,.photo-adjustments .photo-fit-buttons{grid-column:1}
.photo-adjustments .zoom-label{margin:0;font-size:12px}
.photo-adjustments .photo-options{grid-column:2;grid-row:3/7;margin:0;padding:0;border:0;display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:0}
.photo-adjustments .photo-position{font-size:12px}
.photo-adjustments .position-buttons{gap:5px}
.photo-adjustments button{min-height:44px;font-size:12px}
.photo-adjustments .position-buttons button{min-width:40px;font-size:19px}
.photo-adjustments .photo-actions{margin:0}
.photo-adjustments #move-help,.photo-adjustments .crop-hint{display:none}
.photo-adjustments #photo-overview{grid-column:1;font-size:12px;min-height:40px}
.photo-adjustments .photo-fit-buttons{display:flex;gap:8px}
.photo-adjustments .photo-fit-buttons button{flex:1}
.coverage-warning{padding:12px 16px;background:#fff6e7;border-top:1px solid #ecd3a5;font-size:13px;color:#805111}
.coverage-warning p{margin:4px 0 0;font-size:12px;line-height:1.6}
.readjust-photo{margin:10px 16px;font-size:13px;min-height:44px}
.upload-status{position:sticky;top:8px;z-index:8;padding:14px 18px;margin:0 0 12px;border:1px solid #d5bfdc;border-radius:12px;background:#fff9fc;box-shadow:0 4px 20px #07111f14;display:grid;gap:7px;font-size:14px}
.upload-status span{font-size:12px;color:var(--muted)}
.upload-status progress{width:100%;height:10px;accent-color:var(--pink)}
.upload-status.error{background:#fff6ef;border-color:#e5cf9e}
.canvas-stage.read-only #preview,.canvas-stage.is-finished #preview{touch-action:pan-y}
#preview-dialog .preview-heading{position:sticky;top:0;z-index:5}
#preview-dialog .frame-options{display:none}
#preview-dialog .canvas-stage,#preview-dialog:has(#frame-options:not([hidden])) .canvas-stage,#preview-dialog .preview-card:has(#frame-options:not([hidden])) .canvas-stage{height:clamp(250px,52dvh,720px);min-height:250px}
#preview-dialog .upload-status{position:static;margin:0;border-radius:0}
@media(max-width:760px){
 .preview-heading{padding:7px 9px;gap:5px}
 .preview-heading .preview-switch{flex:1;justify-content:center}
 .preview-switch button{font-size:12px;padding:7px 10px;min-height:44px}
 .canvas-bottom-bar{gap:5px;justify-content:center}
 .view-actions{gap:5px}
 .photo-adjustments{padding:12px;display:flex;flex-direction:column;gap:8px}
 .photo-adjustments .photo-options{gap:9px}
 .photo-adjustments .photo-position{font-size:13px}
 .photo-adjustments .position-buttons{gap:5px}
 .photo-adjustments .position-buttons button{min-width:40px}
 .photo-adjustments .photo-zoom-control{grid-template-columns:44px 1fr 44px}
 .photo-adjustments .section-line{font-size:13px;margin:0}
 .photo-adjustments .zoom-label{font-size:13px}
 .photo-adjustments button,.photo-adjustments #photo-overview{font-size:13px;min-height:44px}
 .coverage-warning{font-size:14px;padding:12px}
 .coverage-warning p{font-size:13px}
 .upload-status{top:64px;padding:12px;font-size:14px}
 #preview-dialog .preview-heading{top:0}
 #preview-dialog .canvas-stage,#preview-dialog:has(#frame-options:not([hidden])) .canvas-stage{height:42dvh;min-height:230px}
}

/* Desktop puts the photograph first; tools open as a right-hand drawer. */
@media(min-width:761px){
 .studio-layout,.drawer-closed .studio-layout{grid-template-columns:minmax(0,1fr) 82px!important;gap:14px}
 .workspace{grid-column:1;grid-row:1;min-width:0}
 .controls{grid-column:2;grid-row:1;position:sticky;top:16px;z-index:6;align-self:start;display:block;min-width:0}
 .editor-tabs{width:82px;padding:6px;gap:7px}
 .editor-tabs button{min-height:72px;font-size:12px}
 .tool-drawer{position:absolute;z-index:5;top:0;right:94px;width:min(310px,calc(100vw - 130px));max-height:calc(100dvh - 110px);overflow-y:auto;box-shadow:0 12px 36px #07111f20;overscroll-behavior:contain}
 .tool-drawer .control-panel{padding:25px 20px}
 .preview-card .canvas-stage,.preview-card:has(#frame-options:not([hidden])) .canvas-stage{height:clamp(360px,calc(100dvh - 380px),900px)}
 #preview-dialog .canvas-stage,#preview-dialog .preview-card:has(#frame-options:not([hidden])) .canvas-stage{height:clamp(300px,60dvh,800px)}
 .drawer-closed #tool-drawer{display:none}
}
.photo-adjustments>.section-line:nth-of-type(2){grid-column:2;grid-row:1;justify-content:flex-end}
.photo-adjustments>.section-line:nth-of-type(2) h3{display:none}
.photo-adjustments .photo-fit-buttons{flex-wrap:wrap}
.photo-adjustments .photo-fit-buttons #photo-overview{flex:1;white-space:nowrap}
.photo-adjustments>.section-line:first-child{grid-column:1;grid-row:1}
/* Embedded shop mode inherits its language from the product page. */
.commerce-mode .brand-bar,.commerce-mode .hosted-submit,.commerce-mode .production-card,.commerce-mode .studio-footer{display:none!important}.commerce-mode{padding-top:8px}.shop-fields{display:grid;grid-template-columns:1fr 2fr;gap:12px}.shop-price{font-size:21px;font-weight:700;color:#172333;margin:12px 0}.shop-order h2{margin-bottom:14px}.shop-order .primary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#fff;padding:12px 18px;border-radius:9px}.shop-order #shop-status{margin-top:10px}.shop-order #shop-success p{font-weight:600}.commerce-mode .mobile-navigation{z-index:8}@media(max-width:520px){.shop-fields{grid-template-columns:1fr}.shop-order .primary{width:100%}.shop-order #shop-another{width:100%;margin-bottom:10px}}
.commerce-mode .preview-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.shop-live-price{font-size:16px;font-weight:700;color:#172333;padding:4px 8px}@media(min-width:981px){#studio.commerce-mode:not(.drawer-closed) .studio-layout{grid-template-columns:minmax(0,1fr) 410px!important}#studio.commerce-mode:not(.drawer-closed) .controls{width:410px;display:grid;grid-template-columns:310px 82px;gap:14px}#studio.commerce-mode:not(.drawer-closed) .editor-tabs{grid-column:2;grid-row:1}#studio.commerce-mode:not(.drawer-closed) .tool-drawer{position:relative;right:auto;top:auto;grid-column:1;grid-row:1;box-shadow:none;max-height:calc(100dvh - 60px)}#studio.commerce-mode .controls .mobile-photo-tools{display:none}}
.shop-topbar{position:sticky;top:0;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px max(18px,calc((100vw - 1800px)/2));border-bottom:1px solid #e2e5ee;background:#fff;color:#07111f;font:600 15px/1.4 'Noto Sans',sans-serif}.shop-topbar a{color:#6f2cb1;text-decoration:none;min-height:40px;display:flex;align-items:center}.commerce-mode{max-width:1840px;margin:0 auto;padding-left:18px;padding-right:18px}@media(min-width:981px){.commerce-mode .preview-card .canvas-stage{height:clamp(440px,calc(100dvh - 350px),1100px)}}@media(max-width:760px){.shop-topbar{padding:5px 12px;font-size:12px;gap:6px}.shop-topbar strong{display:none}.commerce-mode .mobile-steps{top:51px}.commerce-mode .mobile-navigation{top:auto}.commerce-mode{padding-left:10px;padding-right:10px}}

/* Photo sizing changes the design; inspection zoom stays separate. */
.photo-quick-tools{padding:10px 16px;border-bottom:1px solid var(--line);background:#fff;display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:8px 28px;align-items:center}
.photo-quick-tools .zoom-label{margin:0;font-size:12px}.photo-quick-tools .photo-zoom-control{grid-template-columns:44px minmax(60px,1fr) 44px}.photo-quick-tools button{min-height:44px;min-width:44px}.photo-quick-tools .photo-position{font-size:12px;gap:12px}.photo-quick-tools p{grid-column:1/-1;margin:0;color:var(--muted);font-size:12px;line-height:1.5}.adjusting-photo .view-zoom,.adjusting-photo #pan-view-direct{display:none!important}.adjusting-photo .canvas-bottom-bar{justify-content:flex-end}.photo-adjustments .photo-options{grid-row:auto;grid-column:2}.photo-adjustments .photo-fit-buttons{grid-column:1}.photo-adjustments .photo-actions{flex-wrap:wrap}
@media(max-width:760px){.photo-quick-tools{padding:8px 10px;grid-template-columns:minmax(0,1fr);gap:6px}.photo-quick-tools .quick-size{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px}.photo-quick-tools .zoom-label span{gap:6px}.photo-quick-tools .photo-position{justify-content:center}.photo-quick-tools p{text-align:center;font-size:11px}.adjusting-photo .canvas-stage{height:clamp(280px,42dvh,480px)}}

@media(max-width:760px){.commerce-mode[data-mobile-step=photo][data-has-design=true] .mobile-intro{display:none}.photo-quick-tools{scroll-margin-top:114px}.commerce-mode.adjusting-photo .canvas-stage{height:clamp(240px,calc(100dvh - 430px),440px)}}

#studio-starting{padding:18px;text-align:center;font-size:15px;color:#6f2cb1}#studio[aria-busy=true]{opacity:.65}

/* Direct photo gestures and preview inspection are separate, labelled actions. */
.photo-quick-tools{grid-template-columns:minmax(0,1fr) auto;gap:8px 18px}.photo-quick-tools>.section-line{margin:0;display:flex;align-items:center;justify-content:flex-start;gap:8px;font-size:12px}.photo-quick-tools>.section-line>span{margin-right:auto;font-weight:700}.photo-quick-tools .quick-size[hidden]{display:none!important}.photo-quick-tools .section-line button{font-size:12px;min-height:44px;padding:7px 9px}.preview-heading>#preview-expand{font-size:12px;min-height:44px;padding:8px 12px;margin-left:auto}.preview-heading>#preview-expand:hover{color:var(--pink);border-color:var(--pink)}.inspection-note{margin:0;padding:10px 16px;background:#f4f0fc;color:#58328b;font-size:13px;line-height:1.5}.inspection-only .photo-adjustments,.inspection-only .photo-quick-tools,.inspection-only #readjust-photo,.inspection-only #coverage-warning{display:none!important}.inspection-only .canvas-bottom-bar{justify-content:space-between}.inspection-only .view-zoom{display:flex!important}.inspection-only .canvas-stage{height:clamp(280px,65dvh,850px)!important}.inspection-only #preview-expand{display:none}.inspection-only .view-zoom button{min-width:44px;min-height:44px}
@media(max-width:760px){.photo-quick-tools{display:flex;flex-direction:column;align-items:stretch}.photo-quick-tools .photo-position{justify-content:space-between}.preview-heading>#preview-expand{font-size:12px;min-height:40px;padding:7px 9px}.photo-quick-tools .section-line{width:100%}.commerce-mode.adjusting-photo .canvas-stage{height:clamp(240px,calc(100dvh - 430px),440px)}.inspection-only .canvas-stage{height:calc(100dvh - 230px)!important;min-height:200px}.inspection-only .canvas-bottom-bar{justify-content:center}.inspection-note{font-size:12px}}

.preview-card .view-zoom,.view-actions>#pan-view-direct{display:none!important}#preview-dialog.inspection-only .view-zoom{display:flex!important}

@media(max-width:760px){.preview-heading .shop-live-price{display:none}.preview-heading .preview-switch{flex:0 1 auto;min-width:0;flex-wrap:nowrap}.preview-heading .preview-switch button{white-space:nowrap;font-size:11px;padding:7px;min-height:44px}.preview-heading>#preview-expand{margin-left:auto;white-space:nowrap;font-size:11px;padding:7px 9px}}

/* Keep tools next to the artwork, with no controls covering the print. */
.preview-workarea{display:grid;grid-template-columns:minmax(0,1fr) 220px;align-items:start;background:#fafbfe}
.preview-workarea>.canvas-stage{min-width:0;width:100%}
.canvas-tools{min-width:0;padding:14px 12px;background:#fff;border-left:1px solid var(--line);align-self:stretch;font-size:12px}
.preview-zoom-tools{display:flex;flex-direction:column;gap:8px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.preview-zoom-tools>small{color:var(--muted);line-height:1.5}
.preview-card .canvas-tools .view-zoom{display:flex!important;flex-wrap:wrap;justify-content:center;gap:6px}
.canvas-tools .view-zoom button{min-height:44px;min-width:44px;padding:8px}
.canvas-tools .view-zoom #preview-fit{flex-basis:100%;font-size:12px}
.canvas-tools .photo-quick-tools{padding:12px 0;display:flex;flex-direction:column;gap:10px;border:0;align-items:stretch}
.canvas-tools .photo-quick-tools>.section-line{flex-wrap:wrap;gap:4px}
.canvas-tools #selected-photo-name{flex-basis:100%;font-weight:700}
.canvas-tools .photo-quick-tools>.section-line button{flex:1;white-space:nowrap}
.canvas-tools .photo-position{display:flex;flex-direction:column;align-items:stretch;gap:6px}
.canvas-tools .position-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.canvas-tools .position-buttons button{min-width:0;padding:4px}
.canvas-tools .photo-quick-tools p{font-size:11px;line-height:1.5;text-align:left}
.canvas-more-tools{border-top:1px solid var(--line);padding-top:10px}
.canvas-more-tools:has(#photo-editor[hidden]){display:none}
.canvas-more-tools>summary{cursor:pointer;font-weight:600;min-height:44px;padding:12px 0}
.canvas-tools #photo-editor{padding:0;display:flex;flex-direction:column;gap:10px;border:0;background:transparent}
.canvas-tools #photo-editor>.section-line{margin:0;display:flex;justify-content:space-between}
.canvas-tools #photo-editor h3{font-size:12px}.canvas-tools #centre-photo{font-size:12px;min-height:44px}
.canvas-tools .photo-fit-buttons{display:grid;grid-template-columns:1fr;gap:6px}
.canvas-tools .photo-fit-buttons button,.canvas-tools #rotate-photo{font-size:12px;min-height:44px;padding:8px;width:100%}
.canvas-tools .photo-options{margin:0;padding:0;border:0}.canvas-tools #move-help{display:none}
.preview-card>.canvas-bottom-bar{display:none}
.size-options .size-price{display:block;font-weight:500;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.4}
.commerce-mode .design-bottom-bar{position:fixed;bottom:0;left:0;right:0;z-index:8;background:#fff;border-top:1px solid var(--line);padding:10px max(18px,calc((100vw - 1800px)/2));box-shadow:0 -3px 18px #07111f08;margin:0;gap:12px}
.commerce-mode{padding-bottom:100px}.design-bottom-bar .shop-live-price{margin-right:auto;font-size:15px;white-space:nowrap}.shop-mobile-price{font-size:13px;font-weight:700;white-space:nowrap}
#preview-dialog.inspection-only .preview-workarea{grid-template-columns:minmax(0,1fr) 220px}
@media(max-width:760px){
 .preview-workarea{display:flex;flex-direction:column}.preview-workarea>.canvas-stage{order:0}.canvas-tools{order:1;width:100%;padding:10px;border-left:0;border-top:1px solid var(--line)}
 .preview-zoom-tools{display:grid;grid-template-columns:1fr auto;gap:4px 8px;padding:0 0 8px;align-items:center}
 .preview-zoom-tools>small{grid-column:1/-1;font-size:11px}.preview-card .canvas-tools .view-zoom{flex-wrap:nowrap;gap:5px}.canvas-tools .view-zoom #preview-fit{flex-basis:auto;font-size:11px}.canvas-tools .view-zoom button{min-width:40px}
 .canvas-tools .photo-quick-tools{padding:7px 0;gap:7px}.canvas-tools #selected-photo-name{flex-basis:auto;margin-right:auto}.canvas-tools .photo-quick-tools>.section-line button{flex:0 1 auto}
 .canvas-tools .photo-position{flex-direction:row;align-items:center;justify-content:space-between}.canvas-tools .position-buttons{width:196px}.canvas-tools .photo-quick-tools p{margin:0}
 .canvas-tools .photo-fit-buttons{grid-template-columns:1fr 1fr}.canvas-tools #photo-overview{grid-column:1/-1}
 .commerce-mode .design-bottom-bar{display:none}.commerce-mode .mobile-navigation-info{display:grid;grid-template-columns:1fr auto;gap:3px 8px}.commerce-mode #mobile-progress{grid-column:1/-1;max-width:none;font-size:10px;text-align:left}.commerce-mode .mobile-navigation-info strong{font-size:13px}
 .commerce-mode{padding-bottom:140px}.commerce-mode .mobile-navigation{padding-top:7px}
 .commerce-mode.adjusting-photo .preview-workarea .canvas-stage{height:clamp(250px,43dvh,480px)}
}
@media(min-width:761px){.canvas-more-tools>summary{display:none}.canvas-tools .photo-quick-tools p{margin-top:4px}}
/* Tablet drawers flow below the workspace instead of covering the photo. */
@media(min-width:761px) and (max-width:980px){
 .controls{display:contents}.editor-tabs{grid-column:2;grid-row:1;position:sticky;top:80px;align-self:start}
 .tool-drawer{position:relative;grid-column:1/-1;grid-row:2;right:auto;top:auto;width:100%;max-height:none;box-shadow:none}
 .preview-workarea{grid-template-columns:minmax(0,1fr) 200px}
}
