VPORTA.IN |= 1<<7;
Looked odd to me.
I totally missed that in the datasheet (even though I know I read it).
Glad you posted that code

datasheet-
Writing to a bit of VPORTx.IN will toggle the corresponding bit in VPORTx.OUT.
There is the missing VPORT TGL.