.foto-editor{box-sizing:border-box;width:min(94vw,580px);max-height:94dvh;margin:auto;border:1px solid #d7d4c6;border-radius:20px;padding:0;background:#fffdf7;color:#293d34;box-shadow:0 24px 80px #0005;overflow:auto;overscroll-behavior:contain}
.foto-editor::backdrop{background:#10291fd1}.foto-conteudo{padding:24px}.foto-editor h2{margin:0 0 8px;font-size:1.8rem}.foto-editor p{font-size:.95rem;line-height:1.5;margin:0 0 16px}.foto-area{display:flex;align-items:center;gap:24px;justify-content:center}.foto-recorte{display:block;width:min(58vw,320px);height:auto;aspect-ratio:1;border-radius:50%;touch-action:none;user-select:none;cursor:grab;box-shadow:0 0 0 3px #2c6b55;flex-shrink:0}.foto-recorte:active{cursor:grabbing}.foto-recorte:focus-visible{outline:3px solid #b98d32;outline-offset:5px}.foto-previa{display:flex;align-items:center;flex-direction:column;gap:10px;text-align:center;font-size:.8rem;max-width:100px}.foto-previa canvas{width:80px;height:80px;border-radius:50%;border:1px solid #bbb}.foto-editor label{display:flex;justify-content:space-between;margin-top:24px;font-weight:600}.foto-editor input[type=range]{display:block;width:100%;padding:0;margin:8px 0 16px;accent-color:#2c6b55;min-height:44px;touch-action:pan-y}.foto-botoes{display:flex;justify-content:flex-end;gap:12px;margin-top:12px}.foto-editor button{min-height:44px}.foto-editor #foto-erro{color:#a12c20;margin:12px 0 0}.foto-editor button:disabled{opacity:.6;cursor:wait}
@media(max-width:480px){.foto-conteudo{padding:20px 16px}.foto-area{flex-direction:column;gap:14px}.foto-recorte{width:min(70vw,290px)}.foto-previa{flex-direction:row;max-width:none}.foto-previa canvas{width:52px;height:52px}.foto-editor label{margin-top:16px}.foto-botoes button{flex:1}.foto-editor h2{font-size:1.5rem}}

.foto-editor h2,.foto-editor label,.foto-editor output,.foto-editor p,.foto-editor span{color:#293d34}.foto-editor #foto-erro{color:#a12c20}
