.current-user-panel{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem 2rem;padding:1rem 1.2rem;margin:0 0 1.3rem;background:#eaf2fc;border:1px solid #cbdcf1;border-radius:10px;color:#182638;font:14px/1.5 system-ui;box-sizing:border-box}
.current-user-panel .current-user-identity,.current-user-panel .current-user-roles{display:flex;flex-direction:column;gap:.2rem;min-width:0;flex:1}
.current-user-panel .current-user-label{font-size:.78rem;color:#4d5e73}
.current-user-panel .current-user-name{font-size:1rem;font-weight:650;overflow-wrap:anywhere}
.current-user-panel .current-user-email,.current-user-panel .current-user-empty{overflow-wrap:anywhere}
.current-user-panel ul{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;margin:.15rem 0 0;padding:0}
.current-user-panel li{margin:0;padding:.15rem .55rem;border:1px solid #b8cce5;border-radius:5px;background:#fff;color:#174577;font-size:.82rem;overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}
@media(max-width:600px){.current-user-panel{flex-direction:column;gap:.8rem;padding:1rem}.current-user-panel .current-user-identity,.current-user-panel .current-user-roles{width:100%}}

/* Shared navigation for every account workspace. */
.deployment-version-bar{display:flex;flex-wrap:wrap;gap:.35rem 1.2rem;align-items:center;margin:0 0 .8rem;padding:.65rem .9rem;border:1px solid #b8cce5;border-radius:8px;background:#fff;color:#334b65;font-size:.82rem}.deployment-version-bar>span{min-width:0;overflow-wrap:anywhere}.deployment-version-bar code{font-size:inherit;color:#174577}
header.account-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.account-header>strong{padding:8px 0}
header.account-header .account-navigation{display:flex;gap:6px 12px;flex-wrap:wrap;align-items:center;justify-content:flex-start;flex:1;min-width:0}
.account-navigation a{display:inline-block;padding:7px 10px;border-radius:6px;color:#1457a8;text-decoration:none;overflow-wrap:anywhere}
.account-navigation a:hover{text-decoration:underline;background:#edf2f9}
.account-navigation a[aria-current=page]{background:#1856ad;color:#fff;font-weight:600;text-decoration:none}
.account-navigation a:focus-visible{outline:2px solid #1856ad;outline-offset:3px}
@media(max-width:650px){header.account-header{flex-direction:column;gap:4px}.account-navigation a{padding:7px 8px}}

.current-user-panel .current-user-avatar{flex:0 0 72px;align-self:center;margin-left:auto}
.current-user-avatar img,.current-user-avatar-placeholder{display:block;width:72px;height:72px;border-radius:50%;object-fit:cover;box-sizing:border-box;border:1px solid #b8cce5;background:#dbe8f8}
.current-user-avatar-placeholder{display:flex;align-items:center;justify-content:center;color:#174577;font-size:1.6rem;font-weight:600}
@media(max-width:600px){.current-user-panel{position:relative;min-height:106px;padding-right:100px}.current-user-panel .current-user-avatar{position:absolute;top:1rem;right:1rem}}

/* Shared account theme follows the system preference; light styles remain unchanged. */
@media(prefers-color-scheme:dark){
 html:has(.account-header){color-scheme:dark;--account-bg:#161d29;--account-panel:#202b3b;--account-text:#e4edf7;--account-muted:#b0c1d6;--account-line:#3c4d63;--account-link:#89b8ff;--account-tint:#243b58;--account-success:#9ed6b4}
 body:has(.account-header){background:var(--account-bg);color:var(--account-text)}
 body:has(.account-header) :is(section,fieldset,.items,.saved-request,.organization-card,.saved-address,.details,.creating,.profile-avatar-dialog){background:var(--account-panel);color:var(--account-text);border-color:var(--account-line)}
 body:has(.account-header) :is(a,.row-name,.review-link,.review-toggle,.toggle){color:var(--account-link)}
 body:has(.account-header) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]),textarea,select){background:#182231;color:var(--account-text);border-color:#70839c}
 body:has(.account-header) :is(input[readonly],input:disabled,textarea:disabled,select:disabled){background:#2b3646;color:var(--account-muted)}
 body:has(.account-header) :is(small,.hint,.muted,.status,.total,.page-label,.row-meta,.details dt,.empty,.membership-status,.membership-count,.bind-hint,.current-user-label,.nc-avatar-sizes figcaption){color:var(--account-muted)}
 body:has(.account-header) :is(.current-user-panel,.notice,.filters,.chip,.compact-row.selected,.quick-start-profile-note){background:var(--account-tint);color:var(--account-text);border-color:var(--account-line)}
 body:has(.account-header) :is(.deployment-version-bar,.current-user-panel li,.current-user-avatar-placeholder,.address-box,pre,.nc-avatar-editor){background:var(--account-panel);color:var(--account-text);border-color:var(--account-line)}
 body:has(.account-header) :is(.secondary,.directory .secondary,.add-organization){background:#2d4059;color:#d4e6ff;border-color:#607b9e}
 body:has(.account-header) button:not(.secondary):not(.danger):not(.toggle):not(.row-name):not(.review-link):not(.phone-icon):not(.avatar-edit-trigger){background:#2862b3;color:white}
 body:has(.account-header) .danger{background:#8b3038;color:white}
 body:has(.account-header) .quick-start{border-top-color:var(--account-link)}
 body:has(.account-header) :is(.toggle,.row-name,.review-link,.avatar-edit-trigger){background:transparent}
 body:has(.account-header) :is(.phone-input-row .phone-icon,.avatar-edit-trigger span){background:var(--account-panel)}
 body:has(.account-header) :is(.save-personal-phone,.quick-start-confirmed){color:var(--account-success)}
 body:has(.account-header) :is(.remove-personal-phone,.required-mark,.validation-summary-errors,.field-error,.profile-avatar-dialog .is-error){color:#ffb4ad}
 body:has(.account-header) .organization-required::after{color:#ffb4ad}
 body:has(.account-header) .input-validation-error{border-color:#ffb4ad!important;background:#482c32!important}
 body:has(.account-header) .account-navigation a:hover{background:#2d4059}
 body:has(.account-header) .account-navigation a[aria-current=page]{background:#2862b3;color:white}
 body:has(.account-header) :is(.badge.verified,.badge.active,.badge.approved){background:#244936;color:#b4ecc6}
 body:has(.account-header) :is(.badge.pending,.badge.review,.badge.waiting,.consent-notice){background:#493b22;color:#ffe0a1;border-color:#a2854e}
 body:has(.account-header) :is(.badge.rejected,.badge.suspended,.badge.closed){background:#4b2c32;color:#ffc0bb}
 body:has(.account-header) :is(.directory button:disabled,button:disabled){background:#303b4c;color:#b0c1d6;border-color:#56677f}
 body:has(.account-header) :is(.directory-card+.directory-card,.role-group,.role-groups,.review-box,.contact-actions,.review-history li,.identity-field,.unit-editor,.unit-members,.role-add-user,.role-users li){border-color:var(--account-line)}
 body:has(.account-header) .role-add-user [role=option]:hover{background:var(--account-tint)}
 body:has(.account-header) .deployment-version-bar code{color:var(--account-link)}
 body:has(.account-header) .consent-notice .hint{color:#ffe0a1}
}
