.calibre5 is not a class in your input document. extra css applies to the input document. calibre5 is a generated class in the output document. Read this
https://manual.calibre-ebook.com/con...l#introduction if you want to understand how conversion works.