.desk-account{position:relative;gap:8px}
.desk-account .profile-menu{position:relative;min-width:0}
.desk-account .profile-menu summary{display:flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #e1e5eb;border-radius:7px;background:white;cursor:pointer;list-style:none}
.profile-menu summary::-webkit-details-marker{display:none}
.profile-menu summary .profile-name{max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-menu summary .tg-icon{margin:0}
.profile-menu summary::after{content:'⌄';color:#686e79;line-height:1}
.profile-popover{position:absolute;z-index:20;right:0;top:calc(100% + 7px);min-width:174px;border:1px solid #e1e5eb;box-shadow:0 8px 22px #18223826;border-radius:7px;background:white;padding:4px}
.desk-account .profile-popover a{display:block;padding:8px 9px;background:transparent;border-radius:5px;color:#272d3a;font-size:13px}.desk-account .profile-popover a:hover{background:#fff1f4;color:#a7112b}
.profile-page{padding-block:22px 45px}.profile-card{max-width:590px;margin:auto;padding:22px;border:1px solid #e2e6ed;border-top:4px solid #c41130;border-radius:9px;background:#fff}
.profile-card header{display:flex;align-items:center;gap:12px;margin-bottom:17px}.profile-card h1{margin:0}.profile-card header p{margin:3px 0;color:#545e70;font-size:13px}
.profile-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#ffe9ef;color:#a5102b;font-size:21px;font-weight:800}.profile-data{margin:0 0 16px}.profile-data dt,.profile-form p{color:#536075;font-size:13px}.profile-data dd{margin:3px 0 12px;font-weight:700;overflow-wrap:anywhere}
.editor-byline{padding:8px 10px;background:#f5f6f8;border-radius:6px;font-size:13px;color:#475169}
@media(max-width:760px){.profile-menu summary .profile-name{max-width:82px}.desk-account .profile-menu summary{padding:5px}.profile-menu summary .tg-icon{display:none}}

.profile-avatar{overflow:hidden;flex-shrink:0}
.profile-avatar>img,.profile-menu-photo{display:block;width:100%;height:100%;object-fit:cover}
.profile-menu-photo{width:24px;height:24px;border-radius:50%;flex-shrink:0}
.profile-photo-picker{display:grid;gap:7px;margin:0 0 15px;padding:12px;background:#f6f7f9;border:1px solid #e6e9ef;border-radius:7px}
.profile-photo-picker p{margin:0}.profile-photo-picker [role=status]:empty{display:none}
.profile-photo-actions{display:flex;flex-wrap:wrap;gap:7px}
.profile-photo-actions button:disabled{cursor:not-allowed;opacity:.55}
.profile-photo-actions [data-photo-remove]{color:#a7112b;text-decoration:underline;font-size:13px}
@media(max-width:760px){.profile-menu-photo{width:20px;height:20px}}
