/* IG217.116: taller cover through the existing viewport-height variable. */
body.page-profile .profile {--kruh-profile-cover-h:clamp(340px,18vw,440px)}
@media(max-width:1100px) {body.page-profile .profile {--kruh-profile-cover-h:300px}}
@media(max-width:720px) {body.page-profile .profile {--kruh-profile-cover-h:260px}}
@media(max-width:480px) {body.page-profile .profile {--kruh-profile-cover-h:230px}}
/* IG217.112: profile content fills the space of the removed right sidebar. */
body.page-profile .profile > .container-wide {max-width:1440px!important;width:100%!important;box-sizing:border-box!important}
body.page-profile .profile .profile__grid {grid-template-columns:minmax(0,1fr)!important;gap:0!important}
body.page-profile .profile .profile__main {grid-column:1!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important;width:100%!important;max-width:none!important;padding:0!important}
body.page-profile .profile .profile-ig-media-panel--gallery-db {width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important}
body.page-profile .profile .profile-gallery-db-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px!important}
body.page-profile .profile .profile-gallery-db-card {min-width:0!important;width:100%!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body.page-profile .profile .profile-gallery-db-card__media.profile-ig-media-tile {display:block!important;position:relative!important;width:100%!important;aspect-ratio:3/4!important;height:auto!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;overflow:hidden!important}
body.page-profile .profile .profile-gallery-db-card__media.profile-ig-media-tile img {display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important}
/* IG217.115: About is a separate profile navigation section. */
body.page-profile .profile .profile__feedTabs--igHybrid {grid-template-columns:repeat(5,minmax(0,1fr))!important;background:var(--card)!important}
body.page-profile .profile #profil-nastenka,body.page-profile .profile .profile__feedTabs--igHybrid {scroll-margin-top:var(--fonzi-network-bar-height,30px)}
body.page-profile .profile .profile__feedTabs--igHybrid .profile__feedTab--ig {color:var(--muted)!important;text-decoration:none!important}
body.page-profile .profile .profile__feedTabs--igHybrid .profile__feedTab--ig.is-active {color:var(--primary)!important;background:color-mix(in srgb,var(--primary) 8%,var(--card))!important}
body.page-profile .profile .profile__feedTabs--igHybrid .profile__feedTab--ig::after {background:var(--primary)!important}
@media(hover:hover) {body.page-profile .profile .profile__feedTabs--igHybrid .profile__feedTab--ig:hover {color:var(--primary)!important;background:color-mix(in srgb,var(--primary) 8%,var(--card))!important}}
body.page-profile .profile .profile__aboutPanel {min-width:0;max-width:100%;padding:24px;box-sizing:border-box;color:var(--text)}
body.page-profile .profile .profile__aboutPanelTitle {display:flex;align-items:center;gap:10px;margin:0 0 20px;font-size:19px;font-weight:800;line-height:1.3}
body.page-profile .profile .profile__aboutPanelTitle i {color:var(--primary)}
body.page-profile .profile .profile__aboutPanelBody {max-width:900px;min-width:0;box-sizing:border-box}
/* IG217.137: grouped profile introduction. */
body.page-profile .profile .profile__aboutPanel--organized .profile__aboutPanelBody{max-width:none}
body.page-profile .profile .profile-about-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
body.page-profile .profile .profile-about-section{min-width:0;padding:22px;border:1px solid var(--border);border-radius:16px;background:color-mix(in srgb,var(--card) 96%,var(--primary) 4%)}
body.page-profile .profile .profile-about-section--wide{grid-column:1/-1}
body.page-profile .profile .profile-about-section h3{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:14px;font-weight:750;line-height:1.5;margin:0 0 18px;color:var(--text)}
body.page-profile .profile .profile-about-section h3 i{color:var(--primary);font-size:14px}
body.page-profile .profile .profile-about-section h3 small{margin-left:auto;color:var(--muted);font-size:11px;font-weight:500}
body.page-profile .profile .profile-about-section .profile-about{margin:0;gap:16px}
body.page-profile .profile .profile-about-section--work .profile-about{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px}
body.page-profile .profile .profile-about-section .profile-about__row{grid-template-columns:130px minmax(0,1fr);gap:14px}
body.page-profile .profile .profile-about-section .profile-about__k{width:auto;margin:0;font-weight:600;line-height:1.5}
body.page-profile .profile .profile-about-section .profile-about__v{margin:0}
body.page-profile .profile .profile-about-text{font-size:14px;line-height:1.8;margin:0;overflow-wrap:anywhere;color:var(--text)}
body.page-profile .profile .profile-about-empty{margin:0;font-size:14px}
@media(max-width:900px){body.page-profile .profile .profile-about-sections{grid-template-columns:minmax(0,1fr);gap:16px}body.page-profile .profile .profile-about-section--work .profile-about{grid-template-columns:minmax(0,1fr);gap:16px}}
@media(max-width:600px){body.page-profile .profile .profile-about-section{padding:18px 16px}body.page-profile .profile .profile-about-section .profile-about__row{grid-template-columns:105px minmax(0,1fr);gap:12px}}
@media(max-width:360px){body.page-profile .profile .profile-about-section .profile-about__row{grid-template-columns:minmax(0,1fr);gap:5px}}
body.page-profile .profile .profile__aboutPanel .profile-about {display:grid;gap:18px;min-width:0}
body.page-profile .profile .profile__aboutPanel .profile-about__row {display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;padding:0;min-width:0}
body.page-profile .profile .profile__aboutPanel .profile-about__k {color:var(--muted);font-weight:700;font-size:13px}
body.page-profile .profile .profile__aboutPanel .profile-about__v {color:var(--text);font-size:14px;line-height:1.5;overflow-wrap:anywhere;min-width:0}
body.page-profile .profile .profile__aboutPanel a {color:var(--primary);text-decoration:none!important}
body.page-profile .profile .profile__aboutPanel a:focus-visible {outline:2px solid var(--primary);outline-offset:3px;border-radius:3px}
@media(hover:hover) {body.page-profile .profile .profile__aboutPanel a:hover {color:var(--primary-hover)}}
@media(min-width:1000px) {body.page-profile .profile .profile-gallery-db-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(min-width:901px) {body.page-profile .profile .profile__head {align-items:flex-start!important}}
@media(min-width:1400px) {body.page-profile .profile .profile-gallery-db-grid {grid-template-columns:repeat(6,minmax(0,1fr))!important}}
@media(max-width:600px) {
  body.page-profile .profile > .container-wide {padding-left:12px!important;padding-right:12px!important}
  body.page-profile .profile .profile-gallery-db-grid {gap:2px!important}
  body.page-profile .profile .profile__feedTabs--igHybrid {grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:hidden!important}
  body.page-profile .profile .profile__feedTab--ig {min-width:0!important;font-size:12px!important;gap:4px!important;text-decoration:none!important}
  body.page-profile .profile .profile__aboutPanel {padding:18px}
  body.page-profile .profile .profile__aboutPanel .profile-about__row {grid-template-columns:100px minmax(0,1fr);gap:10px}
}

/* IG217.175: profile information with a category sidebar and simple rows. */
body.page-profile .profile .profile__aboutPanel--navigation{display:grid!important;grid-template-columns:250px minmax(0,1fr)!important;padding:0!important;overflow:hidden;border:1px solid var(--border)!important;border-radius:16px!important;background:var(--card)!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important;min-height:520px;}
body.page-profile .profile .profile-info__nav{padding:18px 8px;border-right:1px solid var(--border);min-width:0;}
body.page-profile .profile .profile-info__nav h2{font-size:20px;line-height:1.4;margin:0 10px 12px;font-weight:700;}
body.page-profile .profile .profile-info__nav a{display:block;padding:11px 12px;margin:2px 0;border-radius:7px;font-size:14px;font-weight:500;line-height:1.5;color:var(--muted)!important;text-decoration:none!important;overflow-wrap:anywhere;}
body.page-profile .profile .profile-info__nav a:hover,body.page-profile .profile .profile-info__nav a.is-active{color:var(--primary)!important;background:color-mix(in srgb,var(--primary) 12%,var(--card))!important;}
body.page-profile .profile .profile-info__content{padding:22px 24px;min-width:0;}
body.page-profile .profile .profile-info__panel[hidden],body.page-profile .profile [data-overview-information][hidden]{display:none!important;}
body.page-profile .profile .profile-info__group{margin:0 0 26px;min-width:0;}
body.page-profile .profile .profile-info__group:last-child{margin-bottom:0;}
body.page-profile .profile .profile-info__heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;}
body.page-profile .profile .profile-info__heading h3,body.page-profile .profile .profile-info__summaryTitle{margin:0;font-size:17px;font-weight:700;line-height:1.4;color:var(--text);}
body.page-profile .profile .profile-info__summaryTitle{margin:28px 0 22px;}
body.page-profile .profile .profile-info__edit{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:7px;color:var(--muted)!important;text-decoration:none!important;}
body.page-profile .profile .profile-info__edit:hover{background:color-mix(in srgb,var(--primary) 8%,var(--card));}
body.page-profile .profile .profile-info__edit:focus-visible,body.page-profile .profile .profile__avatarwrap--editable:focus-visible{outline:2px solid var(--primary);outline-offset:3px;}
body.page-profile .profile .profile-info__rows{display:grid;gap:20px;margin:0;padding:0;list-style:none;}
body.page-profile .profile .profile-info__rows li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:12px;align-items:start;font-size:14px;line-height:1.5;min-width:0;color:var(--text);}
body.page-profile .profile .profile-info__rows li>i{font-size:18px;line-height:22px;color:var(--muted);text-align:center;}
body.page-profile .profile .profile-info__rows li>div{min-width:0;overflow-wrap:anywhere;}
body.page-profile .profile .profile-info__rows small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:2px;}
body.page-profile .profile .profile-info__rows .profile-info__private{font-size:12px;}
body.page-profile .profile .profile-info__empty,body.page-profile .profile .profile-info__bio{margin:0;font-size:14px;line-height:1.65;overflow-wrap:anywhere;}
body.page-profile .profile .profile-info__empty{color:var(--muted);}
body.page-profile .profile .profile-overview__information .profile-info__group{margin-bottom:26px;}
body.page-profile .profile .profile-overview__information .profile-info__heading h3{font-size:18px;}
body.page-profile .profile .profile-overview__information .profile-info__rows{gap:16px;}
body.page-profile .profile .profile__avatarwrap--editable{cursor:pointer;position:relative;}
body.page-profile .profile .profile-avatar-camera{position:absolute;bottom:8px;right:8px;display:grid;place-items:center;width:34px;height:34px;border:3px solid var(--card);border-radius:50%;background:var(--card);color:var(--text);box-shadow:0 2px 6px rgba(15,23,42,.12);font-size:15px;}
@media(max-width:700px){
 body.page-profile .profile .profile__aboutPanel--navigation{grid-template-columns:minmax(0,1fr)!important;min-height:0;}
 body.page-profile .profile .profile-info__nav{border-right:0;border-bottom:1px solid var(--border);display:flex;flex-wrap:wrap;gap:4px;padding:14px;}
 body.page-profile .profile .profile-info__nav h2{width:100%;margin:0 0 8px;font-size:18px;}
 body.page-profile .profile .profile-info__nav a{padding:8px 10px;font-size:13px;margin:0;}
 body.page-profile .profile .profile-info__content{padding:20px 16px;}
 body.page-profile .profile .profile-avatar-camera{width:28px;height:28px;bottom:4px;right:4px;font-size:12px;}
}

/* IG217.173: a quiet profile overview beside the post stream. */
body.page-profile .profile > .container-wide{max-width:1240px!important;}
body.page-profile .profile .profile__feedShell{margin:20px 0 18px!important;border-radius:16px!important;overflow:hidden!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important;}
body.page-profile .profile .profile__feedHead--igHybrid{padding:0!important;}
body.page-profile .profile .profile__feedTab--ig{min-height:54px!important;font-weight:600!important;}
body.page-profile .profile .profile__grid--overview{grid-template-columns:minmax(280px,.38fr) minmax(0,.62fr)!important;gap:20px!important;margin-top:0!important;align-items:start!important;}
body.page-profile .profile .profile__grid--overview > .profile__main{grid-column:2!important;display:flex!important;flex-direction:column!important;gap:16px!important;}
body.page-profile .profile .profile-overview{grid-column:1;display:grid;gap:16px;min-width:0;align-content:start;}
body.page-profile .profile .profile-overview__card{padding:18px!important;margin:0!important;border:1px solid var(--border)!important;border-radius:16px!important;background:var(--card)!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important;min-width:0;overflow:hidden;}
body.page-profile .profile .profile-overview__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
body.page-profile .profile .profile-overview__head h2{margin:0;font-size:18px;font-weight:700;line-height:1.35;color:var(--text);}
body.page-profile .profile .profile-overview a{color:var(--primary);text-decoration:none!important;}
body.page-profile .profile .profile-overview__head > a{font-size:13px;line-height:1.4;text-align:right;}
body.page-profile .profile .profile-overview__edit{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:8px;color:var(--muted)!important;}
body.page-profile .profile .profile-overview a:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:4px;}
body.page-profile .profile .profile-overview__edit:hover{background:color-mix(in srgb,var(--primary) 8%,var(--card));}
body.page-profile .profile .profile-overview__bio{margin:0 0 14px;color:var(--text);font-size:14px;line-height:1.6;overflow-wrap:anywhere;}
body.page-profile .profile .profile-overview__facts{list-style:none;margin:0;padding:0;display:grid;gap:14px;}
body.page-profile .profile .profile-overview__facts li{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:12px;font-size:14px;line-height:1.5;color:var(--text);overflow-wrap:anywhere;}
body.page-profile .profile .profile-overview__facts i{color:var(--muted);padding-top:3px;text-align:center;}
body.page-profile .profile .profile-overview__facts small{display:block;margin-top:3px;font-size:11px;color:var(--muted);}
body.page-profile .profile .profile-overview__more{display:inline-block;margin-top:16px;font-size:13px;}
body.page-profile .profile .profile-overview__empty{margin:0;font-size:13px;line-height:1.6;color:var(--muted);}
body.page-profile .profile .profile-overview__photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
body.page-profile .profile .profile-overview__photos a{display:block;aspect-ratio:1;border-radius:10px;overflow:hidden;}
body.page-profile .profile .profile-overview__photos img{display:block;width:100%;height:100%;object-fit:cover;}
body.page-profile .profile .profile-overview__statuses .profile-ig-status-tray{gap:14px;padding:2px 0 12px;}
body.page-profile .profile .profile-overview__statuses .profile-ig-status-bubble{width:86px;flex:0 0 86px;color:var(--text)!important;border:0!important;background:transparent!important;box-shadow:none!important;}
body.page-profile .profile .profile-overview__statuses .profile-ig-status-bubble__ring{display:grid!important;place-items:center;box-sizing:border-box;width:62px;height:62px;margin:auto;background:var(--card);box-shadow:none!important;border:2px solid color-mix(in srgb,var(--primary) 50%,var(--border))!important;border-radius:50%!important;}
body.page-profile .profile .profile-overview__statuses .profile-ig-status-bubble__ring--create{background:color-mix(in srgb,var(--primary) 5%,var(--card));}
body.page-profile .profile .profile-overview__statuses .profile-ig-status-bubble__label{margin-top:8px;font-size:12px;font-weight:500;border:0!important;background:transparent!important;box-shadow:none!important;}
body.page-profile .profile .profile__grid--overview :is(.profile-composer-surface,.profile-feed-surface){margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;min-width:0;}
body.page-profile .profile .profile__grid--overview .profile-composer-surface:empty{display:none!important;}
body.page-profile .profile .profile__grid--overview .profile-feed-composer{margin:0!important;padding:14px 16px!important;border-radius:16px!important;border:1px solid var(--border)!important;background:var(--card)!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important;}
body.page-profile .profile .profile__grid--overview .profile-ig-posts-head{margin:0!important;padding:16px!important;border-radius:16px!important;background:var(--card)!important;border:1px solid var(--border)!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important;flex-wrap:wrap;}
body.page-profile .profile .profile__grid--overview .profile-ig-posts-head__title{font-size:18px;font-weight:700;color:var(--text);}
body.page-profile .profile .profile__grid--overview .profile-ig-post-filters{gap:4px;}
body.page-profile .profile .profile__grid--overview .profile-ig-post-filter{padding:0 12px;min-height:34px;border:0;box-shadow:none!important;border-radius:8px;font-size:13px;font-weight:500;color:var(--muted);background:transparent;}
body.page-profile .profile .profile__grid--overview .profile-ig-post-filter.is-active{background:color-mix(in srgb,var(--primary) 10%,var(--card));color:var(--primary);font-weight:600;}
body.page-profile .profile .profile__grid--overview .profile-feed-stream{display:grid!important;gap:16px!important;}
body.page-profile .profile .profile__grid--overview .post{margin:0!important;border-radius:16px!important;background:var(--card)!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important;}
body.page-profile .profile .profile__grid--overview .profile-gallery-db-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
@media(max-width:980px){
 body.page-profile .profile .profile__grid--overview{grid-template-columns:minmax(0,1fr)!important;gap:18px!important;}
 body.page-profile .profile .profile__grid--overview > .profile__main,body.page-profile .profile .profile-overview{grid-column:1!important;}
 body.page-profile .profile .profile-overview{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;}
}
@media(max-width:600px){
 body.page-profile .profile .profile__feedShell{margin-top:14px!important;}
 body.page-profile .profile .profile-overview{grid-template-columns:minmax(0,1fr);gap:12px;}
 body.page-profile .profile .profile-overview__card{padding:16px!important;}
 body.page-profile .profile .profile__grid--overview .profile-ig-posts-head{flex-direction:row!important;align-items:center!important;gap:12px;}
 body.page-profile .profile .profile__grid--overview .profile-ig-post-filters{width:100%;justify-content:flex-start;}
 body.page-profile .profile .profile__grid--overview .profile-ig-post-filter{flex:1 1 auto;padding:0 8px;}
}

/* IG217.176 concise introduction */
.profile-info__summaryLink{font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}.profile-info__summary{margin-bottom:12px}

/* IG217.224: profile accents match Kruh blue, including link and active states. */
body.page-profile .profile{--primary:#2563eb;--primary-hover:#1d4ed8;}
html[data-theme="dark"] body.page-profile .profile,
body.page-profile.dark .profile{--primary:#85adff;--primary-hover:#a8c5ff;}
body.page-profile .profile :is(.profile-overview__more,.profile-overview__head > a):hover{color:var(--primary-hover);text-decoration:underline!important;text-underline-offset:3px;}
body.page-profile .profile :is(.profile-overview__more,.profile-overview__head > a,.profile__feedTab--ig,.profile-ig-post-filter):focus-visible{outline:2px solid var(--primary);outline-offset:3px;}
body.page-profile .profile .profile__grid--overview .profile-ig-post-filter:not(.is-active):hover{color:var(--primary);background:color-mix(in srgb,var(--primary) 6%,var(--card));}

/* Keep profile accents above legacy dark-mode text resets. */
html body.page-profile .profile.profile.profile .profile__feedTabs--igHybrid a.profile__feedTab--ig.is-active,
html body.page-profile .profile.profile.profile .profile__feedTabs--igHybrid a.profile__feedTab--ig:hover,
html body.page-profile .profile.profile.profile .profile__grid--overview button.profile-ig-post-filter.is-active,
html body.page-profile .profile.profile.profile .profile-overview a.profile-overview__more,
html body.page-profile .profile.profile.profile .profile-overview .profile-overview__head > a{color:var(--primary)!important;-webkit-text-fill-color:currentColor!important;}
html body.page-profile .profile.profile.profile .profile__feedTabs--igHybrid a.profile__feedTab--ig :is(i,span){color:inherit!important;-webkit-text-fill-color:currentColor!important;}
html body.page-profile .profile.profile.profile .profile-overview a.profile-overview__more:hover,
html body.page-profile .profile.profile.profile .profile-overview .profile-overview__head > a:hover{color:var(--primary-hover)!important;}

/* IG217.239: owner-only avatar controls embedded in the existing profile header. */
html body .profile .profile-avatar-editor{position:relative!important;overflow:visible!important;}
html body .profile .profile-avatar-editor::after{display:none!important;}
html body .profile .profile-avatar-editor__upload{display:block!important;width:100%;height:100%;margin:0!important;padding:0!important;}
html body .profile .profile-avatar-editor__trigger{position:relative;display:block!important;box-sizing:border-box;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;line-height:0!important;cursor:pointer;transform:none!important;overflow:visible!important;}
html body .profile .profile-avatar-editor__trigger:hover{box-shadow:0 0 0 4px #2463eb20!important;}
html body .profile .profile-avatar-editor__trigger:focus-visible{outline:2px solid #2463eb!important;outline-offset:5px;}
html body .profile .profile-avatar-editor .profile-avatar-camera{display:grid!important;place-items:center;position:absolute;right:0;bottom:0;width:36px;height:36px;border:4px solid var(--card,#fff)!important;border-radius:50%;background:#2463eb!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 3px 10px #17203320;font-size:15px;line-height:1;z-index:6;}
html body .profile .profile-avatar-editor .profile-avatar-camera i{color:#fff!important;-webkit-text-fill-color:#fff!important;}
html body .profile .profile-avatar-editor__status{position:absolute;top:calc(100% + 7px);left:0;right:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;max-width:100%;font-size:11px;line-height:1.4;color:var(--muted,#64748b);text-align:center;overflow-wrap:anywhere;}
html body .profile .profile-avatar-editor__status[data-state=idle]{display:none;}
html body .profile .profile-avatar-editor__status[data-state=saved]{color:#16825c;}
html body .profile .profile-avatar-editor__status[data-state=error]{color:#c7384b;}
html body .profile .profile-avatar-editor [data-save-retry]{padding:2px 4px!important;border:0!important;border-radius:4px;background:transparent!important;color:#2463eb!important;font:inherit;text-decoration:underline;box-shadow:none!important;cursor:pointer;}
html body .profile .profile-avatar-editor [hidden]{display:none!important;}
html body .profile .profile-avatar-editor[data-busy="1"] .profile-avatar-editor__trigger{cursor:progress;}
html body .profile .profile-avatar-editor[data-busy="1"] img{opacity:.65;}
html body .profile .profile-avatar-editor[data-busy="1"] .avatar-editor__spinner{display:block;position:absolute;inset:-4px;border:3px solid transparent;border-top-color:#2463eb;border-radius:50%;animation:avatar-editor-spin .85s linear infinite;}
@media(max-width:720px){html body .profile .profile-avatar-editor .profile-avatar-camera{width:30px;height:30px;font-size:12px;border-width:3px!important;}html body .profile .profile-avatar-editor__status{font-size:10px;top:calc(100% + 5px);}}
@media(prefers-reduced-motion:reduce){html body .profile .profile-avatar-editor .avatar-editor__spinner{animation:none!important;}}

/* Failed uploads remain readable beside the avatar without blending into profile text. */
html body .profile .profile-avatar-editor__status[data-state=error]{z-index:20;left:0;right:auto;box-sizing:border-box;width:240px;max-width:min(240px,calc(100vw - 80px));padding:10px 12px;border:1px solid #e6b6c0;border-radius:10px;background:var(--card,#fff);box-shadow:0 6px 20px #17203320;font-size:12px;line-height:1.5;text-align:left;justify-content:flex-start;}
html[data-theme=dark] body .profile .profile-avatar-editor__status[data-state=error]{color:#ffb3bf;border-color:#70434f;}

/* IG217.241: keep success readable, then quietly dismiss it without moving layout. */
html body .profile .profile-avatar-editor__status[data-state=saved]{animation:kruh-profile-avatar-saved-fade 1.2s ease 2s forwards;}
@keyframes kruh-profile-avatar-saved-fade{from{opacity:1;visibility:visible;}to{opacity:0;visibility:hidden;}}
@media(prefers-reduced-motion:reduce){html body .profile .profile-avatar-editor__status[data-state=saved]{animation:kruh-profile-avatar-saved-fade 0s step-end 3.2s forwards!important;}}

/* IG217.278: privacy indicator and edit action share the final grid column. */
body.page-profile .profile .profile-info__meta{display:inline-flex;align-items:center;justify-self:end;gap:12px;}
body.page-profile .profile .profile-info__meta .profile-info__private{display:inline-flex;align-items:center;justify-content:center;width:18px;height:22px;color:var(--muted,#63738c);}
body.page-profile .profile .profile-info__private svg{display:block;width:14px;height:14px;}
