#profileSlot{position:relative;flex:0 0 auto}.profile-avatar{width:40px;height:40px;border-radius:50%;border:1px solid var(--sums-line-52703f, #52703f);background:var(--sums-surface-26391b, #26391b);color:var(--sums-ink-ddf4b4, #ddf4b4);font:700 .85rem system-ui;cursor:pointer;padding:0;overflow:hidden}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:110;width:min(260px,calc(100vw - 32px));padding:12px;border:1px solid var(--sums-line-36513c, #36513c);border-radius:14px;background:var(--sums-surface-0d1b12, #0d1b12);box-shadow:0 18px 50px var(--sums-shadow-0008, #0008)}.profile-menu strong,.profile-menu small{display:block;overflow-wrap:anywhere;margin:3px 8px;color:var(--sums-ink-d9e6dc, #d9e6dc)}.profile-menu small{font-size:.76rem;color:var(--sums-ink-a9bdae, #a9bdae)}.profile-menu a,.profile-menu button{display:block;width:100%;box-sizing:border-box;text-align:left;padding:10px 8px;color:var(--sums-ink-edf4ee, #edf4ee);border:0;border-radius:8px;background:transparent;text-decoration:none;font:inherit;font-size:.87rem;cursor:pointer}.profile-menu a:hover,.profile-menu button:hover{background:var(--sums-surface-203522, #203522)}.profile-dialog{width:min(560px,calc(100vw - 48px));max-height:85dvh;overflow:auto;background:var(--sums-surface-0d1c13, #0d1c13);color:var(--sums-ink-eef4ef, #eef4ef);border:1px solid var(--sums-line-36513c, #36513c);border-radius:18px;padding:24px}.profile-dialog::backdrop{background:var(--sums-surface-0009, #0009);backdrop-filter:blur(5px)}.profile-dialog-head{display:flex;justify-content:space-between;align-items:center}.profile-dialog-head button{background:none;border:0;color:var(--sums-ink-eef4ef, #eef4ef);cursor:pointer;font-size:1.2rem}.profile-dialog label{display:block;margin:12px 0;color:var(--sums-ink-becdc2, #becdc2);font-size:.85rem}.profile-dialog input{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:11px;border:1px solid var(--sums-line-36513c, #36513c);border-radius:9px;background:var(--sums-surface-08120c, #08120c);color:var(--sums-ink-edf4ee, #edf4ee);font:inherit}.profile-dialog input[readonly]{opacity:.7}.profile-dialog p{font-size:.85rem;line-height:1.6;color:var(--sums-ink-b7c8bc, #b7c8bc)}#emailChangeForm{border-top:1px solid var(--sums-line-294532, #294532);margin-top:22px;padding-top:10px}#profileMessage{color:var(--sums-ink-d7eca8, #d7eca8)}.profile-avatar:focus-visible,.profile-menu :focus-visible{outline:2px solid var(--sums-line-ccff67, #ccff67);outline-offset:3px}.profile-photo-row{display:flex;align-items:center;gap:18px;margin:16px 0 22px}.profile-photo-preview{width:76px;height:76px;display:grid;place-items:center;flex-shrink:0;font-size:1.2rem}.profile-photo-row p{margin:7px 0 0;font-size:.75rem}.profile-edit-field{display:flex;gap:8px;align-items:center}.profile-edit-field input{flex:1;min-width:0}.profile-edit-field button{width:38px;height:38px;flex:0 0 auto;border:1px solid var(--sums-line-36513c, #36513c);border-radius:9px;background:var(--sums-surface-203522, #203522);color:var(--sums-ink-dcf4b5, #dcf4b5);cursor:pointer;font-size:1.2rem}.profile-dialog input[hidden],#emailChangeForm[hidden]{display:none}

.profile-dialog{box-sizing:border-box;width:min(650px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:22px 26px;scrollbar-width:none}
.profile-dialog::-webkit-scrollbar{display:none}
.profile-dialog-head h2{margin:0;font-size:1.4rem}
#profileForm{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 20px;margin-top:18px}
#profileForm[hidden],#emailChangeForm[hidden]{display:none}
#profileForm .profile-photo-row{grid-column:1/-1;margin:0 0 4px}
#profileForm>label{margin:0}
#profileForm>label:has([name=currentEmail]){grid-column:1/-1}
#profileForm>label:has([name=role]){align-self:start}
#profileForm>button[type=submit]{grid-column:1/-1;justify-self:end;margin-top:4px}
.profile-dialog input{padding:10px;margin-top:5px}
.profile-photo-preview{width:64px;height:64px}
#emailChangeForm{border:0;margin:18px 0 0;padding:0}
.profile-back{background:none;border:0;padding:0;color:var(--sums-ink-d7eca8, #d7eca8);cursor:pointer;font:inherit;font-size:.85rem}
#profileMessage:empty{display:none}
#profileMessage{margin:12px 0 0}
@media(max-width:520px){.profile-dialog{padding:20px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}#profileForm{grid-template-columns:minmax(0,1fr);gap:12px}#profileForm>button[type=submit]{justify-self:stretch}.profile-photo-row{gap:12px}.profile-dialog p{line-height:1.4}}


#logoutBtn{display:none!important}.profile-menu [hidden]{display:none!important}.profile-dialog [hidden]{display:none!important}

.topbar .actions>#profileSlot,.data-topbar nav>#profileSlot{order:100;flex:0 0 auto}.topbar .actions>.sums-notifications,.data-topbar nav>.sums-notifications{order:99}.data-topbar nav{display:flex;align-items:center;justify-content:flex-end;margin-left:auto}#profileSlot{align-self:center}


.profile-language-code{font-size:.62rem;font-weight:750;letter-spacing:.04em;border:1px solid currentColor;border-radius:4px;padding:2px 3px;line-height:1;opacity:.8}
