nish-ui 1.9.0 → 2.0.0

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.
Files changed (152) hide show
  1. package/README.md +218 -58
  2. package/dist/base-tailwind.css +1757 -0
  3. package/dist/base.css +1590 -1445
  4. package/dist/chart.d.ts +4 -1
  5. package/dist/chart.js +122 -49
  6. package/dist/elements-all.d.ts +8 -0
  7. package/dist/elements-all.js +178 -0
  8. package/dist/elements-charts.d.ts +71 -0
  9. package/dist/elements-charts.js +56 -57
  10. package/dist/elements-data.d.ts +71 -0
  11. package/dist/elements-data.js +5 -6
  12. package/dist/elements-forms.d.ts +71 -0
  13. package/dist/elements-forms.js +24 -25
  14. package/dist/elements.d.ts +71 -0
  15. package/dist/elements.js +4 -5
  16. package/dist/esm/chart-values.js +58 -0
  17. package/dist/esm/chart.js +10 -0
  18. package/dist/esm/cn.js +19 -0
  19. package/dist/esm/combobox-filter.js +13 -0
  20. package/dist/esm/components/accordion.js +166 -0
  21. package/dist/esm/components/app-shell.js +198 -0
  22. package/dist/esm/components/avatar-classes.js +28 -0
  23. package/dist/esm/components/avatar.js +113 -0
  24. package/dist/esm/components/breadcrumbs.js +154 -0
  25. package/dist/esm/components/canvas/follow-caption.js +32 -0
  26. package/dist/esm/components/canvas/follow.js +119 -0
  27. package/dist/esm/components/canvas/icons.js +70 -0
  28. package/dist/esm/components/canvas/index.js +10 -0
  29. package/dist/esm/components/canvas/layout.js +258 -0
  30. package/dist/esm/components/canvas/legend.js +93 -0
  31. package/dist/esm/components/canvas/minimap.js +127 -0
  32. package/dist/esm/components/canvas/node.js +87 -0
  33. package/dist/esm/components/canvas/route.js +262 -0
  34. package/dist/esm/components/canvas/system-canvas.js +837 -0
  35. package/dist/esm/components/canvas/types.js +10 -0
  36. package/dist/esm/components/canvas/view.js +47 -0
  37. package/dist/esm/components/chart-hooks.js +19 -0
  38. package/dist/esm/components/charts.js +467 -0
  39. package/dist/esm/components/client.js +24 -0
  40. package/dist/esm/components/combobox.js +343 -0
  41. package/dist/esm/components/command.js +403 -0
  42. package/dist/esm/components/data-classes.js +159 -0
  43. package/dist/esm/components/data.js +517 -0
  44. package/dist/esm/components/display-classes.js +130 -0
  45. package/dist/esm/components/display.js +755 -0
  46. package/dist/esm/components/error-boundary.js +64 -0
  47. package/dist/esm/components/feedback.js +136 -0
  48. package/dist/esm/components/file-dropzone.js +184 -0
  49. package/dist/esm/components/filters.js +108 -0
  50. package/dist/esm/components/flow.js +746 -0
  51. package/dist/esm/components/forms-classes.js +43 -0
  52. package/dist/esm/components/forms.js +581 -0
  53. package/dist/esm/components/hooks-classes.js +9 -0
  54. package/dist/esm/components/hooks.js +236 -0
  55. package/dist/esm/components/icons.js +96 -0
  56. package/dist/esm/components/inbox-classes.js +29 -0
  57. package/dist/esm/components/inbox.js +257 -0
  58. package/dist/esm/components/latest.js +13 -0
  59. package/dist/esm/components/layout-vars.js +96 -0
  60. package/dist/esm/components/layout.js +272 -0
  61. package/dist/esm/components/media.js +143 -0
  62. package/dist/esm/components/nav.js +614 -0
  63. package/dist/esm/components/overlay-classes.js +66 -0
  64. package/dist/esm/components/overlay.js +1447 -0
  65. package/dist/esm/components/pagination-classes.js +29 -0
  66. package/dist/esm/components/pagination.js +154 -0
  67. package/dist/esm/components/portal.js +16 -0
  68. package/dist/esm/components/primitives-classes.js +198 -0
  69. package/dist/esm/components/primitives.js +268 -0
  70. package/dist/esm/components/progress.js +77 -0
  71. package/dist/esm/components/provider.js +32 -0
  72. package/dist/esm/components/radio-group.js +186 -0
  73. package/dist/esm/components/resource-classes.js +133 -0
  74. package/dist/esm/components/resource.js +209 -0
  75. package/dist/esm/components/segmented.js +178 -0
  76. package/dist/esm/components/separator.js +38 -0
  77. package/dist/esm/components/service-tokens.js +221 -0
  78. package/dist/esm/components/settings.js +301 -0
  79. package/dist/esm/components/slider.js +262 -0
  80. package/dist/esm/components/split-classes.js +8 -0
  81. package/dist/esm/components/split.js +411 -0
  82. package/dist/esm/components/strings.js +119 -0
  83. package/dist/esm/components/table.js +144 -0
  84. package/dist/esm/components/tabs-classes.js +21 -0
  85. package/dist/esm/components/tabs.js +201 -0
  86. package/dist/esm/components/tag-input.js +257 -0
  87. package/dist/esm/components/theme-toggle.js +177 -0
  88. package/dist/esm/components/toast.js +361 -0
  89. package/dist/esm/components/url-state.js +118 -0
  90. package/dist/esm/components/visually-hidden.js +20 -0
  91. package/dist/esm/format.js +320 -0
  92. package/dist/esm/inbox-client.js +2 -0
  93. package/dist/esm/inbox-types.js +2 -0
  94. package/dist/esm/index.js +320 -0
  95. package/dist/esm/runtime.js +37 -0
  96. package/dist/esm/server/inbox/client.js +297 -0
  97. package/dist/esm/server/inbox/types.js +24 -0
  98. package/dist/esm/sparkline-path.js +59 -0
  99. package/dist/esm/split-layout.js +419 -0
  100. package/dist/esm/system-canvas.js +2 -0
  101. package/dist/esm/theme.js +804 -0
  102. package/dist/esm/tokens.mjs +425 -0
  103. package/dist/esm/url.js +20 -0
  104. package/dist/files.json +5 -1
  105. package/dist/fonts/LICENSE-Inter.txt +93 -0
  106. package/dist/format.d.ts +32 -18
  107. package/dist/format.js +227 -82
  108. package/dist/inbox-client.js +3 -1
  109. package/dist/index.d.ts +1686 -667
  110. package/dist/nish-components.css +4649 -4506
  111. package/dist/nish-components.min.css +1 -0
  112. package/dist/nish.css +1603 -1450
  113. package/dist/nish.min.css +1 -0
  114. package/dist/node/eslint.js +29 -14
  115. package/dist/node/th-check.js +29 -14
  116. package/dist/node/vite.d.ts +12 -0
  117. package/dist/node/vite.js +12 -2
  118. package/dist/server/hono.d.ts +15 -6
  119. package/dist/server/hono.js +30 -25
  120. package/dist/server/index.d.ts +3 -10
  121. package/dist/server/index.js +71 -38
  122. package/dist/{spa-DuVB5O7S.d.ts → spa-BLlMc0eI.d.ts} +38 -5
  123. package/dist/system-canvas-BLuWd69H.d.ts +183 -0
  124. package/dist/system-canvas.d.ts +2 -168
  125. package/dist/tailwind-core.css +114 -0
  126. package/dist/tailwind.css +3 -7
  127. package/dist/theme-init.js +23 -9
  128. package/dist/theme-init.sha256 +1 -0
  129. package/dist/theme.d.ts +243 -4
  130. package/dist/theme.global.js +356 -89
  131. package/dist/theme.js +337 -67
  132. package/dist/tokens.css +14 -6
  133. package/dist/tokens.dtcg.json +1513 -0
  134. package/dist/tokens.js +29 -14
  135. package/dist/tokens.json +512 -0
  136. package/package.json +51 -13
  137. package/dist/chart.js.map +0 -1
  138. package/dist/elements-charts.js.map +0 -1
  139. package/dist/elements-data.js.map +0 -1
  140. package/dist/elements-forms.js.map +0 -1
  141. package/dist/elements.js.map +0 -1
  142. package/dist/format.js.map +0 -1
  143. package/dist/inbox-client.js.map +0 -1
  144. package/dist/index.js +0 -10260
  145. package/dist/index.js.map +0 -1
  146. package/dist/server/hono.js.map +0 -1
  147. package/dist/server/index.js.map +0 -1
  148. package/dist/split-layout.js.map +0 -1
  149. package/dist/system-canvas.js +0 -2204
  150. package/dist/system-canvas.js.map +0 -1
  151. package/dist/theme.global.js.map +0 -1
  152. package/dist/theme.js.map +0 -1
@@ -0,0 +1,1757 @@
1
+ /* Page-level defaults every nish.software site shares. Plain CSS so static pages can
2
+ link it; Tailwind apps get it through tailwind.css inside the base layer, so any
3
+ utility class still wins. Everything is in the cascade layer nish.base: unlayered CSS
4
+ of the page always beats it (declare `@layer nish.base, nish.components, app;` first to
5
+ order your own layers after it). */
6
+
7
+
8
+ html {
9
+ background-color: var(--nish-bg);
10
+ color: var(--nish-hi);
11
+ font-family: var(--nish-font-sans);
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ text-rendering: optimizeLegibility;
15
+ -webkit-text-size-adjust: 100%;
16
+ -webkit-tap-highlight-color: transparent;
17
+ }
18
+
19
+ /* Layout contract. Bars publish their height on <html> (--nish-header-h,
20
+ --nish-bottom-nav-h, --nish-bottom-bar-h); everything that must clear them reads
21
+ --nish-bottom-inset or --nish-header-h. */
22
+ :root {
23
+ --nish-page-gutter: 1rem;
24
+ --nish-header-h: 0px;
25
+ --nish-bottom-inset: calc(var(--nish-bottom-nav-h, 0px) + var(--nish-bottom-bar-h, 0px));
26
+ }
27
+ @media (min-width: 640px) {
28
+ :root {
29
+ --nish-page-gutter: 1.5rem;
30
+ }
31
+ }
32
+ /* Desktop scrollbars: reserve the gutter so the page does not shift when a dialog
33
+ hides the page scroll. */
34
+ @media (hover: hover) and (pointer: fine) {
35
+ html {
36
+ scrollbar-gutter: stable;
37
+ }
38
+ }
39
+ /* Anchor targets stop below the sticky header (and a sticky sub-bar). */
40
+ .nish-scroll-target {
41
+ scroll-margin-top: calc(var(--nish-header-h, 0px) + var(--nish-sticky-extra, 0px) + 0.5rem);
42
+ }
43
+ /* Horizontal overflow fade, driven by data-at-start / data-at-end on the scroller. */
44
+ .nish-scroll-fade {
45
+ --nish-fade-start: #000;
46
+ --nish-fade-end: #000;
47
+ mask-image: linear-gradient(to right, var(--nish-fade-start), #000 24px, #000 calc(100% - 24px), var(--nish-fade-end));
48
+ -webkit-mask-image: linear-gradient(to right, var(--nish-fade-start), #000 24px, #000 calc(100% - 24px), var(--nish-fade-end));
49
+ }
50
+ .nish-scroll-fade[data-at-start='false'] {
51
+ --nish-fade-start: transparent;
52
+ }
53
+ .nish-scroll-fade[data-at-end='false'] {
54
+ --nish-fade-end: transparent;
55
+ }
56
+ .nish-no-scrollbar {
57
+ scrollbar-width: none;
58
+ }
59
+ .nish-no-scrollbar::-webkit-scrollbar {
60
+ display: none;
61
+ }
62
+ /* Bottom padding that clears bottom bars (the nav already includes the safe area). */
63
+ .nish-pad-bottom-inset {
64
+ padding-bottom: max(calc(var(--nish-bottom-inset) + 1rem), calc(1rem + env(safe-area-inset-bottom)));
65
+ }
66
+
67
+ /* A theme scoped to part of a page (<div data-theme="light" data-scheme="light">):
68
+ the tokens are re-declared there by tokens.css, but inherited text color was
69
+ computed on html, so set it again. Zero specificity, so any class still wins. */
70
+ :where([data-theme]:not(html)) {
71
+ background-color: var(--nish-bg);
72
+ color: var(--nish-hi);
73
+ }
74
+
75
+ /* Numbers in tables line up as columns without per-cell classes. */
76
+ table,
77
+ .nish-tabular {
78
+ font-variant-numeric: tabular-nums;
79
+ }
80
+
81
+ ::selection {
82
+ background: color-mix(in srgb, var(--nish-accent) 30%, transparent);
83
+ }
84
+
85
+ /* One keyboard-focus language everywhere. Components that draw their own focus
86
+ style still win; this is the fallback for everything that never thought about it. */
87
+ :focus-visible {
88
+ outline: var(--nish-focus-width) solid var(--nish-focus);
89
+ outline-offset: var(--nish-focus-offset);
90
+ }
91
+
92
+ /* Recharts 3's accessibility layer makes the chart focusable, so a tap or click
93
+ focused it and drew a thick box round the whole plot. Pointer focus draws nothing;
94
+ keyboard focus gets a quiet accent ring. */
95
+ .recharts-wrapper,
96
+ .recharts-wrapper :focus {
97
+ outline: none;
98
+ }
99
+ .recharts-wrapper:focus-visible,
100
+ .recharts-wrapper :focus-visible {
101
+ outline: 1px solid color-mix(in srgb, var(--nish-accent) 45%, transparent);
102
+ outline-offset: 2px;
103
+ border-radius: var(--nish-radius-sm);
104
+ }
105
+ /* Recharts' default hover cursor is a #ccc slab (bars) or line, bright on dark themes.
106
+ CSS beats the fill/stroke attributes Recharts writes, so every chart gets a quiet one. */
107
+ .recharts-rectangle.recharts-tooltip-cursor {
108
+ fill: color-mix(in srgb, var(--nish-hi3) 14%, transparent);
109
+ }
110
+ .recharts-curve.recharts-tooltip-cursor {
111
+ stroke: var(--nish-line-strong);
112
+ }
113
+
114
+ /* Browser-default scrollbars clash with every theme, worst on light. */
115
+ * {
116
+ scrollbar-width: thin;
117
+ scrollbar-color: var(--nish-line-strong) transparent;
118
+ }
119
+ ::-webkit-scrollbar {
120
+ width: 10px;
121
+ height: 10px;
122
+ }
123
+ ::-webkit-scrollbar-track {
124
+ background: transparent;
125
+ }
126
+ ::-webkit-scrollbar-thumb {
127
+ background: var(--nish-line-strong);
128
+ border-radius: 8px;
129
+ border: 2px solid transparent;
130
+ background-clip: padding-box;
131
+ }
132
+ ::-webkit-scrollbar-thumb:hover {
133
+ background: var(--nish-ghost);
134
+ border: 2px solid transparent;
135
+ background-clip: padding-box;
136
+ }
137
+
138
+ /* The "← nish.software" pill every subdomain carries at the top left of its header:
139
+ <a class="nish-pill-link" href="https://nish.software" title="Back to nish.software">← nish.software</a> */
140
+ .nish-pill-link {
141
+ display: inline-flex;
142
+ align-items: center;
143
+ gap: 6px;
144
+ font-family: var(--nish-font-sans);
145
+ font-size: 14px;
146
+ line-height: 1.2;
147
+ color: var(--nish-hi2);
148
+ text-decoration: none;
149
+ min-height: 44px;
150
+ padding: 4px 12px;
151
+ border: 1px solid var(--nish-line);
152
+ border-radius: 999px;
153
+ white-space: nowrap;
154
+ box-sizing: border-box;
155
+ flex-shrink: 0;
156
+ }
157
+ .nish-pill-link:hover {
158
+ color: var(--nish-hi);
159
+ border-color: var(--nish-line-strong);
160
+ }
161
+ /* Compact form for crowded headers: under 480px only the arrow shows, in a 44px circle,
162
+ and the words stay for screen readers. data-compact="always" keeps it compact at every
163
+ width.
164
+ <a class="nish-pill-link nish-pill-link--compact" href="https://nish.software"
165
+ title="Back to nish.software">&larr; <span class="nish-pill-link-label">nish.software</span></a> */
166
+ @media (max-width: 480px) {
167
+ .nish-pill-link--compact {
168
+ min-width: var(--nish-tap-min, 44px);
169
+ justify-content: center;
170
+ padding-inline: 6px;
171
+ }
172
+ .nish-pill-link--compact .nish-pill-link-label {
173
+ position: absolute;
174
+ width: 1px;
175
+ height: 1px;
176
+ overflow: hidden;
177
+ clip-path: inset(50%);
178
+ white-space: nowrap;
179
+ }
180
+ }
181
+ .nish-pill-link--compact[data-compact='always'] {
182
+ min-width: var(--nish-tap-min, 44px);
183
+ justify-content: center;
184
+ padding-inline: 6px;
185
+ }
186
+ .nish-pill-link--compact[data-compact='always'] .nish-pill-link-label {
187
+ position: absolute;
188
+ width: 1px;
189
+ height: 1px;
190
+ overflow: hidden;
191
+ clip-path: inset(50%);
192
+ white-space: nowrap;
193
+ }
194
+
195
+ /* Scrolls, but draws no scrollbar: tab strips, chip rows, carousels. */
196
+ .scrollbar-none {
197
+ scrollbar-width: none;
198
+ -ms-overflow-style: none;
199
+ }
200
+ .scrollbar-none::-webkit-scrollbar {
201
+ display: none;
202
+ }
203
+
204
+ /* First thing in <body>: <a class="nish-skip-link" href="#main">Skip to content</a>.
205
+ Parked above the top edge (still read by screen readers) until a keyboard user tabs
206
+ to it, then a pill at the top left. */
207
+ .nish-skip-link {
208
+ position: fixed;
209
+ top: var(--nish-space-2);
210
+ inset-inline-start: var(--nish-space-2);
211
+ z-index: var(--nish-z-tooltip);
212
+ transform: translateY(calc(-100% - var(--nish-space-4)));
213
+ opacity: 0;
214
+ pointer-events: none;
215
+ white-space: nowrap;
216
+ display: inline-flex;
217
+ align-items: center;
218
+ min-height: var(--nish-tap-min);
219
+ padding: 0 var(--nish-space-4);
220
+ border: 1px solid var(--nish-line-strong);
221
+ border-radius: var(--nish-radius-sm);
222
+ background: var(--nish-elevated);
223
+ color: var(--nish-hi);
224
+ box-shadow: var(--nish-shadow-pop);
225
+ font-size: var(--nish-text-sm);
226
+ font-weight: var(--nish-weight-medium);
227
+ text-decoration: none;
228
+ }
229
+ .nish-skip-link:focus,
230
+ .nish-skip-link:focus-visible {
231
+ transform: none;
232
+ opacity: 1;
233
+ pointer-events: auto;
234
+ }
235
+
236
+ /* Keyboard keys in running text and shortcut hints. The Kbd component adds sizes. */
237
+ kbd {
238
+ font-family: var(--nish-font-mono);
239
+ font-size: 0.85em;
240
+ padding: 0 0.35em;
241
+ border: 1px solid var(--nish-line-strong);
242
+ border-radius: var(--nish-radius-xs);
243
+ background: var(--nish-elevated);
244
+ color: inherit;
245
+ white-space: nowrap;
246
+ }
247
+
248
+ /* Notches and home indicators on installed PWAs. */
249
+ .nish-safe-area {
250
+ padding-top: env(safe-area-inset-top);
251
+ padding-bottom: env(safe-area-inset-bottom);
252
+ padding-left: env(safe-area-inset-left);
253
+ padding-right: env(safe-area-inset-right);
254
+ }
255
+
256
+ .nish-skeleton {
257
+ position: relative;
258
+ overflow: hidden;
259
+ background: var(--nish-elevated);
260
+ }
261
+ .nish-skeleton::after {
262
+ content: '';
263
+ position: absolute;
264
+ inset: 0;
265
+ transform: translateX(-100%);
266
+ background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--nish-overlay) 70%, transparent), transparent);
267
+ animation: nish-sheen 1.4s infinite;
268
+ }
269
+
270
+ @keyframes nish-sheen {
271
+ 100% {
272
+ transform: translateX(100%);
273
+ }
274
+ }
275
+ @keyframes nish-sheet-out {
276
+ from {
277
+ transform: translateY(0);
278
+ }
279
+ to {
280
+ transform: translateY(100%);
281
+ }
282
+ }
283
+ @keyframes nish-fade-out {
284
+ from {
285
+ opacity: 1;
286
+ }
287
+ to {
288
+ opacity: 0;
289
+ }
290
+ }
291
+ @keyframes nish-toast-in-top {
292
+ from {
293
+ transform: translateY(-8px);
294
+ opacity: 0;
295
+ }
296
+ to {
297
+ transform: none;
298
+ opacity: 1;
299
+ }
300
+ }
301
+ @keyframes nish-bar-in {
302
+ from {
303
+ transform: translateY(100%);
304
+ }
305
+ to {
306
+ transform: translateY(0);
307
+ }
308
+ }
309
+ /* Indeterminate progress: a 40% wide stripe sweeping across (the stripe is the element). */
310
+ @keyframes nish-loading-bar {
311
+ from {
312
+ transform: translateX(-100%);
313
+ }
314
+ to {
315
+ transform: translateX(250%);
316
+ }
317
+ }
318
+ @keyframes nish-pulse {
319
+ 50% {
320
+ opacity: 0.35;
321
+ }
322
+ }
323
+ @keyframes nish-fade-in {
324
+ from {
325
+ opacity: 0;
326
+ }
327
+ to {
328
+ opacity: 1;
329
+ }
330
+ }
331
+ @keyframes nish-rise-in {
332
+ from {
333
+ opacity: 0;
334
+ transform: translateY(6px);
335
+ }
336
+ to {
337
+ opacity: 1;
338
+ transform: translateY(0);
339
+ }
340
+ }
341
+ @keyframes nish-sheet-in {
342
+ from {
343
+ transform: translateY(100%);
344
+ }
345
+ to {
346
+ transform: translateY(0);
347
+ }
348
+ }
349
+ /* Drawers: from the right edge (side="right") or the left (side="left"). */
350
+ @keyframes nish-slide-in-right {
351
+ from {
352
+ transform: translateX(100%);
353
+ }
354
+ to {
355
+ transform: translateX(0);
356
+ }
357
+ }
358
+ @keyframes nish-slide-in-left {
359
+ from {
360
+ transform: translateX(-100%);
361
+ }
362
+ to {
363
+ transform: translateX(0);
364
+ }
365
+ }
366
+
367
+ /* Flow components (FlowSteps, StepBar, AgentNode, WorkflowBoard, ActivityFeed,
368
+ TickerText, AnimatedList; src/components/flow.tsx). Layout rules always apply; every
369
+ rule that moves, loops or fades sits inside prefers-reduced-motion: no-preference, so
370
+ under reduced motion state changes are instant and nothing loops. */
371
+
372
+ /* The comet on a running AgentNode turns this angle. Where @property is unsupported the
373
+ angle stays 0 and the border is a static accent border. */
374
+ @property --nish-flow-angle {
375
+ syntax: '<angle>';
376
+ inherits: false;
377
+ initial-value: 0deg;
378
+ }
379
+
380
+ @keyframes nish-flow-spin {
381
+ to {
382
+ transform: rotate(360deg);
383
+ }
384
+ }
385
+ @keyframes nish-flow-ripple {
386
+ from {
387
+ transform: scale(1);
388
+ opacity: 0.45;
389
+ }
390
+ to {
391
+ transform: scale(1.9);
392
+ opacity: 0;
393
+ }
394
+ }
395
+ @keyframes nish-flow-draw {
396
+ from {
397
+ stroke-dashoffset: 1;
398
+ }
399
+ to {
400
+ stroke-dashoffset: 0;
401
+ }
402
+ }
403
+ @keyframes nish-flow-pop {
404
+ 0% {
405
+ transform: scale(0.7);
406
+ }
407
+ 60% {
408
+ transform: scale(1.12);
409
+ }
410
+ 100% {
411
+ transform: scale(1);
412
+ }
413
+ }
414
+ @keyframes nish-flow-shake {
415
+ 0%,
416
+ 100% {
417
+ transform: translateX(0);
418
+ }
419
+ 20% {
420
+ transform: translateX(-4px);
421
+ }
422
+ 40% {
423
+ transform: translateX(4px);
424
+ }
425
+ 60% {
426
+ transform: translateX(-3px);
427
+ }
428
+ 80% {
429
+ transform: translateX(2px);
430
+ }
431
+ }
432
+ @keyframes nish-flow-enter {
433
+ from {
434
+ opacity: 0;
435
+ transform: translateY(12px) scale(0.98);
436
+ }
437
+ to {
438
+ opacity: 1;
439
+ transform: none;
440
+ }
441
+ }
442
+ @keyframes nish-flow-exit {
443
+ from {
444
+ opacity: 1;
445
+ transform: none;
446
+ grid-template-rows: 1fr;
447
+ }
448
+ to {
449
+ opacity: 0;
450
+ transform: translateY(-8px) scale(0.96);
451
+ grid-template-rows: 0fr;
452
+ }
453
+ }
454
+ @keyframes nish-flow-feed-in {
455
+ from {
456
+ opacity: 0;
457
+ transform: translateY(-6px);
458
+ grid-template-rows: 0fr;
459
+ }
460
+ to {
461
+ opacity: 1;
462
+ transform: none;
463
+ grid-template-rows: 1fr;
464
+ }
465
+ }
466
+ @keyframes nish-flow-flash {
467
+ from {
468
+ background-color: var(--nish-accent-soft);
469
+ }
470
+ to {
471
+ background-color: transparent;
472
+ }
473
+ }
474
+ @keyframes nish-flow-dash {
475
+ to {
476
+ stroke-dashoffset: -6;
477
+ }
478
+ }
479
+ @keyframes nish-flow-shimmer {
480
+ from {
481
+ transform: translateX(-100%);
482
+ }
483
+ to {
484
+ transform: translateX(100%);
485
+ }
486
+ }
487
+ @keyframes nish-flow-shimmer-v {
488
+ from {
489
+ transform: translateY(-100%);
490
+ }
491
+ to {
492
+ transform: translateY(100%);
493
+ }
494
+ }
495
+ @keyframes nish-flow-sweep {
496
+ from {
497
+ transform: scaleX(0);
498
+ opacity: 1;
499
+ }
500
+ to {
501
+ transform: scaleX(1);
502
+ opacity: 0;
503
+ }
504
+ }
505
+ @keyframes nish-flow-sweep-v {
506
+ from {
507
+ transform: scaleY(0);
508
+ opacity: 1;
509
+ }
510
+ to {
511
+ transform: scaleY(1);
512
+ opacity: 0;
513
+ }
514
+ }
515
+ @keyframes nish-flow-ticker-in {
516
+ from {
517
+ opacity: 0;
518
+ transform: translateY(70%);
519
+ }
520
+ to {
521
+ opacity: 1;
522
+ transform: none;
523
+ }
524
+ }
525
+ @keyframes nish-flow-ticker-out {
526
+ from {
527
+ opacity: 1;
528
+ transform: none;
529
+ }
530
+ to {
531
+ opacity: 0;
532
+ transform: translateY(-70%);
533
+ }
534
+ }
535
+ @keyframes nish-flow-ring {
536
+ to {
537
+ --nish-flow-angle: 360deg;
538
+ }
539
+ }
540
+ @keyframes nish-flow-glow {
541
+ 0%,
542
+ 100% {
543
+ opacity: 0.25;
544
+ }
545
+ 50% {
546
+ opacity: 1;
547
+ }
548
+ }
549
+
550
+ /* --- FlowSteps ------------------------------------------------------------------ */
551
+ .nish-flow-steps-box {
552
+ container-type: inline-size;
553
+ min-width: 0;
554
+ }
555
+ .nish-flow-steps {
556
+ display: flex;
557
+ flex-direction: column;
558
+ margin: 0;
559
+ padding: 0;
560
+ list-style: none;
561
+ }
562
+ .nish-flow-step {
563
+ position: relative;
564
+ display: flex;
565
+ align-items: flex-start;
566
+ gap: 0.75rem;
567
+ min-height: 3rem;
568
+ }
569
+ .nish-flow-step:last-child {
570
+ min-height: 2.75rem;
571
+ }
572
+ .nish-flow-node {
573
+ position: relative;
574
+ flex: none;
575
+ }
576
+ .nish-flow-text {
577
+ display: flex;
578
+ min-width: 0;
579
+ flex-direction: column;
580
+ padding-top: 0.25rem;
581
+ overflow-wrap: anywhere;
582
+ }
583
+ .nish-flow-conn {
584
+ position: absolute;
585
+ top: 2rem;
586
+ bottom: 0.25rem;
587
+ inset-inline-start: calc(0.875rem - 1px);
588
+ width: 2px;
589
+ overflow: hidden;
590
+ border-radius: 1px;
591
+ background-color: var(--nish-line);
592
+ }
593
+ .nish-flow-fill,
594
+ .nish-flow-shimmer,
595
+ .nish-flow-sweep {
596
+ position: absolute;
597
+ inset: 0;
598
+ }
599
+ .nish-flow-fill {
600
+ background-color: var(--nish-ok-fill);
601
+ transform-origin: top;
602
+ transform: scaleY(0);
603
+ }
604
+ .nish-flow-conn[data-on='true'] .nish-flow-fill {
605
+ transform: scaleY(1);
606
+ }
607
+ .nish-flow-shimmer {
608
+ display: none;
609
+ background: linear-gradient(180deg, transparent, var(--nish-accent), transparent);
610
+ }
611
+ .nish-flow-sweep {
612
+ display: none;
613
+ transform-origin: top;
614
+ background: linear-gradient(180deg, var(--nish-accent), var(--nish-ok-fill));
615
+ }
616
+ .nish-flow-arc,
617
+ .nish-flow-ripple {
618
+ display: none;
619
+ }
620
+ .nish-flow-arc {
621
+ position: absolute;
622
+ inset: 0;
623
+ pointer-events: none;
624
+ }
625
+ .nish-flow-ripple {
626
+ position: absolute;
627
+ inset: 0;
628
+ border-radius: 9999px;
629
+ border: 1px solid var(--nish-accent);
630
+ pointer-events: none;
631
+ }
632
+ .nish-flow-check path {
633
+ stroke-dasharray: 1;
634
+ stroke-dashoffset: 0;
635
+ }
636
+
637
+ .nish-flow-steps[data-orient='horizontal'] {
638
+ flex-direction: row;
639
+ }
640
+ .nish-flow-steps[data-orient='horizontal'] .nish-flow-step {
641
+ min-width: 0;
642
+ min-height: 0;
643
+ flex: 1 1 0;
644
+ flex-direction: column;
645
+ align-items: center;
646
+ gap: 0.5rem;
647
+ padding: 0 0.25rem;
648
+ text-align: center;
649
+ }
650
+ .nish-flow-steps[data-orient='horizontal'] .nish-flow-text {
651
+ align-items: center;
652
+ padding-top: 0;
653
+ }
654
+ .nish-flow-steps[data-orient='horizontal'] .nish-flow-label {
655
+ display: -webkit-box;
656
+ overflow: hidden;
657
+ -webkit-box-orient: vertical;
658
+ -webkit-line-clamp: 2;
659
+ line-clamp: 2;
660
+ }
661
+ .nish-flow-steps[data-orient='horizontal'] .nish-flow-conn {
662
+ top: calc(0.875rem - 1px);
663
+ inset-inline-end: calc(-50% + 1.125rem);
664
+ bottom: auto;
665
+ inset-inline-start: calc(50% + 1.125rem);
666
+ width: auto;
667
+ height: 2px;
668
+ }
669
+ .nish-flow-steps[data-orient='horizontal'] .nish-flow-fill {
670
+ transform-origin: left;
671
+ transform: scaleX(0);
672
+ }
673
+ .nish-flow-steps[data-orient='horizontal'] .nish-flow-conn[data-on='true'] .nish-flow-fill {
674
+ transform: scaleX(1);
675
+ }
676
+ .nish-flow-steps[data-orient='horizontal'] .nish-flow-shimmer {
677
+ background: linear-gradient(90deg, transparent, var(--nish-accent), transparent);
678
+ }
679
+ .nish-flow-steps[data-orient='horizontal'] .nish-flow-sweep {
680
+ transform-origin: left;
681
+ background: linear-gradient(90deg, var(--nish-accent), var(--nish-ok-fill));
682
+ }
683
+ @container (min-width: 640px) {
684
+ .nish-flow-steps[data-orient='auto'] {
685
+ flex-direction: row;
686
+ }
687
+ .nish-flow-steps[data-orient='auto'] .nish-flow-step {
688
+ min-width: 0;
689
+ min-height: 0;
690
+ flex: 1 1 0;
691
+ flex-direction: column;
692
+ align-items: center;
693
+ gap: 0.5rem;
694
+ padding: 0 0.25rem;
695
+ text-align: center;
696
+ }
697
+ .nish-flow-steps[data-orient='auto'] .nish-flow-text {
698
+ align-items: center;
699
+ padding-top: 0;
700
+ }
701
+ .nish-flow-steps[data-orient='auto'] .nish-flow-label {
702
+ display: -webkit-box;
703
+ overflow: hidden;
704
+ -webkit-box-orient: vertical;
705
+ -webkit-line-clamp: 2;
706
+ line-clamp: 2;
707
+ }
708
+ .nish-flow-steps[data-orient='auto'] .nish-flow-conn {
709
+ top: calc(0.875rem - 1px);
710
+ inset-inline-end: calc(-50% + 1.125rem);
711
+ bottom: auto;
712
+ inset-inline-start: calc(50% + 1.125rem);
713
+ width: auto;
714
+ height: 2px;
715
+ }
716
+ .nish-flow-steps[data-orient='auto'] .nish-flow-fill {
717
+ transform-origin: left;
718
+ transform: scaleX(0);
719
+ }
720
+ .nish-flow-steps[data-orient='auto'] .nish-flow-conn[data-on='true'] .nish-flow-fill {
721
+ transform: scaleX(1);
722
+ }
723
+ .nish-flow-steps[data-orient='auto'] .nish-flow-shimmer {
724
+ background: linear-gradient(90deg, transparent, var(--nish-accent), transparent);
725
+ }
726
+ .nish-flow-steps[data-orient='auto'] .nish-flow-sweep {
727
+ transform-origin: left;
728
+ background: linear-gradient(90deg, var(--nish-accent), var(--nish-ok-fill));
729
+ }
730
+ }
731
+
732
+ /* --- AgentNode ------------------------------------------------------------------ */
733
+ .nish-flow-agent {
734
+ position: relative;
735
+ }
736
+ .nish-flow-agent[data-state='running'] {
737
+ border-color: var(--nish-accent);
738
+ }
739
+
740
+ /* --- WorkflowBoard -------------------------------------------------------------- */
741
+ .nish-flow-board-box {
742
+ container-type: inline-size;
743
+ min-width: 0;
744
+ }
745
+ .nish-flow-board {
746
+ display: grid;
747
+ gap: 0.75rem;
748
+ }
749
+ .nish-flow-phase {
750
+ position: relative;
751
+ min-width: 0;
752
+ }
753
+ .nish-flow-phase::after {
754
+ content: '';
755
+ position: absolute;
756
+ inset: -1px;
757
+ border-radius: inherit;
758
+ pointer-events: none;
759
+ opacity: 0;
760
+ }
761
+ .nish-flow-phase[data-state='active']::after {
762
+ opacity: 1;
763
+ box-shadow:
764
+ 0 0 0 1px var(--nish-accent),
765
+ 0 0 16px var(--nish-accent-soft);
766
+ }
767
+ .nish-flow-phase-conn {
768
+ display: none;
769
+ position: absolute;
770
+ top: 1.375rem;
771
+ inset-inline-start: 100%;
772
+ width: 1.5rem;
773
+ height: 12px;
774
+ margin-top: -6px;
775
+ color: var(--nish-line-strong);
776
+ }
777
+ .nish-flow-phase-conn[data-flow='true'] {
778
+ color: var(--nish-accent);
779
+ }
780
+ @container (min-width: 720px) {
781
+ .nish-flow-board {
782
+ grid-auto-columns: minmax(220px, 1fr);
783
+ grid-auto-flow: column;
784
+ gap: 1.5rem;
785
+ overflow-x: auto;
786
+ overscroll-behavior-x: contain;
787
+ padding: 0.25rem;
788
+ }
789
+ .nish-flow-phase-conn {
790
+ display: block;
791
+ }
792
+ }
793
+
794
+ /* --- ActivityFeed --------------------------------------------------------------- */
795
+ .nish-flow-feed {
796
+ margin: 0;
797
+ padding: 0;
798
+ list-style: none;
799
+ }
800
+ .nish-flow-feed-item {
801
+ position: relative;
802
+ display: grid;
803
+ grid-template-rows: 1fr;
804
+ }
805
+ .nish-flow-feed-item::before {
806
+ content: '';
807
+ position: absolute;
808
+ top: 0;
809
+ bottom: 0;
810
+ inset-inline-start: calc(0.25rem - 0.5px);
811
+ width: 1px;
812
+ background-color: var(--nish-line);
813
+ }
814
+ .nish-flow-feed-item:first-child::before {
815
+ top: 0.875rem;
816
+ }
817
+ .nish-flow-feed-item:last-child::before {
818
+ bottom: calc(100% - 0.875rem);
819
+ }
820
+ .nish-flow-feed-inner {
821
+ min-height: 0;
822
+ overflow: hidden;
823
+ }
824
+ .nish-flow-feed-row {
825
+ position: relative;
826
+ display: grid;
827
+ grid-template-columns: minmax(0, 1fr) auto;
828
+ gap: 0 0.75rem;
829
+ padding: 0.375rem 0.25rem 0.375rem 1.5rem;
830
+ border-radius: 0.375rem;
831
+ }
832
+ .nish-flow-feed-dot {
833
+ position: absolute;
834
+ top: 0.625rem;
835
+ inset-inline-start: 0;
836
+ width: 0.5rem;
837
+ height: 0.5rem;
838
+ border-radius: 9999px;
839
+ }
840
+
841
+ /* --- TickerText ----------------------------------------------------------------- */
842
+ .nish-flow-ticker {
843
+ display: grid;
844
+ min-width: 0;
845
+ overflow: hidden;
846
+ }
847
+ .nish-flow-ticker > span {
848
+ display: block;
849
+ grid-area: 1 / 1;
850
+ min-width: 0;
851
+ overflow: hidden;
852
+ text-overflow: ellipsis;
853
+ white-space: nowrap;
854
+ }
855
+
856
+ /* --- AnimatedList --------------------------------------------------------------- */
857
+ .nish-flow-item {
858
+ display: grid;
859
+ grid-template-rows: 1fr;
860
+ }
861
+ .nish-flow-item-inner {
862
+ min-height: 0;
863
+ min-width: 0;
864
+ }
865
+ .nish-flow-item[data-phase='exit'] {
866
+ pointer-events: none;
867
+ }
868
+ .nish-flow-item[data-phase='exit'] > .nish-flow-item-inner {
869
+ overflow: hidden;
870
+ }
871
+
872
+ @media (prefers-reduced-motion: no-preference) {
873
+ .nish-flow-rise {
874
+ animation: nish-rise-in 320ms var(--nish-ease-out) both;
875
+ animation-delay: var(--nish-flow-delay, 0ms);
876
+ }
877
+
878
+ /* FlowSteps */
879
+ .nish-flow-arc {
880
+ display: block;
881
+ animation: nish-flow-spin 1.1s linear infinite;
882
+ }
883
+ .nish-flow-ripple {
884
+ display: block;
885
+ animation: nish-flow-ripple 1.6s ease-out infinite;
886
+ }
887
+ .nish-flow-fill {
888
+ transition: transform 500ms var(--nish-ease-out);
889
+ }
890
+ .nish-flow-steps[data-sweep='true'] .nish-flow-fill {
891
+ transition-delay: var(--nish-flow-delay, 0ms);
892
+ }
893
+ .nish-flow-step[data-status='active'] > .nish-flow-conn > .nish-flow-shimmer {
894
+ display: block;
895
+ animation: nish-flow-shimmer-v 1.4s linear infinite;
896
+ }
897
+ .nish-flow-steps[data-sweep='true'] .nish-flow-sweep {
898
+ display: block;
899
+ opacity: 0;
900
+ animation: nish-flow-sweep-v 700ms ease-out both;
901
+ animation-delay: var(--nish-flow-delay, 0ms);
902
+ }
903
+ .nish-flow-node[data-fx='done'] {
904
+ animation: nish-flow-pop 320ms var(--nish-ease-out);
905
+ }
906
+ .nish-flow-node[data-fx='done'] .nish-flow-check path {
907
+ animation: nish-flow-draw 360ms ease-out both;
908
+ }
909
+ .nish-flow-node[data-fx='failed'] {
910
+ animation: nish-flow-shake 300ms ease-in-out;
911
+ }
912
+ .nish-flow-steps[data-orient='horizontal'] .nish-flow-step[data-status='active'] > .nish-flow-conn > .nish-flow-shimmer {
913
+ animation-name: nish-flow-shimmer;
914
+ }
915
+ .nish-flow-steps[data-orient='horizontal'] .nish-flow-sweep {
916
+ animation-name: nish-flow-sweep;
917
+ }
918
+ @container (min-width: 640px) {
919
+ .nish-flow-steps[data-orient='auto'] .nish-flow-step[data-status='active'] > .nish-flow-conn > .nish-flow-shimmer {
920
+ animation-name: nish-flow-shimmer;
921
+ }
922
+ .nish-flow-steps[data-orient='auto'] .nish-flow-sweep {
923
+ animation-name: nish-flow-sweep;
924
+ }
925
+ }
926
+
927
+ /* AgentNode: a comet of accent running round the border. */
928
+ .nish-flow-agent[data-state='running']::before {
929
+ content: '';
930
+ position: absolute;
931
+ inset: -1px;
932
+ padding: 1px;
933
+ border-radius: inherit;
934
+ pointer-events: none;
935
+ background: conic-gradient(from var(--nish-flow-angle), transparent 0deg, transparent 230deg, var(--nish-accent) 360deg);
936
+ -webkit-mask:
937
+ linear-gradient(#000 0 0) content-box,
938
+ linear-gradient(#000 0 0);
939
+ -webkit-mask-composite: xor;
940
+ mask:
941
+ linear-gradient(#000 0 0) content-box exclude,
942
+ linear-gradient(#000 0 0);
943
+ animation: nish-flow-ring 2.4s linear infinite;
944
+ }
945
+ .nish-flow-agent-spin {
946
+ animation: nish-flow-spin 0.9s linear infinite;
947
+ }
948
+ .nish-flow-agent[data-fx='done'] .nish-flow-agent-icon {
949
+ animation: nish-flow-pop 300ms var(--nish-ease-out);
950
+ }
951
+ .nish-flow-agent[data-fx='done'] .nish-flow-check path {
952
+ animation: nish-flow-draw 300ms ease-out both;
953
+ }
954
+ .nish-flow-agent[data-fx='failed'] {
955
+ animation: nish-flow-shake 300ms ease-in-out;
956
+ }
957
+
958
+ /* WorkflowBoard */
959
+ .nish-flow-phase[data-state='active']::after {
960
+ animation: nish-flow-glow 2s ease-in-out infinite;
961
+ }
962
+ .nish-flow-phase-conn[data-flow='true'] .nish-flow-dashline {
963
+ animation: nish-flow-dash 1s linear infinite;
964
+ }
965
+
966
+ /* ActivityFeed */
967
+ .nish-flow-feed-item[data-fresh='true'] {
968
+ animation: nish-flow-feed-in 320ms var(--nish-ease-out) both;
969
+ }
970
+ .nish-flow-feed-item[data-fresh='true'] .nish-flow-feed-row {
971
+ animation: nish-flow-flash 1.2s ease-out both;
972
+ }
973
+
974
+ /* TickerText */
975
+ .nish-flow-ticker-in {
976
+ animation: nish-flow-ticker-in 260ms var(--nish-ease-out) both;
977
+ }
978
+ .nish-flow-ticker-out {
979
+ animation: nish-flow-ticker-out 200ms ease-in both;
980
+ }
981
+
982
+ /* AnimatedList */
983
+ .nish-flow-item[data-phase='enter'] {
984
+ animation: nish-flow-enter 380ms ease-out both;
985
+ }
986
+ .nish-flow-item[data-phase='exit'] {
987
+ animation: nish-flow-exit var(--nish-flow-exit-ms, 420ms) ease-in both;
988
+ }
989
+ }
990
+
991
+ /* Markdown and rich text: <div class="nish-prose">…rendered HTML…</div>. Every rule
992
+ targets children through :where(), so a utility class on a child still wins. Sized
993
+ for UI text (sm); set font-size on the container to scale it all. */
994
+ .nish-prose {
995
+ color: var(--nish-hi2);
996
+ font-size: var(--nish-text-sm);
997
+ line-height: var(--nish-text-sm-lh);
998
+ overflow-wrap: anywhere;
999
+ }
1000
+ .nish-prose > :where(:first-child) {
1001
+ margin-top: 0;
1002
+ }
1003
+ .nish-prose > :where(:last-child) {
1004
+ margin-bottom: 0;
1005
+ }
1006
+ .nish-prose :where(p, ul, ol, blockquote, pre, table, hr, figure) {
1007
+ margin: 0.75em 0;
1008
+ }
1009
+ .nish-prose :where(h1, h2, h3, h4, h5, h6) {
1010
+ color: var(--nish-hi);
1011
+ font-weight: var(--nish-weight-semibold);
1012
+ letter-spacing: var(--nish-tracking-tight);
1013
+ line-height: 1.3;
1014
+ margin: 1.4em 0 0.5em;
1015
+ }
1016
+ .nish-prose :where(h1) {
1017
+ font-size: 1.6em;
1018
+ }
1019
+ .nish-prose :where(h2) {
1020
+ font-size: 1.35em;
1021
+ }
1022
+ .nish-prose :where(h3) {
1023
+ font-size: 1.15em;
1024
+ }
1025
+ .nish-prose :where(h4, h5, h6) {
1026
+ font-size: 1em;
1027
+ }
1028
+ .nish-prose :where(strong, b) {
1029
+ color: var(--nish-hi);
1030
+ font-weight: var(--nish-weight-semibold);
1031
+ }
1032
+ .nish-prose :where(a) {
1033
+ color: var(--nish-accent);
1034
+ text-decoration: underline;
1035
+ text-underline-offset: 2px;
1036
+ text-decoration-thickness: 1px;
1037
+ }
1038
+ .nish-prose :where(a:hover) {
1039
+ text-decoration-thickness: 2px;
1040
+ }
1041
+ .nish-prose :where(ul, ol) {
1042
+ padding-inline-start: 1.4em;
1043
+ }
1044
+ .nish-prose :where(ul) {
1045
+ list-style: disc;
1046
+ }
1047
+ .nish-prose :where(ol) {
1048
+ list-style: decimal;
1049
+ }
1050
+ .nish-prose :where(li) {
1051
+ margin: 0.25em 0;
1052
+ }
1053
+ .nish-prose :where(li)::marker {
1054
+ color: var(--nish-hi3);
1055
+ }
1056
+ .nish-prose :where(li > ul, li > ol) {
1057
+ margin: 0.25em 0;
1058
+ }
1059
+ /* GitHub-style task lists: <li><input type="checkbox" disabled> …</li>. */
1060
+ .nish-prose :where(ul:has(> li > input[type='checkbox'])) {
1061
+ list-style: none;
1062
+ padding-inline-start: 0.25em;
1063
+ }
1064
+ .nish-prose :where(li > input[type='checkbox']) {
1065
+ margin: 0 0.5em 0 0;
1066
+ vertical-align: -0.1em;
1067
+ accent-color: var(--nish-accent);
1068
+ }
1069
+ .nish-prose :where(blockquote) {
1070
+ padding-inline-start: 1em;
1071
+ border-inline-start: 3px solid var(--nish-line-strong);
1072
+ color: var(--nish-hi2);
1073
+ }
1074
+ .nish-prose :where(hr) {
1075
+ border: 0;
1076
+ border-top: 1px solid var(--nish-line);
1077
+ margin: 1.5em 0;
1078
+ }
1079
+ .nish-prose :where(code) {
1080
+ font-family: var(--nish-font-mono);
1081
+ font-size: 0.875em;
1082
+ padding: 0.1em 0.35em;
1083
+ border-radius: var(--nish-radius-xs);
1084
+ background: var(--nish-elevated);
1085
+ color: var(--nish-hi);
1086
+ }
1087
+ .nish-prose :where(pre) {
1088
+ padding: var(--nish-space-3) var(--nish-space-4);
1089
+ overflow-x: auto;
1090
+ border: 1px solid var(--nish-line);
1091
+ border-radius: var(--nish-radius-sm);
1092
+ background: var(--nish-elevated);
1093
+ line-height: 1.55;
1094
+ }
1095
+ .nish-prose :where(pre code) {
1096
+ padding: 0;
1097
+ background: none;
1098
+ font-size: 0.85em;
1099
+ overflow-wrap: normal;
1100
+ }
1101
+ .nish-prose :where(table) {
1102
+ width: 100%;
1103
+ border-collapse: collapse;
1104
+ display: block;
1105
+ overflow-x: auto;
1106
+ }
1107
+ .nish-prose :where(th, td) {
1108
+ padding: 0.4em 0.75em;
1109
+ border-bottom: 1px solid var(--nish-line);
1110
+ text-align: start;
1111
+ vertical-align: top;
1112
+ }
1113
+ .nish-prose :where(th) {
1114
+ color: var(--nish-hi);
1115
+ font-weight: var(--nish-weight-semibold);
1116
+ border-bottom-color: var(--nish-line-strong);
1117
+ }
1118
+ .nish-prose :where(img, video) {
1119
+ max-width: 100%;
1120
+ height: auto;
1121
+ border-radius: var(--nish-radius-sm);
1122
+ }
1123
+
1124
+ @media (prefers-reduced-motion: reduce) {
1125
+ *,
1126
+ *::before,
1127
+ *::after {
1128
+ animation-duration: 1ms !important;
1129
+ animation-iteration-count: 1 !important;
1130
+ transition-duration: 1ms !important;
1131
+ scroll-behavior: auto !important;
1132
+ }
1133
+ }
1134
+
1135
+ /* Spinners still signal "working" under reduced motion: they pulse instead of turning.
1136
+ Scoped to .nish-spinner, .nish-spin and [data-nish-spin]; Tailwind's .animate-spin
1137
+ utility is left alone, so a component that spins with it adds data-nish-spin (or
1138
+ motion-reduce:animate-pulse) to get the pulse. */
1139
+ @media (prefers-reduced-motion: reduce) {
1140
+ .nish-spin,
1141
+ [data-nish-spin],
1142
+ .nish-spinner {
1143
+ animation: nish-pulse 1.6s ease-in-out infinite !important;
1144
+ animation-iteration-count: infinite !important;
1145
+ animation-duration: 1.6s !important;
1146
+ }
1147
+ }
1148
+
1149
+ /* SystemCanvas (src/components/canvas.tsx). The viewport is the graph paper: its
1150
+ background position and size follow the pan and zoom (the component writes them directly, no inherited
1151
+ variables). Every rule that moves, loops or fades is
1152
+ inside prefers-reduced-motion: no-preference; under reduced motion the active look is
1153
+ static (hue border, solid edges). */
1154
+ .nish-canvas {
1155
+ --c: var(--nish-accent);
1156
+ --c-soft: var(--nish-accent-soft);
1157
+ position: relative;
1158
+ width: 100%;
1159
+ overflow: hidden;
1160
+ overflow: clip;
1161
+ touch-action: none;
1162
+ overscroll-behavior: contain;
1163
+ user-select: none;
1164
+ -webkit-user-select: none;
1165
+ cursor: grab;
1166
+ background-color: var(--nish-bg);
1167
+ background-image:
1168
+ linear-gradient(to right, color-mix(in srgb, var(--nish-line-strong) 38%, transparent) 1px, transparent 1px),
1169
+ linear-gradient(to bottom, color-mix(in srgb, var(--nish-line-strong) 38%, transparent) 1px, transparent 1px),
1170
+ linear-gradient(to right, color-mix(in srgb, var(--nish-line) 28%, transparent) 1px, transparent 1px),
1171
+ linear-gradient(to bottom, color-mix(in srgb, var(--nish-line) 28%, transparent) 1px, transparent 1px);
1172
+ /* Position and size are written directly by the component on every pan and zoom frame. */
1173
+ background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
1174
+ background-position: 0 0;
1175
+ }
1176
+ .nish-canvas[data-grid='major'] {
1177
+ background-image:
1178
+ linear-gradient(to right, color-mix(in srgb, var(--nish-line-strong) 38%, transparent) 1px, transparent 1px),
1179
+ linear-gradient(to bottom, color-mix(in srgb, var(--nish-line-strong) 38%, transparent) 1px, transparent 1px);
1180
+ }
1181
+ .nish-canvas[data-dragging='true'] {
1182
+ cursor: grabbing;
1183
+ }
1184
+ .nish-canvas:focus-visible {
1185
+ outline: 2px solid var(--nish-focus);
1186
+ outline-offset: -2px;
1187
+ }
1188
+ .nish-canvas-world {
1189
+ position: absolute;
1190
+ left: 0;
1191
+ top: 0;
1192
+ transform-origin: 0 0;
1193
+ will-change: transform;
1194
+ }
1195
+ .nish-canvas-coltitle {
1196
+ position: absolute;
1197
+ font-size: 12px;
1198
+ font-weight: var(--nish-weight-semibold);
1199
+ letter-spacing: 0.08em;
1200
+ text-transform: uppercase;
1201
+ color: var(--nish-hi3);
1202
+ white-space: nowrap;
1203
+ /* A pill, so lines pass behind the title instead of through it. */
1204
+ z-index: 1;
1205
+ padding: 2px 8px;
1206
+ border-radius: 999px;
1207
+ background: var(--nish-bg);
1208
+ }
1209
+
1210
+ /* Groups */
1211
+ .nish-canvas-group {
1212
+ position: absolute;
1213
+ z-index: 0;
1214
+ overflow: hidden;
1215
+ border-radius: 16px;
1216
+ border: 1px solid var(--nish-line);
1217
+ background:
1218
+ linear-gradient(to bottom, var(--c-soft), transparent 60%),
1219
+ var(--nish-surface);
1220
+ transition: border-color 300ms, box-shadow 300ms, opacity 200ms;
1221
+ }
1222
+ .nish-canvas-group[data-live] {
1223
+ border-color: var(--c);
1224
+ box-shadow: 0 0 22px color-mix(in srgb, var(--c) 28%, transparent);
1225
+ }
1226
+ .nish-canvas-group[data-selected],
1227
+ .nish-canvas-node[data-selected] {
1228
+ outline: 2px solid var(--nish-accent);
1229
+ outline-offset: 2px;
1230
+ }
1231
+ .nish-canvas-group[data-selected] {
1232
+ overflow: visible;
1233
+ }
1234
+ .nish-canvas-band {
1235
+ position: absolute;
1236
+ inset-inline-start: 0;
1237
+ inset-inline-end: 0;
1238
+ top: 0;
1239
+ height: 3px;
1240
+ background: var(--c);
1241
+ }
1242
+ .nish-canvas-head {
1243
+ display: flex;
1244
+ align-items: center;
1245
+ justify-content: space-between;
1246
+ gap: 8px;
1247
+ width: 100%;
1248
+ height: 52px;
1249
+ padding: 3px 16px 0;
1250
+ text-align: start;
1251
+ cursor: pointer;
1252
+ }
1253
+ .nish-canvas-headtext {
1254
+ display: flex;
1255
+ flex-direction: column;
1256
+ min-width: 0;
1257
+ }
1258
+ .nish-canvas-title {
1259
+ font-weight: var(--nish-weight-semibold);
1260
+ color: var(--nish-hi);
1261
+ line-height: 1.25;
1262
+ overflow: hidden;
1263
+ text-overflow: ellipsis;
1264
+ white-space: nowrap;
1265
+ }
1266
+ .nish-canvas-subtitle {
1267
+ font-size: 12px;
1268
+ color: var(--nish-hi3);
1269
+ line-height: 1.3;
1270
+ overflow: hidden;
1271
+ text-overflow: ellipsis;
1272
+ white-space: nowrap;
1273
+ }
1274
+ .nish-canvas-badge {
1275
+ flex-shrink: 0;
1276
+ }
1277
+
1278
+ /* Nodes */
1279
+ .nish-canvas-slot {
1280
+ position: absolute;
1281
+ z-index: 2;
1282
+ transition: opacity 200ms;
1283
+ }
1284
+ .nish-canvas-slot[data-dim] {
1285
+ opacity: 0.35;
1286
+ }
1287
+ .nish-canvas-slot[data-active] {
1288
+ z-index: 3;
1289
+ }
1290
+ .nish-canvas-node {
1291
+ position: relative;
1292
+ display: flex;
1293
+ align-items: center;
1294
+ gap: 8px;
1295
+ width: 100%;
1296
+ height: 100%;
1297
+ padding: 0 10px;
1298
+ text-align: start;
1299
+ cursor: pointer;
1300
+ border-radius: 12px;
1301
+ border: 1px solid var(--nish-line);
1302
+ background: var(--nish-bg);
1303
+ transition: border-color 400ms, box-shadow 600ms, background-color 300ms;
1304
+ }
1305
+ /* Afterglow of recent work, from the slot's heat values. :where keeps it under hover and active. */
1306
+ .nish-canvas-node:where([data-heat]) {
1307
+ border-color: var(--nish-canvas-heat-line, var(--nish-line));
1308
+ box-shadow: var(--nish-canvas-heat-glow, none);
1309
+ }
1310
+ .nish-canvas-node:hover {
1311
+ border-color: color-mix(in srgb, var(--c) 55%, var(--nish-line));
1312
+ }
1313
+ .nish-canvas-node[data-active] {
1314
+ border-color: var(--c);
1315
+ background: color-mix(in srgb, var(--c) 10%, var(--nish-bg));
1316
+ }
1317
+ .nish-canvas-icon {
1318
+ display: inline-flex;
1319
+ flex-shrink: 0;
1320
+ align-items: center;
1321
+ justify-content: center;
1322
+ width: 28px;
1323
+ height: 28px;
1324
+ border-radius: 8px;
1325
+ color: var(--c);
1326
+ background: var(--c-soft);
1327
+ }
1328
+ .nish-canvas-text {
1329
+ display: flex;
1330
+ flex-direction: column;
1331
+ min-width: 0;
1332
+ flex: 1;
1333
+ }
1334
+ .nish-canvas-label {
1335
+ font-size: 13px;
1336
+ font-weight: var(--nish-weight-medium);
1337
+ color: var(--nish-hi);
1338
+ line-height: 1.25;
1339
+ overflow: hidden;
1340
+ text-overflow: ellipsis;
1341
+ white-space: nowrap;
1342
+ }
1343
+ .nish-canvas-detail {
1344
+ font-size: 11px;
1345
+ color: var(--nish-hi3);
1346
+ line-height: 1.3;
1347
+ overflow: hidden;
1348
+ text-overflow: ellipsis;
1349
+ white-space: nowrap;
1350
+ }
1351
+ .nish-canvas-count {
1352
+ flex-shrink: 0;
1353
+ min-width: 18px;
1354
+ padding: 0 5px;
1355
+ border-radius: 9px;
1356
+ font-size: 11px;
1357
+ font-weight: var(--nish-weight-semibold);
1358
+ line-height: 18px;
1359
+ text-align: center;
1360
+ color: var(--nish-bg);
1361
+ background: var(--c);
1362
+ }
1363
+ .nish-canvas-live {
1364
+ position: absolute;
1365
+ top: -3px;
1366
+ inset-inline-end: -3px;
1367
+ width: 9px;
1368
+ height: 9px;
1369
+ border-radius: 50%;
1370
+ background: var(--c);
1371
+ box-shadow: 0 0 0 2px var(--nish-bg);
1372
+ }
1373
+ .nish-canvas-note {
1374
+ /* Takes the detail line's place in the text column, with or without a detail. */
1375
+ display: block;
1376
+ overflow: hidden;
1377
+ color: var(--c);
1378
+ font-size: 11px;
1379
+ line-height: 1.3;
1380
+ white-space: nowrap;
1381
+ text-overflow: ellipsis;
1382
+ }
1383
+
1384
+ /* Edges */
1385
+ .nish-canvas-edges,
1386
+ .nish-canvas-ports {
1387
+ position: absolute;
1388
+ z-index: 0;
1389
+ left: 0;
1390
+ top: 0;
1391
+ overflow: visible;
1392
+ pointer-events: none;
1393
+ }
1394
+ .nish-canvas-edge {
1395
+ transition: opacity 200ms;
1396
+ }
1397
+ .nish-canvas-edge-line {
1398
+ stroke: var(--nish-line-strong);
1399
+ stroke-width: 1.5;
1400
+ transition: stroke 400ms;
1401
+ }
1402
+ .nish-canvas-edge[data-line='dashed'] .nish-canvas-edge-line {
1403
+ stroke-dasharray: 6 5;
1404
+ }
1405
+ .nish-canvas-edge[data-line='dotted'] .nish-canvas-edge-line {
1406
+ stroke-dasharray: 0.5 6;
1407
+ stroke-linecap: round;
1408
+ stroke-width: 2.25;
1409
+ }
1410
+ .nish-canvas-edge[data-active] .nish-canvas-edge-line {
1411
+ stroke: var(--c);
1412
+ stroke-width: 2;
1413
+ }
1414
+ .nish-canvas-arrow {
1415
+ fill: var(--nish-line-strong);
1416
+ transition: fill 400ms;
1417
+ }
1418
+ .nish-canvas-edge[data-active] .nish-canvas-arrow {
1419
+ fill: var(--c);
1420
+ }
1421
+
1422
+ /* Focus: hover or selection lights its edges and the cards at their other ends. */
1423
+ .nish-canvas[data-focus] .nish-canvas-edge:not([data-hot]) {
1424
+ opacity: 0.1;
1425
+ }
1426
+ .nish-canvas[data-focus] .nish-canvas-edge[data-hot] .nish-canvas-edge-line {
1427
+ stroke: var(--c);
1428
+ stroke-width: 2.5;
1429
+ }
1430
+ .nish-canvas[data-focus] .nish-canvas-edge[data-hot] .nish-canvas-arrow {
1431
+ fill: var(--c);
1432
+ }
1433
+ .nish-canvas[data-focus] .nish-canvas-group:not([data-related]) {
1434
+ opacity: 0.5;
1435
+ }
1436
+
1437
+ /* Level of detail: zoomed out, the details go and the titles grow. */
1438
+ .nish-canvas[data-lod='far'] :is(.nish-canvas-detail, .nish-canvas-note, .nish-canvas-subtitle, .nish-canvas-badge) {
1439
+ visibility: hidden;
1440
+ }
1441
+ .nish-canvas[data-lod='far'] .nish-canvas-label {
1442
+ font-size: 19px;
1443
+ }
1444
+ .nish-canvas[data-lod='far'] .nish-canvas-title {
1445
+ font-size: 24px;
1446
+ }
1447
+ .nish-canvas[data-lod='far'] .nish-canvas-coltitle {
1448
+ font-size: 20px;
1449
+ }
1450
+ .nish-canvas[data-lod='far'] .nish-canvas-icon {
1451
+ transform: scale(1.25);
1452
+ }
1453
+ .nish-canvas-ports {
1454
+ /* Above the group borders, so each port dot sits on its card's edge. */
1455
+ z-index: 4;
1456
+ }
1457
+ .nish-canvas-port {
1458
+ fill: var(--nish-line-strong);
1459
+ transition: fill 400ms;
1460
+ }
1461
+ .nish-canvas-port[data-active] {
1462
+ fill: var(--c);
1463
+ }
1464
+ .nish-canvas-dot {
1465
+ display: none;
1466
+ fill: var(--c);
1467
+ }
1468
+ .nish-canvas-edge-label {
1469
+ font-size: 11px;
1470
+ fill: var(--nish-hi3);
1471
+ paint-order: stroke;
1472
+ stroke: var(--nish-bg);
1473
+ stroke-width: 4px;
1474
+ stroke-linejoin: round;
1475
+ }
1476
+
1477
+ /* Controls */
1478
+ .nish-canvas-controls {
1479
+ position: absolute;
1480
+ inset-inline-end: 12px;
1481
+ bottom: 12px;
1482
+ z-index: 5;
1483
+ display: flex;
1484
+ align-items: center;
1485
+ gap: 2px;
1486
+ padding: 2px 4px 2px 12px;
1487
+ border-radius: 14px;
1488
+ border: 1px solid var(--nish-line);
1489
+ background: var(--nish-surface);
1490
+ box-shadow: var(--nish-shadow-md, 0 4px 14px rgb(0 0 0 / 0.18));
1491
+ cursor: default;
1492
+ }
1493
+ .nish-canvas-zoom {
1494
+ min-width: 3ch;
1495
+ margin-inline-end: 4px;
1496
+ font-size: 12px;
1497
+ font-variant-numeric: tabular-nums;
1498
+ color: var(--nish-hi3);
1499
+ }
1500
+
1501
+ @keyframes nish-canvas-rise {
1502
+ from {
1503
+ opacity: 0;
1504
+ transform: translateY(14px) scale(0.97);
1505
+ }
1506
+ to {
1507
+ opacity: 1;
1508
+ transform: none;
1509
+ }
1510
+ }
1511
+ @keyframes nish-canvas-ring {
1512
+ from {
1513
+ opacity: 0.6;
1514
+ transform: scale(1);
1515
+ }
1516
+ to {
1517
+ opacity: 0;
1518
+ transform: scale(1.15);
1519
+ }
1520
+ }
1521
+ @keyframes nish-canvas-ping {
1522
+ 0% {
1523
+ transform: scale(0.96);
1524
+ }
1525
+ 50% {
1526
+ transform: scale(1.04);
1527
+ }
1528
+ 100% {
1529
+ transform: scale(1);
1530
+ }
1531
+ }
1532
+ @keyframes nish-canvas-glow {
1533
+ 0%,
1534
+ 100% {
1535
+ opacity: 0.3;
1536
+ }
1537
+ 50% {
1538
+ opacity: 1;
1539
+ }
1540
+ }
1541
+ @keyframes nish-canvas-travel {
1542
+ from {
1543
+ offset-distance: 0%;
1544
+ }
1545
+ to {
1546
+ offset-distance: 100%;
1547
+ }
1548
+ }
1549
+ @keyframes nish-canvas-live {
1550
+ 0%,
1551
+ 100% {
1552
+ transform: scale(1);
1553
+ }
1554
+ 50% {
1555
+ transform: scale(1.35);
1556
+ }
1557
+ }
1558
+
1559
+ @keyframes nish-canvas-fade {
1560
+ from {
1561
+ opacity: 0;
1562
+ }
1563
+ }
1564
+
1565
+ @media (prefers-reduced-motion: no-preference) {
1566
+ /* A new layout slides the cards to their places; data-relayout is on for a moment after the switch. */
1567
+ .nish-canvas[data-relayout] .nish-canvas-group {
1568
+ transition:
1569
+ border-color 300ms,
1570
+ box-shadow 300ms,
1571
+ opacity 200ms,
1572
+ left 450ms var(--nish-ease-out),
1573
+ top 450ms var(--nish-ease-out);
1574
+ }
1575
+ .nish-canvas[data-relayout] .nish-canvas-slot {
1576
+ transition:
1577
+ opacity 200ms,
1578
+ left 450ms var(--nish-ease-out),
1579
+ top 450ms var(--nish-ease-out);
1580
+ }
1581
+ .nish-canvas[data-relayout] :is(.nish-canvas-edges, .nish-canvas-ports) {
1582
+ animation: nish-canvas-fade 300ms var(--nish-ease-out) both;
1583
+ }
1584
+ .nish-canvas-group,
1585
+ .nish-canvas-slot {
1586
+ animation: nish-canvas-rise 420ms var(--nish-ease-out) backwards;
1587
+ animation-delay: var(--nish-canvas-delay, 0ms);
1588
+ }
1589
+ .nish-canvas-group[data-live]::before {
1590
+ content: '';
1591
+ position: absolute;
1592
+ inset: 0;
1593
+ border-radius: inherit;
1594
+ box-shadow: inset 0 0 26px color-mix(in srgb, var(--c) 45%, transparent);
1595
+ pointer-events: none;
1596
+ opacity: 0.3;
1597
+ animation: nish-canvas-glow 2.4s ease-in-out infinite;
1598
+ }
1599
+ .nish-canvas-node[data-active]::after {
1600
+ content: '';
1601
+ position: absolute;
1602
+ inset: -1px;
1603
+ border-radius: inherit;
1604
+ border: 2px solid var(--c);
1605
+ pointer-events: none;
1606
+ animation: nish-canvas-ring 1.6s ease-out infinite;
1607
+ }
1608
+ .nish-canvas-node[data-fx='ping'] {
1609
+ animation: nish-canvas-ping 400ms var(--nish-ease-out);
1610
+ }
1611
+ .nish-canvas-live {
1612
+ animation: nish-canvas-live 1.2s ease-in-out infinite;
1613
+ }
1614
+ .nish-canvas-edge[data-active] .nish-canvas-dot {
1615
+ display: block;
1616
+ offset-rotate: 0deg;
1617
+ animation: nish-canvas-travel 1.6s linear infinite;
1618
+ }
1619
+ }
1620
+
1621
+ /* Windows High Contrast and other forced-colors modes drop backgrounds and shadows, so
1622
+ state that is only drawn with them disappears. Attribute-driven state gets an outline,
1623
+ disabled controls get GrayText, and focus uses Highlight. The .nish-* components with
1624
+ their own background-only states are handled in components.css. */
1625
+ @media (forced-colors: active) {
1626
+ [aria-selected='true'],
1627
+ [aria-pressed='true'],
1628
+ [aria-current]:not([aria-current='false']),
1629
+ [role='radio'][aria-checked='true'],
1630
+ [role='tab'][aria-selected='true'] {
1631
+ outline: 2px solid Highlight;
1632
+ outline-offset: -2px;
1633
+ }
1634
+ [aria-disabled='true'],
1635
+ :disabled {
1636
+ color: GrayText;
1637
+ border-color: GrayText;
1638
+ }
1639
+ :focus-visible {
1640
+ outline: var(--nish-focus-width, 2px) solid Highlight;
1641
+ outline-offset: var(--nish-focus-offset, 2px);
1642
+ }
1643
+ .nish-flow-fill,
1644
+ .nish-flow-sweep {
1645
+ forced-color-adjust: none;
1646
+ background-color: Highlight;
1647
+ }
1648
+ .nish-flow-conn {
1649
+ forced-color-adjust: none;
1650
+ background-color: GrayText;
1651
+ }
1652
+ }
1653
+
1654
+ /* ThemeProvider sets data-nish-theme-switching on <html> for one frame while it swaps the
1655
+ theme, so the colors change at once instead of every element fading separately. */
1656
+ html[data-nish-theme-switching] *,
1657
+ html[data-nish-theme-switching] *::before,
1658
+ html[data-nish-theme-switching] *::after {
1659
+ transition: none !important;
1660
+ }
1661
+
1662
+ /* Print: always the light theme on white paper, whatever theme is active on screen.
1663
+ The values mirror THEMES.light in src/tokens.mjs; !important because the theme blocks
1664
+ in tokens.css are unlayered and would otherwise beat this layer. */
1665
+ @media print {
1666
+ :root,
1667
+ [data-theme] {
1668
+ color-scheme: light !important;
1669
+ --nish-bg: #f7f6f3 !important;
1670
+ --nish-surface: #ffffff !important;
1671
+ --nish-elevated: #f1f0ec !important;
1672
+ --nish-overlay: #e6e4de !important;
1673
+ --nish-line: #e2e0da !important;
1674
+ --nish-line-strong: #c9c6bd !important;
1675
+ --nish-line-control: #8a8881 !important;
1676
+ --nish-hi: #17171c !important;
1677
+ --nish-hi2: #4f515c !important;
1678
+ --nish-hi3: #626470 !important;
1679
+ --nish-ghost: #8a8c98 !important;
1680
+ --nish-accent: #4338ca !important;
1681
+ --nish-accent2: #7e22ce !important;
1682
+ --nish-on-accent: #ffffff !important;
1683
+ --nish-on-accent2: #ffffff !important;
1684
+ --nish-on-ok: #0a0a0c !important;
1685
+ --nish-on-loss: #ffffff !important;
1686
+ --nish-on-warn: #0a0a0c !important;
1687
+ --nish-on-info: #0a0a0c !important;
1688
+ --nish-ok: #065f46 !important;
1689
+ --nish-loss: #a91b1b !important;
1690
+ --nish-warn: #92400e !important;
1691
+ --nish-info: #075985 !important;
1692
+ --nish-ok-fill: #059669 !important;
1693
+ --nish-loss-fill: #dc2626 !important;
1694
+ --nish-warn-fill: #c96d06 !important;
1695
+ --nish-info-fill: #0284c7 !important;
1696
+ --nish-scrim: #17171c !important;
1697
+ --nish-invert-bg: #17171c !important;
1698
+ --nish-invert-text: #f7f6f3 !important;
1699
+ --nish-chart-1: #6366f1 !important;
1700
+ --nish-chart-2: #059669 !important;
1701
+ --nish-chart-3: #c96d06 !important;
1702
+ --nish-chart-4: #f43f5e !important;
1703
+ --nish-chart-5: #0284c7 !important;
1704
+ --nish-chart-6: #a855f7 !important;
1705
+ --nish-chart-7: #ea580c !important;
1706
+ --nish-chart-8: #5a910c !important;
1707
+ --nish-emerald: #046d4f !important;
1708
+ --nish-indigo: #4e45e3 !important;
1709
+ --nish-amber: #9b4708 !important;
1710
+ --nish-lime: #41690d !important;
1711
+ --nish-rose: #b8113a !important;
1712
+ --nish-sky: #036499 !important;
1713
+ --nish-violet: #7e22ce !important;
1714
+ --nish-teal: #0e6b64 !important;
1715
+ }
1716
+ html,
1717
+ body {
1718
+ background: #fff !important;
1719
+ color: #000 !important;
1720
+ }
1721
+ *,
1722
+ *::before,
1723
+ *::after {
1724
+ box-shadow: none !important;
1725
+ text-shadow: none !important;
1726
+ }
1727
+ [data-nish-print='hide'] {
1728
+ display: none !important;
1729
+ }
1730
+ /* Fixed and sticky bars would repeat or cover content on every page. [data-nish-bar] is
1731
+ the hook for bars built from utilities (sticky, fixed); components.css lists the
1732
+ .nish-* bars. */
1733
+ [data-nish-bar] {
1734
+ position: static !important;
1735
+ }
1736
+ .nish-skip-link {
1737
+ display: none !important;
1738
+ }
1739
+ }
1740
+
1741
+ /* Right-to-left: the places that still point a physical way. Horizontal step connectors
1742
+ fill from the start edge, and the scroll fade mask flips with the scroller. */
1743
+ .nish-flow-steps[data-orient='horizontal']:dir(rtl) .nish-flow-fill,
1744
+ .nish-flow-steps[data-orient='horizontal']:dir(rtl) .nish-flow-sweep {
1745
+ transform-origin: right;
1746
+ }
1747
+ @container (min-width: 640px) {
1748
+ .nish-flow-steps[data-orient='auto']:dir(rtl) .nish-flow-fill,
1749
+ .nish-flow-steps[data-orient='auto']:dir(rtl) .nish-flow-sweep {
1750
+ transform-origin: right;
1751
+ }
1752
+ }
1753
+ .nish-scroll-fade:dir(rtl) {
1754
+ mask-image: linear-gradient(to left, var(--nish-fade-start), #000 24px, #000 calc(100% - 24px), var(--nish-fade-end));
1755
+ -webkit-mask-image: linear-gradient(to left, var(--nish-fade-start), #000 24px, #000 calc(100% - 24px), var(--nish-fade-end));
1756
+ }
1757
+