.image-editor{margin:12px 0 20px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f8fafb;min-width:0}
.image-editor[hidden],.image-editor canvas[hidden]{display:none}
.image-editor-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.image-editor-actions button{border:1px solid #c7d4dc;border-radius:6px;background:white;color:var(--ink);font:inherit;padding:7px 10px;cursor:pointer}
.image-editor-actions button[aria-pressed=true]{background:#0a655a;color:white;border-color:#0a655a}
.image-editor-actions button:disabled{opacity:.48;cursor:default}
.image-editor-crop{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}
.image-editor-crop .xfield{margin:0}
.image-editor-crop .xfield select{min-width:96px}
.image-editor-stage{display:grid;place-items:center;min-height:90px;background:#e5ebee;border-radius:8px;overflow:hidden}
.image-editor canvas{display:block;height:auto;max-width:100%;
 background:repeating-conic-gradient(#edf0f2 0% 25%,white 0% 50%) 0 0/16px 16px}
.image-editor canvas.is-cropping{cursor:crosshair;touch-action:none}
.image-editor-size{margin:6px 0 12px;color:var(--muted);font-size:.9em;font-variant-numeric:tabular-nums}
.image-editor-size:empty,#image-edit-status:empty{display:none}

.image-editor-summary{margin:0 0 12px;color:var(--muted);line-height:1.5}
.image-editor-actions button:is([data-edit=crop],[data-edit=all]):not([aria-pressed=true]){background:#e6f2f0;border-color:#8bbfb6;color:#06483f;font-weight:650}
.image-editor-view{margin:0 0 6px;font-weight:650;color:var(--ink)}
