.ajuste-foto-dialogo{box-sizing:border-box;width:min(94vw,540px);max-height:94dvh;overflow:auto;padding:20px;border:1px solid #d7deea;border-radius:14px;background:#fff;color:#202632;font-family:Inter,"Segoe UI",Arial,sans-serif}
.ajuste-foto-dialogo::backdrop{background:#20263299}
.ajuste-foto-dialogo h2{margin:0 0 8px;font-size:22px}
.ajuste-foto-dialogo .ajuste-foto-ajuda{font-size:14px;line-height:1.5;color:#596475;margin:8px 0 14px}
.ajuste-foto-modos{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.ajuste-foto-dialogo button{box-sizing:border-box;width:auto;min-height:48px;margin:0;padding:10px;border:1px solid #d7deea;border-radius:8px;background:#fff;color:#435f8f;font:inherit;font-size:14px;line-height:1.25;cursor:pointer}
.ajuste-foto-dialogo button:hover:not(:disabled){background:#eef3fb}
.ajuste-foto-dialogo button[aria-pressed="true"],.ajuste-foto-dialogo .ajuste-foto-principal{background:#526c9b;color:#fff;border-color:#526c9b}
.ajuste-foto-dialogo .ajuste-foto-principal:hover:not(:disabled){background:#445d89}
.ajuste-foto-dialogo button:disabled{opacity:.55;cursor:wait}
.ajuste-foto-area{width:min(100%,44dvh);aspect-ratio:1;margin:0 auto;border:1px solid #d7deea;background:#f7f8fa;border-radius:8px;overflow:hidden}
.ajuste-foto-area canvas{display:block;width:100%;height:100%;touch-action:none}
.ajuste-foto-area canvas.pode-arrastar{cursor:grab}
.ajuste-foto-area canvas.pode-arrastar:active{cursor:grabbing}
.ajuste-foto-controles{display:grid;gap:4px}
.ajuste-foto-dialogo .ajuste-foto-controles label{display:block;font-size:14px;font-weight:600;margin:4px 0;color:#202632}
.ajuste-foto-dialogo input[type="range"]{box-sizing:border-box;display:block;width:100%;height:44px;min-height:44px;padding:0;margin:0;accent-color:#526c9b;cursor:pointer}
.ajuste-foto-dialogo .ajuste-foto-aviso{font-size:14px;line-height:1.4;color:#435f8f}
.ajuste-foto-aviso:empty{display:none}
.ajuste-foto-acoes{position:sticky;bottom:-20px;display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#fff;padding:12px 0 calc(8px + env(safe-area-inset-bottom));border-top:1px solid #e2e7ef;margin-top:12px}
.ajuste-foto-acoes .ajuste-foto-principal{grid-column:1/-1}
.ajuste-foto-dialogo :focus-visible{outline:3px solid #8ba5d4;outline-offset:2px}
@media(max-width:400px){.ajuste-foto-dialogo{padding:14px}.ajuste-foto-acoes{bottom:-14px}.ajuste-foto-dialogo h2{font-size:20px}}
