
/* gdm-userprofile-block: logged-in user chip (top-right) + editable profile (Full name, SIN, Phone, Email, Address, Marital status, Date of birth); new users are prompted to complete it on first login */
#gdmUserChip{display:inline-flex;align-items:center;gap:.5rem;padding:.25rem .5rem .25rem .3rem;border-radius:9999px;border:1px solid rgba(163,163,163,.35);background:rgba(163,163,163,.12);cursor:pointer;transition:.15s;max-width:190px;flex:0 0 auto}
#gdmUserChip:hover{background:rgba(163,163,163,.22)}
#gdmUserChip .gdm-av{width:34px;height:34px;border-radius:9999px;flex:0 0 34px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem;color:#111111;background:linear-gradient(135deg,#ffa55e,#f9b439);overflow:hidden}
#gdmUserChip .gdm-av img{width:100%;height:100%;object-fit:cover}
#gdmUserChip .gdm-nm{display:flex;flex-direction:column;line-height:1.05;text-align:left;overflow:hidden}
#gdmUserChip .gdm-nm b{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}
#gdmUserChip .gdm-nm span{font-size:.65rem;opacity:.7}
#gdmProfileModal{position:fixed;inset:0;z-index:80;display:none;align-items:center;justify-content:center;padding:1rem;background:rgba(0,0,0,.6);backdrop-filter:blur(4px)}
#gdmProfileModal.open{display:flex}
#gdmProfileModal .gdm-pf-card{width:100%;max-width:440px;max-height:92vh;overflow:auto;background:#0b0f19;color:#e5e5e5;border:1px solid rgba(163,163,163,.25);border-radius:1rem;box-shadow:0 20px 60px rgba(0,0,0,.5)}
html:not(.dark) #gdmProfileModal .gdm-pf-card{background:#fff;color:#111111;border-color:rgba(163,163,163,.4)}
.gdm-pf-head{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid rgba(163,163,163,.18)}
.gdm-pf-head h3{font-size:1.15rem;font-weight:700}
.gdm-pf-x{background:none;border:none;color:#a3a3a3;font-size:1.4rem;cursor:pointer;line-height:1}
.gdm-pf-body{padding:1.25rem}
.gdm-pf-avatarwrap{display:flex;flex-direction:column;align-items:center;gap:.6rem;margin-bottom:1.25rem}
.gdm-pf-avatar{width:96px;height:96px;border-radius:9999px;background:linear-gradient(135deg,#ffa55e,#f9b439);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:2rem;color:#111111;overflow:hidden}
.gdm-pf-avatar img{width:100%;height:100%;object-fit:cover}
.gdm-pf-photobtn{font-size:.8rem;color:#f9b439;background:none;border:1px solid rgba(249,180,57,.4);padding:.35rem .8rem;border-radius:.5rem;cursor:pointer}
.gdm-pf-field{margin-bottom:.9rem}
.gdm-pf-field label{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.03em;opacity:.65;margin-bottom:.25rem}
.gdm-pf-field input,.gdm-pf-field select{width:100%;background:rgba(163,163,163,.1);border:1px solid rgba(163,163,163,.25);border-radius:.5rem;padding:.55rem .7rem;font-size:.9rem;color:inherit;box-sizing:border-box}
html:not(.dark) .gdm-pf-field input,html:not(.dark) .gdm-pf-field select{background:#f5f5f5;color:#111111}
.gdm-pf-field input:focus,.gdm-pf-field select:focus{outline:none;border-color:#f9b439}
.gdm-pf-req{color:#f87171}
.gdm-pf-actions{display:flex;gap:.6rem;margin-top:1rem}
.gdm-pf-actions button{flex:1;padding:.6rem;border-radius:.6rem;font-weight:600;font-size:.9rem;cursor:pointer;border:none}
.gdm-pf-save{background:linear-gradient(90deg,#ffa55e,#f9b439);color:#111111}
.gdm-pf-cancel{background:rgba(163,163,163,.2);color:inherit;border:1px solid rgba(163,163,163,.3)!important}
.gdm-pf-prompt{background:rgba(249,180,57,.12);border:1px solid rgba(249,180,57,.3);color:#fcd08a;padding:.6rem .8rem;border-radius:.6rem;font-size:.82rem;margin-bottom:1rem}
.gdm-pf-err{background:rgba(248,113,113,.12);border:1px solid rgba(248,113,113,.4);color:#fca5a5;padding:.55rem .75rem;border-radius:.5rem;font-size:.82rem;margin-top:.6rem;display:none}
.gdm-pf-err.show{display:block}
@media (max-width:640px){#gdmUserChip .gdm-nm{display:none}#gdmUserChip{max-width:none;padding:.2rem}}
