reifyui 0.12.0 → 0.13.1

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 (82) hide show
  1. package/README.md +29 -0
  2. package/dist/chart.js +2 -0
  3. package/dist/chart.js.map +1 -1
  4. package/dist/chunk-EL2DHWOH.js +1710 -0
  5. package/dist/chunk-EL2DHWOH.js.map +1 -0
  6. package/dist/chunk-J633KV57.js +41 -0
  7. package/dist/chunk-J633KV57.js.map +1 -0
  8. package/dist/chunk-J7SECRIG.js +295 -0
  9. package/dist/chunk-J7SECRIG.js.map +1 -0
  10. package/dist/chunk-PIRPLH2Z.js +231 -0
  11. package/dist/chunk-PIRPLH2Z.js.map +1 -0
  12. package/dist/chunk-PZ5AY32C.js +10 -0
  13. package/dist/chunk-PZ5AY32C.js.map +1 -0
  14. package/dist/chunk-UKG4Z6QK.js +130 -0
  15. package/dist/chunk-UKG4Z6QK.js.map +1 -0
  16. package/dist/chunk-ZYWE47EO.js +19 -0
  17. package/dist/chunk-ZYWE47EO.js.map +1 -0
  18. package/dist/collab.cjs +169 -0
  19. package/dist/collab.cjs.map +1 -0
  20. package/dist/collab.d.ts +30 -0
  21. package/dist/collab.js +18 -0
  22. package/dist/collab.js.map +1 -0
  23. package/dist/graph.cjs +2244 -0
  24. package/dist/graph.cjs.map +1 -0
  25. package/dist/graph.d.ts +41 -0
  26. package/dist/graph.js +1870 -0
  27. package/dist/graph.js.map +1 -0
  28. package/dist/harness.js +1 -0
  29. package/dist/harness.js.map +1 -1
  30. package/dist/index.cjs +1699 -817
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.ts +3 -0
  33. package/dist/index.js +680 -1769
  34. package/dist/index.js.map +1 -1
  35. package/dist/sheet-doc.cjs +235 -0
  36. package/dist/sheet-doc.cjs.map +1 -0
  37. package/dist/sheet-doc.d.ts +16 -0
  38. package/dist/sheet-doc.js +20 -0
  39. package/dist/sheet-doc.js.map +1 -0
  40. package/dist/sheet.cjs +2322 -0
  41. package/dist/sheet.cjs.map +1 -0
  42. package/dist/sheet.d.ts +23 -0
  43. package/dist/sheet.js +237 -0
  44. package/dist/sheet.js.map +1 -0
  45. package/dist/slides.js +2 -0
  46. package/dist/slides.js.map +1 -1
  47. package/package.json +34 -2
  48. package/src/auth/client.js +4 -2
  49. package/src/collab/colors.js +18 -0
  50. package/src/collab/index.d.ts +30 -0
  51. package/src/collab/index.js +8 -0
  52. package/src/collab/keepAlive.js +34 -0
  53. package/src/collab/useLiveDoc.js +76 -0
  54. package/src/components/CascadeMenu.jsx +9 -3
  55. package/src/components/Composer.jsx +37 -3
  56. package/src/components/resizable.jsx +82 -12
  57. package/src/graph/ConnectPane.jsx +634 -0
  58. package/src/graph/ConnectToolDetail.jsx +565 -0
  59. package/src/graph/LogsPane.jsx +328 -0
  60. package/src/graph/Skeleton.jsx +13 -0
  61. package/src/graph/draft.js +108 -0
  62. package/src/graph/format.js +37 -0
  63. package/src/graph/index.d.ts +41 -0
  64. package/src/graph/index.js +14 -0
  65. package/src/graph/useGraphCollab.js +299 -0
  66. package/src/graph/vgraph.js +215 -0
  67. package/src/index.d.ts +3 -0
  68. package/src/index.js +4 -1
  69. package/src/mention/MentionInput.jsx +420 -0
  70. package/src/mention/mentionModel.js +177 -0
  71. package/src/sheet/RunStrip.jsx +57 -0
  72. package/src/sheet/SheetGrid.jsx +448 -423
  73. package/src/sheet/doc.d.ts +16 -0
  74. package/src/sheet/index.d.ts +23 -0
  75. package/src/sheet/index.js +10 -0
  76. package/src/sheet/sheetDoc.js +203 -0
  77. package/src/sheet/useSheetCollab.js +102 -0
  78. package/src/sheet/useSheetRun.js +80 -0
  79. package/styles/chat.css +2 -0
  80. package/styles/graph.css +395 -0
  81. package/styles/mention.css +79 -0
  82. package/styles/sheet.css +156 -112
package/styles/sheet.css CHANGED
@@ -1,74 +1,76 @@
1
- /* SheetGrid — shared spreadsheet grid styles. Product-neutral: every colour comes from a
2
- --uic-* token, so a host themes the grid by setting the same tokens the chat surface reads
3
- (styles/themes/light.css or dark.css, or your own layer).
4
-
5
- These used to be unprefixed (--brand, --line, --ink…), which no theme in this package defines
6
- — so an import without a token layer fell through to the inline fallbacks, and those disagreed
7
- with each other: 15 rules said --brand was emerald and 7 said teal. The result was a two-tone
8
- grid. One token, one fallback, and the fallbacks now match the library's own palette. */
1
+ @import './mention.css';
2
+ /* SheetGrid — shared spreadsheet grid styles (UI Core). Product-neutral;
3
+ uses --brand/--line/etc tokens so each host (Sheets, studio Spaces) themes
4
+ it with its own palette. */
9
5
  .shg { display: flex; flex-direction: column; height: 100%; min-height: 0; }
10
- .shg-scroll { flex: 1; min-height: 0; overflow: auto; }
6
+ .shg-scroll { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.28) transparent; }
7
+ /* The studio's thin scrollbar: a transparent track and a slim rounded thumb, both axes. */
8
+ .shg-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
9
+ .shg-scroll::-webkit-scrollbar-track { background: transparent; }
10
+ .shg-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.28); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
11
+ .shg-scroll::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.45); border: 2px solid transparent; background-clip: padding-box; }
12
+ .shg-scroll::-webkit-scrollbar-corner { background: transparent; }
11
13
  .shg-table { border-collapse: collapse; font-size: 13px; width: max-content; min-width: 100%; }
12
14
 
13
15
  .shg-table th, .shg-table td {
14
- border: 1px solid var(--uic-line, #DDDFE6);
16
+ border: 1px solid var(--line, #E5E7EB);
15
17
  padding: 0; height: 34px; box-sizing: border-box;
16
18
  }
17
19
  .shg-corner, .shg-rownum {
18
- background: var(--uic-surface-2, #F7F8FA);
19
- text-align: center; color: var(--uic-mute-2, #8E9199); font-variant-numeric: tabular-nums;
20
+ background: var(--surface-2, #FAFBFD);
21
+ text-align: center; color: var(--mute-2, #9CA3AF); font-variant-numeric: tabular-nums;
20
22
  position: sticky; left: 0; z-index: 3;
21
23
  }
22
24
  .shg-corner { z-index: 6; }
23
- .shg-rownum span { font-size: 12.5px; }
24
- /* A 12x18 target for a destructive action was too small to hit deliberately and too small to
25
- read. It is a real button now, and the gutter is wide enough to hold it beside the number. */
25
+ .shg-rownum span { font-size: 11px; }
26
26
  .shg-rowdel {
27
- position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
28
- width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
29
- border: none; border-radius: 5px; background: transparent; color: var(--uic-mute-2, #8E9199);
30
- cursor: pointer; font-size: 17px; line-height: 1; opacity: 0; padding: 0;
27
+ position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
28
+ border: none; background: transparent; color: var(--mute-2, #9CA3AF);
29
+ cursor: pointer; font-size: 14px; line-height: 1; opacity: 0; padding: 2px;
31
30
  }
32
- .shg-rowdel:hover { background: var(--uic-fail-bg, #FEF2F2); color: var(--uic-fail-ink, #B91C1C); }
33
31
  .shg-table tr:hover .shg-rowdel { opacity: 1; }
34
32
 
35
- .shg-col { min-width: 180px; max-width: 420px; background: var(--uic-surface, #FFFFFF); position: sticky; top: 0; z-index: 4; }
36
- .shg-col-compute { background: var(--uic-brand-faint, #EFF3FF); }
33
+ .shg-col { min-width: 180px; max-width: 420px; background: var(--surface, #fff); position: sticky; top: 0; z-index: 4; }
34
+ .shg-col-compute { background: var(--brand-50, #ECFEFF); }
37
35
  .shg-col-h { padding: 6px 10px; }
38
36
  .shg-colhdr { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
37
+ /* A narrow column keeps its name: the caption goes first, then the Run label. */
38
+ .shg-colhdr.narrow .shg-coltype, .shg-colhdr.tight .shg-coltype { display: none; }
39
+ .shg-colhdr.tight .shg-colrun-label { display: none; }
40
+ .shg-colhdr.tight .shg-colrun { padding: 2px 6px; }
39
41
  .shg-colhdr-main { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
40
- .shg-colname { font-weight: 600; color: var(--uic-ink, #111317); cursor: default;
42
+ .shg-colname { font-weight: 600; color: var(--ink, #111827); cursor: default;
41
43
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
42
- .shg-colname-input { font-weight: 600; font-size: 13px; border: 1px solid var(--uic-brand, #285AFF);
44
+ .shg-colname-input { font-weight: 600; font-size: 13px; border: 1px solid var(--brand, #0E7490);
43
45
  border-radius: 4px; padding: 1px 4px; width: 150px; font-family: inherit; }
44
- .shg-coltype { font-size: 10px; color: var(--uic-mute, #5B5D66); text-transform: uppercase; letter-spacing: .03em; }
45
- .shg-coltype.compute { color: var(--uic-brand, #285AFF); font-weight: 600; }
46
+ .shg-coltype { font-size: 10px; color: var(--mute, #6B7280); text-transform: uppercase; letter-spacing: .03em; }
47
+ .shg-coltype.compute { color: var(--brand, #0E7490); font-weight: 600; }
46
48
  .shg-colhdr-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
47
49
  .shg-colrun {
48
- font-size: 11px; font-weight: 600; color: var(--uic-brand, #285AFF);
49
- background: var(--uic-surface, #FFFFFF); border: 1px solid var(--uic-brand-soft, #E1E9FF);
50
+ font-size: 11px; font-weight: 600; color: var(--brand, #0E7490);
51
+ background: var(--surface, #fff); border: 1px solid var(--brand-soft, #CFFAFE);
50
52
  border-radius: 6px; padding: 2px 8px; cursor: pointer; white-space: nowrap;
51
53
  }
52
- .shg-colrun:hover { background: var(--uic-brand-faint, #EFF3FF); }
54
+ .shg-colrun:hover { background: var(--brand-50, #ECFEFF); }
53
55
  .shg-coldel, .shg-add {
54
- border: none; background: transparent; color: var(--uic-mute-2, #8E9199);
55
- cursor: pointer; font-size: 17px; line-height: 1; border-radius: 5px;
56
- width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
56
+ border: none; background: transparent; color: var(--mute-2, #9CA3AF);
57
+ cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 5px; border-radius: 4px;
57
58
  }
58
- .shg-coldel:hover { background: var(--uic-fail-bg, #FEF2F2); color: var(--uic-fail-ink, #B91C1C); }
59
- .shg-add:hover { background: var(--uic-line-soft, #EFF1F4); color: var(--uic-ink, #111317); }
60
- .shg-add-col { width: auto; min-width: 44px; text-align: center; background: var(--uic-surface, #FFFFFF); position: sticky; top: 0; z-index: 4; }
59
+ .shg-coldel:hover { background: var(--hot-soft, #FEE4E4); color: #B91C1C; }
60
+ .shg-add:hover { background: var(--line-soft, #EFF1F4); color: var(--ink, #111827); }
61
+ .shg-add-col { width: auto; min-width: 40px; text-align: left; background: var(--surface, #fff); position: sticky; top: 0; z-index: 4; }
61
62
 
62
- .shg-cell { cursor: text; background: var(--uic-surface, #FFFFFF); }
63
+ .shg:focus { outline: none; }
64
+ .shg-cell { cursor: cell; background: var(--surface, #fff); user-select: none; }
65
+ .shg-cell.shg-sel { background: var(--brand-50, #ECFEFF); }
66
+ .shg-cell.shg-focus { background: var(--surface, #fff); }
67
+ .shg-cell input, .shg-cell textarea { user-select: text; cursor: text; }
68
+ .shg-ghost { font-style: italic; opacity: .9; white-space: pre-wrap; }
63
69
  .shg-cell-compute { cursor: default; }
64
- .shg-cell:hover { background: var(--uic-surface-2, #F7F8FA); }
65
- /* The cell is the constraint on its own value. This used to carry an inline max-width of the
66
- column width minus 20, or 400px where the column had no explicit width — a number nothing
67
- derived, which ellipsised a value long before its own cell ran out of room. */
68
- .shg-val { display: flex; align-items: flex-start; gap: 6px; padding: 6px 10px; height: 100%;
69
- width: 100%; min-width: 0; box-sizing: border-box; }
70
+ .shg-cell:hover { background: var(--surface-2, #FAFBFD); }
71
+ .shg-val { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 100%; }
70
72
  .shg-val-txt {
71
- flex: 1; min-width: 0; color: var(--uic-ink, #111317); align-self: flex-start;
73
+ flex: 1; min-width: 0; color: var(--ink, #111827);
72
74
  /* Wrap to the row's height; the last visible line ellipsizes. Rows at the
73
75
  default height clamp to one line (classic sheet behavior); taller rows
74
76
  show more lines. --shg-clamp is set per row from its height. */
@@ -77,47 +79,47 @@
77
79
  overflow: hidden; white-space: normal; word-break: break-word;
78
80
  line-height: 18px;
79
81
  }
80
- .shg-input { width: 100%; height: 100%; border: 2px solid var(--uic-brand, #285AFF); padding: 0 8px;
82
+ .shg-input { width: 100%; height: 100%; border: 2px solid var(--brand, #0E7490); padding: 0 8px;
81
83
  font-size: 13px; font-family: inherit; outline: none; box-sizing: border-box; }
82
84
  .shg-runcell {
83
- border: none; background: transparent; color: var(--uic-brand, #285AFF); cursor: pointer;
85
+ border: none; background: transparent; color: var(--brand, #0E7490); cursor: pointer;
84
86
  font-size: 10px; opacity: 0; flex-shrink: 0; padding: 2px 4px;
85
87
  }
86
88
  .shg-cell:hover .shg-runcell { opacity: 1; }
87
89
 
88
90
  /* Computed cell status tints + dot */
89
- .shg-cell-running { background: var(--uic-brand-faint, #EFF6FF); }
90
- .shg-cell-failed { background: var(--uic-fail-bg, #FEF2F2); }
91
+ .shg-cell-running { background: #EFF6FF; }
92
+ .shg-cell-failed { background: #FEF2F2; }
91
93
  .shg-cell-skipped { opacity: .6; }
92
- .shg-dot { width: 7px; height: 7px; border-radius: 999px; flex-shrink: 0; background: var(--uic-mute-2, #8E9199); }
93
- .shg-dot-running { background: var(--uic-brand, #2563EB); animation: shg-pulse 1s ease-in-out infinite; }
94
- .shg-dot-done { background: var(--uic-ok, #10B981); }
95
- .shg-dot-failed { background: var(--uic-fail-ink, #EF4444); }
96
- .shg-dot-skipped { background: var(--uic-mute-2, #CBD5E1); }
94
+ .shg-dot { width: 7px; height: 7px; border-radius: 999px; flex-shrink: 0; background: var(--mute-2, #9CA3AF); }
95
+ .shg-dot-running { background: #2563EB; animation: shg-pulse 1s ease-in-out infinite; }
96
+ .shg-dot-done { background: #10B981; }
97
+ .shg-dot-failed { background: #EF4444; }
98
+ .shg-dot-skipped { background: #CBD5E1; }
97
99
  @keyframes shg-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
98
100
 
99
101
  .shg-add-row {
100
102
  align-self: flex-start; margin: 8px; padding: 6px 14px; border-radius: 8px;
101
- border: 1px dashed var(--uic-line, #DDDFE6); background: var(--uic-surface, #FFFFFF);
102
- color: var(--uic-mute, #5B5D66); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
103
+ border: 1px dashed var(--line, #E5E7EB); background: var(--surface, #fff);
104
+ color: var(--mute, #6B7280); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
103
105
  }
104
- .shg-add-row:hover { border-color: var(--uic-brand, #285AFF); color: var(--uic-brand, #285AFF); }
106
+ .shg-add-row:hover { border-color: var(--brand, #0E7490); color: var(--brand, #0E7490); }
105
107
 
106
108
  /* ── Typed cell values ─────────────────────────────────────────────────── */
107
109
  .shg-pill {
108
110
  display: inline-flex; align-items: center; max-width: 100%;
109
111
  padding: 1.5px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
110
- color: var(--uic-ink, #1F2937); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
112
+ color: #1F2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
111
113
  }
112
114
  .shg-pills { display: flex; gap: 4px; overflow: hidden; flex: 1; min-width: 0;
113
115
  flex-wrap: wrap; max-height: 100%; align-content: center; }
114
116
  .shg-check {
115
- width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--uic-line, #DDDFE6);
117
+ width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line, #D1D5DB);
116
118
  display: inline-flex; align-items: center; justify-content: center;
117
- font-size: 12px; font-weight: 700; color: var(--uic-on-brand, #fff); background: var(--uic-surface, #FFFFFF);
119
+ font-size: 12px; font-weight: 700; color: #fff; background: var(--surface, #fff);
118
120
  }
119
- .shg-check.on { background: var(--uic-brand, #285AFF); border-color: var(--uic-brand, #285AFF); }
120
- .shg-link { color: var(--uic-brand, #285AFF); text-decoration: none; overflow: hidden;
121
+ .shg-check.on { background: var(--brand, #059669); border-color: var(--brand, #059669); }
122
+ .shg-link { color: var(--brand, #059669); text-decoration: none; overflow: hidden;
121
123
  text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
122
124
  .shg-link:hover { text-decoration: underline; }
123
125
  .shg-num { text-align: right; font-variant-numeric: tabular-nums; }
@@ -125,92 +127,107 @@
125
127
  /* Select cell popover (click a pill to set) */
126
128
  .shg-select-pop {
127
129
  position: absolute; z-index: 30; margin-top: 2px; min-width: 160px;
128
- background: var(--uic-surface, #FFFFFF); border: 1px solid var(--uic-line, #DDDFE6);
129
- border-radius: 10px; box-shadow: var(--uic-shadow-2, 0 12px 28px -8px rgba(15,23,42,.18));
130
+ background: var(--surface, #fff); border: 1px solid var(--line, #E5E7EB);
131
+ border-radius: 10px; box-shadow: 0 12px 28px -8px rgba(15,23,42,.18);
130
132
  padding: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
131
133
  }
132
134
  .shg-pill-btn { border: none; cursor: pointer; font-family: inherit; }
135
+ /* Values as pills in one field, with a palette per pill. */
136
+ .shg-values {
137
+ display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 34px;
138
+ padding: 4px 6px; border: 1px solid var(--line, #E5E7EB); border-radius: 8px;
139
+ background: var(--surface, #fff); cursor: text;
140
+ }
141
+ .shg-values:focus-within { border-color: var(--brand, #0E7490); box-shadow: 0 0 0 3px rgba(14,116,144,.12); }
142
+ .shg-value { position: relative; display: inline-flex; }
143
+ .shg-value .shg-pill-btn { gap: 4px; padding-right: 5px; }
144
+ .shg-value-x { font-size: 12px; line-height: 1; opacity: .55; padding: 0 2px; border-radius: 999px; }
145
+ .shg-value-x:hover { opacity: 1; background: rgba(0,0,0,.08); }
146
+ .shg-values-input {
147
+ flex: 1; min-width: 60px; border: none; outline: none; background: transparent;
148
+ font: inherit; font-size: 12px; padding: 2px 2px; color: var(--ink, #111827);
149
+ }
150
+ .shg-swatches {
151
+ position: absolute; top: calc(100% + 4px); left: 0; z-index: 5; display: grid;
152
+ grid-template-columns: repeat(4, 18px); gap: 5px; padding: 6px; background: var(--surface, #fff);
153
+ border: 1px solid var(--line, #E5E7EB); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.10);
154
+ }
155
+ .shg-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); cursor: pointer; padding: 0; }
156
+ .shg-swatch.on { box-shadow: 0 0 0 2px var(--surface, #fff), 0 0 0 3.5px var(--ink, #111827); }
133
157
  .shg-pill-btn:hover { filter: brightness(.95); }
134
158
  .shg-pop-clear, .shg-pop-note {
135
- font-size: 11.5px; color: var(--uic-mute, #5B5D66); border: none; background: transparent;
159
+ font-size: 11.5px; color: var(--mute, #6B7280); border: none; background: transparent;
136
160
  cursor: pointer; padding: 2px 4px; font-family: inherit;
137
161
  }
138
- .shg-pop-clear:hover { color: var(--uic-ink, #111317); }
162
+ .shg-pop-clear:hover { color: var(--ink, #111827); }
139
163
  .shg-cell { position: relative; }
140
164
 
141
165
  /* ── Column config menu ────────────────────────────────────────────────── */
142
166
  .shg-colhdr { position: relative; }
143
167
  .shg-colmenu-btn {
144
- border: none; background: transparent; color: var(--uic-mute-2, #8E9199);
168
+ border: none; background: transparent; color: var(--mute-2, #9CA3AF);
145
169
  cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 6px; border-radius: 5px;
146
170
  }
147
- .shg-colmenu-btn:hover { background: var(--uic-line-soft, #EFF1F4); color: var(--uic-ink, #111317); }
171
+ .shg-colmenu-btn:hover { background: var(--line-soft, #EFF1F4); color: var(--ink, #111827); }
148
172
  .shg-menu {
149
173
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: 250px;
150
- background: var(--uic-surface, #FFFFFF); border: 1px solid var(--uic-line, #DDDFE6);
151
- border-radius: 12px; box-shadow: var(--uic-shadow-2, 0 16px 40px -10px rgba(15,23,42,.22));
174
+ background: var(--surface, #fff); border: 1px solid var(--line, #E5E7EB);
175
+ border-radius: 12px; box-shadow: 0 16px 40px -10px rgba(15,23,42,.22);
152
176
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
153
177
  font-weight: 400; text-align: left; cursor: default;
154
178
  }
155
179
  .shg-menu-lbl { display: flex; flex-direction: column; gap: 4px; font-size: 11px;
156
- font-weight: 600; color: var(--uic-mute, #5B5D66); }
180
+ font-weight: 600; color: var(--mute, #6B7280); }
157
181
  .shg-menu-input {
158
- font-family: inherit; font-size: 12.5px; font-weight: 400; color: var(--uic-ink, #111317);
159
- border: 1px solid var(--uic-line, #DDDFE6); border-radius: 7px; padding: 5px 8px;
160
- background: var(--uic-surface, #FFFFFF); resize: vertical;
161
- }
162
- .shg-menu-input:focus { outline: none; border-color: var(--uic-brand, #285AFF); }
163
- .shg-menu-deps { display: flex; flex-direction: column; gap: 3px; margin-top: 3px;
164
- max-height: 110px; overflow: auto; }
165
- .shg-menu-dep { display: flex; align-items: center; gap: 6px; font-size: 12px;
166
- font-weight: 400; color: var(--uic-ink-2, #3A3D45); cursor: pointer; }
182
+ font-family: inherit; font-size: 12.5px; font-weight: 400; color: var(--ink, #111827);
183
+ border: 1px solid var(--line, #E5E7EB); border-radius: 7px; padding: 5px 8px;
184
+ background: var(--surface, #fff); resize: vertical;
185
+ }
186
+ .shg-menu-input:focus { outline: none; border-color: var(--brand, #059669); }
167
187
  .shg-menu-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
168
188
  .shg-menu-del {
169
- border: none; background: transparent; color: var(--uic-fail-ink, #B91C1C); font-size: 12px; font-weight: 600;
189
+ border: none; background: transparent; color: #B91C1C; font-size: 12px; font-weight: 600;
170
190
  cursor: pointer; padding: 5px 8px; border-radius: 7px; font-family: inherit;
171
191
  }
172
- .shg-menu-del:hover { background: var(--uic-fail-bg, #FEF2F2); }
192
+ .shg-menu-del:hover { background: var(--hot-soft, #FEE4E4); }
173
193
  .shg-menu-apply {
174
- border: none; background: var(--uic-brand, #285AFF); color: var(--uic-on-brand, #fff); font-size: 12.5px;
194
+ border: none; background: var(--brand, #059669); color: #fff; font-size: 12.5px;
175
195
  font-weight: 600; cursor: pointer; padding: 6px 16px; border-radius: 8px; font-family: inherit;
176
196
  }
177
197
  .shg-menu-apply:hover { filter: brightness(1.06); }
178
198
 
179
199
  /* ── Resize handles ─────────────────────────────────────────────────────── */
200
+ .shg-col { position: relative; }
180
201
  .shg-resize-col {
181
202
  position: absolute; top: 0; right: -3px; width: 7px; height: 100%;
182
203
  cursor: col-resize; z-index: 5;
183
204
  }
184
- .shg-resize-col:hover { background: var(--uic-brand-soft, #E1E9FF); opacity: .7; }
205
+ .shg-resize-col:hover { background: var(--brand-soft, #A7F3D0); opacity: .7; }
185
206
  .shg-resize-row {
186
207
  position: absolute; left: 0; bottom: 0; height: 6px; width: 100%;
187
208
  cursor: row-resize; z-index: 5;
188
209
  }
189
- .shg-resize-row:hover { background: var(--uic-brand-soft, #E1E9FF); opacity: .7; }
190
- /* Inside a cell the handle sits ON the border rather than 3px beyond it: a cell clips its
191
- overflow to keep long values from escaping, and a handle hung outside would be clipped with
192
- them. */
193
- .shg-resize-in-cell.shg-resize-col { right: 0; }
210
+ .shg-resize-row:hover { background: var(--brand-soft, #A7F3D0); opacity: .7; }
194
211
  .shg-cell, .shg-rownum { overflow: hidden; }
195
212
 
196
213
  /* ── Ghost add-row (Airtable-style, attached to the grid) ───────────────── */
197
214
  .shg-ghost-row { cursor: pointer; }
198
- .shg-ghost-row td { border-color: var(--uic-line, #DDDFE6); background: var(--uic-surface, #FFFFFF); }
199
- .shg-ghost-num { color: var(--uic-mute-2, #8E9199); font-size: 15px !important; }
200
- .shg-ghost-cell { color: var(--uic-mute-2, #8E9199); font-size: 12.5px; padding: 0 10px !important; }
201
- .shg-ghost-row:hover td { background: var(--uic-brand-faint, #EFF3FF); }
202
- .shg-ghost-row:hover .shg-ghost-num, .shg-ghost-row:hover .shg-ghost-cell { color: var(--uic-brand, #285AFF); }
215
+ .shg-ghost-row td { border-color: var(--line, #E5E7EB); background: var(--surface, #fff); }
216
+ .shg-ghost-num { color: var(--mute-2, #9CA3AF); font-size: 15px !important; }
217
+ .shg-ghost-cell { color: var(--mute-2, #9CA3AF); font-size: 12.5px; padding: 0 10px !important; }
218
+ .shg-ghost-row:hover td { background: var(--brand-50, #ECFDF5); }
219
+ .shg-ghost-row:hover .shg-ghost-num, .shg-ghost-row:hover .shg-ghost-cell { color: var(--brand, #059669); }
203
220
 
204
221
  /* ── Resource refs ──────────────────────────────────────────────────────── */
205
222
  .shg-refimg { max-height: 60px; max-width: 100%; border-radius: 6px; display: block; padding: 3px 0; }
206
223
  .shg-refchip {
207
224
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
208
225
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
209
- background: var(--uic-surface-2, #F7F8FA); color: var(--uic-ink-2, #3A3D45);
210
- border: 1px solid var(--uic-line, #DDDFE6); white-space: nowrap;
226
+ background: var(--surface-2, #F3F4F6); color: var(--ink-2, #374151);
227
+ border: 1px solid var(--line, #E5E7EB); white-space: nowrap;
211
228
  }
212
229
  .shg-refchip-btn { cursor: pointer; font-family: inherit; }
213
- .shg-refchip-btn:hover { border-color: var(--uic-brand, #285AFF); color: var(--uic-brand, #285AFF); }
230
+ .shg-refchip-btn:hover { border-color: var(--brand, #059669); color: var(--brand, #059669); }
214
231
  .shg-refchip-ic { font-size: 12px; }
215
232
  .shg-refchip-name { overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
216
233
  .shg-ref-pop { min-width: 220px; }
@@ -224,48 +241,46 @@
224
241
  /* ── Bottom tab bar (Google-Sheets style; rendered by the host product) ── */
225
242
  .shg-tabs {
226
243
  display: flex; align-items: center; gap: 2px; flex-shrink: 0;
227
- border-top: 1px solid var(--uic-line, #DDDFE6); background: var(--uic-surface-2, #F7F8FA);
244
+ border-top: 1px solid var(--line, #E5E7EB); background: var(--surface-2, #FAFBFD);
228
245
  padding: 0 8px; height: 38px; overflow-x: auto;
229
246
  }
230
247
  .shg-tab-add {
231
- border: none; background: transparent; color: var(--uic-mute, #5B5D66);
248
+ border: none; background: transparent; color: var(--mute, #6B7280);
232
249
  font-size: 17px; cursor: pointer; padding: 2px 10px; border-radius: 7px; line-height: 1;
233
250
  }
234
- .shg-tab-add:hover { background: var(--uic-line-soft, #EFF1F4); color: var(--uic-ink, #111317); }
251
+ .shg-tab-add:hover { background: var(--line-soft, #EFF1F4); color: var(--ink, #111827); }
235
252
  .shg-tab {
236
253
  display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer;
237
- background: transparent; color: var(--uic-ink-2, #3A3D45); font-size: 13px; font-weight: 600;
254
+ background: transparent; color: var(--ink-2, #374151); font-size: 13px; font-weight: 600;
238
255
  font-family: inherit; padding: 8px 14px; border-radius: 8px 8px 0 0; white-space: nowrap;
239
256
  border-bottom: 2.5px solid transparent;
240
257
  }
241
- .shg-tab:hover { background: var(--uic-line-soft, #EFF1F4); }
242
- .shg-tab.active { color: var(--uic-brand, #285AFF); background: var(--uic-surface, #FFFFFF);
243
- border-bottom-color: var(--uic-brand, #285AFF); }
258
+ .shg-tab:hover { background: var(--line-soft, #EFF1F4); }
259
+ .shg-tab.active { color: var(--brand, #059669); background: var(--surface, #fff);
260
+ border-bottom-color: var(--brand, #059669); }
244
261
  .shg-tab-name-input {
245
- font: inherit; font-weight: 600; width: 110px; border: 1px solid var(--uic-brand, #285AFF);
262
+ font: inherit; font-weight: 600; width: 110px; border: 1px solid var(--brand, #059669);
246
263
  border-radius: 5px; padding: 1px 6px;
247
264
  }
248
- .shg-tab-del { border: none; background: transparent; color: var(--uic-mute-2, #8E9199);
265
+ .shg-tab-del { border: none; background: transparent; color: var(--mute-2, #9CA3AF);
249
266
  cursor: pointer; font-size: 13px; padding: 0 2px; opacity: 0; }
250
267
  .shg-tab:hover .shg-tab-del { opacity: 1; }
251
- .shg-tab-del:hover { color: var(--uic-fail-ink, #B91C1C); }
268
+ .shg-tab-del:hover { color: #B91C1C; }
252
269
 
253
270
  /* ── Drag-to-reorder (columns via header, rows via number cell) ─────────── */
254
271
  .shg-rownum { cursor: grab; }
255
272
  .shg-rownum:active { cursor: grabbing; }
256
273
  .shg-col[draggable="true"] { cursor: grab; }
257
274
  .shg-dragging { opacity: .45; }
258
- .shg-drop-before { box-shadow: inset 3px 0 0 var(--uic-brand, #285AFF); }
259
- .shg-drop-after { box-shadow: inset -3px 0 0 var(--uic-brand, #285AFF); }
260
- .shg-drop-above { box-shadow: inset 0 3px 0 var(--uic-brand, #285AFF); }
261
- .shg-drop-below { box-shadow: inset 0 -3px 0 var(--uic-brand, #285AFF); }
275
+ .shg-drop-before { box-shadow: inset 3px 0 0 var(--brand, #059669); }
276
+ .shg-drop-after { box-shadow: inset -3px 0 0 var(--brand, #059669); }
277
+ .shg-drop-above { box-shadow: inset 0 3px 0 var(--brand, #059669); }
278
+ .shg-drop-below { box-shadow: inset 0 -3px 0 var(--brand, #059669); }
262
279
 
263
280
  /* ── Presence: a peer is editing this cell ──────────────────────────────── */
264
281
  .shg-cell-peer { position: relative; }
265
282
  .shg-peer-flag {
266
283
  position: absolute; top: -1px; left: -1px; z-index: 4;
267
- /* Not --uic-on-brand: the background here is the PEER's colour, an arbitrary saturated value
268
- from the host's palette rather than the theme's brand, and white reads on all of them. */
269
284
  font-size: 9.5px; font-weight: 700; color: #fff; line-height: 1;
270
285
  padding: 2px 6px; border-radius: 0 0 6px 0; max-width: 140px;
271
286
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none;
@@ -275,7 +290,36 @@
275
290
  (Google-Docs style: same scale, slight overlap, white ring) ─────────── */
276
291
  .sh-people { display: flex; align-items: center; }
277
292
  .sh-people .sh-peer-dot {
278
- border: 2px solid var(--uic-surface, #FFFFFF); margin-right: -7px;
293
+ border: 2px solid var(--surface, #fff); margin-right: -7px;
279
294
  text-transform: uppercase; cursor: default; position: relative; z-index: 1;
280
295
  }
281
296
  .sh-people .av:last-child { margin-right: 0; position: relative; z-index: 2; }
297
+
298
+ /* The run strip: one line at the right of the tabs bar. */
299
+ .shg-run {
300
+ margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-width: 0;
301
+ font-size: 12px; color: var(--ink-2, #374151); padding-left: 12px;
302
+ }
303
+ .shg-run-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48vw; }
304
+ .shg-run-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--mute-2, #9CA3AF); }
305
+ .shg-run-running .shg-run-dot, .shg-run-cancelling .shg-run-dot { background: var(--brand, #0E7490); animation: shg-run-pulse 1.2s ease-in-out infinite; }
306
+ .shg-run-done .shg-run-dot { background: #059669; }
307
+ .shg-run-failed .shg-run-dot, .shg-run-cancelled .shg-run-dot { background: #B91C1C; }
308
+ .shg-run-stop {
309
+ font-size: 11px; font-weight: 600; color: #B91C1C; background: var(--surface, #fff);
310
+ border: 1px solid var(--hot-soft, #FEE4E4); border-radius: 6px; padding: 2px 9px; cursor: pointer; font-family: inherit;
311
+ }
312
+ .shg-run-stop:hover { background: var(--hot-soft, #FEE4E4); }
313
+ .shg-run-stop:disabled { opacity: .55; cursor: default; }
314
+ .shg-run-x {
315
+ border: none; background: transparent; color: var(--mute-2, #9CA3AF); cursor: pointer;
316
+ font-size: 15px; line-height: 1; padding: 2px 5px; border-radius: 4px;
317
+ }
318
+ .shg-run-x:hover { background: var(--line-soft, #EFF1F4); color: var(--ink, #111827); }
319
+ @keyframes shg-run-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
320
+ @media (prefers-reduced-motion: reduce) { .shg-run-dot { animation: none !important; } }
321
+
322
+ /* the prompt editor inside the column menu: a field that looks like the other inputs */
323
+ .shg-menu-prompt { min-height: 64px; padding: 6px 8px; cursor: text; }
324
+ .shg-menu-prompt .uic-mention-editor { min-height: 48px; max-height: 180px; font-size: 12.5px; }
325
+ .shg-menu-hint { font-size: 10.5px; color: var(--mute, #6B7280); margin-top: 4px; font-weight: 400; }