@patterninc/pattern-ui 0.0.0-main.202610270514.2e8a0fcab86d → 0.0.0-main.202610270516.e4f9516912f8

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.
@@ -5,7 +5,7 @@ import { cn } from "cn";
5
5
 
6
6
  //#region src/ai-elements/ThinkingLoader/thinking-loader.tsx
7
7
  function ThinkingLoader(t0) {
8
- const $ = c(19);
8
+ const $ = c(17);
9
9
  let className;
10
10
  let label;
11
11
  let props;
@@ -32,54 +32,36 @@ function ThinkingLoader(t0) {
32
32
  $[6] = t2;
33
33
  } else t2 = $[6];
34
34
  let t3;
35
+ if ($[7] !== $__ || $[8] !== label) {
36
+ t3 = label ?? $__({ id: "AUV-TY" });
37
+ $[7] = $__;
38
+ $[8] = label;
39
+ $[9] = t3;
40
+ } else t3 = $[9];
35
41
  let t4;
36
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
37
- t3 = cn("pui-text-label-medium bg-clip-text text-transparent");
38
- t4 = {
39
- backgroundImage: "linear-gradient(90deg, var(--color-gray-400) 0%, var(--color-gray-300) 25%, var(--color-gray-100) 50%, var(--color-gray-300) 75%, var(--color-gray-400) 100%, var(--color-gray-300) 125%, var(--color-gray-100) 150%, var(--color-gray-300) 175%, var(--color-gray-400) 200%)",
40
- backgroundSize: "200% 100%",
41
- WebkitBackgroundClip: "text",
42
- WebkitTextFillColor: "transparent",
43
- animation: "gradient-shimmer 1s linear infinite"
44
- };
45
- $[7] = t3;
46
- $[8] = t4;
47
- } else {
48
- t3 = $[7];
49
- t4 = $[8];
50
- }
51
- let t5;
52
- if ($[9] !== $__ || $[10] !== label) {
53
- t5 = label ?? $__({ id: "AUV-TY" });
54
- $[9] = $__;
55
- $[10] = label;
56
- $[11] = t5;
57
- } else t5 = $[11];
58
- let t6;
59
- if ($[12] !== t5) {
60
- t6 = /* @__PURE__ */ jsx("span", {
61
- className: t3,
62
- style: t4,
63
- children: t5
42
+ if ($[10] !== t3) {
43
+ t4 = /* @__PURE__ */ jsx("span", {
44
+ className: "pui-text-label-medium animate-gradient-shimmer text-shimmer motion-reduce:animate-none",
45
+ children: t3
64
46
  });
65
- $[12] = t5;
66
- $[13] = t6;
67
- } else t6 = $[13];
68
- let t7;
69
- if ($[14] !== props || $[15] !== qaTestId || $[16] !== t2 || $[17] !== t6) {
70
- t7 = /* @__PURE__ */ jsx("div", {
47
+ $[10] = t3;
48
+ $[11] = t4;
49
+ } else t4 = $[11];
50
+ let t5;
51
+ if ($[12] !== props || $[13] !== qaTestId || $[14] !== t2 || $[15] !== t4) {
52
+ t5 = /* @__PURE__ */ jsx("div", {
71
53
  className: t2,
72
54
  "qa-test-id": qaTestId,
73
55
  ...props,
74
- children: t6
56
+ children: t4
75
57
  });
76
- $[14] = props;
77
- $[15] = qaTestId;
78
- $[16] = t2;
79
- $[17] = t6;
80
- $[18] = t7;
81
- } else t7 = $[18];
82
- return t7;
58
+ $[12] = props;
59
+ $[13] = qaTestId;
60
+ $[14] = t2;
61
+ $[15] = t4;
62
+ $[16] = t5;
63
+ } else t5 = $[16];
64
+ return t5;
83
65
  }
84
66
 
85
67
  //#endregion
@@ -1,4 +1,4 @@
1
- import { getUserRequestPanelSurfaceClass } from "../shared/user-request-surface.js";
1
+ import { getUserRequestFormSurfaceClass } from "../shared/user-request-surface.js";
2
2
  import { Tooltip, TooltipContent, TooltipTrigger } from "../../../../components/Tooltip/Tooltip.js";
3
3
  import { UserRequestActions } from "../shared/UserRequestActions.js";
4
4
  import { UserRequestTitle } from "../shared/UserRequestTitle.js";
@@ -166,7 +166,7 @@ function UserRequestForm(t0) {
166
166
  const resolvedPlaceholder = t17;
167
167
  let t18;
168
168
  if ($[32] !== variant) {
169
- t18 = cn("group/request flex w-full flex-col", getUserRequestPanelSurfaceClass(variant));
169
+ t18 = cn("group/request flex w-full flex-col", getUserRequestFormSurfaceClass(variant));
170
170
  $[32] = variant;
171
171
  $[33] = t18;
172
172
  } else t18 = $[33];
@@ -9,7 +9,7 @@ import { useLingui } from "@lingui/react";
9
9
  import { cn } from "cn";
10
10
 
11
11
  //#region src/ai-elements/UserRequest/UserRequestControl/questionnaire/UserRequestInput.tsx
12
- const rowBase = "flex min-h-12 w-full items-center gap-3 rounded-2xl p-3 transition-colors duration-150";
12
+ const rowBase = "flex min-h-12 w-full items-center gap-3 rounded-2xl px-3 py-3.5 transition-colors duration-150";
13
13
  const rowIdle = "hover:bg-depth-black-4";
14
14
  const inputFieldClass = "pui-text-body-medium pui-no-ios-zoom min-w-0 flex-1 border-0 bg-transparent p-0 text-depth-black-88 placeholder:text-depth-black-36 focus:ring-0 focus:outline-none";
15
15
  function UserRequestInput(t0) {
@@ -1,12 +1,22 @@
1
1
  //#region src/ai-elements/UserRequest/UserRequestControl/shared/user-request-surface.ts
2
+ const panelRadius = "rounded-20";
2
3
  const panelSurface = {
3
- inverse: "rounded-3xl bg-base-inverse border border-depth-black-4",
4
- weak: "rounded-3xl bg-depth-black-4"
4
+ inverse: `${panelRadius} bg-base-inverse border border-depth-black-4`,
5
+ weak: `${panelRadius} bg-depth-black-4`
6
+ };
7
+ /** Figma: the Weak + Form layout sits on `base-weak`, not the `depth-black-4` tint. */
8
+ const formPanelSurface = {
9
+ ...panelSurface,
10
+ weak: `${panelRadius} bg-base-weak`
5
11
  };
6
12
  /** Returns the panel surface class for preview shells. */
7
13
  function getUserRequestPanelSurfaceClass(variant) {
8
14
  return panelSurface[variant];
9
15
  }
16
+ /** Returns the panel surface class for the feedback form layout. */
17
+ function getUserRequestFormSurfaceClass(variant) {
18
+ return formPanelSurface[variant];
19
+ }
10
20
 
11
21
  //#endregion
12
- export { getUserRequestPanelSurfaceClass };
22
+ export { getUserRequestFormSurfaceClass, getUserRequestPanelSurfaceClass };
@@ -1 +1 @@
1
- export default "@import './fonts.css';\n@import 'tailwindcss';\n@import './text-utilities.css';\n@import './density.css';\n\n/* Configure dark mode for Tailwind v4 */\n@custom-variant dark (&:where(.dark, .dark *));\n\n/* Pattern Next Design System - Figma Design Tokens */\n/*\n * Primitive solid + alpha ramps live on :root, not @theme, so they stay available\n * as `var(--color-gray-950)` / `var(--color-blue-alpha-24)` without generating\n * utilities like `bg-gray-0`, `bg-blue-alpha-24`, or `text-blue-500`.\n * https://tailwindcss.com/docs/theme (\"Why @theme instead of :root?\").\n *\n * Theme lockdown: only tokens re-declared in `@theme` become utilities.\n * Arbitrary values (`p-[13px]`, `w-[64px]`, `bg-[#fff]`, …) are NOT blocked by\n * `@theme` — ban those via lint.\n */\n:root {\n /* Primitive ramps — referenced by semantic tokens, not used as utilities */\n\n /* Gray Scale - Used for base, border, text, and icon tokens */\n --color-gray-0: oklch(1 0 0);\n --color-gray-25: oklch(0.988 0 0);\n --color-gray-50: oklch(0.976 0 0);\n --color-gray-100: oklch(0.97 0 0);\n --color-gray-200: oklch(0.94 0 0);\n --color-gray-300: oklch(0.861 0 0);\n --color-gray-400: oklch(0.715 0 0);\n --color-gray-500: oklch(0.583 0 0);\n --color-gray-600: oklch(0.475 0 0);\n --color-gray-700: oklch(0.321 0 0);\n --color-gray-800: oklch(0.269 0 0);\n --color-gray-850: oklch(0.248 0 0);\n --color-gray-900: oklch(0.226 0 0);\n --color-gray-950: oklch(0.205 0 0);\n\n /* Blue Scale - Used for primary state colors */\n --color-blue-25: oklch(0.962 0.018 258.4);\n --color-blue-50: oklch(0.955 0.024 238.4);\n --color-blue-100: oklch(0.937 0.037 232.8);\n --color-blue-200: oklch(0.882 0.068 235.2);\n --color-blue-300: oklch(0.804 0.113 236.9);\n --color-blue-400: oklch(0.73 0.157 239.2);\n --color-blue-500: oklch(0.673 0.182 248.1);\n --color-blue-600: oklch(0.609 0.164 248);\n --color-blue-700: oklch(0.531 0.146 249);\n --color-blue-800: oklch(0.443 0.119 248);\n --color-blue-900: oklch(0.355 0.096 248.1);\n --color-blue-950: oklch(0.278 0.068 243.6);\n\n /* Red Scale - Used for negative state colors */\n --color-red-25: oklch(0.982 0.009 17.3);\n --color-red-50: oklch(0.966 0.015 17.4);\n --color-red-100: oklch(0.921 0.036 17.8);\n --color-red-200: oklch(0.867 0.061 18.4);\n --color-red-300: oklch(0.782 0.113 19.9);\n --color-red-400: oklch(0.712 0.165 22.2);\n --color-red-500: oklch(0.642 0.206 26.8);\n --color-red-600: oklch(0.552 0.197 26.6);\n --color-red-700: oklch(0.469 0.165 26.4);\n --color-red-800: oklch(0.377 0.131 26.2);\n --color-red-900: oklch(0.311 0.104 25.7);\n --color-red-950: oklch(0.274 0.092 25.8);\n\n /* Green Scale - Used for positive state colors */\n --color-green-25: oklch(0.984 0.01 164.9);\n --color-green-50: oklch(0.966 0.023 165.9);\n --color-green-100: oklch(0.924 0.05 165.5);\n --color-green-200: oklch(0.88 0.091 164.6);\n --color-green-300: oklch(0.814 0.122 163.3);\n --color-green-400: oklch(0.745 0.145 161);\n --color-green-500: oklch(0.73 0.177 154.5);\n --color-green-600: oklch(0.648 0.153 155.7);\n --color-green-700: oklch(0.541 0.118 158.9);\n --color-green-800: oklch(0.469 0.098 160.9);\n --color-green-900: oklch(0.394 0.079 162.4);\n --color-green-950: oklch(0.328 0.065 164.3);\n\n /* Purple Scale - Used for secondary state colors */\n --color-purple-25: oklch(0.967 0.014 304.1);\n --color-purple-50: oklch(0.955 0.027 304.8);\n --color-purple-100: oklch(0.917 0.047 301.5);\n --color-purple-200: oklch(0.843 0.09 298.8);\n --color-purple-300: oklch(0.736 0.156 297.2);\n --color-purple-400: oklch(0.623 0.23 295.3);\n --color-purple-500: oklch(0.523 0.291 290.8);\n --color-purple-600: oklch(0.466 0.254 293.2);\n --color-purple-700: oklch(0.405 0.216 297.7);\n --color-purple-800: oklch(0.328 0.17 302.6);\n --color-purple-900: oklch(0.253 0.126 307.9);\n --color-purple-950: oklch(0.209 0.103 309.7);\n\n /* Indigo Scale - Used for tertiary state colors */\n --color-indigo-25: oklch(0.97 0.015 282);\n --color-indigo-50: oklch(0.944 0.027 281.3);\n --color-indigo-100: oklch(0.902 0.048 280.2);\n --color-indigo-200: oklch(0.831 0.086 280);\n --color-indigo-300: oklch(0.726 0.144 279.1);\n --color-indigo-400: oklch(0.61 0.213 276);\n --color-indigo-500: oklch(0.546 0.252 273.5);\n --color-indigo-600: oklch(0.479 0.221 273.7);\n --color-indigo-700: oklch(0.412 0.187 274.2);\n --color-indigo-800: oklch(0.341 0.151 274.4);\n --color-indigo-900: oklch(0.269 0.114 275.5);\n --color-indigo-950: oklch(0.208 0.084 276.3);\n\n /* Orange Scale - Used for caution state colors */\n --color-orange-25: oklch(0.979 0.01 67.7);\n --color-orange-50: oklch(0.971 0.02 65.1);\n --color-orange-100: oklch(0.954 0.037 75.2);\n --color-orange-200: oklch(0.901 0.073 70.7);\n --color-orange-300: oklch(0.812 0.127 62.1);\n --color-orange-400: oklch(0.758 0.159 55.9);\n --color-orange-500: oklch(0.705 0.187 47.6);\n --color-orange-600: oklch(0.646 0.194 41.1);\n --color-orange-700: oklch(0.553 0.174 38.4);\n --color-orange-800: oklch(0.47 0.143 37.3);\n --color-orange-900: oklch(0.408 0.116 38.2);\n --color-orange-950: oklch(0.266 0.076 36.3);\n\n /* Yellow Scale - Used for notice state colors */\n --color-yellow-25: oklch(0.991 0.014 93);\n --color-yellow-50: oklch(0.979 0.04 97.8);\n --color-yellow-100: oklch(0.962 0.058 95.6);\n --color-yellow-200: oklch(0.924 0.115 95.7);\n --color-yellow-300: oklch(0.879 0.153 91.6);\n --color-yellow-400: oklch(0.837 0.164 84.4);\n --color-yellow-500: oklch(0.861 0.173 91.9);\n --color-yellow-600: oklch(0.795 0.162 86);\n --color-yellow-700: oklch(0.681 0.142 75.8);\n --color-yellow-800: oklch(0.554 0.121 66.4);\n --color-yellow-900: oklch(0.476 0.103 61.9);\n --color-yellow-950: oklch(0.421 0.09 57.7);\n\n /* Cyan Scale - Used for information state colors */\n --color-cyan-25: oklch(0.979 0.019 208.8);\n --color-cyan-50: oklch(0.964 0.032 209.6);\n --color-cyan-100: oklch(0.949 0.044 210.5);\n --color-cyan-200: oklch(0.909 0.081 210.6);\n --color-cyan-300: oklch(0.856 0.124 212.2);\n --color-cyan-400: oklch(0.794 0.142 217.7);\n --color-cyan-500: oklch(0.695 0.124 217.1);\n --color-cyan-600: oklch(0.627 0.112 217);\n --color-cyan-700: oklch(0.55 0.098 216.3);\n --color-cyan-800: oklch(0.451 0.08 216.4);\n --color-cyan-900: oklch(0.36 0.064 215.5);\n --color-cyan-950: oklch(0.266 0.047 213.5);\n\n /* Stone Scale - Alternative neutral color option */\n --color-stone-0: oklch(1 0 0);\n --color-stone-25: oklch(0.994 0.006 84.6);\n --color-stone-50: oklch(0.978 0.005 67.8);\n --color-stone-100: oklch(0.962 0.006 75.4);\n --color-stone-200: oklch(0.94 0.008 61.4);\n --color-stone-300: oklch(0.861 0.01 62.6);\n --color-stone-400: oklch(0.718 0.012 54.4);\n --color-stone-500: oklch(0.593 0.014 56.1);\n --color-stone-600: oklch(0.441 0.013 54.2);\n --color-stone-700: oklch(0.335 0.013 57.8);\n --color-stone-800: oklch(0.29 0.011 55.9);\n --color-stone-850: oklch(0.266 0.012 55.8);\n --color-stone-900: oklch(0.244 0.011 60.9);\n --color-stone-950: oklch(0.221 0.01 67.3);\n\n /* Slate Scale - Cool neutral, used by the Cool theme */\n --color-slate-0: oklch(1 0 0);\n --color-slate-25: oklch(0.99 0.005 247.9);\n --color-slate-50: oklch(0.973 0.006 264.5);\n --color-slate-100: oklch(0.957 0.006 255.5);\n --color-slate-200: oklch(0.935 0.008 253.9);\n --color-slate-300: oklch(0.855 0.01 252.8);\n --color-slate-400: oklch(0.711 0.013 259.8);\n --color-slate-500: oklch(0.584 0.016 258.4);\n --color-slate-600: oklch(0.433 0.015 259.8);\n --color-slate-700: oklch(0.327 0.014 256.8);\n --color-slate-800: oklch(0.284 0.012 258.4);\n --color-slate-850: oklch(0.259 0.013 258.4);\n --color-slate-900: oklch(0.237 0.011 254.1);\n --color-slate-950: oklch(0.212 0.011 260.7);\n\n /* Neutral Scale - Figma `Theme` collection. Semantic tokens point here, not at\n * gray/stone/slate directly, so `data-theme` can swap the whole ramp. Default\n * mode is gray; see the `[data-theme]` blocks below for Warm and Cool. */\n --color-neutral-0: var(--color-gray-0);\n --color-neutral-25: var(--color-gray-25);\n --color-neutral-50: var(--color-gray-50);\n --color-neutral-100: var(--color-gray-100);\n --color-neutral-200: var(--color-gray-200);\n --color-neutral-300: var(--color-gray-300);\n --color-neutral-400: var(--color-gray-400);\n --color-neutral-500: var(--color-gray-500);\n --color-neutral-600: var(--color-gray-600);\n --color-neutral-700: var(--color-gray-700);\n --color-neutral-800: var(--color-gray-800);\n --color-neutral-850: var(--color-gray-850);\n --color-neutral-900: var(--color-gray-900);\n --color-neutral-950: var(--color-gray-950);\n\n /* ---- Alpha/Transparency Variants ---- */\n\n /* Blue Alpha Variants */\n --color-blue-alpha-0: oklch(0.673 0.182 248.1 / 0);\n --color-blue-alpha-10: oklch(0.673 0.182 248.1 / 0.1);\n --color-blue-alpha-16: oklch(0.673 0.182 248.1 / 0.16);\n --color-blue-alpha-24: oklch(0.673 0.182 248.1 / 0.24);\n --color-blue-alpha-36: oklch(0.673 0.182 248.1 / 0.36);\n --color-blue-alpha-48: oklch(0.673 0.182 248.1 / 0.48);\n\n /* Purple Alpha Variants */\n --color-purple-alpha-0: oklch(0.523 0.291 290.8 / 0);\n --color-purple-alpha-10: oklch(0.523 0.291 290.8 / 0.1);\n --color-purple-alpha-16: oklch(0.523 0.291 290.8 / 0.16);\n --color-purple-alpha-24: oklch(0.523 0.291 290.8 / 0.24);\n --color-purple-alpha-36: oklch(0.523 0.291 290.8 / 0.36);\n --color-purple-alpha-48: oklch(0.523 0.291 290.8 / 0.48);\n\n /* Indigo Alpha Variants */\n --color-indigo-alpha-0: oklch(0.546 0.252 273.5 / 0);\n --color-indigo-alpha-10: oklch(0.546 0.252 273.5 / 0.1);\n --color-indigo-alpha-16: oklch(0.546 0.252 273.5 / 0.16);\n --color-indigo-alpha-24: oklch(0.546 0.252 273.5 / 0.24);\n --color-indigo-alpha-36: oklch(0.546 0.252 273.5 / 0.36);\n --color-indigo-alpha-48: oklch(0.546 0.252 273.5 / 0.48);\n\n /* Cyan Alpha Variants */\n --color-cyan-alpha-0: oklch(0.695 0.124 217.1 / 0);\n --color-cyan-alpha-10: oklch(0.695 0.124 217.1 / 0.1);\n --color-cyan-alpha-16: oklch(0.695 0.124 217.1 / 0.16);\n --color-cyan-alpha-24: oklch(0.695 0.124 217.1 / 0.24);\n --color-cyan-alpha-36: oklch(0.695 0.124 217.1 / 0.36);\n --color-cyan-alpha-48: oklch(0.695 0.124 217.1 / 0.48);\n\n /* Red Alpha Variants */\n --color-red-alpha-0: oklch(0.642 0.206 26.8 / 0);\n --color-red-alpha-10: oklch(0.642 0.206 26.8 / 0.1);\n --color-red-alpha-16: oklch(0.642 0.206 26.8 / 0.16);\n --color-red-alpha-24: oklch(0.642 0.206 26.8 / 0.24);\n --color-red-alpha-36: oklch(0.642 0.206 26.8 / 0.36);\n --color-red-alpha-48: oklch(0.642 0.206 26.8 / 0.48);\n\n /* Green Alpha Variants */\n --color-green-alpha-0: oklch(0.73 0.177 154.5 / 0);\n --color-green-alpha-10: oklch(0.73 0.177 154.5 / 0.1);\n --color-green-alpha-16: oklch(0.73 0.177 154.5 / 0.16);\n --color-green-alpha-24: oklch(0.73 0.177 154.5 / 0.24);\n --color-green-alpha-36: oklch(0.73 0.177 154.5 / 0.36);\n --color-green-alpha-48: oklch(0.73 0.177 154.5 / 0.48);\n\n /* Orange Alpha Variants */\n --color-orange-alpha-0: oklch(0.705 0.187 47.6 / 0);\n --color-orange-alpha-10: oklch(0.705 0.187 47.6 / 0.1);\n --color-orange-alpha-16: oklch(0.705 0.187 47.6 / 0.16);\n --color-orange-alpha-24: oklch(0.705 0.187 47.6 / 0.24);\n --color-orange-alpha-36: oklch(0.705 0.187 47.6 / 0.36);\n --color-orange-alpha-48: oklch(0.705 0.187 47.6 / 0.48);\n\n /* Yellow Alpha Variants */\n --color-yellow-alpha-0: oklch(0.861 0.173 91.9 / 0);\n --color-yellow-alpha-10: oklch(0.861 0.173 91.9 / 0.1);\n --color-yellow-alpha-16: oklch(0.861 0.173 91.9 / 0.16);\n --color-yellow-alpha-24: oklch(0.861 0.173 91.9 / 0.24);\n --color-yellow-alpha-36: oklch(0.861 0.173 91.9 / 0.36);\n --color-yellow-alpha-48: oklch(0.861 0.173 91.9 / 0.48);\n\n /* Opacity Scale - Figma `Opacity` collection. Compose with a neutral step via\n * color-mix() so the result follows `data-theme`. 0 and 100 are 0.01% and\n * 99.9% by design (Figma keeps them distinct from fully clear / opaque). */\n --opacity-0: 0.01%;\n --opacity-4: 4%;\n --opacity-8: 8%;\n --opacity-10: 10%;\n --opacity-16: 16%;\n --opacity-24: 24%;\n --opacity-36: 36%;\n --opacity-48: 48%;\n --opacity-56: 56%;\n --opacity-64: 64%;\n --opacity-72: 72%;\n --opacity-80: 80%;\n --opacity-88: 88%;\n --opacity-96: 96%;\n --opacity-100: 99.9%;\n\n /* Shadow Colors - Figma `Shadow/{step}/{opacity}`: a neutral step at an\n * opacity step. Only the pairs the shadow tokens use are declared. */\n --color-shadow-950-8: color-mix(in oklab, var(--color-neutral-950) var(--opacity-8), transparent);\n --color-shadow-950-10: color-mix(\n in oklab,\n var(--color-neutral-950) var(--opacity-10),\n transparent\n );\n --color-shadow-900-4: color-mix(in oklab, var(--color-neutral-900) var(--opacity-4), transparent);\n --color-shadow-900-24: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-24),\n transparent\n );\n --color-shadow-700-4: color-mix(in oklab, var(--color-neutral-700) var(--opacity-4), transparent);\n --color-shadow-700-8: color-mix(in oklab, var(--color-neutral-700) var(--opacity-8), transparent);\n --color-shadow-700-16: color-mix(\n in oklab,\n var(--color-neutral-700) var(--opacity-16),\n transparent\n );\n --color-shadow-500-10: color-mix(\n in oklab,\n var(--color-neutral-500) var(--opacity-10),\n transparent\n );\n --color-shadow-500-24: color-mix(\n in oklab,\n var(--color-neutral-500) var(--opacity-24),\n transparent\n );\n --color-shadow-0-36: color-mix(in oklab, var(--color-neutral-0) var(--opacity-36), transparent);\n}\n\n/* Theme modes - set `data-theme` on <html> (the same element as `.dark`).\n * Semantic tokens resolve on :root, so a `data-theme` on a lower element does\n * not change them. No attribute (or `data-theme=\"default\"`) keeps gray. */\n[data-theme='warm'] {\n --color-neutral-0: var(--color-stone-0);\n --color-neutral-25: var(--color-stone-25);\n --color-neutral-50: var(--color-stone-50);\n --color-neutral-100: var(--color-stone-100);\n --color-neutral-200: var(--color-stone-200);\n --color-neutral-300: var(--color-stone-300);\n --color-neutral-400: var(--color-stone-400);\n --color-neutral-500: var(--color-stone-500);\n --color-neutral-600: var(--color-stone-600);\n --color-neutral-700: var(--color-stone-700);\n --color-neutral-800: var(--color-stone-800);\n --color-neutral-850: var(--color-stone-850);\n --color-neutral-900: var(--color-stone-900);\n --color-neutral-950: var(--color-stone-950);\n}\n\n[data-theme='cool'] {\n --color-neutral-0: var(--color-slate-0);\n --color-neutral-25: var(--color-slate-25);\n --color-neutral-50: var(--color-slate-50);\n --color-neutral-100: var(--color-slate-100);\n --color-neutral-200: var(--color-slate-200);\n --color-neutral-300: var(--color-slate-300);\n --color-neutral-400: var(--color-slate-400);\n --color-neutral-500: var(--color-slate-500);\n --color-neutral-600: var(--color-slate-600);\n --color-neutral-700: var(--color-slate-700);\n --color-neutral-800: var(--color-slate-800);\n --color-neutral-850: var(--color-slate-850);\n --color-neutral-900: var(--color-slate-900);\n --color-neutral-950: var(--color-slate-950);\n}\n\n@theme {\n /* Font family variables - source of truth */\n --font-family-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;\n --font-family-mono: 'Geist Mono', ui-monospace, monospace;\n --font-family-brand: 'Wix Madefor Display', ui-sans-serif, system-ui, sans-serif;\n\n /* Tailwind utility mappings - reference font-family variables */\n --font-sans: var(--font-family-sans);\n --font-mono: var(--font-family-mono);\n --font-brand: var(--font-family-brand);\n\n /* ---- Color lockdown ----\n * Primitive solid/alpha ramps live in :root (CSS vars only). Wipe default\n * Tailwind --color-* utilities, keep transparent/current/inherit, then\n * re-declare semantic tokens only (no bg-gray-500 / bg-blue-alpha-24). */\n --color-*: initial;\n --color-transparent: transparent;\n --color-current: currentColor;\n --color-inherit: inherit;\n\n /* ---- Design System Tokens ---- */\n\n /* Base Colors - Light Mode */\n --color-base-strong: var(--color-neutral-950);\n --color-base-surface: var(--color-neutral-850);\n --color-base-sub: var(--color-neutral-300);\n --color-base-soft: var(--color-neutral-200);\n --color-base-weak: var(--color-neutral-50);\n --color-base-inverse: var(--color-neutral-0);\n\n /* Text Colors */\n --color-text-strong: var(--color-neutral-950);\n --color-text-sub: var(--color-neutral-600);\n --color-text-soft: var(--color-neutral-400);\n --color-text-disabled: var(--color-neutral-300);\n --color-text-inverse: var(--color-neutral-0);\n\n /* Icon Colors */\n --color-icon-strong: var(--color-neutral-950);\n --color-icon-sub: var(--color-neutral-600);\n --color-icon-soft: var(--color-neutral-400);\n --color-icon-disabled: var(--color-neutral-300);\n --color-icon-inverse: var(--color-neutral-0);\n\n /* Border Colors */\n --color-border-strong: var(--color-neutral-950);\n --color-border-sub: var(--color-neutral-300);\n --color-border-soft: var(--color-neutral-200);\n --color-border-inverse: var(--color-neutral-0);\n\n /* State Colors - Primary */\n --color-primary-darker: var(--color-blue-900);\n --color-primary-dark: var(--color-blue-700);\n --color-primary-base: var(--color-blue-500);\n --color-primary-light: var(--color-blue-200);\n --color-primary-lighter: var(--color-blue-50);\n\n /* State Colors - Secondary */\n --color-secondary-darker: var(--color-purple-900);\n --color-secondary-dark: var(--color-purple-700);\n --color-secondary-base: var(--color-purple-500);\n --color-secondary-light: var(--color-purple-200);\n --color-secondary-lighter: var(--color-purple-50);\n\n /* State Colors - Tertiary */\n --color-tertiary-darker: var(--color-indigo-900);\n --color-tertiary-dark: var(--color-indigo-700);\n --color-tertiary-base: var(--color-indigo-500);\n --color-tertiary-light: var(--color-indigo-200);\n --color-tertiary-lighter: var(--color-indigo-50);\n\n /* State Colors - Negative */\n --color-negative-darker: var(--color-red-900);\n --color-negative-dark: var(--color-red-700);\n --color-negative-base: var(--color-red-500);\n --color-negative-light: var(--color-red-200);\n --color-negative-lighter: var(--color-red-50);\n\n /* State Colors - Positive */\n --color-positive-darker: var(--color-green-900);\n --color-positive-dark: var(--color-green-700);\n --color-positive-base: var(--color-green-500);\n --color-positive-light: var(--color-green-200);\n --color-positive-lighter: var(--color-green-50);\n\n /* State Colors - Caution */\n --color-caution-darker: var(--color-orange-900);\n --color-caution-dark: var(--color-orange-700);\n --color-caution-base: var(--color-orange-500);\n --color-caution-light: var(--color-orange-200);\n --color-caution-lighter: var(--color-orange-50);\n\n /* State Colors - Notice */\n --color-notice-darker: var(--color-yellow-900);\n --color-notice-dark: var(--color-yellow-700);\n --color-notice-base: var(--color-yellow-500);\n --color-notice-light: var(--color-yellow-200);\n --color-notice-lighter: var(--color-yellow-50);\n\n /* State Colors - Information */\n --color-information-darker: var(--color-cyan-900);\n --color-information-dark: var(--color-cyan-700);\n --color-information-base: var(--color-cyan-500);\n --color-information-light: var(--color-cyan-200);\n --color-information-lighter: var(--color-cyan-50);\n\n /* State Colors - Neutral */\n --color-neutral-darker: var(--color-neutral-900);\n --color-neutral-dark: var(--color-neutral-700);\n --color-neutral-base: var(--color-neutral-500);\n --color-neutral-light: var(--color-neutral-200);\n --color-neutral-lighter: var(--color-neutral-50);\n\n /* Depth Tokens - For layering and elevation effects */\n --color-depth-white-0: color-mix(in oklab, var(--color-neutral-0) var(--opacity-0), transparent);\n --color-depth-white-4: color-mix(in oklab, var(--color-neutral-0) var(--opacity-4), transparent);\n --color-depth-white-8: color-mix(in oklab, var(--color-neutral-0) var(--opacity-8), transparent);\n --color-depth-white-16: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-16),\n transparent\n );\n --color-depth-white-24: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-24),\n transparent\n );\n --color-depth-white-36: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-36),\n transparent\n );\n --color-depth-white-48: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-48),\n transparent\n );\n --color-depth-white-56: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-56),\n transparent\n );\n --color-depth-white-64: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-64),\n transparent\n );\n --color-depth-white-72: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-72),\n transparent\n );\n --color-depth-white-80: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-80),\n transparent\n );\n --color-depth-white-88: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-88),\n transparent\n );\n --color-depth-white-96: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-96),\n transparent\n );\n --color-depth-white-100: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-100),\n transparent\n );\n\n --color-depth-black-0: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-0),\n transparent\n );\n --color-depth-black-4: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-4),\n transparent\n );\n --color-depth-black-8: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-8),\n transparent\n );\n --color-depth-black-16: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-16),\n transparent\n );\n --color-depth-black-24: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-24),\n transparent\n );\n --color-depth-black-36: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-36),\n transparent\n );\n --color-depth-black-48: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-48),\n transparent\n );\n --color-depth-black-56: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-56),\n transparent\n );\n --color-depth-black-64: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-64),\n transparent\n );\n --color-depth-black-72: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-72),\n transparent\n );\n --color-depth-black-80: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-80),\n transparent\n );\n --color-depth-black-88: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-88),\n transparent\n );\n --color-depth-black-96: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-96),\n transparent\n );\n --color-depth-black-100: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-100),\n transparent\n );\n\n --color-depth-primary-0: var(--color-blue-alpha-0);\n --color-depth-primary-10: var(--color-blue-alpha-10);\n --color-depth-primary-16: var(--color-blue-alpha-16);\n --color-depth-primary-24: var(--color-blue-alpha-24);\n --color-depth-primary-36: var(--color-blue-alpha-36);\n --color-depth-primary-48: var(--color-blue-alpha-48);\n\n --color-depth-secondary-0: var(--color-purple-alpha-0);\n --color-depth-secondary-10: var(--color-purple-alpha-10);\n --color-depth-secondary-16: var(--color-purple-alpha-16);\n --color-depth-secondary-24: var(--color-purple-alpha-24);\n --color-depth-secondary-36: var(--color-purple-alpha-36);\n --color-depth-secondary-48: var(--color-purple-alpha-48);\n\n --color-depth-tertiary-0: var(--color-indigo-alpha-0);\n --color-depth-tertiary-10: var(--color-indigo-alpha-10);\n --color-depth-tertiary-16: var(--color-indigo-alpha-16);\n --color-depth-tertiary-24: var(--color-indigo-alpha-24);\n --color-depth-tertiary-36: var(--color-indigo-alpha-36);\n --color-depth-tertiary-48: var(--color-indigo-alpha-48);\n\n --color-depth-negative-0: var(--color-red-alpha-0);\n --color-depth-negative-10: var(--color-red-alpha-10);\n --color-depth-negative-16: var(--color-red-alpha-16);\n --color-depth-negative-24: var(--color-red-alpha-24);\n --color-depth-negative-36: var(--color-red-alpha-36);\n --color-depth-negative-48: var(--color-red-alpha-48);\n\n --color-depth-positive-0: var(--color-green-alpha-0);\n --color-depth-positive-10: var(--color-green-alpha-10);\n --color-depth-positive-16: var(--color-green-alpha-16);\n --color-depth-positive-24: var(--color-green-alpha-24);\n --color-depth-positive-36: var(--color-green-alpha-36);\n --color-depth-positive-48: var(--color-green-alpha-48);\n\n --color-depth-caution-0: var(--color-orange-alpha-0);\n --color-depth-caution-10: var(--color-orange-alpha-10);\n --color-depth-caution-16: var(--color-orange-alpha-16);\n --color-depth-caution-24: var(--color-orange-alpha-24);\n --color-depth-caution-36: var(--color-orange-alpha-36);\n --color-depth-caution-48: var(--color-orange-alpha-48);\n\n --color-depth-notice-0: var(--color-yellow-alpha-0);\n --color-depth-notice-10: var(--color-yellow-alpha-10);\n --color-depth-notice-16: var(--color-yellow-alpha-16);\n --color-depth-notice-24: var(--color-yellow-alpha-24);\n --color-depth-notice-36: var(--color-yellow-alpha-36);\n --color-depth-notice-48: var(--color-yellow-alpha-48);\n\n --color-depth-information-0: var(--color-cyan-alpha-0);\n --color-depth-information-10: var(--color-cyan-alpha-10);\n --color-depth-information-16: var(--color-cyan-alpha-16);\n --color-depth-information-24: var(--color-cyan-alpha-24);\n --color-depth-information-36: var(--color-cyan-alpha-36);\n --color-depth-information-48: var(--color-cyan-alpha-48);\n\n /* Overlay Tokens - For modal backgrounds and overlays */\n --color-overlay-stone: color-mix(\n in oklab,\n var(--color-neutral-500) var(--opacity-36),\n transparent\n );\n --color-overlay-gray: color-mix(\n in oklab,\n var(--color-neutral-500) var(--opacity-36),\n transparent\n );\n\n /* Float Tokens - For floating surfaces */\n --color-float-strong: var(--color-neutral-0);\n --color-float-inverse: var(--color-neutral-950);\n\n /* Static Tokens - Colors that don't change with theme */\n --color-static-black: var(--color-gray-950);\n --color-static-white: var(--color-gray-0);\n\n /* Spacing Scale - From Design System */\n /* --spacing-0: 0px;\n --spacing-2: 2px;\n --spacing-4: 4px;\n --spacing-6: 6px;\n --spacing-8: 8px;\n --spacing-10: 10px;\n --spacing-12: 12px;\n --spacing-14: 14px;\n --spacing-16: 16px;\n --spacing-20: 20px;\n --spacing-24: 24px;\n --spacing-32: 32px;\n --spacing-40: 40px;\n --spacing-48: 48px; */\n\n /* ---- Radius lockdown ----\n * Wipe default TW radius scale (incl. rounded-4xl), then re-declare the\n * Figma Radius steps + Pattern extras 10/20/28. Bare `--radius` keeps\n * unprefixed `rounded` working (maps to sm / 4px). */\n --radius-*: initial;\n --radius: 4px;\n --radius-none: 0px;\n --radius-xs: 2px;\n --radius-sm: 4px;\n --radius-md: 6px;\n --radius-lg: 8px;\n --radius-xl: 12px;\n --radius-2xl: 16px;\n --radius-3xl: 24px;\n --radius-full: 9999px;\n --radius-10: 10px;\n --radius-20: 20px;\n --radius-28: 28px;\n\n /* Font sizes - the two Figma `Type/Size` steps with no Tailwind equivalent.\n * 12→text-xs, 14→sm, 16→base, 18→lg, 20→xl, 24→2xl, 30→3xl, 36→4xl,\n * 48→5xl, 60→6xl, 72→7xl all map 1:1. Line heights are deliberately omitted\n * so these compose with `leading-*`; a numeric `--leading-*` namespace is not\n * declared because it would shadow Tailwind's spacing-derived `leading-<n>`\n * scale (which already covers every Figma `Type/Line` value). */\n --text-11: 11px;\n --text-13: 13px;\n\n /* Letter spacing - Figma `Type/Tracking`. Values are px to match Figma;\n * Tailwind's defaults are em, so `wide`/`wider` are intentionally overridden\n * so the design-system values are what the utilities produce. */\n --tracking-closer: -1px;\n --tracking-close: -0.5px;\n --tracking-base: 0px;\n --tracking-wide: 0.5px;\n --tracking-wider: 1px;\n\n /* ---- Shadows - Figma effect styles ----\n * Named `{group}-{step}` after the Figma paths (Shadows/Normal/X-Small →\n * shadow-normal-xs). Tailwind default shadows (shadow / sm / md / lg / xl /\n * 2xl / …) stay available. Pattern tokens below are\n * additive. Figma lists effects top-layer-first and box-shadow paints the\n * first entry on top, so ring and highlight layers come first below.\n * Figma defines no dark-mode variants for effect styles, so neither do these. */\n\n /* Shadows/Normal */\n --shadow-normal-xs: 0 1px 2px 0 var(--color-shadow-900-4);\n --shadow-normal-md: 0 16px 32px -12px var(--color-shadow-950-10);\n\n /* Lift shared by the floating composers (Prompt `hasShadow`, feedback capture bar, element\n * note) - pure black at 20%, not on any primitive ramp */\n --shadow-floating-composer: 0 24px 24px -8px rgb(0 0 0 / 0.2);\n\n /* Shadows/Card */\n --shadow-card-canvas:\n 0 0 2px 0 var(--color-shadow-950-10), 0 1px 2px 0 var(--color-shadow-950-10),\n 0 8px 12px -4px var(--color-shadow-950-8);\n --shadow-card-outline:\n 0 0 1px 0 var(--color-shadow-500-24), 0 3px 8px -1px var(--color-shadow-500-10);\n --shadow-card-simple: 0 1px 2px 0 var(--color-shadow-900-4);\n /* Shadows/Card/Depth is card-canvas plus a background blur, which box-shadow\n * cannot express - pair this with `backdrop-blur-sm`. */\n --shadow-card-depth: var(--shadow-card-canvas);\n\n /* Shadows/Depth - every layer is Shadow/700 (neutral-700) at an opacity step */\n --shadow-depth-xs:\n inset 0 -1px 1px -0.5px var(--color-shadow-700-8), 0 0 0 1px var(--color-shadow-700-4),\n 0 1px 2px 0 var(--color-shadow-700-4), 0 2px 4px 0 var(--color-shadow-700-4),\n 0 4px 8px -2px var(--color-shadow-700-8);\n --shadow-depth-sm:\n inset 0 -0.5px 0.5px 0 var(--color-shadow-700-8), 0 0 0 1px var(--color-shadow-700-4),\n 0 1px 3px -1.5px var(--color-shadow-700-16), 0 5px 5px -2.5px var(--color-shadow-700-8),\n 0 12px 6px -6px var(--color-shadow-700-4), 0 16px 8px -8px var(--color-shadow-700-4);\n --shadow-depth-md:\n inset 0 -1px 1px -0.5px var(--color-shadow-700-8), 0 0 0 1px var(--color-shadow-700-4),\n 0 1px 1px 0.5px var(--color-shadow-700-4), 0 3px 3px -1.5px var(--color-shadow-700-4),\n 0 6px 6px -3px var(--color-shadow-700-4), 0 12px 12px -6px var(--color-shadow-700-4),\n 0 24px 24px -12px var(--color-shadow-700-4), 0 48px 48px -24px var(--color-shadow-700-4);\n --shadow-depth-lg:\n inset 0 -1px 1px -0.5px var(--color-shadow-700-8), 0 0 0 1px var(--color-shadow-700-4),\n 0 1px 1px 0.5px var(--color-shadow-700-4), 0 3px 3px -1.5px var(--color-shadow-700-4),\n 0 6px 6px -3px var(--color-shadow-700-4), 0 12px 12px -6px var(--color-shadow-700-4),\n 0 24px 24px -12px var(--color-shadow-700-4), 0 48px 48px -24px var(--color-shadow-700-4),\n 0 96px 96px -32px var(--color-shadow-700-8);\n\n /* Outline - focus rings. Figma specifies the inner 2px ring as white;\n * base-inverse resolves to white in light mode and adapts in dark. */\n --shadow-outline-primary:\n 0 0 0 2px var(--color-base-inverse), 0 0 0 3px var(--color-primary-base);\n --shadow-outline-secondary:\n 0 0 0 2px var(--color-base-inverse), 0 0 0 3px var(--color-secondary-base);\n --shadow-outline-positive:\n 0 0 0 2px var(--color-base-inverse), 0 0 0 3px var(--color-positive-base);\n --shadow-outline-negative:\n 0 0 0 2px var(--color-base-inverse), 0 0 0 3px var(--color-negative-base);\n --shadow-outline-caution:\n 0 0 0 2px var(--color-base-inverse), 0 0 0 3px var(--color-caution-base);\n\n /* Button - 1px colored ring, drop shadow, plus a top inner highlight on\n * secondary and caution */\n --shadow-button-primary:\n 0 0 0 1px var(--color-primary-base), 0 1px 2px 0 var(--color-shadow-900-24);\n --shadow-button-secondary:\n inset 0 -1px 0 0 var(--color-shadow-0-36), 0 0 0 1px var(--color-secondary-base),\n 0 1px 2px 0 var(--color-shadow-900-24);\n --shadow-button-caution:\n inset 0 -1px 0 0 var(--color-shadow-0-36), 0 0 0 1px var(--color-caution-base),\n 0 1px 2px 0 var(--color-shadow-900-24);\n\n /* Blur - Figma's `Effects` collection (0/4/8/12/16/24/40/64) and every\n * Blur/* effect style already match Tailwind's default --blur-* scale\n * exactly: None→blur-none, Extra Small→xs, Small→sm, Medium→md, Large→lg,\n * Extra Large→xl, Double Large→2xl, Triple Large→3xl. Blur/Layer uses\n * `blur-*`; Blur/Background and Blur/Progressive use `backdrop-blur-*`.\n * No tokens are declared because none are missing. */\n\n /* Animations */\n --animate-accordion-down: accordion-down 0.2s ease-out;\n --animate-accordion-up: accordion-up 0.2s ease-out;\n --animate-skeleton-shimmer: skeleton-shimmer 1.6s linear infinite;\n\n @keyframes accordion-down {\n from {\n height: 0;\n }\n\n to {\n height: var(--radix-accordion-content-height);\n }\n }\n\n @keyframes accordion-up {\n from {\n height: var(--radix-accordion-content-height);\n }\n\n to {\n height: 0;\n }\n }\n\n @keyframes skeleton-shimmer {\n 0% {\n background-position: -200% 0;\n }\n\n 100% {\n background-position: 200% 0;\n }\n }\n\n /* Opacity 0.01 (not 0) so backdrop-filter is sampled before the comment Tag fades in. */\n @keyframes pdp-annotation-in {\n from {\n opacity: 0.01;\n }\n\n to {\n opacity: 1;\n }\n }\n}\n\n/*\n * image-shimmer — static surface + sweep gradient for image loading slots.\n * Pairs with animate-skeleton-shimmer; background-position is the only\n * property that changes so the animation is compositor-only (no repaints).\n */\n@utility image-shimmer {\n background-image: linear-gradient(\n 110deg,\n var(--color-depth-black-4) 20%,\n var(--color-depth-black-8) 40%,\n var(--color-depth-black-4) 60%\n );\n background-size: 200% 100%;\n background-color: var(--color-depth-black-4);\n will-change: background-position;\n}\n\n/*\n * PDP comment Tag fade. Stays at opacity 0.01 until `[data-annotation-visible]` so backdrop-filter\n * is sampled during camera zoom, then animates to 1. Non-Tag annotation nodes skip this.\n */\n@utility pdp-annotation-box {\n & [data-slot='tag'] {\n opacity: 0.01;\n will-change: opacity, backdrop-filter;\n }\n\n &[data-annotation-visible] [data-slot='tag'] {\n animation: pdp-annotation-in 0.3s ease forwards;\n }\n}\n\n/* MessageTail inline-mode shape. Kept as a utility (not inline style) so the SVG mask stays out of JSX. */\n@utility pui-message-tail-mask {\n mask-image: url(\"data:image/svg+xml,%3Csvg width='22' height='19' viewBox='0 0 22 19' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 13C20.6569 13 22 14.3431 22 16C22 17.6569 20.6569 19 19 19C17.3431 19 16 17.6569 16 16C16 14.3431 17.3431 13 19 13ZM8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0Z'/%3E%3C/svg%3E\");\n mask-size: contain;\n mask-position: center;\n mask-repeat: no-repeat;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .animate-skeleton-shimmer {\n animation: none;\n background-position: 0 0;\n }\n\n .pdp-annotation-box[data-annotation-visible] [data-slot='tag'] {\n animation: none;\n opacity: 1;\n }\n}\n\n/* Dark Mode Theme Overrides */\n/* The Pulse always renders as a dark surface, so sileo's viewport opts into the\n dark token set regardless of the app theme (sileo.css adds a couple of\n Pulse-specific overrides on top). */\n.dark,\n[data-sileo-viewport] {\n /* Native UA chrome (selection, scrollbars, form controls) follows the visual theme.\n Without this, browsers keep the light-mode accent (system blue) for ::selection\n even though surfaces are near-black. */\n color-scheme: dark;\n\n /* Base Colors - Dark Mode */\n --color-base-strong: var(--color-neutral-0);\n --color-base-surface: var(--color-neutral-200);\n --color-base-sub: var(--color-neutral-600);\n --color-base-soft: var(--color-neutral-700);\n --color-base-weak: var(--color-neutral-850);\n --color-base-inverse: var(--color-neutral-950);\n\n /* Semantic Color Tokens - Dark Mode */\n --color-text-strong: var(--color-neutral-100);\n --color-text-sub: var(--color-neutral-300);\n --color-text-soft: var(--color-neutral-500);\n --color-text-disabled: var(--color-neutral-600);\n --color-text-inverse: var(--color-neutral-950);\n\n --color-icon-strong: var(--color-neutral-0);\n --color-icon-sub: var(--color-neutral-300);\n --color-icon-soft: var(--color-neutral-500);\n --color-icon-disabled: var(--color-neutral-600);\n --color-icon-inverse: var(--color-neutral-950);\n\n --color-border-strong: var(--color-neutral-0);\n --color-border-sub: var(--color-neutral-600);\n --color-border-soft: var(--color-neutral-850);\n --color-border-inverse: var(--color-neutral-950);\n\n /* State Colors - Dark Mode (using lighter shades for better contrast) */\n --color-primary-darker: var(--color-blue-200);\n --color-primary-dark: var(--color-blue-300);\n --color-primary-base: var(--color-blue-500);\n --color-primary-light: var(--color-blue-alpha-24);\n --color-primary-lighter: var(--color-blue-alpha-16);\n\n --color-secondary-darker: var(--color-purple-200);\n --color-secondary-dark: var(--color-purple-300);\n --color-secondary-base: var(--color-purple-400);\n --color-secondary-light: var(--color-purple-alpha-24);\n --color-secondary-lighter: var(--color-purple-alpha-16);\n\n --color-tertiary-darker: var(--color-indigo-200);\n --color-tertiary-dark: var(--color-indigo-300);\n --color-tertiary-base: var(--color-indigo-500);\n --color-tertiary-light: var(--color-indigo-alpha-24);\n --color-tertiary-lighter: var(--color-indigo-alpha-16);\n\n --color-negative-darker: var(--color-red-200);\n --color-negative-dark: var(--color-red-300);\n --color-negative-base: var(--color-red-400);\n --color-negative-light: var(--color-red-alpha-24);\n --color-negative-lighter: var(--color-red-alpha-16);\n\n --color-positive-darker: var(--color-green-200);\n --color-positive-dark: var(--color-green-300);\n --color-positive-base: var(--color-green-400);\n --color-positive-light: var(--color-green-alpha-24);\n --color-positive-lighter: var(--color-green-alpha-16);\n\n --color-caution-darker: var(--color-orange-200);\n --color-caution-dark: var(--color-orange-300);\n --color-caution-base: var(--color-orange-400);\n --color-caution-light: var(--color-orange-alpha-24);\n --color-caution-lighter: var(--color-orange-alpha-16);\n\n --color-notice-darker: var(--color-yellow-200);\n --color-notice-dark: var(--color-yellow-300);\n --color-notice-base: var(--color-yellow-400);\n --color-notice-light: var(--color-yellow-alpha-24);\n --color-notice-lighter: var(--color-yellow-alpha-16);\n\n --color-information-darker: var(--color-cyan-200);\n --color-information-dark: var(--color-cyan-300);\n --color-information-base: var(--color-cyan-400);\n --color-information-light: var(--color-cyan-alpha-24);\n --color-information-lighter: var(--color-cyan-alpha-16);\n\n --color-neutral-darker: var(--color-neutral-200);\n --color-neutral-dark: var(--color-neutral-300);\n --color-neutral-base: var(--color-neutral-400);\n --color-neutral-light: color-mix(\n in oklab,\n var(--color-neutral-500) var(--opacity-24),\n transparent\n );\n --color-neutral-lighter: color-mix(\n in oklab,\n var(--color-neutral-500) var(--opacity-16),\n transparent\n );\n\n /* Depth Tokens - Dark Mode (inverted) */\n --color-depth-white-0: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-0),\n transparent\n );\n --color-depth-white-4: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-4),\n transparent\n );\n --color-depth-white-8: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-8),\n transparent\n );\n --color-depth-white-16: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-16),\n transparent\n );\n --color-depth-white-24: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-24),\n transparent\n );\n --color-depth-white-36: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-48),\n transparent\n );\n --color-depth-white-48: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-56),\n transparent\n );\n --color-depth-white-56: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-64),\n transparent\n );\n --color-depth-white-64: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-72),\n transparent\n );\n --color-depth-white-72: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-72),\n transparent\n );\n --color-depth-white-80: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-80),\n transparent\n );\n --color-depth-white-88: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-88),\n transparent\n );\n --color-depth-white-96: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-96),\n transparent\n );\n --color-depth-white-100: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-100),\n transparent\n );\n\n --color-depth-black-0: color-mix(in oklab, var(--color-neutral-0) var(--opacity-0), transparent);\n --color-depth-black-4: color-mix(in oklab, var(--color-neutral-0) var(--opacity-4), transparent);\n --color-depth-black-8: color-mix(in oklab, var(--color-neutral-0) var(--opacity-8), transparent);\n --color-depth-black-16: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-16),\n transparent\n );\n --color-depth-black-24: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-24),\n transparent\n );\n --color-depth-black-36: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-36),\n transparent\n );\n --color-depth-black-48: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-48),\n transparent\n );\n --color-depth-black-56: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-56),\n transparent\n );\n --color-depth-black-64: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-64),\n transparent\n );\n --color-depth-black-72: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-72),\n transparent\n );\n --color-depth-black-80: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-80),\n transparent\n );\n --color-depth-black-88: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-88),\n transparent\n );\n --color-depth-black-96: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-96),\n transparent\n );\n --color-depth-black-100: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-100),\n transparent\n );\n\n /* Overlay Tokens - Dark Mode */\n --color-overlay-stone: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-64),\n transparent\n );\n --color-overlay-gray: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-64),\n transparent\n );\n\n /* Float Tokens - Dark Mode */\n --color-float-strong: var(--color-neutral-850);\n --color-float-inverse: var(--color-neutral-100);\n\n /* Table sticky header weak - opaque equivalent of depth-black-4 (neutral-0 at 4%) on base-weak → #292929 */\n .table-header-bg-weak {\n background: color-mix(in oklch, var(--color-neutral-0) 4%, var(--color-base-weak));\n }\n\n /* Table sticky header inverse - opaque header on inverse (light #F6F6F6, dark #202020).\n * neutral-0 at 5% on base-inverse (neutral-950) gives #202020 in Default and follows data-theme. */\n .table-header-bg-inverse {\n background: color-mix(in oklch, var(--color-neutral-0) 5%, var(--color-base-inverse));\n }\n}\n\n/* Dashed border: SVG background (fill=none, stroke only). depth-black-8 (light) / depth-white-8 (dark).\n * The SVG's corner radius can't follow border-radius, so each radius is its own class:\n * dashed-border (20px), dashed-border-lg (8px), dashed-border-radius-16, dashed-border-radius-24.\n * scripts/contrast reads this list from here when generating contrast-theme.css. */\n.dashed-border {\n background-color: transparent;\n background-size: 100% 100%;\n background-position: 0 0;\n background-repeat: no-repeat;\n border-radius: var(--radius-20);\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='20' ry='20' stroke='rgba(28%2C28%2C28%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dark .dashed-border {\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='20' ry='20' stroke='rgba(255%2C255%2C255%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dashed-border-lg {\n border-radius: 8px;\n background-color: transparent;\n background-size: 100% 100%;\n background-position: 0 0;\n background-repeat: no-repeat;\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='rgba(28%2C28%2C28%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dark .dashed-border-lg {\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='rgba(255%2C255%2C255%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dashed-border-radius-16 {\n border-radius: 16px;\n background-color: transparent;\n background-size: 100% 100%;\n background-position: 0 0;\n background-repeat: no-repeat;\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='rgba(28%2C28%2C28%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dark .dashed-border-radius-16 {\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='rgba(255%2C255%2C255%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dashed-border-radius-24 {\n border-radius: 24px;\n background-color: transparent;\n background-size: 100% 100%;\n background-position: 0 0;\n background-repeat: no-repeat;\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='24' ry='24' stroke='rgba(28%2C28%2C28%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dark .dashed-border-radius-24 {\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='24' ry='24' stroke='rgba(255%2C255%2C255%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n/* Keep SVG dashed strokes slightly inset on X-axis to prevent right-edge clipping on zoom, while preserving corner rendering. */\n.dashed-border,\n.dashed-border-lg,\n.dashed-border-radius-16,\n.dashed-border-radius-24 {\n background-size: calc(100% - 1px) 100%;\n background-position: 0.5px 0;\n}\n\n/* Inner Border Utilities - Using box-shadow for better rounded corner support */\n@layer utilities {\n .border-inner-depth-black-4 {\n box-shadow: inset 0 0 0 1px var(--color-depth-black-4);\n }\n\n .border-inner-depth-black-8 {\n box-shadow: inset 0 0 0 1px var(--color-depth-black-8);\n }\n\n .border-inner-depth-black-16 {\n box-shadow: inset 0 0 0 1px var(--color-depth-black-16);\n }\n\n .border-inner-depth-black-24 {\n box-shadow: inset 0 0 0 1px var(--color-depth-black-24);\n }\n\n .border-inner-depth-black-48 {\n box-shadow: inset 0 0 0 1px var(--color-depth-black-48);\n }\n\n /* Table sticky header - opaque equivalent of depth-black-4 on base-weak (light #EDEDED, dark #292929).\n * Dark mode override is in .dark {} block above (uses white 4% to match depth-black-4 = neutral-0 at 4%). */\n .table-header-bg-weak {\n background: color-mix(in oklch, var(--color-neutral-950) 3.5%, var(--color-base-weak));\n }\n\n /* Table sticky header inverse - light #F6F6F6. Dark override (#202020 in Default) is in .dark {} block above. */\n .table-header-bg-inverse {\n background: color-mix(in oklch, var(--color-neutral-950) 3.5%, var(--color-base-inverse));\n }\n}\n\n/* Seam border for left-pinned sticky columns — 1px line at the column's right edge.\n Matches the row-separator border colour so the seam reads as a natural continuation of the grid.\n ::after is used instead of box-shadow/border because border-collapse clips both on sticky\n cells in Chrome and Safari.\n\n Hidden until content is scrolled under the pin (`.table-sticky-shadow-active`), the table is\n hovered or pointer-entered (`data-table-hovered`, so the line stays with the resize handle),\n or a resize drag is in progress. */\n.table-sticky-shadow-right::after,\n.table-sticky-shadow-left::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n width: 1px;\n background: var(--color-depth-black-16);\n pointer-events: none;\n opacity: 0;\n transition: opacity 150ms;\n}\n\n.table-sticky-shadow-right::after {\n right: 0;\n transform: translateX(100%);\n}\n\n/* Seam border for right-pinned sticky columns — 1px line at the column's left edge. */\n.table-sticky-shadow-left::after {\n left: 0;\n transform: translateX(-100%);\n}\n\n.table-sticky-shadow-right.table-sticky-shadow-active::after,\n.table-sticky-shadow-left.table-sticky-shadow-active::after,\n.group\\/table:hover .table-sticky-shadow-right::after,\n.group\\/table:hover .table-sticky-shadow-left::after,\n.group\\/table[data-table-hovered] .table-sticky-shadow-right::after,\n.group\\/table[data-table-hovered] .table-sticky-shadow-left::after,\n.group\\/table[data-col-resizing] .table-sticky-shadow-right::after,\n.group\\/table[data-col-resizing] .table-sticky-shadow-left::after {\n opacity: 1;\n}\n\n/*\n * Sticky body cell backgrounds — opaque so scrolling content doesn't show\n * through. On row hover (`.group:hover`) the cell picks up the same opaque\n * depth-black-4 composite used by `.table-header-bg-*` so the cell tracks\n * the row highlight without any transparency bleed. Custom CSS classes rather\n * than Tailwind utilities because `group-hover:` variants can't be applied to\n * non-@utility classes in Tailwind v4.\n */\n.table-sticky-cell-weak {\n background: var(--color-base-weak);\n}\n.table-sticky-cell-inverse {\n background: var(--color-base-inverse);\n}\n\n/* Row-hover tint only on hover-capable devices (`@media (hover: hover)`). On touch, :hover\n sticks after a tap and would leave the sticky column highlighted while the\n rest of the row is not — see review of the Toggle table on mobile.\n\n The tint layers the SAME depth-black-4 overlay the row hover applies\n (Table row: `hover:bg-depth-black-4`) over the cell's opaque base, so the\n sticky column matches the rest of the row exactly. Using the overlay (rather\n than a header-style color-mix or a hardcoded dark value) keeps it identical\n across light/dark themes — the previous values didn't match the row tint and\n read slightly darker on the sticky column. */\n@media (hover: hover) {\n .group:hover .table-sticky-cell-weak {\n background:\n linear-gradient(var(--color-depth-black-4), var(--color-depth-black-4)),\n var(--color-base-weak);\n }\n .group:hover .table-sticky-cell-inverse {\n background:\n linear-gradient(var(--color-depth-black-4), var(--color-depth-black-4)),\n var(--color-base-inverse);\n }\n}\n\n/* Inner border-soft (0.5px) + Shadows/Normal/X-Small (0 1px 2px 0 black alpha 4).\n * The class name predates the shadow tokens; --shadow-normal-xs is the Figma\n * effect style it was always meant to compose with. */\n.shadow-inner-border-soft-elevation-sm {\n box-shadow:\n inset 0 0 0 0.5px var(--color-border-soft),\n var(--shadow-normal-xs);\n}\n\n@layer base {\n /* Grayscale antialiasing on the root — lighter type on macOS than browser default subpixel. */\n html,\n :host {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n color-scheme: light;\n }\n\n /*\n * Inverted text selection, same pattern as Vercel Geist:\n * light → charcoal bg + white copy (`--geist-selection` / `--geist-selection-text-color`)\n * dark → near-white bg + charcoal copy (tokens invert under `.dark`)\n * Kept in @layer base so component utilities like selection:bg-* can still override.\n */\n ::selection {\n background-color: var(--color-text-strong);\n color: var(--color-text-inverse);\n }\n\n * {\n scrollbar-width: thin;\n scrollbar-color: var(--color-depth-black-4) transparent;\n\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background: var(--color-depth-black-4);\n border-radius: 9999px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: var(--color-depth-black-8);\n }\n }\n}\n\n/* Icon size utilities (`size-icon-sm`, `[&_svg]:size-icon-md`, `h-icon-lg`...). Backed by the\n * density icon role tokens (density.css), which snap to drawn sizes at reduced strength, so use\n * these for icons instead of spacing-based `size-4/5/6/8`. `inline` keeps nested scopes live.\n * Default: 2xs 12px, xs 14px, sm 16px, md 20px, lg 24px, xl 28px (cap).\n * `cn` doesn't merge `size-icon-*` with `size-*` (it keeps both), so override an icon size with\n * another `size-icon-*` class or `!size-*`, not a plain `size-*`. */\n@theme inline {\n --spacing-icon-2xs: var(--pui-icon-2xs);\n --spacing-icon-xs: var(--pui-icon-xs);\n --spacing-icon-sm: var(--pui-icon-sm);\n --spacing-icon-md: var(--pui-icon-md);\n --spacing-icon-lg: var(--pui-icon-lg);\n --spacing-icon-xl: var(--pui-icon-xl);\n}\n"
1
+ export default "@import './fonts.css';\n@import 'tailwindcss';\n@import './text-utilities.css';\n@import './density.css';\n\n/* Configure dark mode for Tailwind v4 */\n@custom-variant dark (&:where(.dark, .dark *));\n\n/* Pattern Next Design System - Figma Design Tokens */\n/*\n * Primitive solid + alpha ramps live on :root, not @theme, so they stay available\n * as `var(--color-gray-950)` / `var(--color-blue-alpha-24)` without generating\n * utilities like `bg-gray-0`, `bg-blue-alpha-24`, or `text-blue-500`.\n * https://tailwindcss.com/docs/theme (\"Why @theme instead of :root?\").\n *\n * Theme lockdown: only tokens re-declared in `@theme` become utilities.\n * Arbitrary values (`p-[13px]`, `w-[64px]`, `bg-[#fff]`, …) are NOT blocked by\n * `@theme` — ban those via lint.\n */\n:root {\n /* Primitive ramps — referenced by semantic tokens, not used as utilities */\n\n /* Gray Scale - Used for base, border, text, and icon tokens */\n --color-gray-0: oklch(1 0 0);\n --color-gray-25: oklch(0.988 0 0);\n --color-gray-50: oklch(0.976 0 0);\n --color-gray-100: oklch(0.97 0 0);\n --color-gray-200: oklch(0.94 0 0);\n --color-gray-300: oklch(0.861 0 0);\n --color-gray-400: oklch(0.715 0 0);\n --color-gray-500: oklch(0.583 0 0);\n --color-gray-600: oklch(0.475 0 0);\n --color-gray-700: oklch(0.321 0 0);\n --color-gray-800: oklch(0.269 0 0);\n --color-gray-850: oklch(0.248 0 0);\n --color-gray-900: oklch(0.226 0 0);\n --color-gray-950: oklch(0.205 0 0);\n\n /* Blue Scale - Used for primary state colors */\n --color-blue-25: oklch(0.962 0.018 258.4);\n --color-blue-50: oklch(0.955 0.024 238.4);\n --color-blue-100: oklch(0.937 0.037 232.8);\n --color-blue-200: oklch(0.882 0.068 235.2);\n --color-blue-300: oklch(0.804 0.113 236.9);\n --color-blue-400: oklch(0.73 0.157 239.2);\n --color-blue-500: oklch(0.673 0.182 248.1);\n --color-blue-600: oklch(0.609 0.164 248);\n --color-blue-700: oklch(0.531 0.146 249);\n --color-blue-800: oklch(0.443 0.119 248);\n --color-blue-900: oklch(0.355 0.096 248.1);\n --color-blue-950: oklch(0.278 0.068 243.6);\n\n /* Red Scale - Used for negative state colors */\n --color-red-25: oklch(0.982 0.009 17.3);\n --color-red-50: oklch(0.966 0.015 17.4);\n --color-red-100: oklch(0.921 0.036 17.8);\n --color-red-200: oklch(0.867 0.061 18.4);\n --color-red-300: oklch(0.782 0.113 19.9);\n --color-red-400: oklch(0.712 0.165 22.2);\n --color-red-500: oklch(0.642 0.206 26.8);\n --color-red-600: oklch(0.552 0.197 26.6);\n --color-red-700: oklch(0.469 0.165 26.4);\n --color-red-800: oklch(0.377 0.131 26.2);\n --color-red-900: oklch(0.311 0.104 25.7);\n --color-red-950: oklch(0.274 0.092 25.8);\n\n /* Green Scale - Used for positive state colors */\n --color-green-25: oklch(0.984 0.01 164.9);\n --color-green-50: oklch(0.966 0.023 165.9);\n --color-green-100: oklch(0.924 0.05 165.5);\n --color-green-200: oklch(0.88 0.091 164.6);\n --color-green-300: oklch(0.814 0.122 163.3);\n --color-green-400: oklch(0.745 0.145 161);\n --color-green-500: oklch(0.73 0.177 154.5);\n --color-green-600: oklch(0.648 0.153 155.7);\n --color-green-700: oklch(0.541 0.118 158.9);\n --color-green-800: oklch(0.469 0.098 160.9);\n --color-green-900: oklch(0.394 0.079 162.4);\n --color-green-950: oklch(0.328 0.065 164.3);\n\n /* Purple Scale - Used for secondary state colors */\n --color-purple-25: oklch(0.967 0.014 304.1);\n --color-purple-50: oklch(0.955 0.027 304.8);\n --color-purple-100: oklch(0.917 0.047 301.5);\n --color-purple-200: oklch(0.843 0.09 298.8);\n --color-purple-300: oklch(0.736 0.156 297.2);\n --color-purple-400: oklch(0.623 0.23 295.3);\n --color-purple-500: oklch(0.523 0.291 290.8);\n --color-purple-600: oklch(0.466 0.254 293.2);\n --color-purple-700: oklch(0.405 0.216 297.7);\n --color-purple-800: oklch(0.328 0.17 302.6);\n --color-purple-900: oklch(0.253 0.126 307.9);\n --color-purple-950: oklch(0.209 0.103 309.7);\n\n /* Indigo Scale - Used for tertiary state colors */\n --color-indigo-25: oklch(0.97 0.015 282);\n --color-indigo-50: oklch(0.944 0.027 281.3);\n --color-indigo-100: oklch(0.902 0.048 280.2);\n --color-indigo-200: oklch(0.831 0.086 280);\n --color-indigo-300: oklch(0.726 0.144 279.1);\n --color-indigo-400: oklch(0.61 0.213 276);\n --color-indigo-500: oklch(0.546 0.252 273.5);\n --color-indigo-600: oklch(0.479 0.221 273.7);\n --color-indigo-700: oklch(0.412 0.187 274.2);\n --color-indigo-800: oklch(0.341 0.151 274.4);\n --color-indigo-900: oklch(0.269 0.114 275.5);\n --color-indigo-950: oklch(0.208 0.084 276.3);\n\n /* Orange Scale - Used for caution state colors */\n --color-orange-25: oklch(0.979 0.01 67.7);\n --color-orange-50: oklch(0.971 0.02 65.1);\n --color-orange-100: oklch(0.954 0.037 75.2);\n --color-orange-200: oklch(0.901 0.073 70.7);\n --color-orange-300: oklch(0.812 0.127 62.1);\n --color-orange-400: oklch(0.758 0.159 55.9);\n --color-orange-500: oklch(0.705 0.187 47.6);\n --color-orange-600: oklch(0.646 0.194 41.1);\n --color-orange-700: oklch(0.553 0.174 38.4);\n --color-orange-800: oklch(0.47 0.143 37.3);\n --color-orange-900: oklch(0.408 0.116 38.2);\n --color-orange-950: oklch(0.266 0.076 36.3);\n\n /* Yellow Scale - Used for notice state colors */\n --color-yellow-25: oklch(0.991 0.014 93);\n --color-yellow-50: oklch(0.979 0.04 97.8);\n --color-yellow-100: oklch(0.962 0.058 95.6);\n --color-yellow-200: oklch(0.924 0.115 95.7);\n --color-yellow-300: oklch(0.879 0.153 91.6);\n --color-yellow-400: oklch(0.837 0.164 84.4);\n --color-yellow-500: oklch(0.861 0.173 91.9);\n --color-yellow-600: oklch(0.795 0.162 86);\n --color-yellow-700: oklch(0.681 0.142 75.8);\n --color-yellow-800: oklch(0.554 0.121 66.4);\n --color-yellow-900: oklch(0.476 0.103 61.9);\n --color-yellow-950: oklch(0.421 0.09 57.7);\n\n /* Cyan Scale - Used for information state colors */\n --color-cyan-25: oklch(0.979 0.019 208.8);\n --color-cyan-50: oklch(0.964 0.032 209.6);\n --color-cyan-100: oklch(0.949 0.044 210.5);\n --color-cyan-200: oklch(0.909 0.081 210.6);\n --color-cyan-300: oklch(0.856 0.124 212.2);\n --color-cyan-400: oklch(0.794 0.142 217.7);\n --color-cyan-500: oklch(0.695 0.124 217.1);\n --color-cyan-600: oklch(0.627 0.112 217);\n --color-cyan-700: oklch(0.55 0.098 216.3);\n --color-cyan-800: oklch(0.451 0.08 216.4);\n --color-cyan-900: oklch(0.36 0.064 215.5);\n --color-cyan-950: oklch(0.266 0.047 213.5);\n\n /* Stone Scale - Alternative neutral color option */\n --color-stone-0: oklch(1 0 0);\n --color-stone-25: oklch(0.994 0.006 84.6);\n --color-stone-50: oklch(0.978 0.005 67.8);\n --color-stone-100: oklch(0.962 0.006 75.4);\n --color-stone-200: oklch(0.94 0.008 61.4);\n --color-stone-300: oklch(0.861 0.01 62.6);\n --color-stone-400: oklch(0.718 0.012 54.4);\n --color-stone-500: oklch(0.593 0.014 56.1);\n --color-stone-600: oklch(0.441 0.013 54.2);\n --color-stone-700: oklch(0.335 0.013 57.8);\n --color-stone-800: oklch(0.29 0.011 55.9);\n --color-stone-850: oklch(0.266 0.012 55.8);\n --color-stone-900: oklch(0.244 0.011 60.9);\n --color-stone-950: oklch(0.221 0.01 67.3);\n\n /* Slate Scale - Cool neutral, used by the Cool theme */\n --color-slate-0: oklch(1 0 0);\n --color-slate-25: oklch(0.99 0.005 247.9);\n --color-slate-50: oklch(0.973 0.006 264.5);\n --color-slate-100: oklch(0.957 0.006 255.5);\n --color-slate-200: oklch(0.935 0.008 253.9);\n --color-slate-300: oklch(0.855 0.01 252.8);\n --color-slate-400: oklch(0.711 0.013 259.8);\n --color-slate-500: oklch(0.584 0.016 258.4);\n --color-slate-600: oklch(0.433 0.015 259.8);\n --color-slate-700: oklch(0.327 0.014 256.8);\n --color-slate-800: oklch(0.284 0.012 258.4);\n --color-slate-850: oklch(0.259 0.013 258.4);\n --color-slate-900: oklch(0.237 0.011 254.1);\n --color-slate-950: oklch(0.212 0.011 260.7);\n\n /* Neutral Scale - Figma `Theme` collection. Semantic tokens point here, not at\n * gray/stone/slate directly, so `data-theme` can swap the whole ramp. Default\n * mode is gray; see the `[data-theme]` blocks below for Warm and Cool. */\n --color-neutral-0: var(--color-gray-0);\n --color-neutral-25: var(--color-gray-25);\n --color-neutral-50: var(--color-gray-50);\n --color-neutral-100: var(--color-gray-100);\n --color-neutral-200: var(--color-gray-200);\n --color-neutral-300: var(--color-gray-300);\n --color-neutral-400: var(--color-gray-400);\n --color-neutral-500: var(--color-gray-500);\n --color-neutral-600: var(--color-gray-600);\n --color-neutral-700: var(--color-gray-700);\n --color-neutral-800: var(--color-gray-800);\n --color-neutral-850: var(--color-gray-850);\n --color-neutral-900: var(--color-gray-900);\n --color-neutral-950: var(--color-gray-950);\n\n /* ---- Alpha/Transparency Variants ---- */\n\n /* Blue Alpha Variants */\n --color-blue-alpha-0: oklch(0.673 0.182 248.1 / 0);\n --color-blue-alpha-10: oklch(0.673 0.182 248.1 / 0.1);\n --color-blue-alpha-16: oklch(0.673 0.182 248.1 / 0.16);\n --color-blue-alpha-24: oklch(0.673 0.182 248.1 / 0.24);\n --color-blue-alpha-36: oklch(0.673 0.182 248.1 / 0.36);\n --color-blue-alpha-48: oklch(0.673 0.182 248.1 / 0.48);\n\n /* Purple Alpha Variants */\n --color-purple-alpha-0: oklch(0.523 0.291 290.8 / 0);\n --color-purple-alpha-10: oklch(0.523 0.291 290.8 / 0.1);\n --color-purple-alpha-16: oklch(0.523 0.291 290.8 / 0.16);\n --color-purple-alpha-24: oklch(0.523 0.291 290.8 / 0.24);\n --color-purple-alpha-36: oklch(0.523 0.291 290.8 / 0.36);\n --color-purple-alpha-48: oklch(0.523 0.291 290.8 / 0.48);\n\n /* Indigo Alpha Variants */\n --color-indigo-alpha-0: oklch(0.546 0.252 273.5 / 0);\n --color-indigo-alpha-10: oklch(0.546 0.252 273.5 / 0.1);\n --color-indigo-alpha-16: oklch(0.546 0.252 273.5 / 0.16);\n --color-indigo-alpha-24: oklch(0.546 0.252 273.5 / 0.24);\n --color-indigo-alpha-36: oklch(0.546 0.252 273.5 / 0.36);\n --color-indigo-alpha-48: oklch(0.546 0.252 273.5 / 0.48);\n\n /* Cyan Alpha Variants */\n --color-cyan-alpha-0: oklch(0.695 0.124 217.1 / 0);\n --color-cyan-alpha-10: oklch(0.695 0.124 217.1 / 0.1);\n --color-cyan-alpha-16: oklch(0.695 0.124 217.1 / 0.16);\n --color-cyan-alpha-24: oklch(0.695 0.124 217.1 / 0.24);\n --color-cyan-alpha-36: oklch(0.695 0.124 217.1 / 0.36);\n --color-cyan-alpha-48: oklch(0.695 0.124 217.1 / 0.48);\n\n /* Red Alpha Variants */\n --color-red-alpha-0: oklch(0.642 0.206 26.8 / 0);\n --color-red-alpha-10: oklch(0.642 0.206 26.8 / 0.1);\n --color-red-alpha-16: oklch(0.642 0.206 26.8 / 0.16);\n --color-red-alpha-24: oklch(0.642 0.206 26.8 / 0.24);\n --color-red-alpha-36: oklch(0.642 0.206 26.8 / 0.36);\n --color-red-alpha-48: oklch(0.642 0.206 26.8 / 0.48);\n\n /* Green Alpha Variants */\n --color-green-alpha-0: oklch(0.73 0.177 154.5 / 0);\n --color-green-alpha-10: oklch(0.73 0.177 154.5 / 0.1);\n --color-green-alpha-16: oklch(0.73 0.177 154.5 / 0.16);\n --color-green-alpha-24: oklch(0.73 0.177 154.5 / 0.24);\n --color-green-alpha-36: oklch(0.73 0.177 154.5 / 0.36);\n --color-green-alpha-48: oklch(0.73 0.177 154.5 / 0.48);\n\n /* Orange Alpha Variants */\n --color-orange-alpha-0: oklch(0.705 0.187 47.6 / 0);\n --color-orange-alpha-10: oklch(0.705 0.187 47.6 / 0.1);\n --color-orange-alpha-16: oklch(0.705 0.187 47.6 / 0.16);\n --color-orange-alpha-24: oklch(0.705 0.187 47.6 / 0.24);\n --color-orange-alpha-36: oklch(0.705 0.187 47.6 / 0.36);\n --color-orange-alpha-48: oklch(0.705 0.187 47.6 / 0.48);\n\n /* Yellow Alpha Variants */\n --color-yellow-alpha-0: oklch(0.861 0.173 91.9 / 0);\n --color-yellow-alpha-10: oklch(0.861 0.173 91.9 / 0.1);\n --color-yellow-alpha-16: oklch(0.861 0.173 91.9 / 0.16);\n --color-yellow-alpha-24: oklch(0.861 0.173 91.9 / 0.24);\n --color-yellow-alpha-36: oklch(0.861 0.173 91.9 / 0.36);\n --color-yellow-alpha-48: oklch(0.861 0.173 91.9 / 0.48);\n\n /* Opacity Scale - Figma `Opacity` collection. Compose with a neutral step via\n * color-mix() so the result follows `data-theme`. 0 and 100 are 0.01% and\n * 99.9% by design (Figma keeps them distinct from fully clear / opaque). */\n --opacity-0: 0.01%;\n --opacity-4: 4%;\n --opacity-8: 8%;\n --opacity-10: 10%;\n --opacity-16: 16%;\n --opacity-24: 24%;\n --opacity-36: 36%;\n --opacity-48: 48%;\n --opacity-56: 56%;\n --opacity-64: 64%;\n --opacity-72: 72%;\n --opacity-80: 80%;\n --opacity-88: 88%;\n --opacity-96: 96%;\n --opacity-100: 99.9%;\n\n /* Shadow Colors - Figma `Shadow/{step}/{opacity}`: a neutral step at an\n * opacity step. Only the pairs the shadow tokens use are declared. */\n --color-shadow-950-8: color-mix(in oklab, var(--color-neutral-950) var(--opacity-8), transparent);\n --color-shadow-950-10: color-mix(\n in oklab,\n var(--color-neutral-950) var(--opacity-10),\n transparent\n );\n --color-shadow-900-4: color-mix(in oklab, var(--color-neutral-900) var(--opacity-4), transparent);\n --color-shadow-900-24: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-24),\n transparent\n );\n --color-shadow-700-4: color-mix(in oklab, var(--color-neutral-700) var(--opacity-4), transparent);\n --color-shadow-700-8: color-mix(in oklab, var(--color-neutral-700) var(--opacity-8), transparent);\n --color-shadow-700-16: color-mix(\n in oklab,\n var(--color-neutral-700) var(--opacity-16),\n transparent\n );\n --color-shadow-500-10: color-mix(\n in oklab,\n var(--color-neutral-500) var(--opacity-10),\n transparent\n );\n --color-shadow-500-24: color-mix(\n in oklab,\n var(--color-neutral-500) var(--opacity-24),\n transparent\n );\n --color-shadow-0-36: color-mix(in oklab, var(--color-neutral-0) var(--opacity-36), transparent);\n}\n\n/* Theme modes - set `data-theme` on <html> (the same element as `.dark`).\n * Semantic tokens resolve on :root, so a `data-theme` on a lower element does\n * not change them. No attribute (or `data-theme=\"default\"`) keeps gray. */\n[data-theme='warm'] {\n --color-neutral-0: var(--color-stone-0);\n --color-neutral-25: var(--color-stone-25);\n --color-neutral-50: var(--color-stone-50);\n --color-neutral-100: var(--color-stone-100);\n --color-neutral-200: var(--color-stone-200);\n --color-neutral-300: var(--color-stone-300);\n --color-neutral-400: var(--color-stone-400);\n --color-neutral-500: var(--color-stone-500);\n --color-neutral-600: var(--color-stone-600);\n --color-neutral-700: var(--color-stone-700);\n --color-neutral-800: var(--color-stone-800);\n --color-neutral-850: var(--color-stone-850);\n --color-neutral-900: var(--color-stone-900);\n --color-neutral-950: var(--color-stone-950);\n}\n\n[data-theme='cool'] {\n --color-neutral-0: var(--color-slate-0);\n --color-neutral-25: var(--color-slate-25);\n --color-neutral-50: var(--color-slate-50);\n --color-neutral-100: var(--color-slate-100);\n --color-neutral-200: var(--color-slate-200);\n --color-neutral-300: var(--color-slate-300);\n --color-neutral-400: var(--color-slate-400);\n --color-neutral-500: var(--color-slate-500);\n --color-neutral-600: var(--color-slate-600);\n --color-neutral-700: var(--color-slate-700);\n --color-neutral-800: var(--color-slate-800);\n --color-neutral-850: var(--color-slate-850);\n --color-neutral-900: var(--color-slate-900);\n --color-neutral-950: var(--color-slate-950);\n}\n\n@theme {\n /* Font family variables - source of truth */\n --font-family-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;\n --font-family-mono: 'Geist Mono', ui-monospace, monospace;\n --font-family-brand: 'Wix Madefor Display', ui-sans-serif, system-ui, sans-serif;\n\n /* Tailwind utility mappings - reference font-family variables */\n --font-sans: var(--font-family-sans);\n --font-mono: var(--font-family-mono);\n --font-brand: var(--font-family-brand);\n\n /* ---- Color lockdown ----\n * Primitive solid/alpha ramps live in :root (CSS vars only). Wipe default\n * Tailwind --color-* utilities, keep transparent/current/inherit, then\n * re-declare semantic tokens only (no bg-gray-500 / bg-blue-alpha-24). */\n --color-*: initial;\n --color-transparent: transparent;\n --color-current: currentColor;\n --color-inherit: inherit;\n\n /* ---- Design System Tokens ---- */\n\n /* Base Colors - Light Mode */\n --color-base-strong: var(--color-neutral-950);\n --color-base-surface: var(--color-neutral-850);\n --color-base-sub: var(--color-neutral-300);\n --color-base-soft: var(--color-neutral-200);\n --color-base-weak: var(--color-neutral-50);\n --color-base-inverse: var(--color-neutral-0);\n\n /* Text Colors */\n --color-text-strong: var(--color-neutral-950);\n --color-text-sub: var(--color-neutral-600);\n --color-text-soft: var(--color-neutral-400);\n --color-text-disabled: var(--color-neutral-300);\n --color-text-inverse: var(--color-neutral-0);\n\n /* Icon Colors */\n --color-icon-strong: var(--color-neutral-950);\n --color-icon-sub: var(--color-neutral-600);\n --color-icon-soft: var(--color-neutral-400);\n --color-icon-disabled: var(--color-neutral-300);\n --color-icon-inverse: var(--color-neutral-0);\n\n /* Border Colors */\n --color-border-strong: var(--color-neutral-950);\n --color-border-sub: var(--color-neutral-300);\n --color-border-soft: var(--color-neutral-200);\n --color-border-inverse: var(--color-neutral-0);\n\n /* State Colors - Primary */\n --color-primary-darker: var(--color-blue-900);\n --color-primary-dark: var(--color-blue-700);\n --color-primary-base: var(--color-blue-500);\n --color-primary-light: var(--color-blue-200);\n --color-primary-lighter: var(--color-blue-50);\n\n /* State Colors - Secondary */\n --color-secondary-darker: var(--color-purple-900);\n --color-secondary-dark: var(--color-purple-700);\n --color-secondary-base: var(--color-purple-500);\n --color-secondary-light: var(--color-purple-200);\n --color-secondary-lighter: var(--color-purple-50);\n\n /* State Colors - Tertiary */\n --color-tertiary-darker: var(--color-indigo-900);\n --color-tertiary-dark: var(--color-indigo-700);\n --color-tertiary-base: var(--color-indigo-500);\n --color-tertiary-light: var(--color-indigo-200);\n --color-tertiary-lighter: var(--color-indigo-50);\n\n /* State Colors - Negative */\n --color-negative-darker: var(--color-red-900);\n --color-negative-dark: var(--color-red-700);\n --color-negative-base: var(--color-red-500);\n --color-negative-light: var(--color-red-200);\n --color-negative-lighter: var(--color-red-50);\n\n /* State Colors - Positive */\n --color-positive-darker: var(--color-green-900);\n --color-positive-dark: var(--color-green-700);\n --color-positive-base: var(--color-green-500);\n --color-positive-light: var(--color-green-200);\n --color-positive-lighter: var(--color-green-50);\n\n /* State Colors - Caution */\n --color-caution-darker: var(--color-orange-900);\n --color-caution-dark: var(--color-orange-700);\n --color-caution-base: var(--color-orange-500);\n --color-caution-light: var(--color-orange-200);\n --color-caution-lighter: var(--color-orange-50);\n\n /* State Colors - Notice */\n --color-notice-darker: var(--color-yellow-900);\n --color-notice-dark: var(--color-yellow-700);\n --color-notice-base: var(--color-yellow-500);\n --color-notice-light: var(--color-yellow-200);\n --color-notice-lighter: var(--color-yellow-50);\n\n /* State Colors - Information */\n --color-information-darker: var(--color-cyan-900);\n --color-information-dark: var(--color-cyan-700);\n --color-information-base: var(--color-cyan-500);\n --color-information-light: var(--color-cyan-200);\n --color-information-lighter: var(--color-cyan-50);\n\n /* State Colors - Neutral */\n --color-neutral-darker: var(--color-neutral-900);\n --color-neutral-dark: var(--color-neutral-700);\n --color-neutral-base: var(--color-neutral-500);\n --color-neutral-light: var(--color-neutral-200);\n --color-neutral-lighter: var(--color-neutral-50);\n\n /* Depth Tokens - For layering and elevation effects */\n --color-depth-white-0: color-mix(in oklab, var(--color-neutral-0) var(--opacity-0), transparent);\n --color-depth-white-4: color-mix(in oklab, var(--color-neutral-0) var(--opacity-4), transparent);\n --color-depth-white-8: color-mix(in oklab, var(--color-neutral-0) var(--opacity-8), transparent);\n --color-depth-white-16: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-16),\n transparent\n );\n --color-depth-white-24: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-24),\n transparent\n );\n --color-depth-white-36: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-36),\n transparent\n );\n --color-depth-white-48: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-48),\n transparent\n );\n --color-depth-white-56: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-56),\n transparent\n );\n --color-depth-white-64: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-64),\n transparent\n );\n --color-depth-white-72: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-72),\n transparent\n );\n --color-depth-white-80: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-80),\n transparent\n );\n --color-depth-white-88: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-88),\n transparent\n );\n --color-depth-white-96: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-96),\n transparent\n );\n --color-depth-white-100: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-100),\n transparent\n );\n\n --color-depth-black-0: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-0),\n transparent\n );\n --color-depth-black-4: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-4),\n transparent\n );\n --color-depth-black-8: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-8),\n transparent\n );\n --color-depth-black-16: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-16),\n transparent\n );\n --color-depth-black-24: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-24),\n transparent\n );\n --color-depth-black-36: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-36),\n transparent\n );\n --color-depth-black-48: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-48),\n transparent\n );\n --color-depth-black-56: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-56),\n transparent\n );\n --color-depth-black-64: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-64),\n transparent\n );\n --color-depth-black-72: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-72),\n transparent\n );\n --color-depth-black-80: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-80),\n transparent\n );\n --color-depth-black-88: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-88),\n transparent\n );\n --color-depth-black-96: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-96),\n transparent\n );\n --color-depth-black-100: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-100),\n transparent\n );\n\n --color-depth-primary-0: var(--color-blue-alpha-0);\n --color-depth-primary-10: var(--color-blue-alpha-10);\n --color-depth-primary-16: var(--color-blue-alpha-16);\n --color-depth-primary-24: var(--color-blue-alpha-24);\n --color-depth-primary-36: var(--color-blue-alpha-36);\n --color-depth-primary-48: var(--color-blue-alpha-48);\n\n --color-depth-secondary-0: var(--color-purple-alpha-0);\n --color-depth-secondary-10: var(--color-purple-alpha-10);\n --color-depth-secondary-16: var(--color-purple-alpha-16);\n --color-depth-secondary-24: var(--color-purple-alpha-24);\n --color-depth-secondary-36: var(--color-purple-alpha-36);\n --color-depth-secondary-48: var(--color-purple-alpha-48);\n\n --color-depth-tertiary-0: var(--color-indigo-alpha-0);\n --color-depth-tertiary-10: var(--color-indigo-alpha-10);\n --color-depth-tertiary-16: var(--color-indigo-alpha-16);\n --color-depth-tertiary-24: var(--color-indigo-alpha-24);\n --color-depth-tertiary-36: var(--color-indigo-alpha-36);\n --color-depth-tertiary-48: var(--color-indigo-alpha-48);\n\n --color-depth-negative-0: var(--color-red-alpha-0);\n --color-depth-negative-10: var(--color-red-alpha-10);\n --color-depth-negative-16: var(--color-red-alpha-16);\n --color-depth-negative-24: var(--color-red-alpha-24);\n --color-depth-negative-36: var(--color-red-alpha-36);\n --color-depth-negative-48: var(--color-red-alpha-48);\n\n --color-depth-positive-0: var(--color-green-alpha-0);\n --color-depth-positive-10: var(--color-green-alpha-10);\n --color-depth-positive-16: var(--color-green-alpha-16);\n --color-depth-positive-24: var(--color-green-alpha-24);\n --color-depth-positive-36: var(--color-green-alpha-36);\n --color-depth-positive-48: var(--color-green-alpha-48);\n\n --color-depth-caution-0: var(--color-orange-alpha-0);\n --color-depth-caution-10: var(--color-orange-alpha-10);\n --color-depth-caution-16: var(--color-orange-alpha-16);\n --color-depth-caution-24: var(--color-orange-alpha-24);\n --color-depth-caution-36: var(--color-orange-alpha-36);\n --color-depth-caution-48: var(--color-orange-alpha-48);\n\n --color-depth-notice-0: var(--color-yellow-alpha-0);\n --color-depth-notice-10: var(--color-yellow-alpha-10);\n --color-depth-notice-16: var(--color-yellow-alpha-16);\n --color-depth-notice-24: var(--color-yellow-alpha-24);\n --color-depth-notice-36: var(--color-yellow-alpha-36);\n --color-depth-notice-48: var(--color-yellow-alpha-48);\n\n --color-depth-information-0: var(--color-cyan-alpha-0);\n --color-depth-information-10: var(--color-cyan-alpha-10);\n --color-depth-information-16: var(--color-cyan-alpha-16);\n --color-depth-information-24: var(--color-cyan-alpha-24);\n --color-depth-information-36: var(--color-cyan-alpha-36);\n --color-depth-information-48: var(--color-cyan-alpha-48);\n\n /* Overlay Tokens - For modal backgrounds and overlays */\n --color-overlay-stone: color-mix(\n in oklab,\n var(--color-neutral-500) var(--opacity-36),\n transparent\n );\n --color-overlay-gray: color-mix(\n in oklab,\n var(--color-neutral-500) var(--opacity-36),\n transparent\n );\n\n /* Float Tokens - For floating surfaces */\n --color-float-strong: var(--color-neutral-0);\n --color-float-inverse: var(--color-neutral-950);\n\n /* Static Tokens - Colors that don't change with theme */\n --color-static-black: var(--color-gray-950);\n --color-static-white: var(--color-gray-0);\n\n /* Spacing Scale - From Design System */\n /* --spacing-0: 0px;\n --spacing-2: 2px;\n --spacing-4: 4px;\n --spacing-6: 6px;\n --spacing-8: 8px;\n --spacing-10: 10px;\n --spacing-12: 12px;\n --spacing-14: 14px;\n --spacing-16: 16px;\n --spacing-20: 20px;\n --spacing-24: 24px;\n --spacing-32: 32px;\n --spacing-40: 40px;\n --spacing-48: 48px; */\n\n /* ---- Radius lockdown ----\n * Wipe default TW radius scale (incl. rounded-4xl), then re-declare the\n * Figma Radius steps + Pattern extras 10/20/28. Bare `--radius` keeps\n * unprefixed `rounded` working (maps to sm / 4px). */\n --radius-*: initial;\n --radius: 4px;\n --radius-none: 0px;\n --radius-xs: 2px;\n --radius-sm: 4px;\n --radius-md: 6px;\n --radius-lg: 8px;\n --radius-xl: 12px;\n --radius-2xl: 16px;\n --radius-3xl: 24px;\n --radius-full: 9999px;\n --radius-10: 10px;\n --radius-20: 20px;\n --radius-28: 28px;\n\n /* Font sizes - the two Figma `Type/Size` steps with no Tailwind equivalent.\n * 12→text-xs, 14→sm, 16→base, 18→lg, 20→xl, 24→2xl, 30→3xl, 36→4xl,\n * 48→5xl, 60→6xl, 72→7xl all map 1:1. Line heights are deliberately omitted\n * so these compose with `leading-*`; a numeric `--leading-*` namespace is not\n * declared because it would shadow Tailwind's spacing-derived `leading-<n>`\n * scale (which already covers every Figma `Type/Line` value). */\n --text-11: 11px;\n --text-13: 13px;\n\n /* Letter spacing - Figma `Type/Tracking`. Values are px to match Figma;\n * Tailwind's defaults are em, so `wide`/`wider` are intentionally overridden\n * so the design-system values are what the utilities produce. */\n --tracking-closer: -1px;\n --tracking-close: -0.5px;\n --tracking-base: 0px;\n --tracking-wide: 0.5px;\n --tracking-wider: 1px;\n\n /* ---- Shadows - Figma effect styles ----\n * Named `{group}-{step}` after the Figma paths (Shadows/Normal/X-Small →\n * shadow-normal-xs). Tailwind default shadows (shadow / sm / md / lg / xl /\n * 2xl / …) stay available. Pattern tokens below are\n * additive. Figma lists effects top-layer-first and box-shadow paints the\n * first entry on top, so ring and highlight layers come first below.\n * Figma defines no dark-mode variants for effect styles, so neither do these. */\n\n /* Shadows/Normal */\n --shadow-normal-xs: 0 1px 2px 0 var(--color-shadow-900-4);\n --shadow-normal-md: 0 16px 32px -12px var(--color-shadow-950-10);\n\n /* Lift shared by the floating composers (Prompt `hasShadow`, feedback capture bar, element\n * note) - pure black at 20%, not on any primitive ramp */\n --shadow-floating-composer: 0 24px 24px -8px rgb(0 0 0 / 0.2);\n\n /* Shadows/Card */\n --shadow-card-canvas:\n 0 0 2px 0 var(--color-shadow-950-10), 0 1px 2px 0 var(--color-shadow-950-10),\n 0 8px 12px -4px var(--color-shadow-950-8);\n --shadow-card-outline:\n 0 0 1px 0 var(--color-shadow-500-24), 0 3px 8px -1px var(--color-shadow-500-10);\n --shadow-card-simple: 0 1px 2px 0 var(--color-shadow-900-4);\n /* Shadows/Card/Depth is card-canvas plus a background blur, which box-shadow\n * cannot express - pair this with `backdrop-blur-sm`. */\n --shadow-card-depth: var(--shadow-card-canvas);\n\n /* Shadows/Depth - every layer is Shadow/700 (neutral-700) at an opacity step */\n --shadow-depth-xs:\n inset 0 -1px 1px -0.5px var(--color-shadow-700-8), 0 0 0 1px var(--color-shadow-700-4),\n 0 1px 2px 0 var(--color-shadow-700-4), 0 2px 4px 0 var(--color-shadow-700-4),\n 0 4px 8px -2px var(--color-shadow-700-8);\n --shadow-depth-sm:\n inset 0 -0.5px 0.5px 0 var(--color-shadow-700-8), 0 0 0 1px var(--color-shadow-700-4),\n 0 1px 3px -1.5px var(--color-shadow-700-16), 0 5px 5px -2.5px var(--color-shadow-700-8),\n 0 12px 6px -6px var(--color-shadow-700-4), 0 16px 8px -8px var(--color-shadow-700-4);\n --shadow-depth-md:\n inset 0 -1px 1px -0.5px var(--color-shadow-700-8), 0 0 0 1px var(--color-shadow-700-4),\n 0 1px 1px 0.5px var(--color-shadow-700-4), 0 3px 3px -1.5px var(--color-shadow-700-4),\n 0 6px 6px -3px var(--color-shadow-700-4), 0 12px 12px -6px var(--color-shadow-700-4),\n 0 24px 24px -12px var(--color-shadow-700-4), 0 48px 48px -24px var(--color-shadow-700-4);\n --shadow-depth-lg:\n inset 0 -1px 1px -0.5px var(--color-shadow-700-8), 0 0 0 1px var(--color-shadow-700-4),\n 0 1px 1px 0.5px var(--color-shadow-700-4), 0 3px 3px -1.5px var(--color-shadow-700-4),\n 0 6px 6px -3px var(--color-shadow-700-4), 0 12px 12px -6px var(--color-shadow-700-4),\n 0 24px 24px -12px var(--color-shadow-700-4), 0 48px 48px -24px var(--color-shadow-700-4),\n 0 96px 96px -32px var(--color-shadow-700-8);\n\n /* Outline - focus rings. Figma specifies the inner 2px ring as white;\n * base-inverse resolves to white in light mode and adapts in dark. */\n --shadow-outline-primary:\n 0 0 0 2px var(--color-base-inverse), 0 0 0 3px var(--color-primary-base);\n --shadow-outline-secondary:\n 0 0 0 2px var(--color-base-inverse), 0 0 0 3px var(--color-secondary-base);\n --shadow-outline-positive:\n 0 0 0 2px var(--color-base-inverse), 0 0 0 3px var(--color-positive-base);\n --shadow-outline-negative:\n 0 0 0 2px var(--color-base-inverse), 0 0 0 3px var(--color-negative-base);\n --shadow-outline-caution:\n 0 0 0 2px var(--color-base-inverse), 0 0 0 3px var(--color-caution-base);\n\n /* Button - 1px colored ring, drop shadow, plus a top inner highlight on\n * secondary and caution */\n --shadow-button-primary:\n 0 0 0 1px var(--color-primary-base), 0 1px 2px 0 var(--color-shadow-900-24);\n --shadow-button-secondary:\n inset 0 -1px 0 0 var(--color-shadow-0-36), 0 0 0 1px var(--color-secondary-base),\n 0 1px 2px 0 var(--color-shadow-900-24);\n --shadow-button-caution:\n inset 0 -1px 0 0 var(--color-shadow-0-36), 0 0 0 1px var(--color-caution-base),\n 0 1px 2px 0 var(--color-shadow-900-24);\n\n /* Blur - Figma's `Effects` collection (0/4/8/12/16/24/40/64) and every\n * Blur/* effect style already match Tailwind's default --blur-* scale\n * exactly: None→blur-none, Extra Small→xs, Small→sm, Medium→md, Large→lg,\n * Extra Large→xl, Double Large→2xl, Triple Large→3xl. Blur/Layer uses\n * `blur-*`; Blur/Background and Blur/Progressive use `backdrop-blur-*`.\n * No tokens are declared because none are missing. */\n\n /* Animations */\n --animate-accordion-down: accordion-down 0.2s ease-out;\n --animate-accordion-up: accordion-up 0.2s ease-out;\n --animate-skeleton-shimmer: skeleton-shimmer 1.6s linear infinite;\n --animate-gradient-shimmer: gradient-shimmer 1s linear infinite;\n\n @keyframes accordion-down {\n from {\n height: 0;\n }\n\n to {\n height: var(--radix-accordion-content-height);\n }\n }\n\n @keyframes accordion-up {\n from {\n height: var(--radix-accordion-content-height);\n }\n\n to {\n height: 0;\n }\n }\n\n @keyframes skeleton-shimmer {\n 0% {\n background-position: -200% 0;\n }\n\n 100% {\n background-position: 200% 0;\n }\n }\n\n @keyframes gradient-shimmer {\n 0% {\n background-position: 200% 50%;\n }\n\n 100% {\n background-position: 0% 50%;\n }\n }\n\n /* Opacity 0.01 (not 0) so backdrop-filter is sampled before the comment Tag fades in. */\n @keyframes pdp-annotation-in {\n from {\n opacity: 0.01;\n }\n\n to {\n opacity: 1;\n }\n }\n}\n\n/*\n * text-shimmer — gradient clipped to text for loading labels (ThinkingLoader). Uses semantic text\n * tokens so the wave adapts to light/dark. The 200% background-size lets the seamless stop pattern\n * flow one way when paired with animate-gradient-shimmer.\n */\n@utility text-shimmer {\n background-image: linear-gradient(\n 90deg,\n var(--color-text-soft) 0%,\n var(--color-text-sub) 25%,\n var(--color-text-strong) 50%,\n var(--color-text-sub) 75%,\n var(--color-text-soft) 100%,\n var(--color-text-sub) 125%,\n var(--color-text-strong) 150%,\n var(--color-text-sub) 175%,\n var(--color-text-soft) 200%\n );\n background-size: 200% 100%;\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n color: transparent;\n}\n\n/*\n * image-shimmer — static surface + sweep gradient for image loading slots.\n * Pairs with animate-skeleton-shimmer; background-position is the only\n * property that changes so the animation is compositor-only (no repaints).\n */\n@utility image-shimmer {\n background-image: linear-gradient(\n 110deg,\n var(--color-depth-black-4) 20%,\n var(--color-depth-black-8) 40%,\n var(--color-depth-black-4) 60%\n );\n background-size: 200% 100%;\n background-color: var(--color-depth-black-4);\n will-change: background-position;\n}\n\n/*\n * PDP comment Tag fade. Stays at opacity 0.01 until `[data-annotation-visible]` so backdrop-filter\n * is sampled during camera zoom, then animates to 1. Non-Tag annotation nodes skip this.\n */\n@utility pdp-annotation-box {\n & [data-slot='tag'] {\n opacity: 0.01;\n will-change: opacity, backdrop-filter;\n }\n\n &[data-annotation-visible] [data-slot='tag'] {\n animation: pdp-annotation-in 0.3s ease forwards;\n }\n}\n\n/* MessageTail inline-mode shape. Kept as a utility (not inline style) so the SVG mask stays out of JSX. */\n@utility pui-message-tail-mask {\n mask-image: url(\"data:image/svg+xml,%3Csvg width='22' height='19' viewBox='0 0 22 19' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 13C20.6569 13 22 14.3431 22 16C22 17.6569 20.6569 19 19 19C17.3431 19 16 17.6569 16 16C16 14.3431 17.3431 13 19 13ZM8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0Z'/%3E%3C/svg%3E\");\n mask-size: contain;\n mask-position: center;\n mask-repeat: no-repeat;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .animate-skeleton-shimmer {\n animation: none;\n background-position: 0 0;\n }\n\n .text-shimmer,\n .animate-gradient-shimmer {\n background-image: none;\n -webkit-text-fill-color: currentColor;\n animation: none;\n }\n\n .pdp-annotation-box[data-annotation-visible] [data-slot='tag'] {\n animation: none;\n opacity: 1;\n }\n}\n\n/* Dark Mode Theme Overrides */\n/* The Pulse always renders as a dark surface, so sileo's viewport opts into the\n dark token set regardless of the app theme (sileo.css adds a couple of\n Pulse-specific overrides on top). */\n.dark,\n[data-sileo-viewport] {\n /* Native UA chrome (selection, scrollbars, form controls) follows the visual theme.\n Without this, browsers keep the light-mode accent (system blue) for ::selection\n even though surfaces are near-black. */\n color-scheme: dark;\n\n /* Base Colors - Dark Mode */\n --color-base-strong: var(--color-neutral-0);\n --color-base-surface: var(--color-neutral-200);\n --color-base-sub: var(--color-neutral-600);\n --color-base-soft: var(--color-neutral-700);\n --color-base-weak: var(--color-neutral-850);\n --color-base-inverse: var(--color-neutral-950);\n\n /* Semantic Color Tokens - Dark Mode */\n --color-text-strong: var(--color-neutral-100);\n --color-text-sub: var(--color-neutral-300);\n --color-text-soft: var(--color-neutral-500);\n --color-text-disabled: var(--color-neutral-600);\n --color-text-inverse: var(--color-neutral-950);\n\n --color-icon-strong: var(--color-neutral-0);\n --color-icon-sub: var(--color-neutral-300);\n --color-icon-soft: var(--color-neutral-500);\n --color-icon-disabled: var(--color-neutral-600);\n --color-icon-inverse: var(--color-neutral-950);\n\n --color-border-strong: var(--color-neutral-0);\n --color-border-sub: var(--color-neutral-600);\n --color-border-soft: var(--color-neutral-850);\n --color-border-inverse: var(--color-neutral-950);\n\n /* State Colors - Dark Mode (using lighter shades for better contrast) */\n --color-primary-darker: var(--color-blue-200);\n --color-primary-dark: var(--color-blue-300);\n --color-primary-base: var(--color-blue-500);\n --color-primary-light: var(--color-blue-alpha-24);\n --color-primary-lighter: var(--color-blue-alpha-16);\n\n --color-secondary-darker: var(--color-purple-200);\n --color-secondary-dark: var(--color-purple-300);\n --color-secondary-base: var(--color-purple-400);\n --color-secondary-light: var(--color-purple-alpha-24);\n --color-secondary-lighter: var(--color-purple-alpha-16);\n\n --color-tertiary-darker: var(--color-indigo-200);\n --color-tertiary-dark: var(--color-indigo-300);\n --color-tertiary-base: var(--color-indigo-500);\n --color-tertiary-light: var(--color-indigo-alpha-24);\n --color-tertiary-lighter: var(--color-indigo-alpha-16);\n\n --color-negative-darker: var(--color-red-200);\n --color-negative-dark: var(--color-red-300);\n --color-negative-base: var(--color-red-400);\n --color-negative-light: var(--color-red-alpha-24);\n --color-negative-lighter: var(--color-red-alpha-16);\n\n --color-positive-darker: var(--color-green-200);\n --color-positive-dark: var(--color-green-300);\n --color-positive-base: var(--color-green-400);\n --color-positive-light: var(--color-green-alpha-24);\n --color-positive-lighter: var(--color-green-alpha-16);\n\n --color-caution-darker: var(--color-orange-200);\n --color-caution-dark: var(--color-orange-300);\n --color-caution-base: var(--color-orange-400);\n --color-caution-light: var(--color-orange-alpha-24);\n --color-caution-lighter: var(--color-orange-alpha-16);\n\n --color-notice-darker: var(--color-yellow-200);\n --color-notice-dark: var(--color-yellow-300);\n --color-notice-base: var(--color-yellow-400);\n --color-notice-light: var(--color-yellow-alpha-24);\n --color-notice-lighter: var(--color-yellow-alpha-16);\n\n --color-information-darker: var(--color-cyan-200);\n --color-information-dark: var(--color-cyan-300);\n --color-information-base: var(--color-cyan-400);\n --color-information-light: var(--color-cyan-alpha-24);\n --color-information-lighter: var(--color-cyan-alpha-16);\n\n --color-neutral-darker: var(--color-neutral-200);\n --color-neutral-dark: var(--color-neutral-300);\n --color-neutral-base: var(--color-neutral-400);\n --color-neutral-light: color-mix(\n in oklab,\n var(--color-neutral-500) var(--opacity-24),\n transparent\n );\n --color-neutral-lighter: color-mix(\n in oklab,\n var(--color-neutral-500) var(--opacity-16),\n transparent\n );\n\n /* Depth Tokens - Dark Mode (inverted) */\n --color-depth-white-0: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-0),\n transparent\n );\n --color-depth-white-4: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-4),\n transparent\n );\n --color-depth-white-8: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-8),\n transparent\n );\n --color-depth-white-16: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-16),\n transparent\n );\n --color-depth-white-24: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-24),\n transparent\n );\n --color-depth-white-36: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-48),\n transparent\n );\n --color-depth-white-48: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-56),\n transparent\n );\n --color-depth-white-56: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-64),\n transparent\n );\n --color-depth-white-64: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-72),\n transparent\n );\n --color-depth-white-72: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-72),\n transparent\n );\n --color-depth-white-80: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-80),\n transparent\n );\n --color-depth-white-88: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-88),\n transparent\n );\n --color-depth-white-96: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-96),\n transparent\n );\n --color-depth-white-100: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-100),\n transparent\n );\n\n --color-depth-black-0: color-mix(in oklab, var(--color-neutral-0) var(--opacity-0), transparent);\n --color-depth-black-4: color-mix(in oklab, var(--color-neutral-0) var(--opacity-4), transparent);\n --color-depth-black-8: color-mix(in oklab, var(--color-neutral-0) var(--opacity-8), transparent);\n --color-depth-black-16: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-16),\n transparent\n );\n --color-depth-black-24: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-24),\n transparent\n );\n --color-depth-black-36: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-36),\n transparent\n );\n --color-depth-black-48: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-48),\n transparent\n );\n --color-depth-black-56: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-56),\n transparent\n );\n --color-depth-black-64: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-64),\n transparent\n );\n --color-depth-black-72: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-72),\n transparent\n );\n --color-depth-black-80: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-80),\n transparent\n );\n --color-depth-black-88: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-88),\n transparent\n );\n --color-depth-black-96: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-96),\n transparent\n );\n --color-depth-black-100: color-mix(\n in oklab,\n var(--color-neutral-0) var(--opacity-100),\n transparent\n );\n\n /* Overlay Tokens - Dark Mode */\n --color-overlay-stone: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-64),\n transparent\n );\n --color-overlay-gray: color-mix(\n in oklab,\n var(--color-neutral-900) var(--opacity-64),\n transparent\n );\n\n /* Float Tokens - Dark Mode */\n --color-float-strong: var(--color-neutral-850);\n --color-float-inverse: var(--color-neutral-100);\n\n /* Table sticky header weak - opaque equivalent of depth-black-4 (neutral-0 at 4%) on base-weak → #292929 */\n .table-header-bg-weak {\n background: color-mix(in oklch, var(--color-neutral-0) 4%, var(--color-base-weak));\n }\n\n /* Table sticky header inverse - opaque header on inverse (light #F6F6F6, dark #202020).\n * neutral-0 at 5% on base-inverse (neutral-950) gives #202020 in Default and follows data-theme. */\n .table-header-bg-inverse {\n background: color-mix(in oklch, var(--color-neutral-0) 5%, var(--color-base-inverse));\n }\n}\n\n/* Dashed border: SVG background (fill=none, stroke only). depth-black-8 (light) / depth-white-8 (dark).\n * The SVG's corner radius can't follow border-radius, so each radius is its own class:\n * dashed-border (20px), dashed-border-lg (8px), dashed-border-radius-16, dashed-border-radius-24.\n * scripts/contrast reads this list from here when generating contrast-theme.css. */\n.dashed-border {\n background-color: transparent;\n background-size: 100% 100%;\n background-position: 0 0;\n background-repeat: no-repeat;\n border-radius: var(--radius-20);\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='20' ry='20' stroke='rgba(28%2C28%2C28%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dark .dashed-border {\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='20' ry='20' stroke='rgba(255%2C255%2C255%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dashed-border-lg {\n border-radius: 8px;\n background-color: transparent;\n background-size: 100% 100%;\n background-position: 0 0;\n background-repeat: no-repeat;\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='rgba(28%2C28%2C28%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dark .dashed-border-lg {\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='8' ry='8' stroke='rgba(255%2C255%2C255%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dashed-border-radius-16 {\n border-radius: 16px;\n background-color: transparent;\n background-size: 100% 100%;\n background-position: 0 0;\n background-repeat: no-repeat;\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='rgba(28%2C28%2C28%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dark .dashed-border-radius-16 {\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='rgba(255%2C255%2C255%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dashed-border-radius-24 {\n border-radius: 24px;\n background-color: transparent;\n background-size: 100% 100%;\n background-position: 0 0;\n background-repeat: no-repeat;\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='24' ry='24' stroke='rgba(28%2C28%2C28%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n.dark .dashed-border-radius-24 {\n background-image: url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='24' ry='24' stroke='rgba(255%2C255%2C255%2C0.08)' stroke-width='1' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e\");\n}\n\n/* Keep SVG dashed strokes slightly inset on X-axis to prevent right-edge clipping on zoom, while preserving corner rendering. */\n.dashed-border,\n.dashed-border-lg,\n.dashed-border-radius-16,\n.dashed-border-radius-24 {\n background-size: calc(100% - 1px) 100%;\n background-position: 0.5px 0;\n}\n\n/* Inner Border Utilities - Using box-shadow for better rounded corner support */\n@layer utilities {\n .border-inner-depth-black-4 {\n box-shadow: inset 0 0 0 1px var(--color-depth-black-4);\n }\n\n .border-inner-depth-black-8 {\n box-shadow: inset 0 0 0 1px var(--color-depth-black-8);\n }\n\n .border-inner-depth-black-16 {\n box-shadow: inset 0 0 0 1px var(--color-depth-black-16);\n }\n\n .border-inner-depth-black-24 {\n box-shadow: inset 0 0 0 1px var(--color-depth-black-24);\n }\n\n .border-inner-depth-black-48 {\n box-shadow: inset 0 0 0 1px var(--color-depth-black-48);\n }\n\n /* Table sticky header - opaque equivalent of depth-black-4 on base-weak (light #EDEDED, dark #292929).\n * Dark mode override is in .dark {} block above (uses white 4% to match depth-black-4 = neutral-0 at 4%). */\n .table-header-bg-weak {\n background: color-mix(in oklch, var(--color-neutral-950) 3.5%, var(--color-base-weak));\n }\n\n /* Table sticky header inverse - light #F6F6F6. Dark override (#202020 in Default) is in .dark {} block above. */\n .table-header-bg-inverse {\n background: color-mix(in oklch, var(--color-neutral-950) 3.5%, var(--color-base-inverse));\n }\n}\n\n/* Seam border for left-pinned sticky columns — 1px line at the column's right edge.\n Matches the row-separator border colour so the seam reads as a natural continuation of the grid.\n ::after is used instead of box-shadow/border because border-collapse clips both on sticky\n cells in Chrome and Safari.\n\n Hidden until content is scrolled under the pin (`.table-sticky-shadow-active`), the table is\n hovered or pointer-entered (`data-table-hovered`, so the line stays with the resize handle),\n or a resize drag is in progress. */\n.table-sticky-shadow-right::after,\n.table-sticky-shadow-left::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n width: 1px;\n background: var(--color-depth-black-16);\n pointer-events: none;\n opacity: 0;\n transition: opacity 150ms;\n}\n\n.table-sticky-shadow-right::after {\n right: 0;\n transform: translateX(100%);\n}\n\n/* Seam border for right-pinned sticky columns — 1px line at the column's left edge. */\n.table-sticky-shadow-left::after {\n left: 0;\n transform: translateX(-100%);\n}\n\n.table-sticky-shadow-right.table-sticky-shadow-active::after,\n.table-sticky-shadow-left.table-sticky-shadow-active::after,\n.group\\/table:hover .table-sticky-shadow-right::after,\n.group\\/table:hover .table-sticky-shadow-left::after,\n.group\\/table[data-table-hovered] .table-sticky-shadow-right::after,\n.group\\/table[data-table-hovered] .table-sticky-shadow-left::after,\n.group\\/table[data-col-resizing] .table-sticky-shadow-right::after,\n.group\\/table[data-col-resizing] .table-sticky-shadow-left::after {\n opacity: 1;\n}\n\n/*\n * Sticky body cell backgrounds — opaque so scrolling content doesn't show\n * through. On row hover (`.group:hover`) the cell picks up the same opaque\n * depth-black-4 composite used by `.table-header-bg-*` so the cell tracks\n * the row highlight without any transparency bleed. Custom CSS classes rather\n * than Tailwind utilities because `group-hover:` variants can't be applied to\n * non-@utility classes in Tailwind v4.\n */\n.table-sticky-cell-weak {\n background: var(--color-base-weak);\n}\n.table-sticky-cell-inverse {\n background: var(--color-base-inverse);\n}\n\n/* Row-hover tint only on hover-capable devices (`@media (hover: hover)`). On touch, :hover\n sticks after a tap and would leave the sticky column highlighted while the\n rest of the row is not — see review of the Toggle table on mobile.\n\n The tint layers the SAME depth-black-4 overlay the row hover applies\n (Table row: `hover:bg-depth-black-4`) over the cell's opaque base, so the\n sticky column matches the rest of the row exactly. Using the overlay (rather\n than a header-style color-mix or a hardcoded dark value) keeps it identical\n across light/dark themes — the previous values didn't match the row tint and\n read slightly darker on the sticky column. */\n@media (hover: hover) {\n .group:hover .table-sticky-cell-weak {\n background:\n linear-gradient(var(--color-depth-black-4), var(--color-depth-black-4)),\n var(--color-base-weak);\n }\n .group:hover .table-sticky-cell-inverse {\n background:\n linear-gradient(var(--color-depth-black-4), var(--color-depth-black-4)),\n var(--color-base-inverse);\n }\n}\n\n/* Inner border-soft (0.5px) + Shadows/Normal/X-Small (0 1px 2px 0 black alpha 4).\n * The class name predates the shadow tokens; --shadow-normal-xs is the Figma\n * effect style it was always meant to compose with. */\n.shadow-inner-border-soft-elevation-sm {\n box-shadow:\n inset 0 0 0 0.5px var(--color-border-soft),\n var(--shadow-normal-xs);\n}\n\n@layer base {\n /* Grayscale antialiasing on the root — lighter type on macOS than browser default subpixel. */\n html,\n :host {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n color-scheme: light;\n }\n\n /*\n * Inverted text selection, same pattern as Vercel Geist:\n * light → charcoal bg + white copy (`--geist-selection` / `--geist-selection-text-color`)\n * dark → near-white bg + charcoal copy (tokens invert under `.dark`)\n * Kept in @layer base so component utilities like selection:bg-* can still override.\n */\n ::selection {\n background-color: var(--color-text-strong);\n color: var(--color-text-inverse);\n }\n\n * {\n scrollbar-width: thin;\n scrollbar-color: var(--color-depth-black-4) transparent;\n\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background: var(--color-depth-black-4);\n border-radius: 9999px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background: var(--color-depth-black-8);\n }\n }\n}\n\n/* Icon size utilities (`size-icon-sm`, `[&_svg]:size-icon-md`, `h-icon-lg`...). Backed by the\n * density icon role tokens (density.css), which snap to drawn sizes at reduced strength, so use\n * these for icons instead of spacing-based `size-4/5/6/8`. `inline` keeps nested scopes live.\n * Default: 2xs 12px, xs 14px, sm 16px, md 20px, lg 24px, xl 28px (cap).\n * `cn` doesn't merge `size-icon-*` with `size-*` (it keeps both), so override an icon size with\n * another `size-icon-*` class or `!size-*`, not a plain `size-*`. */\n@theme inline {\n --spacing-icon-2xs: var(--pui-icon-2xs);\n --spacing-icon-xs: var(--pui-icon-xs);\n --spacing-icon-sm: var(--pui-icon-sm);\n --spacing-icon-md: var(--pui-icon-md);\n --spacing-icon-lg: var(--pui-icon-lg);\n --spacing-icon-xl: var(--pui-icon-xl);\n}\n"
@@ -1 +1 @@
1
- import{a as e}from"../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as n}from"../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as r}from"../../_chunks/dist-BNSTMZct.js";import{i}from"../../_chunks/dist-BRMXKypj.js";var a=t(),o=/* @__PURE__ */ e(n(),1);function s(e){let t=(0,a.c)(19),n,s,c,l;t[0]===e?(n=t[1],s=t[2],c=t[3],l=t[4]):({className:n,label:s,qaTestId:l,...c}=e,t[0]=e,t[1]=n,t[2]=s,t[3]=c,t[4]=l);let u=l===void 0?`thinking-loader`:l,{_:d}=i(),f;t[5]===n?f=t[6]:(f=r(`inline-flex items-center justify-center`,n),t[5]=n,t[6]=f);let p,m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=r(`pui-text-label-medium bg-clip-text text-transparent`),m={backgroundImage:`linear-gradient(90deg, var(--color-gray-400) 0%, var(--color-gray-300) 25%, var(--color-gray-100) 50%, var(--color-gray-300) 75%, var(--color-gray-400) 100%, var(--color-gray-300) 125%, var(--color-gray-100) 150%, var(--color-gray-300) 175%, var(--color-gray-400) 200%)`,backgroundSize:`200% 100%`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,animation:`gradient-shimmer 1s linear infinite`},t[7]=p,t[8]=m):(p=t[7],m=t[8]);let h;t[9]!==d||t[10]!==s?(h=s??d({id:`AUV-TY`}),t[9]=d,t[10]=s,t[11]=h):h=t[11];let g;t[12]===h?g=t[13]:(g=/* @__PURE__ */ (0,o.jsx)(`span`,{className:p,style:m,children:h}),t[12]=h,t[13]=g);let _;return t[14]!==c||t[15]!==u||t[16]!==f||t[17]!==g?(_=/* @__PURE__ */ (0,o.jsx)(`div`,{className:f,"qa-test-id":u,...c,children:g}),t[14]=c,t[15]=u,t[16]=f,t[17]=g,t[18]=_):_=t[18],_}export{s as ThinkingLoader};
1
+ import{a as e}from"../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as n}from"../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as r}from"../../_chunks/dist-BNSTMZct.js";import{i}from"../../_chunks/dist-BRMXKypj.js";var a=t(),o=/* @__PURE__ */ e(n(),1);function s(e){let t=(0,a.c)(17),n,s,c,l;t[0]===e?(n=t[1],s=t[2],c=t[3],l=t[4]):({className:n,label:s,qaTestId:l,...c}=e,t[0]=e,t[1]=n,t[2]=s,t[3]=c,t[4]=l);let u=l===void 0?`thinking-loader`:l,{_:d}=i(),f;t[5]===n?f=t[6]:(f=r(`inline-flex items-center justify-center`,n),t[5]=n,t[6]=f);let p;t[7]!==d||t[8]!==s?(p=s??d({id:`AUV-TY`}),t[7]=d,t[8]=s,t[9]=p):p=t[9];let m;t[10]===p?m=t[11]:(m=/* @__PURE__ */ (0,o.jsx)(`span`,{className:`pui-text-label-medium animate-gradient-shimmer text-shimmer motion-reduce:animate-none`,children:p}),t[10]=p,t[11]=m);let h;return t[12]!==c||t[13]!==u||t[14]!==f||t[15]!==m?(h=/* @__PURE__ */ (0,o.jsx)(`div`,{className:f,"qa-test-id":u,...c,children:m}),t[12]=c,t[13]=u,t[14]=f,t[15]=m,t[16]=h):h=t[16],h}export{s as ThinkingLoader};
@@ -1 +1 @@
1
- import{a as e}from"../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{c as t,u as n}from"../../_chunks/transitions-Cn0Tw_ua.js";import{t as r}from"../../_chunks/react-CUaU2Z9V.js";import{t as i}from"../../_chunks/ChevronRightIcon-Dgm8qBR8.js";import{t as a}from"../../_chunks/ArrowRightIcon-OEjQROCT.js";import{t as o}from"../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as s}from"../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as c}from"../../_chunks/dist-BNSTMZct.js";import{a as l,n as u,r as d}from"../../_chunks/Tooltip-abTz0p9j.js";import{n as f}from"../../_chunks/react-CqECE5Y5.js";import{t as p}from"../../_chunks/AnimatePresence-DOl8NYHq.js";import{t as m}from"../../_chunks/use-reduced-motion-CNBdBisf.js";import{t as h}from"../../_chunks/use-animation-0y65Ce_i.js";import{t as g}from"../../_chunks/IconBox-C_6SVn21.js";import{t as _}from"../../_chunks/Checkbox-BBf-mMbK.js";import{t as v}from"../../_chunks/Button-BfpdYdpq.js";import{i as y}from"../../_chunks/dist-BRMXKypj.js";import{t as b}from"../../_chunks/ButtonInset-DmuC2cPs.js";import{n as x,u as S}from"../../_chunks/dist-CPlSvWC_.js";import{t as C}from"../../_chunks/CloseIcon-CpFDDETM.js";import{t as w}from"../../_chunks/ScrollGradientWrapper-h6yq23DQ.js";import{t as T}from"../../_chunks/TextareaField-t1AdxrBG.js";import{t as E}from"../../_chunks/ChevronLeftIcon-DixrWUUO.js";import{t as D}from"../../_chunks/ButtonGroup-B2wKhqwt.js";import{t as O}from"../../_chunks/ArrowLeftIcon-C0SQwfWM.js";import{t as k}from"../../_chunks/IconBadge-DJWQ9cS3.js";import{t as A}from"../../_chunks/DoubleChatBubbleIcon-Cr0XOimc.js";import{t as j}from"../../_chunks/InputFieldIcon-C4_mPxv7.js";const M={inverse:`rounded-3xl bg-base-inverse border border-depth-black-4`,weak:`rounded-3xl bg-depth-black-4`};function N(e){return M[e]}var P=o(),F=/* @__PURE__ */ e(s(),1);const I=`flex w-full items-center border-t border-depth-black-4 p-3`,L=`min-w-20`;function R(e){let t=(0,P.c)(32),{className:n,selectionCount:r,onSkip:i,onPrimary:a,primaryLabel:o,skipLabel:s,qaTestId:l}=e,{_:u}=y(),d;t[0]!==u||t[1]!==s?(d=s??u({id:`MgnVua`}),t[0]=u,t[1]=s,t[2]=d):d=t[2];let f=d,p;t[3]!==u||t[4]!==s||t[5]!==f?(p=s==null?u({id:`-P0Cn2`}):f,t[3]=u,t[4]=s,t[5]=f,t[6]=p):p=t[6];let m=p,h;t[7]===n?h=t[8]:(h=c(I,`justify-between`,n),t[7]=n,t[8]=h);let g;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=c(`pui-text-body-medium text-depth-black-36`,`min-w-0 shrink px-4 tabular-nums`),t[9]=g):g=t[9];let _;t[10]!==u||t[11]!==r?(_=u({id:`Cl6Kg5`,values:{selectionCount:r}}),t[10]=u,t[11]=r,t[12]=_):_=t[12];let b;t[13]===_?b=t[14]:(b=/* @__PURE__ */ (0,F.jsx)(`span`,{className:g,children:_}),t[13]=_,t[14]=b);let x;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=c(L,`shrink-0`),t[15]=x):x=t[15];let S;t[16]!==i||t[17]!==m||t[18]!==f?(S=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`stroke`,size:`large`,onClick:i,"aria-label":m,className:x,children:f}),t[16]=i,t[17]=m,t[18]=f,t[19]=S):S=t[19];let C;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(C=c(L,`shrink-0`),t[20]=C):C=t[20];let w;t[21]!==a||t[22]!==o?(w=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`strong`,size:`large`,onClick:a,"aria-label":o,className:C,children:o}),t[21]=a,t[22]=o,t[23]=w):w=t[23];let T;t[24]!==w||t[25]!==S?(T=/* @__PURE__ */ (0,F.jsxs)(`div`,{className:`flex min-w-0 shrink-0 items-center gap-2`,children:[S,w]}),t[24]=w,t[25]=S,t[26]=T):T=t[26];let E;return t[27]!==l||t[28]!==T||t[29]!==h||t[30]!==b?(E=/* @__PURE__ */ (0,F.jsxs)(`div`,{className:h,"qa-test-id":l,children:[b,T]}),t[27]=l,t[28]=T,t[29]=h,t[30]=b,t[31]=E):E=t[31],E}function z(e){let t=(0,P.c)(25),{className:n,onBack:r,onNext:i,backDisabled:o,nextDisabled:s,backLabel:l,nextLabel:u,qaTestId:d}=e,{_:f}=y(),p;t[0]!==f||t[1]!==l?(p=l??f({id:`iH8pgl`}),t[0]=f,t[1]=l,t[2]=p):p=t[2];let m=p,h;t[3]!==f||t[4]!==u?(h=u??f({id:`hXzOVo`}),t[3]=f,t[4]=u,t[5]=h):h=t[5];let g=h,_;t[6]===n?_=t[7]:(_=c(I,`justify-between`,n),t[6]=n,t[7]=_);let b;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={icon:O},t[8]=b):b=t[8];let x;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(x=c(L,`shrink-0`),t[9]=x):x=t[9];let S;t[10]!==o||t[11]!==m||t[12]!==r?(S=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`weak`,size:`large`,prefix:b,onClick:r,disabled:o,"aria-label":m,className:x,children:m}),t[10]=o,t[11]=m,t[12]=r,t[13]=S):S=t[13];let C;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(C={icon:a},t[14]=C):C=t[14];let w;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(w=c(L,`shrink-0`),t[15]=w):w=t[15];let T;t[16]!==s||t[17]!==g||t[18]!==i?(T=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`weak`,size:`large`,suffix:C,onClick:i,disabled:s,"aria-label":g,className:w,children:g}),t[16]=s,t[17]=g,t[18]=i,t[19]=T):T=t[19];let E;return t[20]!==d||t[21]!==_||t[22]!==S||t[23]!==T?(E=/* @__PURE__ */ (0,F.jsxs)(`div`,{className:_,"qa-test-id":d,children:[S,T]}),t[20]=d,t[21]=_,t[22]=S,t[23]=T,t[24]=E):E=t[24],E}function B(e){let t=(0,P.c)(24),{className:n,onSkip:r,onContinue:i,skipDisabled:o,continueDisabled:s,skipLabel:l,continueLabel:u,qaTestId:d}=e,{_:f}=y(),p;t[0]!==f||t[1]!==l?(p=l??f({id:`6Uau97`}),t[0]=f,t[1]=l,t[2]=p):p=t[2];let m=p,h;t[3]!==f||t[4]!==u?(h=u??f({id:`xGVfLh`}),t[3]=f,t[4]=u,t[5]=h):h=t[5];let g=h,_;t[6]===n?_=t[7]:(_=c(I,`grid grid-cols-3 gap-2`,n),t[6]=n,t[7]=_);let b;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b=c(L,`col-span-1 min-w-0`),t[8]=b):b=t[8];let x;t[9]!==r||t[10]!==o||t[11]!==m?(x=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`weak`,size:`large`,onClick:r,disabled:o,"aria-label":m,className:b,children:m}),t[9]=r,t[10]=o,t[11]=m,t[12]=x):x=t[12];let S;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(S={icon:a},t[13]=S):S=t[13];let C;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(C=c(L,`col-span-2 min-w-0`),t[14]=C):C=t[14];let w;t[15]!==s||t[16]!==g||t[17]!==i?(w=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`weak`,size:`large`,suffix:S,onClick:i,disabled:s,"aria-label":g,className:C,children:g}),t[15]=s,t[16]=g,t[17]=i,t[18]=w):w=t[18];let T;return t[19]!==d||t[20]!==_||t[21]!==x||t[22]!==w?(T=/* @__PURE__ */ (0,F.jsxs)(`div`,{className:_,"qa-test-id":d,children:[x,w]}),t[19]=d,t[20]=_,t[21]=x,t[22]=w,t[23]=T):T=t[23],T}function V(e){let t=(0,P.c)(15),{className:n,onContinue:r,continueDisabled:i,continueLabel:o,qaTestId:s}=e,{_:l}=y(),u;t[0]!==l||t[1]!==o?(u=o??l({id:`xGVfLh`}),t[0]=l,t[1]=o,t[2]=u):u=t[2];let d=u,f;t[3]===n?f=t[4]:(f=c(I,n),t[3]=n,t[4]=f);let p;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(p={icon:a},t[5]=p):p=t[5];let m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=c(L,`w-full`),t[6]=m):m=t[6];let h;t[7]!==i||t[8]!==d||t[9]!==r?(h=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`weak`,size:`large`,fullwidth:!0,suffix:p,onClick:r,disabled:i,"aria-label":d,className:m,children:d}),t[7]=i,t[8]=d,t[9]=r,t[10]=h):h=t[10];let g;return t[11]!==s||t[12]!==f||t[13]!==h?(g=/* @__PURE__ */ (0,F.jsx)(`div`,{className:f,"qa-test-id":s,children:h}),t[11]=s,t[12]=f,t[13]=h,t[14]=g):g=t[14],g}function H(e){let t=(0,P.c)(25),{className:n,onSkip:r,onSubmit:i,submitLabel:a,skipLabel:o,skipDisabled:s,submitDisabled:l,qaTestId:u}=e,{_:d}=y(),f;t[0]!==d||t[1]!==o?(f=o??d({id:`6Uau97`}),t[0]=d,t[1]=o,t[2]=f):f=t[2];let p=f,m;t[3]!==d||t[4]!==o||t[5]!==p?(m=o==null?d({id:`ZUhSpK`}):p,t[3]=d,t[4]=o,t[5]=p,t[6]=m):m=t[6];let h=m,g;t[7]===n?g=t[8]:(g=c(I,`justify-end gap-2`,n),t[7]=n,t[8]=g);let _;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=c(L,`shrink-0`),t[9]=_):_=t[9];let b;t[10]!==r||t[11]!==h||t[12]!==s||t[13]!==p?(b=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`stroke`,size:`large`,onClick:r,disabled:s,"aria-label":h,className:_,children:p}),t[10]=r,t[11]=h,t[12]=s,t[13]=p,t[14]=b):b=t[14];let x;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=c(L,`shrink-0`),t[15]=x):x=t[15];let S;t[16]!==i||t[17]!==l||t[18]!==a?(S=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`strong`,size:`large`,onClick:i,disabled:l,"aria-label":a,className:x,children:a}),t[16]=i,t[17]=l,t[18]=a,t[19]=S):S=t[19];let C;return t[20]!==u||t[21]!==g||t[22]!==b||t[23]!==S?(C=/* @__PURE__ */ (0,F.jsxs)(`div`,{className:g,"qa-test-id":u,children:[b,S]}),t[20]=u,t[21]=g,t[22]=b,t[23]=S,t[24]=C):C=t[24],C}function U(e){let t=(0,P.c)(23),{className:n,onConfirm:r,onDeny:i,confirmDisabled:a,denyDisabled:o,denyLabel:s,confirmLabel:l,qaTestId:u}=e,{_:d}=y(),f;t[0]!==d||t[1]!==s?(f=s??d({id:`cFCKYZ`}),t[0]=d,t[1]=s,t[2]=f):f=t[2];let p=f,m;t[3]!==d||t[4]!==l?(m=l??d({id:`7VpPHA`}),t[3]=d,t[4]=l,t[5]=m):m=t[5];let h=m,g;t[6]===n?g=t[7]:(g=c(I,`justify-end gap-2`,n),t[6]=n,t[7]=g);let _;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(_=c(L,`shrink-0`),t[8]=_):_=t[8];let b;t[9]!==o||t[10]!==p||t[11]!==i?(b=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`stroke`,size:`large`,onClick:i,disabled:o,"aria-label":p,className:_,children:p}),t[9]=o,t[10]=p,t[11]=i,t[12]=b):b=t[12];let x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(x=c(L,`shrink-0`),t[13]=x):x=t[13];let S;t[14]!==a||t[15]!==h||t[16]!==r?(S=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`strong`,size:`large`,onClick:r,disabled:a,"aria-label":h,className:x,children:h}),t[14]=a,t[15]=h,t[16]=r,t[17]=S):S=t[17];let C;return t[18]!==u||t[19]!==g||t[20]!==b||t[21]!==S?(C=/* @__PURE__ */ (0,F.jsxs)(`div`,{className:g,"qa-test-id":u,children:[b,S]}),t[18]=u,t[19]=g,t[20]=b,t[21]=S,t[22]=C):C=t[22],C}function W(e){let t=(0,P.c)(45),{className:n,onExpert:r,onCancel:i,onSubmit:a,expertDisabled:o,cancelDisabled:s,submitDisabled:l,expertLabel:u,cancelLabel:d,submitLabel:f,qaTestId:p}=e,{_:m}=y(),h;t[0]!==m||t[1]!==u?(h=u??m({id:`3RKzUJ`}),t[0]=m,t[1]=u,t[2]=h):h=t[2];let g=h,_;t[3]!==m||t[4]!==d?(_=d??m({id:`dEgA5A`}),t[3]=m,t[4]=d,t[5]=_):_=t[5];let b=_,x;t[6]!==m||t[7]!==f?(x=f??m({id:`hQRttt`}),t[6]=m,t[7]=f,t[8]=x):x=t[8];let S=x,C;t[9]!==m||t[10]!==d||t[11]!==b?(C=d==null?m({id:`-71KZ8`}):b,t[9]=m,t[10]=d,t[11]=b,t[12]=C):C=t[12];let w=C,T;t[13]!==m||t[14]!==f||t[15]!==S?(T=f==null?m({id:`1m41_U`}):S,t[13]=m,t[14]=f,t[15]=S,t[16]=T):T=t[16];let E=T,D;t[17]===n?D=t[18]:(D=c(I,`justify-between gap-2`,n),t[17]=n,t[18]=D);let O;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(O={icon:A},t[19]=O):O=t[19];let k;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(k=c(L,`shrink-0`),t[20]=k):k=t[20];let j;t[21]!==o||t[22]!==g||t[23]!==r?(j=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`stroke`,size:`large`,onClick:r,disabled:o,"aria-label":g,prefix:O,animateIcon:!0,className:k,children:g}),t[21]=o,t[22]=g,t[23]=r,t[24]=j):j=t[24];let M;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(M=c(L,`shrink-0`),t[25]=M):M=t[25];let N;t[26]!==w||t[27]!==s||t[28]!==b||t[29]!==i?(N=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`stroke`,size:`large`,onClick:i,disabled:s,"aria-label":w,className:M,children:b}),t[26]=w,t[27]=s,t[28]=b,t[29]=i,t[30]=N):N=t[30];let R;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(R=c(L,`shrink-0`),t[31]=R):R=t[31];let z;t[32]!==a||t[33]!==E||t[34]!==l||t[35]!==S?(z=/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`strong`,size:`large`,onClick:a,disabled:l,"aria-label":E,className:R,children:S}),t[32]=a,t[33]=E,t[34]=l,t[35]=S,t[36]=z):z=t[36];let B;t[37]!==N||t[38]!==z?(B=/* @__PURE__ */ (0,F.jsxs)(`div`,{className:`flex min-w-0 shrink-0 items-center gap-2`,children:[N,z]}),t[37]=N,t[38]=z,t[39]=B):B=t[39];let V;return t[40]!==p||t[41]!==B||t[42]!==D||t[43]!==j?(V=/* @__PURE__ */ (0,F.jsxs)(`div`,{className:D,"qa-test-id":p,children:[j,B]}),t[40]=p,t[41]=B,t[42]=D,t[43]=j,t[44]=V):V=t[44],V}function ee(e){let t=(0,P.c)(21),n=e.qaTestId??`user-request-actions`;switch(e.layout){case`multi_select`:{let r;return t[0]!==e||t[1]!==n?(r=/* @__PURE__ */ (0,F.jsx)(R,{...e,qaTestId:n}),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}case`stepped`:{let r;return t[3]!==e||t[4]!==n?(r=/* @__PURE__ */ (0,F.jsx)(z,{...e,qaTestId:n}),t[3]=e,t[4]=n,t[5]=r):r=t[5],r}case`asymmetric`:{let r;return t[6]!==e||t[7]!==n?(r=/* @__PURE__ */ (0,F.jsx)(B,{...e,qaTestId:n}),t[6]=e,t[7]=n,t[8]=r):r=t[8],r}case`full_continue`:{let r;return t[9]!==e||t[10]!==n?(r=/* @__PURE__ */ (0,F.jsx)(V,{...e,qaTestId:n}),t[9]=e,t[10]=n,t[11]=r):r=t[11],r}case`text_input`:{let r;return t[12]!==e||t[13]!==n?(r=/* @__PURE__ */ (0,F.jsx)(H,{...e,qaTestId:n}),t[12]=e,t[13]=n,t[14]=r):r=t[14],r}case`approval`:{let r;return t[15]!==e||t[16]!==n?(r=/* @__PURE__ */ (0,F.jsx)(U,{...e,qaTestId:n}),t[15]=e,t[16]=n,t[17]=r):r=t[17],r}case`feedback`:{let r;return t[18]!==e||t[19]!==n?(r=/* @__PURE__ */ (0,F.jsx)(W,{...e,qaTestId:n}),t[18]=e,t[19]=n,t[20]=r):r=t[20],r}}}function G(e){let t=(0,P.c)(13),{description:n,className:r,qaTestId:i}=e,a=i===void 0?`user-request-text`:i,{_:o}=y(),s;t[0]===n?s=t[1]:(s=n?.trim()??``,t[0]=n,t[1]=s);let l=s,u;t[2]===r?u=t[3]:(u=c(`px-4 py-2`,r),t[2]=r,t[3]=u);let d;t[4]!==o||t[5]!==l?(d=l||o({id:`nsi5FV`}),t[4]=o,t[5]=l,t[6]=d):d=t[6];let f;t[7]===d?f=t[8]:(f=/* @__PURE__ */ (0,F.jsx)(`p`,{className:`pui-text-body-medium whitespace-pre-wrap text-depth-black-56`,children:d}),t[7]=d,t[8]=f);let p;return t[9]!==a||t[10]!==u||t[11]!==f?(p=/* @__PURE__ */ (0,F.jsx)(`div`,{className:u,"qa-test-id":a,children:f}),t[9]=a,t[10]=u,t[11]=f,t[12]=p):p=t[12],p}const K={root:`flex min-h-14 w-full items-center gap-2.5 border-b border-depth-black-4 px-4 py-2`,prefixWrap:`flex shrink-0 items-center`,titleStack:`flex min-w-0 flex-1 flex-col gap-0.5`,title:`pui-text-label-medium-loose text-depth-black-88`,description:`pui-text-mono-small text-depth-black-36`};function te(e){let t=(0,P.c)(58),{copy:n,dismiss:r,leading:a,stepNavigation:o,trailingSlot:s,className:l,qaTestId:u}=e,{title:d,description:f}=n,{onDismiss:p,titleId:m,buttonProps:h}=r,g=u===void 0?`user-request-title`:u,{_}=y(),v=o!==void 0&&o.totalSteps>1,x=o?o.currentStep+1:1,S=o?.totalSteps??1,w=!o||o.currentStep===0,T=!o||o.currentStep>=o.totalSteps-1,O=v,A;t[0]!==_||t[1]!==a||t[2]!==O||t[3]!==x||t[4]!==o?.stepNumberBadgeVariant||t[5]!==S?(A=O?/* @__PURE__ */ (0,F.jsx)(`div`,{className:`inline-flex items-center justify-center`,"aria-label":_({id:`XC7c1l`,values:{stepDisplayIndex:x,totalSteps:S}}),children:/* @__PURE__ */ (0,F.jsx)(k,{variant:o?.stepNumberBadgeVariant??`default`,children:x})}):a==null?null:/* @__PURE__ */ (0,F.jsx)(`div`,{className:`inline-flex items-center justify-center`,children:a}),t[0]=_,t[1]=a,t[2]=O,t[3]=x,t[4]=o?.stepNumberBadgeVariant,t[5]=S,t[6]=A):A=t[6];let j=A,M;t[7]===h?M=t[8]:(M=h??{},t[7]=h,t[8]=M);let N,I,L,R,z,B,V;if(t[9]!==M){let{variant:e,icon:n,color:r,"aria-label":i,onClick:a,className:o,type:s,...c}=M;V=e,N=n,R=r,I=i,z=a,L=o,B=c,t[9]=M,t[10]=N,t[11]=I,t[12]=L,t[13]=R,t[14]=z,t[15]=B,t[16]=V}else N=t[10],I=t[11],L=t[12],R=t[13],z=t[14],B=t[15],V=t[16];let H=N??C,U;t[17]===l?U=t[18]:(U=c(K.root,l),t[17]=l,t[18]=U);let W;t[19]===j?W=t[20]:(W=j==null?null:/* @__PURE__ */ (0,F.jsx)(`div`,{className:K.prefixWrap,children:j}),t[19]=j,t[20]=W);let ee;t[21]!==d||t[22]!==m?(ee=/* @__PURE__ */ (0,F.jsx)(`span`,{className:K.title,id:m,children:d}),t[21]=d,t[22]=m,t[23]=ee):ee=t[23];let G;t[24]===f?G=t[25]:(G=f?/* @__PURE__ */ (0,F.jsx)(`span`,{className:K.description,children:f}):null,t[24]=f,t[25]=G);let te;t[26]!==ee||t[27]!==G?(te=/* @__PURE__ */ (0,F.jsxs)(`div`,{className:K.titleStack,children:[ee,G]}),t[26]=ee,t[27]=G,t[28]=te):te=t[28];let q;t[29]===s?q=t[30]:(q=s==null?null:/* @__PURE__ */ (0,F.jsx)(`div`,{className:`flex max-w-1/2 min-w-0 shrink-0 items-center justify-end`,children:s}),t[29]=s,t[30]=q);let J;t[31]!==_||t[32]!==w||t[33]!==T||t[34]!==v||t[35]!==o?(J=v&&o?/* @__PURE__ */ (0,F.jsx)(D,{variant:`stroke`,size:`medium`,"aria-label":_({id:`hUe0iX`}),className:`shrink-0`,actions:[{icon:E,"aria-label":_({id:`VbggDE`}),disabled:w||!!o.stepBackDisabled,onClick:o.onStepPrevious},{icon:i,"aria-label":_({id:`e3GOIZ`}),disabled:T||!!o.stepForwardDisabled,onClick:o.onStepNext}]}):null,t[31]=_,t[32]=w,t[33]=T,t[34]=v,t[35]=o,t[36]=J):J=t[36];let Y=V??`inverse`,X;t[37]!==_||t[38]!==I?(X=I??_({id:`1QfxQT`}),t[37]=_,t[38]=I,t[39]=X):X=t[39];let ne=z??p,Z;t[40]===L?Z=t[41]:(Z=c(`shrink-0`,L),t[40]=L,t[41]=Z);let re;t[42]!==H||t[43]!==R||t[44]!==B||t[45]!==Y||t[46]!==X||t[47]!==ne||t[48]!==Z?(re=/* @__PURE__ */ (0,F.jsx)(b,{type:`button`,...B,variant:Y,icon:H,color:R,"aria-label":X,onClick:ne,className:Z}),t[42]=H,t[43]=R,t[44]=B,t[45]=Y,t[46]=X,t[47]=ne,t[48]=Z,t[49]=re):re=t[49];let ie;return t[50]!==g||t[51]!==te||t[52]!==q||t[53]!==J||t[54]!==re||t[55]!==U||t[56]!==W?(ie=/* @__PURE__ */ (0,F.jsxs)(`div`,{className:U,"qa-test-id":g,children:[W,te,q,J,re]}),t[50]=g,t[51]=te,t[52]=q,t[53]=J,t[54]=re,t[55]=U,t[56]=W,t[57]=ie):ie=t[57],ie}var q=/* @__PURE__ */ e(r(),1);function J(e){let t=(0,P.c)(32),{content:n,callbacks:r,disabled:i,variant:a,qaTestId:o}=e,{title:s,description:l,leading:u,trailingSlot:d}=n,{onConfirm:f,onDeny:p}=r,m=i!==void 0&&i,h=a===void 0?`weak`:a,g=o===void 0?`user-request-approval`:o,_=(0,q.useId)(),v=(0,q.useRef)(null),y;t[0]!==m||t[1]!==p?(y=e=>{if(e.key!==`Escape`||m)return;let t=v.current,n=document.querySelectorAll(`[data-user-request-approval]`);t&&[...n].at(-1)===t&&(e.preventDefault(),p())},t[0]=m,t[1]=p,t[2]=y):y=t[2],x(`keydown`,y);let b;t[3]===h?b=t[4]:(b=c(`group/request flex w-full flex-col`,N(h)),t[3]=h,t[4]=b);let S;t[5]===s?S=t[6]:(S={title:s},t[5]=s,t[6]=S);let C=m?Y:p,w;t[7]===m?w=t[8]:(w=m?{disabled:!0}:void 0,t[7]=m,t[8]=w);let T;t[9]!==w||t[10]!==C||t[11]!==_?(T={onDismiss:C,titleId:_,buttonProps:w},t[9]=w,t[10]=C,t[11]=_,t[12]=T):T=t[12];let E;t[13]!==u||t[14]!==T||t[15]!==S||t[16]!==d?(E=/* @__PURE__ */ (0,F.jsx)(te,{copy:S,dismiss:T,leading:u,trailingSlot:d}),t[13]=u,t[14]=T,t[15]=S,t[16]=d,t[17]=E):E=t[17];let D;t[18]===l?D=t[19]:(D=/* @__PURE__ */ (0,F.jsx)(G,{description:l}),t[18]=l,t[19]=D);let O;t[20]!==m||t[21]!==f||t[22]!==p?(O=/* @__PURE__ */ (0,F.jsx)(ee,{layout:`approval`,onConfirm:f,onDeny:p,confirmDisabled:m,denyDisabled:m}),t[20]=m,t[21]=f,t[22]=p,t[23]=O):O=t[23];let k;return t[24]!==g||t[25]!==E||t[26]!==D||t[27]!==O||t[28]!==b||t[29]!==_||t[30]!==h?(k=/* @__PURE__ */ (0,F.jsxs)(`div`,{ref:v,role:`dialog`,"aria-labelledby":_,"data-variant":h,"data-user-request-approval":``,className:b,"qa-test-id":g,children:[E,D,O]}),t[24]=g,t[25]=E,t[26]=D,t[27]=O,t[28]=b,t[29]=_,t[30]=h,t[31]=k):k=t[31],k}function Y(){}function X(e){let t=(0,P.c)(84),{callbacks:n,variant:r,maxCommentLength:i,footerMode:a,titleCopy:o,placeholderCopy:s,skipButtonLabel:p,submitButtonLabel:g,showSheetHandle:_,interactionDisabled:v,qaTestId:b}=e,{onSubmit:S,onCancel:C,onDismiss:w,onExpert:E}=n,D=r===void 0?`weak`:r,O=i===void 0?200:i,k=a===void 0?`feedback`:a,A=_!==void 0&&_,j=v!==void 0&&v,M=b===void 0?`user-request-form`:b,{_:I}=y(),[L,R]=(0,q.useState)(``),[z,B]=(0,q.useState)(!1),V=(0,q.useId)(),H=h(),U=m(),W=(0,q.useRef)(null),G=L.length,K=G>O,J;t[0]===L?J=t[1]:(J=L.trim(),t[0]=L,t[1]=J);let Y=J.length>0,X,Z;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(Z=()=>()=>{W.current&&clearTimeout(W.current)},X=[],t[2]=X,t[3]=Z):(X=t[2],Z=t[3]),(0,q.useEffect)(Z,X);let re;t[4]!==j||t[5]!==w?(re=e=>{if(e.key===`Escape`){if(j)return;e.preventDefault(),w()}},t[4]=j,t[5]=w,t[6]=re):re=t[6],x(`keydown`,re);let ie;t[7]===z?ie=t[8]:(ie=e=>{R(e.target.value),z&&B(!1)},t[7]=z,t[8]=ie);let ae=ie,oe;t[9]!==L||t[10]!==Y||t[11]!==j||t[12]!==K||t[13]!==S||t[14]!==H||t[15]!==U?(oe=function(){j||(!Y||K?(U?H.set({x:0}):H.start({x:[0,-8,8,-6,6,-4,4,0],transition:{duration:.35,ease:[.32,.72,0,1]}}),B(!0),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>B(!1),3e3)):S(L.trim()))},t[9]=L,t[10]=Y,t[11]=j,t[12]=K,t[13]=S,t[14]=H,t[15]=U,t[16]=oe):oe=t[16];let se=oe,ce;t[17]!==j||t[18]!==E?(ce=function(){j||E?.()},t[17]=j,t[18]=E,t[19]=ce):ce=t[19];let Q=ce,le;t[20]!==I||t[21]!==G||t[22]!==Y||t[23]!==K||t[24]!==O?(le=Y?K?I({id:`zpjV9a`,values:{charCount:G,maxCommentLength:O}}):``:I({id:`3cp1rD`}),t[20]=I,t[21]=G,t[22]=Y,t[23]=K,t[24]=O,t[25]=le):le=t[25];let ue=le,de;t[26]!==I||t[27]!==o?(de=o??I({id:`DzIegb`}),t[26]=I,t[27]=o,t[28]=de):de=t[28];let fe=de,pe;t[29]!==I||t[30]!==s?(pe=s??I({id:`aVEJbL`}),t[29]=I,t[30]=s,t[31]=pe):pe=t[31];let me=pe,he;t[32]===D?he=t[33]:(he=c(`group/request flex w-full flex-col`,N(D)),t[32]=D,t[33]=he);let ge;t[34]===A?ge=t[35]:(ge=A?/* @__PURE__ */ (0,F.jsx)(`div`,{className:`flex justify-center pt-2 pb-1`,"aria-hidden":!0,children:/* @__PURE__ */ (0,F.jsx)(`div`,{className:`bg-depth-black-12 h-1 w-10 rounded-full`})}):null,t[34]=A,t[35]=ge);let _e;t[36]===fe?_e=t[37]:(_e={title:fe},t[36]=fe,t[37]=_e);let ve=j?ne:w,ye;t[38]===j?ye=t[39]:(ye=j?{disabled:!0}:void 0,t[38]=j,t[39]=ye);let be;t[40]!==ve||t[41]!==ye||t[42]!==V?(be={onDismiss:ve,titleId:V,buttonProps:ye},t[40]=ve,t[41]=ye,t[42]=V,t[43]=be):be=t[43];let xe;t[44]!==_e||t[45]!==be?(xe=/* @__PURE__ */ (0,F.jsx)(te,{copy:_e,dismiss:be}),t[44]=_e,t[45]=be,t[46]=xe):xe=t[46];let Se;t[47]===I?Se=t[48]:(Se=I({id:`FdH9IZ`}),t[47]=I,t[48]=Se);let Ce;t[49]!==L||t[50]!==j||t[51]!==O||t[52]!==me||t[53]!==Se?(Ce={value:L,placeholder:me,variant:`weak`,maxHeight:200,maxLength:O,rows:3,disabled:j,"aria-label":Se},t[49]=L,t[50]=j,t[51]=O,t[52]=me,t[53]=Se,t[54]=Ce):Ce=t[54];let we;t[55]!==ae||t[56]!==K||t[57]!==Ce?(we=/* @__PURE__ */ (0,F.jsx)(`div`,{className:`p-3`,children:/* @__PURE__ */ (0,F.jsx)(T,{className:`w-full`,error:K,onChange:ae,textareaControlProps:Ce})}),t[55]=ae,t[56]=K,t[57]=Ce,t[58]=we):we=t[58];let $;t[59]!==I||t[60]!==k||t[61]!==Q||t[62]!==se||t[63]!==j||t[64]!==C||t[65]!==p||t[66]!==g?($=k===`text_input`?/* @__PURE__ */ (0,F.jsx)(ee,{layout:`text_input`,onSkip:C,onSubmit:se,skipLabel:p??I({id:`MgnVua`}),submitLabel:g??I({id:`5PDsfs`}),skipDisabled:j,submitDisabled:j}):/* @__PURE__ */ (0,F.jsx)(ee,{layout:`feedback`,onExpert:Q,onCancel:C,onSubmit:se,expertDisabled:j,cancelDisabled:j,submitDisabled:j}),t[59]=I,t[60]=k,t[61]=Q,t[62]=se,t[63]=j,t[64]=C,t[65]=p,t[66]=g,t[67]=$):$=t[67];let Te;t[68]!==M||t[69]!==H||t[70]!==he||t[71]!==ge||t[72]!==xe||t[73]!==we||t[74]!==$||t[75]!==V||t[76]!==D?(Te=/* @__PURE__ */ (0,F.jsx)(l,{asChild:!0,children:/* @__PURE__ */ (0,F.jsxs)(f.div,{role:`dialog`,"aria-labelledby":V,"data-variant":D,className:he,animate:H,"qa-test-id":M,children:[ge,xe,we,$]})}),t[68]=M,t[69]=H,t[70]=he,t[71]=ge,t[72]=xe,t[73]=we,t[74]=$,t[75]=V,t[76]=D,t[77]=Te):Te=t[77];let Ee;t[78]===ue?Ee=t[79]:(Ee=/* @__PURE__ */ (0,F.jsx)(d,{side:`top`,align:`center`,sideOffset:8,children:ue}),t[78]=ue,t[79]=Ee);let De;return t[80]!==z||t[81]!==Te||t[82]!==Ee?(De=/* @__PURE__ */ (0,F.jsxs)(u,{open:z,children:[Te,Ee]}),t[80]=z,t[81]=Te,t[82]=Ee,t[83]=De):De=t[83],De}function ne(){}const Z=`pui-text-label-medium-loose text-depth-black-72`;function re(e){let t=(0,P.c)(24),{index:n,label:r,description:i,isSelected:a,isMultiSelect:o,onSelect:s,onPointerEnter:l,qaTestId:u}=e,d=u===void 0?`user-request-choice`:u,p=m(),h;t[0]!==n||t[1]!==o||t[2]!==a?(h=o?/* @__PURE__ */ (0,F.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center`,children:/* @__PURE__ */ (0,F.jsx)(`div`,{className:`pointer-events-none flex`,"aria-hidden":!0,children:/* @__PURE__ */ (0,F.jsx)(_,{checked:a,presentational:!0})})}):/* @__PURE__ */ (0,F.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center`,"aria-hidden":!0,children:/* @__PURE__ */ (0,F.jsx)(g,{size:`medium`,number:n+1})}),t[0]=n,t[1]=o,t[2]=a,t[3]=h):h=t[3];let v=h,y;t[4]===s?y=t[5]:(y=function(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s())},t[4]=s,t[5]=y);let b=y,x=a?`bg-depth-black-4`:`hover:bg-depth-black-4 active:bg-depth-black-4`,S;t[6]===x?S=t[7]:(S=c(`flex min-h-12 w-full cursor-pointer items-center gap-3 rounded-2xl p-3 text-left transition-colors duration-150`,x),t[6]=x,t[7]=S);let C;t[8]===p?C=t[9]:(C=p?void 0:{scale:.98},t[8]=p,t[9]=C);let w;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(w={duration:.1},t[10]=w):w=t[10];let T;t[11]!==i||t[12]!==r?(T=i?/* @__PURE__ */ (0,F.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[/* @__PURE__ */ (0,F.jsx)(`span`,{className:Z,children:r}),/* @__PURE__ */ (0,F.jsx)(`span`,{className:`pui-text-body-small-alt text-depth-black-36`,children:i})]}):/* @__PURE__ */ (0,F.jsx)(`span`,{className:Z,children:r}),t[11]=i,t[12]=r,t[13]=T):T=t[13];let E;return t[14]!==b||t[15]!==a||t[16]!==v||t[17]!==l||t[18]!==s||t[19]!==d||t[20]!==S||t[21]!==C||t[22]!==T?(E=/* @__PURE__ */ (0,F.jsxs)(f.div,{role:`option`,"aria-selected":a,tabIndex:0,onClick:s,onKeyDown:b,onPointerEnter:l,className:S,whileTap:C,transition:w,"qa-test-id":d,children:[v,T]}),t[14]=b,t[15]=a,t[16]=v,t[17]=l,t[18]=s,t[19]=d,t[20]=S,t[21]=C,t[22]=T,t[23]=E):E=t[23],E}function ie(e){let t=(0,P.c)(34),{value:n,onChange:r,onSubmit:i,onSkip:a,placeholder:o,autoFocus:s,disabled:l,ariaLabel:u,qaTestId:d}=e,f=s!==void 0&&s,p=l!==void 0&&l,m=d===void 0?`user-request-input`:d,{_:h}=y(),_=(0,q.useRef)(null),b;t[0]!==h||t[1]!==o?(b=o??h({id:`nwVhTk`}),t[0]=h,t[1]=o,t[2]=b):b=t[2];let x=b,C;t[3]!==h||t[4]!==u?(C=u??h({id:`dN9Fia`}),t[3]=h,t[4]=u,t[5]=C):C=t[5];let w=C,T;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{_.current?.focus()},t[6]=T):T=t[6],S(T,f?300:null);let E;t[7]!==p||t[8]!==i||t[9]!==n?(E=e=>{e.key===`Enter`&&n.trim()&&!p&&(e.preventDefault(),i())},t[7]=p,t[8]=i,t[9]=n,t[10]=E):E=t[10];let D=E,O=p?`opacity-50`:`hover:bg-depth-black-4`,k;t[11]===O?k=t[12]:(k=c(`flex min-h-12 w-full items-center gap-3 rounded-2xl p-3 transition-colors duration-150`,O),t[11]=O,t[12]=k);let A;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(A=/* @__PURE__ */ (0,F.jsx)(g,{variant:`weak`,size:`medium`,icon:j}),t[13]=A):A=t[13];let M;t[14]===r?M=t[15]:(M=e=>r(e.target.value),t[14]=r,t[15]=M);let N;t[16]!==p||t[17]!==D||t[18]!==w||t[19]!==x||t[20]!==M||t[21]!==n?(N=/* @__PURE__ */ (0,F.jsx)(`input`,{ref:_,type:`text`,value:n,onChange:M,onKeyDown:D,placeholder:x,disabled:p,className:`pui-text-body-medium pui-no-ios-zoom min-w-0 flex-1 border-0 bg-transparent p-0 text-depth-black-88 placeholder:text-depth-black-36 focus:ring-0 focus:outline-none`,"aria-label":w}),t[16]=p,t[17]=D,t[18]=w,t[19]=x,t[20]=M,t[21]=n,t[22]=N):N=t[22];let I;t[23]!==h||t[24]!==p||t[25]!==a||t[26]!==i||t[27]!==n?(I=a?n.trim()?/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`stroke`,size:`medium`,onClick:i,disabled:p,"aria-label":h({id:`ezEvd2`}),children:h({id:`hQRttt`})}):/* @__PURE__ */ (0,F.jsx)(v,{type:`button`,variant:`stroke`,size:`medium`,onClick:a,disabled:p,"aria-label":h({id:`ZUhSpK`}),children:h({id:`6Uau97`})}):null,t[23]=h,t[24]=p,t[25]=a,t[26]=i,t[27]=n,t[28]=I):I=t[28];let L;return t[29]!==m||t[30]!==N||t[31]!==I||t[32]!==k?(L=/* @__PURE__ */ (0,F.jsxs)(`div`,{className:k,"qa-test-id":m,children:[A,N,I]}),t[29]=m,t[30]=N,t[31]=I,t[32]=k,t[33]=L):L=t[33],L}function ae(e){return e instanceof Node}function oe(e){return window.visualViewport?.addEventListener(`resize`,e),()=>window.visualViewport?.removeEventListener(`resize`,e)}function se(){return(0,q.useSyncExternalStore)(oe,Q,ce)}function ce(){return!1}function Q(){return window.matchMedia(`(pointer: coarse)`).matches&&window.visualViewport!=null&&window.visualViewport.height<window.screen.height*.75}function le(e){let t=(0,P.c)(5),{hidden:n}=e,r=n!==void 0&&n&&`opacity-0`,i;t[0]===r?i=t[1]:(i=c(`shrink-0 transition-opacity duration-150 motion-reduce:transition-none`,r),t[0]=r,t[1]=i);let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=/* @__PURE__ */ (0,F.jsx)(`div`,{className:`h-px w-full border-t border-depth-black-4`}),t[2]=a):a=t[2];let o;return t[3]===i?o=t[4]:(o=/* @__PURE__ */ (0,F.jsx)(`div`,{"aria-hidden":!0,className:i,children:a}),t[3]=i,t[4]=o),o}function ue(e){let t=(0,P.c)(147),{questionnaire:r,callbacks:i,presentation:a,qaTestId:o}=e,{onAnswer:s,onSkip:l,onDismiss:u,onValidationFail:d}=i,h=o===void 0?`user-request-questionnaire`:o,{_:g}=y(),_=a?.variant??`weak`,v=a?.titleLeading,b=a?.showCustomRow===!0,S=a?.textAnswerMaxLength??2e3,C=a?.multiSelectFooter,{questions:E}=r,D=E.length,O=D>1,[k,A]=(0,q.useState)(0),j;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(j=/* @__PURE__ */ new Map,t[0]=j):j=t[0];let[M,I]=(0,q.useState)(j),L;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(L=/* @__PURE__ */ new Map,t[1]=L):L=t[1];let[R,z]=(0,q.useState)(L),B;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(B=/* @__PURE__ */ new Map,t[2]=B):B=t[2];let[V,H]=(0,q.useState)(B),U=m(),W=(0,q.useRef)(null),G=(0,q.useRef)(null),[K,J]=(0,q.useState)(null),Y=(0,q.useId)(),X=E[k],ne=K?.step===k?K.index:null,Z=X?.questionType,oe=(X?.options?.length??0)>0,ce=(Z===`select`||Z===`multi_select`)&&!oe,Q=Z,ue;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(ue=function(){G.current!==null&&(clearTimeout(G.current),G.current=null)},t[3]=ue):ue=t[3];let me=ue,he;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(he=()=>()=>{me()},t[4]=he):he=t[4];let ge;t[5]===k?ge=t[6]:(ge=[k],t[5]=k,t[6]=ge),(0,q.useEffect)(he,ge);let _e;t[7]!==k||t[8]!==s||t[9]!==E||t[10]!==D?(_e=function(e){if(k<D-1)A(pe);else{let t=[];for(let n=0;n<D;n++){let r=E[n];r&&t.push({question:r.question,answer:e.get(n)??``})}s(t)}},t[7]=k,t[8]=s,t[9]=E,t[10]=D,t[11]=_e):_e=t[11];let ve=_e,ye;t[12]!==ve||t[13]!==M||t[14]!==k?(ye=function(e){me();let t=new Map(M);t.set(k,e),I(t),G.current=setTimeout(()=>{G.current=null,ve(t)},200)},t[12]=ve,t[13]=M,t[14]=k,t[15]=ye):ye=t[15];let be=ye,xe;t[16]!==X||t[17]!==be||t[18]!==u||t[19]!==Q?(xe=e=>{if(e.key===`Escape`){e.preventDefault(),u();return}if(Q!==`select`||!X?.options?.length)return;let t=Number.parseInt(e.key,10);if(t>=1&&t<=(X.options?.length??0)){e.preventDefault();let n=X.options?.[t-1];n&&be(n)}},t[16]=X,t[17]=be,t[18]=u,t[19]=Q,t[20]=xe):xe=t[20],x(`keydown`,xe);let Se;t[21]===k?Se=t[22]:(Se=function(e){H(t=>{let n=new Set(t.get(k)??[]);n.has(e)?n.delete(e):n.add(e);let r=new Map(t);return r.set(k,n),I(e=>{let t=new Map(e);return t.set(k,Array.from(n).join(`, `)),t}),r})},t[21]=k,t[22]=Se);let Ce=Se,we;t[23]!==g||t[24]!==ve||t[25]!==M||t[26]!==k||t[27]!==R||t[28]!==d||t[29]!==Q||t[30]!==S?(we=function(){let e=R.get(k)??``;if(Q===`text`&&e.length>S){d?.(g({id:`6T2XK0`,values:{over:e.length,max:S}}));return}let t=e.trim();if(!t){d?.(g({id:`ww0IGv`}));return}let n=new Map(M);n.set(k,t),I(n),Q===`multi_select`&&H(e=>{let t=new Map(e);return t.delete(k),t}),ve(n)},t[23]=g,t[24]=ve,t[25]=M,t[26]=k,t[27]=R,t[28]=d,t[29]=Q,t[30]=S,t[31]=we):we=t[31];let $=we,Te;t[32]!==g||t[33]!==ve||t[34]!==M||t[35]!==k||t[36]!==V||t[37]!==d?(Te=function(){(V.get(k)?.size??0)>0?ve(M):d?.(g({id:`MGTz59`}))},t[32]=g,t[33]=ve,t[34]=M,t[35]=k,t[36]=V,t[37]=d,t[38]=Te):Te=t[38];let Ee=Te,De;t[39]!==M||t[40]!==k||t[41]!==l||t[42]!==D?(De=function(){let e=new Map(M);e.set(k,``),I(e),k<D-1?A(fe):l()},t[39]=M,t[40]=k,t[41]=l,t[42]=D,t[43]=De):De=t[43];let Oe=De,ke=se(),Ae;t[44]!==k||t[45]!==V?(Ae=V.get(k)?.size??0,t[44]=k,t[45]=V,t[46]=Ae):Ae=t[46];let je=Ae,Me;t[47]===U?Me=t[48]:(Me=U?{duration:0}:n,t[47]=U,t[48]=Me);let Ne=Me;if(!X)return null;if(ce)throw Error(`UserRequestQuestionnaire misconfigured at step ${k+1}: questionType="${Z}" requires a non-empty options array for question "${X.question}".`);let Pe;t[49]===X.options?Pe=t[50]:(Pe=X.options??[],t[49]=X.options,t[50]=Pe);let Fe=Pe,Ie=Fe.length,Le;t[51]!==M||t[52]!==k||t[53]!==V||t[54]!==Q?(Le=e=>Q===`multi_select`?V.get(k)?.has(e)??!1:M.get(k)===e,t[51]=M,t[52]=k,t[53]=V,t[54]=Q,t[55]=Le):Le=t[55];let Re=Le,ze;t[56]!==ne||t[57]!==Re||t[58]!==Fe?(ze=(e,t)=>{let n=Fe[e],r=Fe[t];return!n||!r?!1:Re(n)||Re(r)||ne===e||ne===t},t[56]=ne,t[57]=Re,t[58]=Fe,t[59]=ze):ze=t[59];let Be=ze,Ve;if(t[60]!==Ie||t[61]!==ne||t[62]!==Re||t[63]!==Fe){let e=Fe.at(-1);Ve=e!==void 0&&(Re(e)||ne===Fe.length-1||ne===Ie),t[60]=Ie,t[61]=ne,t[62]=Re,t[63]=Fe,t[64]=Ve}else Ve=t[64];let He=Ve,Ue;t[65]===k?Ue=t[66]:(Ue=e=>z(t=>{let n=new Map(t);return n.set(k,e),n}),t[65]=k,t[66]=Ue);let We=Ue,Ge;t[67]!==k||t[68]!==R||t[69]!==Q?(Ge=Q===`text`?R.get(k)??``:``,t[67]=k,t[68]=R,t[69]=Q,t[70]=Ge):Ge=t[70];let Ke=Ge,qe=Q===`text`&&Ke.length>S,Je;t[71]===_?Je=t[72]:(Je=c(`group/request flex w-full flex-col`,N(_)),t[71]=_,t[72]=Je);let Ye;t[73]===X.question?Ye=t[74]:(Ye={title:X.question},t[73]=X.question,t[74]=Ye);let Xe;t[75]!==u||t[76]!==Y?(Xe={onDismiss:u,titleId:Y},t[75]=u,t[76]=Y,t[77]=Xe):Xe=t[77];let Ze;t[78]!==k||t[79]!==O||t[80]!==D?(Ze=O?{currentStep:k,totalSteps:D,onStepPrevious:()=>A(de),onStepNext:()=>A(e=>Math.min(D-1,e+1))}:void 0,t[78]=k,t[79]=O,t[80]=D,t[81]=Ze):Ze=t[81];let Qe;t[82]!==Ye||t[83]!==Xe||t[84]!==Ze||t[85]!==v?(Qe=/* @__PURE__ */ (0,F.jsx)(te,{copy:Ye,dismiss:Xe,leading:v,stepNavigation:Ze}),t[82]=Ye,t[83]=Xe,t[84]=Ze,t[85]=v,t[86]=Qe):Qe=t[86];let $e,et,tt;t[87]===Symbol.for(`react.memo_cache_sentinel`)?($e={opacity:0,scale:.96},et={opacity:1,scale:1},tt={opacity:0,scale:.96},t[87]=$e,t[88]=et,t[89]=tt):($e=t[87],et=t[88],tt=t[89]);let nt;t[90]!==g||t[91]!==X.optionDescriptions||t[92]!==X.options||t[93]!==k||t[94]!==R||t[95]!==Ie||t[96]!==$||t[97]!==Ce||t[98]!==be||t[99]!==Oe||t[100]!==He||t[101]!==Be||t[102]!==ke||t[103]!==Re||t[104]!==Q||t[105]!==b||t[106]!==We||t[107]!==_?(nt=(Q===`select`||Q===`multi_select`)&&X.options&&/* @__PURE__ */ (0,F.jsxs)(F.Fragment,{children:[/* @__PURE__ */ (0,F.jsx)(w,{direction:`vertical`,gradientSurface:_,scrollClassName:`max-h-[min(24rem,60vh)] overscroll-contain`,children:/* @__PURE__ */ (0,F.jsx)(`div`,{ref:W,role:`listbox`,"aria-label":g({id:`0zpgxV`}),"aria-multiselectable":Q===`multi_select`,className:`flex flex-col`,onPointerLeave:e=>{let t=W.current,n=e.relatedTarget;(!t||!ae(n)||!t.contains(n))&&J(null)},children:!ke&&X.options.map((e,t)=>{let n=X.optionDescriptions;return/* @__PURE__ */ (0,F.jsxs)(q.Fragment,{children:[t>0?/* @__PURE__ */ (0,F.jsx)(le,{hidden:Be(t-1,t)}):null,/* @__PURE__ */ (0,F.jsx)(re,{index:t,label:e,description:n?.[t],isSelected:Re(e),isMultiSelect:Q===`multi_select`,onPointerEnter:()=>J({step:k,index:t}),onSelect:()=>Q===`multi_select`?Ce(e):be(e)})]},`${e}-${t}`)})})}),b&&/* @__PURE__ */ (0,F.jsxs)(F.Fragment,{children:[/* @__PURE__ */ (0,F.jsx)(le,{hidden:ke||He}),/* @__PURE__ */ (0,F.jsx)(`div`,{onPointerEnter:()=>J({step:k,index:Ie}),onFocusCapture:()=>J({step:k,index:Ie}),onBlurCapture:e=>{let t=e.relatedTarget;(!ae(t)||!e.currentTarget.contains(t))&&J(e=>e?.step===k&&e.index===Ie?null:e)},children:/* @__PURE__ */ (0,F.jsx)(ie,{value:R.get(k)??``,onChange:We,onSubmit:$,onSkip:Q===`select`?Oe:void 0})})]})]}),t[90]=g,t[91]=X.optionDescriptions,t[92]=X.options,t[93]=k,t[94]=R,t[95]=Ie,t[96]=$,t[97]=Ce,t[98]=be,t[99]=Oe,t[100]=He,t[101]=Be,t[102]=ke,t[103]=Re,t[104]=Q,t[105]=b,t[106]=We,t[107]=_,t[108]=nt):nt=t[108];let rt;t[109]!==g||t[110]!==$||t[111]!==qe||t[112]!==Q||t[113]!==S||t[114]!==Ke||t[115]!==We?(rt=Q===`text`?/* @__PURE__ */ (0,F.jsx)(`div`,{className:`p-3`,children:/* @__PURE__ */ (0,F.jsx)(T,{className:`w-full`,error:qe,onChange:e=>We(e.target.value),textareaControlProps:{value:Ke,placeholder:g({id:`l1fGrM`}),variant:`weak`,maxHeight:200,maxLength:S,rows:3,autoFocus:!0,"aria-label":g({id:`Vtq6ex`}),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&!e.repeat&&(e.preventDefault(),$())}}})}):null,t[109]=g,t[110]=$,t[111]=qe,t[112]=Q,t[113]=S,t[114]=Ke,t[115]=We,t[116]=rt):rt=t[116];let it;t[117]!==Ne||t[118]!==k||t[119]!==nt||t[120]!==rt?(it=/* @__PURE__ */ (0,F.jsx)(`div`,{className:`p-2`,children:/* @__PURE__ */ (0,F.jsx)(p,{mode:`popLayout`,children:/* @__PURE__ */ (0,F.jsxs)(f.div,{initial:$e,animate:et,exit:tt,transition:Ne,children:[nt,rt]},k)})}),t[117]=Ne,t[118]=k,t[119]=nt,t[120]=rt,t[121]=it):it=t[121];let at;t[122]!==g||t[123]!==k||t[124]!==Ee||t[125]!==Oe||t[126]!==je||t[127]!==C||t[128]!==Q||t[129]!==D?(at=Q===`multi_select`?C??/* @__PURE__ */ (0,F.jsx)(ee,{layout:`multi_select`,selectionCount:je,onSkip:Oe,onPrimary:Ee,primaryLabel:k<D-1?g({id:`hXzOVo`}):g({id:`hQRttt`})}):null,t[122]=g,t[123]=k,t[124]=Ee,t[125]=Oe,t[126]=je,t[127]=C,t[128]=Q,t[129]=D,t[130]=at):at=t[130];let ot;t[131]!==g||t[132]!==k||t[133]!==$||t[134]!==Oe||t[135]!==Q||t[136]!==D?(ot=Q===`text`?/* @__PURE__ */ (0,F.jsx)(ee,{layout:`text_input`,onSkip:Oe,onSubmit:$,submitLabel:k<D-1?g({id:`hXzOVo`}):g({id:`hQRttt`})}):null,t[131]=g,t[132]=k,t[133]=$,t[134]=Oe,t[135]=Q,t[136]=D,t[137]=ot):ot=t[137];let st;return t[138]!==h||t[139]!==Je||t[140]!==Qe||t[141]!==it||t[142]!==at||t[143]!==ot||t[144]!==Y||t[145]!==_?(st=/* @__PURE__ */ (0,F.jsxs)(`div`,{role:`dialog`,"aria-labelledby":Y,"data-variant":_,className:Je,"qa-test-id":h,children:[Qe,it,at,ot]}),t[138]=h,t[139]=Je,t[140]=Qe,t[141]=it,t[142]=at,t[143]=ot,t[144]=Y,t[145]=_,t[146]=st):st=t[146],st}function de(e){return Math.max(0,e-1)}function fe(e){return e+1}function pe(e){return e+1}function me(e){let n=(0,P.c)(15),{pairs:r,shouldAnimate:i,qaTestId:a}=e,o=i!==void 0&&i,s=a===void 0?`user-request-summary-card`:a,{_:c}=y(),l=m(),u=o&&!l,d;n[0]===u?d=n[1]:(d=u?{opacity:0,y:8}:!1,n[0]=u,n[1]=d);let p;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(p={opacity:1,y:0},n[2]=p):p=n[2];let h;n[3]===u?h=n[4]:(h=u?t:{duration:0},n[3]=u,n[4]=h);let g;if(n[5]!==c||n[6]!==r){let e;n[8]===c?e=n[9]:(e=(e,t)=>/* @__PURE__ */ (0,F.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[/* @__PURE__ */ (0,F.jsx)(`span`,{className:`pui-text-label-medium text-depth-black-88`,children:e.question}),/* @__PURE__ */ (0,F.jsx)(`span`,{className:`pui-text-body-medium-alt text-depth-black-48`,children:e.answer||c({id:`9NyAH9`})})]},t),n[8]=c,n[9]=e),g=r.map(e),n[5]=c,n[6]=r,n[7]=g}else g=n[7];let _;return n[10]!==s||n[11]!==d||n[12]!==h||n[13]!==g?(_=/* @__PURE__ */ (0,F.jsx)(f.div,{className:`border-inner-depth-black-4 flex w-full flex-col gap-6 rounded-20 p-4`,initial:d,animate:p,transition:h,"qa-test-id":s,children:g}),n[10]=s,n[11]=d,n[12]=h,n[13]=g,n[14]=_):_=n[14],_}function he(e){return null}function ge(e){let t=(0,P.c)(21),n=e.qaTestId??`user-request`;switch(e.mode){case`questionnaire`:{let r;if(t[0]!==e){let{mode:n,...i}=e;r=i,t[0]=e,t[1]=r}else r=t[1];let i;return t[2]!==n||t[3]!==r?(i=/* @__PURE__ */ (0,F.jsx)(ue,{...r,qaTestId:n}),t[2]=n,t[3]=r,t[4]=i):i=t[4],i}case`approval`:{let r;if(t[5]!==e){let{mode:n,...i}=e;r=i,t[5]=e,t[6]=r}else r=t[6];let i;return t[7]!==n||t[8]!==r?(i=/* @__PURE__ */ (0,F.jsx)(J,{...r,qaTestId:n}),t[7]=n,t[8]=r,t[9]=i):i=t[9],i}case`feedback`:{let r;if(t[10]!==e){let{mode:n,...i}=e;r=i,t[10]=e,t[11]=r}else r=t[11];let i;return t[12]!==n||t[13]!==r?(i=/* @__PURE__ */ (0,F.jsx)(X,{...r,qaTestId:n}),t[12]=n,t[13]=r,t[14]=i):i=t[14],i}case`summary`:{let r;return t[15]!==e.pairs||t[16]!==e.shouldAnimate||t[17]!==n?(r=/* @__PURE__ */ (0,F.jsx)(me,{pairs:e.pairs,shouldAnimate:e.shouldAnimate,qaTestId:n}),t[15]=e.pairs,t[16]=e.shouldAnimate,t[17]=n,t[18]=r):r=t[18],r}default:{let n;return t[19]===e?n=t[20]:(n=he(e),t[19]=e,t[20]=n),n}}}export{ge as UserRequest};
1
+ import{a as e}from"../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{c as t,u as n}from"../../_chunks/transitions-Cn0Tw_ua.js";import{t as r}from"../../_chunks/react-CUaU2Z9V.js";import{t as i}from"../../_chunks/ChevronRightIcon-Dgm8qBR8.js";import{t as a}from"../../_chunks/ArrowRightIcon-OEjQROCT.js";import{t as o}from"../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as s}from"../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as c}from"../../_chunks/dist-BNSTMZct.js";import{a as l,n as u,r as d}from"../../_chunks/Tooltip-abTz0p9j.js";import{n as f}from"../../_chunks/react-CqECE5Y5.js";import{t as p}from"../../_chunks/AnimatePresence-DOl8NYHq.js";import{t as m}from"../../_chunks/use-reduced-motion-CNBdBisf.js";import{t as h}from"../../_chunks/use-animation-0y65Ce_i.js";import{t as g}from"../../_chunks/IconBox-C_6SVn21.js";import{t as _}from"../../_chunks/Checkbox-BBf-mMbK.js";import{t as v}from"../../_chunks/Button-BfpdYdpq.js";import{i as y}from"../../_chunks/dist-BRMXKypj.js";import{t as b}from"../../_chunks/ButtonInset-DmuC2cPs.js";import{n as x,u as S}from"../../_chunks/dist-CPlSvWC_.js";import{t as C}from"../../_chunks/CloseIcon-CpFDDETM.js";import{t as w}from"../../_chunks/ScrollGradientWrapper-h6yq23DQ.js";import{t as T}from"../../_chunks/TextareaField-t1AdxrBG.js";import{t as E}from"../../_chunks/ChevronLeftIcon-DixrWUUO.js";import{t as D}from"../../_chunks/ButtonGroup-B2wKhqwt.js";import{t as O}from"../../_chunks/ArrowLeftIcon-C0SQwfWM.js";import{t as k}from"../../_chunks/IconBadge-DJWQ9cS3.js";import{t as A}from"../../_chunks/DoubleChatBubbleIcon-Cr0XOimc.js";import{t as j}from"../../_chunks/InputFieldIcon-C4_mPxv7.js";const M=`rounded-20`,N={inverse:`${M} bg-base-inverse border border-depth-black-4`,weak:`${M} bg-depth-black-4`},P={...N,weak:`${M} bg-base-weak`};function F(e){return N[e]}function I(e){return P[e]}var L=o(),R=/* @__PURE__ */ e(s(),1);const z=`flex w-full items-center border-t border-depth-black-4 p-3`,B=`min-w-20`;function V(e){let t=(0,L.c)(32),{className:n,selectionCount:r,onSkip:i,onPrimary:a,primaryLabel:o,skipLabel:s,qaTestId:l}=e,{_:u}=y(),d;t[0]!==u||t[1]!==s?(d=s??u({id:`MgnVua`}),t[0]=u,t[1]=s,t[2]=d):d=t[2];let f=d,p;t[3]!==u||t[4]!==s||t[5]!==f?(p=s==null?u({id:`-P0Cn2`}):f,t[3]=u,t[4]=s,t[5]=f,t[6]=p):p=t[6];let m=p,h;t[7]===n?h=t[8]:(h=c(z,`justify-between`,n),t[7]=n,t[8]=h);let g;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=c(`pui-text-body-medium text-depth-black-36`,`min-w-0 shrink px-4 tabular-nums`),t[9]=g):g=t[9];let _;t[10]!==u||t[11]!==r?(_=u({id:`Cl6Kg5`,values:{selectionCount:r}}),t[10]=u,t[11]=r,t[12]=_):_=t[12];let b;t[13]===_?b=t[14]:(b=/* @__PURE__ */ (0,R.jsx)(`span`,{className:g,children:_}),t[13]=_,t[14]=b);let x;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=c(B,`shrink-0`),t[15]=x):x=t[15];let S;t[16]!==i||t[17]!==m||t[18]!==f?(S=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`stroke`,size:`large`,onClick:i,"aria-label":m,className:x,children:f}),t[16]=i,t[17]=m,t[18]=f,t[19]=S):S=t[19];let C;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(C=c(B,`shrink-0`),t[20]=C):C=t[20];let w;t[21]!==a||t[22]!==o?(w=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`strong`,size:`large`,onClick:a,"aria-label":o,className:C,children:o}),t[21]=a,t[22]=o,t[23]=w):w=t[23];let T;t[24]!==w||t[25]!==S?(T=/* @__PURE__ */ (0,R.jsxs)(`div`,{className:`flex min-w-0 shrink-0 items-center gap-2`,children:[S,w]}),t[24]=w,t[25]=S,t[26]=T):T=t[26];let E;return t[27]!==l||t[28]!==T||t[29]!==h||t[30]!==b?(E=/* @__PURE__ */ (0,R.jsxs)(`div`,{className:h,"qa-test-id":l,children:[b,T]}),t[27]=l,t[28]=T,t[29]=h,t[30]=b,t[31]=E):E=t[31],E}function H(e){let t=(0,L.c)(25),{className:n,onBack:r,onNext:i,backDisabled:o,nextDisabled:s,backLabel:l,nextLabel:u,qaTestId:d}=e,{_:f}=y(),p;t[0]!==f||t[1]!==l?(p=l??f({id:`iH8pgl`}),t[0]=f,t[1]=l,t[2]=p):p=t[2];let m=p,h;t[3]!==f||t[4]!==u?(h=u??f({id:`hXzOVo`}),t[3]=f,t[4]=u,t[5]=h):h=t[5];let g=h,_;t[6]===n?_=t[7]:(_=c(z,`justify-between`,n),t[6]=n,t[7]=_);let b;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={icon:O},t[8]=b):b=t[8];let x;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(x=c(B,`shrink-0`),t[9]=x):x=t[9];let S;t[10]!==o||t[11]!==m||t[12]!==r?(S=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`weak`,size:`large`,prefix:b,onClick:r,disabled:o,"aria-label":m,className:x,children:m}),t[10]=o,t[11]=m,t[12]=r,t[13]=S):S=t[13];let C;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(C={icon:a},t[14]=C):C=t[14];let w;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(w=c(B,`shrink-0`),t[15]=w):w=t[15];let T;t[16]!==s||t[17]!==g||t[18]!==i?(T=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`weak`,size:`large`,suffix:C,onClick:i,disabled:s,"aria-label":g,className:w,children:g}),t[16]=s,t[17]=g,t[18]=i,t[19]=T):T=t[19];let E;return t[20]!==d||t[21]!==_||t[22]!==S||t[23]!==T?(E=/* @__PURE__ */ (0,R.jsxs)(`div`,{className:_,"qa-test-id":d,children:[S,T]}),t[20]=d,t[21]=_,t[22]=S,t[23]=T,t[24]=E):E=t[24],E}function ee(e){let t=(0,L.c)(24),{className:n,onSkip:r,onContinue:i,skipDisabled:o,continueDisabled:s,skipLabel:l,continueLabel:u,qaTestId:d}=e,{_:f}=y(),p;t[0]!==f||t[1]!==l?(p=l??f({id:`6Uau97`}),t[0]=f,t[1]=l,t[2]=p):p=t[2];let m=p,h;t[3]!==f||t[4]!==u?(h=u??f({id:`xGVfLh`}),t[3]=f,t[4]=u,t[5]=h):h=t[5];let g=h,_;t[6]===n?_=t[7]:(_=c(z,`grid grid-cols-3 gap-2`,n),t[6]=n,t[7]=_);let b;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b=c(B,`col-span-1 min-w-0`),t[8]=b):b=t[8];let x;t[9]!==r||t[10]!==o||t[11]!==m?(x=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`weak`,size:`large`,onClick:r,disabled:o,"aria-label":m,className:b,children:m}),t[9]=r,t[10]=o,t[11]=m,t[12]=x):x=t[12];let S;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(S={icon:a},t[13]=S):S=t[13];let C;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(C=c(B,`col-span-2 min-w-0`),t[14]=C):C=t[14];let w;t[15]!==s||t[16]!==g||t[17]!==i?(w=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`weak`,size:`large`,suffix:S,onClick:i,disabled:s,"aria-label":g,className:C,children:g}),t[15]=s,t[16]=g,t[17]=i,t[18]=w):w=t[18];let T;return t[19]!==d||t[20]!==_||t[21]!==x||t[22]!==w?(T=/* @__PURE__ */ (0,R.jsxs)(`div`,{className:_,"qa-test-id":d,children:[x,w]}),t[19]=d,t[20]=_,t[21]=x,t[22]=w,t[23]=T):T=t[23],T}function U(e){let t=(0,L.c)(15),{className:n,onContinue:r,continueDisabled:i,continueLabel:o,qaTestId:s}=e,{_:l}=y(),u;t[0]!==l||t[1]!==o?(u=o??l({id:`xGVfLh`}),t[0]=l,t[1]=o,t[2]=u):u=t[2];let d=u,f;t[3]===n?f=t[4]:(f=c(z,n),t[3]=n,t[4]=f);let p;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(p={icon:a},t[5]=p):p=t[5];let m;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(m=c(B,`w-full`),t[6]=m):m=t[6];let h;t[7]!==i||t[8]!==d||t[9]!==r?(h=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`weak`,size:`large`,fullwidth:!0,suffix:p,onClick:r,disabled:i,"aria-label":d,className:m,children:d}),t[7]=i,t[8]=d,t[9]=r,t[10]=h):h=t[10];let g;return t[11]!==s||t[12]!==f||t[13]!==h?(g=/* @__PURE__ */ (0,R.jsx)(`div`,{className:f,"qa-test-id":s,children:h}),t[11]=s,t[12]=f,t[13]=h,t[14]=g):g=t[14],g}function W(e){let t=(0,L.c)(25),{className:n,onSkip:r,onSubmit:i,submitLabel:a,skipLabel:o,skipDisabled:s,submitDisabled:l,qaTestId:u}=e,{_:d}=y(),f;t[0]!==d||t[1]!==o?(f=o??d({id:`6Uau97`}),t[0]=d,t[1]=o,t[2]=f):f=t[2];let p=f,m;t[3]!==d||t[4]!==o||t[5]!==p?(m=o==null?d({id:`ZUhSpK`}):p,t[3]=d,t[4]=o,t[5]=p,t[6]=m):m=t[6];let h=m,g;t[7]===n?g=t[8]:(g=c(z,`justify-end gap-2`,n),t[7]=n,t[8]=g);let _;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=c(B,`shrink-0`),t[9]=_):_=t[9];let b;t[10]!==r||t[11]!==h||t[12]!==s||t[13]!==p?(b=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`stroke`,size:`large`,onClick:r,disabled:s,"aria-label":h,className:_,children:p}),t[10]=r,t[11]=h,t[12]=s,t[13]=p,t[14]=b):b=t[14];let x;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=c(B,`shrink-0`),t[15]=x):x=t[15];let S;t[16]!==i||t[17]!==l||t[18]!==a?(S=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`strong`,size:`large`,onClick:i,disabled:l,"aria-label":a,className:x,children:a}),t[16]=i,t[17]=l,t[18]=a,t[19]=S):S=t[19];let C;return t[20]!==u||t[21]!==g||t[22]!==b||t[23]!==S?(C=/* @__PURE__ */ (0,R.jsxs)(`div`,{className:g,"qa-test-id":u,children:[b,S]}),t[20]=u,t[21]=g,t[22]=b,t[23]=S,t[24]=C):C=t[24],C}function G(e){let t=(0,L.c)(23),{className:n,onConfirm:r,onDeny:i,confirmDisabled:a,denyDisabled:o,denyLabel:s,confirmLabel:l,qaTestId:u}=e,{_:d}=y(),f;t[0]!==d||t[1]!==s?(f=s??d({id:`cFCKYZ`}),t[0]=d,t[1]=s,t[2]=f):f=t[2];let p=f,m;t[3]!==d||t[4]!==l?(m=l??d({id:`7VpPHA`}),t[3]=d,t[4]=l,t[5]=m):m=t[5];let h=m,g;t[6]===n?g=t[7]:(g=c(z,`justify-end gap-2`,n),t[6]=n,t[7]=g);let _;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(_=c(B,`shrink-0`),t[8]=_):_=t[8];let b;t[9]!==o||t[10]!==p||t[11]!==i?(b=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`stroke`,size:`large`,onClick:i,disabled:o,"aria-label":p,className:_,children:p}),t[9]=o,t[10]=p,t[11]=i,t[12]=b):b=t[12];let x;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(x=c(B,`shrink-0`),t[13]=x):x=t[13];let S;t[14]!==a||t[15]!==h||t[16]!==r?(S=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`strong`,size:`large`,onClick:r,disabled:a,"aria-label":h,className:x,children:h}),t[14]=a,t[15]=h,t[16]=r,t[17]=S):S=t[17];let C;return t[18]!==u||t[19]!==g||t[20]!==b||t[21]!==S?(C=/* @__PURE__ */ (0,R.jsxs)(`div`,{className:g,"qa-test-id":u,children:[b,S]}),t[18]=u,t[19]=g,t[20]=b,t[21]=S,t[22]=C):C=t[22],C}function K(e){let t=(0,L.c)(45),{className:n,onExpert:r,onCancel:i,onSubmit:a,expertDisabled:o,cancelDisabled:s,submitDisabled:l,expertLabel:u,cancelLabel:d,submitLabel:f,qaTestId:p}=e,{_:m}=y(),h;t[0]!==m||t[1]!==u?(h=u??m({id:`3RKzUJ`}),t[0]=m,t[1]=u,t[2]=h):h=t[2];let g=h,_;t[3]!==m||t[4]!==d?(_=d??m({id:`dEgA5A`}),t[3]=m,t[4]=d,t[5]=_):_=t[5];let b=_,x;t[6]!==m||t[7]!==f?(x=f??m({id:`hQRttt`}),t[6]=m,t[7]=f,t[8]=x):x=t[8];let S=x,C;t[9]!==m||t[10]!==d||t[11]!==b?(C=d==null?m({id:`-71KZ8`}):b,t[9]=m,t[10]=d,t[11]=b,t[12]=C):C=t[12];let w=C,T;t[13]!==m||t[14]!==f||t[15]!==S?(T=f==null?m({id:`1m41_U`}):S,t[13]=m,t[14]=f,t[15]=S,t[16]=T):T=t[16];let E=T,D;t[17]===n?D=t[18]:(D=c(z,`justify-between gap-2`,n),t[17]=n,t[18]=D);let O;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(O={icon:A},t[19]=O):O=t[19];let k;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(k=c(B,`shrink-0`),t[20]=k):k=t[20];let j;t[21]!==o||t[22]!==g||t[23]!==r?(j=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`stroke`,size:`large`,onClick:r,disabled:o,"aria-label":g,prefix:O,animateIcon:!0,className:k,children:g}),t[21]=o,t[22]=g,t[23]=r,t[24]=j):j=t[24];let M;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(M=c(B,`shrink-0`),t[25]=M):M=t[25];let N;t[26]!==w||t[27]!==s||t[28]!==b||t[29]!==i?(N=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`stroke`,size:`large`,onClick:i,disabled:s,"aria-label":w,className:M,children:b}),t[26]=w,t[27]=s,t[28]=b,t[29]=i,t[30]=N):N=t[30];let P;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(P=c(B,`shrink-0`),t[31]=P):P=t[31];let F;t[32]!==a||t[33]!==E||t[34]!==l||t[35]!==S?(F=/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`strong`,size:`large`,onClick:a,disabled:l,"aria-label":E,className:P,children:S}),t[32]=a,t[33]=E,t[34]=l,t[35]=S,t[36]=F):F=t[36];let I;t[37]!==N||t[38]!==F?(I=/* @__PURE__ */ (0,R.jsxs)(`div`,{className:`flex min-w-0 shrink-0 items-center gap-2`,children:[N,F]}),t[37]=N,t[38]=F,t[39]=I):I=t[39];let V;return t[40]!==p||t[41]!==I||t[42]!==D||t[43]!==j?(V=/* @__PURE__ */ (0,R.jsxs)(`div`,{className:D,"qa-test-id":p,children:[j,I]}),t[40]=p,t[41]=I,t[42]=D,t[43]=j,t[44]=V):V=t[44],V}function te(e){let t=(0,L.c)(21),n=e.qaTestId??`user-request-actions`;switch(e.layout){case`multi_select`:{let r;return t[0]!==e||t[1]!==n?(r=/* @__PURE__ */ (0,R.jsx)(V,{...e,qaTestId:n}),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}case`stepped`:{let r;return t[3]!==e||t[4]!==n?(r=/* @__PURE__ */ (0,R.jsx)(H,{...e,qaTestId:n}),t[3]=e,t[4]=n,t[5]=r):r=t[5],r}case`asymmetric`:{let r;return t[6]!==e||t[7]!==n?(r=/* @__PURE__ */ (0,R.jsx)(ee,{...e,qaTestId:n}),t[6]=e,t[7]=n,t[8]=r):r=t[8],r}case`full_continue`:{let r;return t[9]!==e||t[10]!==n?(r=/* @__PURE__ */ (0,R.jsx)(U,{...e,qaTestId:n}),t[9]=e,t[10]=n,t[11]=r):r=t[11],r}case`text_input`:{let r;return t[12]!==e||t[13]!==n?(r=/* @__PURE__ */ (0,R.jsx)(W,{...e,qaTestId:n}),t[12]=e,t[13]=n,t[14]=r):r=t[14],r}case`approval`:{let r;return t[15]!==e||t[16]!==n?(r=/* @__PURE__ */ (0,R.jsx)(G,{...e,qaTestId:n}),t[15]=e,t[16]=n,t[17]=r):r=t[17],r}case`feedback`:{let r;return t[18]!==e||t[19]!==n?(r=/* @__PURE__ */ (0,R.jsx)(K,{...e,qaTestId:n}),t[18]=e,t[19]=n,t[20]=r):r=t[20],r}}}function q(e){let t=(0,L.c)(13),{description:n,className:r,qaTestId:i}=e,a=i===void 0?`user-request-text`:i,{_:o}=y(),s;t[0]===n?s=t[1]:(s=n?.trim()??``,t[0]=n,t[1]=s);let l=s,u;t[2]===r?u=t[3]:(u=c(`px-4 py-2`,r),t[2]=r,t[3]=u);let d;t[4]!==o||t[5]!==l?(d=l||o({id:`nsi5FV`}),t[4]=o,t[5]=l,t[6]=d):d=t[6];let f;t[7]===d?f=t[8]:(f=/* @__PURE__ */ (0,R.jsx)(`p`,{className:`pui-text-body-medium whitespace-pre-wrap text-depth-black-56`,children:d}),t[7]=d,t[8]=f);let p;return t[9]!==a||t[10]!==u||t[11]!==f?(p=/* @__PURE__ */ (0,R.jsx)(`div`,{className:u,"qa-test-id":a,children:f}),t[9]=a,t[10]=u,t[11]=f,t[12]=p):p=t[12],p}const J={root:`flex min-h-14 w-full items-center gap-2.5 border-b border-depth-black-4 px-4 py-2`,prefixWrap:`flex shrink-0 items-center`,titleStack:`flex min-w-0 flex-1 flex-col gap-0.5`,title:`pui-text-label-medium-loose text-depth-black-88`,description:`pui-text-mono-small text-depth-black-36`};function ne(e){let t=(0,L.c)(58),{copy:n,dismiss:r,leading:a,stepNavigation:o,trailingSlot:s,className:l,qaTestId:u}=e,{title:d,description:f}=n,{onDismiss:p,titleId:m,buttonProps:h}=r,g=u===void 0?`user-request-title`:u,{_}=y(),v=o!==void 0&&o.totalSteps>1,x=o?o.currentStep+1:1,S=o?.totalSteps??1,w=!o||o.currentStep===0,T=!o||o.currentStep>=o.totalSteps-1,O=v,A;t[0]!==_||t[1]!==a||t[2]!==O||t[3]!==x||t[4]!==o?.stepNumberBadgeVariant||t[5]!==S?(A=O?/* @__PURE__ */ (0,R.jsx)(`div`,{className:`inline-flex items-center justify-center`,"aria-label":_({id:`XC7c1l`,values:{stepDisplayIndex:x,totalSteps:S}}),children:/* @__PURE__ */ (0,R.jsx)(k,{variant:o?.stepNumberBadgeVariant??`default`,children:x})}):a==null?null:/* @__PURE__ */ (0,R.jsx)(`div`,{className:`inline-flex items-center justify-center`,children:a}),t[0]=_,t[1]=a,t[2]=O,t[3]=x,t[4]=o?.stepNumberBadgeVariant,t[5]=S,t[6]=A):A=t[6];let j=A,M;t[7]===h?M=t[8]:(M=h??{},t[7]=h,t[8]=M);let N,P,F,I,z,B,V;if(t[9]!==M){let{variant:e,icon:n,color:r,"aria-label":i,onClick:a,className:o,type:s,...c}=M;V=e,N=n,I=r,P=i,z=a,F=o,B=c,t[9]=M,t[10]=N,t[11]=P,t[12]=F,t[13]=I,t[14]=z,t[15]=B,t[16]=V}else N=t[10],P=t[11],F=t[12],I=t[13],z=t[14],B=t[15],V=t[16];let H=N??C,ee;t[17]===l?ee=t[18]:(ee=c(J.root,l),t[17]=l,t[18]=ee);let U;t[19]===j?U=t[20]:(U=j==null?null:/* @__PURE__ */ (0,R.jsx)(`div`,{className:J.prefixWrap,children:j}),t[19]=j,t[20]=U);let W;t[21]!==d||t[22]!==m?(W=/* @__PURE__ */ (0,R.jsx)(`span`,{className:J.title,id:m,children:d}),t[21]=d,t[22]=m,t[23]=W):W=t[23];let G;t[24]===f?G=t[25]:(G=f?/* @__PURE__ */ (0,R.jsx)(`span`,{className:J.description,children:f}):null,t[24]=f,t[25]=G);let K;t[26]!==W||t[27]!==G?(K=/* @__PURE__ */ (0,R.jsxs)(`div`,{className:J.titleStack,children:[W,G]}),t[26]=W,t[27]=G,t[28]=K):K=t[28];let te;t[29]===s?te=t[30]:(te=s==null?null:/* @__PURE__ */ (0,R.jsx)(`div`,{className:`flex max-w-1/2 min-w-0 shrink-0 items-center justify-end`,children:s}),t[29]=s,t[30]=te);let q;t[31]!==_||t[32]!==w||t[33]!==T||t[34]!==v||t[35]!==o?(q=v&&o?/* @__PURE__ */ (0,R.jsx)(D,{variant:`stroke`,size:`medium`,"aria-label":_({id:`hUe0iX`}),className:`shrink-0`,actions:[{icon:E,"aria-label":_({id:`VbggDE`}),disabled:w||!!o.stepBackDisabled,onClick:o.onStepPrevious},{icon:i,"aria-label":_({id:`e3GOIZ`}),disabled:T||!!o.stepForwardDisabled,onClick:o.onStepNext}]}):null,t[31]=_,t[32]=w,t[33]=T,t[34]=v,t[35]=o,t[36]=q):q=t[36];let ne=V??`inverse`,Y;t[37]!==_||t[38]!==P?(Y=P??_({id:`1QfxQT`}),t[37]=_,t[38]=P,t[39]=Y):Y=t[39];let X=z??p,Z;t[40]===F?Z=t[41]:(Z=c(`shrink-0`,F),t[40]=F,t[41]=Z);let re;t[42]!==H||t[43]!==I||t[44]!==B||t[45]!==ne||t[46]!==Y||t[47]!==X||t[48]!==Z?(re=/* @__PURE__ */ (0,R.jsx)(b,{type:`button`,...B,variant:ne,icon:H,color:I,"aria-label":Y,onClick:X,className:Z}),t[42]=H,t[43]=I,t[44]=B,t[45]=ne,t[46]=Y,t[47]=X,t[48]=Z,t[49]=re):re=t[49];let ie;return t[50]!==g||t[51]!==K||t[52]!==te||t[53]!==q||t[54]!==re||t[55]!==ee||t[56]!==U?(ie=/* @__PURE__ */ (0,R.jsxs)(`div`,{className:ee,"qa-test-id":g,children:[U,K,te,q,re]}),t[50]=g,t[51]=K,t[52]=te,t[53]=q,t[54]=re,t[55]=ee,t[56]=U,t[57]=ie):ie=t[57],ie}var Y=/* @__PURE__ */ e(r(),1);function X(e){let t=(0,L.c)(32),{content:n,callbacks:r,disabled:i,variant:a,qaTestId:o}=e,{title:s,description:l,leading:u,trailingSlot:d}=n,{onConfirm:f,onDeny:p}=r,m=i!==void 0&&i,h=a===void 0?`weak`:a,g=o===void 0?`user-request-approval`:o,_=(0,Y.useId)(),v=(0,Y.useRef)(null),y;t[0]!==m||t[1]!==p?(y=e=>{if(e.key!==`Escape`||m)return;let t=v.current,n=document.querySelectorAll(`[data-user-request-approval]`);t&&[...n].at(-1)===t&&(e.preventDefault(),p())},t[0]=m,t[1]=p,t[2]=y):y=t[2],x(`keydown`,y);let b;t[3]===h?b=t[4]:(b=c(`group/request flex w-full flex-col`,F(h)),t[3]=h,t[4]=b);let S;t[5]===s?S=t[6]:(S={title:s},t[5]=s,t[6]=S);let C=m?Z:p,w;t[7]===m?w=t[8]:(w=m?{disabled:!0}:void 0,t[7]=m,t[8]=w);let T;t[9]!==w||t[10]!==C||t[11]!==_?(T={onDismiss:C,titleId:_,buttonProps:w},t[9]=w,t[10]=C,t[11]=_,t[12]=T):T=t[12];let E;t[13]!==u||t[14]!==T||t[15]!==S||t[16]!==d?(E=/* @__PURE__ */ (0,R.jsx)(ne,{copy:S,dismiss:T,leading:u,trailingSlot:d}),t[13]=u,t[14]=T,t[15]=S,t[16]=d,t[17]=E):E=t[17];let D;t[18]===l?D=t[19]:(D=/* @__PURE__ */ (0,R.jsx)(q,{description:l}),t[18]=l,t[19]=D);let O;t[20]!==m||t[21]!==f||t[22]!==p?(O=/* @__PURE__ */ (0,R.jsx)(te,{layout:`approval`,onConfirm:f,onDeny:p,confirmDisabled:m,denyDisabled:m}),t[20]=m,t[21]=f,t[22]=p,t[23]=O):O=t[23];let k;return t[24]!==g||t[25]!==E||t[26]!==D||t[27]!==O||t[28]!==b||t[29]!==_||t[30]!==h?(k=/* @__PURE__ */ (0,R.jsxs)(`div`,{ref:v,role:`dialog`,"aria-labelledby":_,"data-variant":h,"data-user-request-approval":``,className:b,"qa-test-id":g,children:[E,D,O]}),t[24]=g,t[25]=E,t[26]=D,t[27]=O,t[28]=b,t[29]=_,t[30]=h,t[31]=k):k=t[31],k}function Z(){}function re(e){let t=(0,L.c)(84),{callbacks:n,variant:r,maxCommentLength:i,footerMode:a,titleCopy:o,placeholderCopy:s,skipButtonLabel:p,submitButtonLabel:g,showSheetHandle:_,interactionDisabled:v,qaTestId:b}=e,{onSubmit:S,onCancel:C,onDismiss:w,onExpert:E}=n,D=r===void 0?`weak`:r,O=i===void 0?200:i,k=a===void 0?`feedback`:a,A=_!==void 0&&_,j=v!==void 0&&v,M=b===void 0?`user-request-form`:b,{_:N}=y(),[P,F]=(0,Y.useState)(``),[z,B]=(0,Y.useState)(!1),V=(0,Y.useId)(),H=h(),ee=m(),U=(0,Y.useRef)(null),W=P.length,G=W>O,K;t[0]===P?K=t[1]:(K=P.trim(),t[0]=P,t[1]=K);let q=K.length>0,J,X;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(X=()=>()=>{U.current&&clearTimeout(U.current)},J=[],t[2]=J,t[3]=X):(J=t[2],X=t[3]),(0,Y.useEffect)(X,J);let Z;t[4]!==j||t[5]!==w?(Z=e=>{if(e.key===`Escape`){if(j)return;e.preventDefault(),w()}},t[4]=j,t[5]=w,t[6]=Z):Z=t[6],x(`keydown`,Z);let re;t[7]===z?re=t[8]:(re=e=>{F(e.target.value),z&&B(!1)},t[7]=z,t[8]=re);let Q=re,ae;t[9]!==P||t[10]!==q||t[11]!==j||t[12]!==G||t[13]!==S||t[14]!==H||t[15]!==ee?(ae=function(){j||(!q||G?(ee?H.set({x:0}):H.start({x:[0,-8,8,-6,6,-4,4,0],transition:{duration:.35,ease:[.32,.72,0,1]}}),B(!0),U.current&&clearTimeout(U.current),U.current=setTimeout(()=>B(!1),3e3)):S(P.trim()))},t[9]=P,t[10]=q,t[11]=j,t[12]=G,t[13]=S,t[14]=H,t[15]=ee,t[16]=ae):ae=t[16];let oe=ae,se;t[17]!==j||t[18]!==E?(se=function(){j||E?.()},t[17]=j,t[18]=E,t[19]=se):se=t[19];let ce=se,le;t[20]!==N||t[21]!==W||t[22]!==q||t[23]!==G||t[24]!==O?(le=q?G?N({id:`zpjV9a`,values:{charCount:W,maxCommentLength:O}}):``:N({id:`3cp1rD`}),t[20]=N,t[21]=W,t[22]=q,t[23]=G,t[24]=O,t[25]=le):le=t[25];let ue=le,de;t[26]!==N||t[27]!==o?(de=o??N({id:`DzIegb`}),t[26]=N,t[27]=o,t[28]=de):de=t[28];let fe=de,pe;t[29]!==N||t[30]!==s?(pe=s??N({id:`aVEJbL`}),t[29]=N,t[30]=s,t[31]=pe):pe=t[31];let me=pe,he;t[32]===D?he=t[33]:(he=c(`group/request flex w-full flex-col`,I(D)),t[32]=D,t[33]=he);let ge;t[34]===A?ge=t[35]:(ge=A?/* @__PURE__ */ (0,R.jsx)(`div`,{className:`flex justify-center pt-2 pb-1`,"aria-hidden":!0,children:/* @__PURE__ */ (0,R.jsx)(`div`,{className:`bg-depth-black-12 h-1 w-10 rounded-full`})}):null,t[34]=A,t[35]=ge);let _e;t[36]===fe?_e=t[37]:(_e={title:fe},t[36]=fe,t[37]=_e);let ve=j?ie:w,ye;t[38]===j?ye=t[39]:(ye=j?{disabled:!0}:void 0,t[38]=j,t[39]=ye);let be;t[40]!==ve||t[41]!==ye||t[42]!==V?(be={onDismiss:ve,titleId:V,buttonProps:ye},t[40]=ve,t[41]=ye,t[42]=V,t[43]=be):be=t[43];let xe;t[44]!==_e||t[45]!==be?(xe=/* @__PURE__ */ (0,R.jsx)(ne,{copy:_e,dismiss:be}),t[44]=_e,t[45]=be,t[46]=xe):xe=t[46];let Se;t[47]===N?Se=t[48]:(Se=N({id:`FdH9IZ`}),t[47]=N,t[48]=Se);let Ce;t[49]!==P||t[50]!==j||t[51]!==O||t[52]!==me||t[53]!==Se?(Ce={value:P,placeholder:me,variant:`weak`,maxHeight:200,maxLength:O,rows:3,disabled:j,"aria-label":Se},t[49]=P,t[50]=j,t[51]=O,t[52]=me,t[53]=Se,t[54]=Ce):Ce=t[54];let we;t[55]!==Q||t[56]!==G||t[57]!==Ce?(we=/* @__PURE__ */ (0,R.jsx)(`div`,{className:`p-3`,children:/* @__PURE__ */ (0,R.jsx)(T,{className:`w-full`,error:G,onChange:Q,textareaControlProps:Ce})}),t[55]=Q,t[56]=G,t[57]=Ce,t[58]=we):we=t[58];let $;t[59]!==N||t[60]!==k||t[61]!==ce||t[62]!==oe||t[63]!==j||t[64]!==C||t[65]!==p||t[66]!==g?($=k===`text_input`?/* @__PURE__ */ (0,R.jsx)(te,{layout:`text_input`,onSkip:C,onSubmit:oe,skipLabel:p??N({id:`MgnVua`}),submitLabel:g??N({id:`5PDsfs`}),skipDisabled:j,submitDisabled:j}):/* @__PURE__ */ (0,R.jsx)(te,{layout:`feedback`,onExpert:ce,onCancel:C,onSubmit:oe,expertDisabled:j,cancelDisabled:j,submitDisabled:j}),t[59]=N,t[60]=k,t[61]=ce,t[62]=oe,t[63]=j,t[64]=C,t[65]=p,t[66]=g,t[67]=$):$=t[67];let Te;t[68]!==M||t[69]!==H||t[70]!==he||t[71]!==ge||t[72]!==xe||t[73]!==we||t[74]!==$||t[75]!==V||t[76]!==D?(Te=/* @__PURE__ */ (0,R.jsx)(l,{asChild:!0,children:/* @__PURE__ */ (0,R.jsxs)(f.div,{role:`dialog`,"aria-labelledby":V,"data-variant":D,className:he,animate:H,"qa-test-id":M,children:[ge,xe,we,$]})}),t[68]=M,t[69]=H,t[70]=he,t[71]=ge,t[72]=xe,t[73]=we,t[74]=$,t[75]=V,t[76]=D,t[77]=Te):Te=t[77];let Ee;t[78]===ue?Ee=t[79]:(Ee=/* @__PURE__ */ (0,R.jsx)(d,{side:`top`,align:`center`,sideOffset:8,children:ue}),t[78]=ue,t[79]=Ee);let De;return t[80]!==z||t[81]!==Te||t[82]!==Ee?(De=/* @__PURE__ */ (0,R.jsxs)(u,{open:z,children:[Te,Ee]}),t[80]=z,t[81]=Te,t[82]=Ee,t[83]=De):De=t[83],De}function ie(){}const Q=`pui-text-label-medium-loose text-depth-black-72`;function ae(e){let t=(0,L.c)(24),{index:n,label:r,description:i,isSelected:a,isMultiSelect:o,onSelect:s,onPointerEnter:l,qaTestId:u}=e,d=u===void 0?`user-request-choice`:u,p=m(),h;t[0]!==n||t[1]!==o||t[2]!==a?(h=o?/* @__PURE__ */ (0,R.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center`,children:/* @__PURE__ */ (0,R.jsx)(`div`,{className:`pointer-events-none flex`,"aria-hidden":!0,children:/* @__PURE__ */ (0,R.jsx)(_,{checked:a,presentational:!0})})}):/* @__PURE__ */ (0,R.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center`,"aria-hidden":!0,children:/* @__PURE__ */ (0,R.jsx)(g,{size:`medium`,number:n+1})}),t[0]=n,t[1]=o,t[2]=a,t[3]=h):h=t[3];let v=h,y;t[4]===s?y=t[5]:(y=function(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s())},t[4]=s,t[5]=y);let b=y,x=a?`bg-depth-black-4`:`hover:bg-depth-black-4 active:bg-depth-black-4`,S;t[6]===x?S=t[7]:(S=c(`flex min-h-12 w-full cursor-pointer items-center gap-3 rounded-2xl p-3 text-left transition-colors duration-150`,x),t[6]=x,t[7]=S);let C;t[8]===p?C=t[9]:(C=p?void 0:{scale:.98},t[8]=p,t[9]=C);let w;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(w={duration:.1},t[10]=w):w=t[10];let T;t[11]!==i||t[12]!==r?(T=i?/* @__PURE__ */ (0,R.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[/* @__PURE__ */ (0,R.jsx)(`span`,{className:Q,children:r}),/* @__PURE__ */ (0,R.jsx)(`span`,{className:`pui-text-body-small-alt text-depth-black-36`,children:i})]}):/* @__PURE__ */ (0,R.jsx)(`span`,{className:Q,children:r}),t[11]=i,t[12]=r,t[13]=T):T=t[13];let E;return t[14]!==b||t[15]!==a||t[16]!==v||t[17]!==l||t[18]!==s||t[19]!==d||t[20]!==S||t[21]!==C||t[22]!==T?(E=/* @__PURE__ */ (0,R.jsxs)(f.div,{role:`option`,"aria-selected":a,tabIndex:0,onClick:s,onKeyDown:b,onPointerEnter:l,className:S,whileTap:C,transition:w,"qa-test-id":d,children:[v,T]}),t[14]=b,t[15]=a,t[16]=v,t[17]=l,t[18]=s,t[19]=d,t[20]=S,t[21]=C,t[22]=T,t[23]=E):E=t[23],E}function oe(e){let t=(0,L.c)(34),{value:n,onChange:r,onSubmit:i,onSkip:a,placeholder:o,autoFocus:s,disabled:l,ariaLabel:u,qaTestId:d}=e,f=s!==void 0&&s,p=l!==void 0&&l,m=d===void 0?`user-request-input`:d,{_:h}=y(),_=(0,Y.useRef)(null),b;t[0]!==h||t[1]!==o?(b=o??h({id:`nwVhTk`}),t[0]=h,t[1]=o,t[2]=b):b=t[2];let x=b,C;t[3]!==h||t[4]!==u?(C=u??h({id:`dN9Fia`}),t[3]=h,t[4]=u,t[5]=C):C=t[5];let w=C,T;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{_.current?.focus()},t[6]=T):T=t[6],S(T,f?300:null);let E;t[7]!==p||t[8]!==i||t[9]!==n?(E=e=>{e.key===`Enter`&&n.trim()&&!p&&(e.preventDefault(),i())},t[7]=p,t[8]=i,t[9]=n,t[10]=E):E=t[10];let D=E,O=p?`opacity-50`:`hover:bg-depth-black-4`,k;t[11]===O?k=t[12]:(k=c(`flex min-h-12 w-full items-center gap-3 rounded-2xl px-3 py-3.5 transition-colors duration-150`,O),t[11]=O,t[12]=k);let A;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(A=/* @__PURE__ */ (0,R.jsx)(g,{variant:`weak`,size:`medium`,icon:j}),t[13]=A):A=t[13];let M;t[14]===r?M=t[15]:(M=e=>r(e.target.value),t[14]=r,t[15]=M);let N;t[16]!==p||t[17]!==D||t[18]!==w||t[19]!==x||t[20]!==M||t[21]!==n?(N=/* @__PURE__ */ (0,R.jsx)(`input`,{ref:_,type:`text`,value:n,onChange:M,onKeyDown:D,placeholder:x,disabled:p,className:`pui-text-body-medium pui-no-ios-zoom min-w-0 flex-1 border-0 bg-transparent p-0 text-depth-black-88 placeholder:text-depth-black-36 focus:ring-0 focus:outline-none`,"aria-label":w}),t[16]=p,t[17]=D,t[18]=w,t[19]=x,t[20]=M,t[21]=n,t[22]=N):N=t[22];let P;t[23]!==h||t[24]!==p||t[25]!==a||t[26]!==i||t[27]!==n?(P=a?n.trim()?/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`stroke`,size:`medium`,onClick:i,disabled:p,"aria-label":h({id:`ezEvd2`}),children:h({id:`hQRttt`})}):/* @__PURE__ */ (0,R.jsx)(v,{type:`button`,variant:`stroke`,size:`medium`,onClick:a,disabled:p,"aria-label":h({id:`ZUhSpK`}),children:h({id:`6Uau97`})}):null,t[23]=h,t[24]=p,t[25]=a,t[26]=i,t[27]=n,t[28]=P):P=t[28];let F;return t[29]!==m||t[30]!==N||t[31]!==P||t[32]!==k?(F=/* @__PURE__ */ (0,R.jsxs)(`div`,{className:k,"qa-test-id":m,children:[A,N,P]}),t[29]=m,t[30]=N,t[31]=P,t[32]=k,t[33]=F):F=t[33],F}function se(e){return e instanceof Node}function ce(e){return window.visualViewport?.addEventListener(`resize`,e),()=>window.visualViewport?.removeEventListener(`resize`,e)}function le(){return(0,Y.useSyncExternalStore)(ce,de,ue)}function ue(){return!1}function de(){return window.matchMedia(`(pointer: coarse)`).matches&&window.visualViewport!=null&&window.visualViewport.height<window.screen.height*.75}function fe(e){let t=(0,L.c)(5),{hidden:n}=e,r=n!==void 0&&n&&`opacity-0`,i;t[0]===r?i=t[1]:(i=c(`shrink-0 transition-opacity duration-150 motion-reduce:transition-none`,r),t[0]=r,t[1]=i);let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=/* @__PURE__ */ (0,R.jsx)(`div`,{className:`h-px w-full border-t border-depth-black-4`}),t[2]=a):a=t[2];let o;return t[3]===i?o=t[4]:(o=/* @__PURE__ */ (0,R.jsx)(`div`,{"aria-hidden":!0,className:i,children:a}),t[3]=i,t[4]=o),o}function pe(e){let t=(0,L.c)(147),{questionnaire:r,callbacks:i,presentation:a,qaTestId:o}=e,{onAnswer:s,onSkip:l,onDismiss:u,onValidationFail:d}=i,h=o===void 0?`user-request-questionnaire`:o,{_:g}=y(),_=a?.variant??`weak`,v=a?.titleLeading,b=a?.showCustomRow===!0,S=a?.textAnswerMaxLength??2e3,C=a?.multiSelectFooter,{questions:E}=r,D=E.length,O=D>1,[k,A]=(0,Y.useState)(0),j;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(j=/* @__PURE__ */ new Map,t[0]=j):j=t[0];let[M,N]=(0,Y.useState)(j),P;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(P=/* @__PURE__ */ new Map,t[1]=P):P=t[1];let[I,z]=(0,Y.useState)(P),B;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(B=/* @__PURE__ */ new Map,t[2]=B):B=t[2];let[V,H]=(0,Y.useState)(B),ee=m(),U=(0,Y.useRef)(null),W=(0,Y.useRef)(null),[G,K]=(0,Y.useState)(null),q=(0,Y.useId)(),J=E[k],X=G?.step===k?G.index:null,Z=J?.questionType,re=(J?.options?.length??0)>0,ie=(Z===`select`||Z===`multi_select`)&&!re,Q=Z,ce;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(ce=function(){W.current!==null&&(clearTimeout(W.current),W.current=null)},t[3]=ce):ce=t[3];let ue=ce,de;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(de=()=>()=>{ue()},t[4]=de):de=t[4];let pe;t[5]===k?pe=t[6]:(pe=[k],t[5]=k,t[6]=pe),(0,Y.useEffect)(de,pe);let _e;t[7]!==k||t[8]!==s||t[9]!==E||t[10]!==D?(_e=function(e){if(k<D-1)A(ge);else{let t=[];for(let n=0;n<D;n++){let r=E[n];r&&t.push({question:r.question,answer:e.get(n)??``})}s(t)}},t[7]=k,t[8]=s,t[9]=E,t[10]=D,t[11]=_e):_e=t[11];let ve=_e,ye;t[12]!==ve||t[13]!==M||t[14]!==k?(ye=function(e){ue();let t=new Map(M);t.set(k,e),N(t),W.current=setTimeout(()=>{W.current=null,ve(t)},200)},t[12]=ve,t[13]=M,t[14]=k,t[15]=ye):ye=t[15];let be=ye,xe;t[16]!==J||t[17]!==be||t[18]!==u||t[19]!==Q?(xe=e=>{if(e.key===`Escape`){e.preventDefault(),u();return}if(Q!==`select`||!J?.options?.length)return;let t=Number.parseInt(e.key,10);if(t>=1&&t<=(J.options?.length??0)){e.preventDefault();let n=J.options?.[t-1];n&&be(n)}},t[16]=J,t[17]=be,t[18]=u,t[19]=Q,t[20]=xe):xe=t[20],x(`keydown`,xe);let Se;t[21]===k?Se=t[22]:(Se=function(e){H(t=>{let n=new Set(t.get(k)??[]);n.has(e)?n.delete(e):n.add(e);let r=new Map(t);return r.set(k,n),N(e=>{let t=new Map(e);return t.set(k,Array.from(n).join(`, `)),t}),r})},t[21]=k,t[22]=Se);let Ce=Se,we;t[23]!==g||t[24]!==ve||t[25]!==M||t[26]!==k||t[27]!==I||t[28]!==d||t[29]!==Q||t[30]!==S?(we=function(){let e=I.get(k)??``;if(Q===`text`&&e.length>S){d?.(g({id:`6T2XK0`,values:{over:e.length,max:S}}));return}let t=e.trim();if(!t){d?.(g({id:`ww0IGv`}));return}let n=new Map(M);n.set(k,t),N(n),Q===`multi_select`&&H(e=>{let t=new Map(e);return t.delete(k),t}),ve(n)},t[23]=g,t[24]=ve,t[25]=M,t[26]=k,t[27]=I,t[28]=d,t[29]=Q,t[30]=S,t[31]=we):we=t[31];let $=we,Te;t[32]!==g||t[33]!==ve||t[34]!==M||t[35]!==k||t[36]!==V||t[37]!==d?(Te=function(){(V.get(k)?.size??0)>0?ve(M):d?.(g({id:`MGTz59`}))},t[32]=g,t[33]=ve,t[34]=M,t[35]=k,t[36]=V,t[37]=d,t[38]=Te):Te=t[38];let Ee=Te,De;t[39]!==M||t[40]!==k||t[41]!==l||t[42]!==D?(De=function(){let e=new Map(M);e.set(k,``),N(e),k<D-1?A(he):l()},t[39]=M,t[40]=k,t[41]=l,t[42]=D,t[43]=De):De=t[43];let Oe=De,ke=le(),Ae;t[44]!==k||t[45]!==V?(Ae=V.get(k)?.size??0,t[44]=k,t[45]=V,t[46]=Ae):Ae=t[46];let je=Ae,Me;t[47]===ee?Me=t[48]:(Me=ee?{duration:0}:n,t[47]=ee,t[48]=Me);let Ne=Me;if(!J)return null;if(ie)throw Error(`UserRequestQuestionnaire misconfigured at step ${k+1}: questionType="${Z}" requires a non-empty options array for question "${J.question}".`);let Pe;t[49]===J.options?Pe=t[50]:(Pe=J.options??[],t[49]=J.options,t[50]=Pe);let Fe=Pe,Ie=Fe.length,Le;t[51]!==M||t[52]!==k||t[53]!==V||t[54]!==Q?(Le=e=>Q===`multi_select`?V.get(k)?.has(e)??!1:M.get(k)===e,t[51]=M,t[52]=k,t[53]=V,t[54]=Q,t[55]=Le):Le=t[55];let Re=Le,ze;t[56]!==X||t[57]!==Re||t[58]!==Fe?(ze=(e,t)=>{let n=Fe[e],r=Fe[t];return!n||!r?!1:Re(n)||Re(r)||X===e||X===t},t[56]=X,t[57]=Re,t[58]=Fe,t[59]=ze):ze=t[59];let Be=ze,Ve;if(t[60]!==Ie||t[61]!==X||t[62]!==Re||t[63]!==Fe){let e=Fe.at(-1);Ve=e!==void 0&&(Re(e)||X===Fe.length-1||X===Ie),t[60]=Ie,t[61]=X,t[62]=Re,t[63]=Fe,t[64]=Ve}else Ve=t[64];let He=Ve,Ue;t[65]===k?Ue=t[66]:(Ue=e=>z(t=>{let n=new Map(t);return n.set(k,e),n}),t[65]=k,t[66]=Ue);let We=Ue,Ge;t[67]!==k||t[68]!==I||t[69]!==Q?(Ge=Q===`text`?I.get(k)??``:``,t[67]=k,t[68]=I,t[69]=Q,t[70]=Ge):Ge=t[70];let Ke=Ge,qe=Q===`text`&&Ke.length>S,Je;t[71]===_?Je=t[72]:(Je=c(`group/request flex w-full flex-col`,F(_)),t[71]=_,t[72]=Je);let Ye;t[73]===J.question?Ye=t[74]:(Ye={title:J.question},t[73]=J.question,t[74]=Ye);let Xe;t[75]!==u||t[76]!==q?(Xe={onDismiss:u,titleId:q},t[75]=u,t[76]=q,t[77]=Xe):Xe=t[77];let Ze;t[78]!==k||t[79]!==O||t[80]!==D?(Ze=O?{currentStep:k,totalSteps:D,onStepPrevious:()=>A(me),onStepNext:()=>A(e=>Math.min(D-1,e+1))}:void 0,t[78]=k,t[79]=O,t[80]=D,t[81]=Ze):Ze=t[81];let Qe;t[82]!==Ye||t[83]!==Xe||t[84]!==Ze||t[85]!==v?(Qe=/* @__PURE__ */ (0,R.jsx)(ne,{copy:Ye,dismiss:Xe,leading:v,stepNavigation:Ze}),t[82]=Ye,t[83]=Xe,t[84]=Ze,t[85]=v,t[86]=Qe):Qe=t[86];let $e,et,tt;t[87]===Symbol.for(`react.memo_cache_sentinel`)?($e={opacity:0,scale:.96},et={opacity:1,scale:1},tt={opacity:0,scale:.96},t[87]=$e,t[88]=et,t[89]=tt):($e=t[87],et=t[88],tt=t[89]);let nt;t[90]!==g||t[91]!==J.optionDescriptions||t[92]!==J.options||t[93]!==k||t[94]!==I||t[95]!==Ie||t[96]!==$||t[97]!==Ce||t[98]!==be||t[99]!==Oe||t[100]!==He||t[101]!==Be||t[102]!==ke||t[103]!==Re||t[104]!==Q||t[105]!==b||t[106]!==We||t[107]!==_?(nt=(Q===`select`||Q===`multi_select`)&&J.options&&/* @__PURE__ */ (0,R.jsxs)(R.Fragment,{children:[/* @__PURE__ */ (0,R.jsx)(w,{direction:`vertical`,gradientSurface:_,scrollClassName:`max-h-[min(24rem,60vh)] overscroll-contain`,children:/* @__PURE__ */ (0,R.jsx)(`div`,{ref:U,role:`listbox`,"aria-label":g({id:`0zpgxV`}),"aria-multiselectable":Q===`multi_select`,className:`flex flex-col`,onPointerLeave:e=>{let t=U.current,n=e.relatedTarget;(!t||!se(n)||!t.contains(n))&&K(null)},children:!ke&&J.options.map((e,t)=>{let n=J.optionDescriptions;return/* @__PURE__ */ (0,R.jsxs)(Y.Fragment,{children:[t>0?/* @__PURE__ */ (0,R.jsx)(fe,{hidden:Be(t-1,t)}):null,/* @__PURE__ */ (0,R.jsx)(ae,{index:t,label:e,description:n?.[t],isSelected:Re(e),isMultiSelect:Q===`multi_select`,onPointerEnter:()=>K({step:k,index:t}),onSelect:()=>Q===`multi_select`?Ce(e):be(e)})]},`${e}-${t}`)})})}),b&&/* @__PURE__ */ (0,R.jsxs)(R.Fragment,{children:[/* @__PURE__ */ (0,R.jsx)(fe,{hidden:ke||He}),/* @__PURE__ */ (0,R.jsx)(`div`,{onPointerEnter:()=>K({step:k,index:Ie}),onFocusCapture:()=>K({step:k,index:Ie}),onBlurCapture:e=>{let t=e.relatedTarget;(!se(t)||!e.currentTarget.contains(t))&&K(e=>e?.step===k&&e.index===Ie?null:e)},children:/* @__PURE__ */ (0,R.jsx)(oe,{value:I.get(k)??``,onChange:We,onSubmit:$,onSkip:Q===`select`?Oe:void 0})})]})]}),t[90]=g,t[91]=J.optionDescriptions,t[92]=J.options,t[93]=k,t[94]=I,t[95]=Ie,t[96]=$,t[97]=Ce,t[98]=be,t[99]=Oe,t[100]=He,t[101]=Be,t[102]=ke,t[103]=Re,t[104]=Q,t[105]=b,t[106]=We,t[107]=_,t[108]=nt):nt=t[108];let rt;t[109]!==g||t[110]!==$||t[111]!==qe||t[112]!==Q||t[113]!==S||t[114]!==Ke||t[115]!==We?(rt=Q===`text`?/* @__PURE__ */ (0,R.jsx)(`div`,{className:`p-3`,children:/* @__PURE__ */ (0,R.jsx)(T,{className:`w-full`,error:qe,onChange:e=>We(e.target.value),textareaControlProps:{value:Ke,placeholder:g({id:`l1fGrM`}),variant:`weak`,maxHeight:200,maxLength:S,rows:3,autoFocus:!0,"aria-label":g({id:`Vtq6ex`}),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&!e.repeat&&(e.preventDefault(),$())}}})}):null,t[109]=g,t[110]=$,t[111]=qe,t[112]=Q,t[113]=S,t[114]=Ke,t[115]=We,t[116]=rt):rt=t[116];let it;t[117]!==Ne||t[118]!==k||t[119]!==nt||t[120]!==rt?(it=/* @__PURE__ */ (0,R.jsx)(`div`,{className:`p-2`,children:/* @__PURE__ */ (0,R.jsx)(p,{mode:`popLayout`,children:/* @__PURE__ */ (0,R.jsxs)(f.div,{initial:$e,animate:et,exit:tt,transition:Ne,children:[nt,rt]},k)})}),t[117]=Ne,t[118]=k,t[119]=nt,t[120]=rt,t[121]=it):it=t[121];let at;t[122]!==g||t[123]!==k||t[124]!==Ee||t[125]!==Oe||t[126]!==je||t[127]!==C||t[128]!==Q||t[129]!==D?(at=Q===`multi_select`?C??/* @__PURE__ */ (0,R.jsx)(te,{layout:`multi_select`,selectionCount:je,onSkip:Oe,onPrimary:Ee,primaryLabel:k<D-1?g({id:`hXzOVo`}):g({id:`hQRttt`})}):null,t[122]=g,t[123]=k,t[124]=Ee,t[125]=Oe,t[126]=je,t[127]=C,t[128]=Q,t[129]=D,t[130]=at):at=t[130];let ot;t[131]!==g||t[132]!==k||t[133]!==$||t[134]!==Oe||t[135]!==Q||t[136]!==D?(ot=Q===`text`?/* @__PURE__ */ (0,R.jsx)(te,{layout:`text_input`,onSkip:Oe,onSubmit:$,submitLabel:k<D-1?g({id:`hXzOVo`}):g({id:`hQRttt`})}):null,t[131]=g,t[132]=k,t[133]=$,t[134]=Oe,t[135]=Q,t[136]=D,t[137]=ot):ot=t[137];let st;return t[138]!==h||t[139]!==Je||t[140]!==Qe||t[141]!==it||t[142]!==at||t[143]!==ot||t[144]!==q||t[145]!==_?(st=/* @__PURE__ */ (0,R.jsxs)(`div`,{role:`dialog`,"aria-labelledby":q,"data-variant":_,className:Je,"qa-test-id":h,children:[Qe,it,at,ot]}),t[138]=h,t[139]=Je,t[140]=Qe,t[141]=it,t[142]=at,t[143]=ot,t[144]=q,t[145]=_,t[146]=st):st=t[146],st}function me(e){return Math.max(0,e-1)}function he(e){return e+1}function ge(e){return e+1}function _e(e){let n=(0,L.c)(15),{pairs:r,shouldAnimate:i,qaTestId:a}=e,o=i!==void 0&&i,s=a===void 0?`user-request-summary-card`:a,{_:c}=y(),l=m(),u=o&&!l,d;n[0]===u?d=n[1]:(d=u?{opacity:0,y:8}:!1,n[0]=u,n[1]=d);let p;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(p={opacity:1,y:0},n[2]=p):p=n[2];let h;n[3]===u?h=n[4]:(h=u?t:{duration:0},n[3]=u,n[4]=h);let g;if(n[5]!==c||n[6]!==r){let e;n[8]===c?e=n[9]:(e=(e,t)=>/* @__PURE__ */ (0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[/* @__PURE__ */ (0,R.jsx)(`span`,{className:`pui-text-label-medium text-depth-black-88`,children:e.question}),/* @__PURE__ */ (0,R.jsx)(`span`,{className:`pui-text-body-medium-alt text-depth-black-48`,children:e.answer||c({id:`9NyAH9`})})]},t),n[8]=c,n[9]=e),g=r.map(e),n[5]=c,n[6]=r,n[7]=g}else g=n[7];let _;return n[10]!==s||n[11]!==d||n[12]!==h||n[13]!==g?(_=/* @__PURE__ */ (0,R.jsx)(f.div,{className:`border-inner-depth-black-4 flex w-full flex-col gap-6 rounded-20 p-4`,initial:d,animate:p,transition:h,"qa-test-id":s,children:g}),n[10]=s,n[11]=d,n[12]=h,n[13]=g,n[14]=_):_=n[14],_}function ve(e){return null}function ye(e){let t=(0,L.c)(21),n=e.qaTestId??`user-request`;switch(e.mode){case`questionnaire`:{let r;if(t[0]!==e){let{mode:n,...i}=e;r=i,t[0]=e,t[1]=r}else r=t[1];let i;return t[2]!==n||t[3]!==r?(i=/* @__PURE__ */ (0,R.jsx)(pe,{...r,qaTestId:n}),t[2]=n,t[3]=r,t[4]=i):i=t[4],i}case`approval`:{let r;if(t[5]!==e){let{mode:n,...i}=e;r=i,t[5]=e,t[6]=r}else r=t[6];let i;return t[7]!==n||t[8]!==r?(i=/* @__PURE__ */ (0,R.jsx)(X,{...r,qaTestId:n}),t[7]=n,t[8]=r,t[9]=i):i=t[9],i}case`feedback`:{let r;if(t[10]!==e){let{mode:n,...i}=e;r=i,t[10]=e,t[11]=r}else r=t[11];let i;return t[12]!==n||t[13]!==r?(i=/* @__PURE__ */ (0,R.jsx)(re,{...r,qaTestId:n}),t[12]=n,t[13]=r,t[14]=i):i=t[14],i}case`summary`:{let r;return t[15]!==e.pairs||t[16]!==e.shouldAnimate||t[17]!==n?(r=/* @__PURE__ */ (0,R.jsx)(_e,{pairs:e.pairs,shouldAnimate:e.shouldAnimate,qaTestId:n}),t[15]=e.pairs,t[16]=e.shouldAnimate,t[17]=n,t[18]=r):r=t[18],r}default:{let n;return t[19]===e?n=t[20]:(n=ve(e),t[19]=e,t[20]=n),n}}}export{ye as UserRequest};
@@ -2,7 +2,7 @@
2
2
  const NPM_CDN = "https://cdn.jsdelivr.net/npm/";
3
3
  const SHARED = /^(@patterninc\/pattern-ui\/|(react|react-dom|@lingui\/core|@lingui\/react|sucrase)(\/|$))/;
4
4
  const scriptUrl = document.currentScript instanceof HTMLScriptElement ? document.currentScript.src : "";
5
- const packageUrl = new URL("../", scriptUrl || location.href).href.replace(/\/@patterninc\/pattern-ui(@[^/]*)?\//, `/@patterninc/pattern-ui@0.0.0-main.202610270514.2e8a0fcab86d/`);
5
+ const packageUrl = new URL("../", scriptUrl || location.href).href.replace(/\/@patterninc\/pattern-ui(@[^/]*)?\//, `/@patterninc/pattern-ui@0.0.0-main.202610270516.e4f9516912f8/`);
6
6
  const browserUrl = `${packageUrl}dist/browser/`;
7
7
  globalThis.patternPlayCdnUrl = (specifier) => {
8
8
  if (specifier.endsWith(".css")) return `${browserUrl}${specifier}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patterninc/pattern-ui",
3
- "version": "0.0.0-main.202610270514.2e8a0fcab86d",
3
+ "version": "0.0.0-main.202610270516.e4f9516912f8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/patterninc/pattern-exp.git",
@@ -21,19 +21,7 @@ export function ThinkingLoader({
21
21
  qa-test-id={qaTestId}
22
22
  {...props}
23
23
  >
24
- <span
25
- className={cn('pui-text-label-medium bg-clip-text text-transparent')}
26
- style={{
27
- // Create a gradient using soft white and gray colors that wave across the text
28
- // Seamless gradient pattern for continuous one-way flow
29
- backgroundImage:
30
- 'linear-gradient(90deg, var(--color-gray-400) 0%, var(--color-gray-300) 25%, var(--color-gray-100) 50%, var(--color-gray-300) 75%, var(--color-gray-400) 100%, var(--color-gray-300) 125%, var(--color-gray-100) 150%, var(--color-gray-300) 175%, var(--color-gray-400) 200%)',
31
- backgroundSize: '200% 100%',
32
- WebkitBackgroundClip: 'text',
33
- WebkitTextFillColor: 'transparent',
34
- animation: 'gradient-shimmer 1s linear infinite',
35
- }}
36
- >
24
+ <span className='pui-text-label-medium animate-gradient-shimmer text-shimmer motion-reduce:animate-none'>
37
25
  {label ?? t`Thinking`}
38
26
  </span>
39
27
  </div>
@@ -7,7 +7,7 @@ import { useEventListener } from 'usehooks-ts'
7
7
  import { TextareaField } from '../../../../components/Textarea/TextareaField'
8
8
  import { Tooltip, TooltipContent, TooltipTrigger } from '../../../../components/Tooltip/Tooltip'
9
9
  import type { UserRequestVariant } from '../../user-request-types'
10
- import { getUserRequestPanelSurfaceClass } from '../shared/user-request-surface'
10
+ import { getUserRequestFormSurfaceClass } from '../shared/user-request-surface'
11
11
  import { UserRequestActions } from '../shared/UserRequestActions'
12
12
  import { UserRequestTitle } from '../shared/UserRequestTitle'
13
13
 
@@ -130,7 +130,7 @@ export function UserRequestForm({
130
130
  data-variant={variant}
131
131
  className={cn(
132
132
  'group/request flex w-full flex-col',
133
- getUserRequestPanelSurfaceClass(variant),
133
+ getUserRequestFormSurfaceClass(variant),
134
134
  )}
135
135
  animate={shakeControls}
136
136
  qa-test-id={qaTestId}
@@ -8,7 +8,7 @@ import { IconBox } from '../../../../components/IconBox/IconBox'
8
8
  import InputFieldIcon from '../../../../components/icons/InputFieldIcon'
9
9
 
10
10
  const rowBase =
11
- 'flex min-h-12 w-full items-center gap-3 rounded-2xl p-3 transition-colors duration-150'
11
+ 'flex min-h-12 w-full items-center gap-3 rounded-2xl px-3 py-3.5 transition-colors duration-150'
12
12
  const rowIdle = 'hover:bg-depth-black-4'
13
13
 
14
14
  const inputFieldClass =
@@ -1,11 +1,24 @@
1
1
  import type { UserRequestVariant } from '../../user-request-types'
2
2
 
3
+ const panelRadius = 'rounded-20'
4
+
3
5
  const panelSurface: Record<UserRequestVariant, string> = {
4
- inverse: 'rounded-3xl bg-base-inverse border border-depth-black-4',
5
- weak: 'rounded-3xl bg-depth-black-4',
6
+ inverse: `${panelRadius} bg-base-inverse border border-depth-black-4`,
7
+ weak: `${panelRadius} bg-depth-black-4`,
8
+ }
9
+
10
+ /** Figma: the Weak + Form layout sits on `base-weak`, not the `depth-black-4` tint. */
11
+ const formPanelSurface: Record<UserRequestVariant, string> = {
12
+ ...panelSurface,
13
+ weak: `${panelRadius} bg-base-weak`,
6
14
  }
7
15
 
8
16
  /** Returns the panel surface class for preview shells. */
9
17
  export function getUserRequestPanelSurfaceClass(variant: UserRequestVariant): string {
10
18
  return panelSurface[variant]
11
19
  }
20
+
21
+ /** Returns the panel surface class for the feedback form layout. */
22
+ export function getUserRequestFormSurfaceClass(variant: UserRequestVariant): string {
23
+ return formPanelSurface[variant]
24
+ }
@@ -810,6 +810,7 @@
810
810
  --animate-accordion-down: accordion-down 0.2s ease-out;
811
811
  --animate-accordion-up: accordion-up 0.2s ease-out;
812
812
  --animate-skeleton-shimmer: skeleton-shimmer 1.6s linear infinite;
813
+ --animate-gradient-shimmer: gradient-shimmer 1s linear infinite;
813
814
 
814
815
  @keyframes accordion-down {
815
816
  from {
@@ -841,6 +842,16 @@
841
842
  }
842
843
  }
843
844
 
845
+ @keyframes gradient-shimmer {
846
+ 0% {
847
+ background-position: 200% 50%;
848
+ }
849
+
850
+ 100% {
851
+ background-position: 0% 50%;
852
+ }
853
+ }
854
+
844
855
  /* Opacity 0.01 (not 0) so backdrop-filter is sampled before the comment Tag fades in. */
845
856
  @keyframes pdp-annotation-in {
846
857
  from {
@@ -853,6 +864,31 @@
853
864
  }
854
865
  }
855
866
 
867
+ /*
868
+ * text-shimmer — gradient clipped to text for loading labels (ThinkingLoader). Uses semantic text
869
+ * tokens so the wave adapts to light/dark. The 200% background-size lets the seamless stop pattern
870
+ * flow one way when paired with animate-gradient-shimmer.
871
+ */
872
+ @utility text-shimmer {
873
+ background-image: linear-gradient(
874
+ 90deg,
875
+ var(--color-text-soft) 0%,
876
+ var(--color-text-sub) 25%,
877
+ var(--color-text-strong) 50%,
878
+ var(--color-text-sub) 75%,
879
+ var(--color-text-soft) 100%,
880
+ var(--color-text-sub) 125%,
881
+ var(--color-text-strong) 150%,
882
+ var(--color-text-sub) 175%,
883
+ var(--color-text-soft) 200%
884
+ );
885
+ background-size: 200% 100%;
886
+ background-clip: text;
887
+ -webkit-background-clip: text;
888
+ -webkit-text-fill-color: transparent;
889
+ color: transparent;
890
+ }
891
+
856
892
  /*
857
893
  * image-shimmer — static surface + sweep gradient for image loading slots.
858
894
  * Pairs with animate-skeleton-shimmer; background-position is the only
@@ -899,6 +935,13 @@
899
935
  background-position: 0 0;
900
936
  }
901
937
 
938
+ .text-shimmer,
939
+ .animate-gradient-shimmer {
940
+ background-image: none;
941
+ -webkit-text-fill-color: currentColor;
942
+ animation: none;
943
+ }
944
+
902
945
  .pdp-annotation-box[data-annotation-visible] [data-slot='tag'] {
903
946
  animation: none;
904
947
  opacity: 1;