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
package/dist/base.css CHANGED
@@ -1,172 +1,189 @@
1
1
  /* Page-level defaults every nish.software site shares. Plain CSS so static pages can
2
2
  link it; Tailwind apps get it through tailwind.css inside the base layer, so any
3
- utility class still wins. */
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). */
4
6
 
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
- }
7
+ @layer nish.base {
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
+ }
15
18
 
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) {
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. */
25
22
  :root {
26
- --nish-page-gutter: 1.5rem;
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));
27
26
  }
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;
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)));
34
65
  }
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
66
 
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
- }
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
+ }
71
74
 
72
- /* Numbers in tables line up as columns without per-cell classes. */
73
- table,
74
- .nish-tabular {
75
- font-variant-numeric: tabular-nums;
76
- }
75
+ /* Numbers in tables line up as columns without per-cell classes. */
76
+ table,
77
+ .nish-tabular {
78
+ font-variant-numeric: tabular-nums;
79
+ }
77
80
 
78
- ::selection {
79
- background: color-mix(in srgb, var(--nish-accent) 30%, transparent);
80
- }
81
+ ::selection {
82
+ background: color-mix(in srgb, var(--nish-accent) 30%, transparent);
83
+ }
81
84
 
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
- }
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
+ }
88
91
 
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
- }
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
+ }
110
113
 
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
- }
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
+ }
134
137
 
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 {
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'] {
165
182
  min-width: var(--nish-tap-min, 44px);
166
183
  justify-content: center;
167
184
  padding-inline: 6px;
168
185
  }
169
- .nish-pill-link--compact .nish-pill-link-label {
186
+ .nish-pill-link--compact[data-compact='always'] .nish-pill-link-label {
170
187
  position: absolute;
171
188
  width: 1px;
172
189
  height: 1px;
@@ -174,1439 +191,1567 @@ table,
174
191
  clip-path: inset(50%);
175
192
  white-space: nowrap;
176
193
  }
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
194
 
267
- @keyframes nish-sheen {
268
- 100% {
269
- transform: translateX(100%);
270
- }
271
- }
272
- @keyframes nish-sheet-out {
273
- from {
274
- transform: translateY(0);
195
+ /* Scrolls, but draws no scrollbar: tab strips, chip rows, carousels. */
196
+ .scrollbar-none {
197
+ scrollbar-width: none;
198
+ -ms-overflow-style: none;
275
199
  }
276
- to {
277
- transform: translateY(100%);
200
+ .scrollbar-none::-webkit-scrollbar {
201
+ display: none;
278
202
  }
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);
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)));
291
213
  opacity: 0;
292
- }
293
- to {
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 {
294
231
  transform: none;
295
232
  opacity: 1;
233
+ pointer-events: auto;
296
234
  }
297
- }
298
- @keyframes nish-bar-in {
299
- from {
300
- transform: translateY(100%);
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;
301
246
  }
302
- to {
303
- transform: translateY(0);
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);
304
254
  }
305
- }
306
- /* Indeterminate progress: a 40% wide stripe sweeping across (the stripe is the element). */
307
- @keyframes nish-loading-bar {
308
- from {
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;
309
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;
310
268
  }
311
- to {
312
- transform: translateX(250%);
269
+
270
+ @keyframes nish-sheen {
271
+ 100% {
272
+ transform: translateX(100%);
273
+ }
313
274
  }
314
- }
315
- @keyframes nish-pulse {
316
- 50% {
317
- opacity: 0.35;
275
+ @keyframes nish-sheet-out {
276
+ from {
277
+ transform: translateY(0);
278
+ }
279
+ to {
280
+ transform: translateY(100%);
281
+ }
318
282
  }
319
- }
320
- @keyframes nish-fade-in {
321
- from {
322
- opacity: 0;
283
+ @keyframes nish-fade-out {
284
+ from {
285
+ opacity: 1;
286
+ }
287
+ to {
288
+ opacity: 0;
289
+ }
323
290
  }
324
- to {
325
- opacity: 1;
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
+ }
326
300
  }
327
- }
328
- @keyframes nish-rise-in {
329
- from {
330
- opacity: 0;
331
- transform: translateY(6px);
301
+ @keyframes nish-bar-in {
302
+ from {
303
+ transform: translateY(100%);
304
+ }
305
+ to {
306
+ transform: translateY(0);
307
+ }
332
308
  }
333
- to {
334
- opacity: 1;
335
- transform: translateY(0);
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
+ }
336
317
  }
337
- }
338
- @keyframes nish-sheet-in {
339
- from {
340
- transform: translateY(100%);
318
+ @keyframes nish-pulse {
319
+ 50% {
320
+ opacity: 0.35;
321
+ }
341
322
  }
342
- to {
343
- transform: translateY(0);
323
+ @keyframes nish-fade-in {
324
+ from {
325
+ opacity: 0;
326
+ }
327
+ to {
328
+ opacity: 1;
329
+ }
344
330
  }
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%);
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
+ }
350
340
  }
351
- to {
352
- transform: translateX(0);
341
+ @keyframes nish-sheet-in {
342
+ from {
343
+ transform: translateY(100%);
344
+ }
345
+ to {
346
+ transform: translateY(0);
347
+ }
353
348
  }
354
- }
355
- @keyframes nish-slide-in-left {
356
- from {
357
- transform: translateX(-100%);
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
+ }
358
357
  }
359
- to {
360
- transform: translateX(0);
358
+ @keyframes nish-slide-in-left {
359
+ from {
360
+ transform: translateX(-100%);
361
+ }
362
+ to {
363
+ transform: translateX(0);
364
+ }
361
365
  }
362
- }
363
366
 
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. */
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. */
368
371
 
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
- }
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
+ }
376
379
 
377
- @keyframes nish-flow-spin {
378
- to {
379
- transform: rotate(360deg);
380
+ @keyframes nish-flow-spin {
381
+ to {
382
+ transform: rotate(360deg);
383
+ }
380
384
  }
381
- }
382
- @keyframes nish-flow-ripple {
383
- from {
384
- transform: scale(1);
385
- opacity: 0.45;
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
+ }
386
394
  }
387
- to {
388
- transform: scale(1.9);
389
- opacity: 0;
395
+ @keyframes nish-flow-draw {
396
+ from {
397
+ stroke-dashoffset: 1;
398
+ }
399
+ to {
400
+ stroke-dashoffset: 0;
401
+ }
390
402
  }
391
- }
392
- @keyframes nish-flow-draw {
393
- from {
394
- stroke-dashoffset: 1;
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
+ }
395
413
  }
396
- to {
397
- stroke-dashoffset: 0;
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
+ }
398
431
  }
399
- }
400
- @keyframes nish-flow-pop {
401
- 0% {
402
- transform: scale(0.7);
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
+ }
403
441
  }
404
- 60% {
405
- transform: scale(1.12);
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
+ }
406
453
  }
407
- 100% {
408
- transform: scale(1);
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
+ }
409
465
  }
410
- }
411
- @keyframes nish-flow-shake {
412
- 0%,
413
- 100% {
414
- transform: translateX(0);
466
+ @keyframes nish-flow-flash {
467
+ from {
468
+ background-color: var(--nish-accent-soft);
469
+ }
470
+ to {
471
+ background-color: transparent;
472
+ }
415
473
  }
416
- 20% {
417
- transform: translateX(-4px);
474
+ @keyframes nish-flow-dash {
475
+ to {
476
+ stroke-dashoffset: -6;
477
+ }
418
478
  }
419
- 40% {
420
- transform: translateX(4px);
479
+ @keyframes nish-flow-shimmer {
480
+ from {
481
+ transform: translateX(-100%);
482
+ }
483
+ to {
484
+ transform: translateX(100%);
485
+ }
421
486
  }
422
- 60% {
423
- transform: translateX(-3px);
487
+ @keyframes nish-flow-shimmer-v {
488
+ from {
489
+ transform: translateY(-100%);
490
+ }
491
+ to {
492
+ transform: translateY(100%);
493
+ }
424
494
  }
425
- 80% {
426
- transform: translateX(2px);
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
+ }
427
504
  }
428
- }
429
- @keyframes nish-flow-enter {
430
- from {
431
- opacity: 0;
432
- transform: translateY(12px) scale(0.98);
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
+ }
433
514
  }
434
- to {
435
- opacity: 1;
436
- transform: none;
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
+ }
437
524
  }
438
- }
439
- @keyframes nish-flow-exit {
440
- from {
441
- opacity: 1;
442
- transform: none;
443
- grid-template-rows: 1fr;
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
+ }
444
534
  }
445
- to {
446
- opacity: 0;
447
- transform: translateY(-8px) scale(0.96);
448
- grid-template-rows: 0fr;
535
+ @keyframes nish-flow-ring {
536
+ to {
537
+ --nish-flow-angle: 360deg;
538
+ }
449
539
  }
450
- }
451
- @keyframes nish-flow-feed-in {
452
- from {
453
- opacity: 0;
454
- transform: translateY(-6px);
455
- grid-template-rows: 0fr;
540
+ @keyframes nish-flow-glow {
541
+ 0%,
542
+ 100% {
543
+ opacity: 0.25;
544
+ }
545
+ 50% {
546
+ opacity: 1;
547
+ }
456
548
  }
457
- to {
458
- opacity: 1;
459
- transform: none;
460
- grid-template-rows: 1fr;
549
+
550
+ /* --- FlowSteps ------------------------------------------------------------------ */
551
+ .nish-flow-steps-box {
552
+ container-type: inline-size;
553
+ min-width: 0;
461
554
  }
462
- }
463
- @keyframes nish-flow-flash {
464
- from {
465
- background-color: var(--nish-accent-soft);
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;
466
582
  }
467
- to {
468
- background-color: transparent;
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);
469
592
  }
470
- }
471
- @keyframes nish-flow-dash {
472
- to {
473
- stroke-dashoffset: -6;
593
+ .nish-flow-fill,
594
+ .nish-flow-shimmer,
595
+ .nish-flow-sweep {
596
+ position: absolute;
597
+ inset: 0;
474
598
  }
475
- }
476
- @keyframes nish-flow-shimmer {
477
- from {
478
- transform: translateX(-100%);
599
+ .nish-flow-fill {
600
+ background-color: var(--nish-ok-fill);
601
+ transform-origin: top;
602
+ transform: scaleY(0);
479
603
  }
480
- to {
481
- transform: translateX(100%);
604
+ .nish-flow-conn[data-on='true'] .nish-flow-fill {
605
+ transform: scaleY(1);
482
606
  }
483
- }
484
- @keyframes nish-flow-shimmer-v {
485
- from {
486
- transform: translateY(-100%);
607
+ .nish-flow-shimmer {
608
+ display: none;
609
+ background: linear-gradient(180deg, transparent, var(--nish-accent), transparent);
487
610
  }
488
- to {
489
- transform: translateY(100%);
611
+ .nish-flow-sweep {
612
+ display: none;
613
+ transform-origin: top;
614
+ background: linear-gradient(180deg, var(--nish-accent), var(--nish-ok-fill));
490
615
  }
491
- }
492
- @keyframes nish-flow-sweep {
493
- from {
494
- transform: scaleX(0);
495
- opacity: 1;
616
+ .nish-flow-arc,
617
+ .nish-flow-ripple {
618
+ display: none;
496
619
  }
497
- to {
498
- transform: scaleX(1);
499
- opacity: 0;
620
+ .nish-flow-arc {
621
+ position: absolute;
622
+ inset: 0;
623
+ pointer-events: none;
500
624
  }
501
- }
502
- @keyframes nish-flow-sweep-v {
503
- from {
504
- transform: scaleY(0);
505
- opacity: 1;
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;
506
631
  }
507
- to {
508
- transform: scaleY(1);
509
- opacity: 0;
632
+ .nish-flow-check path {
633
+ stroke-dasharray: 1;
634
+ stroke-dashoffset: 0;
510
635
  }
511
- }
512
- @keyframes nish-flow-ticker-in {
513
- from {
514
- opacity: 0;
515
- transform: translateY(70%);
636
+
637
+ .nish-flow-steps[data-orient='horizontal'] {
638
+ flex-direction: row;
516
639
  }
517
- to {
518
- opacity: 1;
519
- transform: none;
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;
520
649
  }
521
- }
522
- @keyframes nish-flow-ticker-out {
523
- from {
524
- opacity: 1;
525
- transform: none;
650
+ .nish-flow-steps[data-orient='horizontal'] .nish-flow-text {
651
+ align-items: center;
652
+ padding-top: 0;
526
653
  }
527
- to {
528
- opacity: 0;
529
- transform: translateY(-70%);
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;
530
660
  }
531
- }
532
- @keyframes nish-flow-ring {
533
- to {
534
- --nish-flow-angle: 360deg;
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;
535
668
  }
536
- }
537
- @keyframes nish-flow-glow {
538
- 0%,
539
- 100% {
540
- opacity: 0.25;
669
+ .nish-flow-steps[data-orient='horizontal'] .nish-flow-fill {
670
+ transform-origin: left;
671
+ transform: scaleX(0);
541
672
  }
542
- 50% {
543
- opacity: 1;
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
+ }
544
730
  }
545
- }
546
731
 
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
- }
732
+ /* --- AgentNode ------------------------------------------------------------------ */
733
+ .nish-flow-agent {
734
+ position: relative;
735
+ }
736
+ .nish-flow-agent[data-state='running'] {
737
+ border-color: var(--nish-accent);
738
+ }
633
739
 
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;
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;
683
748
  }
684
- .nish-flow-steps[data-orient='auto'] .nish-flow-step {
749
+ .nish-flow-phase {
750
+ position: relative;
685
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 {
686
821
  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;
822
+ overflow: hidden;
693
823
  }
694
- .nish-flow-steps[data-orient='auto'] .nish-flow-text {
695
- align-items: center;
696
- padding-top: 0;
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;
697
831
  }
698
- .nish-flow-steps[data-orient='auto'] .nish-flow-label {
699
- display: -webkit-box;
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;
700
845
  overflow: hidden;
701
- -webkit-box-orient: vertical;
702
- -webkit-line-clamp: 2;
703
- line-clamp: 2;
704
846
  }
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;
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;
712
854
  }
713
- .nish-flow-steps[data-orient='auto'] .nish-flow-fill {
714
- transform-origin: left;
715
- transform: scaleX(0);
855
+
856
+ /* --- AnimatedList --------------------------------------------------------------- */
857
+ .nish-flow-item {
858
+ display: grid;
859
+ grid-template-rows: 1fr;
716
860
  }
717
- .nish-flow-steps[data-orient='auto'] .nish-flow-conn[data-on='true'] .nish-flow-fill {
718
- transform: scaleX(1);
861
+ .nish-flow-item-inner {
862
+ min-height: 0;
863
+ min-width: 0;
719
864
  }
720
- .nish-flow-steps[data-orient='auto'] .nish-flow-shimmer {
721
- background: linear-gradient(90deg, transparent, var(--nish-accent), transparent);
865
+ .nish-flow-item[data-phase='exit'] {
866
+ pointer-events: none;
722
867
  }
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));
868
+ .nish-flow-item[data-phase='exit'] > .nish-flow-item-inner {
869
+ overflow: hidden;
726
870
  }
727
- }
728
871
 
729
- /* --- AgentNode ------------------------------------------------------------------ */
730
- .nish-flow-agent {
731
- position: relative;
732
- }
733
- .nish-flow-agent[data-state='running'] {
734
- border-color: var(--nish-accent);
735
- }
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
+ }
736
877
 
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;
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
+ }
785
989
  }
786
- .nish-flow-phase-conn {
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;
787
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);
788
1122
  }
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
1123
 
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
- }
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
+ }
852
1134
 
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
- }
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
+ }
868
1148
 
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);
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);
873
1208
  }
874
1209
 
875
- /* FlowSteps */
876
- .nish-flow-arc {
877
- display: block;
878
- animation: nish-flow-spin 1.1s linear infinite;
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;
879
1257
  }
880
- .nish-flow-ripple {
881
- display: block;
882
- animation: nish-flow-ripple 1.6s ease-out infinite;
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;
883
1265
  }
884
- .nish-flow-fill {
885
- transition: transform 500ms var(--nish-ease-out);
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;
886
1273
  }
887
- .nish-flow-steps[data-sweep='true'] .nish-flow-fill {
888
- transition-delay: var(--nish-flow-delay, 0ms);
1274
+ .nish-canvas-badge {
1275
+ flex-shrink: 0;
889
1276
  }
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;
1277
+
1278
+ /* Nodes */
1279
+ .nish-canvas-slot {
1280
+ position: absolute;
1281
+ z-index: 2;
1282
+ transition: opacity 200ms;
893
1283
  }
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);
1284
+ .nish-canvas-slot[data-dim] {
1285
+ opacity: 0.35;
899
1286
  }
900
- .nish-flow-node[data-fx='done'] {
901
- animation: nish-flow-pop 320ms var(--nish-ease-out);
1287
+ .nish-canvas-slot[data-active] {
1288
+ z-index: 3;
902
1289
  }
903
- .nish-flow-node[data-fx='done'] .nish-flow-check path {
904
- animation: nish-flow-draw 360ms ease-out both;
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;
905
1333
  }
906
- .nish-flow-node[data-fx='failed'] {
907
- animation: nish-flow-shake 300ms ease-in-out;
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;
908
1342
  }
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;
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;
911
1350
  }
912
- .nish-flow-steps[data-orient='horizontal'] .nish-flow-sweep {
913
- animation-name: nish-flow-sweep;
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);
914
1362
  }
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
- }
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;
922
1382
  }
923
1383
 
924
- /* AgentNode: a comet of accent running round the border. */
925
- .nish-flow-agent[data-state='running']::before {
926
- content: '';
1384
+ /* Edges */
1385
+ .nish-canvas-edges,
1386
+ .nish-canvas-ports {
927
1387
  position: absolute;
928
- inset: -1px;
929
- padding: 1px;
930
- border-radius: inherit;
1388
+ z-index: 0;
1389
+ left: 0;
1390
+ top: 0;
1391
+ overflow: visible;
931
1392
  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
1393
  }
942
- .nish-flow-agent-spin {
943
- animation: nish-flow-spin 0.9s linear infinite;
1394
+ .nish-canvas-edge {
1395
+ transition: opacity 200ms;
944
1396
  }
945
- .nish-flow-agent[data-fx='done'] .nish-flow-agent-icon {
946
- animation: nish-flow-pop 300ms var(--nish-ease-out);
1397
+ .nish-canvas-edge-line {
1398
+ stroke: var(--nish-line-strong);
1399
+ stroke-width: 1.5;
1400
+ transition: stroke 400ms;
947
1401
  }
948
- .nish-flow-agent[data-fx='done'] .nish-flow-check path {
949
- animation: nish-flow-draw 300ms ease-out both;
1402
+ .nish-canvas-edge[data-line='dashed'] .nish-canvas-edge-line {
1403
+ stroke-dasharray: 6 5;
950
1404
  }
951
- .nish-flow-agent[data-fx='failed'] {
952
- animation: nish-flow-shake 300ms ease-in-out;
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;
953
1409
  }
954
-
955
- /* WorkflowBoard */
956
- .nish-flow-phase[data-state='active']::after {
957
- animation: nish-flow-glow 2s ease-in-out infinite;
1410
+ .nish-canvas-edge[data-active] .nish-canvas-edge-line {
1411
+ stroke: var(--c);
1412
+ stroke-width: 2;
958
1413
  }
959
- .nish-flow-phase-conn[data-flow='true'] .nish-flow-dashline {
960
- animation: nish-flow-dash 1s linear infinite;
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);
961
1420
  }
962
1421
 
963
- /* ActivityFeed */
964
- .nish-flow-feed-item[data-fresh='true'] {
965
- animation: nish-flow-feed-in 320ms var(--nish-ease-out) both;
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;
966
1425
  }
967
- .nish-flow-feed-item[data-fresh='true'] .nish-flow-feed-row {
968
- animation: nish-flow-flash 1.2s ease-out both;
1426
+ .nish-canvas[data-focus] .nish-canvas-edge[data-hot] .nish-canvas-edge-line {
1427
+ stroke: var(--c);
1428
+ stroke-width: 2.5;
969
1429
  }
970
-
971
- /* TickerText */
972
- .nish-flow-ticker-in {
973
- animation: nish-flow-ticker-in 260ms var(--nish-ease-out) both;
1430
+ .nish-canvas[data-focus] .nish-canvas-edge[data-hot] .nish-canvas-arrow {
1431
+ fill: var(--c);
974
1432
  }
975
- .nish-flow-ticker-out {
976
- animation: nish-flow-ticker-out 200ms ease-in both;
1433
+ .nish-canvas[data-focus] .nish-canvas-group:not([data-related]) {
1434
+ opacity: 0.5;
977
1435
  }
978
1436
 
979
- /* AnimatedList */
980
- .nish-flow-item[data-phase='enter'] {
981
- animation: nish-flow-enter 380ms ease-out both;
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;
982
1440
  }
983
- .nish-flow-item[data-phase='exit'] {
984
- animation: nish-flow-exit var(--nish-flow-exit-ms, 420ms) ease-in both;
1441
+ .nish-canvas[data-lod='far'] .nish-canvas-label {
1442
+ font-size: 19px;
985
1443
  }
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;
1444
+ .nish-canvas[data-lod='far'] .nish-canvas-title {
1445
+ font-size: 24px;
1129
1446
  }
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;
1447
+ .nish-canvas[data-lod='far'] .nish-canvas-coltitle {
1448
+ font-size: 20px;
1139
1449
  }
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);
1450
+ .nish-canvas[data-lod='far'] .nish-canvas-icon {
1451
+ transform: scale(1.25);
1498
1452
  }
1499
- to {
1500
- opacity: 1;
1501
- transform: none;
1453
+ .nish-canvas-ports {
1454
+ /* Above the group borders, so each port dot sits on its card's edge. */
1455
+ z-index: 4;
1502
1456
  }
1503
- }
1504
- @keyframes nish-canvas-ring {
1505
- from {
1506
- opacity: 0.6;
1507
- transform: scale(1);
1457
+ .nish-canvas-port {
1458
+ fill: var(--nish-line-strong);
1459
+ transition: fill 400ms;
1508
1460
  }
1509
- to {
1510
- opacity: 0;
1511
- transform: scale(1.15);
1461
+ .nish-canvas-port[data-active] {
1462
+ fill: var(--c);
1512
1463
  }
1513
- }
1514
- @keyframes nish-canvas-ping {
1515
- 0% {
1516
- transform: scale(0.96);
1464
+ .nish-canvas-dot {
1465
+ display: none;
1466
+ fill: var(--c);
1517
1467
  }
1518
- 50% {
1519
- transform: scale(1.04);
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;
1520
1475
  }
1521
- 100% {
1522
- transform: scale(1);
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);
1523
1499
  }
1524
- }
1525
- @keyframes nish-canvas-glow {
1526
- 0%,
1527
- 100% {
1528
- opacity: 0.3;
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
+ }
1529
1510
  }
1530
- 50% {
1531
- opacity: 1;
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
+ }
1532
1520
  }
1533
- }
1534
- @keyframes nish-canvas-travel {
1535
- from {
1536
- offset-distance: 0%;
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
+ }
1537
1531
  }
1538
- to {
1539
- offset-distance: 100%;
1532
+ @keyframes nish-canvas-glow {
1533
+ 0%,
1534
+ 100% {
1535
+ opacity: 0.3;
1536
+ }
1537
+ 50% {
1538
+ opacity: 1;
1539
+ }
1540
1540
  }
1541
- }
1542
- @keyframes nish-canvas-live {
1543
- 0%,
1544
- 100% {
1545
- transform: scale(1);
1541
+ @keyframes nish-canvas-travel {
1542
+ from {
1543
+ offset-distance: 0%;
1544
+ }
1545
+ to {
1546
+ offset-distance: 100%;
1547
+ }
1546
1548
  }
1547
- 50% {
1548
- transform: scale(1.35);
1549
+ @keyframes nish-canvas-live {
1550
+ 0%,
1551
+ 100% {
1552
+ transform: scale(1);
1553
+ }
1554
+ 50% {
1555
+ transform: scale(1.35);
1556
+ }
1549
1557
  }
1550
- }
1551
1558
 
1552
- @keyframes nish-canvas-fade {
1553
- from {
1554
- opacity: 0;
1559
+ @keyframes nish-canvas-fade {
1560
+ from {
1561
+ opacity: 0;
1562
+ }
1555
1563
  }
1556
- }
1557
1564
 
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);
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
+ }
1581
1619
  }
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;
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
+ }
1591
1652
  }
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;
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;
1600
1660
  }
1601
- .nish-canvas-node[data-fx='ping'] {
1602
- animation: nish-canvas-ping 400ms var(--nish-ease-out);
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
+ }
1603
1739
  }
1604
- .nish-canvas-live {
1605
- animation: nish-canvas-live 1.2s ease-in-out infinite;
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;
1606
1746
  }
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;
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));
1611
1756
  }
1612
1757
  }