 .profile-intro{display:flex;align-items:center;gap:24px;margin-bottom:20px}.profile-avatar-large{width:92px;height:92px;flex:none;border-radius:25px;background:linear-gradient(145deg,#122750,#3876ed);color:#fff;display:flex;align-items:center;justify-content:center;font-size:42px;font-weight:800;overflow:hidden}.profile-avatar-large img{width:100%;height:100%;object-fit:cover}.profile-intro h2{margin:8px 0 0}.profile-intro p{margin:5px 0}.account-pill .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.security-qr{background:#fff;border-radius:18px;display:inline-block;padding:14px;border:1px solid #e0e5ed}.security-qr canvas{display:block;max-width:210px;width:100%}.recovery-codes{background:#f1f5fa;color:#132b4d;padding:18px;border:1px solid #dae4f1;border-radius:16px;white-space:pre-wrap}.security-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.security-panel{min-width:0}.security-panel code{overflow-wrap:anywhere}.account-notification-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e9edf2}.account-notification-row>*{max-width:100%}@media(max-width:800px){.security-grid{grid-template-columns:1fr}.profile-intro{gap:16px}}
.account-alert-link{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:13px;border:1px solid #dce5f5;background:#fff;flex-shrink:0}.account-alert-link:hover{background:#eff5ff;border-color:#99b6ec}.account-alert-link .icon{width:19px;height:19px}


/* v3.1.7 — targeted profile edit experience + clickable topbar avatar */
.account-pill[href]{color:inherit;text-decoration:none;border-radius:12px;padding:5px 8px;margin:-5px -8px;max-width:100%;min-width:0;transition:background-color .15s ease,box-shadow .15s ease}
.account-pill[href]:hover{background:#f2f1ff}
.account-pill[href]:focus-visible{outline:3px solid #a491ff;outline-offset:3px}
.account-pill[href] .avatar{flex-shrink:0;overflow:hidden}
.profile-intro{flex-wrap:wrap;min-width:0}
.profile-intro-copy{min-width:0;flex:1}
.profile-intro-copy p{overflow-wrap:anywhere}
.profile-intro .profile-edit-jump{margin-left:auto}
.profile-settings-grid>section{min-width:0}
.profile-settings-grid label{max-width:100%}
.profile-settings-grid input{max-width:100%}
#edit-profile{scroll-margin-top:24px}
.profile-photo-row{display:flex;align-items:center;gap:16px;margin:14px 0}
.profile-photo-preview{height:68px;width:68px;flex:0 0 68px;display:grid;place-items:center;overflow:hidden;border-radius:18px;background:linear-gradient(145deg,#122750,#3876ed);color:white;font-size:26px;font-weight:800}
.profile-photo-preview img{width:100%;height:100%;object-fit:cover}
.profile-photo-label{flex:1;min-width:0;margin:0}
.profile-photo-label input[type=file]{max-width:100%;font-size:12px}
.profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 0}
.profile-remove-photo{margin:10px 0 0}
.profile-settings-grid .button{white-space:normal;text-align:center}
@media(max-width:820px){.profile-settings-grid{grid-template-columns:1fr}}
@media(max-width:560px){.profile-intro{align-items:flex-start;gap:14px}.profile-avatar-large{width:74px;height:74px;border-radius:20px;font-size:30px}.profile-intro .profile-edit-jump{margin:0;width:100%}.profile-photo-row{align-items:flex-start}.profile-photo-preview{width:58px;height:58px;flex-basis:58px}.profile-photo-label input[type=file]{font-size:12px}.profile-settings-grid input:not([type=checkbox]){font-size:16px}}
