@burdenoff/fe-libs 2026.1116.2 → 2026.1116.3

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.
@@ -19,6 +19,8 @@ var i = ({ items: i, activeTabId: a, onTabChange: o, variant: s = "default", siz
19
19
  return /* @__PURE__ */ n("div", {
20
20
  role: "tablist",
21
21
  "aria-label": d("common.tabs", "Tabs"),
22
+ "data-slot": "nav-tabs",
23
+ "data-variant": s,
22
24
  className: e(s === "underline" && "flex gap-1 -mb-px overflow-x-auto pb-1 border-b border-border-default", s === "default" && "flex items-center gap-2", s === "pills" && "flex items-center gap-1 p-1 bg-bg-sunken rounded-button", u),
23
25
  children: i.map((t, i) => {
24
26
  let c = t.id === a;
@@ -26,6 +28,8 @@ var i = ({ items: i, activeTabId: a, onTabChange: o, variant: s = "default", siz
26
28
  role: "tab",
27
29
  "aria-selected": c,
28
30
  "aria-disabled": t.disabled,
31
+ "data-slot": "nav-tabs-tab",
32
+ "data-state": c ? "active" : "inactive",
29
33
  tabIndex: c ? 0 : -1,
30
34
  onClick: () => {
31
35
  t.disabled || (t.onClick?.(), o(t.id));
@@ -9,6 +9,7 @@ var r = {
9
9
  function i({ intensity: i = "normal", image: a, className: o, ...s }) {
10
10
  return /* @__PURE__ */ n("div", {
11
11
  "aria-hidden": "true",
12
+ "data-slot": "aurora-background",
12
13
  className: e("pointer-events-none absolute inset-0 -z-10 overflow-hidden", o),
13
14
  ...s,
14
15
  children: [a && /* @__PURE__ */ t("img", {
@@ -5,5 +5,10 @@ declare const badgeVariants: (props?: ({
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export interface BadgeProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
7
  }
8
+ /**
9
+ * `data-slot="badge"` and `data-badge-variant` are hooks for opt-in layers (BOFF-14994). Not
10
+ * `data-variant`: the UI agent tools treat anything inside `[data-variant="destructive"]` as a
11
+ * destructive Button that needs the person's confirmation (agent-tools/ui/uiTools.ts).
12
+ */
8
13
  declare function Badge({ className, variant, ...props }: BadgeProps): import('react').JSX.Element;
9
14
  export { Badge, badgeVariants };
package/dist/ui/badge.js CHANGED
@@ -16,6 +16,8 @@ var r = n("inline-flex items-center gap-1 rounded-full border px-2.5 py-0.5 text
16
16
  });
17
17
  function i({ className: n, variant: i, ...a }) {
18
18
  return /* @__PURE__ */ t("div", {
19
+ "data-slot": "badge",
20
+ "data-badge-variant": i ?? "default",
19
21
  className: e(r({ variant: i }), n),
20
22
  ...a
21
23
  });
package/dist/ui/card.d.ts CHANGED
@@ -1,4 +1,10 @@
1
1
  import { HTMLAttributes } from 'react';
2
+ /**
3
+ * Card and its parts carry the shadcn v4 `data-slot` names (`card`, `card-header`, …).
4
+ * A card the user can click (an `onClick`, or the role of a button or link) also carries
5
+ * `data-interactive`, so an opt-in layer such as the FluidGrids depth layer
6
+ * (shared/tokens/depth.css, BOFF-14994) can tell it apart. The hooks change no style.
7
+ */
2
8
  declare function Card({ ref, className, ...props }: HTMLAttributes<HTMLDivElement> & {
3
9
  ref?: React.Ref<HTMLDivElement>;
4
10
  }): import('react').JSX.Element;
package/dist/ui/card.js CHANGED
@@ -2,8 +2,11 @@ import { cn as e } from "../shared-utils.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  // src/ui/card.tsx
4
4
  function n({ ref: n, className: r, ...i }) {
5
+ let a = i.onClick !== void 0 || i.role === "button" || i.role === "link";
5
6
  return /* @__PURE__ */ t("div", {
6
7
  ref: n,
8
+ "data-slot": "card",
9
+ "data-interactive": a ? "" : void 0,
7
10
  className: e("rounded-card border border-border-subtle bg-bg-surface text-text-primary shadow-elevation-1 transition-all duration-200 ease-[var(--motion-easing-out)] hover:border-border-strong hover:shadow-elevation-2", r),
8
11
  ...i
9
12
  });
@@ -11,6 +14,7 @@ function n({ ref: n, className: r, ...i }) {
11
14
  function r({ ref: n, className: r, ...i }) {
12
15
  return /* @__PURE__ */ t("div", {
13
16
  ref: n,
17
+ "data-slot": "card-header",
14
18
  className: e("flex flex-col space-y-1.5 p-6", r),
15
19
  ...i
16
20
  });
@@ -18,6 +22,7 @@ function r({ ref: n, className: r, ...i }) {
18
22
  function i({ ref: n, className: r, ...i }) {
19
23
  return /* @__PURE__ */ t("h3", {
20
24
  ref: n,
25
+ "data-slot": "card-title",
21
26
  className: e("text-lg font-semibold leading-tight tracking-tight text-text-primary", r),
22
27
  ...i
23
28
  });
@@ -25,6 +30,7 @@ function i({ ref: n, className: r, ...i }) {
25
30
  function a({ ref: n, className: r, ...i }) {
26
31
  return /* @__PURE__ */ t("p", {
27
32
  ref: n,
33
+ "data-slot": "card-description",
28
34
  className: e("text-sm text-text-secondary", r),
29
35
  ...i
30
36
  });
@@ -32,6 +38,7 @@ function a({ ref: n, className: r, ...i }) {
32
38
  function o({ ref: n, className: r, ...i }) {
33
39
  return /* @__PURE__ */ t("div", {
34
40
  ref: n,
41
+ "data-slot": "card-content",
35
42
  className: e("p-6 pt-0", r),
36
43
  ...i
37
44
  });
@@ -39,6 +46,7 @@ function o({ ref: n, className: r, ...i }) {
39
46
  function s({ ref: n, className: r, ...i }) {
40
47
  return /* @__PURE__ */ t("div", {
41
48
  ref: n,
49
+ "data-slot": "card-footer",
42
50
  className: e("flex items-center p-6 pt-0", r),
43
51
  ...i
44
52
  });
@@ -4,6 +4,7 @@ import { jsx as t } from "react/jsx-runtime";
4
4
  function n({ ref: n, className: r, children: i, ...a }) {
5
5
  return /* @__PURE__ */ t("div", {
6
6
  ref: n,
7
+ "data-slot": "emphasis-panel",
7
8
  className: e("rounded-card border border-border-seam bg-accent-wash p-6 text-text-primary", r),
8
9
  ...a,
9
10
  children: i
@@ -12,18 +12,22 @@ function i({ icon: i = /* @__PURE__ */ n(t, {
12
12
  className: e("flex flex-col items-center justify-center text-center", l ? "py-6 px-4" : "py-12 px-4", u),
13
13
  children: [
14
14
  i === null ? null : /* @__PURE__ */ n("div", {
15
+ "data-slot": "empty-state-icon",
15
16
  className: e("flex items-center justify-center rounded-full bg-[var(--color-accent-soft)]", l ? "size-12 mb-3" : "size-14 mb-4"),
16
17
  children: i
17
18
  }),
18
19
  /* @__PURE__ */ n("h3", {
20
+ "data-slot": "empty-state-title",
19
21
  className: "text-base font-semibold text-text-primary mb-1",
20
22
  children: a
21
23
  }),
22
24
  o ? /* @__PURE__ */ n("p", {
25
+ "data-slot": "empty-state-description",
23
26
  className: "text-sm text-text-secondary max-w-md mb-4",
24
27
  children: o
25
28
  }) : null,
26
29
  s || c ? /* @__PURE__ */ r("div", {
30
+ "data-slot": "empty-state-actions",
27
31
  className: "mt-1 flex flex-col-reverse gap-2 sm:flex-row sm:items-center sm:justify-center",
28
32
  children: [c, s]
29
33
  }) : null
@@ -9,6 +9,15 @@ import { VariantProps } from 'class-variance-authority';
9
9
  * intensifies the shadow/border (a calm highlight) — it never translates,
10
10
  * scales, or removes the resting shadow. Reduced-motion / high-contrast
11
11
  * collapse the glass + glow via the underlying tokens.
12
+ *
13
+ * One opt-in exception (BOFF-14994): under the FluidGrids depth layer
14
+ * (`<html data-depth="rich">`, shared/tokens/depth.css) a clickable card
15
+ * (`data-interactive`, or the role of a button or link) lifts 2 px under the
16
+ * pointer. Reduced motion (the OS setting or `data-reduce-motion`) keeps it still,
17
+ * and every other product renders exactly as described above.
18
+ *
19
+ * Hooks for that layer, which change no style on their own: `data-slot="glass-card"`,
20
+ * `data-treatment`, `data-glow` and `data-interactive`.
12
21
  */
13
22
  declare const glassCardVariants: (props?: ({
14
23
  treatment?: "metric" | "glass" | "plain" | "insight" | null | undefined;
@@ -12,8 +12,13 @@ var r = n("relative rounded-card text-text-primary transition-[box-shadow,border
12
12
  defaultVariants: { treatment: "plain" }
13
13
  });
14
14
  function i({ ref: n, className: i, treatment: a = "plain", glow: o = !1, children: s, ...c }) {
15
+ let l = c.onClick !== void 0 || c.role === "button" || c.role === "link";
15
16
  return /* @__PURE__ */ t("div", {
16
17
  ref: n,
18
+ "data-slot": "glass-card",
19
+ "data-treatment": a ?? void 0,
20
+ "data-glow": o ? "" : void 0,
21
+ "data-interactive": l ? "" : void 0,
17
22
  className: e(r({ treatment: a }), o && "border-[color-mix(in_oklab,var(--color-action-primary-bg)_34%,transparent)] shadow-[var(--shadow-glow)]", i),
18
23
  ...c,
19
24
  children: /* @__PURE__ */ t("div", {
@@ -0,0 +1,19 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { HTMLAttributes } from 'react';
3
+ /**
4
+ * IconTile — a small rounded tile that holds one icon on the accent's soft tint: the mark of a
5
+ * workspace, a stat or a feature. Pass the icon as the only child.
6
+ *
7
+ * `data-slot="icon-tile"` is the hook an opt-in layer styles: the FluidGrids depth layer
8
+ * (shared/tokens/depth.css, BOFF-14994) paints the tile with the accent glow and the icon in
9
+ * `--boff-on-glow`. On its own the hook changes nothing, so a hand-drawn tile in module code
10
+ * can move to IconTile without a visual change.
11
+ */
12
+ declare const iconTileVariants: (props?: ({
13
+ size?: "sm" | "lg" | "md" | null | undefined;
14
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
15
+ export interface IconTileProps extends HTMLAttributes<HTMLSpanElement>, VariantProps<typeof iconTileVariants> {
16
+ ref?: React.Ref<HTMLSpanElement>;
17
+ }
18
+ declare function IconTile({ ref, className, size, ...props }: IconTileProps): import('react').JSX.Element;
19
+ export { IconTile };
@@ -0,0 +1,21 @@
1
+ import { cn as e } from "../shared-utils.js";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { cva as n } from "class-variance-authority";
4
+ // src/ui/icon-tile.tsx
5
+ var r = n("inline-flex shrink-0 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-[var(--color-accent-primary)]", {
6
+ variants: { size: {
7
+ sm: "size-8 [&>svg]:size-4",
8
+ md: "size-10 [&>svg]:size-5",
9
+ lg: "size-12 [&>svg]:size-6"
10
+ } },
11
+ defaultVariants: { size: "md" }
12
+ });
13
+ function i({ ref: n, className: i, size: a, ...o }) {
14
+ return /* @__PURE__ */ t("span", {
15
+ ref: n,
16
+ "data-slot": "icon-tile",
17
+ className: e(r({ size: a }), i),
18
+ ...o
19
+ });
20
+ }
21
+ export { i as IconTile };
@@ -23,6 +23,10 @@ export declare namespace Illustration {
23
23
  * {@link Illustration} with a title, description and an optional primary action.
24
24
  * Clutter-free by design; use the matching illustration for the context
25
25
  * (e.g. name="vc-empty-agents").
26
+ *
27
+ * Its hooks (`illustrated-empty-state`, `illustrated-empty-state-halo`, `illustration`)
28
+ * are named apart from `EmptyState`'s `empty-state`, so code that counts
29
+ * `[data-slot="empty-state"]` is unaffected (BOFF-14994).
26
30
  */
27
31
  export interface IllustratedEmptyStateProps {
28
32
  illustration: string;
@@ -13,10 +13,12 @@ function i({ name: n, alt: i, size: a = "md", framed: o = !1, className: s, load
13
13
  alt: i,
14
14
  loading: c,
15
15
  decoding: "async",
16
+ "data-slot": "illustration",
16
17
  className: e("select-none object-contain [filter:drop-shadow(0_6px_22px_color-mix(in_oklab,var(--color-action-primary-bg)_28%,transparent))]", r[a], o ? "rounded-2xl" : "", s),
17
18
  ...l
18
19
  });
19
20
  return o ? /* @__PURE__ */ t("div", {
21
+ "data-slot": "illustration-frame",
20
22
  className: "relative inline-flex rounded-2xl border border-border-seam bg-[var(--color-surface-glass)] p-1 shadow-[var(--shadow-pop)] backdrop-blur-[var(--blur-glass)]",
21
23
  children: u
22
24
  }) : u;
@@ -24,12 +26,14 @@ function i({ name: n, alt: i, size: a = "md", framed: o = !1, className: s, load
24
26
  i.displayName = "Illustration";
25
27
  function a({ illustration: r, title: a, description: o, action: s, alt: c, className: l }) {
26
28
  return /* @__PURE__ */ n("div", {
29
+ "data-slot": "illustrated-empty-state",
27
30
  className: e("relative flex flex-col items-center justify-center gap-4 px-6 py-12 text-center", l),
28
31
  children: [
29
32
  /* @__PURE__ */ n("div", {
30
33
  className: "relative flex items-center justify-center",
31
34
  children: [/* @__PURE__ */ t("div", {
32
35
  "aria-hidden": "true",
36
+ "data-slot": "illustrated-empty-state-halo",
33
37
  className: "pointer-events-none absolute size-48 rounded-full bg-[radial-gradient(circle,var(--color-accent-soft),transparent_68%)] blur-2xl"
34
38
  }), /* @__PURE__ */ t(i, {
35
39
  name: r,
@@ -40,6 +40,7 @@ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tool
40
40
  export { PageContainer, type PageContainerProps, type PageContainerVariant, } from './page-container';
41
41
  export { GlassCard, glassCardVariants, type GlassCardProps } from './glass-card';
42
42
  export { EmphasisPanel, type EmphasisPanelProps } from './emphasis-panel';
43
+ export { IconTile, type IconTileProps } from './icon-tile';
43
44
  export { ShowMore, type ShowMoreProps } from './show-more';
44
45
  export { CTAOverflowMenu, type CTAOverflowMenuProps, type CTAAction, type CTAPrimaryAction, } from './cta-overflow-menu';
45
46
  export { BrandedSplash, type BrandedSplashPhase, type BrandedSplashProps } from './branded-splash';
package/dist/ui/input.js CHANGED
@@ -6,6 +6,7 @@ function n({ ref: n, className: r, type: i, ...a }) {
6
6
  type: i,
7
7
  className: e("flex h-10 w-full rounded-input border border-border-default bg-bg-surface px-3 py-2 text-sm text-text-primary transition-colors duration-200 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-text-primary placeholder:text-text-placeholder focus-visible:border-border-focus focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus)] focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid=true]:border-status-error-border", r),
8
8
  ref: n,
9
+ "data-slot": "input",
9
10
  ...a
10
11
  });
11
12
  }
@@ -82,6 +82,7 @@ function x({ tabs: f, activeId: p, maxVisible: m = h, ariaLabel: x, className: S
82
82
  children: [/* @__PURE__ */ u("div", {
83
83
  ref: D,
84
84
  role: "tablist",
85
+ "data-slot": "page-tabs-list",
85
86
  "aria-label": x ?? T("common.tabs", "Tabs"),
86
87
  onKeyDown: F,
87
88
  className: "-mb-px flex items-end overflow-hidden",
@@ -95,6 +96,7 @@ function x({ tabs: f, activeId: p, maxVisible: m = h, ariaLabel: x, className: S
95
96
  "aria-selected": e.id === E,
96
97
  "aria-current": e.id === E ? "page" : void 0,
97
98
  tabIndex: e.id === I ? 0 : -1,
99
+ "data-slot": "page-tabs-tab",
98
100
  "data-tab-stop": "",
99
101
  "data-state": e.id === E ? "active" : "inactive",
100
102
  className: g(e.id === E),
@@ -17,6 +17,8 @@ function u({ columns: u, data: d, rowKey: f, className: p, onRowClick: m, rowAct
17
17
  let r = u.find((e) => e.priority === "primary"), i = u.filter((e) => e.priority !== "primary" && e.priority !== "hidden-on-mobile");
18
18
  return /* @__PURE__ */ l("div", {
19
19
  role: "listitem",
20
+ "data-slot": "responsive-table-card",
21
+ "data-interactive": m ? "" : void 0,
20
22
  className: t("rounded-card border border-border-subtle bg-bg-surface p-4 shadow-elevation-1 transition-all duration-200", m && "cursor-pointer hover:border-border-strong hover:shadow-elevation-2 active:bg-bg-sunken focus-visible:bg-bg-sunken focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus)] min-h-11"),
21
23
  tabIndex: m ? 0 : void 0,
22
24
  onClick: m ? () => m(e, n) : void 0,
@@ -66,6 +68,7 @@ function u({ columns: u, data: d, rowKey: f, className: p, onRowClick: m, rowAct
66
68
  children: g
67
69
  })
68
70
  }) : null] }) }), /* @__PURE__ */ c(r, { children: d.map((e, t) => /* @__PURE__ */ l(s, {
71
+ "data-interactive": m ? "" : void 0,
69
72
  onClick: m ? () => m(e, t) : void 0,
70
73
  className: m ? "cursor-pointer" : void 0,
71
74
  children: [u.map((n) => /* @__PURE__ */ c(i, {
package/dist/ui/select.js CHANGED
@@ -11,6 +11,7 @@ var g = h.Root, _ = h.Group, v = h.Value;
11
11
  function y({ ref: e, className: t, children: r, ...i }) {
12
12
  return /* @__PURE__ */ m(h.Trigger, {
13
13
  ref: e,
14
+ "data-slot": "select-trigger",
14
15
  className: n("flex h-10 w-full items-center justify-between rounded-input border border-border-default bg-bg-surface px-3 py-2 text-sm text-text-primary transition-colors duration-200 data-[placeholder]:text-text-placeholder focus:border-border-focus focus:outline-none focus:shadow-[var(--shadow-focus)] focus:ring-1 focus:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid=true]:border-status-error-border [&>span]:line-clamp-1", t),
15
16
  ...i,
16
17
  children: [r, /* @__PURE__ */ p(h.Icon, {
@@ -123,6 +124,7 @@ function O({ options: t, value: s, defaultValue: d, onValueChange: h, placeholde
123
124
  type: "button",
124
125
  id: E,
125
126
  "data-native-select-trigger": "",
127
+ "data-slot": "select-trigger",
126
128
  "aria-label": k,
127
129
  "aria-haspopup": "listbox",
128
130
  "aria-expanded": N,
package/dist/ui/table.js CHANGED
@@ -3,9 +3,11 @@ import { jsx as t } from "react/jsx-runtime";
3
3
  // src/ui/table.tsx
4
4
  function n({ ref: n, className: r, ...i }) {
5
5
  return /* @__PURE__ */ t("div", {
6
+ "data-slot": "table-container",
6
7
  className: "relative w-full overflow-auto",
7
8
  children: /* @__PURE__ */ t("table", {
8
9
  ref: n,
10
+ "data-slot": "table",
9
11
  className: e("w-full caption-bottom text-sm", r),
10
12
  ...i
11
13
  })
@@ -14,6 +16,7 @@ function n({ ref: n, className: r, ...i }) {
14
16
  function r({ ref: n, className: r, ...i }) {
15
17
  return /* @__PURE__ */ t("thead", {
16
18
  ref: n,
19
+ "data-slot": "table-header",
17
20
  className: e("[&_tr]:border-b [&_tr]:border-border-subtle", r),
18
21
  ...i
19
22
  });
@@ -21,6 +24,7 @@ function r({ ref: n, className: r, ...i }) {
21
24
  function i({ ref: n, className: r, ...i }) {
22
25
  return /* @__PURE__ */ t("tbody", {
23
26
  ref: n,
27
+ "data-slot": "table-body",
24
28
  className: e("divide-y divide-border-subtle [&_tr:last-child]:border-0", r),
25
29
  ...i
26
30
  });
@@ -28,6 +32,7 @@ function i({ ref: n, className: r, ...i }) {
28
32
  function a({ ref: n, className: r, ...i }) {
29
33
  return /* @__PURE__ */ t("tfoot", {
30
34
  ref: n,
35
+ "data-slot": "table-footer",
31
36
  className: e("border-t border-border-subtle bg-bg-sunken font-medium text-text-primary [&>tr]:last:border-b-0", r),
32
37
  ...i
33
38
  });
@@ -35,6 +40,7 @@ function a({ ref: n, className: r, ...i }) {
35
40
  function o({ ref: n, className: r, ...i }) {
36
41
  return /* @__PURE__ */ t("tr", {
37
42
  ref: n,
43
+ "data-slot": "table-row",
38
44
  className: e("border-b border-border-subtle transition-colors hover:bg-bg-sunken data-[state=selected]:bg-[var(--color-accent-soft)]", r),
39
45
  ...i
40
46
  });
@@ -42,6 +48,7 @@ function o({ ref: n, className: r, ...i }) {
42
48
  function s({ ref: n, className: r, ...i }) {
43
49
  return /* @__PURE__ */ t("th", {
44
50
  ref: n,
51
+ "data-slot": "table-head",
45
52
  className: e("h-11 px-4 text-start align-middle text-xs font-medium uppercase tracking-wide text-text-muted [&:has([role=checkbox])]:pe-0", r),
46
53
  ...i
47
54
  });
@@ -49,6 +56,7 @@ function s({ ref: n, className: r, ...i }) {
49
56
  function c({ ref: n, className: r, ...i }) {
50
57
  return /* @__PURE__ */ t("td", {
51
58
  ref: n,
59
+ "data-slot": "table-cell",
52
60
  className: e("p-4 align-middle text-text-primary [&:has([role=checkbox])]:pe-0", r),
53
61
  ...i
54
62
  });
@@ -56,6 +64,7 @@ function c({ ref: n, className: r, ...i }) {
56
64
  function l({ ref: n, className: r, ...i }) {
57
65
  return /* @__PURE__ */ t("caption", {
58
66
  ref: n,
67
+ "data-slot": "table-caption",
59
68
  className: e("mt-4 text-sm text-text-secondary", r),
60
69
  ...i
61
70
  });
@@ -5,6 +5,7 @@ function n({ ref: n, className: r, ...i }) {
5
5
  return /* @__PURE__ */ t("textarea", {
6
6
  className: e("flex min-h-[80px] w-full rounded-input border border-border-default bg-bg-surface px-3 py-2 text-sm text-text-primary transition-colors duration-200 placeholder:text-text-placeholder focus-visible:border-border-focus focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus)] focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-50 aria-[invalid=true]:border-status-error-border", r),
7
7
  ref: n,
8
+ "data-slot": "textarea",
8
9
  ...i
9
10
  });
10
11
  }
package/dist/ui.js CHANGED
@@ -40,18 +40,19 @@ import { Tooltip as kt, TooltipContent as At, TooltipProvider as jt, TooltipTrig
40
40
  import { PageContainer as Nt } from "./ui/page-container.js";
41
41
  import { GlassCard as Pt, glassCardVariants as Ft } from "./ui/glass-card.js";
42
42
  import { EmphasisPanel as It } from "./ui/emphasis-panel.js";
43
- import { ShowMore as Lt } from "./ui/show-more.js";
44
- import { CTAOverflowMenu as Rt } from "./ui/cta-overflow-menu.js";
45
- import { BrandedSplash as zt } from "./ui/branded-splash.js";
46
- import { ModernLanding as Bt } from "./ui/modern-landing.js";
47
- import { AuroraBackground as Vt } from "./ui/aurora-background.js";
48
- import { IllustratedEmptyState as Ht, Illustration as Ut } from "./ui/illustration.js";
49
- import { GradientText as Wt } from "./ui/gradient-text.js";
50
- import { NextSteps as Gt, PagePurpose as Kt } from "./ui/guidance.js";
51
- import { NativeWelcome as qt } from "./ui/native-welcome.js";
52
- import { ActionSheet as Jt } from "./ui/action-sheet.js";
53
- import { OfflineBanner as Yt } from "./ui/offline-banner.js";
54
- import { PullToRefresh as Xt } from "./ui/pull-to-refresh.js";
55
- import { PWAUpdateToast as Zt } from "./ui/pwa-update-toast.js";
56
- import { ModalShell as Qt } from "./ui/modal-shell.js";
57
- export { f as AccessGate, p as AccessNeededChip, e as Accordion, t as AccordionContent, n as AccordionItem, r as AccordionTrigger, Jt as ActionSheet, I as AlertDialog, L as AlertDialogAction, R as AlertDialogCancel, z as AlertDialogContent, B as AlertDialogDescription, V as AlertDialogFooter, H as AlertDialogHeader, U as AlertDialogOverlay, W as AlertDialogPortal, G as AlertDialogTitle, K as AlertDialogTrigger, Vt as AuroraBackground, q as Badge, h as BottomSheet, g as BottomSheetClose, _ as BottomSheetContent, v as BottomSheetDescription, y as BottomSheetFooter, b as BottomSheetHeader, x as BottomSheetTitle, S as BottomSheetTrigger, zt as BrandedSplash, Y as Button, Rt as CTAOverflowMenu, Z as Card, Q as CardContent, $ as CardDescription, ee as CardFooter, te as CardHeader, ne as CardTitle, re as Checkbox, ie as Command, ae as CommandDialog, oe as CommandEmpty, se as CommandGroup, ce as CommandInput, le as CommandItem, ue as CommandList, de as CommandSeparator, fe as CommandShortcut, pe as Dialog, me as DialogClose, he as DialogContent, ge as DialogDescription, _e as DialogFooter, ve as DialogHeader, ye as DialogOverlay, be as DialogPortal, xe as DialogTitle, Se as DialogTrigger, Ce as DropdownMenu, we as DropdownMenuCheckboxItem, Te as DropdownMenuContent, Ee as DropdownMenuGroup, De as DropdownMenuItem, Oe as DropdownMenuLabel, ke as DropdownMenuPortal, Ae as DropdownMenuRadioGroup, je as DropdownMenuRadioItem, Me as DropdownMenuSeparator, Ne as DropdownMenuShortcut, Pe as DropdownMenuSub, Fe as DropdownMenuSubContent, Ie as DropdownMenuSubTrigger, Le as DropdownMenuTrigger, It as EmphasisPanel, F as EmptyState, i as EntityIdModal, Pt as GlassCard, Wt as GradientText, Ht as IllustratedEmptyState, Ut as Illustration, Re as Input, ze as Label, Qt as ModalShell, Bt as ModernLanding, Ke as NativeSelect, qt as NativeWelcome, Gt as NextSteps, Yt as OfflineBanner, o as OptionalFields, Zt as PWAUpdateToast, Nt as PageContainer, Kt as PagePurpose, l as PageTabs, M as Pagination, Be as Popover, Ve as PopoverAnchor, He as PopoverContent, Ue as PopoverTrigger, Xt as PullToRefresh, C as ResponsiveDialog, w as ResponsiveDialogClose, T as ResponsiveDialogContent, E as ResponsiveDialogDescription, D as ResponsiveDialogFooter, O as ResponsiveDialogHeader, k as ResponsiveDialogTitle, A as ResponsiveDialogTrigger, P as ResponsiveStack, j as ResponsiveTable, We as ScrollArea, Ge as ScrollBar, qe as Select, Je as SelectContent, Ye as SelectGroup, Xe as SelectItem, Ze as SelectLabel, Qe as SelectScrollDownButton, $e as SelectScrollUpButton, et as SelectSeparator, tt as SelectTrigger, nt as SelectValue, rt as Separator, it as Sheet, at as SheetClose, ot as SheetContent, st as SheetDescription, ct as SheetFooter, lt as SheetHeader, ut as SheetTitle, dt as SheetTrigger, Lt as ShowMore, c as ShowTechnicalDetails, ft as Skeleton, mt as Spinner, N as Stepper, ht as Switch, gt as Table, _t as TableBody, vt as TableCaption, yt as TableCell, bt as TableFooter, xt as TableHead, St as TableHeader, Ct as TableRow, wt as Tabs, Tt as TabsContent, Et as TabsList, Dt as TabsTrigger, Ot as Textarea, pt as Toaster, kt as Tooltip, At as TooltipContent, jt as TooltipProvider, Mt as TooltipTrigger, J as badgeVariants, X as buttonVariants, Ft as glassCardVariants, u as matchActiveTab, d as splitTabs, a as useEntityIdModal, m as useHeadingDocumentTitle, s as useRememberedOpen };
43
+ import { IconTile as Lt } from "./ui/icon-tile.js";
44
+ import { ShowMore as Rt } from "./ui/show-more.js";
45
+ import { CTAOverflowMenu as zt } from "./ui/cta-overflow-menu.js";
46
+ import { BrandedSplash as Bt } from "./ui/branded-splash.js";
47
+ import { ModernLanding as Vt } from "./ui/modern-landing.js";
48
+ import { AuroraBackground as Ht } from "./ui/aurora-background.js";
49
+ import { IllustratedEmptyState as Ut, Illustration as Wt } from "./ui/illustration.js";
50
+ import { GradientText as Gt } from "./ui/gradient-text.js";
51
+ import { NextSteps as Kt, PagePurpose as qt } from "./ui/guidance.js";
52
+ import { NativeWelcome as Jt } from "./ui/native-welcome.js";
53
+ import { ActionSheet as Yt } from "./ui/action-sheet.js";
54
+ import { OfflineBanner as Xt } from "./ui/offline-banner.js";
55
+ import { PullToRefresh as Zt } from "./ui/pull-to-refresh.js";
56
+ import { PWAUpdateToast as Qt } from "./ui/pwa-update-toast.js";
57
+ import { ModalShell as $t } from "./ui/modal-shell.js";
58
+ export { f as AccessGate, p as AccessNeededChip, e as Accordion, t as AccordionContent, n as AccordionItem, r as AccordionTrigger, Yt as ActionSheet, I as AlertDialog, L as AlertDialogAction, R as AlertDialogCancel, z as AlertDialogContent, B as AlertDialogDescription, V as AlertDialogFooter, H as AlertDialogHeader, U as AlertDialogOverlay, W as AlertDialogPortal, G as AlertDialogTitle, K as AlertDialogTrigger, Ht as AuroraBackground, q as Badge, h as BottomSheet, g as BottomSheetClose, _ as BottomSheetContent, v as BottomSheetDescription, y as BottomSheetFooter, b as BottomSheetHeader, x as BottomSheetTitle, S as BottomSheetTrigger, Bt as BrandedSplash, Y as Button, zt as CTAOverflowMenu, Z as Card, Q as CardContent, $ as CardDescription, ee as CardFooter, te as CardHeader, ne as CardTitle, re as Checkbox, ie as Command, ae as CommandDialog, oe as CommandEmpty, se as CommandGroup, ce as CommandInput, le as CommandItem, ue as CommandList, de as CommandSeparator, fe as CommandShortcut, pe as Dialog, me as DialogClose, he as DialogContent, ge as DialogDescription, _e as DialogFooter, ve as DialogHeader, ye as DialogOverlay, be as DialogPortal, xe as DialogTitle, Se as DialogTrigger, Ce as DropdownMenu, we as DropdownMenuCheckboxItem, Te as DropdownMenuContent, Ee as DropdownMenuGroup, De as DropdownMenuItem, Oe as DropdownMenuLabel, ke as DropdownMenuPortal, Ae as DropdownMenuRadioGroup, je as DropdownMenuRadioItem, Me as DropdownMenuSeparator, Ne as DropdownMenuShortcut, Pe as DropdownMenuSub, Fe as DropdownMenuSubContent, Ie as DropdownMenuSubTrigger, Le as DropdownMenuTrigger, It as EmphasisPanel, F as EmptyState, i as EntityIdModal, Pt as GlassCard, Gt as GradientText, Lt as IconTile, Ut as IllustratedEmptyState, Wt as Illustration, Re as Input, ze as Label, $t as ModalShell, Vt as ModernLanding, Ke as NativeSelect, Jt as NativeWelcome, Kt as NextSteps, Xt as OfflineBanner, o as OptionalFields, Qt as PWAUpdateToast, Nt as PageContainer, qt as PagePurpose, l as PageTabs, M as Pagination, Be as Popover, Ve as PopoverAnchor, He as PopoverContent, Ue as PopoverTrigger, Zt as PullToRefresh, C as ResponsiveDialog, w as ResponsiveDialogClose, T as ResponsiveDialogContent, E as ResponsiveDialogDescription, D as ResponsiveDialogFooter, O as ResponsiveDialogHeader, k as ResponsiveDialogTitle, A as ResponsiveDialogTrigger, P as ResponsiveStack, j as ResponsiveTable, We as ScrollArea, Ge as ScrollBar, qe as Select, Je as SelectContent, Ye as SelectGroup, Xe as SelectItem, Ze as SelectLabel, Qe as SelectScrollDownButton, $e as SelectScrollUpButton, et as SelectSeparator, tt as SelectTrigger, nt as SelectValue, rt as Separator, it as Sheet, at as SheetClose, ot as SheetContent, st as SheetDescription, ct as SheetFooter, lt as SheetHeader, ut as SheetTitle, dt as SheetTrigger, Rt as ShowMore, c as ShowTechnicalDetails, ft as Skeleton, mt as Spinner, N as Stepper, ht as Switch, gt as Table, _t as TableBody, vt as TableCaption, yt as TableCell, bt as TableFooter, xt as TableHead, St as TableHeader, Ct as TableRow, wt as Tabs, Tt as TabsContent, Et as TabsList, Dt as TabsTrigger, Ot as Textarea, pt as Toaster, kt as Tooltip, At as TooltipContent, jt as TooltipProvider, Mt as TooltipTrigger, J as badgeVariants, X as buttonVariants, Ft as glassCardVariants, u as matchActiveTab, d as splitTabs, a as useEntityIdModal, m as useHeadingDocumentTitle, s as useRememberedOpen };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fe-libs",
3
- "version": "2026.1116.2",
3
+ "version": "2026.1116.3",
4
4
  "description": "Burdenoff frontend primitives and domain libraries",
5
5
  "repository": {
6
6
  "type": "git",
@@ -370,6 +370,7 @@
370
370
  "verify:shims": "node scripts/verify-shim-initialization.mjs",
371
371
  "test:handsfree-browser": "node scripts/handsfree-browser-run.mjs",
372
372
  "test:rtl-browser": "node scripts/rtl-logical-browser-run.mjs",
373
+ "test:depth-browser": "node scripts/depth-layer-browser-run.mjs",
373
374
  "test": "bun test",
374
375
  "sanity": "boff sanity",
375
376
  "switch:status": "boff deps-mode status",
@@ -0,0 +1,760 @@
1
+ /* BOFF-14994: the depth layer (D1-D6 and the light theme, L1), approved for FluidGrids on 16 Nov.
2
+ *
3
+ * Inert unless the host opts in. Every selector starts with
4
+ * :root[data-depth='rich']:not([data-theme='high-contrast'])
5
+ * so HealthyBowl, VibeControls, BigConsole and every other product render exactly as before
6
+ * (shared/utils/depthLayer.test.ts fails on any rule that does not). High contrast keeps its
7
+ * own solid surfaces and yellow focus ring, forced colours get nothing, and a browser without
8
+ * color-mix() gets nothing (the build's fallbacks would paint the accents at full strength).
9
+ *
10
+ * Host contract (the FluidGrids shell sets these; nothing here sets them):
11
+ * <html data-depth="rich"> the opt-in. The shell sets it in a layout effect while it is
12
+ * mounted and removes it on unmount; shell-less pages never
13
+ * carry it.
14
+ * [data-shell-page] the routed page's box under the sticky top bar (the wrapper
15
+ * [data-page-width="..."] inside [data-swipe-root]). It also carries the page's width
16
+ * tier from BOFF-14993: form, standard, catalog or tool. `tool`
17
+ * is the uncapped tier (builder, template preview, /assistant,
18
+ * AI Studio, data tables, conversations, calendar, scheduler,
19
+ * tour builders, editors) and keeps its own look. Nothing puts
20
+ * data-page-width on <html>.
21
+ * [data-page-enter] on that box when the pathname changes (never the query or the
22
+ * hash): the host removes it, forces a reflow and sets it again,
23
+ * without remounting the box, so the rise-in restarts.
24
+ * [data-depth="off"] on any element: its subtree keeps today's look.
25
+ * Page rules key on the box, `[data-shell-page][data-page-width]:not([data-page-width='tool'])`;
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,
30
+ * [data-shell-sidebar], [data-active] and [data-shell-active-bar] in the sidebar, the data-slot
31
+ * hooks on the primitives (Card, GlassCard, IconTile, Table, Tabs, Button, Input, Badge, ...),
32
+ * and <html dir> from the I18nProvider for the mirrored rules.
33
+ *
34
+ * Rules of this file:
35
+ * - Colours only from tokens (the two accent glows, the gloss tokens, the pop and elevation
36
+ * shadows, --boff-on-glow, the text and border tokens) and `transparent`; motion only from
37
+ * the --motion-* tokens and the existing boff-rise keyframes.
38
+ * - Unlayered like the rest of tokens.css, so it wins over the layered Tailwind utilities it
39
+ * decorates without !important. That is also why it never sets a border colour at rest and
40
+ * never touches a focused element's box-shadow, outline or border: a consumer's meaning and
41
+ * focus ring stay. A focused field's glow is a drop-shadow filter drawn around its own ring.
42
+ * - It never makes an element a containing block or a scroll area for other elements: the
43
+ * glow is drawn by two empty, zero-height boxes of <main> (see D1), and the rise-in does not
44
+ * fill forwards (a transform fill would hold the box as the containing block of every
45
+ * position: fixed element inside the page).
46
+ * - Class-token selectors (`[class~=...]`, `[class*=...]`) only for hand-drawn module markup
47
+ * with no hook, always inside the page box, and as exclusions. depthLayer.test.ts fails on a
48
+ * positive one outside the box; the PR lists each one as a follow-up for a hook.
49
+ * - Every motion sits inside (prefers-reduced-motion: no-preference) AND needs the root
50
+ * without data-reduce-motion; every lift also needs (hover: hover).
51
+ * - Every rule that uses :has() sits inside @supports selector(:has(*)): a browser without
52
+ * :has() skips only those rules, and the build cannot merge them into the others.
53
+ * - A selector breaks across lines only where it already has a descendant combinator.
54
+ * - The strengths below are the most each theme allows while every text token that reads at
55
+ * 4.5:1 today keeps 4.5:1, and every icon and bar that reads at 3:1 keeps 3:1, on what the
56
+ * layer paints, under the glow where it shows below the top bar
57
+ * (shared/utils/depthContrast.test.ts, which also pins the pairs that fail before it). */
58
+
59
+ @media screen and (forced-colors: none) {
60
+ @supports (color: color-mix(in oklab, red 50%, transparent)) {
61
+ /* ---------- Strengths per theme ---------- */
62
+ :root[data-depth='rich']:not([data-theme='high-contrast']) {
63
+ /* D1: the glow over the top of the page; "multiply" tints the light page. */
64
+ --depth-mesh-a: 8%;
65
+ --depth-mesh-b: 6%;
66
+ --depth-blend: multiply;
67
+ --depth-glow-height: 380px;
68
+ /* ShellTopBar's height (h-14): where the scroll container has no top bar of its own
69
+ * (phones), the glow starts this far above it, so the page shows what a desktop page
70
+ * shows below its opaque bar. */
71
+ --depth-glow-under-bar: 3.5rem;
72
+ /* D2: how far a clickable card lifts; the light card sheen's bottom rim (a share of
73
+ * --gloss-rim-light). */
74
+ --depth-lift: -2px;
75
+ --depth-rim: 45%;
76
+ /* D3: the table header wash and the hovered row. */
77
+ --depth-head-wash: 7%;
78
+ --depth-row-wash: 8%;
79
+ /* D4: the accent sheen inside a primary button (the light accent equals the button). */
80
+ --depth-button-sheen: 22%;
81
+ /* D6: the sidebar's current item, and how much of the primary text its subtitle takes. */
82
+ --depth-nav-wash: 24%;
83
+ --depth-nav-subtitle: 0%;
84
+ }
85
+ /* ThemeProvider sets .dark for the dark, forest, ocean and sunset themes. */
86
+ :root[data-depth='rich']:not([data-theme='high-contrast']).dark {
87
+ /* "screen" lightens the dark page. */
88
+ --depth-mesh-a: 10%;
89
+ --depth-mesh-b: 10%;
90
+ --depth-blend: screen;
91
+ --depth-nav-subtitle: 30%;
92
+ }
93
+ /* White labels on a mid-tone accent: any sheen takes them under 4.5:1. */
94
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='forest'] {
95
+ --depth-mesh-a: 9.5%;
96
+ --depth-mesh-b: 10%;
97
+ --depth-button-sheen: 0%;
98
+ }
99
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='ocean'] {
100
+ --depth-mesh-a: 7.5%;
101
+ --depth-mesh-b: 9%;
102
+ --depth-button-sheen: 0%;
103
+ }
104
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='sunset'] {
105
+ --depth-mesh-a: 10.5%;
106
+ --depth-mesh-b: 11%;
107
+ --depth-button-sheen: 0%;
108
+ }
109
+
110
+ /* ---------- D1: a soft two-accent glow over the top of every page ----------
111
+ * Page roots paint opaque backgrounds, so the glow is an overlay above them, blended
112
+ * ("screen" or "multiply"), under the sticky top bar (z-30), and it never takes a click.
113
+ * Each accent is an empty ::before / ::after of the shell's <main>: zero height and in the
114
+ * flow (main is a flex column in every FluidGrids layout; `order: -1` brings ::after to its
115
+ * top), so it takes no space. The ellipse is its border-image, painted outward from that
116
+ * box: border-image outside the border box is ink overflow (CSS Backgrounds 3), so it scrolls
117
+ * away with the page and adds no scroll height however short <main> is. <main> stays
118
+ * unpositioned: no element changes containing block. The pseudo-elements are positioned
119
+ * 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. */
121
+ @supports selector(:has(*)) {
122
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
123
+ [data-shell-scroll-container]:has(
124
+ [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
125
+ ):not(:where([data-depth='off'], [data-depth='off'] *))::before,
126
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
127
+ [data-shell-scroll-container]:has(
128
+ [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
129
+ ):not(:where([data-depth='off'], [data-depth='off'] *))::after {
130
+ content: '';
131
+ display: block;
132
+ position: relative;
133
+ z-index: 20;
134
+ flex: none;
135
+ block-size: 0;
136
+ pointer-events: none;
137
+ mix-blend-mode: var(--depth-blend);
138
+ border-image-slice: 0 fill;
139
+ border-image-width: 0;
140
+ border-image-outset: 0 0 var(--depth-glow-height) 0;
141
+ }
142
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
143
+ [data-shell-scroll-container]:has(
144
+ [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
145
+ ):not(:where([data-depth='off'], [data-depth='off'] *))::before {
146
+ 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
+ }
148
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
149
+ [data-shell-scroll-container]:has(
150
+ [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
151
+ ):not(:where([data-depth='off'], [data-depth='off'] *))::after {
152
+ order: -1;
153
+ 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
+ }
155
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
156
+ [data-shell-scroll-container]:has(
157
+ [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
158
+ ):not(:where([data-depth='off'], [data-depth='off'] *))::before {
159
+ 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
+ }
161
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
162
+ [data-shell-scroll-container]:has(
163
+ [data-shell-page][data-page-width]:not([data-page-width='tool'], [data-depth='off'], [data-depth='off'] *)
164
+ ):not(:where([data-depth='off'], [data-depth='off'] *))::after {
165
+ 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
+ }
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. */
169
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
170
+ [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,
173
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
174
+ [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 {
177
+ border-image-outset: var(--depth-glow-under-bar) 0 calc(var(--depth-glow-height) - var(--depth-glow-under-bar)) 0;
178
+ }
179
+ }
180
+ /* The glow already shines where AuroraBackground's -z-10 blobs sit (under <main>'s
181
+ * canvas, so unseen at rest); hidden, they can neither double it nor flash while a page
182
+ * rises (the animation makes the page box a stacking context for a moment). */
183
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
184
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
185
+ [data-slot='aurora-background']:not(:where([data-depth='off'], [data-depth='off'] *)) {
186
+ display: none;
187
+ }
188
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
189
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
190
+ [data-slot='page-header']
191
+ h1:not(:where([data-depth='off'], [data-depth='off'] *)) {
192
+ letter-spacing: -0.01em;
193
+ }
194
+
195
+ /* ---------- D2: cards ----------
196
+ * Every card gets the soft edge light (--shadow-pop carries the 1px accent ring) and a
197
+ * hairline on its top edge: fe-libs Card, GlassCard (plain, insight, metric) and
198
+ * ResponsiveTable's phone cards. Never a border colour at rest (consumers set it for
199
+ * meaning), never a card with its own ring or no shadow, a status-tinted card, a GlassCard
200
+ * with `glow` (it keeps --shadow-glow) or in the `glass` treatment (its own gloss and pop),
201
+ * and never anything that is or sits in a menu, listbox, dialog, tooltip or popper. */
202
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
203
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
204
+ :is(
205
+ [data-slot='card'],
206
+ [data-slot='glass-card']:is([data-treatment='plain'], [data-treatment='insight'], [data-treatment='metric']),
207
+ [data-slot='responsive-table-card']
208
+ ):not(
209
+ [data-glow], :focus-visible, [class~='ring'], [class~='ring-1'], [class~='ring-2'],
210
+ [class~='ring-4'], [class~='shadow-none'], [class*='status-']
211
+ ):not(
212
+ :where(
213
+ [role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'],
214
+ [role='tooltip'], [popover], [data-radix-popper-content-wrapper],
215
+ :is(
216
+ [role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'],
217
+ [role='tooltip'], [popover], [data-radix-popper-content-wrapper]
218
+ ) *
219
+ )
220
+ ):not(:where([data-depth='off'], [data-depth='off'] *)) {
221
+ box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-text-primary) 6%, transparent), var(--shadow-pop);
222
+ }
223
+ /* The gloss sheen on surface-coloured cards, never over a background image (a consumer's,
224
+ * or the metric treatment's accent wash). Dark themes: the gloss token. Light: its white top
225
+ * (unseen on a white card) and its bottom rim at --depth-rim, which keeps muted text at
226
+ * 4.5:1 where the full rim would not.
227
+ * Never on a card that holds a table (or a grid): the header and hovered-row washes (D3)
228
+ * would stack on the sheen, and in the dark themes muted text there falls under 4.5:1 even
229
+ * without the glow (5.6-6.1:1 today). Such a card keeps the edge light, like a hand-drawn
230
+ * card that holds a table. Without :has() no card gets the sheen. */
231
+ @supports selector(:has(*)) {
232
+ :root[data-depth='rich']:not([data-theme='high-contrast']).dark
233
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
234
+ :is(
235
+ [data-slot='card'],
236
+ [data-slot='glass-card']:is([data-treatment='plain'], [data-treatment='insight']),
237
+ [data-slot='responsive-table-card']
238
+ ):not(
239
+ [data-glow], [class*='status-'], [class*='bg-gradient'], [class*='bg-linear'],
240
+ [class*='bg-radial'], [class*='bg-conic'], [class*='bg-['], [class~='bg-accent-wash'],
241
+ [class*='bg-bg-elevated'], [class~='bg-card']
242
+ ):not(:has(table, [role='table'], [role='grid'], [role='treegrid'])):not(
243
+ :where(
244
+ [role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'],
245
+ [role='tooltip'], [popover], [data-radix-popper-content-wrapper],
246
+ :is(
247
+ [role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'],
248
+ [role='tooltip'], [popover], [data-radix-popper-content-wrapper]
249
+ ) *
250
+ )
251
+ ):not(:where([data-depth='off'], [data-depth='off'] *)) {
252
+ background-image: var(--gradient-gloss-card);
253
+ }
254
+ :root[data-depth='rich']:not([data-theme='high-contrast']):not(.dark)
255
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
256
+ :is(
257
+ [data-slot='card'],
258
+ [data-slot='glass-card']:is([data-treatment='plain'], [data-treatment='insight']),
259
+ [data-slot='responsive-table-card']
260
+ ):not(
261
+ [data-glow], [class*='status-'], [class*='bg-gradient'], [class*='bg-linear'],
262
+ [class*='bg-radial'], [class*='bg-conic'], [class*='bg-['], [class~='bg-accent-wash'],
263
+ [class*='bg-bg-elevated'], [class~='bg-card']
264
+ ):not(:has(table, [role='table'], [role='grid'], [role='treegrid'])):not(
265
+ :where(
266
+ [role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'],
267
+ [role='tooltip'], [popover], [data-radix-popper-content-wrapper],
268
+ :is(
269
+ [role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'],
270
+ [role='tooltip'], [popover], [data-radix-popper-content-wrapper]
271
+ ) *
272
+ )
273
+ ):not(:where([data-depth='off'], [data-depth='off'] *)) {
274
+ background-image: linear-gradient(180deg, var(--gloss-sheen-light) 0%, transparent 38%, transparent 82%, color-mix(in oklab, var(--gloss-rim-light) var(--depth-rim), transparent) 100%);
275
+ }
276
+ }
277
+ /* Hand-drawn cards in module code (no hook yet, so class tokens; a follow-up gives each a
278
+ * 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. */
282
+ @supports selector(:has(*)) {
283
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
284
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
285
+ :is(div, section, article, li)[class~='border']:is(
286
+ [class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
287
+ ):is(
288
+ [class~='bg-bg-surface'], [class~='bg-bg-elevated'], [class~='bg-surface'], [class~='bg-card'],
289
+ [class~='bg-surface-default']
290
+ ):not(
291
+ [data-slot], [role='search'], [role='toolbar'], [class~='absolute'], [class~='fixed'],
292
+ [class*='sticky'], [class*='status-'], :focus-visible, [class~='ring'], [class~='ring-1'],
293
+ [class~='ring-2'], [class~='ring-4'], [class~='shadow-none']
294
+ ):not(
295
+ :has(
296
+ 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'])
299
+ )
300
+ ):not(
301
+ :where(
302
+ [class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
303
+ [role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
304
+ )
305
+ ):not([role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'], [role='tooltip'], [popover]):not(
306
+ :where([data-depth='off'], [data-depth='off'] *)
307
+ ) {
308
+ box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-text-primary) 6%, transparent), var(--shadow-pop);
309
+ }
310
+ :root[data-depth='rich']:not([data-theme='high-contrast']).dark
311
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
312
+ :is(div, section, article, li)[class~='border']:is(
313
+ [class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
314
+ ):is([class~='bg-bg-surface'], [class~='bg-surface'], [class~='bg-surface-default']):not(
315
+ [data-slot], [role='search'], [role='toolbar'], [class~='absolute'], [class~='fixed'],
316
+ [class*='sticky'], [class*='status-'], [class*='bg-gradient'], [class*='bg-linear'],
317
+ [class*='bg-radial'], [class*='bg-conic'], [class*='bg-['], [class~='bg-accent-wash']
318
+ ):not(
319
+ :has(
320
+ 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'])
323
+ )
324
+ ):not(
325
+ :where(
326
+ [class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
327
+ [role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
328
+ )
329
+ ):not([role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'], [role='tooltip'], [popover]):not(
330
+ :where([data-depth='off'], [data-depth='off'] *)
331
+ ) {
332
+ background-image: var(--gradient-gloss-card);
333
+ }
334
+ :root[data-depth='rich']:not([data-theme='high-contrast']):not(.dark)
335
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
336
+ :is(div, section, article, li)[class~='border']:is(
337
+ [class~='rounded-lg'], [class~='rounded-xl'], [class~='rounded-2xl'], [class~='rounded-card']
338
+ ):is([class~='bg-bg-surface'], [class~='bg-surface'], [class~='bg-surface-default']):not(
339
+ [data-slot], [role='search'], [role='toolbar'], [class~='absolute'], [class~='fixed'],
340
+ [class*='sticky'], [class*='status-'], [class*='bg-gradient'], [class*='bg-linear'],
341
+ [class*='bg-radial'], [class*='bg-conic'], [class*='bg-['], [class~='bg-accent-wash']
342
+ ):not(
343
+ :has(
344
+ 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'])
347
+ )
348
+ ):not(
349
+ :where(
350
+ [class*='sticky'] *, [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *,
351
+ [role='alertdialog'] *, [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
352
+ )
353
+ ):not([role='menu'], [role='menubar'], [role='listbox'], [role='dialog'], [role='alertdialog'], [role='tooltip'], [popover]):not(
354
+ :where([data-depth='off'], [data-depth='off'] *)
355
+ ) {
356
+ background-image: linear-gradient(180deg, var(--gloss-sheen-light) 0%, transparent 38%, transparent 82%, color-mix(in oklab, var(--gloss-rim-light) var(--depth-rim), transparent) 100%);
357
+ }
358
+ }
359
+
360
+ /* ---------- D2: clickable cards light up under the pointer (the lift is with the motion) ---------- */
361
+ @media (hover: hover) {
362
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
363
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
364
+ :is(
365
+ [data-slot='card']:is([data-interactive], [role='button'], [role='link']),
366
+ [data-slot='glass-card']:is([data-interactive], [role='button'], [role='link']),
367
+ [data-slot='responsive-table-card'][data-interactive]
368
+ ):hover:not(
369
+ [data-glow], :focus-visible, [class~='ring'], [class~='ring-1'], [class~='ring-2'],
370
+ [class~='ring-4'], [class*='status-']
371
+ ):not(:where([data-depth='off'], [data-depth='off'] *)) {
372
+ border-color: color-mix(in oklab, var(--color-accent-glow) 45%, transparent);
373
+ box-shadow:
374
+ 0 0 0 1px color-mix(in oklab, var(--color-accent-glow) 30%, transparent),
375
+ 0 18px 40px -22px color-mix(in oklab, var(--color-accent-glow) 60%, transparent),
376
+ var(--shadow-pop);
377
+ }
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
381
+ * 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
+ }
403
+ }
404
+ }
405
+
406
+ /* ---------- D2: accent icon tiles ----------
407
+ * IconTile takes the /assistant tile gradient, and its icon --boff-on-glow (its own colour
408
+ * class would fall to about 2:1 on the bright tile). Not in a menu, listbox, dialog, tooltip
409
+ * or popper. */
410
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
411
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
412
+ [data-slot='icon-tile']:not(
413
+ :where(
414
+ [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *, [role='alertdialog'] *,
415
+ [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
416
+ )
417
+ ):not(:where([data-depth='off'], [data-depth='off'] *)) {
418
+ background-image: linear-gradient(135deg, var(--color-accent-glow), color-mix(in oklab, var(--color-accent-glow) 55%, var(--color-accent-glow-alt)));
419
+ color: var(--boff-on-glow);
420
+ box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--color-accent-glow) 70%, transparent);
421
+ }
422
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
423
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
424
+ [data-slot='icon-tile']:not(
425
+ :where(
426
+ [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *, [role='alertdialog'] *,
427
+ [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
428
+ )
429
+ ):not(:where([data-depth='off'], [data-depth='off'] *))
430
+ > svg {
431
+ color: var(--boff-on-glow);
432
+ }
433
+ /* Hand-drawn tiles in module code (no hook yet): a small rounded tile whose only element
434
+ * child is an icon, on one of the exact resting accent tints. Not the empty-state icon (D5),
435
+ * not a selection tint or an avatar (no lone icon), not a chip (side padding or a text
436
+ * size), not in a menu, listbox, dialog, tooltip or popper. */
437
+ @supports selector(:has(*)) {
438
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
439
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
440
+ :is(div, span):is(
441
+ [class~='bg-action-primary-bg/10'], [class~='bg-action-primary-bg/15'],
442
+ [class~='bg-action-primary-bg/20'], [class~='bg-[var(--color-accent-soft)]'],
443
+ [class~='bg-accent-soft'], [class~='bg-bg-accent']
444
+ )[class*='rounded']:not([data-slot], [class*='px-'], [class~='text-xs'], [class~='text-sm']):not(
445
+ :where(
446
+ [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *, [role='alertdialog'] *,
447
+ [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
448
+ )
449
+ ):has(> svg:only-child):not(:where([data-depth='off'], [data-depth='off'] *)) {
450
+ background-image: linear-gradient(135deg, var(--color-accent-glow), color-mix(in oklab, var(--color-accent-glow) 55%, var(--color-accent-glow-alt)));
451
+ color: var(--boff-on-glow);
452
+ box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--color-accent-glow) 70%, transparent);
453
+ }
454
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
455
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
456
+ :is(div, span):is(
457
+ [class~='bg-action-primary-bg/10'], [class~='bg-action-primary-bg/15'],
458
+ [class~='bg-action-primary-bg/20'], [class~='bg-[var(--color-accent-soft)]'],
459
+ [class~='bg-accent-soft'], [class~='bg-bg-accent']
460
+ )[class*='rounded']:not([data-slot], [class*='px-'], [class~='text-xs'], [class~='text-sm']):not(
461
+ :where(
462
+ [role='menu'] *, [role='menubar'] *, [role='listbox'] *, [role='dialog'] *, [role='alertdialog'] *,
463
+ [role='tooltip'] *, [popover] *, [data-radix-popper-content-wrapper] *
464
+ )
465
+ ):has(> svg:only-child):not(:where([data-depth='off'], [data-depth='off'] *))
466
+ > svg {
467
+ color: var(--boff-on-glow);
468
+ }
469
+ }
470
+
471
+ /* ---------- 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).
478
+ * The remap covers the aliases that resolve at :root and so never follow a remapped
479
+ * --color-text-muted: text-muted-foreground (semantic.css, app-shell.css and the app's
480
+ * @theme) and text-content-muted / -tertiary (app-shell.css). The header's remap sits on the
481
+ * header group, so a colour class on <thead> reads it too; a colour set on <tbody>, the table
482
+ * or above it is inherited already resolved and keeps the muted token (a follow-up). Never in
483
+ * a prose table, or in a GlassCard that paints its own surface (metric's accent wash, the
484
+ * glass treatment's gloss): the washes would stack on it. */
485
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
486
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
487
+ :is([data-slot='table'], table):not(
488
+ .prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
489
+ )
490
+ > :is([data-slot='table-header'], thead)
491
+ > tr:not(:where([data-depth='off'], [data-depth='off'] *)) {
492
+ background-image: linear-gradient(180deg, color-mix(in oklab, var(--color-accent-glow) var(--depth-head-wash), transparent), transparent);
493
+ }
494
+ :root[data-depth='rich']:not([data-theme='high-contrast']):not(.dark)
495
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
496
+ :is([data-slot='table'], table):not(
497
+ .prose table, [data-slot='glass-card']:is([data-treatment='metric'], [data-treatment='glass']) table
498
+ )
499
+ > :is([data-slot='table-header'], thead):not(:where([data-depth='off'], [data-depth='off'] *)) {
500
+ --color-text-muted: var(--color-text-secondary);
501
+ --color-muted-foreground: var(--color-text-secondary);
502
+ --color-content-muted: var(--color-text-secondary);
503
+ --color-content-tertiary: var(--color-text-secondary);
504
+ --color-text-link: var(--color-text-linkHover);
505
+ }
506
+ @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
+ }
558
+ }
559
+ }
560
+
561
+ /* ---------- D4: the selected tab ----------
562
+ * Every selected tab gets a soft accent glow beneath it; a Radix pill keeps its own raised
563
+ * shadow under it, and underline tabs (PageTabs, nav Tabs in the underline variant,
564
+ * hand-drawn border-b-2 tabs) also get the accent underline and the primary text colour.
565
+ * A pill's fill and label stay its own. The top bar's segmented tabs are outside the page. */
566
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
567
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
568
+ [role='tablist']
569
+ [role='tab']:is([aria-selected='true'], [data-state='active']):not(:focus-visible):not(
570
+ :where([data-depth='off'], [data-depth='off'] *)
571
+ ) {
572
+ box-shadow: 0 10px 20px -14px color-mix(in oklab, var(--color-accent-glow) 90%, transparent);
573
+ }
574
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
575
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
576
+ [data-slot='tabs-list']
577
+ [data-slot='tabs-trigger'][data-state='active']:not(:focus-visible):not(
578
+ :where([data-depth='off'], [data-depth='off'] *)
579
+ ) {
580
+ box-shadow:
581
+ var(--shadow-elevation-1),
582
+ 0 10px 20px -14px color-mix(in oklab, var(--color-accent-glow) 90%, transparent);
583
+ }
584
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
585
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
586
+ [role='tablist']
587
+ :is(
588
+ [data-slot='page-tabs-tab'],
589
+ [data-slot='page-tabs-more'],
590
+ [data-slot='nav-tabs'][data-variant='underline'] [data-slot='nav-tabs-tab'],
591
+ [role='tab'][class~='border-b-2']
592
+ ):is([aria-selected='true'], [data-state='active']):not(:focus-visible):not(
593
+ :where([data-depth='off'], [data-depth='off'] *)
594
+ ) {
595
+ color: var(--color-text-primary);
596
+ box-shadow:
597
+ inset 0 -2px 0 var(--color-accent-glow),
598
+ 0 10px 20px -14px color-mix(in oklab, var(--color-accent-glow) 90%, transparent);
599
+ }
600
+
601
+ /* ---------- D4: primary buttons glow ----------
602
+ * fe-libs Button only: a class match would catch chips, page numbers and toggles that share
603
+ * bg-action-primary-bg. Also in the sidebar (its New button), on every page. */
604
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
605
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
606
+ [data-slot='button'][data-variant='default']:not(
607
+ :disabled, [aria-disabled='true'], :focus-visible, .boff-voice-start
608
+ ):not(:where([data-depth='off'], [data-depth='off'] *)),
609
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
610
+ [data-shell-sidebar]
611
+ [data-slot='button'][data-variant='default']:not(
612
+ :disabled, [aria-disabled='true'], :focus-visible, .boff-voice-start
613
+ ):not(:where([data-depth='off'], [data-depth='off'] *)) {
614
+ background-image: linear-gradient(135deg, color-mix(in oklab, var(--color-accent-glow) var(--depth-button-sheen), transparent), transparent 60%);
615
+ box-shadow: 0 8px 22px -10px color-mix(in oklab, var(--color-accent-glow) 80%, transparent);
616
+ }
617
+
618
+ /* ---------- D4: a field you type in glows ----------
619
+ * A soft accent halo drawn with a drop-shadow filter around the field and its own focus
620
+ * ring: the field keeps its border, ring and outline, so the focus indicator is exactly
621
+ * today's plus the halo. An invalid field, a borderless field (its wrapper shows the focus)
622
+ * and one whose focus style is turned off are left alone. Raw fields need the bare `border`
623
+ * token and a text-like type (an untyped input is text). */
624
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
625
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
626
+ :is([data-slot='input'], [data-slot='textarea'], [data-slot='select-trigger']):focus-visible:not(
627
+ [aria-invalid='true'], [class~='border-0'], [class~='border-none'],
628
+ [class~='focus-visible:ring-0'], [class~='focus:ring-0'], [class~='focus-visible:shadow-none']
629
+ ):not(:where([data-depth='off'], [data-depth='off'] *)),
630
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
631
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
632
+ :is(
633
+ input:not(
634
+ [type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='color'],
635
+ [type='hidden'], [type='button'], [type='submit'], [type='reset'], [type='image']
636
+ ),
637
+ textarea,
638
+ select
639
+ )[class~='border']:not(
640
+ [data-slot], [class~='border-0'], [class~='border-none'], [aria-invalid='true']
641
+ ):focus-visible:not(:where([data-depth='off'], [data-depth='off'] *)) {
642
+ filter: drop-shadow(0 0 6px color-mix(in oklab, var(--color-accent-glow) 45%, transparent));
643
+ }
644
+
645
+ /* ---------- Neutral badges take a faint accent edge ----------
646
+ * Outline and secondary only (data-badge-variant; Badge never uses data-variant, which the
647
+ * UI agent tools read as a destructive Button), and only while they keep their own border
648
+ * token: a consumer's status border replaces that token (tailwind-merge), and then the
649
+ * badge is left alone. */
650
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
651
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
652
+ [data-slot='badge']:is(
653
+ [data-badge-variant='outline'][class~='border-border-default'],
654
+ [data-badge-variant='secondary'][class~='border-border-subtle']
655
+ ):not(:where([data-depth='off'], [data-depth='off'] *)) {
656
+ border-color: color-mix(in oklab, var(--color-accent-glow) 22%, var(--color-border-subtle));
657
+ }
658
+
659
+ /* ---------- D5: an empty page's picture glows in both accents ---------- */
660
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
661
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
662
+ [data-slot='illustrated-empty-state']
663
+ [data-slot='illustration']:not(:where([data-depth='off'], [data-depth='off'] *)) {
664
+ filter:
665
+ drop-shadow(0 0 18px color-mix(in oklab, var(--color-accent-glow) 60%, transparent))
666
+ drop-shadow(0 0 42px color-mix(in oklab, var(--color-accent-glow-alt) 35%, transparent));
667
+ }
668
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
669
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
670
+ [data-slot='empty-state-icon']:not(:where([data-depth='off'], [data-depth='off'] *)) {
671
+ box-shadow:
672
+ 0 0 0 6px color-mix(in oklab, var(--color-accent-glow) 12%, transparent),
673
+ 0 0 28px -4px color-mix(in oklab, var(--color-accent-glow) 55%, transparent);
674
+ }
675
+
676
+ /* ---------- D6: the sidebar shows where you are ----------
677
+ * The current item (expanded, child, pinned and rail rows all carry data-active) gets an
678
+ * accent wash from its start edge, and the existing 3 px bar glows. On the wash the item's
679
+ * accent icon takes the accent glow, and its muted subtitle the secondary token with
680
+ * --depth-nav-subtitle of the primary text mixed in (the dark themes need some to keep
681
+ * 4.5:1 on the approved 24% wash). The radius matches the rows that are already rounded and
682
+ * gives the Assistant row's wrapper the same shape. Never keyed on aria-current, which page
683
+ * tabs carry too. */
684
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
685
+ [data-shell-sidebar]
686
+ [data-active='true']:not(:where([data-depth='off'], [data-depth='off'] *)) {
687
+ --color-accent-primary: var(--color-accent-glow);
688
+ --color-text-muted: color-mix(in oklab, var(--color-text-primary) var(--depth-nav-subtitle), var(--color-text-secondary));
689
+ border-radius: var(--radius-button);
690
+ background-image: linear-gradient(to right, color-mix(in oklab, var(--color-accent-glow) var(--depth-nav-wash), transparent), color-mix(in oklab, var(--color-accent-glow-alt) 8%, transparent));
691
+ }
692
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
693
+ [data-shell-sidebar]
694
+ [data-active='true']:not(:where([data-depth='off'], [data-depth='off'] *)) {
695
+ background-image: linear-gradient(to left, color-mix(in oklab, var(--color-accent-glow) var(--depth-nav-wash), transparent), color-mix(in oklab, var(--color-accent-glow-alt) 8%, transparent));
696
+ }
697
+ :root[data-depth='rich']:not([data-theme='high-contrast'])
698
+ [data-shell-sidebar]
699
+ [data-shell-active-bar]:not(:where([data-depth='off'], [data-depth='off'] *)) {
700
+ background-color: var(--color-accent-glow);
701
+ box-shadow: 0 0 10px color-mix(in oklab, var(--color-accent-glow) 70%, transparent);
702
+ }
703
+
704
+ /* ---------- Motion: only without a reduced-motion preference, from the OS or the app ---------- */
705
+ @media (prefers-reduced-motion: no-preference) {
706
+ /* D1: the page rises in when it opens. The host re-arms data-page-enter on a pathname
707
+ * change (never a query or a hash) without remounting the box. `backwards`, never
708
+ * `both`: a transform that fills forwards keeps the box the containing block of every
709
+ * position: fixed element in the page after the rise. The installed app's own
710
+ * NativePageTransition already animates its routes. */
711
+ :root[data-depth='rich']:not([data-theme='high-contrast']):not([data-reduce-motion])
712
+ [data-shell-page][data-page-enter]:not([data-page-width='tool']):not([data-native-shell] *):not(
713
+ :where([data-depth='off'], [data-depth='off'] *)
714
+ ) {
715
+ animation: boff-rise var(--motion-duration-slow) var(--motion-easing-out) backwards;
716
+ }
717
+ :root[data-depth='rich']:not([data-theme='high-contrast']):not([data-reduce-motion])
718
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
719
+ :is(
720
+ [data-slot='card']:is([data-interactive], [role='button'], [role='link']),
721
+ [data-slot='glass-card']:is([data-interactive], [role='button'], [role='link']),
722
+ [data-slot='responsive-table-card'][data-interactive]
723
+ ):not([data-glow]):not(:where([data-depth='off'], [data-depth='off'] *)) {
724
+ transition:
725
+ translate var(--motion-duration-fast) var(--motion-easing-standard),
726
+ box-shadow var(--motion-duration-fast) var(--motion-easing-standard),
727
+ border-color var(--motion-duration-fast) var(--motion-easing-standard);
728
+ }
729
+ @media (hover: hover) {
730
+ /* D2: a clickable card lifts a little under the pointer. */
731
+ :root[data-depth='rich']:not([data-theme='high-contrast']):not([data-reduce-motion])
732
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
733
+ :is(
734
+ [data-slot='card']:is([data-interactive], [role='button'], [role='link']),
735
+ [data-slot='glass-card']:is([data-interactive], [role='button'], [role='link']),
736
+ [data-slot='responsive-table-card'][data-interactive]
737
+ ):hover:not([data-glow], [class*='status-']):not(:where([data-depth='off'], [data-depth='off'] *)) {
738
+ translate: 0 var(--depth-lift);
739
+ }
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
+ }
756
+ }
757
+ }
758
+ }
759
+ }
760
+ }
@@ -31,6 +31,12 @@
31
31
  * over the per-brand accent. See build/themes.css. */
32
32
  @import './build/themes.css' layer(themes);
33
33
 
34
+ /* BOFF-14994 — the FluidGrids depth layer. Unlayered, like the rules below, and inert unless
35
+ * the host sets <html data-depth="rich">: every selector in it starts with that attribute
36
+ * (shared/utils/depthLayer.test.ts), so other products only download it. An @import must come
37
+ * before the first rule of this file. */
38
+ @import './depth.css';
39
+
34
40
  /* Boff UI 2.0 — glass-intensity preference (data-glass on <html>) + OS
35
41
  * reduced-transparency. Unlayered so these win over foundation/semantic/
36
42
  * brands/themes deterministically. Set by the Theme Preferences customizer. */