/* One consistent account chip: profile image plus the student's name only. */
@media (min-width: 760px) {
  .bottom-nav .nav-profile-greeting {
    min-height: 58px;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: 1fr;
    column-gap: 8px;
    padding: 9px 10px;
  }

  .bottom-nav .nav-profile-greeting .nav-greeting-avatar {
    grid-row: auto;
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .bottom-nav .nav-profile-greeting b {
    align-self: center;
    font-size: .76rem;
  }
}

/* Mobile account chip follows the compact white reference card. */
@media (max-width: 520px) {
  body.is-authenticated .mobile-header-profile {
    grid-template-columns: minmax(0, 1fr) 38px !important;
    grid-template-rows: 1fr;
    gap: 8px !important;
    min-width: 154px !important;
    min-height: 47px !important;
    padding: 4px 2px 4px 7px !important;
    border: 0 !important;
    border-radius: 17px !important;
    background: #fff !important;
    box-shadow: 0 9px 24px rgba(36, 63, 108, .10) !important;
  }

  .mobile-header-profile::before,
  .mobile-header-profile > svg {
    display: none !important;
  }

  .mobile-header-profile__avatar {
    grid-column: 2;
    grid-row: 1;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    overflow: visible !important;
    justify-self: end;
    transform: translateX(1px);
    box-shadow: 0 0 0 2px #dceaff, 0 5px 12px rgba(37, 99, 235, .18) !important;
  }

  .mobile-header-profile__avatar::after {
    right: auto !important;
    bottom: -4px !important;
    left: -4px !important;
    z-index: 3;
  }

  .mobile-header-profile__copy {
    grid-column: 1;
    grid-row: 1;
    direction: rtl;
    text-align: right;
  }

  .mobile-header-profile__copy b {
    padding-top: 1px;
    font-size: .78rem !important;
  }
}
