Implement style sharing cache for cascade resolution
Adds a StyleCache that reuses computed styles across elements with
identical styling inputs (matched rules, inline style, parent style),
avoiding redundant cascade resolution. Cache keys are computed from
hashed matched rule sets, inline style attribute strings, and parent
style IDs. The cache is scoped per style resolution pass.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>