/* Profile editor: uses the existing three-theme tokens, never changes other views.
 * Component vocabulary: profile-editor / profile-avatar-editor / profile-editor-grid /
 * profile-editor-footer / dashboard-language. States: is-error + native disabled/hidden. */
html[data-ui-refined] body.api-console-page{
  --profile-surface:var(--paper-sheet,#fcfbf8);--profile-field:var(--paper-field,#fff);
  --profile-soft:var(--paper-sheet-2,#f7f4ed);--profile-ink:var(--paper-ink,#181816);
  --profile-muted:var(--paper-muted,#6e6a61);--profile-line:var(--paper-border,#e4dfd3);
  --profile-accent:var(--paper-accent,#d96b43);--profile-danger:var(--paper-danger,#c93b2b);
  --profile-action:var(--paper-action,#181816);--profile-on-action:var(--paper-on-action,#fff);
  --profile-space-sm:8px;--profile-space-md:12px;--profile-space-lg:16px;--profile-space-xl:24px;
  --profile-radius:8px;--profile-body-size:14px;--profile-caption-size:12px;
}
html[data-ui-refined] body.api-console-page .profile-editor{margin-bottom:var(--profile-space-xl);padding:var(--profile-space-xl);background:var(--profile-surface);border:1px solid var(--profile-line)}
html[data-ui-refined] body.api-console-page .profile-editor-note{margin:var(--profile-space-sm) 0 var(--profile-space-xl);font-size:var(--profile-body-size);line-height:1.7;color:var(--profile-muted)!important}
html[data-ui-refined] body.api-console-page .profile-editor fieldset{min-width:0;border:0;padding:0;margin:0}
html[data-ui-refined] body.api-console-page .profile-avatar-editor{display:flex;gap:var(--profile-space-lg);align-items:center;padding-bottom:var(--profile-space-xl);border-bottom:1px solid var(--profile-line);margin-bottom:var(--profile-space-xl)}
html[data-ui-refined] body.api-console-page .profile-avatar-preview{width:88px;height:88px;flex:0 0 88px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--profile-soft);color:var(--profile-ink);border:1px solid var(--profile-line);font-size:28px;font-weight:600}
html[data-ui-refined] body.api-console-page :is(.profile-avatar-preview,.api-avatar) img{width:100%;height:100%;object-fit:cover;display:block}
html[data-ui-refined] body.api-console-page .profile-avatar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--profile-space-sm);min-width:0}
html[data-ui-refined] body.api-console-page .profile-avatar-actions>p{flex-basis:100%;margin:0;font-size:var(--profile-caption-size);line-height:1.7;color:var(--profile-muted)!important}
html[data-ui-refined] body.api-console-page .profile-upload-button{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:var(--profile-space-sm) var(--profile-space-md);border:1px solid var(--profile-line);border-radius:var(--profile-radius);background:var(--profile-soft);color:var(--profile-ink);font-size:var(--profile-body-size);cursor:pointer;overflow:hidden}
html[data-ui-refined] body.api-console-page .profile-upload-button input{position:absolute;inset:0;opacity:0!important;cursor:pointer;width:100%;height:100%}
html[data-ui-refined] body.api-console-page .profile-upload-button:focus-within{outline:2px solid var(--profile-accent);outline-offset:2px}
html[data-ui-refined] body.api-console-page .profile-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--profile-space-lg) var(--profile-space-xl)}
html[data-ui-refined] body.api-console-page .profile-editor-grid>label{display:grid;gap:var(--profile-space-sm);font-size:var(--profile-body-size);color:var(--profile-ink);min-width:0}
html[data-ui-refined] body.api-console-page .profile-editor-grid small{font-size:var(--profile-caption-size);line-height:1.6;color:var(--profile-muted)!important}
html[data-ui-refined] body.api-console-page .profile-bio-field{grid-column:1/-1}
html[data-ui-refined] body.api-console-page .profile-editor :is(input:not([type=file]),textarea){width:100%;max-width:100%;min-width:0;border:1px solid var(--profile-line);border-radius:var(--profile-radius);padding:10px var(--profile-space-md);font:inherit;line-height:1.5;background:var(--profile-field)!important;color:var(--profile-ink)!important;box-sizing:border-box}
html[data-ui-refined] body.api-console-page .profile-editor textarea{resize:vertical;min-height:94px}
html[data-ui-refined] body.api-console-page .profile-editor :is(input,textarea,button):focus-visible{outline:2px solid var(--profile-accent);outline-offset:2px}
html[data-ui-refined] body.api-console-page .profile-editor-footer{display:flex;flex-wrap:wrap;gap:var(--profile-space-md);align-items:center;margin-top:var(--profile-space-xl)}
html[data-ui-refined] body.api-console-page .profile-editor button{min-height:38px;width:auto;flex:0 1 auto;padding:var(--profile-space-sm) var(--profile-space-lg);border-radius:var(--profile-radius);font-size:var(--profile-body-size);white-space:normal}
html[data-ui-refined] body.api-console-page .profile-editor button.primary{background:var(--profile-action)!important;color:var(--profile-on-action)!important;border:1px solid var(--profile-action)!important}
html[data-ui-refined] body.api-console-page .profile-editor button.secondary{background:var(--profile-soft)!important;color:var(--profile-ink)!important;border:1px solid var(--profile-line)!important}
html[data-ui-refined] body.api-console-page .profile-editor :disabled{cursor:not-allowed;opacity:.55}
html[data-ui-refined] body.api-console-page :is(.profile-editor-hint,.profile-editor-message,.profile-language-message){font-size:var(--profile-caption-size);line-height:1.7;color:var(--profile-muted)!important;overflow-wrap:anywhere}
html[data-ui-refined] body.api-console-page .profile-editor-message{margin:var(--profile-space-md) 0 0;min-height:21px}
html[data-ui-refined] body.api-console-page :is(.profile-editor-message,.profile-language-message).is-error{color:var(--profile-danger)!important}
html[data-ui-refined] body.api-console-page .dashboard-language{display:flex;align-items:center;gap:var(--profile-space-sm);font-size:var(--profile-caption-size);color:var(--profile-muted);margin-top:var(--profile-space-md)}
html[data-ui-refined] body.api-console-page .dashboard-language .api-lang{width:auto;min-width:92px;max-width:100%;min-height:34px;padding:4px var(--profile-space-sm);border:1px solid var(--profile-line);border-radius:var(--profile-radius);background:var(--profile-field)!important;color:var(--profile-ink)!important;font-size:var(--profile-caption-size)}
html[data-ui-refined] body.api-console-page .profile-language-message{margin:4px 0 0}
html[data-ui-refined] body.api-console-page .profile-language-message:empty{display:none}
html[data-ui-refined] body.api-console-page .api-profile-link{color:inherit;text-decoration:none;min-width:0}
html[data-ui-refined] body.api-console-page .api-profile-link:focus-visible{outline:2px solid var(--profile-accent);outline-offset:2px;border-radius:4px}
html[data-ui-refined] body.api-console-page .api-user-meta [data-profile-account-name]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
html[data-ui-refined] body.api-console-page .api-user-meta [data-account-role]{font-size:var(--profile-caption-size);color:var(--profile-muted)!important;line-height:1.5;display:block;overflow-wrap:anywhere}
html[data-ui-refined] body.api-console-page .api-user-chip{grid-template-columns:40px minmax(0,1fr) auto}
html[data-ui-refined] body.api-console-page .api-avatar.api-profile-link{overflow:hidden;flex-shrink:0;width:40px;height:40px}
html[data-ui-refined][lang=en] body.api-console-page .api-sidebar .api-nav a{font-size:13px}
@media(max-width:680px){
html[data-ui-refined] body.api-console-page .profile-editor{padding:var(--profile-space-lg)}
html[data-ui-refined] body.api-console-page .profile-editor-grid{grid-template-columns:minmax(0,1fr)}
html[data-ui-refined] body.api-console-page .profile-avatar-editor{align-items:flex-start}
html[data-ui-refined] body.api-console-page .profile-avatar-preview{width:64px;height:64px;flex-basis:64px;font-size:24px}
html[data-ui-refined] body.api-console-page .profile-editor button{min-height:42px}
}
