.image-improve{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:10px 0;background:#eaf4ee;color:#176851;border:1px solid #bdd2c7;border-radius:7px;padding:11px;font:inherit;font-weight:600}.image-improve svg{width:19px;height:19px}.image-improve[hidden]{display:none}
.image-workbench{max-width:calc(100vw - 32px)}.image-workbench header,.image-workbench footer{flex-shrink:0}.image-workbench .iw-status{flex-shrink:0}.image-workbench .iw-view{width:100%}.image-workbench .iw-preview-tools select{width:auto}.image-workbench .iw-viewport{justify-items:safe center;align-items:safe center}.image-workbench .iw-corrections summary{padding:0}
.image-workbench{box-sizing:border-box;width:min(1040px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #d5e1db;border-radius:18px;background:white;color:#183e33;box-shadow:0 18px 70px #173b3233}.image-workbench::backdrop{background:#17352d70}.image-workbench *{box-sizing:border-box}.image-workbench[open]{display:flex;flex-direction:column}.image-workbench header{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #dde6e1;gap:12px}.image-workbench h2{font-size:22px;margin:0 0 5px}.image-workbench header p{font-size:13px;margin:0;color:#60776e}.image-workbench button,.image-workbench select{min-height:38px;font:inherit;font-size:13px;line-height:1.3;border:1px solid #bdcfc5;border-radius:7px;padding:9px 12px;background:white;color:#214b3e;cursor:pointer}.image-workbench button:disabled{opacity:.5;cursor:default}.image-workbench button:focus-visible,.image-workbench select:focus-visible,.image-workbench input:focus-visible{outline:2px solid #176851;outline-offset:2px}.image-workbench .iw-close{flex:0 0 34px;width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:50%;background:#f0f4f2;font-size:24px}.iw-body{display:grid;grid-template-columns:minmax(0,1fr) 288px;gap:20px;padding:18px 22px;overflow:auto;min-height:0}.iw-view{min-width:0}.iw-preview-tools{display:flex;gap:7px;flex-wrap:wrap;align-items:end;margin-bottom:10px}.iw-preview-tools label{display:grid;font-size:11px;gap:4px}.iw-preview-tools select{padding:7px;font-size:12px}.iw-preview-tools button{font-size:12px}.iw-viewport{height:clamp(230px,48vh,520px);overflow:auto;display:grid;place-items:center;border:1px solid #dbe3df;border-radius:9px;background-color:#fff;background-image:conic-gradient(#e3e8e5 25%,transparent 0 50%,#e3e8e5 0 75%,transparent 0);background-size:20px 20px;padding:10px}.iw-viewport[data-background=white]{background:white}.iw-viewport[data-background=dark]{background:#253b34}.iw-viewport canvas{display:block;max-width:none;max-height:none;margin:auto;flex-shrink:0}.iw-caption{margin:10px 0 0;font-size:12px;color:#61756b}.iw-options{display:flex;flex-direction:column;gap:9px}.iw-options h3{font-size:15px;margin:0}.iw-muted,.iw-vector-notice{font-size:12px;line-height:1.55;margin:0;color:#5a7266}.iw-options small{font-size:11px;line-height:1.55;color:#5a7266}.iw-edge-options{display:flex;gap:18px;align-items:center}.iw-options label{display:grid;gap:5px;font-size:12px}.iw-edge-options label:last-child{flex:1}.iw-options input[type=color]{width:48px;height:30px;min-height:30px;padding:2px;border:1px solid #bdcfc5}.iw-options input[type=range]{width:100%;min-height:22px;accent-color:#176851}.iw-options .iw-edge,.image-workbench .iw-accept{background:#176851;color:white;border-color:#176851}.iw-corrections{border-block:1px solid #dbe3df;padding:12px 0;margin:3px 0}.iw-corrections summary{font-size:13px;cursor:pointer}.iw-corrections[open]{display:grid;gap:10px}.iw-brushes{display:flex;gap:5px;margin-top:12px}.iw-brushes button{flex:1;padding-inline:5px;font-size:12px}.iw-brushes [aria-pressed=true],.iw-compare[aria-pressed=true]{background:#e4f1e9;border-color:#176851}.iw-vector-section{display:grid;gap:9px;padding:4px 0 10px}.iw-status{margin:0;padding:0 22px 12px;font-size:13px;line-height:1.4;min-height:30px;overflow-wrap:anywhere}.image-workbench footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid #dbe3df}.image-workbench footer button{min-height:42px}
@media(max-width:700px){.image-workbench{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}.image-workbench header{padding:12px 14px}.image-workbench h2{font-size:19px}.iw-body{grid-template-columns:1fr;padding:12px 14px;gap:18px}.iw-viewport{height:230px}.iw-options{gap:10px}.iw-preview-tools{gap:6px}.iw-preview-tools button{flex:1}.iw-status{padding:7px 14px;font-size:12px}.image-workbench footer{padding:10px 14px}.image-workbench footer button{flex:1;padding-inline:8px;font-size:12px}.iw-options button{min-height:42px}}
.image-workbench .iw-corrections small{display:block;margin-top:8px}.image-workbench .iw-corrections .iw-undo{width:100%;margin-top:8px}.image-workbench .iw-corrections label{margin-top:8px}

/* Rückgängig/Wiederholen und Pinsel-Deckkraft (Kay, Claude, 24.10.2026) */
.image-workbench .iw-history{display:inline-flex;gap:6px;margin-left:auto}
.image-workbench .iw-history button{min-height:34px;padding:6px 12px;border-radius:10px;font-weight:700;color:#125d47;background:#f1f7f3;border:1px solid #d3e6db}
.image-workbench .iw-history button:disabled{opacity:.45}
.image-workbench .iw-opacity-label{display:grid;grid-template-columns:1fr auto;align-items:center;row-gap:6px}
.image-workbench .iw-opacity-label input{grid-column:1/-1;width:100%;accent-color:#176950}
.image-workbench .iw-opacity-value{font-weight:700;color:#176950}
/* Statusanzeige sichtbar (Kay, Joe 11.11.2026) */
.image-workbench .iw-stage{position:relative}
.image-workbench .iw-busy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;border-radius:9px;background:rgba(255,255,255,.9);color:#183e33;font-size:16px;font-weight:600;line-height:1.4;text-align:center;animation:iw-fade 160ms ease-out}
.image-workbench .iw-busy[hidden]{display:none}
.image-workbench .iw-spinner{width:30px;height:30px;border:3px solid #cfe3d9;border-top-color:#1a7f5a;border-radius:50%;animation:iw-spin .7s linear infinite}
.image-workbench .iw-status{margin:0 22px 12px;padding:10px 14px;min-height:0;border:1px solid #cfe3d9;border-radius:10px;background:#eef6f2;color:#183e33;font-size:14px;font-weight:600}
.image-workbench .iw-status:empty{display:none}
.image-workbench .iw-status[data-kind=busy]{display:flex;align-items:center;gap:10px}
.image-workbench .iw-status[data-kind=busy]::before{content:"";flex:none;width:14px;height:14px;border:2px solid #cfe3d9;border-top-color:#1a7f5a;border-radius:50%;animation:iw-spin .7s linear infinite}
.image-workbench .iw-status[data-kind=error]{border-color:#f0b4ab;background:#fdeceb;color:#8a1f11}
@keyframes iw-spin{to{transform:rotate(360deg)}}
@keyframes iw-fade{from{opacity:.4}}
@media(max-width:700px){.image-workbench .iw-status{margin:0 14px 10px;padding:8px 12px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.image-workbench .iw-spinner,.image-workbench .iw-status[data-kind=busy]::before{animation-duration:2s}.image-workbench .iw-busy{animation:none}}
