Zaslat SMS: Principles of phase equilibria