/* Scoped to the approved single-preview family profile-photo editor. */
.nest-avatar-editor{--nae-coral:#C44830;--nae-ink:#17213B;--nae-muted:#606777;box-sizing:border-box;width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:20px 16px 16px;border:1px solid #EFD1C7;border-radius:24px;background:#fff;color:var(--nae-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:auto;overscroll-behavior:contain;color-scheme:light;}
.nest-avatar-editor::backdrop{background:rgba(23,33,59,.48);}
.nest-avatar-editor *{box-sizing:border-box;}
.nest-avatar-editor [hidden]{display:none!important;}
.nest-avatar-editor button,.nest-avatar-editor input{font:inherit;}
.nest-avatar-editor button{touch-action:manipulation;}
.nest-avatar-editor :is(button,input):focus-visible{outline:3px solid #17213B;outline-offset:3px;}
.nest-avatar-editor .nae-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;}
.nest-avatar-editor h2{font-size:22px;line-height:1.25;font-weight:700;overflow-wrap:anywhere;margin:0;}
.nest-avatar-editor p{margin:0;}
.nest-avatar-editor .nae-close{position:relative;isolation:isolate;display:grid;place-content:center;width:44px;height:44px;flex:0 0 44px;padding:0;border:0;background:transparent;color:var(--nae-coral);font-size:25px;line-height:1;}
.nest-avatar-editor .nae-close::before{content:"";position:absolute;inset:7px;width:30px;height:30px;z-index:-1;border-radius:50%;background:#FDE9E1;}
.nest-avatar-editor .nae-intro{margin-bottom:16px;color:var(--nae-muted);font-size:14px;line-height:1.45;}
.nest-avatar-editor .nae-stage{position:relative;display:block;width:100%;aspect-ratio:1;padding:0;border:0;border-radius:16px;background:#FFF9F6;overflow:hidden;appearance:none;touch-action:none;cursor:grab;}
.nest-avatar-editor .nae-stage:active{cursor:grabbing;}
.nest-avatar-editor .nae-stage canvas{display:block;width:100%;height:100%;}
.nest-avatar-editor :is(.nae-shade,.nae-outline){position:absolute;inset:12%;border-radius:24%;pointer-events:none;}
.nest-avatar-editor .nae-shade{box-shadow:0 0 0 300px rgba(23,33,59,.5);}
.nest-avatar-editor .nae-outline{border:2px solid white;box-shadow:0 0 0 1px rgba(23,33,59,.54);}
.nest-avatar-editor .nae-hint{margin:10px 0 14px;color:var(--nae-muted);font-size:12px;line-height:1.45;}
.nest-avatar-editor .nae-zoom-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;line-height:1.5;font-weight:600;}
.nest-avatar-editor output{font-size:12px;color:var(--nae-muted);font-weight:400;font-variant-numeric:tabular-nums;}
.nest-avatar-editor input[type=range]{display:block;width:100%;height:44px;margin:0;accent-color:var(--nae-coral);touch-action:pan-y;}
.nest-avatar-editor .nae-photo-actions{display:flex;flex-direction:column;align-items:flex-start;margin:2px 0 10px;}
.nest-avatar-editor .nae-choose{border:0;background:transparent;color:var(--nae-coral);padding:8px 0;min-height:44px;font-size:14px;line-height:1.4;font-weight:600;text-align:left;text-decoration:underline;text-underline-offset:3px;}
.nest-avatar-editor .nae-formats{color:var(--nae-muted);font-size:12px;line-height:1.45;}
.nest-avatar-editor .nae-status{min-height:40px;margin:10px 0;font-size:13px;line-height:1.45;color:var(--nae-muted);}
.nest-avatar-editor .nae-error{padding:12px;border-radius:10px;background:#FFF0E9;border:1px solid #A32821;color:#A32821;font-size:14px;line-height:1.45;margin:10px 0;}
.nest-avatar-editor .nae-footer{display:flex;gap:8px;margin-top:14px;border-top:1px solid #EFD1C7;padding-top:16px;padding-bottom:env(safe-area-inset-bottom,0px);}
.nest-avatar-editor :is(.nae-primary,.nae-secondary){min-height:46px;border-radius:12px;padding:10px 14px;font-size:15px;line-height:1.3;font-weight:600;white-space:normal;}
.nest-avatar-editor .nae-primary{flex:1;background:var(--nae-coral);color:#fff;border:1px solid var(--nae-coral);}
.nest-avatar-editor .nae-secondary{border:1px solid #EFD1C7;color:var(--nae-ink);background:#fff;}
.nest-avatar-editor button:disabled{opacity:.55;cursor:wait;}
.nest-avatar-editor .nae-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
@media(max-width:360px){.nest-avatar-editor{padding:16px 12px;border-radius:20px;}.nest-avatar-editor .nae-footer{flex-direction:column-reverse;}.nest-avatar-editor .nae-footer button{width:100%;}}
@media(prefers-reduced-motion:reduce){.nest-avatar-editor *{scroll-behavior:auto!important;}}
