In the crystal, the mol­ecules are connected by N—H⋯N hydrogen bonds into dimers with an(12) motif, forming chains along theb-axis direction. These chains are linked to each other by N—H⋯N hydrogen bonds, N–H⋯π and π–π inter­actions, forming a three-dimensional network.