/* PC creation workspace. Scoped to creation and editor surfaces. */
main.editor-page{max-width:none;padding:16px 20px}
.save-name-dialog{width:min(420px,calc(100vw - 40px));box-sizing:border-box;border:1px solid var(--line);border-radius:16px;padding:24px;color:#19314d;background:#fff}
.save-name-dialog::backdrop{background:#172d4870}.save-name-dialog h2{margin:0;font-size:20px}.save-name-dialog input{width:100%}.save-name-dialog p{margin:0;font-size:13px}.save-name-dialog .row{justify-content:flex-end}
.editor-page .editor{height:calc(100dvh - 108px);min-height:570px;border-radius:16px;box-shadow:0 6px 28px #223c5710}
.editor-head{min-height:80px;padding:14px 20px;gap:16px;flex-wrap:nowrap}
.editor-document{display:grid;gap:5px;min-width:120px}
.editor-eyebrow{font-size:10px;font-weight:700;color:#8492a3;letter-spacing:2px}
.editor-document input{width:220px;max-width:100%;border-color:transparent;padding:3px 0;font-size:17px;font-weight:650;background:transparent}
.editor-document input:hover,.editor-document input:focus{border-color:#d9e1eb}
.editor-file-actions{margin-left:auto;display:flex;gap:8px;white-space:nowrap}
.editor-commandbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;padding:9px 16px;border-bottom:1px solid var(--line);gap:12px;background:#fcfdff}
.editor-commandbar .row{gap:5px}
.editor-commandbar .edit-options{position:relative;margin:0}
.editor-commandbar .edit-options summary{list-style:none;display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #edb58c;border-radius:8px;background:#fff7ef;color:#924611;font-size:13px;font-weight:600;cursor:pointer}
.editor-commandbar .edit-options summary::-webkit-details-marker{display:none}
.editor-commandbar .edit-options summary::after{content:'⌄'}
.editor-commandbar .edit-options[open] summary{margin:0;background:#ffeddd}
.editor-commandbar .edit-options[open] summary::after{content:'⌃'}
.drawing-settings{position:absolute;right:0;top:calc(100% + 8px);z-index:8;width:320px;max-height:calc(100dvh - 270px);overflow-y:auto;padding:16px;border:1px solid #dce3eb;border-radius:12px;background:#fff;box-shadow:0 12px 32px #19314d26;box-sizing:border-box}
.drawing-settings header{display:flex;align-items:center;justify-content:space-between;margin:0;padding:0 0 10px;font-size:14px}
.drawing-settings .settings-group{padding:12px 0;border-top:1px solid var(--line);display:grid;gap:9px}
.drawing-settings h3{margin:0;font-size:12px}.drawing-settings label{display:grid;gap:8px;font-size:12px;font-weight:600}
.drawing-settings p{margin:0;font-size:11px;line-height:1.7}
.editor-commandbar .drawing-settings button{border-color:var(--line);background:#f8fafc;justify-content:center;min-height:36px}
.drawing-settings .row button{flex:1}.drawing-settings select{width:100%;font-size:13px;padding:8px}
.editor-commandbar button{display:flex;align-items:center;gap:7px;font-size:12px;padding:7px 10px;background:transparent;border-color:transparent}
.editor-commandbar button:hover{background:#fff1e5;border-color:#ffd4b2}
.editor-icon{width:20px;height:20px;flex-shrink:0;object-fit:contain}
.command-divider{height:20px;width:1px;background:var(--line);margin:0 9px}
.editor .tools{width:78px;flex-shrink:0;gap:5px;padding:10px 8px;background:#fff}
.editor .tools button{position:relative;display:grid;justify-items:center;gap:5px;padding:9px 2px;min-height:57px;border-color:transparent;border-radius:10px;font-size:11px}
.editor .tools button:hover{background:#f4f6fa}
.editor .tools button.active{background:#fff0e3;border-color:#ffbe88;color:#b85100}
.tools kbd{position:absolute;right:4px;top:4px;font:9px sans-serif;color:#92a0ae}
.canvas-wrap{background-color:#f1f3f6;background-image:radial-gradient(#cbd4de .7px,transparent .7px);background-size:18px 18px}
.canvas-view-controls{position:absolute;top:12px;right:12px;display:flex;gap:6px;z-index:2}
.canvas-view-controls button{display:grid;place-items:center;width:34px;height:34px;padding:6px;background:#fff;border-radius:7px}
.canvas-view-controls button span{display:none}
.canvas-view-controls button[aria-pressed=true]{background:#eaf2ff;border-color:#8caef3;color:#244b8e}
.canvas-reference{display:none;position:absolute;inset:0;padding:52px 24px 24px;background:#f1f3f6}
.canvas-reference img{width:100%;height:100%;object-fit:contain}
.show-reference .canvas-reference{display:block}.show-reference .canvas-tool-hint{display:none}
.editor:fullscreen{width:100%;height:100dvh!important;inset:0!important;border-radius:0;background:#fff}
.canvas-tool-hint{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);padding:7px 12px;max-width:95%;width:max-content;border:1px solid #e1e7ed;background:#ffffffed;color:#6c7b8e;font-size:11px;border-radius:8px;pointer-events:none;box-shadow:0 2px 8px #26394c08}
.editor .palette-panel{width:296px;flex-shrink:0;display:flex;flex-direction:column;padding:0;overflow:hidden;background:#fff}
.palette-top{padding:16px 16px 10px;flex-shrink:0}
.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.panel-heading h3{font-size:14px;margin:0}.panel-heading>span{font-size:10px;color:#8693a4}
#selectedColor{display:flex;gap:12px;align-items:center;padding:12px;background:#f7f8fb;border-radius:10px}
#selectedColor>i{display:block;width:40px;height:40px;border:1px solid #0002;border-radius:9px;flex-shrink:0}
#selectedColor>div{display:grid;gap:4px}#selectedColor strong{font-size:16px}#selectedColor span{font-size:11px;color:#768598}
.color-actions{display:flex;gap:7px;margin-top:10px}.color-actions button{flex:1;padding:8px 4px;font-size:12px}
button[aria-pressed=true]{background:#fff0e3;border-color:#ffb57d}
.palette-top #colorSearch{margin:12px 0 6px;width:100%;padding:9px 11px;font-size:12px}
.palette-filters{display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:6px}
.palette-filters select{font-size:11px;padding:5px;max-width:95px;border:0;background:#f5f7fa}
.editor .swatches{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:80px;gap:7px;padding:2px 16px 14px;overflow-y:auto;align-content:start;flex:1;min-height:95px;scrollbar-width:thin}
.editor .swatch{border:1px solid #e5e9ef;padding:4px;font-size:11px;min-width:0;height:80px;background:#fff}
.editor .swatch.selected{border:2px solid #ff7914;padding:3px;background:#fff5e9}
.editor .swatch i{height:32px;border-radius:4px}.editor .swatch span{display:flex;flex-direction:column;align-items:center;padding:5px 0 0;gap:2px;line-height:15px;font-weight:600}
.swatch small{font-size:10px;line-height:13px;font-weight:400;color:#718096}.palette-empty{grid-column:1/-1;font-size:12px;color:#7b899b;line-height:1.7}
.palette-operations{border-top:1px solid var(--line);padding:10px 16px;flex-shrink:0;background:#fcfdff}
.palette-operations .color-actions{margin:0 0 7px}.palette-operations>button{width:100%;font-size:12px;padding:8px}
.palette-operations #selectionHint{font-size:11px;margin:8px 0 0;line-height:1.5}
.palette-operations #clearSelection{margin-top:5px;padding:4px;border:0;color:#718096;background:transparent}
.palette-panel .edit-options{margin:0;padding:10px 16px;border-top:1px solid var(--line);overflow:auto;max-height:230px;flex-shrink:0}
.edit-options summary{font-size:12px;margin:0}.edit-options[open] summary{margin-bottom:12px}.edit-options label{font-size:12px}
.editor-foot{align-items:center;gap:12px;min-height:48px;padding:8px 16px;background:#fff;flex-wrap:wrap}
#workStats{font-size:11px;color:#6c7c90}.editor-foot .row{gap:12px}.editor-foot label{font-size:11px;white-space:nowrap}
.zoom-control{display:flex;align-items:center;border:1px solid var(--line);border-radius:8px}.zoom-control button{border:0;background:transparent}.zoom-control span{min-width:45px;text-align:center;font-variant-numeric:tabular-nums}
.editor-page .editor.focus-editor{height:auto;min-height:0;inset:8px;z-index:25}
main:has(.generation-workbench){max-width:1560px;padding-top:24px}
.generation-workbench{grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.generation-workbench>.card{padding:22px;border-radius:16px}
.generation-workbench .upload{min-height:390px;background:#f4f6f9;border:1px dashed #c6d1dc;border-radius:12px;position:relative}
.generation-workbench .upload:has(canvas:not([hidden]))>span,.generation-workbench .upload:has(canvas:not([hidden]))>#uploadLoginHint{display:none}
.generation-workbench #cropCanvas{max-height:440px!important;object-fit:contain}
.generation-workbench #sourceFile{max-width:100%;font-size:12px;background:#fff}
.generation-workbench .row{gap:7px;justify-content:center}.generation-workbench .row button{font-size:12px;padding:9px 12px}
.generation-workbench #compositionSize{padding:12px;background:#fff7ee;border-radius:9px;color:#92603b;font-size:12px}
.generation-workbench #generateForm{gap:16px;position:sticky;top:16px}
.generation-workbench #generateForm>h3{padding-bottom:12px;border-bottom:1px solid var(--line)}
.generation-workbench #startGenerate{min-height:46px;font-weight:650;box-shadow:0 4px 12px #ff791425}
.generation-workbench #generateForm .muted{font-size:12px}.generation-workbench #generateQuota{font-size:12px;margin:0}
.generation-workbench #generationStatus:not(:empty){background:#eef5ff;padding:12px;border-radius:8px;line-height:1.6;font-size:12px}
@media(min-width:1500px){.editor .palette-panel{width:320px}}
@media(max-width:1150px){main.editor-page{padding:10px}.editor .palette-panel{width:255px}.editor-document input{width:155px}.editor-file-actions button{padding:8px}.editor .tools{width:66px}.editor .swatches{padding-inline:12px}.editor-commandbar{padding-inline:10px}.generation-workbench{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-height:800px){.editor-page .editor{min-height:470px}.palette-top{padding-top:10px}#selectedColor{padding:7px}.palette-operations #selectionHint{display:none}.palette-panel .edit-options{max-height:175px}.editor .tools button{min-height:49px;padding:6px 2px}}
@media(max-width:800px){.generation-workbench{grid-template-columns:1fr}.generation-workbench #generateForm{position:static}.editor-page{overflow-x:auto}.editor-page .editor{min-width:760px}}

@media(max-height:800px){
 .editor .palette-panel{overflow-y:auto}
 .palette-top{padding:10px 12px 6px}.panel-heading{margin-bottom:7px}
 #selectedColor>i{width:28px;height:28px}#selectedColor strong{font-size:13px}
 .palette-top .color-actions{margin-top:6px}.palette-top .color-actions button{padding:6px 3px}
 .palette-top #colorSearch{margin:7px 0 2px;padding:7px 9px}
 .palette-filters input[type=checkbox]{margin-block:6px}
 .palette-operations{padding:7px 12px}.palette-operations button{padding:6px 3px}
 .editor .swatches{min-height:70px}
}

/* Image generation: a balanced preview workspace and a compact settings column. */
main:has(.generation-workbench){max-width:1480px;padding:28px 32px 40px}
.generation-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.generation-heading h1{font-size:26px;letter-spacing:-.5px;margin:8px 0 10px}.generation-heading p{margin:0;font-size:13px}.generation-heading>a{font-size:13px;color:#718096;white-space:nowrap}
.generation-eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#ba713c}
main:has(.generation-workbench) .creation-choices{gap:10px;margin:24px 0 18px}
main:has(.generation-workbench) .creation-choices a{padding:13px 18px;gap:4px;border-radius:10px}
main:has(.generation-workbench) .creation-choices strong{font-size:14px}
main:has(.generation-workbench) .creation-choices span{font-size:12px}
main:has(.generation-workbench) .creation-choices a[aria-current]{box-shadow:none;border-color:#f3b688;background:#fff7ef}
.generation-workbench{grid-template-columns:minmax(0,1fr) 360px;gap:20px}
.generation-workbench>.card{padding:20px;box-shadow:0 3px 18px #19314d04}
.generation-section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px}
.generation-workbench h3{font-size:15px;margin:0;display:flex;align-items:center;gap:10px}
.generation-workbench h3 b{font-size:11px;font-weight:600;color:#c47439;background:#fff1e5;padding:5px 7px;border-radius:6px}
.generation-section-heading>span{font-size:11px;color:#8a97a5}
.generation-workbench .upload{height:420px;min-height:0;padding:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;background:linear-gradient(145deg,#f8fafc,#f1f4f8);border-color:#d0d9e3}
.upload-intro{text-align:center}.upload-intro h2{font-size:19px;margin:15px 0 8px}.upload-intro p{font-size:12px;color:#8592a2;margin:0}.upload-symbol{display:inline-grid;place-items:center;width:60px;height:60px;border-radius:17px;color:#bf723b;background:white;box-shadow:0 5px 20px #19314d0a;font-size:32px;font-weight:300}
.generation-workbench .source-picker{position:relative;display:inline-flex;padding:11px 22px;background:#fff;color:#273e56;border:1px solid #cbd5e1;border-radius:9px;cursor:pointer;font-size:13px;font-weight:600;overflow:hidden;flex-shrink:0}
.generation-workbench #sourceFile{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;padding:0}
.source-picker:focus-within{outline:3px solid #a6cafa;outline-offset:3px}
.generation-workbench #uploadLoginHint{margin:0;font-size:11px}
.generation-workbench .upload:has(canvas:not([hidden])) .upload-intro{display:none}
.generation-workbench .upload:has(canvas:not([hidden])){gap:10px;padding:14px}
.generation-workbench .upload:has(canvas:not([hidden])) .source-picker{order:2;padding:7px 16px}
.generation-workbench #cropCanvas{max-height:335px!important;max-width:100%;width:auto;height:auto;object-fit:contain;border-radius:4px}
.composition-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;flex-wrap:wrap}.composition-toolbar>span{font-size:12px;color:#8391a2}
.generation-workbench .composition-toolbar .row{gap:5px}.generation-workbench .composition-toolbar button{padding:8px 10px;font-size:12px;background:#f8fafc}
.generation-workbench #compositionSize{margin:14px 0 0;background:#f4f7fa;color:#677c92;padding:12px;font-size:12px;line-height:1.6}
.generation-workbench #generateForm{gap:14px;top:20px}.generation-workbench #generateForm>h3{padding-bottom:14px;margin:0}
.generation-workbench .generation-style{gap:9px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.generation-workbench .generation-style>p:last-child{font-size:11px;line-height:1.6;color:#8391a2}
.generation-workbench label{font-size:12px;gap:7px}.generation-workbench select,.generation-workbench input[type=number]{padding:9px 10px;min-height:38px;width:100%}
.generation-parameters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.generation-parameters>label:first-child{grid-column:1/-1}
.generation-parameters [hidden]{display:none!important}
.generation-workbench .background-option{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;padding:11px;background:#fafbfc}.background-option small{display:block;color:#8391a2;font-size:11px;margin-top:3px}
.generation-submit{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:14px}.generation-submit>a{text-align:center;font-size:12px;color:#75889b}
.generation-workbench #generateQuota{padding:10px 12px;font-size:12px;background:#f3f7fc;color:#5a7695}.generation-submit>.muted{font-size:11px!important;line-height:1.6}
.generation-workbench .style-result{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:12px;text-align:center}.generation-workbench .style-result img{height:260px;max-width:100%;object-fit:contain}
@media(min-width:1650px){.generation-workbench .upload{height:500px}.generation-workbench #cropCanvas{max-height:415px!important}}
@media(max-width:1150px){main:has(.generation-workbench){padding:22px 20px}.generation-workbench{grid-template-columns:minmax(0,1fr) 320px;gap:14px}.generation-workbench>.card{padding:16px}.generation-section-heading>span{display:none}}
@media(max-width:900px){.generation-workbench{grid-template-columns:1fr}.generation-workbench #generateForm{position:static}.generation-heading h1{font-size:22px}.generation-heading>a{display:none}}

.composition-previews{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.composition-previews:has(.style-result:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}
.generation-workbench .composition-previews .style-result{margin:0;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;height:420px;padding:14px}
.generation-workbench .composition-previews .style-result[hidden]{display:none}
.generation-workbench .composition-previews .style-result img{height:auto;max-height:335px;max-width:100%;min-height:0}
.generation-workbench .composition-previews .style-result p{font-size:12px;margin:0 0 12px}
@media(min-width:1650px){.generation-workbench .composition-previews .style-result{height:500px}.generation-workbench .composition-previews .style-result img{max-height:415px}}
@media(max-width:1100px){.composition-previews:has(.style-result:not([hidden])){grid-template-columns:1fr}.generation-workbench .composition-previews .style-result{height:280px}.generation-workbench .composition-previews .style-result img{max-height:220px}}

.style-choice-label{font-size:12px;font-weight:600}
.style-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.style-choices button{position:relative;min-height:42px;padding:10px 20px 10px 10px;text-align:left;line-height:1.5;font-size:12px;border-color:#e0e6ed;border-radius:9px;background:#fafbfc;overflow-wrap:anywhere}
.style-choices button:hover:not(:disabled){border-color:#e9a16b;background:#fff9f3}
.style-choices button[aria-pressed="true"]{border-color:#ed9957;background:#fff3e7;color:#ae510d;font-weight:600;box-shadow:inset 0 0 0 1px #ed995720}
.style-choices button[aria-pressed="true"]::after{content:'✓';position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:12px}

.image-crop-dialog{width:min(1000px,calc(100vw - 40px));max-width:none;height:min(800px,calc(100dvh - 40px));max-height:none;padding:0;border:1px solid #dce3eb;border-radius:16px;background:#fff;color:#19314d}
.image-crop-dialog[open]{display:flex;flex-direction:column}.image-crop-dialog::backdrop{background:#0f172a99;backdrop-filter:blur(3px)}
.image-crop-dialog header{padding:18px 24px;margin:0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.image-crop-dialog h2{font-size:20px;margin:0}.image-crop-dialog header p{font-size:12px;color:#7b8b9d;margin:6px 0 0}
.crop-controls{display:flex;justify-content:space-between;gap:12px;padding:14px 24px;flex-wrap:wrap}.crop-controls>div{display:flex;gap:6px;flex-wrap:wrap}.crop-controls button{font-size:12px;padding:8px 12px}.crop-ratios button[aria-pressed=true]{color:#b75610;background:#fff2e6;border-color:#eca269}
.crop-stage{flex:1;min-height:140px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#202a38;padding:20px}.crop-stage canvas{display:block;touch-action:none;max-width:none}
.image-crop-dialog footer{padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white}.image-crop-dialog footer>span{font-size:12px;color:#7a8b9e}.image-crop-dialog footer>div{display:flex;gap:8px}
.generation-section-heading #editCrop{font-size:12px;padding:7px 12px;color:#8b572e;background:#fff8f1}
@media(max-width:600px){.image-crop-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px)}.image-crop-dialog header,.crop-controls,.image-crop-dialog footer{padding:12px}.image-crop-dialog footer>span{max-width:40%}}
.export-panel{display:grid;gap:14px}.export-file{padding:16px;border:1px solid #dce5ef;border-radius:12px;background:#f8fafc}.export-file>strong{font-size:16px}.export-file p{font-size:13px;color:#64748b;line-height:1.6;margin:8px 0 12px}.export-panel .row{gap:12px;flex-wrap:wrap}.export-panel a{font-size:13px}.export-print{font-weight:700}.export-panel summary{cursor:pointer;margin-bottom:12px}.export-status{font-size:13px;color:#526580;margin:0;min-height:20px}

.palette-operations #suggestWork.has-suggestions{color:#a64100;background:#fff4e8;border-color:#ffc78e;font-weight:600}
.editor .tools .tool-color-dot{position:absolute;right:5px;bottom:7px;width:12px;height:12px;border-radius:4px;border:1px solid #0003;box-shadow:0 0 0 2px #fff}
.tool-color-picker[hidden]{display:none}
.tool-color-picker{position:fixed;z-index:1000;width:min(320px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;box-sizing:border-box;padding:16px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 12px 44px #162c4930}
.tool-color-picker header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tool-color-picker header button{padding:2px 9px;font-size:22px;line-height:1.2}
.tool-color-picker p{font-size:12px;color:#718096;margin:8px 0 12px}
.tool-color-picker input{width:100%;box-sizing:border-box;margin-bottom:12px}
.tool-color-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;max-height:260px;overflow:auto;padding:2px}
.tool-color-grid button{display:grid;gap:4px;padding:4px;border:1px solid transparent;border-radius:7px;font-size:11px;text-align:center}
.tool-color-grid button i{height:24px;border:1px solid #0002;border-radius:4px}
.tool-color-grid button[aria-pressed=true]{border-color:#ff7a00;background:#fff3e7;box-shadow:0 0 0 1px #ff7a00}
.tool-color-grid button:hover{border-color:#ffaf69}
.tool-color-grid button:focus-visible{outline:2px solid #2364bd;outline-offset:1px}
.tool-color-grid>p{grid-column:1/-1}

.tool-color-groups{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 10px}
.tool-color-groups button{min-width:30px;padding:5px 8px;border:1px solid #e5eaf0;border-radius:7px;font-size:12px;color:#52657b;background:#f8fafc}
.tool-color-groups button[aria-pressed=true]{background:#fff0e3;border-color:#ffaf69;color:#b85100;font-weight:700}
.tool-color-groups button:hover{border-color:#ffaf69}
.tool-color-group-title{grid-column:1/-1;margin:4px 0 2px;padding:5px 2px;border-bottom:1px solid #edf0f4;font-size:12px;color:#334b65}
.tool-color-group-title small{float:right;font-size:11px;font-weight:400;color:#8492a3}

.editor-commandbar .fit-actions{justify-self:center}
.editor-commandbar .view-actions{justify-self:end}
.editor-commandbar #fitWork{border:1px solid #dce4ee;border-radius:8px;background:#fff;padding:8px 14px}

.editor .tools button[data-tool="pan"]{min-height:68px;padding:12px 2px;font-size:12px;margin-top:7px;background:#f5f7fa;border-color:#e2e8f0}
.editor .tools button[data-tool="pan"] .editor-icon{width:26px;height:26px}
.editor .tools button[data-tool="pan"]:hover{background:#eef2f7}
.editor .tools button[data-tool="pan"].active{background:#fff0e3;border-color:#ffbe88;color:#b85100}

.tool-settings-section{border-top:1px solid #dce4ee;padding-top:12px;margin-top:8px}
.editor .tools .edit-options{margin:0;position:relative}
.editor .tools .edit-options summary{list-style:none;display:grid;justify-items:center;gap:6px;padding:10px 2px;border:1px solid #ced9e5;border-radius:10px;background:#eef3f8;color:#405973;cursor:pointer;font-size:11px;font-weight:600}
.editor .tools .edit-options summary::-webkit-details-marker{display:none}
.editor .tools .edit-options summary:hover,.editor .tools .edit-options[open] summary{background:#e1ebf5;border-color:#8ea8c1}
.editor .tools .drawing-settings{position:fixed;right:auto;top:auto;z-index:1000;width:min(320px,calc(100vw - 16px));max-height:calc(100dvh - 16px)}
.editor .tools .drawing-settings button{display:flex;align-items:center;justify-content:center;padding:8px 10px;min-height:36px;font-size:12px;border:1px solid #dce4ee;background:#f8fafc;margin:0}
.editor .tools .drawing-settings header button{min-height:30px;padding:2px 9px;font-size:20px}

.editor-commandbar #switchGenerationSize{border:1px solid #dce4ee;border-radius:8px;background:#fff;padding:8px 12px}
.editor-commandbar #switchGenerationSize[hidden]{display:none}
.generation-size-presets{display:flex;gap:8px;flex-wrap:wrap}
.generation-size-presets button{flex:1;min-width:70px;padding:12px;border-radius:10px}
.generation-size-presets button[aria-pressed=true]{border-color:#ff801a;background:#fff0e3;color:#ad510a}

.editor-foot{padding:10px 16px;min-height:64px}
#workStats{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;color:#263e59;font-size:13px}
.work-stat{display:flex;align-items:center;gap:8px;white-space:nowrap;line-height:1.5}
.work-stat-label{color:#728198;font-size:12px}
.work-stat strong{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}
.work-stat-total{padding:6px 12px;border:1px solid #ffdbc1;border-radius:9px;background:#fff3e8}
.work-stat-total .work-stat-label{color:#a75d22;font-weight:600}
.work-stat-total strong{color:#c8580b;font-size:19px;font-weight:750}
@media(max-width:1150px){#workStats{gap:8px 12px}.editor-foot{padding:8px 12px}.work-stat{gap:5px}.work-stat strong{font-size:13px}.work-stat-total strong{font-size:18px}}

.generation-size-bar[hidden],.generation-size-custom[hidden]{display:none}
.generation-size-bar{padding:12px 20px;border-bottom:1px solid #dce6f0;background:#f5f9ff;flex-shrink:0}
#generationSizeForm{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap}
.generation-size-title{display:grid;gap:3px;min-width:112px}
.generation-size-title strong{font-size:14px;color:#243e5c}
.generation-size-title span{font-size:11px;color:#728198}
.generation-size-options{display:flex;align-items:center;gap:6px}
.generation-size-options button{padding:8px 12px;border-radius:8px;border:1px solid #d6e1ed;background:#fff;color:#405973;font-size:12px;white-space:nowrap}
.generation-size-options button[aria-pressed=true]{background:#fff0e3;border-color:#ff9d50;color:#ad510a;font-weight:650}
.generation-size-custom{display:flex;align-items:center;gap:6px;font-size:12px;color:#52657b;white-space:nowrap}
.generation-size-custom input{width:76px;padding:7px 8px;font-size:13px}
.generation-size-apply{padding:9px 16px;white-space:nowrap;font-size:12px}
.generation-size-description{display:flex;align-items:center;gap:6px 16px;flex-wrap:wrap;width:100%;font-size:12px;color:#3d6187}
.generation-size-note{color:#8391a3;font-size:11px}
@media(max-width:1150px){.generation-size-bar{padding:10px 12px}#generationSizeForm{gap:8px 10px}.generation-size-options button{padding:8px 9px}}

.generation-settings-link{font-size:12px;color:#607b99;white-space:nowrap;padding:8px 4px}

/* Searchable replacement palette; source follows the selected canvas color. */
.replace-colors{display:flex;flex-direction:column;gap:12px;min-width:0}
.replace-colors p{margin:0}.replace-source{display:flex;align-items:center;gap:12px;padding:12px;background:#f5f7fa;border-radius:12px}.replace-chip{width:38px;height:38px;border-radius:8px;border:1px solid #dce2e9}.replace-source strong{display:block;margin-top:4px}.replace-source small{font-size:12px;color:#718096;font-weight:400}
.replace-search{display:flex;align-items:center;border:1px solid #dce2e9;border-radius:10px;overflow:hidden}.replace-search input{width:100%;min-width:0;border:0!important;background:transparent;padding:11px}.replace-search button{border:0;background:transparent;padding:10px}.replace-search input::-webkit-search-cancel-button{display:none}
.replace-series{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}.replace-series button{flex-shrink:0;border:0;border-radius:7px;padding:6px 11px;background:#f4f6f8}.replace-series [aria-pressed=true]{background:#fff0e2;color:#c45a0b}
.replace-results{max-height:38vh;min-height:130px;overflow-y:auto;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:3px;align-content:start}.replace-results h3{grid-column:1/-1;font-size:13px;margin:8px 0 0;color:#718096}.replace-color{display:flex;flex-direction:column;align-items:center;gap:5px;border:1px solid transparent;border-radius:8px;background:transparent;padding:6px 2px;font-size:12px}.replace-color span{width:30px;height:30px;border-radius:6px;box-shadow:inset 0 0 0 1px #00000015}.replace-color[aria-pressed=true],.replace-blank[aria-pressed=true]{border-color:#ff7a18;background:#fff2e7;color:#b94c00}.replace-color:disabled{opacity:.35;cursor:not-allowed}.replace-blank{grid-column:1/-1;text-align:left;padding:10px;border:1px solid #e6eaf0;border-radius:8px;background:#fff}.replace-no-result{grid-column:1/-1;padding:20px 0}.replace-footer{display:flex;align-items:center;gap:12px;border-top:1px solid #edf0f4;padding-top:12px}.replace-footer span{flex:1;font-size:13px}.replace-footer button{padding:11px 18px}.replace-colors button:focus-visible{outline:2px solid #ff7a18;outline-offset:2px}
@media(max-width:420px){.replace-results{grid-template-columns:repeat(5,minmax(0,1fr))}.replace-footer{flex-wrap:wrap}}
