/* V491: localized avatar/frame repairs — do not alter other frame types. */
[data-avatar-frame="sable_winter"]{--avatar-core-ratio:78%!important}
[data-avatar-frame="sable_winter"] > :is(.ui-avatar-core,.oct15-avatar-core,.avatar-frame-core){
  border-radius:50%!important;overflow:hidden!important;background:transparent!important;
}
[data-avatar-frame="sable_winter"] > :is(.ui-avatar-core,.oct15-avatar-core,.avatar-frame-core) > img{
  display:block!important;width:100%!important;height:100%!important;
  max-width:none!important;object-fit:cover!important;object-position:50% 50%!important;
  transform:none!important;
}
/* The screenshot revealed fixed 112px overlays which clipped after growing the shell. */
[data-avatar-frame="sable_winter"] > :is(img.ui-frame-image,img.oct15-frame-overlay,img.avatar-frame-layer){
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  max-width:none!important;max-height:none!important;object-fit:contain!important;
  border-radius:0!important;pointer-events:none!important;
}
[data-avatar-frame="sable_winter"] > video.sable-frame-video{
  display:block!important;position:absolute!important;top:0!important;left:0!important;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  inset:0!important;object-fit:contain!important;transform:none!important;
  pointer-events:none!important;z-index:6!important;border-radius:0!important;
  background:transparent!important;
}
[data-avatar-frame="sable_winter"] > video.sable-frame-video[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){
  [data-avatar-frame="sable_winter"] > video.sable-frame-video{display:none!important}
}
/* The feature avatar is part of developer profile ONLY; every other avatar
   keeps its normal dimensions. Keep intrinsic dimensions symmetric and responsive. */
.ui-profile-hero-v491{display:flex!important;align-items:center!important;gap:32px!important;justify-content:space-between!important;min-height:340px!important}
.ui-profile-hero-v491 > div:first-child{flex:1 1 360px!important;min-width:0!important}
body .ui-profile-hero-v491 > .ui-avatar-hero-featured{
  --v491-avatar-size:clamp(220px,22vw,290px);
  position:relative!important;width:var(--v491-avatar-size)!important;height:var(--v491-avatar-size)!important;
  min-width:var(--v491-avatar-size)!important;max-width:var(--v491-avatar-size)!important;
  min-height:var(--v491-avatar-size)!important;max-height:var(--v491-avatar-size)!important;
  flex:0 0 var(--v491-avatar-size)!important;aspect-ratio:1!important;overflow:visible!important;
}
body .ui-profile-hero-v491 > .ui-avatar-hero-featured > img.ui-frame-image,
body .ui-profile-hero-v491 > .ui-avatar-hero-featured > video.ui-frame-image{
  position:absolute!important;width:100%!important;height:100%!important;
  inset:0!important;max-width:none!important;max-height:none!important;
  object-fit:contain!important;pointer-events:none!important;
}
.ui-profile-hero-v491 > .ui-avatar-hero-featured > .ui-avatar-core{
  inset:calc((100% - var(--avatar-core-ratio,66%))/2)!important;
  width:auto!important;height:auto!important;overflow:hidden!important;border-radius:50%!important;
}
.ui-profile-hero-v491 > .ui-avatar-hero-featured > .ui-avatar-core img{
  display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;
}
@media(max-width:670px){
  .ui-profile-hero-v491{flex-direction:column-reverse!important;align-items:center!important;gap:16px!important;min-height:0!important}
  .ui-profile-hero-v491 > div:first-child{flex:auto!important;width:100%!important}
  body .ui-profile-hero-v491 > .ui-avatar-hero-featured{
    --v491-avatar-size:min(66vw,246px);
    margin:0 auto 6px!important;
  }
}
/* Native fullscreen-sized preview; no new privileges or data requests. */
.v491-frame-dialog{border:1px solid rgba(148,163,184,.4);border-radius:22px;
  background:#182137;color:#fff;padding:22px;max-width:min(94vw,540px);width:min(94vw,540px);
  max-height:90dvh;box-sizing:border-box;overflow:auto;box-shadow:0 25px 85px rgba(0,0,0,.46)}
.v491-frame-dialog::backdrop{background:rgba(3,7,18,.82);backdrop-filter:blur(9px)}
.v491-dialog-header{display:flex;justify-content:space-between;gap:12px;align-items:center}
.v491-frame-dialog > .v491-dialog-avatar{
  --v491-dialog-size:min(74vw,380px);
  display:block!important;position:relative!important;
  width:var(--v491-dialog-size)!important;height:var(--v491-dialog-size)!important;
  min-width:0!important;max-width:100%!important;
  flex:0 0 auto!important; margin:20px auto 8px!important;
}
.v491-frame-dialog .v491-dialog-avatar > img.ui-frame-image,
.v491-frame-dialog .v491-dialog-avatar > video.ui-frame-image{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  object-fit:contain!important;max-width:none!important;max-height:none!important;
}
.v491-frame-dialog .v491-dialog-avatar > .ui-avatar-core{
  inset:calc((100% - var(--avatar-core-ratio,66%))/2)!important;
  height:auto!important;width:auto!important;border-radius:50%!important;overflow:hidden!important;
}
.v491-dialog-avatar > .ui-avatar-core img{width:100%!important;height:100%!important;object-fit:cover!important}
.v491-dialog-caption{text-align:center!important;font-size:15px;font-weight:750;margin:8px 0 0}
html[data-theme="light"] .v491-frame-dialog{background:#fff9ef;color:#1e293b}
