@burdenoff/fe-libs 2026.1116.5 → 2026.1116.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,6 +39,7 @@ var o = ({ header: o, sidebar: s, footer: c, bottomPanel: l, rightPanel: u, stat
39
39
  style: N,
40
40
  "data-shell-scroll-container": !0,
41
41
  children: v ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("div", {
42
+ "data-shell-content": "",
42
43
  className: m ? "flex-1" : "flex-1 min-h-0",
43
44
  children: f
44
45
  }), m && c] }) : f
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fe-libs",
3
- "version": "2026.1116.5",
3
+ "version": "2026.1116.6",
4
4
  "description": "Burdenoff frontend primitives and domain libraries",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,9 +24,16 @@
24
24
  * [data-depth="off"] on any element: its subtree keeps today's look.
25
25
  * Page rules key on the box, `[data-shell-page][data-page-width]:not([data-page-width='tool'])`;
26
26
  * the rise-in on `[data-shell-page][data-page-enter]:not([data-page-width='tool'])`; the glow on
27
- * the shell's scroll container that holds such a box. The sidebar's rules key on
28
- * [data-shell-sidebar] and apply on every page. fe-libs provides the rest:
29
- * [data-shell-scroll-container] on AppShellLayout's <main>, [data-shell-topbar] on ShellTopBar,
27
+ * the shell's scroll container that holds such a box, found along the shell's fixed path:
28
+ * <main data-shell-scroll-container> AppShellLayout's scroll container
29
+ * > [data-shell-content] its content wrapper (the host passes footerInContent)
30
+ * > [data-swipe-root] the host's swipe root
31
+ * > [data-shell-page] the page box
32
+ * > :first-child on a desktop page, the host's sticky wrapper
33
+ * > [data-shell-topbar] and ShellTopBar in it
34
+ * The sidebar's rules key on [data-shell-sidebar] and apply on every page. fe-libs provides
35
+ * the rest: [data-shell-scroll-container] on AppShellLayout's <main> and [data-shell-content]
36
+ * on its content wrapper, [data-shell-topbar] on ShellTopBar,
30
37
  * [data-shell-sidebar], [data-active] and [data-shell-active-bar] in the sidebar, the data-slot
31
38
  * hooks on the primitives (Card, GlassCard, IconTile, Table, Tabs, Button, Input, Badge, ...),
32
39
  * and <html dir> from the I18nProvider for the mirrored rules.
@@ -50,6 +57,22 @@
50
57
  * without data-reduce-motion; every lift also needs (hover: hover).
51
58
  * - Every rule that uses :has() sits inside @supports selector(:has(*)): a browser without
52
59
  * :has() skips only those rules, and the build cannot merge them into the others.
60
+ * - A :has() argument never holds `*` or :not(), and every :has() on the shell keys on
61
+ * attributes only. Chrome decides per inserted element whether a :has() could see it: one
62
+ * with `*` or :not() in its argument sees every element, and then each insertion anywhere
63
+ * costs time that grows with the page (about 1.7 ms on a 20,000-element page in the
64
+ * browser run, against 0.02 ms without the layer); a type in it sees every element of that
65
+ * type, so no :has() argument names a type that pages insert all the time (div, p, span,
66
+ * li, tr, ...). The glow
67
+ * once asked <main> about any descendant through such an argument, and every insertion,
68
+ * class or text change re-scanned all of <main> (600 recalcs over 20,000 elements:
69
+ * 1137-1161 ms against 182-377 ms without the layer).
70
+ * - Every :has() argument starts with a child combinator and uses no other, so it looks a
71
+ * fixed number of levels down, except the two card checks ("holds a table", and a
72
+ * hand-drawn card's "holds a table or a field"), which name only attributes and rare
73
+ * types. A change inside such a card re-checks it, at a cost that grows with the card
74
+ * (written as `> * > ...` steps they measured four to seven times slower).
75
+ * depthLayer.test.ts pins all of this; the browser run measures it.
53
76
  * - A selector breaks across lines only where it already has a descendant combinator.
54
77
  * - The strengths below are the most each theme allows while every text token that reads at
55
78
  * 4.5:1 today keeps 4.5:1, and every icon and bar that reads at 3:1 keeps 3:1, on what the
@@ -117,15 +140,28 @@
117
140
  * away with the page and adds no scroll height however short <main> is. <main> stays
118
141
  * unpositioned: no element changes containing block. The pseudo-elements are positioned
119
142
  * only to take a z-index; they hold nothing. The two ellipses never overlap, so the
120
- * strongest tint anywhere is one accent at its mesh share. */
143
+ * strongest tint anywhere is one accent at its mesh share. <main> finds its page box three
144
+ * levels down along the shell's fixed path (the host contract above), by attributes only;
145
+ * the tool tier and an opted-out box are left out by a second :has() of the same kind,
146
+ * outside the first (a :not() inside it would see every inserted element). */
121
147
  @supports selector(:has(*)) {
122
148
  :root[data-depth='rich']:not([data-theme='high-contrast'])
123
149
  [data-shell-scroll-container]:has(
124
- [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
150
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
151
+ ):not(
152
+ :has(
153
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
154
+ > [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
155
+ )
125
156
  ):not(:where([data-depth='off'], [data-depth='off'] *))::before,
126
157
  :root[data-depth='rich']:not([data-theme='high-contrast'])
127
158
  [data-shell-scroll-container]:has(
128
- [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
159
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
160
+ ):not(
161
+ :has(
162
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
163
+ > [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
164
+ )
129
165
  ):not(:where([data-depth='off'], [data-depth='off'] *))::after {
130
166
  content: '';
131
167
  display: block;
@@ -141,39 +177,70 @@
141
177
  }
142
178
  :root[data-depth='rich']:not([data-theme='high-contrast'])
143
179
  [data-shell-scroll-container]:has(
144
- [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
180
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
181
+ ):not(
182
+ :has(
183
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
184
+ > [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
185
+ )
145
186
  ):not(:where([data-depth='off'], [data-depth='off'] *))::before {
146
187
  border-image-source: radial-gradient(46% 100% at 18% 0%, color-mix(in oklab, var(--color-accent-glow) var(--depth-mesh-a), transparent), transparent 72%);
147
188
  }
148
189
  :root[data-depth='rich']:not([data-theme='high-contrast'])
149
190
  [data-shell-scroll-container]:has(
150
- [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
191
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
192
+ ):not(
193
+ :has(
194
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
195
+ > [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
196
+ )
151
197
  ):not(:where([data-depth='off'], [data-depth='off'] *))::after {
152
198
  order: -1;
153
199
  border-image-source: radial-gradient(40% 92% at 82% 0%, color-mix(in oklab, var(--color-accent-glow-alt) var(--depth-mesh-b), transparent), transparent 74%);
154
200
  }
155
201
  :root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
156
202
  [data-shell-scroll-container]:has(
157
- [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
203
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
204
+ ):not(
205
+ :has(
206
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
207
+ > [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
208
+ )
158
209
  ):not(:where([data-depth='off'], [data-depth='off'] *))::before {
159
210
  border-image-source: radial-gradient(46% 100% at 82% 0%, color-mix(in oklab, var(--color-accent-glow) var(--depth-mesh-a), transparent), transparent 72%);
160
211
  }
161
212
  :root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
162
213
  [data-shell-scroll-container]:has(
163
- [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
214
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
215
+ ):not(
216
+ :has(
217
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
218
+ > [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
219
+ )
164
220
  ):not(:where([data-depth='off'], [data-depth='off'] *))::after {
165
221
  border-image-source: radial-gradient(40% 92% at 18% 0%, color-mix(in oklab, var(--color-accent-glow-alt) var(--depth-mesh-b), transparent), transparent 74%);
166
222
  }
167
- /* No top bar in the scroll container (phones put theirs above it): start the glow above
168
- * <main>, where it is clipped, so the page sees what it sees below a desktop bar. */
223
+ /* No top bar in the swipe root's first child (phones put theirs above <main>, and a
224
+ * page without a bar starts with its box): start the glow above <main>, where it is
225
+ * clipped, so the page sees what it sees below a desktop bar. */
169
226
  :root[data-depth='rich']:not([data-theme='high-contrast'])
170
227
  [data-shell-scroll-container]:has(
171
- [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
172
- ):not(:has([data-shell-topbar])):not(:where([data-depth='off'], [data-depth='off'] *))::before,
228
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
229
+ ):not(
230
+ :has(
231
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
232
+ > [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
233
+ )
234
+ ):not(:has(> [data-shell-content] > [data-swipe-root] > :first-child > [data-shell-topbar])):not(:where([data-depth='off'], [data-depth='off'] *))::before,
173
235
  :root[data-depth='rich']:not([data-theme='high-contrast'])
174
236
  [data-shell-scroll-container]:has(
175
- [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
176
- ):not(:has([data-shell-topbar])):not(:where([data-depth='off'], [data-depth='off'] *))::after {
237
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page][data-page-width]
238
+ ):not(
239
+ :has(
240
+ > [data-shell-content] > [data-swipe-root] > [data-shell-page]:is([data-page-width='tool'], [data-depth='off']),
241
+ > [data-shell-content] > [data-swipe-root][data-depth='off'], > [data-shell-content][data-depth='off']
242
+ )
243
+ ):not(:has(> [data-shell-content] > [data-swipe-root] > :first-child > [data-shell-topbar])):not(:where([data-depth='off'], [data-depth='off'] *))::after {
177
244
  border-image-outset: var(--depth-glow-under-bar) 0 calc(var(--depth-glow-height) - var(--depth-glow-under-bar)) 0;
178
245
  }
179
246
  }
@@ -276,9 +343,11 @@
276
343
  }
277
344
  /* Hand-drawn cards in module code (no hook yet, so class tokens; a follow-up gives each a
278
345
  * hook): exact tokens only, inside the page box. Never a filter bar (a search, a toolbar or
279
- * any field inside), a table's wrapper, a sticky bar or anything inside one, a positioned
280
- * popover, a status panel, or anything that is or sits in a menu, listbox, dialog, tooltip
281
- * or popper. The edge light and the sheen; never a border colour or a lift. */
346
+ * any field inside: a combobox, a select, a textarea, or an input you can type in, which is
347
+ * :read-write; a checkbox, radio, button or hidden input is not), a table's wrapper, a
348
+ * sticky bar or anything inside one, a positioned popover, a status panel, or anything that
349
+ * is or sits in a menu, listbox, dialog, tooltip or popper. The edge light and the sheen;
350
+ * never a border colour or a lift. */
282
351
  @supports selector(:has(*)) {
283
352
  :root[data-depth='rich']:not([data-theme='high-contrast'])
284
353
  [data-shell-page][data-page-width]:not([data-page-width='tool'])
@@ -294,8 +363,7 @@
294
363
  ):not(
295
364
  :has(
296
365
  table, [role='table'], [role='grid'], [role='treegrid'], [role='search'], [role='searchbox'],
297
- [role='combobox'], select, textarea,
298
- input:not([type='checkbox'], [type='radio'], [type='hidden'], [type='button'], [type='submit'], [type='reset'])
366
+ [role='combobox'], select, textarea, input:read-write
299
367
  )
300
368
  ):not(
301
369
  :where(
@@ -318,8 +386,7 @@
318
386
  ):not(
319
387
  :has(
320
388
  table, [role='table'], [role='grid'], [role='treegrid'], [role='search'], [role='searchbox'],
321
- [role='combobox'], select, textarea,
322
- input:not([type='checkbox'], [type='radio'], [type='hidden'], [type='button'], [type='submit'], [type='reset'])
389
+ [role='combobox'], select, textarea, input:read-write
323
390
  )
324
391
  ):not(
325
392
  :where(
@@ -342,8 +409,7 @@
342
409
  ):not(
343
410
  :has(
344
411
  table, [role='table'], [role='grid'], [role='treegrid'], [role='search'], [role='searchbox'],
345
- [role='combobox'], select, textarea,
346
- input:not([type='checkbox'], [type='radio'], [type='hidden'], [type='button'], [type='submit'], [type='reset'])
412
+ [role='combobox'], select, textarea, input:read-write
347
413
  )
348
414
  ):not(
349
415
  :where(
@@ -375,31 +441,33 @@
375
441
  0 18px 40px -22px color-mix(in oklab, var(--color-accent-glow) 60%, transparent),
376
442
  var(--shadow-pop);
377
443
  }
378
- /* Hand-drawn clickable cards: a button or link with the card tokens and a card-shaped
379
- * body. Chips, page numbers, toggles and pickers share the tokens but not the body, and
380
- * are skipped by their ARIA state. A <div onClick> leaves no trace in the DOM: move it
444
+ /* Hand-drawn clickable cards: an element that is clickable itself (a link, a button, a
445
+ * button or link role, or data-interactive) with the card tokens. No look at its body:
446
+ * a :has() on the children named div and p, and Chrome re-checked it for every div or p
447
+ * inserted anywhere (about 1.9 ms each on a 20,000-element page), so a card with no body
448
+ * lifts too. A disabled one (:disabled, aria-disabled) never does: it is not available.
449
+ * Chips, page numbers, toggles and pickers that share the tokens are skipped by their ARIA
450
+ * state. A <div onClick> leaves no trace in the DOM: give it a role, or move it
381
451
  * to Card or GlassCard, which set data-interactive. */
382
- @supports selector(:has(*)) {
383
- :root[data-depth='rich']:not([data-theme='high-contrast'])
384
- [data-shell-page][data-page-width]:not([data-page-width='tool'])
385
- :is(button, a)[class~='border']:is(
386
- [class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
387
- ):is([class~='bg-bg-surface'], [class~='bg-bg-elevated'], [class~='bg-surface'], [class~='bg-card']):not(
388
- [data-slot], [aria-pressed], [aria-selected], [aria-current], [role='tab'], [role='radio'],
389
- [role='option'], [role='combobox'], [role='menuitem'], [class*='status-'], [class~='ring-2'],
390
- [class*='sticky'], :focus-visible
391
- ):not(
392
- :where(
393
- [class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
394
- [role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
395
- )
396
- ):has(> :is(div, p, h2, h3, h4)):hover:not(:where([data-depth='off'], [data-depth='off'] *)) {
397
- border-color: color-mix(in oklab, var(--color-accent-glow) 45%, transparent);
398
- box-shadow:
399
- 0 0 0 1px color-mix(in oklab, var(--color-accent-glow) 30%, transparent),
400
- 0 18px 40px -22px color-mix(in oklab, var(--color-accent-glow) 60%, transparent),
401
- var(--shadow-pop);
402
- }
452
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
453
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
454
+ :is(a[href], button, [role='button'], [role='link'], [data-interactive])[class~='border']:is(
455
+ [class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
456
+ ):is([class~='bg-bg-surface'], [class~='bg-bg-elevated'], [class~='bg-surface'], [class~='bg-card']):not(
457
+ [data-slot], :disabled, [aria-disabled='true'], [aria-pressed], [aria-selected],
458
+ [aria-current], [role='tab'], [role='radio'], [role='option'], [role='combobox'],
459
+ [role='menuitem'], [class*='status-'], [class~='ring-2'], [class*='sticky'], :focus-visible
460
+ ):not(
461
+ :where(
462
+ [class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
463
+ [role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
464
+ )
465
+ ):hover:not(:where([data-depth='off'], [data-depth='off'] *)) {
466
+ border-color: color-mix(in oklab, var(--color-accent-glow) 45%, transparent);
467
+ box-shadow:
468
+ 0 0 0 1px color-mix(in oklab, var(--color-accent-glow) 30%, transparent),
469
+ 0 18px 40px -22px color-mix(in oklab, var(--color-accent-glow) 60%, transparent),
470
+ var(--shadow-pop);
403
471
  }
404
472
  }
405
473
 
@@ -469,12 +537,13 @@
469
537
  }
470
538
 
471
539
  /* ---------- D3: tables ----------
472
- * An accent wash on the header and on the row under the pointer (background images, so a
473
- * row's own hover fill and the selected tint stay underneath), and an accent bar on the
474
- * hovered row's start edge. In the light theme, muted text there reads in the secondary
475
- * token and a link in its hover token: muted (#6B7280) is 4.63:1 on the canvas and 4.39:1 on
476
- * a hovered fe-libs row today, a link 4.70:1 on that row, so the approved washes would take
477
- * them under 4.5:1 (secondary and the link's hover token keep 6:1 or more).
540
+ * An accent wash on the header and on the cells of the row under the pointer (background
541
+ * images, so a row's own hover fill and the selected tint stay underneath), and an accent
542
+ * bar on the hovered row's start edge. In the light theme, muted text there reads in the
543
+ * secondary token and a link in its hover token: muted (#6B7280) is 4.63:1 on the canvas
544
+ * and 4.39:1 on a hovered fe-libs row today, a link 4.70:1 on that row, so the approved
545
+ * washes would take them under 4.5:1 (secondary and the link's hover token keep 6:1 or
546
+ * more).
478
547
  * The remap covers the aliases that resolve at :root and so never follow a remapped
479
548
  * --color-text-muted: text-muted-foreground (semantic.css, app-shell.css and the app's
480
549
  * @theme) and text-content-muted / -tertiary (app-shell.css). The header's remap sits on the
@@ -504,57 +573,58 @@
504
573
  --color-text-link: var(--color-text-linkHover);
505
574
  }
506
575
  @media (hover: hover) {
507
- /* A full-width colspan row (an expanded detail, "No variables yet") is not a row to pick. */
508
- @supports selector(:has(*)) {
509
- :root[data-depth='rich']:not([data-theme='high-contrast'])
510
- [data-shell-page][data-page-width]:not([data-page-width='tool'])
511
- :is([data-slot='table'], table):not(
512
- .prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
513
- )
514
- > :is([data-slot='table-body'], tbody)
515
- > tr:hover:not([data-state='selected'], [aria-selected='true']):not(
516
- :has(> td[colspan]:only-child)
517
- ):not(:where([data-depth='off'], [data-depth='off'] *)) {
518
- background-image: linear-gradient(
519
- color-mix(in oklab, var(--color-accent-glow) var(--depth-row-wash), transparent),
520
- color-mix(in oklab, var(--color-accent-glow) var(--depth-row-wash), transparent)
521
- );
522
- }
523
- :root[data-depth='rich']:not([data-theme='high-contrast']):not(.dark)
524
- [data-shell-page][data-page-width]:not([data-page-width='tool'])
525
- :is([data-slot='table'], table):not(
526
- .prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
527
- )
528
- > :is([data-slot='table-body'], tbody)
529
- > tr:hover:not([data-state='selected'], [aria-selected='true']):not(
530
- :has(> td[colspan]:only-child)
531
- ):not(:where([data-depth='off'], [data-depth='off'] *)) {
532
- --color-text-muted: var(--color-text-secondary);
533
- --color-muted-foreground: var(--color-text-secondary);
534
- --color-content-muted: var(--color-text-secondary);
535
- --color-content-tertiary: var(--color-text-secondary);
536
- --color-text-link: var(--color-text-linkHover);
537
- }
538
- :root[data-depth='rich']:not([data-theme='high-contrast'])
539
- [data-shell-page][data-page-width]:not([data-page-width='tool'])
540
- :is([data-slot='table'], table):not(
541
- .prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
542
- )
543
- > :is([data-slot='table-body'], tbody)
544
- > tr:hover:not([data-state='selected'], [aria-selected='true']):not(:has(> td[colspan]:only-child))
545
- > :first-child:not(:where([data-depth='off'], [data-depth='off'] *)) {
546
- box-shadow: inset 3px 0 0 var(--color-accent-glow);
547
- }
548
- :root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
549
- [data-shell-page][data-page-width]:not([data-page-width='tool'])
550
- :is([data-slot='table'], table):not(
551
- .prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
552
- )
553
- > :is([data-slot='table-body'], tbody)
554
- > tr:hover:not([data-state='selected'], [aria-selected='true']):not(:has(> td[colspan]:only-child))
555
- > :first-child:not(:where([data-depth='off'], [data-depth='off'] *)) {
556
- box-shadow: inset -3px 0 0 var(--color-accent-glow);
557
- }
576
+ /* The wash paints on the hovered row's cells (the row's own hover fill and the selected
577
+ * tint stay underneath them), and the bar on its first cell, except a full-width colspan
578
+ * cell (an expanded detail, "No variables yet"): that row is not a row to pick. Keyed on
579
+ * the cells, not on the row with a :has(): a :has() that names td made Chrome re-check it
580
+ * for every row inserted anywhere (about 3.7 ms a row on a 20,000-element page). */
581
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
582
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
583
+ :is([data-slot='table'], table):not(
584
+ .prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
585
+ )
586
+ > :is([data-slot='table-body'], tbody)
587
+ > tr:hover:not([data-state='selected'], [aria-selected='true'])
588
+ > :not(td[colspan]:only-child):not(:where([data-depth='off'], [data-depth='off'] *)) {
589
+ background-image: linear-gradient(
590
+ color-mix(in oklab, var(--color-accent-glow) var(--depth-row-wash), transparent),
591
+ color-mix(in oklab, var(--color-accent-glow) var(--depth-row-wash), transparent)
592
+ );
593
+ }
594
+ /* The light remap sits on the row itself, so a colour class on the <tr> reads it too (a
595
+ * colspan row's muted text reads the secondary token as well: more contrast, no wash). */
596
+ :root[data-depth='rich']:not([data-theme='high-contrast']):not(.dark)
597
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
598
+ :is([data-slot='table'], table):not(
599
+ .prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
600
+ )
601
+ > :is([data-slot='table-body'], tbody)
602
+ > tr:hover:not([data-state='selected'], [aria-selected='true']):not(:where([data-depth='off'], [data-depth='off'] *)) {
603
+ --color-text-muted: var(--color-text-secondary);
604
+ --color-muted-foreground: var(--color-text-secondary);
605
+ --color-content-muted: var(--color-text-secondary);
606
+ --color-content-tertiary: var(--color-text-secondary);
607
+ --color-text-link: var(--color-text-linkHover);
608
+ }
609
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
610
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
611
+ :is([data-slot='table'], table):not(
612
+ .prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
613
+ )
614
+ > :is([data-slot='table-body'], tbody)
615
+ > tr:hover:not([data-state='selected'], [aria-selected='true'])
616
+ > :first-child:not(td[colspan]:only-child):not(:where([data-depth='off'], [data-depth='off'] *)) {
617
+ box-shadow: inset 3px 0 0 var(--color-accent-glow);
618
+ }
619
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
620
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
621
+ :is([data-slot='table'], table):not(
622
+ .prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
623
+ )
624
+ > :is([data-slot='table-body'], tbody)
625
+ > tr:hover:not([data-state='selected'], [aria-selected='true'])
626
+ > :first-child:not(td[colspan]:only-child):not(:where([data-depth='off'], [data-depth='off'] *)) {
627
+ box-shadow: inset -3px 0 0 var(--color-accent-glow);
558
628
  }
559
629
  }
560
630
 
@@ -737,22 +807,21 @@
737
807
  ):hover:not([data-glow], [class*='status-']):not(:where([data-depth='off'], [data-depth='off'] *)) {
738
808
  translate: 0 var(--depth-lift);
739
809
  }
740
- @supports selector(:has(*)) {
741
- :root[data-depth='rich']:not([data-theme='high-contrast']):not([data-reduce-motion])
742
- [data-shell-page][data-page-width]:not([data-page-width='tool'])
743
- :is(button, a)[class~='border']:is(
744
- [class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
745
- ):is([class~='bg-bg-surface'], [class~='bg-bg-elevated'], [class~='bg-surface'], [class~='bg-card']):not(
746
- [data-slot], [aria-pressed], [aria-selected], [aria-current], [role='tab'], [role='radio'],
747
- [role='option'], [role='combobox'], [role='menuitem'], [class*='status-'], [class*='sticky']
748
- ):not(
749
- :where(
750
- [class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
751
- [role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
752
- )
753
- ):has(> :is(div, p, h2, h3, h4)):hover:not(:where([data-depth='off'], [data-depth='off'] *)) {
754
- translate: 0 var(--depth-lift);
755
- }
810
+ :root[data-depth='rich']:not([data-theme='high-contrast']):not([data-reduce-motion])
811
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
812
+ :is(a[href], button, [role='button'], [role='link'], [data-interactive])[class~='border']:is(
813
+ [class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
814
+ ):is([class~='bg-bg-surface'], [class~='bg-bg-elevated'], [class~='bg-surface'], [class~='bg-card']):not(
815
+ [data-slot], :disabled, [aria-disabled='true'], [aria-pressed], [aria-selected],
816
+ [aria-current], [role='tab'], [role='radio'], [role='option'], [role='combobox'],
817
+ [role='menuitem'], [class*='status-'], [class*='sticky']
818
+ ):not(
819
+ :where(
820
+ [class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
821
+ [role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
822
+ )
823
+ ):hover:not(:where([data-depth='off'], [data-depth='off'] *)) {
824
+ translate: 0 var(--depth-lift);
756
825
  }
757
826
  }
758
827
  }