/* Account pages share the site's Graphite & Petrol tokens and brand assets. */
html[data-account-redirecting="true"] body{visibility:hidden}
/* Match the main app typography on every authentication route, including native form controls. */
/* Keep the app font and fixed tracking on native form controls, including focus. */
.app-authentication{font-family:inherit}
.app-authentication :is(input,select,textarea,button){font-family:inherit;letter-spacing:normal}
.account-body,.account-body *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.account-body form .language-control,.account-body form .language-trigger{width:100%;min-width:0}
.account-body form .language-menu{width:100%;max-height:260px}
.account-body .language-trigger{font-weight:400}
.account-body h2{font-size:var(--fa-text-panel-heading);line-height:1.35}
.account-body form{display:grid;gap:var(--fa-space-3);margin-block:16px 12px}
.account-body label{display:grid;gap:5px;font-size:var(--fa-text-control);font-weight:600}
.account-body input,.account-body select{font:inherit;width:100%;min-width:0;min-height:var(--fa-control-height-regular);padding:10px 12px;background:var(--background);color:var(--text);border:1px solid var(--border);border-radius:var(--fa-radius-control)}
.account-body input:focus-visible,.account-body select:focus-visible,.account-body a:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.account-body form>.cta{width:100%}
.account-body .cta:disabled{opacity:.6;cursor:wait}
.account-body a{color:var(--focus);text-underline-offset:3px}
.account-body p{font-size:14px;overflow-wrap:anywhere}
.account-body [role="status"]{min-height:1.6em;color:var(--muted)}
.account-body small{display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5}
.account-body section+section{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.account-body [hidden]{display:none!important}

/* Keep the longer registration form compact inside the shared panel. */
.account-body #register-form{gap:8px;margin-block:10px 8px}
.account-body #register-form .account-optional{gap:8px;padding-top:8px;margin-top:0}

.account-body .account-feedback{position:relative;margin-block:16px;padding:12px 14px 12px 40px;border:1px solid var(--line);border-radius:var(--fa-radius-control);background:var(--background);color:var(--text);font-size:13px;line-height:1.5}
.account-body .account-feedback::before{content:"!";position:absolute;left:14px;top:13px;display:grid;place-items:center;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;font-size:11px;font-weight:700;color:var(--muted)}
.account-body .account-feedback[data-kind="error"]{border-inline-start:3px solid #B77878}
.account-body .account-feedback[data-kind="success"]{border-inline-start:3px solid var(--primary)}
.account-body .account-feedback:empty{display:none}

/* Account assistance reuses the same controls, spacing and restrained site colors. */
.account-field{display:grid;gap:5px;min-width:0}
.account-password{position:relative;min-width:0}
.account-body .account-password input{padding-inline-end:52px}
.account-password-toggle{position:absolute;inset-inline-end:1px;top:1px;display:grid;place-items:center;width:44px;height:42px;border:0;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer}
.account-password-toggle:hover{color:var(--text);background:var(--surface-raised)}
.account-password-toggle svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.account-body .account-field-error{color:var(--fa-field-error-color);margin:0;font-weight:400}
html[data-theme="light"] .account-body .account-field-error{color:var(--fa-field-error-color)}
.account-field-error:empty{display:none}
.account-body [data-met="true"]{color:var(--primary)}
.account-optional{display:grid;gap:12px;min-width:0;margin:4px 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--line)}
.account-optional legend{padding:0 10px 0 0;color:var(--muted);font-size:12px;font-weight:400}
.account-body #account-next-step{color:var(--muted);line-height:1.6}
.account-body .account-feedback[data-kind="success"]::before{content:"✓";color:var(--primary)}
.account-body .account-feedback[data-kind="pending"]::before{content:"…"}
.account-body input{font-weight:400}

/* Only editable field surfaces respond to hover; labels, hints and feedback remain static. */
.account-body :is(input,select,textarea,.language-trigger){transition:var(--fa-field-transition)}
/* Remove the inherited landing :hover rule; only direct pointer-hit fields may highlight. */
.account-body .language-trigger:hover{background:var(--surface);border-color:var(--border)}
html[data-theme="light"] .account-body .language-trigger:hover{background:var(--surface);border-color:var(--border)}
@media(hover:hover) and (pointer:fine){
 .account-body :is(input,select,textarea,.language-trigger)[data-field-pointer-hover]:not(:disabled):not(:focus){
  background:var(--fa-field-hover-bg);border-color:var(--fa-field-hover-border);
 }
}
.account-body .account-password-toggle:hover{background:transparent}
.account-body :is(input,select,textarea,.language-trigger):focus-visible{
 border-color:var(--fa-field-focus-border);box-shadow:inset 0 0 0 1px var(--fa-field-focus-border);
}
@media(prefers-reduced-motion:reduce){.account-body :is(input,select,textarea,.language-trigger){transition:none}}

.account-body :is(#nationality-menu,#profile-nationality-menu){width:100%;min-width:0;max-width:100%;max-height:min(260px,40svh);overflow-y:auto;box-sizing:border-box}
:is(#nationality-menu,#profile-nationality-menu) .language-option{overflow-wrap:anywhere}
:is(#nationality-value,#profile-nationality-value){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.account-body [role="status"]:empty{display:none}
@media(min-width:600px){.account-optional{grid-template-columns:repeat(2,minmax(0,1fr))}}
.account-body .language-menu[data-menu-placement="above"]{top:auto;bottom:calc(100% + 6px)}

/* The profile uses the career shell and the existing account controls. */
.app-profile-body,.app-authentication-body{width:100%;max-width:640px;margin:var(--app-page-section-gap) auto 0}
.app-authentication-body{max-width:460px}
.app-authentication-card>p+p{margin-top:8px}
.app-authentication-card a:not(.cta){text-decoration:underline}
.app-profile .app-competition-tabs{margin:0 0 var(--fa-space-4)}
.app-profile-panel:not([hidden]){display:grid;gap:var(--fa-space-3)}
.app-profile-table{width:100%;table-layout:fixed;border:1px solid var(--border);border-spacing:0;border-radius:var(--fa-radius-panel);background:var(--surface);font-size:var(--fa-text-control)}
.app-profile-table th,.app-profile-table td{padding:var(--fa-space-3) var(--fa-space-4);text-align:start;overflow-wrap:anywhere}
.app-profile-table th{width:40%;font-weight:600;color:var(--muted)}
.app-profile-table tr:not([hidden])~tr:not([hidden])>*{border-top:1px solid var(--line)}
.app-profile-table td{user-select:text;-webkit-user-select:text}
.app-profile #logout-button{justify-self:end}

.app-profile-icons{position:absolute}
.app-profile-field{display:flex;align-items:center;justify-content:space-between;gap:var(--fa-space-2)}
.app-profile-value{display:block;min-width:0;line-height:1.4}
.app-profile [aria-busy="true"] .app-profile-value{display:flex;align-items:center;width:100%;min-height:1.4em}
.app-profile-value .app-skeleton-bar{width:min(11ch,100%);margin:0}
.app-profile-value:is(#identity,#security-email-value) .app-skeleton-bar{width:min(19ch,100%)}
.app-profile-pencil{display:grid;place-items:center;flex:none;width:36px;height:36px;border:0;border-radius:var(--fa-radius-control);background:transparent;color:var(--muted);cursor:pointer}
.app-profile-pencil:hover,.app-profile-pencil[aria-expanded="true"]{color:var(--text);background:var(--surface-raised)}
.app-profile-pencil:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.app-profile-pencil:disabled{opacity:.5;cursor:default}
.app-profile-edit-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,176px);margin-inline-start:auto;gap:var(--fa-space-3)}
.app-profile-edit-actions .cta{width:100%;min-width:0;min-height:var(--fa-control-height-compact);padding:4px clamp(3px,1vw,8px);font-size:12px}
.app-profile-table form{margin:var(--fa-space-3) 0 0}

/* #858 minimal public identity, with the final title height reserved. */
.app-user-profile .app-page-title{min-height:1.3em;overflow-wrap:anywhere}
.app-user-profile .app-page-title .app-skeleton-bar{display:inline-block;width:min(19ch,100%);height:.8em;margin:0;vertical-align:middle}
.app-user-profile #user-profile-status:empty{display:none}
.app-profile-username-link{color:inherit;text-decoration:none}
.app-profile-username-link:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:3px}
