/* Scoped profile editor and avatar; shared member flows keep their existing styles. */
.studio-direction .profile-avatar {display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex:none;border-radius:50%;vertical-align:middle;background:#e9e9e7;color:#565652;font-weight:500;line-height:1;}
.studio-direction .profile-avatar > img {display:block;width:100%;height:100%;object-fit:cover;max-width:none;}
.studio-direction .profile-avatar > span {display:block;}
.studio-direction .profile-avatar.profile-avatar-large {width:104px;height:104px;font-size:37px;border:1px solid #dddeda;}
.studio-direction .profile-layout {display:grid;grid-template-columns:minmax(0,1.55fr) minmax(240px,.85fr);gap:27px;align-items:start;}
.studio-direction .profile-editor.panel {padding:30px;min-width:0;}
.studio-direction .profile-section-heading {display:flex;align-items:flex-start;gap:17px;padding-bottom:25px;border-bottom:1px solid var(--line);}
.studio-direction .profile-section-index {font-size:12px;color:var(--accent);padding-top:5px;font-variant-numeric:tabular-nums;}
.studio-direction .profile-section-heading h2 {font-size:21px;font-weight:550;}
.studio-direction .profile-section-heading p {font-size:14px;color:var(--muted);margin-top:8px;line-height:1.8;}
.studio-direction .profile-identity {display:flex;align-items:flex-start;gap:23px;padding:30px 0;border-bottom:1px solid var(--line);}
.studio-direction #profile-avatar-preview {flex:none;}
.studio-direction .profile-preview-copy {min-width:0;padding-top:2px;}
.studio-direction .profile-preview-copy > strong {display:block;font-size:21px;line-height:1.45;font-weight:550;overflow-wrap:anywhere;}
.studio-direction #profile-bio-preview {font-size:14px;color:var(--muted);margin:8px 0 10px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;}
.studio-direction .profile-image-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px 17px;}
.studio-direction .profile-image-actions .button {padding:9px 15px;min-height:44px;font-size:14px;}
.studio-direction .profile-text-button {min-height:44px;padding:6px 0;color:var(--muted);font-size:14px;text-align:left;}
.studio-direction .profile-file-help {color:var(--muted);font-size:13px;line-height:1.8;margin-top:12px;}
.studio-direction .profile-fields {padding-top:26px;}
.studio-direction .profile-fields .field {display:block;font-size:14px;line-height:1.7;}
.studio-direction .profile-fields :is(input,textarea) {display:block;width:100%;margin-top:10px;font-size:16px;min-height:48px;line-height:1.65;}
.studio-direction .profile-fields textarea {resize:vertical;min-height:112px;}
.studio-direction .profile-fields .field + .profile-field-help + .field {margin-top:24px;}
.studio-direction .profile-optional {font-size:12px;color:var(--muted);margin-left:8px;}
.studio-direction .profile-field-help {font-size:13px;color:var(--muted);margin-top:7px;line-height:1.8;}
.studio-direction .profile-count {text-align:right;font-variant-numeric:tabular-nums;}
.studio-direction .profile-fields [aria-invalid=true] {border-color:#a64036;}
.studio-direction .profile-message {min-height:23px;font-size:14px;line-height:1.8;color:var(--accent);margin-top:21px;overflow-wrap:anywhere;}
.studio-direction .profile-message:focus {outline:none;}
.studio-direction .profile-message.is-error {color:#a64036;}
.studio-direction .profile-save-row {display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:18px;margin-top:15px;border-top:1px solid var(--line);}
.studio-direction .profile-save-row > span {font-size:13px;line-height:1.8;color:var(--muted);max-width:150px;}
.studio-direction .profile-save-row > div {display:flex;align-items:center;gap:10px;flex:none;}
.studio-direction .profile-save-row .button {min-height:45px;font-size:14px;}
.studio-direction .profile-account-details {display:grid;gap:22px;min-width:0;}
.studio-direction .profile-account-details h2 {font-size:19px;line-height:1.5;}
.studio-direction .profile-account-details .profile-qualification-heading + .muted {font-size:13px;margin-top:12px;}
.studio-direction .profile-account-note {font-size:13px;line-height:1.9;color:var(--muted);margin:18px 0 22px;}
.studio-direction .profile-settings .setting-row {align-items:center;padding:15px 0;gap:12px;font-size:14px;}
.studio-direction .profile-settings .setting-row .button {min-height:44px;padding:5px 0;font-size:14px;}
.studio-direction .profile-settings .profile-account-note {margin-bottom:0;}
@media (hover:hover) and (pointer:fine) {
 .studio-direction .profile-text-button:not(:disabled):hover {color:var(--accent);text-decoration:underline;text-underline-offset:4px;}
}
@media (prefers-reduced-motion:no-preference) {
 .studio-direction .profile-editor button {transition:transform 130ms cubic-bezier(.23,1,.32,1);}
 .studio-direction .profile-editor button:active:not(:disabled):not(:focus-visible) {transform:translateY(1px);}
}
@media (max-width:1190px) {
 .studio-direction .profile-layout {grid-template-columns:minmax(0,1fr);}
 .studio-direction .profile-account-details {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:700px) {
 .studio-direction .profile-editor.panel {padding:23px 20px;}
 .studio-direction .profile-section-heading {gap:13px;padding-bottom:21px;}
 .studio-direction .profile-section-heading h2 {font-size:20px;}
 .studio-direction .profile-section-heading p {font-size:14px;}
 .studio-direction .profile-identity {gap:16px;padding:25px 0;}
 .studio-direction .profile-avatar.profile-avatar-large {width:76px;height:76px;font-size:28px;}
 .studio-direction .profile-preview-copy > strong {font-size:19px;}
 .studio-direction .profile-image-actions {display:block;}
 .studio-direction .profile-image-actions .button {display:flex;}
 .studio-direction .profile-text-button {margin-top:2px;}
 .studio-direction .profile-file-help {font-size:13px;}
 .studio-direction .profile-save-row {flex-direction:column;align-items:stretch;gap:16px;}
 .studio-direction .profile-save-row > span {max-width:none;font-size:13px;}
 .studio-direction .profile-save-row > div {display:grid;grid-template-columns:1fr 1fr;}
 .studio-direction .profile-account-details {grid-template-columns:1fr;}
}

.studio-direction .profile-qualification-heading {display:flex;align-items:center;gap:13px;}
.studio-direction .profile-member-mark {display:inline-flex;width:39px;height:35px;flex:none;align-items:center;color:var(--accent);}
.studio-direction .profile-member-mark > svg {display:block;width:100%;height:auto;max-height:35px;}

/* Long names, file guidance and server account details remain readable at narrow widths. */
.studio-direction .profile-editor .profile-field-help {font-size:13px;}
.studio-direction .profile-account-details :is(.panel,.setting-row) {min-width:0;overflow-wrap:anywhere;}
.studio-direction .profile-settings .setting-row > span {min-width:0;}
.studio-direction .profile-settings .setting-row > :is(button,a) {flex:none;}
.studio-direction .profile-fields :is(input,textarea) {scroll-margin-top:96px;}
.studio-direction .profile-image-actions :is(button,a) {touch-action:manipulation;}
@media (max-width:380px) {
 .studio-direction .profile-identity {flex-direction:column;gap:17px;}
 .studio-direction .profile-preview-copy {width:100%;}
 .studio-direction .profile-image-actions {display:flex;gap:8px 16px;}
 .studio-direction .profile-text-button {margin-top:0;}
}
