#profile-header.avatar { isolation:isolate; border-radius:26px; background:linear-gradient(120deg,#466c74,#ae709e); padding:0!important; color:#fff; margin-top:24px; overflow:visible; }
#profile-header > h1 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#profile-header .big { display:block; position:absolute; inset:0; width:100%; height:100%; z-index:auto; border-radius:26px; margin:0; }
#profile-header .big > img { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; border-radius:26px; filter:brightness(.68); }
#profile-header .big > img.blur { filter:blur(7px) brightness(.68); }
#profile-header .big .writeMessage { position:absolute; right:24px; bottom:24px; z-index:4; min-height:42px; height:auto; padding:10px 20px; }
#profile-header .shift { padding:32px 220px 28px 250px; min-height:310px; background:transparent; border-radius:26px; }
#profile-header .shift .content { display:contents; }
#profile-header .content > :is(.img_avatar,.wrap_img_avatar,.storis-avatar-actions) { position:absolute; left:32px; top:52px; margin:0; width:170px; height:170px; }
#profile-header .content .img_avatar { display:block; width:170px; height:170px; object-fit:cover; }
#profile-header .names { display:block; width:100%; text-align:left; position:static; }
#profile-header .names .name { font-size:30px; line-height:1.3; }
#profile-header .names .phone { font-size:13px; margin-top:10px; }
#profile-header .names .profile-status { font-size:14px; line-height:1.6; margin-top:14px; }
#profile-header .profile-main-meta { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:10px; font-size:14px; }
#profile-header .profile-main-meta:empty { display:none; }
#profile-header .profile-main-vip { display:inline-block; vertical-align:middle; margin-left:10px; padding:3px 7px; border:1px solid #ffdc62; border-radius:5px; color:#ffdc62; font-size:12px; }
#profile-header .like_line { position:absolute; right:24px; top:90px; display:flex; flex-direction:column; align-items:start; gap:14px; max-width:180px; margin:0; }
#profile-header .like_line .count { color:#fff; font-size:16px; line-height:1.5; }
#profile-header .like_line > button[style*="visibility"] { display:none; }
#profile-header .socials { display:flex; gap:14px; margin-top:16px; }
#profile-header .profile-header-awards { padding:0; margin-top:20px; gap:16px; }
#profile-header .profile-header-awards__badges { gap:10px; margin-bottom:12px; }
#profile-header .profile-header-awards__badges a { padding:0; border:0; background:transparent; }
#profile-header .profile-header-awards__badges a > span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#profile-header .profile-header-progress { font-size:12px; gap:10px; }
#profile-header .profile-header-progress progress { flex-basis:100px; }
#profile-header .profile-header-sticker img { width:76px; height:76px; }
#profile-header .profile-header-sticker span { font-size:11px; }
#profile-header .bottom { padding:0; margin-top:20px; gap:14px; align-items:start; font-size:12px; }
#profile-header .bottom .icons { flex-wrap:wrap; gap:12px; }
#profile-header .big .lay-big { position:absolute; inset:16px 20px auto auto; width:auto; height:auto; opacity:1; transform:none; padding:8px 12px; border:1px solid #ffffff90; border-radius:10px; background:#31263850; color:#fff; z-index:5; font-size:12px; }
#profile-header .big .lay-big p { display:none; }
@media(max-width:1000px) {
 #profile-header .shift { padding:70px 24px 24px 190px; }
 #profile-header .content > :is(.img_avatar,.wrap_img_avatar,.storis-avatar-actions) { width:125px; height:125px; left:28px; top:72px; }
 #profile-header .content .img_avatar { width:125px; height:125px; }
 #profile-header .like_line { position:static; flex-direction:row; align-items:center; flex-wrap:wrap; max-width:none; margin-top:18px; }
 #profile-header .big .writeMessage { position:absolute; right:24px; bottom:24px; }
 #profile-header .bottom { padding-bottom:50px; }
}
@media(max-width:600px) {
 #profile-header.avatar,#profile-header .big,#profile-header .big > img { border-radius:20px; }
 #profile-header .shift { padding:64px 18px 20px; }
 #profile-header .content > :is(.img_avatar,.wrap_img_avatar,.storis-avatar-actions) { position:relative; left:auto; top:auto; width:110px; height:110px; float:left; margin:0 22px 18px 8px; }
 #profile-header .content .img_avatar { width:110px; height:110px; }
 #profile-header .names .name { font-size:24px; }
 #profile-header .names .profile-status { font-size:12px; }
 #profile-header .profile-main-meta { font-size:12px; }
 #profile-header .like_line { clear:both; padding-top:12px; }
 #profile-header .socials { clear:both; padding-top:12px; }
 #profile-header .bottom { display:flex; padding-inline:0; font-size:11px; }
 #profile-header .profile-header-awards { padding-inline:0; }
 #profile-header .profile-header-awards__badges img { width:38px; height:38px; }
}
#profile-header .names,#profile-header .profile-main-meta { min-width:0; color:#fff; }
#profile-header .names .name,#profile-header .names .profile-status { overflow-wrap:anywhere; }
#profile-header .profile-main-meta > span { color:inherit; font-size:inherit; }
#profile-header .profile-main-online { display:inline-flex; align-items:center; gap:6px; }
#profile-header .profile-main-online::before { content:""; width:8px; height:8px; border-radius:50%; background:#00e6b5; flex:none; }
#profile-header .profile-header-progress,#profile-header .profile-header-progress strong,#profile-header .profile-header-progress span { color:#fff; }
@media(max-width:600px) {
 #profile-header .shift .content { display:grid; grid-template-columns:90px minmax(0,1fr); align-items:start; gap:16px; }
 #profile-header .content > :is(.img_avatar,.wrap_img_avatar,.storis-avatar-actions) { position:relative; float:none; width:90px; height:90px; margin:0; }
 #profile-header .content .img_avatar { width:90px; height:90px; }
 #profile-header .content > .like_line,#profile-header .content > .socials { grid-column:1/-1; margin:0; padding-top:0; }
 #profile-header .like_line .count { overflow-wrap:anywhere; }
 #profile-header .big .writeMessage { left:18px; right:auto; max-width:calc(100% - 36px); }
}
#profile-header .big .writeMessage { top:auto; width:auto; margin:0; display:inline-flex; align-items:center; justify-content:center; }
@media(max-width:600px) {
 #profile-header .names .click-to-edit { display:block; width:100%; padding-right:0; padding-bottom:32px; }
 #profile-header .names .click-to-edit .name { padding-right:0; }
 #profile-header .names .click-to-edit-btn { top:auto; bottom:0; right:0; }
 #profile-header .names .inputs { max-width:100%; }
 #profile-header .names .inputs input { box-sizing:border-box; width:100%; min-width:0; }
}
@media(max-width:600px) {
 #profile-header .names .click-to-edit-btn { position:absolute; }
 #profile-header .names .inputs { flex-direction:column; gap:6px; }
}
#profile-header + .profile-navigation { box-sizing:border-box; margin-top:14px; padding:8px 12px; gap:4px; border:1px solid #eee5ed; border-radius:22px; background:#fff; box-shadow:0 4px 18px #4b2a3d06; }
#profile-header + .profile-navigation a { border-radius:0; border-bottom:3px solid transparent; background:transparent; color:#827391; padding:14px 16px; }
#profile-header + .profile-navigation a[aria-current=page] { background:transparent; color:#ef247b; border-bottom-color:#ef247b; }
#profile-header .profile-header-sticker span { color:inherit; }
@media(max-width:600px) {
 #profile-header :is(.wrap_img_avatar,.profile-framed-avatar)::after { inset:-15%; }
 #profile-header .profile-header-awards__badges { flex-wrap:nowrap; gap:6px; }
 #profile-header .profile-header-sticker { flex-direction:column; max-width:76px; }
 #profile-header .profile-header-sticker span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
}
#profile-header .big > img[data-empty-cover] { opacity:0; }
#profile-header .names > .profile-decoration-edit { position:absolute; top:16px; right:16px; z-index:6; margin:0; padding:8px 12px; border:1px solid #ffffff80; background:#31263840; color:white; font-size:12px; }
#profile-header .big .lay-big { left:16px; right:auto; }
#profile-header .profile-main-meta { flex-direction:row; }
#profile-header .bottom .mf { display:none; }
#ava:not(.has-profile-changes) #profile-header .bottom .submit { display:none; }
#ava #profile-header .bottom { padding-bottom:0; }
#profile-header .profile-header-progress progress { appearance:none; border:0; border-radius:8px; overflow:hidden; background:#ffffff55; height:8px; }
#profile-header .profile-header-progress progress::-webkit-progress-bar { background:#ffffff55; border-radius:8px; }
#profile-header .profile-header-progress progress::-webkit-progress-value { background:linear-gradient(90deg,#ff438c,#24d1c3); border-radius:8px; }
#profile-header .profile-header-progress progress::-moz-progress-bar { background:linear-gradient(90deg,#ff438c,#24d1c3); border-radius:8px; }
@media(max-width:600px) {
 #profile-header .names .click-to-edit { padding:0 28px 0 0; }
 #profile-header .names .click-to-edit-btn { top:3px; bottom:auto; }
 #profile-header .profile-main-meta { gap:6px 10px; }
 #profile-header .profile-header-progress { flex-wrap:nowrap; }
 #profile-header .profile-header-progress strong,#profile-header .profile-header-progress span { font-size:12px; white-space:nowrap; }
 #profile-header .bottom:has(.submit) { margin-top:10px; }
}
#profile-header .shift { position:static; }
#profile-header .shift .content { position:static; padding:0; margin:0; }
#profile-header label.big > .lay-big { display:inline-flex; align-items:center; }
#profile-header label.big > .lay-big > span { color:inherit; font-size:12px; }
@media(max-width:600px) {
 #profile-header .profile-header-awards__badges { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
 #profile-header .profile-header-awards__badges a { flex-direction:column; gap:4px; padding:2px; min-width:0; text-align:center; }
 #profile-header .profile-header-awards__badges a > span,#profile-header .profile-header-sticker span { position:static; width:auto; height:auto; overflow:visible; clip-path:none; color:white; font-size:9px; line-height:1.3; overflow-wrap:anywhere; }
 #profile-header .profile-header-sticker { flex:none; width:68px; }
 #profile-header .profile-header-sticker img { width:64px; height:64px; }
}
/* Profile-only layout; global header and bottom navigation are not modified. */
#profile-header .profile-contact-actions .writeMessage {position:absolute;right:24px;bottom:24px;z-index:4;min-height:44px;padding:12px 20px;width:auto;margin:0;display:flex;align-items:center;justify-content:center}
#profile-header .profile-owner-actions {display:none}
@media(max-width:600px){
 #profile-header.avatar {background:#fff;color:#382338;border:1px solid #eee2eb;border-radius:22px;margin-top:18px}
 #profile-header .big {height:116px;bottom:auto;border-radius:22px 22px 0 0;background:linear-gradient(120deg,#b9dcd4,#e8c9dc)}
 #profile-header .big>img {z-index:0;filter:none;border-radius:22px 22px 0 0}
 #profile-header .big>img.blur {filter:blur(7px)}
 #profile-header .shift {padding:94px 16px 18px;min-height:0}
 #profile-header .shift .content {grid-template-columns:88px minmax(0,1fr);gap:16px;align-items:start}
 #profile-header .content>:is(.wrap_img_avatar,.storis-avatar-actions) {width:88px;height:88px;z-index:2}
 #profile-header .content .img_avatar {width:88px;height:88px;border:3px solid white;border-radius:50%;box-sizing:border-box;overflow:hidden}
 #profile-header .content .img_avatar>img {width:100%;height:100%;object-fit:cover;border-radius:50%}
 #profile-header .names {padding-top:32px;color:#382338}
 #profile-header .names .name {font-size:22px;line-height:1.3;color:#382338;text-shadow:none}
 #profile-header .profile-main-meta {color:#736575;font-size:12px;margin-top:8px;gap:5px 10px}
 #profile-header .profile-main-online {color:#327649}
 #profile-header .names .profile-status {color:#736575;margin-top:10px}
 #profile-header .profile-main-vip {color:#986e12;border-color:#e7ce8a}
 #profile-header .storis-add-caption {display:none}
 #profile-header .storis-profile-add {width:32px;height:32px;font-size:24px;right:-2px;bottom:-2px}
 #profile-header .storis-edit-avatar {position:relative;display:block;width:100%;border:0;background:none;color:#9b3b69;font-size:10px;padding:4px 0}
 #profile-header .profile-owner-actions,#profile-header .profile-contact-actions {grid-column:1/-1;display:flex;gap:10px;min-width:0;margin-top:8px}
 #profile-header .profile-owner-actions>* {flex:1;display:flex;align-items:center;justify-content:center;text-align:center;border:1px solid #ead5e1;border-radius:12px;padding:12px 8px;font-size:13px;line-height:1.4;min-height:46px;background:#fff;color:#4d3248;box-sizing:border-box}
 #profile-header .profile-owner-actions .storis-create {background:#ef2878;border-color:#ef2878;color:white}
 #profile-header .profile-contact-actions .writeMessage {position:static;width:100%;min-height:48px;border-radius:12px;font-size:15px}
 #profile-header .like_line {display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}
 #profile-header .like_line>.btn {flex:1;border:1px solid #ed2978;background:white;color:#d51f68;border-radius:12px;min-height:44px;display:flex;align-items:center;justify-content:center}
 #profile-header .like_line>.btn.active {background:#ffedf4}
 #profile-header .like_line .count {font-size:12px;color:#796679}
 #profile-header .like_line_set {position:relative}
 #profile-header .profile-header-awards {margin-top:18px;padding:14px;border:1px solid #eee0e9;border-radius:14px;background:#fff9fc;display:block}
 #profile-header .profile-header-awards__badges,#profile-header .profile-header-sticker {display:none}
 #profile-header .profile-header-progress {color:#382338;display:flex;gap:8px;flex-wrap:wrap}
 #profile-header .profile-header-progress strong,#profile-header .profile-header-progress span {color:#382338;font-size:12px}
 #profile-header .profile-header-progress:after {content:'Достижения ›';font-size:12px;color:#a32e63;margin-left:auto}
 #profile-header .profile-header-progress progress {background:#eadce5;flex:1;min-width:40px}
 #profile-header .profile-header-progress progress::-webkit-progress-bar {background:#eadce5}
 #profile-header .profile-header-progress progress::-webkit-progress-value {background:#ef2878}
 #profile-header .profile-header-progress progress::-moz-progress-bar {background:#ef2878}
 #profile-header .bottom {margin-top:12px;color:#736575}
 #profile-header .bottom:empty {display:none}
 #profile-header .names>.profile-decoration-edit {top:12px;right:12px;font-size:11px;min-height:34px}
 #profile-header .big .lay-big {top:12px;left:12px;padding:8px;font-size:11px;min-height:34px}
 #profile-header .profile-more {z-index:7}
 #profile-header+.profile-navigation {border-radius:16px;padding:6px;gap:2px;scrollbar-width:thin;scrollbar-color:#e5c5d5 transparent}
 #profile-header+.profile-navigation a {font-size:13px;padding:12px;white-space:nowrap}
 .profile-account-controls {border:1px solid #eee2eb;border-radius:14px;padding:14px!important;background:white}
}
@media(max-width:600px){
 #profile-header .big .lay-big {flex-direction:row;gap:0;opacity:1}
 #profile-header .big .lay-big::after {display:none}
 #profile-header .big .lay-big span {opacity:1;text-decoration:none}
 #profile-header .content .with_vip::before {display:none}
 #profile-header .socials:empty {display:none}
 #profile-header .bottom {padding:0}
 #profile-header .bottom:not(:has(.hours,.submit)) {display:none}
}
#profile-header .profile-contact-actions .writeMessage {top:auto;height:auto}
#profile-header .storis-edit-avatar {display:block;width:100%;border:0;background:transparent;color:inherit;font-size:12px;padding:5px 0;cursor:pointer}
#profile-header .storis-avatar-actions:has(.storis-edit-avatar) .storis-add-caption {top:calc(100% + 28px)}

/* Identity layout: reserve space for cosmetic frames, never offset the avatar into the name. */
#profile-header .storis-avatar-actions > .profile-framed-avatar {margin-inline:0}
#profile-header .profile-title-age {font:inherit;color:inherit;white-space:nowrap}
#profile-header .profile-main-meta {display:flex;flex-direction:column;align-items:flex-start;gap:7px}
#profile-header .profile-main-meta p {margin:0;font:inherit;color:inherit;line-height:1.45}
#profile-header .profile-owner-actions {display:flex;gap:10px;margin-top:18px}
#profile-header .profile-owner-actions>* {display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:12px;border:1px solid #ead5e1;background:white;color:#4d3248;font-size:14px}
#profile-header .profile-owner-actions .storis-create {background:#ef2878;border-color:#ef2878;color:white}
@media(max-width:600px){
 #profile-header .shift {padding:98px 20px 20px}
 #profile-header .shift .content {grid-template-columns:112px minmax(0,1fr);column-gap:22px;row-gap:18px}
 #profile-header .content>:is(.wrap_img_avatar,.storis-avatar-actions) {margin:0;width:112px;height:112px}
 #profile-header .content .profile-framed-avatar {margin:0!important}
 #profile-header .names {padding-top:30px}
 #profile-header .names .name {font-size:22px;font-weight:700;color:#382338;line-height:1.3;text-shadow:none}
 #profile-header .names .click-to-edit {padding:0 26px 0 0;position:relative}
 #profile-header .names .click-to-edit-btn {top:2px;bottom:auto;right:0;width:22px;height:22px}
 #profile-header .profile-main-meta {font-size:13px;gap:6px;margin-top:4px}
 #profile-header .profile-main-meta .profile-presence {font-size:12px}
 #profile-header .names .profile-status {font-size:13px;line-height:1.5;margin-top:8px}
 #profile-header .profile-owner-actions {margin-top:2px}
 #profile-header .profile-owner-actions>* {font-size:13px;padding:12px 8px}
}

#profile-header .names .name > :is(#edit-full-name,.profile-title-age) {font:inherit;color:inherit;line-height:inherit;display:inline}
@media(max-width:600px){
 #profile-header .names .name {color:#382338!important;font-weight:700!important}
 #profile-header .names .name > :is(#edit-full-name,.profile-title-age) {color:#382338!important;font-weight:inherit!important}
}

@media(max-width:600px){
 #profile-header .content .img_avatar {width:112px;height:112px}
}
@media(max-width:360px){
 #profile-header .shift .content {grid-template-columns:104px minmax(0,1fr);column-gap:16px}
 #profile-header .content>:is(.wrap_img_avatar,.storis-avatar-actions),#profile-header .content .img_avatar {width:104px;height:104px}
 #profile-header .names .name {font-size:20px}
}
/* Desktop and tablet use the same cover/identity separation as mobile. */
@media(min-width:601px){
 #profile-header.avatar {background:#fff;color:#382338;border:1px solid #eee2eb}
 #profile-header .big {inset:0 0 auto;height:190px;border-radius:26px 26px 0 0;background:linear-gradient(120deg,#b9dcd4,#e8c9dc)}
 #profile-header .big>img {z-index:0;filter:none;border-radius:26px 26px 0 0}
 #profile-header .big>img.blur {filter:blur(7px)}
 #profile-header .shift {padding:160px 32px 28px;min-height:0}
 #profile-header .shift .content {display:grid;grid-template-columns:180px minmax(0,1fr) auto;gap:16px 32px;align-items:start}
 #profile-header .content>:is(.img_avatar,.wrap_img_avatar,.storis-avatar-actions) {position:relative;left:auto;top:auto;margin:0;width:160px;height:160px;grid-column:1;grid-row:1/4;z-index:2}
 #profile-header .content .img_avatar {width:160px;height:160px;border:4px solid white;border-radius:50%;box-sizing:border-box}
 #profile-header .content .img_avatar>img {width:100%;height:100%;object-fit:cover}
 #profile-header .content .profile-framed-avatar {margin:0!important}
 #profile-header :is(.wrap_img_avatar,.profile-framed-avatar)::after {inset:-12%}
 #profile-header .content .with_vip::before {display:none}
 #profile-header .names {grid-column:2;grid-row:1;padding-top:48px;color:#382338}
 #profile-header .names .name {color:#382338!important;font-weight:700!important;text-shadow:none;font-size:28px}
 #profile-header .names .name>:is(#edit-full-name,.profile-title-age) {color:inherit!important}
 #profile-header .names .click-to-edit {position:relative;display:block;width:fit-content;max-width:100%;padding-right:38px}
 #profile-header .names .click-to-edit-btn {position:absolute;right:0;top:5px}
 #profile-header .profile-main-meta {color:#736575;font-size:14px;margin-top:8px}
 #profile-header .profile-main-meta span {font:inherit;color:inherit}
 #profile-header .profile-main-online {color:#327649!important}
 #profile-header .profile-main-vip {color:#986e12;border-color:#e7ce8a}
 #profile-header .names .profile-status {color:#736575;margin-top:10px}
 #profile-header .profile-owner-actions,#profile-header .profile-contact-actions {grid-column:3;grid-row:1;display:flex;gap:10px;margin-top:52px;align-self:start}
 #profile-header .profile-contact-actions .writeMessage {position:static;width:auto;min-height:46px;border-radius:12px;margin:0}
 #profile-header .like_line {position:static;grid-column:3;grid-row:2;max-width:none;margin:0;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:16px}
 #profile-header .like_line .count {color:#796679;font-size:13px}
 #profile-header .like_line>.btn {border:1px solid #ef2878;background:#fff;color:#d51f68;border-radius:12px;min-height:42px;display:flex;align-items:center;justify-content:center}
 #profile-header .like_line>.btn.active {background:#ffedf4}
 #profile-header .socials {grid-column:2;grid-row:2;margin:0}
 #profile-header .socials:empty {display:none}
 #profile-header .profile-header-awards {margin:24px 0 0 212px;padding:16px 20px;border:1px solid #eee0e9;border-radius:16px;background:#fff9fc;display:block}
 #profile-header .profile-header-awards__badges,#profile-header .profile-header-sticker {display:none}
 #profile-header .profile-header-progress {display:flex;align-items:center;gap:14px;color:#382338}
 #profile-header .profile-header-progress strong,#profile-header .profile-header-progress span {color:#382338;font-size:13px}
 #profile-header .profile-header-progress:after {content:'Достижения ›';margin-left:auto;color:#a32e63;font-size:13px;white-space:nowrap}
 #profile-header .profile-header-progress progress {background:#eadce5;flex:1;max-width:260px}
 #profile-header .profile-header-progress progress::-webkit-progress-bar {background:#eadce5}
 #profile-header .profile-header-progress progress::-webkit-progress-value {background:#ef2878}
 #profile-header .profile-header-progress progress::-moz-progress-bar {background:#ef2878}
 #profile-header .bottom {padding:0;margin:12px 0 0 212px;color:#736575}
 #profile-header .bottom:not(:has(.submit)) {display:none}
 #profile-header .big .lay-big {flex-direction:row;gap:0;opacity:1}
 #profile-header .big .lay-big::after {display:none}
 #profile-header .big .lay-big span {opacity:1;text-decoration:none}
}
@media(min-width:601px) and (max-width:1000px){
 #profile-header .shift .content {grid-template-columns:160px minmax(0,1fr);gap:18px 28px}
 #profile-header .profile-owner-actions,#profile-header .profile-contact-actions {grid-column:2;grid-row:2;margin-top:0;flex-wrap:wrap}
 #profile-header .like_line {grid-column:2;grid-row:3;justify-content:flex-start;flex-wrap:wrap}
 #profile-header .socials {grid-column:2;grid-row:4}
 #profile-header .profile-header-awards,#profile-header .bottom {margin-left:0}
}
/* Desktop profile: full cover, larger portrait and visible earned awards. */
@media(min-width:601px){
 #profile-header.avatar {background:#263d38;color:#fff}
 #profile-header .big {height:100%;border-radius:26px;background:#263d38}
 #profile-header .big>img {border-radius:26px;filter:brightness(.48)}
 #profile-header .big>img.blur {filter:blur(7px) brightness(.48)}
 #profile-header .shift {position:relative;padding:78px 36px 32px}
 #profile-header .shift .content {grid-template-columns:220px minmax(0,1fr) auto;gap:20px 38px}
 #profile-header .content>:is(.img_avatar,.wrap_img_avatar,.storis-avatar-actions),#profile-header .content .img_avatar {width:200px;height:200px}
 #profile-header .names {padding-top:8px;color:white}
 #profile-header .names .name {color:white!important}
 #profile-header .profile-main-meta,#profile-header .names .profile-status,#profile-header .like_line .count {color:#fff}
 #profile-header .profile-main-online {color:#b9f5d1!important}
 #profile-header .profile-owner-actions,#profile-header .profile-contact-actions {margin-top:12px}
 #profile-header .profile-header-awards {margin-left:258px;background:#fff;border-color:#fff;color:#382338;display:flex;align-items:center;gap:20px}
 #profile-header .profile-header-awards__main {flex:1;min-width:0}
 #profile-header .profile-header-awards__badges {display:flex;flex-wrap:wrap;gap:12px;margin-bottom:14px}
 #profile-header .profile-header-awards__badges a {display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid #eee0e9;border-radius:12px;background:#fff9fc}
 #profile-header .profile-header-awards__badges a>span {position:static;width:auto;height:auto;overflow:visible;clip-path:none;color:#65465b;font-size:12px}
 #profile-header .profile-header-sticker {display:flex;flex-direction:column;gap:6px;max-width:90px;text-align:center;color:#65465b}
 #profile-header .profile-header-sticker span {font-size:11px}
 #profile-header .bottom {margin-left:258px;color:white}
}
@media(min-width:601px) and (max-width:1100px){
 #profile-header .shift .content {grid-template-columns:200px minmax(0,1fr);gap:20px 28px}
 #profile-header .profile-owner-actions,#profile-header .profile-contact-actions {grid-column:2;grid-row:2;margin-top:0;flex-wrap:wrap}
 #profile-header .like_line {grid-column:2;grid-row:3;justify-content:flex-start;flex-wrap:wrap}
 #profile-header .socials {grid-column:2;grid-row:4}
 #profile-header .profile-header-awards,#profile-header .bottom {margin-left:0}
}
@media(max-width:600px){
 #profile-header .profile-header-awards__badges {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
 #profile-header .profile-header-awards__badges a {display:flex;flex-direction:row;align-items:center;gap:6px;padding:6px;border:1px solid #eee0e9;border-radius:10px;background:#fff}
 #profile-header .profile-header-awards__badges a>span {position:static;width:auto;height:auto;overflow:visible;clip-path:none;color:#65465b;font-size:11px}
 #profile-header .profile-header-awards__badges img {width:32px;height:32px}
 #profile-header .profile-header-sticker {display:flex;flex-direction:row;width:auto;max-width:none;gap:8px;margin-top:12px;color:#65465b}
 #profile-header .profile-header-sticker img {width:40px;height:40px}
 #profile-header .profile-header-sticker span {color:#65465b;font-size:11px}
}

/* Keep the sympathy action and its counter aligned on small screens. */
#profile-header .profile-like-icon {width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#profile-header .like_line>.btn {gap:8px}
#profile-header .like_line>.btn:has(.profile-like-icon)::before {display:none;content:none}
#profile-header .like_line>.btn .profile-like-icon,#profile-header .like_line>.btn .profile-like-icon path {color:inherit;stroke:currentColor;fill:none}
#profile-header .like_line>.btn.active .profile-like-icon,#profile-header .like_line>.btn.active .profile-like-icon path {fill:currentColor}
@media(max-width:600px){
 #profile-header .like_line {width:100%;align-items:center;flex-wrap:nowrap;gap:12px}
 #profile-header .like_line>.btn {box-sizing:border-box;flex:1 1 auto;width:auto;min-width:0;height:44px;margin:0;padding:0 14px;line-height:1;font-size:14px;white-space:nowrap}
 #profile-header .like_line_set {flex:0 0 auto;display:flex;align-items:center;min-height:44px}
 #profile-header .like_line .count {margin:0;line-height:1.4;white-space:nowrap}
}

/* Compact desktop identity and a full-width awards strip. */
@media(min-width:1101px){
 #profile-header .shift {padding:64px 28px 24px}
 #profile-header .shift .content {grid-template-columns:200px minmax(0,1fr) auto;grid-template-rows:auto auto 1fr;column-gap:32px;row-gap:14px;min-height:200px}
 #profile-header .names {grid-row:1/4;padding-top:18px}
 #profile-header .profile-main-meta {flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 14px}
 #profile-header .profile-owner-actions,#profile-header .profile-contact-actions {margin-top:18px;grid-row:1}
 #profile-header .like_line {grid-row:2;align-self:start;min-height:24px}
 #profile-header .like_line .count {margin:0}
 #profile-header .socials {grid-column:3;grid-row:3;justify-self:end;align-self:start}
 #profile-header .profile-header-awards {margin:20px 0 0;padding:12px 16px;gap:16px;background:rgba(255,255,255,.97)}
 #profile-header .profile-header-awards__main {display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px}
 #profile-header .profile-header-awards__badges {margin:0;gap:8px;flex:0 1 auto}
 #profile-header .profile-header-awards__badges a {padding:6px 8px;gap:6px}
 #profile-header .profile-header-awards__badges img {width:40px;height:40px}
 #profile-header .profile-header-progress {flex:1 1 340px;gap:12px;min-width:0}
 #profile-header .profile-header-progress progress {min-width:60px;max-width:200px}
 #profile-header .profile-header-progress strong,#profile-header .profile-header-progress span {white-space:nowrap}
 #profile-header .profile-header-sticker {flex:0 0 64px;max-width:64px;gap:2px}
 #profile-header .profile-header-sticker img {width:56px;height:56px}
 #profile-header .profile-header-sticker span {font-size:10px}
 #profile-header .bottom {margin-left:0}
}

/* Own profile: keep the privacy explanation inside a bounded column. */
#profile-header.profile-header--owner .names .click-to-edit { box-sizing:border-box; }
#profile-header.profile-header--owner .names .click-to-edit:not(.active) .name { display:block; }
#profile-header.profile-header--owner .like_line { display:block; min-width:0; width:100%; max-width:none; }
#profile-header.profile-header--owner .like_line_set { display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-width:0; width:100%; }
#profile-header.profile-header--owner .incoming-sympathy-privacy { margin:0; font-size:13px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
#profile-header.profile-header--owner .user_likes_popup,
#profile-header.profile-header--owner .users_likes_popup { position:static; transform:none; box-sizing:border-box; max-width:100%; margin:0; color:#382338; }
#profile-header.profile-header--owner .user_likes_popup { flex-wrap:wrap; }
#profile-header.profile-header--owner .users_likes_popup { width:100%; height:auto; max-height:180px; }
#profile-header.profile-header--owner .user_like { min-width:0; }
#profile-header.profile-header--owner .user_like img { flex:none; }
#profile-header.profile-header--owner .user_like p { overflow-wrap:anywhere; min-width:0; }
@media(min-width:601px) {
 #profile-header.profile-header--owner .incoming-sympathy-privacy,
 #profile-header.profile-header--owner .storis-edit-avatar { color:#fff; }
}
@media(min-width:1101px) {
 #profile-header.profile-header--owner .shift .content { grid-template-columns:200px minmax(0,1fr) minmax(0,320px); }
}
@media(max-width:600px) {
 #profile-header.profile-header--owner .incoming-sympathy-privacy { color:#736575; }
}
@media(max-width:360px) {
 #profile-header.profile-header--owner .shift .content { grid-template-columns:minmax(0,1fr); }
 #profile-header.profile-header--owner .storis-avatar-actions:has(.storis-edit-avatar) { margin-bottom:20px; }
 #profile-header.profile-header--owner .names { padding-top:0; }
}
