.tg-profile {
  --tg-profile-accent: #4f684d;
  --tg-profile-surface: #ffffff;
  --tg-profile-text: #243028;
  --tg-profile-muted: #64726b;
  --tg-profile-line: #d7e0d8;
  --tg-profile-background: #f4f7f2;
  --tg-profile-font-family: inherit;
  --tg-profile-font-size: 16px;
  --tg-profile-heading-scale: 1;
  --tg-profile-gap: 16px;
  --tg-profile-card-margin: 0px;
  --tg-profile-card-padding: 16px;
  --tg-profile-card-border-width: 1px;
  --tg-profile-card-radius: 8px;
  --tg-profile-header-height: 300px;
  --tg-profile-max-width: 1180px;
  --tg-profile-avatar-size: 8rem;
  --tg-profile-avatar-radius: 100%;
  --tg-profile-avatar-background: transparent;
  --tg-profile-avatar-border-width: 0;
  --tg-profile-avatar-border-color: transparent;
  --tg-profile-avatar-shadow: none;
  --tg-profile-avatar-image-position: var(--profile-picture-position, center center);
  --tg-profile-avatar-image-size: cover;
  --tg-profile-avatar-image-radius: var(--tg-profile-avatar-radius);
  --tg-profile-avatar-image-inset: 0;
  --tg-profile-avatar-overlay-background: rgba(0, 0, 0, .1);
  --tg-profile-avatar-overlay-shadow: 0 0 40px rgba(0, 0, 0, .3);
  --tg-profile-avatar-overlay-inset: 0;
  --tg-profile-avatar-justify-self: start;
  --tg-profile-avatar-align-self: center;
  --tg-profile-avatar-margin: 0;
  --tg-profile-avatar-transform: none;
  --tg-profile-posts-block-background: var(--tg-profile-surface);
  --tg-profile-posts-block-border-width: var(--tg-profile-card-border-width);
  --tg-profile-posts-block-border-color: var(--tg-profile-line);
  --tg-profile-posts-block-radius: var(--tg-profile-card-radius);
  --tg-profile-posts-block-padding: var(--tg-profile-card-padding);
  --tg-profile-posts-block-shadow: none;
  --tg-profile-posts-gap: 1rem;
  --tg-profile-post-card-background: var(--tg-profile-surface);
  --tg-profile-post-card-border-width: var(--tg-profile-card-border-width);
  --tg-profile-post-card-border-color: var(--tg-profile-line);
  --tg-profile-post-card-radius: var(--tg-profile-card-radius);
  --tg-profile-post-card-padding: var(--tg-profile-card-padding);
  --tg-profile-post-card-padding-inline: var(--tg-profile-post-card-padding);
  --tg-profile-post-card-shadow: none;
  --tg-profile-post-card-margin-top: 0;
  --tg-profile-post-card-overflow: visible;
  --tg-profile-post-card-content-gap: .7rem .85rem;
  --tg-profile-post-media-radius: max(0px, calc(var(--tg-profile-post-card-radius) - var(--tg-profile-post-card-border-width)));
  --tg-profile-post-social-background: color-mix(in srgb, var(--tg-profile-background) 72%, var(--tg-profile-surface));
  --tg-profile-post-social-border-width: var(--tg-profile-card-border-width);
  --tg-profile-post-social-border-color: color-mix(in srgb, var(--tg-profile-line) 82%, transparent);
  --tg-profile-post-social-radius: var(--tg-profile-post-card-radius);
  align-items: flex-start;
  background: var(--tg-profile-background);
  border-radius: var(--tg-profile-card-radius);
  color: var(--tg-profile-text);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--tg-profile-font-family);
  font-size: var(--tg-profile-font-size);
  gap: var(--tg-profile-gap);
  margin: 0 auto;
  max-width: var(--tg-profile-max-width);
  padding: 1rem;
}

.tg-profile__region {
  display: grid;
  flex: 1 1 calc(var(--tg-profile-region-width, 100%) - var(--tg-profile-region-gap-offset, var(--tg-profile-gap)));
  gap: var(--tg-profile-gap);
  max-width: calc(var(--tg-profile-region-width, 100%) - var(--tg-profile-region-gap-offset, var(--tg-profile-gap)));
  min-width: 0;
  width: calc(var(--tg-profile-region-width, 100%) - var(--tg-profile-region-gap-offset, var(--tg-profile-gap)));
}

.tg-profile__block {
  background: var(--tg-profile-surface);
  border: var(--tg-profile-card-border-width) solid var(--tg-profile-line);
  border-radius: var(--tg-profile-card-radius);
  margin: var(--tg-profile-card-margin);
  min-width: 0;
  overflow: visible;
  padding: var(--tg-profile-card-padding);
}

.tg-profile__block--wide,
.tg-profile__block--header,
.tg-profile__block--posts,
.tg-profile__block--wall_posts {
  padding: var(--tg-profile-card-padding);
}

.tg-profile__block--posts {
  background: var(--tg-profile-posts-block-background);
  border: var(--tg-profile-posts-block-border-width) solid var(--tg-profile-posts-block-border-color);
  border-radius: var(--tg-profile-posts-block-radius);
  box-shadow: var(--tg-profile-posts-block-shadow);
  padding: var(--tg-profile-posts-block-padding);
}

.tg-profile__header-media {
  border-radius: max(0px, calc(var(--tg-profile-card-radius) - var(--tg-profile-card-border-width)));
  min-height: var(--tg-profile-header-height);
  position: relative;
}

.tg-profile__identity {
  align-items: center;
  display: grid;
  gap: .8rem;
  justify-items: start;
}

.tg-profile__avatar.profile-picture {
  align-self: var(--tg-profile-avatar-align-self);
  background: var(--tg-profile-avatar-background);
  border: var(--tg-profile-avatar-border-width) solid var(--tg-profile-avatar-border-color);
  border-radius: var(--tg-profile-avatar-radius);
  bottom: auto;
  box-shadow: var(--tg-profile-avatar-shadow);
  box-sizing: border-box;
  display: block;
  float: none;
  height: var(--tg-profile-avatar-size);
  justify-self: var(--tg-profile-avatar-justify-self);
  left: auto;
  margin: var(--tg-profile-avatar-margin);
  position: relative;
  right: auto;
  top: auto;
  transform: var(--tg-profile-avatar-transform);
  width: var(--tg-profile-avatar-size);
  z-index: auto;
}

.tg-profile__avatar.profile-picture::before {
  background-color: var(--tg-profile-avatar-overlay-background);
  border-radius: var(--tg-profile-avatar-radius);
  box-shadow: var(--tg-profile-avatar-overlay-shadow);
  inset: var(--tg-profile-avatar-overlay-inset);
}

.tg-profile__avatar.profile-picture::after {
  background-position: var(--tg-profile-avatar-image-position);
  background-size: var(--tg-profile-avatar-image-size);
  border-radius: var(--tg-profile-avatar-image-radius);
  inset: var(--tg-profile-avatar-image-inset);
}

.tg-profile__name.header-username {
  font-size: calc(2.2rem * var(--tg-profile-heading-scale));
  line-height: 1;
  margin: 0;
  position: static;
  text-align: left;
}

.tg-profile__intro,
.tg-profile__custom-text {
  color: var(--tg-profile-text);
  line-height: 1.6;
}

.tg-profile__links #links-container,
.tg-profile__links .links {
  display: grid;
  gap: .55rem;
}

.tg-profile #intro-display {
  background: transparent;
  border: 0;
  cursor: inherit;
  display: block;
  float: none;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.6;
  margin: 0;
  min-height: 0;
  padding: 0;
  position: static;
  resize: none;
  width: 100%;
}

.tg-profile #intro-form {
  margin: 0;
  position: static;
  width: 100%;
}

.tg-profile .intro-pencil {
  display: inline-flex;
  float: none;
  font-size: 1rem;
  margin: 0 0 0 .35rem;
  vertical-align: middle;
}

.tg-profile #links-form {
  margin: 0;
  padding: 0;
  width: 100%;
}

.tg-profile #links-container {
  display: grid;
  gap: .55rem;
}

.tg-profile .link-item {
  align-items: center;
  clear: none;
  display: inline-flex;
  justify-content: flex-start;
  margin: 0;
  max-width: 100%;
  min-height: 0;
  padding: .15rem .35rem .15rem .65rem;
  position: static;
  width: max-content;
}

.tg-profile .saved-link {
  display: inline-flex;
  float: none;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: .25rem .4rem;
  position: static;
  width: auto;
}

.tg-profile .link-input {
  float: none;
  min-width: 0;
  padding: .35rem .5rem;
  width: min(100%, 24rem);
}

.tg-profile .add-link-button,
.tg-profile .save-link-button,
.tg-profile .edit-link-button,
.tg-profile .remove-link-button {
  float: none;
  margin: 0;
  position: static;
}

.tg-profile .tg-profile__avatar .edit-icon {
  bottom: .15rem;
  height: 2.35rem;
  left: auto;
  right: .15rem;
  top: auto;
  width: 2.35rem;
  z-index: 5;
}

.tg-profile .tg-profile__header-media .header-picture-edit-icon {
  bottom: auto !important;
  left: auto !important;
  right: 1rem !important;
  top: 1rem !important;
  z-index: 5;
}

.tg-profile__external-link {
  color: var(--tg-profile-accent);
  font-weight: 700;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] {
  gap: var(--tg-profile-posts-gap);
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] > .note-container {
  background: var(--tg-profile-post-card-background) !important;
  border: var(--tg-profile-post-card-border-width) solid var(--tg-profile-post-card-border-color);
  border-radius: var(--tg-profile-post-card-radius);
  box-shadow: var(--tg-profile-post-card-shadow);
  color: var(--tg-profile-text);
  margin-top: var(--tg-profile-post-card-margin-top);
  min-width: 0;
  overflow: var(--tg-profile-post-card-overflow);
  padding: var(--tg-profile-post-card-padding) !important;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] > .note-container > div {
  align-items: start;
  display: grid;
  gap: var(--tg-profile-post-card-content-gap);
  grid-template-columns: 2.75rem minmax(0, 1fr);
  min-width: 0;
  position: relative;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .note-profile-pic {
  align-self: start;
  background: var(--tg-profile-surface);
  border: 1px solid var(--tg-profile-line);
  box-sizing: border-box;
  grid-column: 1;
  grid-row: 1;
  height: 2.75rem;
  left: auto;
  margin: 0;
  position: static;
  top: auto;
  width: 2.75rem;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .note-header {
  align-self: center;
  color: var(--tg-profile-muted);
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  min-width: 0;
  padding-right: 2.35rem;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .note-header strong {
  color: var(--tg-profile-text);
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .note-circle-1 {
  align-self: end;
  border-color: var(--tg-profile-surface);
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  left: auto;
  position: relative;
  top: auto;
  transform: translate(.18rem, .18rem);
  z-index: 2;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .note-circle-1-info {
  border-color: var(--tg-profile-surface);
  left: 2.55rem;
  top: 2.05rem;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .note-circle-1:hover + .note-circle-1-info,
.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .note-circle-1:focus + .note-circle-1-info,
.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .note-circle-1:focus-visible + .note-circle-1-info,
.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .note-circle-1:active + .note-circle-1-info {
  left: 3.15rem;
  max-width: min(20rem, calc(100% - 3.5rem));
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .note-content,
.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-note-content {
  color: var(--tg-profile-text);
  grid-column: 1 / -1;
  line-height: 1.55;
  margin: .25rem 0 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .note-content p,
.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-note-content p {
  margin: .45rem 0 .85rem;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .note-content > .tg-user-post__media,
.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-note-content > .tg-user-post__media {
  border-radius: var(--tg-profile-post-media-radius);
  margin: .85rem calc(2px - var(--tg-profile-post-card-padding-inline, 16px)) 0;
  max-width: none;
  overflow: hidden;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-user-post__media:not(.is-grid):not(.has-map) > img {
  top: auto;
  transform: none;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-user-post__menu {
  right: 0;
  top: 0;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-wall-posts__moderation--feed,
.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-social {
  grid-column: 1 / -1;
  margin: .85rem 0 0;
  min-width: 0;
  width: 100%;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-wall-posts__moderation--feed {
  background: color-mix(in srgb, var(--tg-profile-background) 76%, var(--tg-profile-surface));
  border: 1px solid color-mix(in srgb, var(--tg-profile-line) 82%, transparent);
  border-radius: var(--tg-profile-card-radius);
  padding: .75rem;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-wall-posts__review-row {
  grid-template-columns: minmax(0, 1fr);
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-wall-posts__actions {
  justify-content: flex-start;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-social {
  background: var(--tg-profile-post-social-background);
  border: var(--tg-profile-post-social-border-width) solid var(--tg-profile-post-social-border-color);
  border-radius: var(--tg-profile-post-social-radius);
  padding: .8rem;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-social.has-like-row {
  padding-top: .8rem;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-social__like-row {
  background: transparent;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  position: static;
  transform: none;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-social__comments {
  gap: .65rem;
  margin-top: 0;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-comment {
  border-top-color: color-mix(in srgb, var(--tg-profile-line) 72%, transparent);
  margin-bottom: .65rem;
  padding-top: .65rem;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-comment__meta {
  color: var(--tg-profile-muted);
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-comment__meta strong,
.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-comment__content {
  color: var(--tg-profile-text);
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-comment-composer__avatar,
.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-comment__avatar {
  background: var(--tg-profile-surface);
  border: 1px solid var(--tg-profile-line);
  box-sizing: border-box;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-comment-composer__textarea {
  border-color: color-mix(in srgb, var(--tg-profile-line) 82%, transparent);
  border-radius: var(--tg-profile-card-radius);
  margin: 0;
}

.tg-profile-custom-scope [data-posts][data-profile-posts="1"] .tg-post-comment-composer__submit {
  background: var(--tg-profile-accent);
}

.tg-profile-custom-scope .tg-wall-posts {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  padding: 0;
}

.tg-profile-custom-scope .tg-wall-posts__header,
.tg-profile-custom-scope .tg-wall-posts__item-header {
  min-width: 0;
}

.tg-profile-custom-scope .tg-wall-posts__header {
  align-items: flex-start;
  flex-wrap: wrap;
}

.tg-profile-custom-scope .tg-wall-posts__item {
  background: color-mix(in srgb, var(--tg-profile-background) 60%, var(--tg-profile-surface));
  border-color: color-mix(in srgb, var(--tg-profile-line) 82%, transparent);
}

.tg-profile-custom-scope .tg-wall-posts__badge {
  max-width: 100%;
  white-space: normal;
}

.tg-profile-custom-scope .tg-wall-posts__content {
  color: var(--tg-profile-text);
}

.tg-profile-custom-scope .tg-wall-posts__media {
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
}

.tg-profile-editor {
  display: grid;
  gap: 16px;
  padding-bottom: 2rem;
}

.tg-profile-editor__header,
.tg-profile-editor__toolbar,
.tg-profile-editor__panel {
  background: var(--app-card-bg);
  border: none;
  border-radius: var(--app-card-radius);
  box-shadow: none;
  margin-bottom: 0;
}

.tg-profile-editor__header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.35rem 1.4rem;
}

.tg-profile-editor__header h1 {
  margin: 0 0 .35rem;
}

.tg-profile-editor__header p,
.tg-profile-editor__status {
  color: #65736d;
  margin: 0;
}

.tg-profile-editor__header-actions,
.tg-profile-editor__toolbar,
.tg-profile-editor__segments {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tg-profile-editor__toolbar {
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.4rem;
}

.tg-profile-editor__segment {
  align-items: center;
  background: #f5f7f5;
  border: 1px solid rgba(39, 61, 49, .14);
  border-radius: 999px;
  color: #24362d;
  display: inline-flex;
  gap: .35rem;
  padding: .45rem .75rem;
}

.tg-profile-editor__segment.is-active {
  background: #284d39;
  color: #fff;
}

.tg-profile-editor__workspace {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.tg-profile-editor__panel {
  align-content: start;
  display: grid;
  gap: .7rem;
  padding: 1.25rem 1.5rem;
}

.tg-profile-editor__panel-section {
  display: grid;
  gap: .75rem;
}

.tg-profile-editor__panel h2 {
  margin: 0;
}

.tg-profile-editor__basics-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(12rem, .95fr) minmax(15rem, 1.05fr) minmax(18rem, 1fr) minmax(16rem, 1fr);
}

.tg-profile-editor__basic-card {
  align-content: start;
  background: #f7f8f6;
  border: 1px solid rgba(39, 61, 49, .14);
  border-radius: 8px;
  display: grid;
  gap: .75rem;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 16rem;
  padding: .85rem;
}

.tg-profile-editor__basic-card h3 {
  font-size: .98rem;
  margin: 0;
}

.tg-profile-editor__basic-card-copy,
.tg-profile-editor__links-list {
  display: grid;
  gap: .55rem;
}

.tg-profile-editor__basic-card-copy {
  align-content: stretch;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.tg-profile-editor__avatar-preview {
  background-color: #e9eee9;
  background-image: var(--profile-picture-url);
  background-position: var(--profile-picture-position, center center);
  background-size: cover;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(39, 61, 49, .16);
  height: 5rem;
  width: 5rem;
}

.tg-profile-editor__header-preview {
  aspect-ratio: 16 / 7;
  background-color: #e9eee9;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(39, 61, 49, .14);
  border-radius: 6px;
  min-height: 5rem;
}

.tg-profile-editor__basic-card .tg-pill-button {
  align-self: end;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  width: 100%;
}

.tg-profile-editor__basic-card-copy > .tg-pill-button {
  align-self: end;
}

.tg-profile-editor__basic-card--intro,
.tg-profile-editor__basic-card--links {
  grid-template-rows: minmax(0, 1fr) auto;
}

.tg-profile-editor__basic-card--intro {
  grid-column: span 1;
}

.tg-profile-editor__basic-card--intro textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.tg-profile-editor__basic-card--links .link-item {
  align-items: center;
  display: flex;
  gap: .35rem;
  min-width: 0;
}

.tg-profile-editor__basic-card--links .saved-link,
.tg-profile-editor__basic-card--links .link-input {
  min-width: 0;
}

.tg-profile-editor__basic-card--links .saved-link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-profile-editor__template-list,
.tg-profile-editor__block-library,
.tg-profile-editor__dropzone,
.tg-profile-editor__circle-list,
.tg-profile-editor__regions,
.tg-profile-editor__field,
.tg-profile-editor__toggle,
.tg-profile-editor__style-rules,
.tg-profile-editor__style-grid {
  display: grid;
  gap: .45rem;
}

.tg-profile-editor__template,
.tg-profile-editor__library-block,
.tg-profile-editor__block-chip {
  background: #f7f8f6;
  border: 1px solid rgba(39, 61, 49, .14);
  border-radius: 8px;
  color: #24362d;
  display: grid;
  gap: .2rem;
  padding: .5rem;
  text-align: left;
}

.tg-profile-editor__template-list {
  align-items: stretch;
  gap: .7rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.tg-profile-editor__template {
  align-items: stretch;
  background: transparent;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
}

.tg-profile-editor__template-copy {
  background: #f7f8f6;
  border-top: 1px solid rgba(39, 61, 49, .14);
  display: grid;
  min-width: 0;
  padding: .7rem .75rem .8rem;
}

.tg-profile-editor__template.is-active,
.tg-profile-editor__library-block.is-active,
.tg-profile-editor__block-chip:focus-visible {
  border-color: #2f6f4e;
  box-shadow: 0 0 0 3px rgba(47, 111, 78, .16);
}

.tg-profile-editor__template small,
.tg-profile-editor__library-block small {
  color: #66736d;
}

.tg-profile-editor__template-preview-card {
  aspect-ratio: 16 / 10;
  background: #e9eee9;
  display: block;
  overflow: hidden;
  position: relative;
}

.tg-profile-editor__template-preview-card::after {
  background: linear-gradient(180deg, rgba(8, 12, 10, 0) 24%, rgba(8, 12, 10, .38) 58%, rgba(8, 12, 10, .84) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.tg-profile-editor__template-title {
  bottom: .72rem;
  color: #ffffff;
  font-size: 1rem;
  inset-inline: .8rem;
  line-height: 1.15;
  position: absolute;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  z-index: 2;
}

.tg-profile-editor__template-preview {
  align-content: stretch;
  background: var(--tg-profile-background, #f4f7f2);
  border: 1px solid var(--tg-profile-line, #d7e0d8);
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .18rem;
  inset: 0;
  overflow: hidden;
  padding: .24rem;
  position: absolute;
}

.tg-profile-editor__template-preview--image {
  background-color: #f4f7f2;
  background-image: var(--tg-profile-template-preview-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 0;
  display: block;
  padding: 0;
}

.tg-profile-editor__template-preview-region {
  background: color-mix(in srgb, var(--tg-profile-surface, #fff) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--tg-profile-line, #d7e0d8) 88%, transparent);
  border-radius: 4px;
  display: grid;
  flex: 1 1 calc(var(--tg-profile-region-width, 100%) - .25rem);
  gap: .1rem;
  min-width: 1.2rem;
  padding: .14rem;
}

.tg-profile-editor__template-preview-block {
  background: color-mix(in srgb, var(--tg-profile-accent, #4f684d) 34%, var(--tg-profile-surface, #fff));
  border-radius: 999px;
  display: block;
  height: .22rem;
}

.tg-profile-editor__template-preview-block--header {
  border-radius: 3px;
  height: .45rem;
}

.tg-profile-editor__template-preview-block--posts {
  height: .34rem;
  width: 82%;
}

.tg-profile-editor__template-preview--helvetica {
  background: #f4f0e4;
  border: 1px solid #111111;
  border-radius: 0;
  gap: .24rem;
  padding: .26rem;
}

.tg-profile-editor__template-preview--helvetica .tg-profile-editor__template-preview-region {
  background: transparent;
  border-color: #111111;
  border-radius: 0;
  gap: .16rem;
  padding: .12rem 0;
}

.tg-profile-editor__template-preview--helvetica .tg-profile-editor__template-preview-region:first-child {
  align-items: end;
  border-width: 0 0 1px;
  flex-basis: 100%;
  padding-top: 0;
}

.tg-profile-editor__template-preview--helvetica .tg-profile-editor__template-preview-block {
  background: #111111;
  border-radius: 0;
  height: .22rem;
}

.tg-profile-editor__template-preview--helvetica .tg-profile-editor__template-preview-block--identity {
  background: #111111;
  height: .86rem;
  width: 86%;
}

.tg-profile-editor__template-preview--helvetica .tg-profile-editor__template-preview-block--posts {
  background: #e11d1d;
  height: .4rem;
  width: 100%;
}

.tg-profile-editor__template-preview--touchgrass-times {
  background: var(--tg-profile-background, #f4ecd1);
  border: 1px solid #17130d;
  border-radius: 0;
  gap: .22rem;
  padding: .28rem;
}

.tg-profile-editor__template-preview--touchgrass-times .tg-profile-editor__template-preview-region {
  background: transparent;
  border-color: #17130d;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  gap: .12rem;
}

.tg-profile-editor__template-preview--touchgrass-times .tg-profile-editor__template-preview-region:first-child {
  border-bottom: 3px double #17130d;
  flex-basis: 100%;
}

.tg-profile-editor__template-preview--touchgrass-times .tg-profile-editor__template-preview-block {
  background: #17130d;
  border-radius: 0;
  height: .16rem;
}

.tg-profile-editor__template-preview--touchgrass-times .tg-profile-editor__template-preview-block--identity {
  height: .7rem;
  width: 100%;
}

.tg-profile-editor__template-preview--touchgrass-times .tg-profile-editor__template-preview-block--header {
  background: #5f584d;
  filter: grayscale(1);
  height: 1.1rem;
}

.tg-profile-editor__template-preview--photography-portfolio {
  background: #000000;
  border-color: #222222;
  border-radius: 0;
  gap: .2rem;
  padding: .24rem;
}

.tg-profile-editor__template-preview--photography-portfolio .tg-profile-editor__template-preview-region {
  background: transparent;
  border-color: rgba(247, 247, 242, .12);
  border-radius: 0;
  gap: .12rem;
  padding: .14rem;
}

.tg-profile-editor__template-preview--photography-portfolio .tg-profile-editor__template-preview-region:first-child {
  align-items: center;
  border: 0;
  flex-basis: 100%;
}

.tg-profile-editor__template-preview--photography-portfolio .tg-profile-editor__template-preview-block {
  background: rgba(247, 247, 242, .42);
  border-radius: 0;
  height: .16rem;
}

.tg-profile-editor__template-preview--photography-portfolio .tg-profile-editor__template-preview-block--identity {
  background: #f7f7f2;
  height: .38rem;
  width: 46%;
}

.tg-profile-editor__template-preview--photography-portfolio .tg-profile-editor__template-preview-block--posts {
  background:
    linear-gradient(90deg, #273533 0 21%, transparent 21% 27%, #4e5f58 27% 49%, transparent 49% 55%, #c5c8bd 55% 76%, transparent 76% 82%, #778c8c 82% 100%),
    linear-gradient(90deg, #7b4b42 0 18%, transparent 18% 25%, #aab8ae 25% 44%, transparent 44% 52%, #29352f 52% 73%, transparent 73% 80%, #eceae0 80% 100%);
  background-position: 0 0, 0 1rem;
  background-repeat: no-repeat;
  background-size: 100% .82rem, 100% .72rem;
  height: 1.9rem;
  width: 100%;
}

.tg-profile-editor__template-preview--cinema-reel {
  background: #090909;
  border-color: #2f281d;
  border-radius: 0;
  gap: .2rem;
  padding: .24rem;
}

.tg-profile-editor__template-preview--cinema-reel .tg-profile-editor__template-preview-region {
  background: transparent;
  border-color: rgba(248, 232, 160, .2);
  border-radius: 0;
  gap: .12rem;
  padding: .14rem;
}

.tg-profile-editor__template-preview--cinema-reel .tg-profile-editor__template-preview-region:first-child {
  background:
    linear-gradient(90deg, rgba(248, 232, 160, .42) 0 .18rem, transparent .18rem .42rem) left top / .42rem .28rem repeat-x,
    linear-gradient(90deg, rgba(248, 232, 160, .42) 0 .18rem, transparent .18rem .42rem) left bottom / .42rem .28rem repeat-x,
    linear-gradient(90deg, #1a1a17, #493a27 42%, #75624a);
  border: 0;
  flex-basis: 100%;
  min-height: 1rem;
}

.tg-profile-editor__template-preview--cinema-reel .tg-profile-editor__template-preview-block {
  background: rgba(244, 239, 228, .48);
  border-radius: 0;
  height: .16rem;
}

.tg-profile-editor__template-preview--cinema-reel .tg-profile-editor__template-preview-block--identity {
  background: #f8e8a0;
  height: .34rem;
  width: 48%;
}

.tg-profile-editor__template-preview--cinema-reel .tg-profile-editor__template-preview-block--posts {
  background:
    linear-gradient(90deg, #222e2c 0 20%, transparent 20% 27%, #c9b073 27% 48%, transparent 48% 55%, #5d4a35 55% 76%, transparent 76% 83%, #b9b5a4 83% 100%),
    linear-gradient(90deg, #7f3b33 0 18%, transparent 18% 25%, #efe1b8 25% 45%, transparent 45% 53%, #31342a 53% 74%, transparent 74% 81%, #8d7251 81% 100%);
  background-position: 0 0, 0 1rem;
  background-repeat: no-repeat;
  background-size: 100% .74rem, 100% .7rem;
  border-top: .16rem solid #f8e8a0;
  height: 1.9rem;
  width: 100%;
}

.tg-profile-editor__template-preview--mono {
  background: #f6f7f4;
  border: 1px solid #26312d;
  border-radius: 2px;
  gap: .18rem;
  padding: .22rem;
}

.tg-profile-editor__template-preview--mono .tg-profile-editor__template-preview-region {
  background: #ffffff;
  border-color: #26312d;
  border-radius: 2px;
  gap: .12rem;
  padding: .16rem;
}

.tg-profile-editor__template-preview--mono .tg-profile-editor__template-preview-region:first-child {
  background:
    linear-gradient(90deg, rgba(38, 49, 45, .22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(38, 49, 45, .18) 1px, transparent 1px),
    #dfe7e2;
  background-size: .45rem .45rem;
  flex-basis: 100%;
}

.tg-profile-editor__template-preview--mono .tg-profile-editor__template-preview-block {
  background: #26312d;
  border-radius: 1px;
  height: .2rem;
}

.tg-profile-editor__template-preview--mono .tg-profile-editor__template-preview-block--identity {
  background: #17201c;
  height: .74rem;
  width: 74%;
}

.tg-profile-editor__template-preview--mono .tg-profile-editor__template-preview-block--posts {
  background: #2f6f5e;
  height: .55rem;
  width: 92%;
}

.tg-profile-editor__template-preview--indie-press {
  background: #f5f0e8;
  border: 1px solid #111111;
  border-radius: 0;
  gap: .18rem;
  padding: .22rem;
}

.tg-profile-editor__template-preview--indie-press .tg-profile-editor__template-preview-region {
  background: #fffaf0;
  border-color: #111111;
  border-radius: 0;
  gap: .14rem;
  padding: .16rem;
}

.tg-profile-editor__template-preview--indie-press .tg-profile-editor__template-preview-region:first-child {
  background: transparent;
  border-bottom: 3px solid #111111;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  flex-basis: 100%;
}

.tg-profile-editor__template-preview--indie-press .tg-profile-editor__template-preview-block {
  background: #111111;
  border-radius: 0;
  height: .28rem;
}

.tg-profile-editor__template-preview--indie-press .tg-profile-editor__template-preview-block--identity {
  height: .88rem;
  width: 78%;
}

.tg-profile-editor__template-preview--indie-press .tg-profile-editor__template-preview-block--intro {
  background: #e1322d;
  height: .55rem;
}

.tg-profile-editor__template-preview--indie-press .tg-profile-editor__template-preview-block--header {
  background: #ecf4ff;
  border: 1px solid #111111;
  height: 1.15rem;
}

.tg-profile-editor__template-preview--indie-press .tg-profile-editor__template-preview-block--posts {
  background: #fff2a8;
  border: 1px solid #111111;
  height: .7rem;
  width: 90%;
}

.tg-profile-editor__template-preview--zine {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, .12) 1px, transparent 1px) 0 0 / 1.35rem 100%,
    #fbfaf6;
  border-color: #151515;
  border-radius: 0;
  gap: .26rem;
  padding: .24rem;
}

.tg-profile-editor__template-preview--zine .tg-profile-editor__template-preview-region {
  background: #fffefa;
  border: 0;
  border-radius: 0;
  gap: .18rem;
  padding: .16rem;
}

.tg-profile-editor__template-preview--zine .tg-profile-editor__template-preview-region:first-child {
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(17, 17, 17, .18) 42% 100%),
    #fffefa;
  flex-basis: 100%;
  min-height: 1.9rem;
}

.tg-profile-editor__template-preview--zine .tg-profile-editor__template-preview-block {
  background: #151515;
  border-radius: 0;
  height: .16rem;
}

.tg-profile-editor__template-preview--zine .tg-profile-editor__template-preview-block--identity {
  background: #151515;
  height: .82rem;
  width: 84%;
}

.tg-profile-editor__template-preview--zine .tg-profile-editor__template-preview-block--intro {
  background: #fffefa;
  border-left: 1px solid #151515;
  height: .42rem;
  margin-left: auto;
  width: 44%;
}

.tg-profile-editor__template-preview--zine .tg-profile-editor__template-preview-block--posts {
  background: #b3132f;
  height: .72rem;
  width: 72%;
}

.tg-profile-editor__template-preview--night {
  background:
    linear-gradient(180deg, rgba(155, 231, 199, .12), transparent 58%),
    linear-gradient(135deg, #080c11, #111611);
  border-color: rgba(155, 231, 199, .3);
  border-radius: 8px;
  gap: .18rem;
  padding: .25rem;
}

.tg-profile-editor__template-preview--night .tg-profile-editor__template-preview-region {
  background: #121817;
  border-color: rgba(155, 231, 199, .22);
  border-radius: 6px;
  gap: .13rem;
  padding: .16rem;
}

.tg-profile-editor__template-preview--night .tg-profile-editor__template-preview-region:first-child {
  background: linear-gradient(110deg, rgba(155, 231, 199, .18), transparent), #0d1413;
  flex-basis: 100%;
}

.tg-profile-editor__template-preview--night .tg-profile-editor__template-preview-block {
  background: #9be7c7;
  border-radius: 4px;
  height: .22rem;
}

.tg-profile-editor__template-preview--night .tg-profile-editor__template-preview-block--header {
  background: #27332e;
  border-radius: 5px;
  height: .9rem;
}

.tg-profile-editor__template-preview--night .tg-profile-editor__template-preview-block--identity {
  background: #f4f7fb;
  height: .62rem;
  width: 72%;
}

.tg-profile-editor__template-preview--night .tg-profile-editor__template-preview-block--posts {
  background: #d7e2da;
  height: .52rem;
  width: 88%;
}

.tg-profile-editor__template-preview--field-notes {
  background:
    linear-gradient(90deg, rgba(180, 95, 57, .38) 0 1px, transparent 1px) 18% 0 / 100% 100%,
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(47, 83, 114, .18) 11px 12px),
    radial-gradient(circle at 7px 9px, rgba(31, 44, 40, .16) 0 1px, transparent 1px 100%) 0 0 / 22px 22px,
    #efe7d1;
  border-color: #bcae86;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 241, .6);
  gap: .2rem;
  padding: .25rem;
}

.tg-profile-editor__template-preview--field-notes .tg-profile-editor__template-preview-region {
  background:
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(47, 83, 114, .12) 9px 10px),
    #fff8df;
  border-color: #bcae86;
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(31, 44, 40, .12);
  gap: .13rem;
  padding: .16rem;
  position: relative;
}

.tg-profile-editor__template-preview--field-notes .tg-profile-editor__template-preview-region::before {
  background: rgba(255, 249, 207, .78);
  content: "";
  height: .24rem;
  left: 28%;
  position: absolute;
  top: -.12rem;
  transform: rotate(-3deg);
  width: 42%;
}

.tg-profile-editor__template-preview--field-notes .tg-profile-editor__template-preview-region:first-child {
  background: #fffdf1;
  border: .14rem solid #fffdf1;
  box-shadow: 2px 3px 0 rgba(31, 44, 40, .12);
  flex-basis: 100%;
  transform: rotate(-1deg);
}

.tg-profile-editor__template-preview--field-notes .tg-profile-editor__template-preview-block {
  background: #2f6f68;
  border-radius: 2px;
  height: .2rem;
}

.tg-profile-editor__template-preview--field-notes .tg-profile-editor__template-preview-block--header {
  background: linear-gradient(135deg, #6f8f87, #2f5372);
  border-radius: 2px;
  height: .9rem;
}

.tg-profile-editor__template-preview--field-notes .tg-profile-editor__template-preview-block--identity {
  background: #1f2c28;
  height: .6rem;
  width: 62%;
}

.tg-profile-editor__template-preview--field-notes .tg-profile-editor__template-preview-block--posts {
  background: #b45f39;
  height: .46rem;
  width: 88%;
}

.tg-profile-editor__template-preview--ninety-eight {
  background:
    linear-gradient(90deg, #ffff00 0 8%, #ff00ff 8% 16%, #00ffff 16% 24%, #00ff00 24% 32%, #ff0000 32% 40%, #0000ff 40% 48%, transparent 48% 100%) 0 0 / 100% .22rem no-repeat,
    radial-gradient(1px 1px at 14% 20%, rgba(255, 255, 255, .95), transparent),
    radial-gradient(1px 1px at 38% 30%, rgba(0, 255, 255, .9), transparent),
    radial-gradient(1px 1px at 54% 14%, rgba(255, 255, 0, .9), transparent),
    radial-gradient(1px 1px at 72% 28%, rgba(255, 255, 255, .9), transparent),
    radial-gradient(1px 1px at 88% 22%, rgba(0, 255, 255, .85), transparent),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #00008b, #00004f 66%, #191970);
  border: 3px ridge #c0c0c0;
  border-radius: 0;
  gap: .16rem;
  padding: .42rem .24rem .24rem;
}

.tg-profile-editor__template-preview--ninety-eight .tg-profile-editor__template-preview-region {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .42) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .42) 1px, transparent 1px),
    #ffffcc;
  background-size: .35rem .35rem;
  border: 1px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  border-radius: 0;
  gap: .1rem;
  padding: .14rem;
  box-shadow: 1px 1px 0 #000000;
}

.tg-profile-editor__template-preview--ninety-eight .tg-profile-editor__template-preview-region:first-child {
  background: #c0c0c0;
  border: 1px ridge #ffffff;
  flex-basis: 100%;
}

.tg-profile-editor__template-preview--ninety-eight .tg-profile-editor__template-preview-block {
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  border-radius: 0;
  height: .2rem;
}

.tg-profile-editor__template-preview--ninety-eight .tg-profile-editor__template-preview-block--header {
  background:
    linear-gradient(90deg, #000080, #0000cd 68%, #c0c0c0 68% 100%);
  border: 1px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  height: .72rem;
}

.tg-profile-editor__template-preview--ninety-eight .tg-profile-editor__template-preview-block--identity {
  background:
    linear-gradient(90deg, #ffff00 0 28%, #ff00ff 28% 56%, #00ffff 56% 84%, #00ff00 84% 100%);
  height: .48rem;
  width: 62%;
}

.tg-profile-editor__template-preview--ninety-eight .tg-profile-editor__template-preview-block--posts {
  background: #ffff99;
  border-style: dashed;
  height: .4rem;
  width: 84%;
}

.tg-profile-editor__canvas {
  border: 1px dashed rgba(39, 61, 49, .24);
  border-radius: 8px;
  display: grid;
  gap: .55rem;
  padding: .6rem;
}

.tg-profile-editor__wireframe-toolbar {
  display: flex;
  justify-content: flex-end;
}

.tg-profile-editor__wireframes {
  display: grid;
  gap: .55rem;
  grid-template-columns: minmax(0, 1fr);
}

.tg-profile-editor__wireframe {
  background: #f7f9f7;
  border: 1px solid rgba(39, 61, 49, .14);
  border-radius: 8px;
  display: grid;
  gap: .5rem;
  padding: .55rem;
}

.tg-profile-editor__wireframe-header,
.tg-profile-editor__column-count,
.tg-profile-editor__region header,
.tg-profile-editor__block-chip-main,
.tg-profile-editor__visibility,
.tg-profile-editor__swatches {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.tg-profile-editor__wireframe-header {
  justify-content: space-between;
}

.tg-profile-editor__wireframe-header h3 {
  font-size: .94rem;
  margin: 0;
}

.tg-profile-editor__column-count {
  color: #66736d;
  font-size: .8rem;
}

.tg-profile-editor__column-count input,
.tg-profile-editor__region header input {
  max-width: 5.5rem;
}

.tg-profile-editor__regions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
}

.tg-profile-editor__region {
  background: #fbfcfb;
  border: 1px solid rgba(39, 61, 49, .12);
  border-radius: 8px;
  flex: 1 1 calc(var(--tg-profile-region-width, 100%) - var(--tg-profile-editor-region-gap-offset, .75rem));
  min-width: min(100%, 8.5rem);
  padding: .5rem;
}

.tg-profile-editor__region header {
  color: #66736d;
  font-size: .78rem;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.tg-profile-editor__region header label {
  align-items: center;
  display: flex;
  gap: .35rem;
  text-transform: none;
}

.tg-profile-editor__dropzone {
  min-height: 2.6rem;
}

.tg-profile-editor__block-shelf {
  border-top: 1px solid rgba(39, 61, 49, .12);
  display: grid;
  gap: .5rem;
  padding-top: .6rem;
}

.tg-profile-editor__block-shelf h2 {
  margin: 0;
}

.tg-profile-editor__block-library {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.tg-profile-editor__block-chip {
  align-items: center;
  cursor: grab;
  display: grid;
  gap: .35rem;
  grid-template-columns: minmax(0, 1fr);
  padding-right: 2.25rem;
  position: relative;
}

.tg-profile-editor__block-chip-main {
  min-width: 0;
}

.tg-profile-editor__block-chip-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-profile-editor__visibility {
  grid-column: 1 / -1;
  gap: .35rem;
}

.tg-profile-editor__block-options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  grid-column: 1 / -1;
}

.tg-profile-editor__block-option {
  background: rgba(84, 106, 80, .1);
  border: 1px solid rgba(84, 106, 80, .18);
  border-radius: 999px;
  color: #31452e;
  cursor: pointer;
  font-size: .78rem;
  line-height: 1.2;
  padding: .28rem .55rem;
}

.tg-profile-editor__block-option.is-active {
  background: #546a50;
  border-color: #546a50;
  color: #fff;
}

.tg-profile-editor__visibility .tg-visibility-pill {
  height: 1.65rem;
  min-height: 1.65rem;
  min-width: 1.65rem;
  padding: 0;
  width: 1.65rem;
}

.tg-profile-editor__visibility .tg-visibility-pill--self.is-active {
  background: #5e6470;
  border-color: #5e6470;
  color: #fff;
}

.tg-profile-editor__block-remove {
  align-items: center;
  background: transparent;
  border: 0;
  color: #65736d;
  cursor: pointer;
  display: inline-flex;
  height: 1.6rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: .35rem;
  top: .35rem;
  width: 1.6rem;
}

.tg-profile-editor__block-remove:hover,
.tg-profile-editor__block-remove:focus-visible {
  color: #8c2f39;
}

.tg-profile-editor__circle-options {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: .35rem;
}

.tg-profile-editor__circle-option {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(39, 61, 49, .14);
  border-radius: 999px;
  color: #24362d;
  cursor: pointer;
  display: inline-flex;
  font-size: .78rem;
  gap: .25rem;
  min-height: 1.65rem;
  max-width: 100%;
  padding: .12rem .45rem .12rem .2rem;
}

.tg-profile-editor__circle-option span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-profile-editor__circle-option.is-active {
  background: var(--tg-circle-bg, color-mix(in srgb, var(--tg-circle-color, #4f684d) 18%, #fff));
  border-color: var(--tg-circle-color, #4f684d);
}

.tg-profile-editor__preview {
  background: #f1f4f2;
  border-radius: 8px;
  max-height: 82vh;
  min-height: 38rem;
  overflow: auto;
  padding: .75rem;
  position: relative !important;
}

.tg-profile-editor__preview-column {
  display: grid;
  gap: .65rem;
  min-width: 0;
}

.tg-profile-editor__preview-controls {
  align-items: end;
  background: #f7f8f6;
  border: 1px solid rgba(39, 61, 49, .14);
  border-radius: 8px;
  display: grid;
  gap: .65rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: .75rem;
}

.tg-profile-editor__field--compact {
  gap: .3rem;
}

.tg-profile-editor__field--compact span {
  font-size: .8rem;
}

@media (max-width: 767px) {
  .tg-profile-editor__preview-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tg-profile-editor__segments[data-profile-editor-preview-controls][hidden] {
  display: none;
}

.tg-profile-editor__preview-row {
  align-items: stretch;
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
}

.tg-profile-editor__preview-row > * {
  min-height: 0;
}

.tg-profile-editor__style-panel {
  align-content: start;
  background: #f7f8f6;
  border: 1px solid rgba(39, 61, 49, .14);
  border-radius: 8px;
  max-height: 82vh;
  min-height: 38rem;
  overflow: auto;
  padding: .85rem;
}

.tg-profile-editor__style-panel h2 {
  font-size: 1rem;
}

.tg-profile-editor__circle {
  align-items: center;
  border: 1px solid rgba(39, 61, 49, .12);
  border-radius: 8px;
  display: grid;
  gap: .5rem;
  grid-template-columns: auto auto minmax(0, 1fr);
  padding: .55rem;
}

.tg-profile-editor__field--css textarea {
  font-family: Consolas, "Liberation Mono", monospace;
  min-height: 18rem;
}

.tg-profile-editor__style-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-profile-editor__swatches {
  align-items: stretch;
}

.tg-profile-editor__swatch {
  align-items: center;
  border: 1px solid rgba(39, 61, 49, .12);
  border-radius: 8px;
  display: flex;
  flex: 1 1 6.25rem;
  gap: .45rem;
  justify-content: space-between;
  padding: .45rem .55rem;
}

.tg-profile-editor__swatch span {
  color: #65736d;
  font-size: .82rem;
}

.tg-profile-editor__swatch input {
  background: transparent;
  border: 0;
  height: 2rem;
  padding: 0;
  width: 2.4rem;
}

.tg-profile-editor__persona-workspace {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(14rem, .7fr) minmax(0, 1.35fr);
}

.tg-profile-editor__panel-heading,
.tg-profile-editor__persona-titlebar,
.tg-profile-editor__persona-actions,
.tg-profile-editor__choice-grid,
.tg-profile-editor__persona-card-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tg-profile-editor__panel-heading,
.tg-profile-editor__persona-titlebar {
  justify-content: space-between;
}

.tg-profile-editor__persona-list,
.tg-profile-editor__persona-form,
.tg-profile-editor__persona-section {
  display: grid;
  gap: .75rem;
}

.tg-profile-editor__persona-card,
.tg-profile-editor__choice {
  background: #f7f8f6;
  border: 1px solid rgba(39, 61, 49, .14);
  border-radius: 8px;
  color: #24362d;
  cursor: pointer;
  display: grid;
  gap: .35rem;
  padding: .75rem;
  text-align: left;
}

.tg-profile-editor__choice {
  min-width: 8rem;
}

.tg-profile-editor__choice--check {
  cursor: pointer;
}

.tg-profile-editor__choice--check input {
  height: 1rem;
  margin: 0;
  width: 1rem;
}

.tg-profile-editor__choice-grid--compact {
  align-items: stretch;
}

.tg-profile-editor__persona-card.is-active,
.tg-profile-editor__choice.is-active {
  border-color: #3e5f8a;
  box-shadow: 0 0 0 3px rgba(62, 95, 138, .16);
}

.tg-profile-editor__persona-card-title {
  font-weight: 700;
}

.tg-profile-editor__persona-card-meta,
.tg-profile-editor__persona-card-url,
.tg-profile-editor__persona-titlebar a {
  color: #65736d;
  font-size: .86rem;
}

.tg-profile-editor__persona-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-profile-editor__persona-section {
  border: 1px solid rgba(39, 61, 49, .12);
  border-radius: 8px;
  padding: .85rem;
}

.tg-profile-editor__persona-empty {
  align-content: center;
  display: grid;
  gap: 1rem;
  justify-items: start;
  min-height: 12rem;
}

.tg-profile-editor__persona-empty h2 {
  margin: 0;
}

.tg-profile-editor__persona-label {
  color: #5c6c60;
  font-size: .9rem;
  font-weight: 700;
  margin: .35rem 0 -.35rem;
}

.tg-profile-editor__persona-media {
  display: grid;
  gap: .5rem;
}

.tg-profile-editor__persona-media .tg-pill-button {
  justify-content: center;
  width: 100%;
}

.tg-profile-editor__persona-media-preview {
  background-color: #e9eee9;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(39, 61, 49, .14);
}

.tg-profile-editor__persona-media-preview--profile {
  background-image: var(--profile-picture-url);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(39, 61, 49, .16);
  height: 5rem;
  width: 5rem;
}

.tg-profile-editor__persona-media-preview--header {
  aspect-ratio: 16 / 7;
  border-radius: 6px;
  min-height: 5rem;
}

.tg-public-profile-ssr__avatar {
  overflow: hidden;
}

.tg-public-profile-ssr__avatar-image {
  border-radius: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: var(--profile-picture-position, center center);
  position: absolute;
  width: 100%;
}

.tg-public-profile-ssr__sidebar-placeholder,
.tg-public-profile-ssr__plugin-placeholder {
  display: grid;
  gap: .75rem;
  min-height: 12rem;
  padding: 1.25rem;
}

.tg-public-profile-ssr__sidebar-placeholder > span {
  background: rgba(84, 106, 80, .12);
  border-radius: 999px;
  display: block;
  height: .75rem;
}

.tg-public-profile-ssr__sidebar-placeholder > span:first-child {
  height: 1rem;
  width: 58%;
}

.tg-public-profile-ssr__sidebar-placeholder > span:nth-child(2) {
  width: 88%;
}

.tg-public-profile-ssr__sidebar-placeholder > span:nth-child(3) {
  width: 72%;
}

.tg-public-profile-ssr__post-action-placeholder {
  background: rgba(84, 106, 80, .12);
  border-radius: 999px;
  display: block;
  height: 2rem;
  width: 2rem;
}

.tg-public-profile-ssr__posts {
  display: grid;
  gap: 1rem;
}

.tg-public-profile-ssr__posts-heading {
  font-size: 1rem;
  margin: 0;
}

.tg-public-profile-ssr__post {
  background: var(--app-card-bg, #fff);
  border: 1px solid rgba(38, 58, 45, .13);
  border-radius: var(--app-card-radius, 8px);
  box-shadow: var(--app-shadow);
  display: grid;
  gap: .75rem;
  margin: 0;
  overflow: hidden;
  padding: 1rem;
}

.tg-public-profile-ssr__post > p {
  margin: 0;
}

.tg-public-profile-ssr__post-header {
  align-items: baseline;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.tg-public-profile-ssr__post-header a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.tg-public-profile-ssr__post-header time {
  color: #66736b;
  font-size: .82rem;
  white-space: nowrap;
}

.tg-public-profile-ssr__media {
  display: grid;
  gap: .4rem;
  grid-template-columns: 1fr;
}

.tg-public-profile-ssr__media.is-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-public-profile-ssr__media a {
  display: block;
  min-width: 0;
}

.tg-public-profile-ssr__media img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 767px) {
  .tg-public-profile-ssr__post {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
  }
}

.tg-profile-editor__persona-section h3,
.tg-profile-editor__persona-section summary {
  color: #24362d;
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
}

.tg-profile-editor__persona-modal {
  padding: 1rem;
}

.tg-profile-editor__persona-modal-content {
  background: var(--app-card-bg);
  border-radius: var(--app-card-radius);
  box-shadow: var(--app-shadow);
  display: grid;
  gap: 1rem;
  margin: calc(2rem + env(safe-area-inset-top)) auto 2rem;
  max-width: 960px;
  padding: 1.5rem 2rem;
  width: min(100%, 960px);
}

.profile-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  width: 100vw;
  min-height: 100vh;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--tg-layer-modal);
  cursor: pointer;
  overflow: hidden;
  left: 0;
  right: 0;
}

.profile-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(800px, 90vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.profile-popup-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 85vh;
  display: block;
  margin: auto;
}

.profile-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  transition: background-color .2s;
  z-index: var(--tg-layer-modal-control);
  -webkit-tap-highlight-color: transparent;
}

.profile-popup-close {
  position: fixed;
  top: max(8px, calc(env(safe-area-inset-top) + 4px));
  right: max(8px, calc(env(safe-area-inset-right) + 4px));
  left: auto;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  color: #4b5563;
  z-index: var(--tg-layer-modal-control);
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  backdrop-filter: blur(8px);
}

.profile-popup-close:hover,
.profile-popup-close:focus-visible {
  color: #1f2937;
  background: rgba(255, 255, 255, .95);
  border-color: rgba(15, 23, 42, .24);
}

.tg-wall-posts__birthday-action {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
  min-height: 2.4rem;
  white-space: nowrap;
  text-decoration: none;
}

.tg-wall-posts__birthday-action i {
  display: block;
}

.tg-birthday-profile-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: 1rem;
}

.tg-birthday-profile-prompt__text {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.tg-birthday-profile-prompt__text span {
  color: #52606d;
  font-size: .92rem;
}

@media (max-width: 1023px) {
  .tg-profile__region {
    flex-basis: 100%;
    max-width: 100%;
    width: 100%;
  }

  .tg-profile-editor__workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .tg-profile-editor__wireframes {
    grid-template-columns: minmax(0, 1fr);
  }

  .tg-profile-editor__preview-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .tg-profile-editor__basics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-profile-editor__persona-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .tg-profile-editor__preview,
  .tg-profile-editor__style-panel {
    max-height: none;
    min-height: 28rem;
  }
}

@media (max-width: 767px) {
  .tg-birthday-profile-prompt {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-popup-close {
    top: max(6px, calc(env(safe-area-inset-top) + 3px));
    right: max(6px, calc(env(safe-area-inset-right) + 3px));
    left: auto;
    padding: 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .profile-popup-content {
    width: 95vw;
    max-width: 100%;
    z-index: 50000000;
    padding: 5px;
  }

  .profile-popup-close {
    top: 10px;
    right: 10px;
    z-index: 50000001;
  }

  .tg-profile {
    --tg-profile-avatar-size: var(--tg-profile-avatar-mobile-size, 6.5rem);
    padding: .75rem;
  }

  .tg-profile-editor {
    padding-bottom: calc(var(--tg-mobile-nav-offset, 5.75rem) + 6rem);
  }

  .tg-profile__avatar.profile-picture {
    height: var(--tg-profile-avatar-size);
    width: var(--tg-profile-avatar-size);
  }

  .tg-profile-editor__header,
  .tg-profile-editor__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tg-profile-editor__header-actions {
    background: var(--app-card-bg);
    border-radius: var(--app-card-radius);
    box-shadow: var(--app-shadow);
    bottom: calc(var(--tg-mobile-nav-offset, 5.75rem) + .65rem);
    justify-content: stretch;
    left: .7rem;
    padding: .5rem;
    position: fixed;
    right: .7rem;
    z-index: 50;
  }

  .tg-profile-editor__header-actions .tg-pill-button {
    flex: 1 1 8rem;
    min-width: 0;
    padding-left: .8rem;
    padding-right: .8rem;
  }

  .tg-profile-editor__basics-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tg-profile-editor__persona-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tg-profile-editor__preview,
  .tg-profile-editor__style-panel {
    min-height: 24rem;
  }

  .tg-profile-editor__persona-modal {
    padding: .75rem;
  }

  .tg-profile-editor__persona-modal-content {
    margin: calc(3.5rem + env(safe-area-inset-top)) auto calc(var(--tg-mobile-nav-offset, 5.75rem) + 1rem);
    padding: 1rem;
  }

  .tg-profile-editor__style-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .tg-profile-editor__header-actions {
    gap: .4rem;
    left: .5rem;
    right: .5rem;
  }

  .tg-profile-editor__header-actions .tg-pill-button {
    flex-basis: calc(50% - .4rem);
    font-size: .9rem;
    padding-left: .65rem;
    padding-right: .65rem;
  }

  .tg-profile-editor__header-actions a.tg-pill-button {
    flex-basis: 100%;
  }
}
