.home-self-avatar-dialog{width:min(92vw,540px);max-height:88dvh;overflow:auto;border:1px solid #d5e2d9;border-radius:24px;padding:18px;background:#fffaf0;color:#284c46}.home-self-avatar-dialog::backdrop{background:#173f4266}.home-self-avatar-dialog .home-profile-steps{min-height:0}.home-self-avatar-dialog .hp-booki{display:none}.home-self-avatar-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:12px}.home-self-avatar-dialog #hp-drawing{touch-action:none;max-width:100%}.home-self-avatar-dialog [hidden]{display:none!important}
/* The same private picker is available from both reader-card avatar controls. */
.home-self-avatar-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(94vw,560px);max-width:calc(100vw - 24px);max-height:90svh;padding:16px 20px;overscroll-behavior:contain}
.hsa-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #dfd6bf}
.hsa-header h1{font-size:1.35rem;margin:0}.hsa-header button{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:#f0e7d5;color:#355e50;font-size:22px;cursor:pointer}
.home-self-avatar-dialog #hsa-review{text-align:center;padding:20px 0}
.home-self-avatar-dialog h2{font-size:1.25rem;line-height:1.4}.home-self-avatar-dialog p{line-height:1.6}

.hsa-primary,.hsa-secondary{font:inherit;min-height:48px;padding:12px 18px;border-radius:14px;border:1px solid #345e50;cursor:pointer}.hsa-primary{background:#345e50;color:#fff}.hsa-secondary{background:#fffaf0;color:#345e50}
.home-self-avatar-dialog .home-book-flow{min-height:0;padding:0;max-width:100%;background:transparent}.home-self-avatar-dialog .home-book-flow .home-profile-steps{min-height:0;padding:12px 0;max-width:100%}.home-self-avatar-dialog .home-book-flow .hp-step{margin:0;padding:0}.home-self-avatar-dialog .hp-booki{display:none}
.home-self-avatar-dialog .hsa-preview{margin:18px auto;width:132px;height:132px}.home-self-avatar-dialog #hsa-status:empty{display:none}.home-self-avatar-dialog #hsa-status{max-width:400px;margin:10px auto;text-align:center;color:#6b4b26}
.home-self-avatar-dialog button:disabled{opacity:.5;cursor:default}.hsa-avatar-trigger{cursor:pointer}.hsa-avatar-trigger:focus-visible,.home-self-avatar-dialog button:focus-visible{outline:3px solid #2765bf;outline-offset:4px}
#home-avatar-save-status{text-align:center;color:#345e50;line-height:1.6;font-weight:700}
@media(max-width:360px){.home-self-avatar-dialog{padding-inline:14px}.home-self-avatar-dialog .home-book-flow .hp-identity-options{gap:6px}.home-self-avatar-dialog .home-book-flow .hp-identity-choice{font-size:.78rem;min-height:112px}}
