.foto-editor{width:min(540px,calc(100vw - 24px));max-height:92vh;overflow:auto;padding:22px;border:1px solid #e6e3df;border-radius:12px;background:#fff;color:#212124;font:16px/1.5 'Segoe UI',sans-serif}
.foto-editor::backdrop{background:#0009}
.foto-editor-cabeca{display:flex;align-items:center;justify-content:space-between;gap:12px}
.foto-editor h2{font-size:22px;margin:0}
.foto-editor button{font:inherit;min-height:42px;padding:8px 12px;border:1px solid #d8d5d2;border-radius:6px;background:#fff;color:#212124;cursor:pointer}
.foto-editor canvas{display:block;width:100%;max-width:400px;aspect-ratio:1;margin:16px auto;background:#e6e3df;touch-action:none;cursor:grab;border-radius:6px}
.foto-editor input[type=range]{width:100%;accent-color:#b5242c}
.foto-editor-acoes{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.foto-editor [data-foto-aplicar]{background:#b5242c;color:#fff;border-color:#b5242c}
.foto-editor [data-foto-erro]{color:#8f1b22}
.foto-ajuste-preview{display:block;width:96px;height:96px;object-fit:cover;border-radius:12px;margin:10px 0}
