Each drawer panel category gets a distinct hue so the user reads the
panel's *kind* at a glance:
- Text scopes (format, block) → primary accent (project violet)
- Structure scopes (cell, row, table, list, list-item) → secondary
(slate-blue) — the contextual scaffolding around the text
- Media scopes (image, code) → fulfill (teal-mint) — opaque blocks
- Default (document outline) → neutral toolbar tone
Implementation: scope hue resolves into `--_drawer-scope-accent` via
`[data-words-drawer-panel][data-mode=...]` selectors. Then:
- The left border (already used as depth indicator) inherits the
scope accent at decreasing alpha as depth grows (leaf 100%, depth 1
65%, 2 40%, 3 25%).
- Open panel headers paint with a 6% tint of the scope accent + the
accent color for the title text.
- Active action chips inside a panel inherit the scope accent for
background + border + text, so the active variant matches the
scope's color identity (no more "always-violet" Striped/Plain).
Visual cohesion: a user in a table cell with text selected now sees:
- FORMAT panel header in violet (text scope)
- CELL/ROW/TABLE headers in slate-blue when expanded (structure scope)
- IMAGE/CODE panels in teal-mint (media scope)
- DEFAULT in neutral
CSS-only change; nothing in soma/morfo touched.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>