/* Keep the desktop profile actions inside their panel at every viewport width. */
@media (min-width: 821px) {
  html body .container.profile-page #owner-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  html body .container.profile-page #owner-actions #open-settings {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  html body .container.profile-page #owner-actions #profile-actions-extra {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  html body .container.profile-page #owner-actions #profile-actions-extra .btn {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html body .container.profile-page #owner-actions #logout {
    margin-left: 0 !important;
  }
}

@media (min-width: 821px) and (max-width: 1120px) {
  html body .container.profile-page #owner-actions #profile-actions-extra {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
