/* Multi-image tools use the same upload → preview → save rhythm. */
.compose-workspace{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 8px 32px #20345505}
.compose-upload{display:flex;align-items:center;gap:16px;margin:20px;padding:20px;border:1px dashed #c5cee1;border-radius:11px;background:#f8faff;cursor:pointer}
.compose-upload:focus-visible,.compose-upload.is-dragging{outline:2px solid var(--accent);outline-offset:2px;background:#edf2ff}
.compose-upload-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:10px;background:#e9eefc;color:var(--accent)}
.compose-upload svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.compose-upload strong{font-size:14px;font-weight:600}.compose-upload p{margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.7}.compose-upload>.primary-button{margin-left:auto;white-space:nowrap}
.compose-queue{padding:16px 20px 10px;background:#fff;border-bottom:1px solid var(--line)}.compose-queue-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:12px}.compose-order-hint{margin-left:12px;color:var(--muted);font-size:11px}
.compose-list{list-style:none;display:flex;gap:10px;overflow-x:auto;margin:0;padding:3px 3px 10px;scrollbar-width:thin;scrollbar-color:#cbd4e3 transparent}
.compose-item{flex:0 0 116px;width:116px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:white}.compose-item.is-selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.compose-thumb{position:relative;height:76px;background:#f0f2f6;cursor:pointer}.compose-thumb img{width:100%;height:100%;object-fit:contain}.compose-number{position:absolute;top:5px;left:5px;min-width:20px;padding:2px 4px;border-radius:4px;background:#fffefc;color:#333b4d;font-size:10px;text-align:center;box-shadow:0 1px 4px #2222}
.compose-item-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 8px 2px;font-size:10px;color:var(--muted)}.compose-item-actions{display:flex;justify-content:space-around;padding:3px 4px}.compose-item-actions button{width:30px;height:28px;border:0;border-radius:5px;background:white;font-size:14px;color:var(--muted)}.compose-item-actions button:hover:not(:disabled){background:var(--soft);color:var(--accent)}
.compose-layout{display:grid;grid-template-columns:minmax(0,1fr) 316px;border-top:1px solid var(--line)}.compose-preview-panel{display:flex;flex-direction:column;min-width:0;min-height:460px;background:#f0f2f6}.compose-preview-stage{flex:1;display:flex;align-items:center;justify-content:center;min-height:340px;height:420px;padding:24px;overflow:hidden}.compose-preview-stage canvas,.compose-preview-stage>img{display:block;max-width:100%;max-height:480px;object-fit:contain;box-shadow:0 6px 24px #20345512}.compose-preview-stage [hidden]{display:none!important}
.compose-empty{text-align:center;color:var(--muted);padding:30px}.compose-empty svg{width:62px;height:62px;stroke:#9baad0;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.compose-empty h2{margin:16px 0 10px;font-size:19px;font-weight:600;color:var(--ink)}.compose-empty p{font-size:12px;line-height:1.8}
.compose-settings{padding:22px;border-left:1px solid var(--line)}.compose-settings fieldset{margin:0;padding:0;border:0;min-width:0}.compose-settings h3{font-size:16px;margin:0 0 18px}.compose-settings .field-label{margin-top:16px}.compose-settings .field-row .field-label{margin-top:0}.compose-settings .field-row{margin-top:16px}.compose-settings .field-help{margin:12px 0 18px;font-size:11px;line-height:1.8}.compose-settings input[type=number],.compose-settings select{width:100%}
.compose-background{display:flex;align-items:center;gap:9px}.compose-background input{width:42px;height:32px;padding:3px;border:1px solid var(--line);border-radius:6px;background:white;cursor:pointer}.compose-swatch{width:24px;height:24px;border:1px solid #cbd2e0;border-radius:50%;background:var(--swatch);cursor:pointer}.compose-swatch[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}
.compose-save{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.compose-share-help{font-size:10px;color:var(--muted);text-align:center;margin:12px 0 0}.compose-message{color:var(--muted);font-size:11px;line-height:1.7;margin:0 0 12px}.compose-message:empty{display:none}.compose-message.is-error{color:#a93d3d}.compose-progress-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}#composeProgress{width:100%;height:5px;accent-color:var(--accent);margin-bottom:12px}
@media(max-width:900px){.compose-upload{margin:16px;padding:16px}.compose-order-hint{display:block;margin:5px 0 0}.compose-layout{grid-template-columns:minmax(0,1fr) 290px}.compose-settings{padding:18px}.compose-upload p{max-width:340px}}
@media(max-width:760px){.compose-upload{flex-wrap:wrap;gap:12px}.compose-upload>div{flex:1;min-width:180px}.compose-upload>.primary-button{width:100%;margin:0}.compose-layout{display:flex;flex-direction:column}.compose-settings{border-left:0;border-top:1px solid var(--line);padding:20px}.compose-preview-panel{min-height:340px}.compose-preview-stage{height:300px;min-height:260px;padding:18px}.compose-preview-stage canvas,.compose-preview-stage>img{max-height:340px}.compose-queue{padding-inline:16px}.compose-item-actions button{height:36px}.compose-empty h2{font-size:17px}.compose-preview-panel .preview-top,.compose-preview-panel .preview-bottom{padding-inline:16px}.compose-preview-panel .photo-meta{max-width:170px;text-align:right}}

.compose-advanced{margin-top:18px;font-size:12px;color:var(--muted)}.compose-advanced[open] summary{margin-bottom:14px}.compose-queue-head .text-button{padding-block:2px;min-height:28px}.compose-preview-panel .compose-queue .compose-list{padding-bottom:6px}.compose-thumb{height:65px}.compose-item{flex-basis:106px;width:106px}.compose-preview-stage{height:360px;min-height:280px}
