/* R140: keep profile controls readable inside CRM and independent client shells. */
.crm-profile-photo-r140{scroll-margin-top:190px;overflow-wrap:anywhere}
.crm-profile-photo-r140 h2{margin:0 0 10px;line-height:1.4}
.crm-profile-photo-r140-layout{display:flex;align-items:flex-start;gap:24px;min-width:0}
.crm-profile-photo-r140-current{display:flex;flex:0 0 112px;flex-direction:column;align-items:center;gap:8px;max-width:100%;font-size:.85rem}
.crm-profile-photo-r140-current img{display:block;width:112px;height:112px;max-width:100%;object-fit:cover;border:1px solid #d4d4d4;border-radius:16px;background:#f5f5f5}
.crm-profile-photo-r140-controls{flex:1;min-width:0;max-width:650px}
.crm-profile-photo-r140-controls form{display:block;margin:0}
.crm-profile-photo-r140-controls label{display:block;font-weight:700;margin:0 0 8px}
.crm-profile-photo-r140-controls input[type=file]{display:block;box-sizing:border-box;max-width:100%;width:100%;min-height:48px;padding:10px;border:1px solid #b8b8b8;border-radius:8px;background:#fff;color:#242424;font:inherit}
.crm-profile-photo-r140-controls input[type=file]::file-selector-button{min-height:38px;padding:7px 12px;margin-right:10px;border:1px solid #aaa;border-radius:6px;background:#f6f6f6;color:#242424;cursor:pointer;font:inherit}
.crm-profile-photo-r140-controls .crm-profile-photo-r140-help{margin:9px 0 14px;font-size:.9rem;line-height:1.5;color:#555}
.crm-profile-photo-r140-controls button{min-height:44px;max-width:100%;padding:11px 16px;border-radius:8px;font:700 1rem/1.4 system-ui,sans-serif;white-space:normal;cursor:pointer}
.crm-profile-photo-r140-controls .crm-profile-photo-r140-remove{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:20px;padding-top:16px;border-top:1px solid #ddd}
.crm-profile-photo-r140-remove button.secondary{background:#fff;color:#333;border:1px solid #777;margin:0}
.crm-profile-photo-r140-remove span{font-size:.85rem;color:#555}
.crm-profile-photo-r140 :focus-visible{outline:3px solid #426a92;outline-offset:3px}
body.ysbp-brand-r137 .crm-profile-photo-r140{border-color:#dfd4c0}
body.ysbp-brand-r137 .crm-profile-photo-r140-save{background:#141414;color:#fff;border:1px solid #141414}
body.ysbp-brand-r137 .crm-profile-photo-r140-current img{border-color:#bd9455;background:#f8f5ef}
.portal-header .crm-profile-photo-r140-link{display:flex;align-items:center;gap:8px;color:#fff;text-decoration:none;min-height:44px;font-size:.8rem;white-space:nowrap}
.portal-header .crm-profile-photo-r140-link img{display:block;width:36px;height:36px;flex:0 0 36px;object-fit:cover;border:1px solid #b8a06c;border-radius:50%;background:#f8f5ef}
.portal-header .crm-profile-photo-r140-link[aria-current=page]{text-decoration:underline;text-underline-offset:4px}
@media(max-width:600px){.crm-profile-photo-r140-layout{flex-direction:column;gap:18px}.crm-profile-photo-r140-current{flex-basis:auto}.crm-profile-photo-r140-controls{width:100%}.crm-profile-photo-r140-controls button{width:100%}.crm-profile-photo-r140-remove span{display:block}.portal-header .crm-profile-photo-r140-link{gap:5px}.portal-header .account-menu{flex-wrap:wrap;gap:8px}.portal-header .crm-profile-photo-r140-link img{width:32px;height:32px;flex-basis:32px}}
