#!/usr/bin/env python3 """Re-theme and normalize a beautiful-mermaid SVG into a Kami-styled, WeasyPrint-safe SVG. beautiful-mermaid (https://github.com/lukilabs/beautiful-mermaid) hangs its seven color roles on CSS custom properties on the root ```` and derives the rest with ``color-mix(in srgb, ...)``. WeasyPrint's inline-SVG renderer does not resolve ``color-mix()``, does not reliably cascade SVG ``