The Scottish Government's embattled heritage agency is facing a repair and retrofitting bill of around £842 million to its historic properties, ...