/* My profile — mobile story view (≤599.98px) */

@media (max-width: 599.98px) {
  .page-shell:has(.my-profile-page) > header {
    display: none;
  }

  .my-profile-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    background: #fff;
  }

  .my-profile-page__toolbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 64px;
    min-height: 64px;
    background: #f2ccb3;
  }

  .my-profile-page__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
  }

  .my-profile-page__settings {
    position: absolute;
    top: 50%;
    right: var(--page-gutter-x);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transform: translateY(-50%);
    line-height: 0;
  }

  .my-profile-page__settings img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .my-profile-page__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .my-profile-page__media {
    position: relative;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
  }

  .my-profile-page__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
  }

  .my-profile-page .profile-photo-slider {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .my-profile-page .profile-photo-slider__frame {
    height: 100%;
    border-radius: 0;
    background: #111;
  }

  .my-profile-page .profile-photo-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .my-profile-page .profile-photo-slider--story .profile-photo-slider__segments {
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 5px;
  }

  .my-profile-page .profile-photo-slider--story .profile-photo-slider__segment {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
  }

  .my-profile-page .profile-photo-slider--story .profile-photo-slider__segment.is-active {
    background: #ff8a3d;
  }

  .my-profile-page__details {
    padding: 20px;
    background: #fff;
  }

  .my-profile-page__intro {
    margin-bottom: 1rem;
  }

  .my-profile-page__intro.profile-detail__header {
    display: block;
    margin-bottom: 8px;
  }

  .my-profile-page__intro .profile-detail__name {
    font-size: 22px;
    font-weight: 600;
  }

  .my-profile-page__intro .profile-detail__job {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-muted);
  }

  .my-profile-page__verified-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
  }

  .my-profile-page__block {
    margin-bottom: 20px;
  }

  .my-profile-page__details .profile-tags-section + .profile-tags-section {
    margin-top: 20px;
  }
}
