.profile-photo-editor{--pe-bg:#fff;--pe-ink:#1b1c20;--pe-muted:#858b97;--pe-line:#e8eaf0;--pe-soft:#f4f5f7;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--pe-line);border-radius:26px;padding:26px;color:var(--pe-ink);background:var(--pe-bg);box-shadow:0 30px 100px #10182840;font:14px/1.5 Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;animation:photo-editor-in 180ms ease-out}
.profile-photo-editor::backdrop{background:#11182755;backdrop-filter:blur(7px)}.profile-photo-editor *{box-sizing:border-box}.profile-photo-editor header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.profile-photo-editor h2{font-size:23px;line-height:1.3;letter-spacing:-.7px;font-weight:600;margin:0 0 7px}.profile-photo-editor header p{font-size:13px;color:var(--pe-muted);margin:0 0 22px}.profile-photo-editor button,.profile-photo-editor input{font:inherit}.profile-photo-editor button{cursor:pointer;border:0;color:inherit}.profile-photo-editor button:disabled{opacity:.3;cursor:default}.profile-photo-editor [data-close]{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:var(--pe-soft);padding:7px}.profile-photo-editor svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.profile-photo-editor__stage{position:relative;width:min(320px,100%);aspect-ratio:1;margin:0 auto;overflow:hidden;background:var(--pe-soft);border-radius:18px;cursor:grab;touch-action:none;user-select:none}.profile-photo-editor__stage.is-dragging{cursor:grabbing}.profile-photo-editor canvas{display:block;width:100%;height:100%;pointer-events:none}.profile-photo-editor__mask{position:absolute;inset:1px;border:2px solid #ffffffd9;border-radius:50%;box-shadow:0 0 0 100px #0007;pointer-events:none}.profile-photo-editor__controls{display:flex;align-items:center;gap:12px;margin:21px auto 6px;max-width:340px}.profile-photo-editor__controls button{width:30px;height:30px;flex:none;border-radius:50%;font-size:22px;line-height:1;background:var(--pe-soft)}.profile-photo-editor__controls input{flex:1;min-width:0;accent-color:var(--pe-ink);cursor:pointer}.profile-photo-editor output{font-size:11px;font-variant-numeric:tabular-nums;min-width:35px;color:var(--pe-muted)}.profile-photo-editor__reset{text-align:center}.profile-photo-editor [data-reset]{background:transparent;font-size:12px;color:var(--pe-muted);padding:7px 10px}.profile-photo-editor__note{font-size:11px;color:var(--pe-muted);text-align:center;margin:14px 0 20px}.profile-photo-editor footer{display:flex;justify-content:flex-end;gap:10px}.profile-photo-editor footer button{padding:10px 17px;border-radius:11px;font-size:13px;font-weight:600}.profile-photo-editor [data-cancel]{background:var(--pe-soft)}.profile-photo-editor [data-apply]{background:var(--pe-ink);color:var(--pe-bg)}.profile-photo-editor :is(button,input,[tabindex]):focus-visible{outline:3px solid #7aa9ff;outline-offset:3px}.profile-photo-editor__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
html[data-theme="dark"] .profile-photo-editor{--pe-bg:#191a1f;--pe-ink:#f4f5f8;--pe-muted:#a2a6b1;--pe-line:#34363d;--pe-soft:#282a31}
#settings-profile-avatar-preview[role="button"]{cursor:pointer}#settings-profile-avatar-preview[role="button"]:focus-visible{outline:3px solid #7aa9ff;outline-offset:4px}
@keyframes photo-editor-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.profile-photo-editor{animation:none}}@media(max-height:720px){.profile-photo-editor{padding:20px}.profile-photo-editor__stage{width:min(260px,100%)}.profile-photo-editor header p{margin-bottom:15px}}
