#!/usr/bin/env python3 """ check-classes.py — guardrail 13.7: every class in the markup is defined, and every class in the CSS is used. Two directions, one rule: a class is a name shared between markup and a stylesheet, and a name that exists on only one side is a bug in both directions. markup -> CSS An unstyled class is invisible in the editor and in the stylesheet, so nobody notices it is unstyled. `.spinner` without `.spinner--small` renders nothing; `.btn-ghost` that was renamed in CSS but not in the template looks styled and is not. CSS -> markup Dead rules. Cheap to keep, and what makes a 5,700-line common.css unreadable: the next reader cannot tell which of the four `.tab-btn` rules is live. The shadow root is part of "defined somewhere": `chart-card-element.ts` carries 756 lines of CSS in `