/* Native photo actions keep the existing image geometry and add keyboard focus. */
button.photo-image-button{display:inline-block;vertical-align:middle;border:0;background:transparent;padding:0;margin:0;min-height:0;line-height:0;cursor:pointer;border-radius:inherit}
button.photo-image-button[hidden]{display:none!important}
button.photo-image-button:disabled{cursor:default}
button.photo-image-button:focus-visible{outline:3px solid #396457;outline-offset:3px}

/* Saved identity pixels share the existing avatar footprint, never the crop draft. */
.dashboard-page [data-photo-identity-canvas]{display:block;width:100%;height:100%;border-radius:inherit;grid-area:1/1}
.dashboard-page [data-photo-initial]{grid-area:1/1}
.pc-space [data-photo-identity-canvas]{width:88px;height:88px;border-radius:50%;object-fit:cover;background:#f3eee7}
[data-photo-identity-canvas][hidden],[data-photo-initial][hidden]{display:none!important}

/* Native avatar buttons retain the existing circle's dimensions, type and colors. */
button.photo-identity-button{padding:0;cursor:pointer}
button.photo-identity-button:disabled{cursor:default}
button.photo-identity-button:focus-visible{outline:3px solid #396457;outline-offset:3px}

/* The existing photo editor is moved here only while its dialog is open. */
.profile-photo-dialog{box-sizing:border-box;width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #c5b590;border-radius:18px;background:#fffdf7;color:#183c38;box-shadow:0 20px 70px #102e3440}
.profile-photo-dialog[hidden]{display:none!important}
.profile-photo-dialog::backdrop{background:#102e3470}
.profile-photo-dialog:not(:modal)[open]{position:fixed;inset:0;z-index:1000;margin:auto}
.profile-photo-dialog [data-photo-preview]{border:0;margin:0;padding:0;max-width:none}
.profile-photo-dialog h2,.profile-photo-dialog h3{font:400 28px/1.2 Georgia,serif;margin:12px 0}
.profile-photo-dialog p{font-size:15px;line-height:1.5;margin:12px 0}
.profile-photo-dialog [data-photo-canvas]{display:block;width:128px;height:128px;border-radius:50%;background:#f3eee7}
.profile-photo-dialog [data-photo-canvas][hidden]{display:none}
.profile-photo-dialog button:not(.photo-image-button){min-height:44px;padding:10px 14px;font:inherit;color:inherit;border:1px solid #b6c2b9;border-radius:6px;background:#f6f5ee;cursor:pointer}
.profile-photo-dialog button:disabled{opacity:.65;cursor:default}
.profile-photo-dialog .photo-dialog-close{display:block;margin-left:auto}
.profile-photo-dialog label{display:grid;gap:8px;font-size:15px}
.profile-photo-dialog input[type=range]{min-height:44px;width:100%;accent-color:#396457}
.profile-photo-dialog button:focus-visible,.profile-photo-dialog input:focus-visible{outline:3px solid #396457;outline-offset:3px}
body.has-photo-dialog{overflow:hidden}
