.photo-editor{box-sizing:border-box;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:24px;border:0;border-radius:16px;background:#fff;color:#171717;box-shadow:0 16px 56px #0003;font-family:Manrope,sans-serif}
.photo-editor::backdrop{background:#10181080}.photo-editor [hidden]{display:none!important}.photo-editor h2{margin:0 0 8px;font-size:24px;line-height:1.2;letter-spacing:-.025em}.photo-editor header p{margin:0 0 20px;color:#555;font-size:14px;line-height:1.5}
.photo-editor-stage{position:relative;width:min(100%,300px);aspect-ratio:1;margin:auto;overflow:hidden;border-radius:12px;background:#eee}.photo-editor canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.photo-editor canvas.is-dragging{cursor:grabbing}.photo-editor-mask{position:absolute;inset:8%;border-radius:50%;box-shadow:0 0 0 1000px #12121280;outline:2px solid #fff;pointer-events:none}
.photo-editor-controls{display:flex;align-items:center;gap:24px;margin:20px 0}.photo-editor-controls>div{flex:1;min-width:0}.photo-editor label{display:flex;justify-content:space-between;font-size:14px;font-weight:700}.photo-editor output{color:#555;font-weight:500;font-variant-numeric:tabular-nums}.photo-editor input[type=range]{display:block;width:100%;min-height:32px;padding:0;accent-color:#16803c;cursor:pointer}.photo-editor-preview{flex:none;width:64px;height:64px;border-radius:50%;object-fit:cover;background:#eee}
.photo-editor-reset{padding:4px 0;border:0;background:none;color:#126c36;font:600 13px Manrope,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.photo-editor footer{display:flex;justify-content:flex-end;gap:12px}.photo-editor .isp-button{min-height:44px;white-space:nowrap}.photo-editor-error{font-size:14px;color:#b42318;margin:0 0 16px;overflow-wrap:anywhere}.photo-editor :focus-visible{outline:3px solid #16803c;outline-offset:3px}.photo-editor canvas:focus-visible{outline-offset:-3px}.photo-editor button:disabled,.photo-editor input:disabled{opacity:.55;cursor:wait}.photo-editor::selection{background:#c8f2d5;color:#171717}
@media(max-width:479px){.photo-editor{padding:20px}.photo-editor h2{font-size:22px}.photo-editor footer>*{flex:1}.photo-editor-controls{gap:16px}}
