Context and problem
The operator observed an unstyled Workbench popup during the headed keyboard regression run for #20492. A focused browser probe confirmed the pane remains plain after mount and network idle: the parent has the example palette and Demo A/B sheets; the popup has only basic Neo sheets. Its counter falls from 34px to 16px and its flex card becomes a block. No CSS request fails—the relevant files are never requested.
Architectural reality and fix
examples/dashboard/crossWindow/Viewport.mjs deliberately creates an empty render target for ?popout=; it does not instantiate DemoBWorkspace. The latter currently declares the example palette and Demo A skin, and its own stylesheet contains the CounterPane and popout-host rules. CounterPane has no own stylesheet dependency. App#insertThemeFiles loads dependencies per window, so the main window's sheets are not inherited by the popup.
Declare the existing shared example palette and Demo A/B styling on the viewport that exists in both boot modes. Keep the popup a pure render target; no extra workspace, pane recreation, global CSS injection or Engine theme-loader change. The shared example viewport/workspace rules must explicitly specialize the Engine classes so later-loaded base CSS cannot replace the example background; CI's existing dark/light palette assertions exposed that cascade dependency.
Prescription checked: examples/dashboard/crossWindow/Viewport.mjs — owns the two render-target modes and their shared visual shell. Prior #15923 addressed a distinct Workstation token-bridge scope defect; it does not fix this example's absent stylesheet dependencies.
Contract Ledger
| Surface |
Authority |
Behavior |
Edge/lifetime boundary |
Docs |
Evidence |
| Popup viewport theme dependencies |
Existing example Palette, DemoAWorkspace and DemoBWorkspace SCSS; App.insertThemeFiles |
Both main and popup load the existing palette and pane/shell rules |
No missing-class workaround, copied CSS or added workspace instance |
Viewport config JSDoc |
Real popup stylesheet requests and computed style |
| Traveling Workbench pane |
CounterPane + existing keyboard detach journey |
Same live pane renders as the styled card after reparenting |
Counter continuity and ordinary popup lifecycle preserved |
Existing class docs |
Headed screenshot and existing native journey |
| Regression check |
DemoBKeyboardDetachNL first journey |
Assert visible pane styling, not only popup/announcement existence |
Fails on old dependency declaration; no test-injected styles |
Test assertion context |
Red-before-fix / green-after-fix browser check |
Acceptance Criteria
Out of scope
Keyboard decomposition (#20492), command semantics, window acquisition, general theme-loader redesign, and Workstation's separate styling contract.
Decision Record impact: none; declared theme dependencies restore existing visual intent.
Live latest-open sweep: latest20 created-descending Engine issues checked 2026-11-06T22:11Z. Closed "popup styling" search and #15923 body/comments checked; no same-example fix. Recent all-status A2A has no competing styling claim. Three MC domain probes found the older Workstation precedent; current source and browser evidence determine this fix. Own assigned work (#9553, #6611, #20492) does not own this visual bug. Immediate self-owned operator-observed repair, not an unclaimed contributor leaf.
Related: #20492; #15614; #15923.
Origin Session ID: 7367b697-abdc-4e46-963d-5c57378b3551
Retrieval Hint: Demo B CounterPane popout missing Palette DemoBWorkspace stylesheet dependency
Context and problem
The operator observed an unstyled Workbench popup during the headed keyboard regression run for #20492. A focused browser probe confirmed the pane remains plain after mount and network idle: the parent has the example palette and Demo A/B sheets; the popup has only basic Neo sheets. Its counter falls from 34px to 16px and its flex card becomes a block. No CSS request fails—the relevant files are never requested.
Architectural reality and fix
examples/dashboard/crossWindow/Viewport.mjsdeliberately creates an empty render target for?popout=; it does not instantiateDemoBWorkspace. The latter currently declares the example palette and Demo A skin, and its own stylesheet contains the CounterPane and popout-host rules.CounterPanehas no own stylesheet dependency.App#insertThemeFilesloads dependencies per window, so the main window's sheets are not inherited by the popup.Declare the existing shared example palette and Demo A/B styling on the viewport that exists in both boot modes. Keep the popup a pure render target; no extra workspace, pane recreation, global CSS injection or Engine theme-loader change. The shared example viewport/workspace rules must explicitly specialize the Engine classes so later-loaded base CSS cannot replace the example background; CI's existing dark/light palette assertions exposed that cascade dependency.
Prescription checked:
examples/dashboard/crossWindow/Viewport.mjs— owns the two render-target modes and their shared visual shell. Prior #15923 addressed a distinct Workstation token-bridge scope defect; it does not fix this example's absent stylesheet dependencies.Contract Ledger
Acceptance Criteria
Out of scope
Keyboard decomposition (#20492), command semantics, window acquisition, general theme-loader redesign, and Workstation's separate styling contract.
Decision Record impact: none; declared theme dependencies restore existing visual intent.
Live latest-open sweep: latest20 created-descending Engine issues checked 2026-11-06T22:11Z. Closed "popup styling" search and #15923 body/comments checked; no same-example fix. Recent all-status A2A has no competing styling claim. Three MC domain probes found the older Workstation precedent; current source and browser evidence determine this fix. Own assigned work (#9553, #6611, #20492) does not own this visual bug. Immediate self-owned operator-observed repair, not an unclaimed contributor leaf.
Related: #20492; #15614; #15923.
Origin Session ID: 7367b697-abdc-4e46-963d-5c57378b3551 Retrieval Hint: Demo B CounterPane popout missing Palette DemoBWorkspace stylesheet dependency