.talk-profile__summary {
  display: grid;
  width: 100%;
  max-width: 760px;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  column-gap: var(--spacing-sm);
  row-gap: var(--spacing-micro);
  align-items: center;
  margin: 0 auto;
}

.talk-profile__avatar {
  grid-column: 1;
  grid-row: 1 / 3;
  background: var(--semantic-border);
}

.talk-profile__summary h2 {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-28);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talk-profile__intro {
  display: flex;
  min-width: 0;
  grid-column: 2 / 4;
  grid-row: 2;
  flex-direction: column;
  color: var(--neutral-tx2-title);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-20);
}

.talk-profile__counts {
  grid-column: 3;
  grid-row: 1;
  flex-wrap: nowrap;
}

.talk-profile__count-divider {
  display: none;
}

.talk-profile__follow {
  width: 100%;
  max-width: none;
  grid-column: 1 / 4;
  grid-row: 3;
  margin-top: 18px;
}

@media (max-width: 767px) {
  .talk-profile-page .community-global-header__inner,
  .talk-profile__panel {
    box-sizing: border-box;
  }

  .talk-profile__mobile-account .community-mobile-account__avatar {
    border-color: var(--semantic-border-hover);
    background: var(--semantic-border);
  }

  .talk-profile-main {
    padding: 0;
  }

  .talk-profile,
  .talk-profile__tools,
  .talk-profile__panel {
    width: 100%;
    min-width: 0;
  }

  .talk-profile__tools {
    padding: var(--spacing-sm) var(--spacing-3xl);
  }

  .talk-profile-page .community-actions button,
  .talk-profile-page .community-actions button:first-child,
  .talk-profile__register {
    gap: var(--spacing-2xs);
    padding: var(--spacing-sm) 0;
    color: var(--neutral-tx3-sub);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-20);
  }

  .talk-profile__panel {
    padding: var(--spacing-sm) var(--spacing-sm) 0;
    border-top: var(--stroke-1) solid var(--semantic-border);
    border-radius: var(--radius-lg);
    box-shadow: none;
  }

  .talk-profile__summary {
    max-width: none;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: var(--spacing-sm);
    row-gap: var(--spacing-micro);
    padding: var(--spacing-sm);
  }

  .talk-profile__avatar {
    width: 48px;
    height: 48px;
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .talk-profile__summary h2 {
    grid-column: 2;
    grid-row: 1;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-20);
  }

  .talk-profile__intro {
    grid-column: 2;
    grid-row: 2;
    font-size: var(--font-size-base);
    line-height: var(--line-height-20);
  }

  .talk-profile__counts {
    display: grid;
    width: 100%;
    grid-column: 1 / 3;
    grid-row: 3;
    grid-template-columns: max-content 3px max-content 3px max-content 3px 18px;
    gap: 0;
    justify-content: space-between;
    margin-top: var(--spacing-md);
  }

  .talk-profile__counts > span + span::before {
    display: none;
  }

  .talk-profile__counts .talk-profile__count-divider {
    display: block;
    width: 3px;
    height: 3px;
    align-self: center;
    border-radius: var(--radius-full);
    background: currentColor;
  }

  .talk-profile__counts button {
    margin-left: 0;
  }

  .talk-profile__follow {
    grid-column: 1 / 3;
    grid-row: 4;
    margin-top: var(--spacing-xs);
  }

  .talk-profile__tabs {
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
  }

  .talk-profile__tabs a {
    min-height: 42px;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-size: var(--font-size-base);
    line-height: var(--line-height-20);
  }

  .talk-profile__content {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .profile-post {
    padding: var(--spacing-lg) var(--spacing-sm) calc(var(--spacing-lg) + var(--stroke-1));
  }

  .profile-post header {
    gap: var(--spacing-sm);
  }

  .profile-post__body {
    gap: var(--spacing-lg);
    margin-left: 0;
  }

  .profile-post__body > p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-20);
  }

  .profile-post__media {
    border-radius: var(--radius-sm);
  }

  .profile-post__media.is-width,
  .profile-post__media.is-length {
    width: 100%;
    height: auto;
  }

  .profile-post__media.is-width {
    aspect-ratio: 200 / 150.7538;
  }

  .profile-post__media.is-length {
    aspect-ratio: 352.809 / 471;
  }

  .talk-profile__panel > .community-loading {
    padding-top: var(--spacing-sm);
  }
}

@media (max-width: 359px) {
  .talk-profile__mobile-account strong {
    display: none;
  }

  .talk-profile__tools {
    padding-right: var(--spacing-lg);
    padding-left: var(--spacing-lg);
  }
}