My first time repotting an orchid I cut off a lot of viable roots. It can be hard to tell for a beginner, but usually they are fine unless they are complete mush. I’m still a beginner, but I feel like I’m finally getting the hang of it.. it took quite a few dead orchids though to learn... unfortunately.