/* Compact profile, sharing the workspace alignment and touch targets. */
.member-profile{max-width:880px;margin:0 0 24px;background:var(--surface,#fff);border:1px solid var(--line,#e1e6ee);border-radius:12px;color:var(--ink,#18243a);min-width:0}
.member-profile form{margin:0;min-width:0}
.member-profile h2{font-size:18px;line-height:1.35;font-weight:650;letter-spacing:-.02em;margin:0 0 16px}
.member-profile p{overflow-wrap:anywhere}
.profile-photo-section{display:flex;align-items:center;gap:20px;padding:24px;border-bottom:1px solid var(--line,#e1e6ee)}
.profile-photo-details{min-width:0;flex:1}
.member-profile .profile-photo-details h2{margin-bottom:4px;font-size:16px}
.profile-avatar{position:relative;display:inline-grid!important;place-items:center;overflow:hidden;isolation:isolate;vertical-align:middle;background:#edf2fd;color:#244b99}
.profile-avatar img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;display:block}
.profile-avatar-initials{display:block;line-height:1;font-weight:650;letter-spacing:0}
.member-profile .profile-avatar-large{width:80px;height:80px;flex:none;font-size:28px;border-radius:50%}
#main>.workspace-header #preview-options.profile-avatar-button{padding:0!important}
#preview-options.profile-avatar-button .profile-avatar{width:38px;height:38px;font-size:13px;pointer-events:none}
#profile .profile-avatar{width:36px;height:36px;flex:none}
.profile-photo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.member-profile .quiet,.member-profile .primary{font-size:14px;line-height:1.4;min-height:44px;padding:10px 14px;white-space:normal}
.member-profile .quiet:hover:not(:disabled){background:#f4f7fd;border-color:#b6c6df}
.member-profile .primary:hover:not(:disabled){background:#1c48ab}
.member-profile button:disabled{opacity:.6;cursor:wait}
.member-profile .profile-remove-photo,.member-profile .profile-remove-phone{display:inline-grid;place-items:center;width:44px;min-width:44px;height:46px;padding:10px}
.member-profile :is(.profile-remove-photo,.profile-remove-phone) svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profile-details-section{padding:24px}
.profile-name-email{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.profile-field{display:grid;align-content:start;gap:6px;min-width:0}
.profile-field label{font-size:14px;font-weight:600;line-height:1.5}
.profile-required,.profile-optional{font-size:12px;font-weight:400;color:#536279}
.member-profile input{display:block;width:100%;min-width:0;min-height:46px;font-size:16px;line-height:1.5;padding:10px 12px;caret-color:var(--blue,#2456ca)}
.member-profile input::placeholder{color:#657086;opacity:1}
.member-profile input[readonly]{background:var(--canvas,#f5f7fb);color:#536279}
.member-profile input[aria-invalid=true]{border-color:#a52e3d}
.member-profile :is(button,input):focus-visible{outline:3px solid var(--focus,#92b3ff);outline-offset:3px}
.member-profile ::selection{background:#cbdcff;color:#18243a}
.member-profile .profile-help{font-size:13px;font-weight:400;line-height:1.5;color:#536279;margin:0;max-width:65ch}
.member-profile .profile-field-error,.member-profile .profile-form-error{color:#982c39;font-size:13px;line-height:1.5;margin:0}
.member-profile .profile-field-error:empty,.member-profile .profile-form-error:empty,.profile-file-name:empty{display:none}
.member-profile .profile-file-name{font-size:13px;color:#536279;line-height:1.5;margin:8px 0 0}
.member-profile .profile-photo-details>.profile-field-error:not(:empty){margin-top:8px}
.profile-phones{min-width:0;border:0;margin:24px 0 0;padding:0}
.profile-phones legend{font-size:18px;line-height:1.35;font-weight:650;letter-spacing:-.02em;padding:0;margin-bottom:6px}
#profile-phone-fields{display:grid;gap:14px;margin-top:16px;max-width:100%}
.profile-phone-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:6px 8px;min-width:0}
.profile-phone-row.has-remove{grid-template-columns:minmax(0,1fr) 44px}
.profile-phone-row>.profile-field{display:contents}
.profile-phone-row label{grid-column:1/-1}
.profile-phone-row input{grid-column:1;grid-row:2}
.profile-phone-row .profile-field-error{grid-column:1/-1}
.member-profile .profile-remove-phone{grid-column:2;grid-row:2;margin:0}
.member-profile .profile-add-phone{margin-top:12px}
.profile-form-footer{padding:16px 24px;border-top:1px solid var(--line,#e1e6ee)}
.member-profile .profile-form-error:not(:empty){margin-bottom:12px}
.profile-save-row{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}
.profile-save-status{flex:1;min-width:0;margin:0;color:#235d3b;font-size:14px;line-height:1.5}
.profile-save-status:empty{display:none}
.profile-form-actions{display:flex;flex:none;gap:10px;justify-content:flex-end}
.member-profile>.app-update-settings{border-top:1px solid var(--line);padding:20px 24px}
.member-profile>.app-update-settings h2{font-size:16px;margin-bottom:6px}
.member-profile>.app-update-settings .quiet{margin-top:12px}
.design-workspace .member-profile>.notification-preferences{padding:20px 24px;margin:0;border-top:1px solid var(--line);border-bottom:0;background:transparent;gap:16px}
.design-workspace .member-profile>.notification-preferences h2{font-size:16px;letter-spacing:0;margin:0 0 6px}
.design-workspace .member-profile>.notification-preferences p{font-size:13px;line-height:1.5}
@media(max-width:700px){
 .member-profile{max-width:none;border:0;border-radius:0;background:transparent;margin:0 0 16px}
 .profile-photo-section{padding:4px 0 18px;gap:16px;align-items:center}
 .member-profile .profile-avatar-large{width:56px;height:56px;font-size:22px}
 .profile-photo-details .profile-help{font-size:12px}
 .profile-photo-actions{margin-top:8px}
 .member-profile .profile-photo-actions .quiet{font-size:13px;padding:10px 12px}
 .member-profile .profile-photo-actions .profile-remove-photo{padding:10px}
 .profile-details-section{padding:20px 0}
 .member-profile h2,.profile-phones legend{font-size:17px}
 .profile-name-email{grid-template-columns:minmax(0,1fr);gap:16px}
 .profile-phones{margin-top:22px}
 .profile-form-footer{padding:14px 0 18px}
 .profile-save-row{display:block}
 .profile-save-status:not(:empty){margin-bottom:12px}
 .profile-form-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .profile-form-actions>button{width:100%;padding:10px 8px;font-size:13px}
 .member-profile>.app-update-settings{padding:18px 0}
 .design-workspace .member-profile>.notification-preferences{padding:18px 0;gap:12px;align-items:stretch;flex-direction:column}
 .design-workspace .member-profile>.notification-preferences .quiet{align-self:flex-start}
}
