Your code solve the tabs border removal but
Grid alignment not fixed.
See on the right there is a big gap
https://youtube.com/shorts/-nq5oKfc_ZI?feature=share