I think I'm figuring it out. The write protect on the styles and pads always defaults back to being "on" after startup, so I guess it always needs to be turned off when saving the pads or STS's.