.tg-profile-custom-scope,
.tg-profile-custom-scope * {
  box-sizing: border-box;
}

.tg-profile-custom-scope h1,
.tg-profile-custom-scope h2,
.tg-profile-custom-scope h3,
.tg-profile-custom-scope h4,
.tg-profile-custom-scope h5,
.tg-profile-custom-scope h6,
.tg-profile-custom-scope p,
.tg-profile-custom-scope ul,
.tg-profile-custom-scope ol,
.tg-profile-custom-scope blockquote {
  color: inherit;
  font-family: inherit;
  margin: 0;
  padding: 0;
}

.tg-profile-custom-scope ul,
.tg-profile-custom-scope ol {
  list-style: none;
}

.tg-profile-custom-scope button,
.tg-profile-custom-scope input,
.tg-profile-custom-scope textarea {
  font-family: inherit;
}

.tg-profile-custom-scope .header-picture:not(.tg-profile__header-media),
.tg-profile-custom-scope .profile-picture:not(.tg-profile__avatar),
.tg-profile-custom-scope .header-username:not(.tg-profile__name),
.tg-profile-custom-scope .note-container,
.tg-profile-custom-scope .link-item,
.tg-profile-custom-scope .saved-link,
.tg-profile-custom-scope .links,
.tg-profile-custom-scope .bento {
  float: none;
  inset: auto;
  max-width: 100%;
  position: static;
}

.tg-profile-custom-scope .header-picture:not(.tg-profile__header-media) {
  background-color: transparent;
  background-position: center;
  background-size: cover;
  display: block;
  height: auto;
  margin: 0;
  width: 100%;
}

.tg-profile-custom-scope .profile-picture:not(.tg-profile__avatar) {
  margin: 0;
}

.tg-profile-custom-scope .header-username:not(.tg-profile__name) {
  text-align: inherit;
  transform: none;
}

.tg-profile-custom-scope .edit-icon {
  line-height: 1;
}

.tg-profile.tg-profile-custom-scope .tg-profile__header-media.header-picture {
  border-radius: max(0px, calc(var(--tg-profile-card-radius) - var(--tg-profile-card-border-width)));
  height: auto;
  margin-top: 0;
  min-height: var(--tg-profile-header-height);
  overflow: hidden;
  padding-top: 0;
  z-index: auto;
}

.tg-profile.tg-profile-custom-scope .tg-profile__header-media.header-picture::after {
  border-radius: inherit;
}

.tg-profile.tg-profile-custom-scope .tg-profile__name.header-username {
  color: var(--tg-profile-text);
  font-size: calc(2.2rem * var(--tg-profile-heading-scale));
  font-weight: 700;
  line-height: 1;
  margin: 0;
  position: static;
  text-align: left;
  top: auto;
  width: auto;
  z-index: auto;
}

.tg-profile.tg-profile-custom-scope .tg-profile__avatar.profile-picture,
.tg-profile.tg-profile-custom-scope .tg-profile__avatar.profile-picture::before,
.tg-profile.tg-profile-custom-scope .tg-profile__avatar.profile-picture::after {
  border-radius: var(--tg-profile-avatar-radius);
}

.tg-profile.tg-profile-custom-scope .profile-actions.profile-actions--hero {
  justify-content: flex-start;
  margin: 0;
  max-width: 100%;
  z-index: auto;
}

.tg-profile-custom-scope .tg-profile__block--plugin .bento,
.tg-profile-custom-scope .tg-profile__block--plugin .tg-profile-module-card,
.tg-profile-custom-scope .tg-profile__block--plugin .tg-upto-card {
  box-sizing: border-box;
  max-width: 100%;
}
