/* Dashboard Profile Photo Sync V1.1
   Clean sidebar profile card: one avatar only. Real uploaded photo replaces the fallback icon; fallback icon is only used when no photo exists. */
html body .stage37-member-sidebar .dash-photo-sync-card,
html body .app-sidebar .dash-photo-sync-card{
  display:grid!important;
  grid-template-columns:1fr!important;
  justify-items:start!important;
  align-items:start!important;
  gap:10px!important;
  padding:18px!important;
  border-radius:22px!important;
  overflow:visible!important;
}

/* Remove legacy/default avatar elements that older sidebar styles may still inject. */
html body .dash-photo-sync-card > img:not(.dash-photo-sync-avatar),
html body .dash-photo-sync-card .avatar:not(.dash-photo-sync-avatar),
html body .dash-photo-sync-card .user-avatar:not(.dash-photo-sync-avatar),
html body .dash-photo-sync-card .sidebar-avatar:not(.dash-photo-sync-avatar),
html body .dash-photo-sync-card .default-avatar:not(.dash-photo-sync-avatar),
html body .dash-photo-sync-card .profile-avatar:not(.dash-photo-sync-avatar),
html body .dash-photo-sync-card .side-avatar:not(.dash-photo-sync-avatar){
  display:none!important;
  width:0!important;
  height:0!important;
  opacity:0!important;
  visibility:hidden!important;
}
html body .dash-photo-sync-card::before,
html body .dash-photo-sync-card::after,
html body .dash-photo-sync-avatar-link::before,
html body .dash-photo-sync-avatar-link::after{
  content:none!important;
  display:none!important;
}

html body .dash-photo-sync-avatar-link{
  width:78px!important;
  height:78px!important;
  border-radius:50%!important;
  display:block!important;
  overflow:hidden!important;
  background:#ffffff!important;
  border:3px solid rgba(255,255,255,.92)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.22)!important;
  flex:0 0 auto!important;
  text-decoration:none!important;
  margin:0!important;
}
html body .dash-photo-sync-avatar{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
  border-radius:50%!important;
}

/* When the user has a real photo, show only that photo. */
html body .dash-photo-has-real .dash-photo-sync-avatar-link{
  width:80px!important;
  height:80px!important;
}
html body .dash-photo-fallback .dash-photo-sync-avatar-link{
  width:64px!important;
  height:64px!important;
  background:#f8fbff!important;
}

html body .dash-photo-sync-info{
  min-width:0!important;
  display:grid!important;
  gap:4px!important;
  width:100%!important;
}
html body .dash-photo-sync-trigger{
  min-width:0!important;
  padding:0!important;
  width:auto!important;
  max-width:100%!important;
}
html body .dash-photo-sync-name{
  display:block!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-weight:950!important;
  font-size:18px!important;
  line-height:1.2!important;
  text-decoration:none!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  max-width:100%!important;
}
html body .dash-photo-sync-trigger p{
  margin:5px 0 0!important;
  display:inline-flex!important;
  align-items:center!important;
  max-width:100%!important;
  padding:7px 12px!important;
  border-radius:999px!important;
  background:#1769ff!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  line-height:1.1!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
html body .dash-photo-sync-card .side-credit-balance{
  width:100%!important;
  margin-top:10px!important;
}

@media(max-width:760px){
  html body .stage37-member-sidebar .dash-photo-sync-card,
  html body .app-sidebar .dash-photo-sync-card{
    padding:14px!important;
    border-radius:18px!important;
    gap:9px!important;
  }
  html body .dash-photo-has-real .dash-photo-sync-avatar-link,
  html body .dash-photo-sync-avatar-link{
    width:66px!important;
    height:66px!important;
  }
  html body .dash-photo-fallback .dash-photo-sync-avatar-link{
    width:58px!important;
    height:58px!important;
  }
  html body .dash-photo-sync-name{
    font-size:16px!important;
  }
  html body .dash-photo-sync-trigger p{
    font-size:11px!important;
    padding:6px 10px!important;
  }
}
