
.image-editor .work-title{margin-bottom:16px}.image-editor .work-title p{max-width:720px}
.editor-toolbar{display:flex;align-items:center;gap:18px;padding:16px 20px;background:white;border:1px solid #ded5d5;border-radius:16px 16px 0 0}
#editor-document{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}#editor-dimensions{font-size:13px;color:#736c6c;white-space:nowrap}
.image-editor .workbench{gap:0;border:1px solid #ded5d5;border-top:0;border-radius:0 0 16px 16px;overflow:hidden;grid-template-columns:minmax(0,1fr) 270px}
.image-editor .work-main{min-width:0;background:#f5f3f3;padding:18px}
.image-editor .tool-form{border:0;border-left:1px solid #ded5d5;border-radius:0;position:static;padding:20px;background:white}
.image-editor .tool-drop{padding:12px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-height:0;background:transparent;border:1px dashed #d2caca}.image-editor .tool-drop p{display:none}.image-editor .tool-drop strong{font-size:13px}.image-editor .tool-drop .button{padding:9px 14px;font-size:13px}
.image-editor .tool-files{font-size:12px}.image-editor .tool-preview{height:58vh;min-height:340px;display:flex;align-items:center;justify-content:center;overflow:auto;border:0;background:#ede9e9;border-radius:8px}
.image-editor .tool-preview canvas,.image-editor .tool-preview img{max-width:100%;max-height:100%;object-fit:contain;transform:scale(var(--preview-scale,1));transform-origin:center}
.editor-zoom{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin:12px 0;font-size:12px}.editor-zoom span{margin-right:auto;color:#736c6c}.editor-zoom button{border:1px solid #ddd4d4;border-radius:20px;background:white;padding:5px 12px;cursor:pointer}.editor-zoom output{min-width:40px;text-align:center}
.image-editor #tool-results{padding:12px 0}.image-editor #tool-results h3{font-size:14px}.image-editor .preset-disclosure{background:white;margin-bottom:12px}
@media(max-width:900px){.image-editor .workbench{grid-template-columns:1fr}.image-editor .tool-form{order:2;border-left:0;border-top:1px solid #ded5d5}.image-editor .tool-preview{height:45vh;min-height:240px}.editor-toolbar{gap:8px;padding:12px}#editor-dimensions{display:none}.image-editor .tool-form fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.image-editor .tool-form fieldset h3,.image-editor .tool-form fieldset .tool-note{grid-column:1/-1}}

.image-editor .work-title{margin:8px 0 14px}.image-editor .work-title h2{font-size:25px}.image-editor .work-title p,.image-editor .work-title .eyebrow{display:none}.image-editor.has-image .tool-drop{padding:5px 10px}.image-editor.has-image .tool-drop strong,.image-editor.has-image #tool-sample,.image-editor.has-image .tool-files{display:none}.image-editor.has-image .tool-drop .button{padding:6px 12px}.image-editor.has-image .tool-preview{height:60vh}.image-editor .editor-zoom{margin:8px 0}

#photo-canvas{touch-action:none;cursor:move}#photo-canvas:focus-visible{outline:2px solid #c83e3e;outline-offset:4px}#photo-view textarea{width:100%;box-sizing:border-box;font:inherit;padding:10px;border:1px solid #d5caca;border-radius:6px;resize:vertical}#photo-view .controls{max-height:85vh;overflow-y:auto}#photo-view .controls input[type=number]{width:100%;box-sizing:border-box}@media(max-width:800px){#photo-view .controls{max-height:none;overflow:visible}}

#drop-zone{position:relative}.photo-text-outline{position:absolute;pointer-events:none;border:1px solid white;box-shadow:0 0 0 1px #292222;box-sizing:border-box}.photo-text-outline:before,.photo-text-outline:after{content:"";position:absolute;width:7px;height:7px;background:white;border:1px solid #292222}.photo-text-outline:before{left:-4px;top:-4px}.photo-text-outline:after{right:-4px;bottom:-4px}

.photo-ai-prompt{margin:24px 0;padding:24px;border:1px solid #ded5d5;border-radius:16px;background:white}.photo-ai-prompt label{display:block;font-weight:600;margin-bottom:12px}.photo-ai-prompt textarea{margin-bottom:12px}

#photo-view .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}#photo-view .filters button{display:flex;flex-direction:column;padding:4px;border:2px solid transparent;border-radius:10px;background:#f5f1f1;overflow:hidden;min-width:0}#photo-view .filters button.selected{border-color:#c83e3e;background:#fff3f3}#photo-view .filters button:focus-visible{outline:2px solid #171111;outline-offset:3px}#photo-view .finish-image{display:flex;align-items:center;justify-content:center;width:100%;height:82px;background:#e8e0e0;overflow:hidden;border-radius:6px}#photo-view .finish-image img{width:100%;height:100%;object-fit:cover}#photo-view .finish-image canvas{max-width:100%;max-height:100%;object-fit:contain}#photo-view .finish-name{padding:7px 2px;font-size:12px;font-weight:600}
body.photo-focused{overflow:hidden}body.photo-focused>.rail,body.photo-focused .app>header,body.photo-focused .page-heading,body.photo-focused .app>footer{display:none!important}body.photo-focused .app{margin:0!important;padding:0!important}body.photo-focused .app>main{padding:0!important;max-width:none!important}#photo-view{--photo-panel:0px}#photo-view.options-open{--photo-panel:300px}body.photo-focused #photo-view{position:fixed;inset:0;background:#f4f3f3;z-index:20}body.photo-focused .photo-topbar{position:absolute;inset:0 0 auto;height:64px;display:flex;align-items:center;gap:20px;padding:10px 20px;background:#fff;border-bottom:1px solid #e3dada;z-index:3}.photo-topbar strong{font-size:16px}.photo-topbar strong span{color:#c43c3c}.photo-editor-label{font-size:11px;letter-spacing:2px;color:#807474}#photo-export-options{margin-left:auto}body.photo-focused .editor-shell{display:block;height:100%;border:0}body.photo-focused .canvas-area{position:absolute;inset:64px 0 0 var(--photo-panel);border:0;border-radius:0;background:#f4f3f3;display:flex;flex-direction:column;padding-bottom:180px}body.photo-focused .canvas-toolbar{height:44px;flex-shrink:0;background:transparent;padding:10px 24px;border:0}body.photo-focused .canvas-stage{flex:1;min-height:0;height:auto;padding:12px 24px;background:transparent;overflow:hidden;display:flex;align-items:center;justify-content:center}body.photo-focused #photo-canvas{max-width:100%;max-height:100%;object-fit:contain;width:auto;height:auto;box-shadow:0 5px 24px #0001}body.photo-focused .canvas-footer{padding:6px 24px;font-size:11px}body.photo-focused #photo-options{position:absolute;left:0;top:64px;bottom:0;width:300px;max-height:none;overflow:auto;background:white;border-right:1px solid #e3dada;border-radius:0;padding:20px;z-index:2}#photo-options[hidden]{display:none!important}#photo-options .control-section[hidden],#photo-options .export-section[hidden]{display:none!important}#photo-options .control-title{display:flex;gap:10px;align-items:center}#photo-options .control-title h2{font-size:20px;flex:1}body.photo-focused .below-editor{display:none}.photo-dock{position:absolute;bottom:16px;left:calc(var(--photo-panel) + 24px);right:24px;z-index:4;max-width:820px;margin:auto}.photo-dock .photo-ai-prompt{margin:0;padding:10px 14px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-radius:22px;box-shadow:0 8px 30px #0001}.photo-dock .photo-ai-prompt>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.photo-dock #photo-edit-prompt{flex:1;width:auto;min-width:100px;min-height:40px;height:42px;resize:none;margin:0;border:0;background:transparent}.photo-dock .photo-ai-prompt .small-note{flex-basis:100%;font-size:10px;line-height:1.3;margin:0}.photo-dock #photo-ai-continue{font-size:12px;padding:9px 14px}.photo-categories{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:10px}.photo-categories button{border:1px solid #e0d7d7;border-radius:24px;padding:9px 18px;background:white;font:inherit;font-size:13px;cursor:pointer}.photo-categories button[aria-pressed=true]{background:#160f0f;color:white;border-color:#160f0f}@media(max-width:700px){#photo-view.options-open{--photo-panel:0px}body.photo-focused #photo-options{width:min(300px,85vw);bottom:185px;box-shadow:5px 0 20px #0002}.photo-editor-label{display:none}.photo-topbar strong{font-size:12px}body.photo-focused .photo-topbar{gap:10px;padding:10px}.photo-dock{left:10px;right:10px;bottom:8px}.photo-categories{gap:4px}.photo-categories button{padding:7px 10px;font-size:12px}.photo-dock .photo-ai-prompt .small-note{display:none}body.photo-focused .canvas-area{padding-bottom:150px}}
#photo-options input[type=checkbox]{width:18px;height:18px;display:inline-block;padding:0;margin:0 8px 0 0;vertical-align:middle}
/* Reserve the persistent navigation rail before sizing the editor. */
body.photo-focused #photo-view{inset:0 0 0 var(--workspace-rail,230px);width:auto;min-width:0}

#photo-empty{max-width:620px}#photo-empty h2{font-size:32px;letter-spacing:-1px}#photo-empty p{line-height:1.7;max-width:570px}.photo-dock .photo-ai-prompt .small-note{font-size:12px}.photo-categories{max-width:100%}.photo-dock .text-btn{font-size:12px}

.photo-dock .photo-ai-prompt{position:relative;padding-bottom:48px}.photo-reference-upload{position:absolute;left:14px;bottom:9px;width:32px;height:32px;display:grid;place-items:center;border:1px solid #e0d7d7;border-radius:50%;background:#f5f2f2;color:#211818;font-size:25px;line-height:1;cursor:pointer}.photo-reference-upload:hover{background:#ece4e4}.photo-reference-upload:focus-visible{outline:2px solid var(--red);outline-offset:3px}.photo-reference-upload:disabled{opacity:.5;cursor:wait}

.rail-collapse,.photo-reference-upload{display:grid;place-items:center;padding:0;box-sizing:border-box;line-height:1}.rail-collapse svg,.photo-reference-upload svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}

.photo-dock .photo-ai-prompt.reference-dragging{outline:2px dashed var(--red);outline-offset:3px;background:#fff0ed;box-shadow:0 0 0 6px #ee493312}.photo-dock .photo-ai-prompt.reference-dragging .photo-reference-upload{background:#ffe0d8;border-color:var(--red)}
.photo-dock .photo-ai-prompt{padding-bottom:10px;column-gap:10px}.photo-dock .photo-ai-prompt .photo-reference-upload{position:static;order:3;flex:0 0 32px;align-self:center}.photo-dock .photo-ai-prompt .small-note{order:4;flex:1 1 calc(100% - 64px);margin:0;text-align:left;align-self:center}.photo-dock .photo-ai-prompt>.text-btn{order:5}.photo-dock .photo-ai-prompt #photo-edit-prompt{order:0}.photo-dock .photo-ai-prompt #photo-ai-continue{order:1}.photo-dock .photo-ai-prompt::after{content:"";order:2;flex-basis:100%;height:0}

body.manual-photo-editor .photo-ai-prompt,body.manual-photo-editor .photo-dock>.photo-categories:not(.manual-categories){display:none!important}.manual-categories[hidden]{display:none!important}body.manual-photo-editor .canvas-area{padding-bottom:80px!important}.composition-outline{position:absolute;border:1px solid #e83333;cursor:move;touch-action:none;z-index:5}.composition-outline[hidden]{display:none}.composition-handle{position:absolute;width:12px;height:12px;padding:0;background:white;border:1px solid #e83333;border-radius:2px;touch-action:none}.composition-handle.nw{left:-6px;top:-6px;cursor:nwse-resize}.composition-handle.ne{right:-6px;top:-6px;cursor:nesw-resize}.composition-handle.sw{left:-6px;bottom:-6px;cursor:nesw-resize}.composition-handle.se{right:-6px;bottom:-6px;cursor:nwse-resize}#composition-layers>div{display:flex;justify-content:space-between;gap:6px;margin-top:10px}#composition-layers button{overflow:hidden;text-overflow:ellipsis;max-width:160px}

.photo-category-logo{display:block;width:240px;max-width:45%;height:auto;max-height:40px;object-fit:contain;object-position:left}
body:not(.manual-photo-editor) .photo-topbar .manual-editor-brand,body:not(.manual-photo-editor) .photo-topbar .photo-editor-label{display:none}
body.manual-photo-editor .photo-category-logo{display:none}

/* Adapted from mrhyddenn's MIT-licensed Uiverse shadow button.
   https://uiverse.io/mrhyddenn/moody-badger-62 — see licenses/uiverse-shadow-button.txt */
#photo-ai-continue,.studio #studio-generate{
 padding:10px 20px;border:0;border-radius:7px;min-height:44px;
 font-size:13px;font-weight:400;letter-spacing:1.3px;text-transform:uppercase;
 color:#fff;background:#eb2a2f;box-shadow:0 0 25px rgba(235,42,47,.4);
 transition:box-shadow .5s;white-space:nowrap;
}
#photo-ai-continue:hover:not(:disabled),#photo-ai-continue:focus-visible,.studio #studio-generate:hover:not(:disabled),.studio #studio-generate:focus-visible{
 background:#eb2a2f;box-shadow:0 0 5px #eb2a2f,0 0 25px rgba(235,42,47,.6),0 0 50px rgba(235,42,47,.35),0 0 100px rgba(235,42,47,.16);
}
#photo-ai-continue:disabled,.studio #studio-generate:disabled{box-shadow:none;opacity:.5;cursor:wait}
@media(prefers-reduced-motion:reduce){#photo-ai-continue,.studio #studio-generate{transition:none}}

/* Keep the canvas footer above the responsive prompt dock. */
body.photo-focused:not(.manual-photo-editor) .canvas-area{padding-bottom:var(--photo-dock-space,220px)}
body.photo-focused .canvas-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px}
#compare{touch-action:none;user-select:none;flex-shrink:0}

#photo-ai-continue.is-generating{position:relative;overflow:hidden;min-width:150px;opacity:1;cursor:progress;background:#eb2a2f;color:white;box-shadow:none}
#photo-ai-continue.is-generating::after{content:"";position:absolute;left:0;bottom:0;height:4px;width:45%;background:rgba(255,255,255,.85);animation:photo-generation-progress 1.3s ease-in-out infinite}
@keyframes photo-generation-progress{from{transform:translateX(-110%)}to{transform:translateX(330%)}}
@media(prefers-reduced-motion:reduce){#photo-ai-continue.is-generating::after{animation:none;width:100%;opacity:.6}}

.photo-reference-list{order:-1;flex:0 0 100%;display:flex;gap:10px;padding:4px 0}.photo-reference-list[hidden]{display:none}.photo-reference-card{position:relative;width:88px;display:flex;flex-direction:column;gap:4px;font-size:10px;color:#655b5b}.photo-reference-card img{width:80px;height:64px;object-fit:cover;border-radius:8px;border:1px solid #e0d7d7}.photo-reference-card button{position:absolute;right:0;top:-4px;width:22px;height:22px;display:grid;place-items:center;padding:0;border:1px solid #ddd;border-radius:50%;background:white;color:#211818;cursor:pointer;font-size:17px;line-height:1}
.photo-dock .photo-ai-actions{order:3;display:flex;align-items:center;flex:0 0 100%;gap:10px;min-width:0}
.photo-dock .photo-ai-actions .photo-reference-upload{order:0;flex:0 0 32px}
.photo-dock .photo-ai-actions .photo-ai-undo{order:1;flex:none;min-height:32px;padding:6px 12px;border:1px solid #e0d7d7;border-radius:8px;background:#f5f2f2;color:#211818;font:inherit;font-size:12px;line-height:18px;cursor:pointer}
.photo-dock .photo-ai-actions .photo-ai-undo[hidden]{display:none}
.photo-dock .photo-ai-actions .photo-ai-undo:hover:not(:disabled){background:#ece4e4;border-color:#c9b9b9}
.photo-dock .photo-ai-actions .photo-ai-undo:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.photo-dock .photo-ai-actions .photo-ai-undo:disabled{opacity:.5;cursor:wait}
.photo-dock .photo-ai-actions .small-note{order:2;flex:1 1 0;min-width:0}
.photo-dock .photo-price-note{order:4;flex:0 0 100%;padding:10px 12px;border-radius:8px;background:#fff4ef;color:#624239;font-size:12px;line-height:1.5}
.photo-dock .photo-price-note[hidden]{display:none}
body.photo-focused .canvas-toolbar{gap:12px;height:auto;min-height:44px;flex-wrap:wrap}
.photo-download-generated{margin-left:auto;flex:none;border:1px solid #d9ceca;border-radius:8px;background:#fff;color:#211818;padding:7px 12px;font:inherit;font-size:12px;line-height:18px;cursor:pointer}
.photo-download-generated:hover:not(:disabled){border-color:var(--red);background:#fff4ef}
.photo-download-generated:disabled{opacity:.45;cursor:default}
.photo-download-generated:focus-visible{outline:2px solid var(--red);outline-offset:3px}
body.manual-photo-editor .photo-download-generated{display:none}
.photo-clear-canvas{flex:none;border:1px solid #d9ceca;border-radius:8px;background:#fff;color:#211818;padding:7px 12px;font:inherit;font-size:12px;line-height:18px;cursor:pointer}
.photo-clear-canvas:hover:not(:disabled){border-color:var(--red);background:#fff4ef}
.photo-clear-canvas:disabled{opacity:.45;cursor:default}
.photo-clear-canvas:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.photo-clear-canvas[hidden],body.manual-photo-editor .photo-clear-canvas{display:none}

.photo-dock .photo-ai-actions .photo-pro-toggle{order:1;display:inline-flex;align-items:center;gap:6px;flex:none;min-height:32px;padding:0 4px;border:0;background:transparent;color:#635b58;font:inherit;font-size:12px;cursor:pointer}
.photo-toggle-track{position:relative;display:block;width:30px;height:18px;border-radius:20px;background:#d5cecb;transition:background .18s ease}
.photo-toggle-track::after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0002;transition:transform .18s ease}
.photo-pro-toggle[aria-checked=true] .photo-toggle-track{background:var(--red)}
.photo-pro-toggle[aria-checked=true] .photo-toggle-track::after{transform:translateX(12px)}
.photo-dock .photo-ai-actions .photo-pro-toggle[aria-checked=true]{color:var(--red)}
.photo-pro-toggle:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:5px}
.photo-pro-toggle:disabled{opacity:.5;cursor:wait}
@media(prefers-reduced-motion:reduce){.photo-toggle-track,.photo-toggle-track::after{transition:none}}
