A study of teens shows how motivation, compassion, courage, and school safety shape confidence and resilience in students.