NPC Attribute Totals

Included total previews in the event calculations are used. Preview with npc-CT.
More CSS and cosmetic fixes.