/* V20: the avatar in the top-right header is an ICON, not a full-size character canvas.
   Before this fix the 240x320 SVG forced the 42px button to 239px wide and
   painted a 300px tall character over the weather card and nearby controls. */
.topbar #avatarButton {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 42px;
  min-height: 42px;
  flex: 0 0 42px;
  padding: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.topbar #avatarButton > svg.nyugi-oc-svg {
  display: block;
  flex: none;
  width: 42px !important;
  min-width: 42px;
  max-width: 42px !important;
  height: 56px !important;
  max-height: 56px !important;
  transform: translateY(3px);
  filter: none !important;
  overflow: hidden;
}
.topbar #avatarButton > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
/* Allow the main OC illustration to retain its full size inside the editor only. */
.oc-studio .oc-stage .cc-avatar-svg { overflow: visible; }
@media(max-width: 420px) {
  .topbar .top-actions { min-width: 0; gap: 6px; }
}
