/* Maintains packages/fingerprint/src/normalizers/css.ts as an authored fingerprint authored module so agents can evolve it without rediscovering local boundaries. Do not introduce app-specific runtime composition or deployment behavior into this reusable package source file. RFC-0364: initial CSS normalizer. */ import postcss from "postcss"; import { byteHash } from "@warpgogol/werkstatt-shared/fingerprint"; export function normalizeCss(content: string): string { const root = postcss.parse(content); root.walkComments((node) => { node.remove(); }); const result = root.toString().replace(/\s+/g, " ").trim(); return byteHash(result); }