/* Local profile photo editor — no character or paid cosmetic controls. */
.retro-theme .avatar{border-radius:50%;overflow:hidden;background:transparent;box-shadow:none;}
.retro-theme .photo-settings{text-align:center;margin:18px 0;}
.retro-theme .photo-file-label{position:relative;overflow:hidden;}
.retro-theme .photo-file-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;}
.retro-theme .photo-file-label:focus-within{outline:3px solid #247568;outline-offset:3px;}
.retro-theme .photo-editor{width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;padding:16px;text-align:center;border-radius:22px;background:#fffaf0;color:#302c25;}
.retro-theme .photo-editor::backdrop{background:#171d1bc9;}
.retro-theme #photoCropCanvas{display:block;width:min(260px,100%);height:auto;aspect-ratio:1;margin:10px auto;border-radius:50%;outline:3px solid #a44934;touch-action:none;background:#fff;cursor:grab;}
.retro-theme #photoZoom{width:100%;min-height:48px;}
.retro-theme .photo-nudge{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;}
.retro-theme .photo-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;}
.retro-theme .photo-actions button,.retro-theme .photo-nudge button{min-height:48px;}
.retro-theme #photoEditorStatus{min-height:1.5em;}
@media(max-height:640px){.retro-theme #photoCropCanvas{width:min(190px,100%);}}
.retro-theme .photo-editor{padding-bottom:max(16px,env(safe-area-inset-bottom));padding-top:max(16px,env(safe-area-inset-top));}
