:is(#accountProfile,.account-profile-inline){width:min(520px,calc(100vw - 24px));max-height:90dvh;padding:0;border:1px solid var(--work-line,#d9e0ed);border-radius:22px;background:var(--work-surface,#fff);color:var(--work-ink,#1d2b45)}
:is(#accountProfile,.account-profile-inline)::backdrop{background:#0c193780;backdrop-filter:blur(5px)}
.account-telegram{border:1px solid var(--work-line,#d9e0ed);border-radius:14px;overflow:hidden;background:var(--work-surface,#fff)}
:is(#accountProfile,.account-profile-inline) .account-telegram-toggle{display:flex;align-items:center;gap:11px;width:100%;text-align:left;border:0;border-radius:0;background:transparent;padding:12px}
.account-telegram-toggle>span:nth-child(2){display:grid;flex:1;gap:1px}.account-telegram-toggle small,.account-telegram-note{color:var(--work-muted,#5c6a81);font-size:12px;line-height:1.5}.account-telegram-mark{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;background:#167ba8;color:white}.account-telegram-mark svg{width:23px;height:23px}.account-telegram-chevron{font-size:20px;transition:transform .18s ease}.account-telegram-toggle[aria-expanded=true] .account-telegram-chevron{transform:rotate(180deg)}
[data-telegram-content]{padding:0 12px 12px}[data-telegram-status]{font-weight:650;margin:0 0 7px;font-size:13px;overflow-wrap:anywhere}.account-telegram-note{margin:0 0 12px}.account-telegram-actions{display:flex;flex-wrap:wrap;gap:7px}:is(#accountProfile,.account-profile-inline) .account-telegram-actions button{font-size:13px;padding:8px 10px;min-height:42px}.account-telegram-consent{border-top:1px solid var(--work-line,#d9e0ed);margin-top:12px;padding-top:12px;font-size:13px}.account-telegram-consent p{margin:0 0 10px}:is(#accountProfile,.account-profile-inline) .account-telegram-continue{background:#167ba8;border-color:#167ba8;color:#fff;font-weight:650;transition:transform .18s ease,box-shadow .18s ease}:is(#accountProfile,.account-profile-inline) .account-telegram-continue:hover:not(:disabled){box-shadow:0 4px 14px #167ba82b;transform:translateY(-1px)}:is(#accountProfile,.account-profile-inline) .account-telegram-continue:active:not(:disabled){transform:scale(.98)}:is(#accountProfile,.account-profile-inline) .account-telegram button:disabled{opacity:.58;cursor:default}
@media(prefers-reduced-motion:reduce){.account-telegram-chevron,:is(#accountProfile,.account-profile-inline) .account-telegram-continue{transition:none!important;transform:none!important}}
body[data-tasks-paused=true] .account-telegram *{transition:none!important}
.account-profile-form{display:grid;gap:18px;padding:24px;overflow:auto;max-height:90dvh;box-sizing:border-box;font:15px/1.5 Inter,system-ui,sans-serif}
.account-profile-form header{display:flex;align-items:start;gap:12px}.account-profile-form header>div{flex:1}.account-profile-form h2{margin:0;font-size:24px;line-height:1.2}.account-profile-form header p{margin:8px 0 0;color:var(--work-muted,#5c6a81)}
.account-profile-form label{display:grid;gap:6px;font-weight:600}.account-profile-form input:not([type=file]){width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--work-line,#cdd6e5);border-radius:11px;box-sizing:border-box;color:inherit;background:var(--work-soft,#f4f6fb);font:inherit}
.account-profile-form input[readonly]{color:var(--work-muted,#5c6a81)}
.account-profile-form button,.account-photo-choose{cursor:pointer;padding:9px 12px;min-height:44px;border:1px solid var(--work-line,#ccd5e6);border-radius:10px;font:inherit;background:var(--work-soft,#f4f6fb);color:inherit}
.account-profile-form button:focus-visible,.account-photo-choose:focus-within{outline:2px solid var(--work-accent,#7550bd);outline-offset:3px}
.account-photo-row{display:flex;align-items:center;gap:18px}.account-photo-row>div{display:flex;flex-wrap:wrap;gap:8px;min-width:0}.account-photo-row small{flex-basis:100%;font-size:13px;color:var(--work-muted,#5c6a81)}.account-photo-choose{position:relative;overflow:hidden;display:inline-block!important}.account-photo-choose input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.account-photo-preview{width:84px;height:84px;border-radius:50%;flex:none;display:grid;place-items:center;background:var(--work-accent-soft,#eee7ff);color:var(--work-accent,#7047b1);font-size:24px;font-weight:700;overflow:hidden}.account-photo-preview img{width:100%;height:100%;object-fit:cover}
.account-profile-form footer{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.account-profile-form button.account-profile-save{background:var(--work-accent-soft,#eee7ff);border-color:var(--work-accent,#7550bd);font-weight:700}.account-profile-form [data-profile-feedback]:empty{display:none}.account-profile-form [data-profile-discard]:not([hidden]){display:flex;flex-wrap:wrap;gap:8px;border:1px solid var(--work-accent,#7550bd);padding:10px;border-radius:10px}.account-profile-form [data-profile-discard] b{flex-basis:100%}
.auth-avatar img,.mobile-profile-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.auth-avatar:has(img){overflow:hidden}
@media(max-width:420px){.account-profile-form{padding:18px;gap:14px}.account-photo-preview{width:64px;height:64px}.account-photo-row{gap:12px}}
.account-profile-field-note{font-size:11px;line-height:1.5;color:var(--work-muted,#5c6a81);font-weight:400}
:is(#accountProfile,.account-profile-inline) .account-profile-save{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 17px;border:1px solid #8057cc;border-radius:12px;background:linear-gradient(110deg,#623cba,#8c54d5);color:#fff;box-shadow:0 5px 16px #7545bd2b;min-width:185px}
.account-profile-save svg{width:20px;height:20px;flex:none}.profile-save-check{display:none;stroke-dasharray:24;stroke-dashoffset:0}
:is(#accountProfile,.account-profile-inline) .account-profile-save[data-profile-save-state=saved]{background:linear-gradient(110deg,#126849,#218360);border-color:#218360;box-shadow:0 4px 14px #16845d25}
.account-profile-save[data-profile-save-state=saved] .profile-save-check{display:block}.account-profile-save[data-profile-save-state=saved] .profile-save-arrow{display:none}
:is(#accountProfile,.account-profile-inline) .account-profile-save[data-profile-save-state=error]{background:linear-gradient(110deg,#94465b,#a84367);border-color:#a84367}
.account-profile-save::after{content:'';position:absolute;z-index:-1;inset:-60% -30%;background:linear-gradient(105deg,transparent 36%,#ffffff29 50%,transparent 64%);transform:translateX(-100%);pointer-events:none}
@media(prefers-reduced-motion:no-preference){
 :is(#accountProfile,.account-profile-inline) .account-profile-save{transition:transform 180ms cubic-bezier(.2,.8,.2,1),box-shadow 220ms,background-color 220ms}
 :is(#accountProfile,.account-profile-inline) .account-profile-save:not(:disabled):active{transform:scale(.96)}
 .account-profile-save[data-profile-save-state=saving] svg{animation:profile-saving 700ms ease-in-out both}
 .account-profile-save[data-profile-save-state=saved] svg{animation:profile-saved 440ms cubic-bezier(.2,.8,.2,1) both}
 .account-profile-save[data-profile-save-state=saved] .profile-save-check{animation:profile-check 380ms ease-out both}
 .account-profile-save[data-profile-save-state=saved]::after{animation:profile-save-light 650ms ease-out both}
 @media(hover:hover){:is(#accountProfile,.account-profile-inline) .account-profile-save:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 8px 22px #7545bd40}.account-profile-save:hover::after{transform:translateX(100%);transition:transform 550ms ease-out}}
 @keyframes profile-saving{0%,100%{transform:translateY(0)}45%{transform:translateY(4px);opacity:.5}}
 @keyframes profile-saved{from{transform:scale(.7);opacity:.3}65%{transform:scale(1.15)}to{transform:scale(1);opacity:1}}
 @keyframes profile-check{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}
 @keyframes profile-save-light{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
}
body[data-tasks-paused=true] .account-profile-save,body[data-tasks-paused=true] .account-profile-save *,body[data-tasks-paused=true] .account-profile-save::after{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){:is(#accountProfile,.account-profile-inline) .account-profile-save,:is(#accountProfile,.account-profile-inline) .account-profile-save *,:is(#accountProfile,.account-profile-inline) .account-profile-save::after{animation:none!important;transition:none!important}}
@media(max-width:420px){:is(#accountProfile,.account-profile-inline) .account-profile-save{flex:1;min-width:160px;padding:10px 12px}}

:is(#accountProfile,.account-profile-inline).account-profile-inline{width:100%;max-height:none;margin:0;border:0;background:transparent}.account-profile-inline .account-profile-form{max-height:none;overflow:visible;padding:20px;border:1px solid var(--work-line,#d9e0ed);border-radius:20px;background:var(--work-surface,#fff)}.account-profile-inline [data-profile-close]{display:none}.account-profile-inline .account-profile-form h2{font-size:21px}
