.story-profile-page .community-main {
  padding-bottom: var(--spacing-3xl);
}

.story-profile {
  padding: var(--spacing-lg);
  overflow: hidden;
}

.story-profile__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0 0 var(--spacing-lg);
  text-align: center;
}

.story-profile__profile-badge {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

.story-profile__profile-badge[hidden] {
  display: none;
}

.story-profile__profile-badge--planner {
  background: linear-gradient(var(--brand-primary), var(--brand-primary-dark));
}

.story-profile__profile-badge--planner img {
  width: 11px;
}

.story-profile__profile-badge--place {
  background: linear-gradient(var(--semantic-border), var(--semantic-input-border));
}

.story-profile__profile-badge--place img {
  width: 12px;
}

.story-profile__avatar {
  display: flex;
  width: 80px;
  height: 80px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--spacing-3xs);
  border: var(--stroke-1) solid var(--badge-alpha-w-20);
  border-radius: var(--radius-full);
  background: var(--semantic-border);
}

.story-profile__avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.story-profile__header h2,
.story-profile__dday,
.story-profile__stats {
  margin: 0;
}

.story-profile__header h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-28);
}

.story-profile__dday {
  font-size: var(--font-size-base);
  line-height: var(--line-height-20);
}

.story-profile__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0;
  color: var(--neutral-tx3-sub);
  font-size: var(--font-size-base);
  line-height: var(--line-height-20);
  list-style: none;
}

.story-profile__stats li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.story-profile__stats li + li::before {
  content: '';
  width: 3px;
  height: 3px;
  margin-right: var(--spacing-sm);
  border-radius: var(--radius-full);
  background: var(--neutral-tx4-dissolved);
}

.story-profile__more {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.story-profile__more span {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-micro);
}

.story-profile__more img {
  width: 2px;
  height: 2px;
}

.story-profile__actions {
  display: grid;
  width: min(500px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-sm);
}

.story-profile__actions button {
  min-height: 40px;
  padding: var(--spacing-sm) var(--spacing-md);
  border: var(--stroke-1) solid var(--brand-primary);
  border-radius: var(--radius-sm);
  color: var(--brand-primary);
  background: var(--semantic-white);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-20);
  cursor: pointer;
}

.story-profile__actions > button:only-child,
.story-profile__actions.has-single-action > button:not([hidden]) {
  width: 240px;
  grid-column: 1 / -1;
  justify-self: center;
}

.story-profile__actions .story-profile__follow {
  color: var(--semantic-white);
  background: var(--brand-primary);
}

.story-profile__actions .story-profile__follow.is-active {
  color: var(--brand-primary);
  background: var(--semantic-white);
}

.story-profile__toast {
  position: fixed;
  z-index: 100;
  top: 50%;
  left: 50%;
  min-width: 240px;
  margin: 0;
  padding: var(--spacing-lg) var(--spacing-3xl);
  border-radius: var(--radius-full);
  color: var(--semantic-white);
  background: var(--badge-alpha-b-70);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-20);
  text-align: center;
  transform: translate(-50%, -50%);
}

.story-profile__toast[hidden] {
  display: none;
}

.story-profile__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border-bottom: var(--stroke-1) solid var(--semantic-input-border);
}

.story-profile__tabs button {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  border: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--neutral-tx3-sub);
  background: var(--semantic-bg);
  font-family: var(--font-family-base);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-22);
  text-decoration: none;
  cursor: pointer;
}

.story-profile__tabs button.is-active {
  position: relative;
  min-height: 43px;
  margin-bottom: -1px;
  border: var(--stroke-1) solid var(--semantic-input-border);
  border-bottom: 0;
  color: var(--neutral-tx2-title);
  background: var(--semantic-white);
  font-weight: var(--font-weight-medium);
}

.story-profile__grid {
  scroll-margin-top: var(--spacing-lg);
}

@media (max-width: 1023px) {
  .story-profile .community-card:nth-child(n + 7) {
    display: block;
  }
}

@media (max-width: 767px) {
  .story-profile {
    padding: var(--spacing-base);
  }

  .story-profile__header {
    padding-top: 0;
  }

  .story-profile__actions {
    gap: var(--spacing-sm);
  }

  .story-profile__tabs {
    gap: var(--spacing-sm);
  }
}

@media (max-width: 479px) {
  .story-profile__stats {
    gap: var(--spacing-3xs);
    font-size: var(--font-size-sm);
  }

  .story-profile__stats li + li::before {
    margin-right: var(--spacing-micro);
  }
}

