Teenagers’ sleep patterns may be a clue to their risk of depression.