Added complex styling for each device type with validation and routing.