Atomic mass
The atomic mass or relative isotopic mass refers to the mass of a single particle, and therefore is tied to a certain specific isotope of an element. The dimensionless standard atomic weight instead refers to the average (mathematical mean) of atomic mass values of a typical naturally-occurring mixture of isotopes for a sample of an element. Atomic mass values are thus commonly reported to many more significant figures than atomic weights. Standard atomic weight is related to atomic mass by the abundance ranking of isotopes for each element. It is usually "about" the same value as the atomic mass of the most abundant isotope, other than what looks like (but is not actually) a rounding difference.
Mass–energy equivalence
For things and systems made up of many parts, like an atomic nucleus, planet, or star, the relativistic mass is the sum of the relativistic masses (or energies) of the parts, because energies are additive in isolated systems. This is not true in open systems, however, if energy is subtracted. For example, if a system is "bound" by attractive forces, and the energy gained due to the forces of attraction in excess of the work done is removed from the system, then mass is lost with this removed energy. For example, the mass of an atomic nucleus is less than the total mass of the protons and neutrons that make it up, but this is only true after this energy from binding has been removed in the form of a gamma ray (which in this system, carries away the mass of the energy of binding). This mass decrease is also equivalent to the energy required to break up the nucleus into individual protons and neutrons (in this case, work and mass would need to be supplied). Similarly, the mass of the solar system is slightly less than the sum of the individual masses of the sun and planets.