Artefact: shipped CSS and markup
Commentary: not the product
Palette Default Edo
Scheme Auto Light Dark
Floating surfaces in the browser report
Iteration 2 of the tooltip gallery . That page chose
one tooltip; this one starts from a bug (the speaker picker cut off on the project dashboard) and
audits every menu, picker, popover, tooltip and toast the theme draws: where it is placed, its
shadow, its z-index. An investigation: nothing in the product changes with it. Generated
from the tree by tooltip-gallery-v2.gen.py; rerun it after a theme change.
1. The person picker on the dashboard
1 · shipped Project dashboard, Sessions pane, picker open on p3 (web, 900 px)
Measured here …
Commentary The picker is an absolutely positioned <ul> inside its badge's .bn-person-picker-anchor (SpeakerPickerTrigger.tsx). The pane it opens in, .bn-dashboard-pane, sets overflow-x: auto so a wide table scrolls sideways. CSS cannot scroll one axis and leave the other visible: when one axis is not visible, a visible on the other computes to auto. So the pane is a scroll box in both directions, and the part of the picker that hangs below the last row is inside it, behind a scrollbar. The probe line under each frame reads this from the engine you have this page open in.
The Mac app is fine because it never draws this <ul>: openNativePicker hands the same model to an AppKit popover, which is a window of its own.
2 · one variable Same, with the pane's overflow-x: auto taken out
Measured here …
Commentary Proof of cause, not a fix. Taking the overflow away lets the picker float, but the pane is there to scroll a wide table sideways at narrow widths, and every other control inside it would now be one rule away from the same bug. overflow-x: clip would not help either: it keeps the other axis visible, but it cuts a wide table instead of scrolling it, and it still cuts a picker that hangs off the pane's right edge.
3 · floating layer Same, with the picker moved to <body> and placed from its badge
Measured here …
Commentary The picker is the same element with the same classes, moved to the end of <body> and given position: fixed at its badge's bottom-left corner (this page's script, standing in for createPortal). No ancestor can cut it, because it has none but <body>. The app already does this for one floating surface: TapestryThumb.tsx portals the tapestry's hover frame and places it from a measured rect. Dialogs and toasts portal too.
Measured here: … . That decides whether the in-place shortcut (leave the picker where it is, make it position: fixed) is available: layout containment, which container-type can bring with it, makes the container the containing block for fixed children, and then they are cut like absolute ones. Even where it is not trapped, the shortcut is fragile: any ancestor that later gains a transform, filter or will-change (an animation, say) traps it again, and it needs the same measured placement a portal does. The portal costs the same and has nothing to go wrong under it.
2. Every floating surface
Commentary 22 surfaces. 15 are placed in flow : absolutely positioned inside the element that opens them, so each is exposed to the same bug wherever an ancestor scrolls, clips or contains paint. The house has already patched this three times, one host at a time:
bristlenose/theme/molecules/tag-input.css:103: raise the card with an open suggestion list over its siblings.bristlenose/theme/molecules/tag-input.css:116: turn off the card's content-visibility (paint containment) while it is open.frontend/src/islands/discussion/discussion.css:387: the same for a Discussion block.Each patch fixes one host for one surface. The picker on the dashboard is the fourth host, and it cannot be patched the same way, because the pane's overflow has a job.
Surface Family Rule Placed z-index box-shadow Shadow is Export menu; the person picker reuses its box menu bristlenose/theme/organisms/global-nav.css:365 in flow 200 0 4px 12px var(--bn-colour-shadow) token View switcher menu bristlenose/theme/organisms/toolbar.css:123 in flow 200 0 4px 12px var(--bn-colour-shadow) token Tag filter menu bristlenose/theme/molecules/tag-filter.css:15 in flow 200 0 4px 12px var(--bn-colour-shadow) token Search tokens and suggestions menu bristlenose/theme/molecules/search.css:176 in flow 200 0 4px 12px var(--bn-colour-shadow) token Tag suggestions menu bristlenose/theme/molecules/tag-input.css:9 in flow 50 0 2px 8px var(--bn-colour-shadow) token Hidden quotes menu bristlenose/theme/molecules/hidden-quotes.css:61 in flow 200 0 4px 12px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)) own dark Transcript selector menu bristlenose/theme/templates/transcript.css:145 in flow 20 0 4px 12px rgb(0 0 0 / 0.12) literal Screens menu menu frontend/src/islands/screens/screens.css:157 in flow 1000 0 4px 16px var(--bn-colour-shadow), 0 1px 4px var(--bn-colour-shadow) token Codebook group confirm popover bristlenose/theme/organisms/codebook-panel.css:591 in flow 100 0 4px 16px var(--bn-colour-shadow, rgba(0, 0, 0, 0.12)) mixed Session tapestry popover popover bristlenose/theme/organisms/session-tapestry.css:208 in flow 20 var(--bn-focus-shadow) token Shortcut tooltip tooltip bristlenose/theme/atoms/tooltip.css:12 in flow 400 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04) literal Rationale tooltip tooltip bristlenose/theme/molecules/autocode-report.css:75 in flow 300 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04) literal Heatmap cell tooltip tooltip bristlenose/theme/organisms/signals.css:625 in flow 10 0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06) literal Moderator question pill tooltip bristlenose/theme/atoms/moderator-question.css:18 in flow 2 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04) literal Tapestry hover frame tooltip bristlenose/theme/organisms/session-tapestry.css:414 portal 20 var(--bn-focus-shadow) token Transcript gutter frame (hot) tooltip frontend/src/islands/transcript/transcript-gutter.css:254 in flow — 0 6px 20px rgb(0 0 0 / 0.18), 0 0 0 1px var(--bn-colour-border) mixed Clipboard toast notification bristlenose/theme/atoms/toast.css:3 portal var(--bn-toast-z) — none Activity chip notification bristlenose/theme/atoms/activity-chip.css:15 portal — 0 4px 20px rgba(0, 0, 0, 0.25) literal AutoCode toast notification bristlenose/theme/atoms/autocode-toast.css:3 fixed 200 0 4px 20px rgba(0, 0, 0, 0.25) literal Contents overlay overlay bristlenose/theme/organisms/sidebar.css:354 fixed — var(--bn-overlay-shadow) token Dialog overlay bristlenose/theme/atoms/modal.css:72 portal — var(--bn-modal-shadow) token Drag ghost drag bristlenose/theme/organisms/codebook-panel.css:556 fixed 200 0 2px 8px var(--bn-colour-shadow) token
3. Every floating shadow, light and dark
Commentary 13 distinct shadows for what is, at most, four levels (raised, floating, notification, modal). 7 are written as fixed colours, so they ignore the palette and stay the same in dark, where a 4–12% black shadow on a near-black page draws nothing: compare the right-hand box of each pair. One writes its own dark value with light-dark(). Those built on --bn-colour-shadow (10% black in light, 40% in dark, tinted per palette) are the only ones that still show a faint edge in dark, and even there the 1px border is doing most of the work. The tooltip spec in theme/CLAUDE.md writes its shadow as a literal, so the written rule is itself one of the dark-mode misses. The tapestry popover borrows --bn-focus-shadow, a focus token, for elevation.
S1 0 4px 12px var(--bn-colour-shadow)Export menu; the person picker reuses its box; View switcher; Tag filter; Search tokens and suggestions
S2 0 2px 8px var(--bn-colour-shadow)Tag suggestions; Drag ghost
S3 0 4px 12px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3))Hidden quotes
S4 0 4px 12px rgb(0 0 0 / 0.12)Transcript selector
S5 0 4px 16px var(--bn-colour-shadow), 0 1px 4px var(--bn-colour-shadow)Screens menu
S6 0 4px 16px var(--bn-colour-shadow, rgba(0, 0, 0, 0.12))Codebook group confirm
S7 var(--bn-focus-shadow)Session tapestry popover; Tapestry hover frame
S8 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04)Shortcut tooltip; Rationale tooltip; Moderator question pill
S9 0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06)Heatmap cell tooltip
S10 0 6px 20px rgb(0 0 0 / 0.18), 0 0 0 1px var(--bn-colour-border)Transcript gutter frame (hot)
S11 0 4px 20px rgba(0, 0, 0, 0.25)Activity chip; AutoCode toast
S12 var(--bn-overlay-shadow)Contents overlay
S13 var(--bn-modal-shadow)Dialog
4. The z-index ladder
Commentary Two values are tokens (--bn-overlay-z, --bn-toast-z); the rest are numbers chosen file by file. Menus sit at 200, tooltips at 300 and 400, and the Screens menu at 1000, level with the dialog backdrop. A floating layer makes most of these moot, since a portalled surface competes only with other portalled surfaces.
1100 Toast (--bn-toast-z) 1000 Screens menu 1000 Dialog backdrop (--bn-overlay-z) 400 Shortcut tooltip 300 Rationale tooltip 200 View switcher 200 Tag filter 200 Search tokens and suggestions 200 Hidden quotes 200 Export menu; the person picker reuses its box 200 Drag ghost 200 AutoCode toast 100 Toolbar, sticky 100 Codebook group confirm 50 Tag suggestions 20 Transcript selector 20 Tapestry hover frame 20 Session tapestry popover 10 Heatmap cell tooltip 2 Moderator question pill
5. Decisions this asks for
Commentary Nothing here is built. The decisions, in the order they unblock the picker fix:
1 Floating layer rule Anything that floats over content (menu, dropdown, picker, popover, tooltip) renders in a floating layer at the end of <body>, never in flow. One shared primitive does the portal, the placement from the trigger's rect, flipping above when there is no room below, and repositioning on scroll and resize. The picker is the first user; the others move as they are touched. Owner call: one primitive now, or the picker alone first. 2 Placement engine Hand-rolled (as TapestryThumb does) or the platform's popover attribute and CSS anchor positioning, which put the surface in the top layer and need no portal. Browser and WKWebView support for anchor positioning has to be measured on the Mac targets before it is chosen; this page has not measured it. 3 Elevation tokens Two new shadow tokens, --bn-popover-shadow (every menu, picker, popover, tooltip, one value, as macOS draws menus and popovers alike) and --bn-notification-shadow (toast, chip), built only from colour tokens that exist, beside --bn-overlay-shadow and --bn-modal-shadow. --bn-control-raised-shadow is a control, not a floating surface, and stays. Decided 26 Nov 2026 (owner): B , the shadow plus the dialog's hairline in place of the border, and --bn-notification-shadow for toasts and the chip. 4 z-index ladder Two new layers, --bn-sticky-z and --bn-popover-z, beside --bn-overlay-z and --bn-toast-z. With a floating layer the per-component values (the 1, 2, 10 and 20 that lift one card over its sibling) stop being needed. Decided 26 Nov 2026 (owner): menus above dialogs , --bn-popover-z: 1050. 5 Where the rule lives Promote the tooltip spec in bristlenose/theme/CLAUDE.md to a floating-surfaces spec (layer, shadow token, radius, border, motion), and replace its literal shadow with the token. That spec is the only written rule today and it covers tooltips alone.
6. Token values (decided 26 Nov 2026)
Commentary Decided by the owner on 26 Nov 2026: B, menus above dialogs, and the notification token. Decisions 1, 2 and 5 are still open. The tokens are in a block headed DECIDED at the end of this page's theme CSS; nothing in the tree has them yet. Each frame below is the shipped picker on the dashboard pane's background, light on the left and dark on the right, with its shadow the only thing that changes. A is the two-layer geometry the tooltip spec already writes (0 4px 16px plus 0 1px 4px, the Screens menu's value), coloured by --bn-colour-shadow instead of fixed black, so it follows the palette and deepens to 40% in dark. B moves a second variable: it borrows the dialog's --bn-modal-hairline (10% black in light, 14% white in dark) as a ring in place of the 1px border, which is how the dialog already keeps its edge in dark, and how macOS draws a menu's edge on a dark desktop.
today Shipped: every menu, the picker included
A Not chosen: the two-layer shadow alone, border as today
B Chosen: --bn-popover-shadow, the shadow plus the dialog's hairline in place of the border
Commentary What to look for: in light, A and B are close to today, a touch deeper. In dark, a black shadow on the near-black page barely registers whatever its strength, so the edge has to come from something lighter than the page: B's white hairline does that, A's border (#2d2d2d on #1c1c1c in the default palette) only faintly. B touches one more rule per surface (the border colour), so it is the larger change. Switch Palette to Edo to see both follow the warm shadow colour in light.
Notifications
today Shipped: activity chip, AutoCode toast
chosen --bn-notification-shadow
The ladder
1100 --bn-toast-z (exists) toast, activity chip, AutoCode toast 1050 --bn-popover-z (new) every menu, picker, popover, tooltip, drag ghost, in the floating layer 1000 --bn-overlay-z (exists) dialog backdrop and dialog, contents overlay 100 --bn-sticky-z (new) the toolbar (100 today), the transcript header (10) and the other sticky bars — Content auto, or a local 1–2 inside one component; nothing floats here
Commentary Menus above dialogs, below toasts. No menu opens inside a dialog today (the one candidate, TagInput in CodebookAuthoring.tsx, is outside its ConfirmDialogs), so this is a rule for the next one, not a fix. A floating surface opened from a dialog must draw over it, as a macOS popover over a sheet does; a page menu is closed by the click that opens a dialog, so putting the layer above the dialog costs nothing. A toast stays on top of everything, as --bn-toast-z already says. The 200, 300, 400 and the Screens menu's 1000 all become --bn-popover-z; the small local values that lift one card over its sibling go once their surface moves to the floating layer.
Every surface, today and proposed
Surface Shadow today Proposed z today Proposed Export menu; the person picker reuses its box 0 4px 12px var(--bn-colour-shadow) --bn-popover-shadow 200 --bn-popover-z View switcher 0 4px 12px var(--bn-colour-shadow) --bn-popover-shadow 200 --bn-popover-z Tag filter 0 4px 12px var(--bn-colour-shadow) --bn-popover-shadow 200 --bn-popover-z Search tokens and suggestions 0 4px 12px var(--bn-colour-shadow) --bn-popover-shadow 200 --bn-popover-z Tag suggestions 0 2px 8px var(--bn-colour-shadow) --bn-popover-shadow 50 --bn-popover-z Hidden quotes 0 4px 12px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)) --bn-popover-shadow 200 --bn-popover-z Transcript selector 0 4px 12px rgb(0 0 0 / 0.12) --bn-popover-shadow 20 --bn-popover-z Screens menu 0 4px 16px var(--bn-colour-shadow), 0 1px 4px var(--bn-colour-shadow) --bn-popover-shadow 1000 --bn-popover-z Codebook group confirm 0 4px 16px var(--bn-colour-shadow, rgba(0, 0, 0, 0.12)) --bn-popover-shadow 100 --bn-popover-z Session tapestry popover var(--bn-focus-shadow) --bn-popover-shadow 20 --bn-popover-z Shortcut tooltip 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04) --bn-popover-shadow 400 --bn-popover-z Rationale tooltip 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04) --bn-popover-shadow 300 --bn-popover-z Heatmap cell tooltip 0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06) --bn-popover-shadow 10 --bn-popover-z Moderator question pill 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04) --bn-popover-shadow 2 --bn-popover-z Tapestry hover frame var(--bn-focus-shadow) --bn-popover-shadow 20 --bn-popover-z Transcript gutter frame (hot) 0 6px 20px rgb(0 0 0 / 0.18), 0 0 0 1px var(--bn-colour-border) --bn-popover-shadow — --bn-popover-z Clipboard toast — --bn-notification-shadow var(--bn-toast-z) --bn-toast-z Activity chip 0 4px 20px rgba(0, 0, 0, 0.25) --bn-notification-shadow — --bn-toast-z AutoCode toast 0 4px 20px rgba(0, 0, 0, 0.25) --bn-notification-shadow 200 --bn-toast-z Contents overlay var(--bn-overlay-shadow) unchanged (--bn-overlay-shadow / --bn-modal-shadow) — --bn-overlay-z Dialog var(--bn-modal-shadow) unchanged (--bn-overlay-shadow / --bn-modal-shadow) — --bn-overlay-z Drag ghost 0 2px 8px var(--bn-colour-shadow) --bn-popover-shadow 200 --bn-popover-z