.image-editor-page{max-width:1400px}.image-editor-page .hero{text-align:start;padding-block:24px}.editor-upload{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:22px;border:2px dashed #b1bcd0;border-radius:18px;background:white}.editor-upload input{max-width:100%}.editor-history{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-block:18px}.image-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.editor-view{min-width:0;background:#e8ecf4;border-radius:18px;padding:18px;position:sticky;top:96px;text-align:center}#editor-canvas{display:block;max-width:100%;max-height:70vh;width:auto;height:auto;margin:auto;touch-action:none;background:repeating-conic-gradient(#e0e0e0 0% 25%,white 0% 50%) 0/20px 20px;box-shadow:0 6px 24px #23334a20}.editor-panel{background:white;border:1px solid #d7dfed;border-radius:18px;padding:18px}.editor-panel fieldset{border:0;margin:0;padding:0;min-width:0}.editor-panel label{display:flex;flex-direction:column;gap:6px;margin-block:14px}.editor-panel input,.editor-panel textarea,.editor-panel select{min-width:0;max-width:100%;width:100%;padding:10px;border:1px solid #a7b4ca;border-radius:8px;font:inherit}.editor-panel input[type=color]{height:45px;padding:3px}.image-editor-page button{min-height:44px;padding:10px 16px;border-radius:10px;cursor:pointer}.image-editor-page button:disabled{cursor:default;opacity:.5}.editor-panel button{width:100%;margin-block:5px}.editor-pairs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.editor-pairs label{margin:5px 0}#editor-text-list{display:flex;flex-wrap:wrap;gap:4px}#editor-text-list button{overflow:hidden;text-overflow:ellipsis;text-align:start}#editor-text-list [aria-pressed=true],#editor-crop[aria-pressed=true]{outline:2px solid #6451dd}.editor-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-block:22px;padding:18px;background:white;border-radius:18px}.editor-actions p{flex:1;min-width:160px}.image-editor-page [hidden]{display:none!important}.editor-view p,.editor-panel p{font-size:14px;line-height:1.5;color:#475569}.image-editor-page :focus-visible{outline:3px solid #6451dd;outline-offset:3px}@media(max-width:760px){.image-editor-grid{grid-template-columns:1fr}.editor-view{position:static;padding:10px}.editor-panel{padding:14px}#editor-canvas{max-height:55vh}.editor-actions .primary{width:100%;text-align:center}.image-editor-page .hero h1{font-size:32px}.editor-upload{padding:14px}}

#editor-canvas[data-cursor=new]{cursor:crosshair}#editor-canvas[data-cursor=move]{cursor:move}#editor-canvas[data-cursor=resize]{cursor:nwse-resize}

@font-face{font-family:"Filoqo Sans";src:url("/assets/fonts/editor-sans-ae7b7855e115.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;}

@font-face{font-family:"Filoqo Serif";src:url("/assets/fonts/editor-serif-8f2c103bfa3f.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;}

@font-face{font-family:"Filoqo Mono";src:url("/assets/fonts/editor-mono-c805f9436dbc.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;}

#paint-stickers{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}#paint-stickers button{min-width:0;padding:3px}#paint-stickers img{max-width:100%;object-fit:contain}

.editor-upload{position:relative}.editor-upload input{position:absolute;width:1px;height:1px;opacity:0}.editor-upload:focus-within{outline:3px solid #6952dc;outline-offset:3px}

.original-examples{margin:16px 0;padding:14px;border:1px solid #bdb0db;border-radius:14px}.original-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px}.original-grid button{min-width:0;overflow-wrap:anywhere;display:flex;flex-direction:column;align-items:center;font-size:13px}.original-grid img{width:100%;max-width:130px;aspect-ratio:1;object-fit:cover;border-radius:10px}.original-grid{max-height:440px;overflow:auto}

.editor-project{padding:1rem;border:1px solid #d8dcec;border-radius:16px;margin-bottom:1rem}.editor-project h2{font-size:1.1rem}.editor-project label{display:inline-block;padding:.5rem}.object-tools{display:flex;flex-wrap:wrap;gap:.4rem}.object-tools legend{font-weight:700}.object-tools p,.object-tools>div{flex-basis:100%}.object-tools button[aria-pressed=true]{outline:2px solid #6451dd;background:#eeeaff}.object-tools>div{display:flex;flex-wrap:wrap;gap:.35rem;max-height:180px;overflow:auto}.object-tools button{min-height:44px;max-width:100%;overflow-wrap:anywhere}

#design-fields{padding:12px;border:1px solid #d8dcec;border-radius:12px;margin-bottom:12px}#design-fields label{display:block;margin-block:8px}#design-fields textarea{width:100%;box-sizing:border-box}#editor-new input{max-width:100%}#editor-print-page{display:none}.design-print-background{position:absolute;inset:0;width:100%;height:100%}.design-print-text{position:absolute;white-space:pre;line-height:1.2;text-align:left;margin:0;padding:0;font-weight:400;font-style:normal;letter-spacing:0;direction:ltr;unicode-bidi:plaintext}@media print{html,body{margin:0!important;padding:0!important;background:white!important;min-width:0!important}body.design-print-ready>*{display:none!important}body.design-print-ready>#editor-print-page{display:block!important;position:relative;overflow:hidden;margin:0!important;padding:0!important;print-color-adjust:exact;-webkit-print-color-adjust:exact;break-after:avoid;break-inside:avoid}}

#editor-new .editor-pairs{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#editor-new .editor-pairs label{min-width:0;display:flex;flex-direction:column}#editor-new .editor-pairs input{width:100%;min-width:0;box-sizing:border-box}

.editor-ribbon{display:flex;gap:4px;flex-wrap:wrap;background:white;border:1px solid #d7dfed;border-radius:12px;padding:8px;margin-block:12px}.editor-ribbon button{border:0;background:#f4f1ff;color:#4e36b5}

.editor-ribbon{border-radius:5px;border:1px solid #d8dbe5;background:#f7f6fc;box-shadow:0 2px 4px #172f4608}.editor-ribbon button{border-radius:4px;border-color:transparent}.editor-ribbon button:hover{background:#ede9fb;border-color:#c9c1e5}#editor-canvas:focus-visible{outline:2px solid #6850df;outline-offset:4px}

#editor-output-preview{margin-block:18px;padding:18px;border:1px solid #d6dce5;border-radius:12px;background:#f6f7fb;text-align:center}#editor-output-canvas{display:block;max-width:100%;height:auto;margin:12px auto;background:#fff;box-shadow:0 0 0 1px #c6cdd9,0 4px 16px #172f4618}#editor-output-preview p{font-size:14px;color:#566273}.editor-picture-upload{display:flex;flex-direction:column;gap:7px;margin-block:12px;padding:12px;border:1px solid #bcb1e8;border-radius:7px;background:#f7f4ff}.editor-picture-upload input{max-width:100%}.editor-check{display:flex!important;align-items:center;flex-direction:row!important;gap:8px}.editor-check input{width:18px!important;min-height:18px!important;flex:0 0 18px}#editor-picture-controls{padding:10px;background:#f4f0ff;border-radius:8px}#editor-picture-controls h3{font-size:15px;margin:0 0 8px}

.editor-picture-upload{position:relative;cursor:pointer;min-height:44px;box-sizing:border-box}.editor-picture-upload input[type=file]{position:absolute;width:1px!important;height:1px;min-height:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%)}.editor-picture-upload:focus-within{outline:2px solid #6850df;outline-offset:3px}.editor-picture-upload:has(input:disabled){opacity:.5;cursor:default}
/* Focused design workspace. Existing controls and local document model are reused. */
.is-design-workspace{max-width:none!important;margin:0!important;padding:0!important;background:#f6f7fb}.is-design-workspace .workspace-toolbar{display:flex;align-items:center;gap:16px;padding:12px 20px;background:#fff;border-bottom:1px solid #e4e7ef;flex-wrap:wrap}.workspace-name{min-width:0;margin-inline-end:auto}.workspace-name h1{font-size:18px;line-height:1.3;margin:0;color:#26354c}.workspace-local{font-size:11px;color:#8b95a7}.workspace-history{display:flex;gap:5px}.workspace-downloads{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.is-design-workspace .workspace-toolbar button,.is-design-workspace .workspace-toolbar a{min-height:38px;border-radius:8px;padding:8px 12px;font-size:12px;text-decoration:none}.workspace-toolbar button{border:1px solid #e0e2ec;background:#fff;color:#4e5b70}.workspace-toolbar #editor-export{background:#7054bd;color:#fff;border-color:#7054bd}.workspace-toolbar #editor-download{background:#f0ebfb;color:#5f4696}.design-workspace{display:grid;grid-template-columns:82px 288px minmax(0,1fr);height:calc(100dvh - 185px);min-height:520px;border-bottom:1px solid #e1e5ef}.is-design-workspace .workspace-rail{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;padding:12px 6px;margin:0;border:0;border-inline-end:1px solid #e1e5ef;border-radius:0;box-shadow:none;background:#fbfbff;overflow:auto}.workspace-rail button{flex-direction:column!important;gap:6px!important;min-height:64px!important;padding:10px 4px!important;border:0!important;background:transparent!important;font-size:10px!important;line-height:1.2;color:#778299;border-radius:9px!important}.workspace-rail button[aria-selected=true]{background:#eee8fa!important;color:#6445a2;font-weight:650}.workspace-rail .tool-icon{width:22px;height:22px;flex-basis:22px}.workspace-sidebar{background:#fff;border-inline-end:1px solid #e1e5ef;min-width:0;overflow:auto;overscroll-behavior:contain;padding:0 16px 18px}.workspace-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;position:sticky;top:0;z-index:2;background:#fff;padding:16px 0 12px;border-bottom:1px solid #f0f1f6;margin-bottom:12px}.workspace-panel-heading h2{font-size:15px;margin:0;color:#34435c}.is-design-workspace .workspace-back{font-size:10px;min-height:30px;padding:5px 7px;background:white;border:1px solid #e4e5ef;border-radius:7px;color:#8a829a}.workspace-back .tool-icon{width:15px;height:15px;flex-basis:15px}.workspace-sidebar>fieldset,.workspace-sidebar fieldset{border:0;padding:0;margin:0;min-width:0}.workspace-section>h2,.workspace-section>fieldset>legend{font-size:14px;font-weight:650;color:#4a566e;margin-bottom:12px}.workspace-sidebar .editor-project{padding:0;border:0;border-radius:0;background:transparent;margin:0 0 24px}.workspace-sidebar #editor-new h2{font-size:15px;margin-top:0}.workspace-sidebar #editor-new>p,.workspace-sidebar p{font-size:11px;line-height:1.6;color:#8a94a7}.workspace-sidebar label{font-size:12px;display:flex;flex-direction:column;gap:6px;margin:12px 0;color:#68768d}.workspace-sidebar input,.workspace-sidebar select,.workspace-sidebar textarea{font:inherit;font-size:13px;box-sizing:border-box;max-width:100%;min-width:0;width:100%;border:1px solid #d9deea;border-radius:7px;padding:9px;color:#3f4e67;background:#fff}.workspace-sidebar input[type=checkbox]{width:auto}.workspace-sidebar input[type=color]{height:35px;padding:3px}.workspace-sidebar input[type=range]{padding:0}.workspace-sidebar button{font:inherit;font-size:12px;min-height:38px;padding:8px 10px;margin:4px 0;border:1px solid #e0deeb;border-radius:7px;background:white;color:#645779;max-width:100%;box-sizing:border-box}.workspace-sidebar button:hover:not(:disabled){background:#f6f3fc}.workspace-sidebar button:disabled{opacity:.45}.workspace-sidebar .editor-upload{padding:16px 12px;border-radius:10px;gap:8px;margin-bottom:20px;cursor:pointer;position:relative;background:#fcfbff;align-items:flex-start}.workspace-sidebar .editor-upload strong{font-size:14px}.workspace-sidebar .editor-upload>span{font-size:11px}.workspace-sidebar .editor-upload input[type=file]{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}.workspace-sidebar .editor-upload:focus-within{outline:2px solid #7054bd}.workspace-sidebar #editor-project-save{width:100%}.workspace-section .editor-pairs{gap:8px}.workspace-section #editor-text-list{margin-block:10px}.workspace-section #editor-text-list button{width:100%;text-align:start}.workspace-sidebar .object-tools>div{display:flex;gap:5px;flex-wrap:wrap;max-height:170px;overflow:auto}.workspace-sidebar .object-tools button{font-size:11px}.workspace-sidebar .object-tools legend{display:none}.workspace-sidebar .object-tools summary{font-size:12px;padding:8px 0;cursor:pointer}.workspace-sidebar #paint-stickers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.workspace-sidebar #paint-stickers button{padding:4px;min-width:0;margin:0}.workspace-sidebar #paint-stickers img{max-width:100%;height:auto}.workspace-sidebar .editor-picture-upload{font-size:13px;flex-direction:row;justify-content:center;margin:6px 0 10px;background:#f4effc}.workspace-background{border-top:1px solid #edf0f5;margin-top:18px;padding-top:12px}.workspace-background summary{font-size:12px;cursor:pointer;color:#8590a5}.workspace-center{min-width:0;display:flex;flex-direction:column;padding:0;background:#f0f2f7;overflow:hidden}.workspace-context{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 18px;min-height:32px;background:#fafbfe;border-bottom:1px solid #e5e8ef}.workspace-context-label{font-size:12px;color:#8893a7;max-width:320px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-inline-end:auto}.is-design-workspace .workspace-context button{padding:6px 9px;min-height:32px;font-size:11px;border:1px solid #e1ddeb;border-radius:7px;background:#fff;color:#6b5c85}.workspace-context .tool-icon{width:15px;height:15px;flex-basis:15px}.is-design-workspace .editor-view{position:relative;top:auto;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;border-radius:0;padding:28px;background:#f0f2f7;overflow:auto}.is-design-workspace .editor-view>p{display:none}.is-design-workspace #editor-stage{max-width:100%;max-height:100%;min-width:0}.is-design-workspace #editor-canvas{max-width:100%;max-height:calc(100dvh - 345px);width:auto;height:auto;box-shadow:0 5px 25px #35415818}.workspace-empty{text-align:center;max-width:460px;padding:40px 26px;background:#ffffffb8;border:1px solid #e1e5ef;border-radius:18px;box-shadow:0 8px 22px #26354c06}.workspace-empty h2{font-size:23px;font-weight:650;letter-spacing:-.035em;margin:0 0 14px;color:#536078}.workspace-empty p{font-size:13px;color:#93a0b4}.workspace-empty-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:22px}.workspace-empty-actions button{border:1px solid #ddd7eb;border-radius:8px;padding:10px 12px!important;min-height:40px;font-size:12px;background:white;color:#755e9b}.workspace-empty-actions button:first-child{background:#7054bd;color:white;border-color:#7054bd}.workspace-status{display:flex;justify-content:space-between;gap:12px;padding:10px 18px;background:#fafbfe;border-top:1px solid #e3e7f0;min-height:17px;align-items:center}.workspace-status #editor-dimensions{font-size:10px;color:#8a95a9;white-space:nowrap}.workspace-status #editor-message{font-size:11px;margin:0;color:#7b6c98}.workspace-help{margin:0;padding:12px 22px;background:#fff;color:#8691a5;font-size:12px;border-bottom:1px solid #e6e9ef}.workspace-help>summary{cursor:pointer}.workspace-help>.workspace-save-hint{display:none}.workspace-help[open]>.workspace-save-hint{display:block}.workspace-help .tool-guide{margin-block:10px}.is-design-workspace>footer{padding:16px 22px;margin:0;font-size:11px;background:#fff}.workspace-sidebar #editor-output-preview{padding:12px;background:#f7f8fb;margin-block:14px}.workspace-sidebar #editor-output-preview h2{font-size:14px}.workspace-sidebar #editor-output-preview p{font-size:10px}.workspace-sidebar #editor-output-canvas{max-height:240px;width:auto;max-width:100%}.workspace-sidebar #editor-picture-controls{padding:10px;background:#f7f4fd}.is-design-workspace [hidden]{display:none!important}
@media(max-width:1050px) and (min-width:761px){.design-workspace{grid-template-columns:72px 250px minmax(0,1fr)}.workspace-sidebar{padding-inline:12px}.workspace-history button{font-size:0!important}.workspace-history button .tool-icon{width:18px}.workspace-context-label{max-width:170px}.is-design-workspace .editor-view{padding:20px}}
@media(max-width:760px){.is-design-workspace .workspace-toolbar{padding:10px 12px;gap:10px}.workspace-name{flex:1}.workspace-name h1{font-size:16px}.workspace-history button{font-size:0!important;padding:8px!important}.workspace-downloads{width:100%;gap:6px}.workspace-downloads button,.workspace-downloads a{flex:1;font-size:11px!important;min-width:0;white-space:normal}.workspace-toolbar #editor-project-save{font-size:10px!important}.design-workspace{display:flex;flex-direction:column;height:auto;min-height:0}.is-design-workspace .workspace-rail{flex-direction:row;overflow:auto;gap:4px;padding:7px 8px;border-bottom:1px solid #e1e5ef;order:0}.workspace-rail button{min-width:68px;flex:0 0 68px;min-height:58px!important;font-size:9px!important;padding:8px 3px!important}.workspace-rail .tool-icon{width:19px;height:19px;flex-basis:19px}.workspace-center{order:1;min-height:320px}.workspace-sidebar{order:2;max-height:460px;overflow:auto;border-inline-end:0;border-top:1px solid #e1e5ef;padding:0 16px 18px;overscroll-behavior:auto}.workspace-panel-heading{padding-block:12px}.is-design-workspace .editor-view{padding:22px;min-height:240px;max-height:430px}.is-design-workspace #editor-canvas{max-height:350px;max-width:100%;width:auto;height:auto}.workspace-empty{padding:24px 16px}.workspace-empty h2{font-size:22px}.workspace-empty-actions{gap:6px}.workspace-empty-actions button{font-size:11px;padding:9px!important}.workspace-context{padding:9px 12px;gap:6px}.workspace-context-label{max-width:200px;font-size:11px}.is-design-workspace .workspace-context button{min-height:34px;font-size:10px}.workspace-status{padding:9px 12px;flex-wrap:wrap}.workspace-status #editor-message{font-size:10px}.workspace-help{padding:14px 16px}.is-design-workspace>footer{padding:16px}.workspace-sidebar .editor-project{margin-bottom:22px}}
@media print{.workspace-toolbar,.workspace-rail,.workspace-sidebar,.workspace-context,.workspace-status,.workspace-help{display:none!important}.design-workspace{display:block;height:auto;min-height:0;border:0}.is-design-workspace .workspace-center{overflow:visible}}

.is-design-workspace{width:100%!important}.is-design-workspace .workspace-rail{flex-wrap:nowrap}

.workspace-context{height:54px;min-height:54px;flex:0 0 54px;box-sizing:border-box;align-content:center;overflow:auto}@media(min-width:761px) and (max-width:1050px){.is-design-workspace .workspace-context button{font-size:0}.workspace-context-label{max-width:150px}}@media(max-width:760px){.workspace-context{height:82px;min-height:82px;flex-basis:82px;overflow:visible}}

.workspace-local,.workspace-context-label,.workspace-status #editor-dimensions,.workspace-sidebar p,.workspace-background summary,.workspace-help{color:#657289}.workspace-rail button{color:#5e6b82;font-size:11px!important}.workspace-sidebar label{color:#5d6b82}.is-design-workspace .workspace-back{color:#6c607f}.workspace-empty p{color:#657289}@media(max-width:760px){.workspace-rail button{font-size:10px!important}}

.workspace-rail button,.workspace-context button,.workspace-toolbar button{touch-action:manipulation}
#editor-canvas[data-cursor=resize-nw]{cursor:nwse-resize}#editor-canvas[data-cursor=resize-ne]{cursor:nesw-resize}#editor-canvas[data-cursor=default]{cursor:default}
#workspace-actions{border:1px solid #e0dceb;background:#faf8ff;color:#6b568d;min-height:38px;border-radius:8px;padding:8px 12px;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
#workspace-actions-dialog{box-sizing:border-box;width:calc(100% - 28px);max-width:580px;max-height:min(86dvh,760px);border:1px solid #ddd7eb;border-radius:16px;padding:22px;background:#fff;color:#34435b;box-shadow:0 24px 70px #18243d38;overflow:auto}#workspace-actions-dialog::backdrop{background:#29324e55;backdrop-filter:blur(3px)}#workspace-actions-dialog h2{font-size:21px;margin:0 0 18px}#workspace-actions-dialog label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#657289}#workspace-action-query{box-sizing:border-box;font:inherit;font-size:16px;padding:13px 14px;border:1px solid #cfc6e4;border-radius:10px;width:100%;color:#27364f;background:#fcfbff}#workspace-action-results{display:flex;flex-direction:column;gap:5px;margin-top:16px;max-height:46dvh;overflow:auto;padding:3px}#workspace-action-results button{text-align:start;border:1px solid transparent;border-radius:8px;background:white;padding:10px 12px;color:#46536a;cursor:pointer;min-height:58px;flex-shrink:0}#workspace-action-results button strong{display:block;font-size:13px;font-weight:650}#workspace-action-results button span{display:block;font-size:11px;color:#69768c;margin-top:4px;line-height:1.5}#workspace-action-results button[aria-current=true],#workspace-action-results button:hover:not(:disabled){background:#f2edf9;border-color:#d9cfee}#workspace-action-results button:disabled{opacity:.5;cursor:default}#workspace-action-count,.workspace-action-hint{font-size:11px;color:#657289;margin:12px 0}#workspace-action-close{border:1px solid #dcd5e8;border-radius:8px;padding:9px 14px;background:#fff;color:#65517f;cursor:pointer;min-height:38px}#workspace-actions-dialog :focus-visible{outline:2px solid #7054bd;outline-offset:2px}.workspace-drop-hint{position:absolute;inset:16px;z-index:3;display:flex;align-items:center;justify-content:center;border:2px dashed #8065c4;border-radius:12px;background:#f6f1ffeb;color:#644a9d;font-weight:650;pointer-events:none}.is-file-drop{outline:2px solid #8065c4;outline-offset:-4px}.workspace-direct-hint{font-size:10px;color:#657289;white-space:nowrap}.workspace-status{flex-wrap:wrap}.workspace-direct-hint:only-child{margin-inline-start:auto}@media(max-width:760px){#workspace-actions{font-size:11px;min-height:36px;padding:8px 10px}.workspace-toolbar .workspace-name{flex-basis:50%}.workspace-direct-hint{font-size:9px;white-space:normal}#workspace-actions-dialog{padding:18px;max-height:88dvh}#workspace-action-results{max-height:44dvh}}

@media(max-width:760px){.workspace-toolbar .workspace-name{flex-basis:auto}#workspace-actions{font-size:0!important;width:38px;min-width:38px;padding:8px}.workspace-direct-hint{font-size:10px}}

/* Content determines the height: translated labels and enlarged text must not
   escape a fixed context row or cover the canvas below it. */
.workspace-context{height:auto;min-height:54px;flex:0 0 auto;overflow:visible}
.workspace-context-label{flex:1 1 160px;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.workspace-toolbar>*,.workspace-downloads>*,.workspace-panel-heading>*{min-width:0;max-width:100%}
.workspace-history{flex-wrap:wrap}
.workspace-toolbar button,.workspace-toolbar a,.workspace-context button,.workspace-sidebar button,.workspace-sidebar summary,.workspace-sidebar h2,.workspace-status>*{overflow-wrap:anywhere;white-space:normal;line-height:1.5}
.workspace-status>*{min-width:0;max-width:100%}
.workspace-status #editor-dimensions,.workspace-direct-hint{white-space:normal}
.workspace-panel-heading{flex-wrap:wrap}
.workspace-panel-heading h2{flex:1 1 90px;min-width:0;overflow-wrap:anywhere}
#workspace-action-results button,#workspace-actions-dialog h2,#workspace-actions-dialog p{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.workspace-context{height:auto;min-height:54px;flex-basis:auto}.workspace-context-label{flex-basis:100%;max-width:none}.workspace-downloads>*{flex-basis:max-content!important}}

#editor-canvas.cutout-active{cursor:crosshair!important;touch-action:none}#editor-canvas.has-cutout,#sticker-preview{background:repeating-conic-gradient(#e0e4ed 0% 25%,#fff 0% 50%) 0 0/16px 16px}#sticker-preview{display:block;width:min(100%,240px);height:auto;border:1px solid #c4cbe0;border-radius:8px}.sticker-pack-item{display:flex;align-items:center;gap:8px;min-width:0}.sticker-pack-item span{overflow-wrap:anywhere;min-width:0;flex:1}.sticker-pack-item button{flex:none;min-width:44px}

#editor-sticker-panel .sticker-result-link{display:block;box-sizing:border-box;min-height:44px;max-width:100%;padding:10px;border:1px solid #bdb0db;border-radius:8px;background:#f5f2ff;color:#4c358e;font-size:14px;line-height:1.4;overflow-wrap:anywhere;text-decoration:underline}

.cutout-mode-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}.cutout-mode-buttons button{min-width:0;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}.cutout-mode-buttons button:last-child{grid-column:1/-1}.cutout-mode-buttons button[aria-pressed=true]{border:2px solid #6451dd;background:#eeeaff;color:#312070}#editor-cutout-panel select{max-width:100%;width:100%;min-width:0}

.image-history-panel{min-width:0}.image-history-panel p{overflow-wrap:anywhere}.image-history-actions{display:flex;flex-wrap:wrap;gap:8px}.image-history-actions button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}#editor-history-list{max-height:320px;overflow:auto;list-style:none;padding:2px;margin:8px 0;display:grid;gap:5px}#editor-history-list button{display:block;width:100%;min-height:44px;text-align:start;white-space:normal;overflow-wrap:anywhere}#editor-history-list [aria-current=true]{border:2px solid #6451dd;background:#eeeaff;color:#312070}

.image-history-draft{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px;border:1px solid #bdb0db;background:#f5f2ff;border-radius:8px;max-width:100%;box-sizing:border-box}.image-history-draft[hidden]{display:none}.image-history-draft span{min-width:0;overflow-wrap:anywhere}.image-history-draft button{min-height:44px;max-width:100%;white-space:normal}

.workspace-center>.image-history-draft{flex:0 0 auto;width:100%;border-radius:0;margin:0}@media print{.image-history-draft{display:none!important}}
.photo-adjust-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}.photo-adjust-actions button{min-width:0;white-space:normal;overflow-wrap:anywhere;min-height:44px}.photo-adjust-actions button:last-child{grid-column:1/-1}#editor-photo-panel input:not([type=checkbox]),#editor-photo-panel select{width:100%;max-width:100%;min-width:0}#photo-histogram{display:block;width:100%;max-width:256px;height:auto;border:1px solid #c4cbe0;border-radius:6px}

/* Photo curves: same five points with pointer, keyboard and number-field access. */
#photo-curve-graph{display:block;box-sizing:border-box;width:100%;max-width:320px;height:auto;aspect-ratio:256/200;border:1px solid #cdd5e3;border-radius:8px;touch-action:none;cursor:crosshair;background:white;scroll-margin-top:90px;scroll-margin-bottom:30px}#photo-curve-graph:focus-visible{outline:3px solid #6550d4;outline-offset:2px}#photo-curve-status{display:block;min-height:1.5em;font-variant-numeric:tabular-nums;color:#324261}#photo-histogram-stats{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#editor-canvas.retouch-active{cursor:crosshair}#editor-retouch-panel input,#editor-retouch-panel select{max-width:100%;min-width:0}#editor-retouch-panel button{white-space:normal;overflow-wrap:anywhere;max-width:100%}

#editor-canvas.fill-active{cursor:crosshair!important}.fill-palette{display:flex;flex-wrap:wrap;gap:6px}.fill-palette button{display:flex;align-items:center;gap:6px;min-width:0;width:auto;overflow-wrap:anywhere}.fill-swatch{display:inline-block;width:20px;height:20px;flex:none;border:1px solid #9ca3af;border-radius:4px}
