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