.Profile {
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;

  @supports (overflow-y: overlay) {
    overflow-y: overlay !important;
  }

  > .profile-info > .ChatInfo {
    grid-area: chat_info;

    .status.online {
      color: var(--color-primary);
    }
  }

  > .profile-info > .ChatExtra {
    padding: .875rem .5rem .5rem;
    box-shadow: inset 0 -.0625rem 0 0 var(--color-background-secondary-accent);
    border-bottom: .625rem solid var(--color-background-secondary);

    .narrow {
      margin-bottom: 0;
    }

    .inactive.no-selection {
      user-select: auto;
      -webkit-user-select: auto !important;
    }

    .Switcher {
      margin-left: auto;
    }
    [dir=rtl] {
      .Switcher {
        margin-left: 0;
        margin-right: auto;
      }
    }
  }
}

.shared-media {
  display: flex;
  flex-direction: column-reverse;

  .TabList {
    background: var(--color-background);
    top: -1px;
    z-index: 1;

    .Tab {
      padding: 1rem .25rem;
      i {
        bottom: -1rem;
      }
    }
  }

  .Transition {
    flex: 1;
  }

  .content {
    &.empty-list {
      height: 100%;
      padding-top: 5rem;
      display: flex;
      align-items: flex-start;
      justify-content: center;

      .Spinner {
        --spinner-size: 2.75rem;
      }
    }

    &.media-list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-auto-rows: 1fr;
      grid-gap: .0625rem;
    }

    &.documents-list {
      padding: 1.25rem;

      & .File + .File {
        margin-top: 1.25rem;
      }
    }

    &.links-list {
      padding: 1.25rem;

      .ProgressSpinner,
      .message-upload-progress {
        display: none;
      }
    }

    &.audio-list {
      padding: 1.25rem;

      & .Audio {
        .media-loading {
          top: 0;
          left: 0;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        & + .Audio {
          margin-top: 1.6875rem;
        }
      }
    }

    &.members-list {
      padding: 0.5rem 1rem;

      @media (max-width: 600px) {
        padding: .5rem 0;
      }
    }
  }
}
