@tita-agent/dsh-data-table 0.0.0-stage → 0.2.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 (267) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +172 -2
  3. package/cordis.patch.yml +7 -0
  4. package/lib/client.js +16766 -0
  5. package/lib/contract-envelope.d.ts +91 -0
  6. package/lib/contract-envelope.js +106 -0
  7. package/lib/contract-layout.d.ts +130 -0
  8. package/lib/contract-layout.js +138 -0
  9. package/lib/contract-refs.d.ts +39 -0
  10. package/lib/contract-refs.js +9 -0
  11. package/lib/contract-version.d.ts +311 -0
  12. package/lib/contract-version.js +270 -0
  13. package/lib/contract-wire.d.ts +147 -0
  14. package/lib/contract-wire.js +99 -0
  15. package/lib/contracts.d.ts +12 -0
  16. package/lib/contracts.js +12 -0
  17. package/lib/types/audit.d.ts +42 -0
  18. package/lib/types/audit.js +39 -0
  19. package/lib/types/client/ProjectImportMenu.d.ts +30 -0
  20. package/lib/types/client/ProjectImportMenu.js +70 -0
  21. package/lib/types/client/SheetPanel.d.ts +33 -0
  22. package/lib/types/client/SheetPanel.js +1766 -0
  23. package/lib/types/client/SheetToggle.d.ts +18 -0
  24. package/lib/types/client/SheetToggle.js +26 -0
  25. package/lib/types/client/index.d.ts +15 -0
  26. package/lib/types/client/index.js +110 -0
  27. package/lib/types/client/persistence/changes.d.ts +15 -0
  28. package/lib/types/client/persistence/changes.js +51 -0
  29. package/lib/types/client/persistence/ids.d.ts +34 -0
  30. package/lib/types/client/persistence/ids.js +48 -0
  31. package/lib/types/client/persistence/merge.d.ts +35 -0
  32. package/lib/types/client/persistence/merge.js +362 -0
  33. package/lib/types/client/store.d.ts +61 -0
  34. package/lib/types/client/store.js +152 -0
  35. package/lib/types/client/surface-context.d.ts +27 -0
  36. package/lib/types/client/surface-context.js +104 -0
  37. package/lib/types/client/surface-control.d.ts +2 -0
  38. package/lib/types/client/surface-control.js +12 -0
  39. package/lib/types/client/transport/workbookApi.d.ts +159 -0
  40. package/lib/types/client/transport/workbookApi.js +246 -0
  41. package/lib/types/client/univer/StandaloneWorkbookPage.d.ts +5 -0
  42. package/lib/types/client/univer/StandaloneWorkbookPage.js +7 -0
  43. package/lib/types/client/univer/WorkbookCanvas.d.ts +40 -0
  44. package/lib/types/client/univer/WorkbookCanvas.js +87 -0
  45. package/lib/types/client/univer/WorkbookView.d.ts +3 -0
  46. package/lib/types/client/univer/WorkbookView.js +2 -0
  47. package/lib/types/client/univer/loader.d.ts +18 -0
  48. package/lib/types/client/univer/loader.js +81 -0
  49. package/lib/types/client/univer/standalone-entry.d.ts +1 -0
  50. package/lib/types/client/univer/standalone-entry.js +19 -0
  51. package/lib/types/client/versions/VersionChrome.d.ts +33 -0
  52. package/lib/types/client/versions/VersionChrome.js +21 -0
  53. package/lib/types/client/versions/inspect.d.ts +70 -0
  54. package/lib/types/client/versions/inspect.js +88 -0
  55. package/lib/types/client/versions/preview-decoration.d.ts +11 -0
  56. package/lib/types/client/versions/preview-decoration.js +54 -0
  57. package/lib/types/client/versions/records.d.ts +19 -0
  58. package/lib/types/client/versions/records.js +70 -0
  59. package/lib/types/client/workspace-host.d.ts +61 -0
  60. package/lib/types/client/workspace-host.js +124 -0
  61. package/lib/types/collaboration-hub.d.ts +31 -0
  62. package/lib/types/collaboration-hub.js +69 -0
  63. package/lib/types/contract/ids.d.ts +24 -0
  64. package/lib/types/contract/ids.js +46 -0
  65. package/lib/types/contract/mutations.d.ts +25 -0
  66. package/lib/types/contract/mutations.js +782 -0
  67. package/lib/types/contract/operations.d.ts +54 -0
  68. package/lib/types/contract/operations.js +203 -0
  69. package/lib/types/contract/snapshots.d.ts +176 -0
  70. package/lib/types/contract/snapshots.js +351 -0
  71. package/lib/types/contract/univer-api-catalog.d.ts +29 -0
  72. package/lib/types/contract/univer-api-catalog.js +264 -0
  73. package/lib/types/errors.d.ts +8 -0
  74. package/lib/types/errors.js +12 -0
  75. package/lib/types/http/assets-routes.d.ts +3 -0
  76. package/lib/types/http/assets-routes.js +169 -0
  77. package/lib/types/http/collaboration.d.ts +10 -0
  78. package/lib/types/http/collaboration.js +154 -0
  79. package/lib/types/http/history.d.ts +15 -0
  80. package/lib/types/http/history.js +134 -0
  81. package/lib/types/http/project-files.d.ts +79 -0
  82. package/lib/types/http/project-files.js +206 -0
  83. package/lib/types/http/project-scope.d.ts +50 -0
  84. package/lib/types/http/project-scope.js +52 -0
  85. package/lib/types/http/routes.d.ts +98 -0
  86. package/lib/types/http/routes.js +323 -0
  87. package/lib/types/http/standalone.d.ts +9 -0
  88. package/lib/types/http/standalone.js +31 -0
  89. package/lib/types/http/trunk.d.ts +10 -0
  90. package/lib/types/http/trunk.js +322 -0
  91. package/lib/types/http/worktree.d.ts +9 -0
  92. package/lib/types/http/worktree.js +145 -0
  93. package/lib/types/index.d.ts +18 -0
  94. package/lib/types/index.js +156 -0
  95. package/lib/types/invariant.d.ts +15 -0
  96. package/lib/types/invariant.js +15 -0
  97. package/lib/types/request-params.d.ts +21 -0
  98. package/lib/types/request-params.js +76 -0
  99. package/lib/types/store/paths.d.ts +68 -0
  100. package/lib/types/store/paths.js +148 -0
  101. package/lib/types/store/project.d.ts +88 -0
  102. package/lib/types/store/project.js +120 -0
  103. package/lib/types/store/read.d.ts +110 -0
  104. package/lib/types/store/read.js +404 -0
  105. package/lib/types/store/retention.d.ts +27 -0
  106. package/lib/types/store/retention.js +111 -0
  107. package/lib/types/store/write.d.ts +22 -0
  108. package/lib/types/store/write.js +210 -0
  109. package/lib/types/tools/arguments.d.ts +40 -0
  110. package/lib/types/tools/arguments.js +130 -0
  111. package/lib/types/tools/cells.d.ts +50 -0
  112. package/lib/types/tools/cells.js +298 -0
  113. package/lib/types/tools/index.d.ts +2 -0
  114. package/lib/types/tools/index.js +250 -0
  115. package/lib/types/tools/render.d.ts +47 -0
  116. package/lib/types/tools/render.js +290 -0
  117. package/lib/types/tools/univer-api.d.ts +18 -0
  118. package/lib/types/tools/univer-api.js +198 -0
  119. package/lib/types/tools/workbook-catalog.d.ts +3 -0
  120. package/lib/types/tools/workbook-catalog.js +83 -0
  121. package/lib/types/tools/workbook-edit.d.ts +192 -0
  122. package/lib/types/tools/workbook-edit.js +912 -0
  123. package/lib/types/tools/workbook-find.d.ts +11 -0
  124. package/lib/types/tools/workbook-find.js +89 -0
  125. package/lib/types/tools/workbook-history.d.ts +2 -0
  126. package/lib/types/tools/workbook-history.js +59 -0
  127. package/lib/types/tools/workbook-read.d.ts +21 -0
  128. package/lib/types/tools/workbook-read.js +204 -0
  129. package/lib/types/types.d.ts +377 -0
  130. package/lib/types/types.js +34 -0
  131. package/lib/types/univer/apply-operation.d.ts +14 -0
  132. package/lib/types/univer/apply-operation.js +398 -0
  133. package/lib/types/univer/chunk.d.ts +68 -0
  134. package/lib/types/univer/chunk.js +16 -0
  135. package/lib/types/univer/decoration.d.ts +34 -0
  136. package/lib/types/univer/decoration.js +88 -0
  137. package/lib/types/univer/diagnostics.d.ts +31 -0
  138. package/lib/types/univer/diagnostics.js +141 -0
  139. package/lib/types/univer/engine.d.ts +33 -0
  140. package/lib/types/univer/engine.js +338 -0
  141. package/lib/types/univer/entry.d.ts +8 -0
  142. package/lib/types/univer/entry.js +11 -0
  143. package/lib/types/univer/facade.d.ts +107 -0
  144. package/lib/types/univer/facade.js +1 -0
  145. package/lib/types/univer/fonts.d.ts +202 -0
  146. package/lib/types/univer/fonts.js +140 -0
  147. package/lib/types/univer/plugins/collaboration.d.ts +23 -0
  148. package/lib/types/univer/plugins/collaboration.js +47 -0
  149. package/lib/types/univer/plugins/export.d.ts +39 -0
  150. package/lib/types/univer/plugins/export.js +246 -0
  151. package/lib/types/univer/plugins/history.d.ts +24 -0
  152. package/lib/types/univer/plugins/history.js +50 -0
  153. package/lib/types/univer/plugins/version.d.ts +13 -0
  154. package/lib/types/univer/plugins/version.js +13 -0
  155. package/lib/types/version/diff.d.ts +36 -0
  156. package/lib/types/version/diff.js +156 -0
  157. package/lib/types/version/grouping.d.ts +7 -0
  158. package/lib/types/version/grouping.js +94 -0
  159. package/lib/types/version/records.d.ts +17 -0
  160. package/lib/types/version/records.js +102 -0
  161. package/lib/types/version/session.d.ts +36 -0
  162. package/lib/types/version/session.js +89 -0
  163. package/lib/types/version/summary.d.ts +24 -0
  164. package/lib/types/version/summary.js +111 -0
  165. package/lib/types/workbook-manager.d.ts +191 -0
  166. package/lib/types/workbook-manager.js +935 -0
  167. package/lib/types/xlsx-export-worker.d.ts +5 -0
  168. package/lib/types/xlsx-export-worker.js +24 -0
  169. package/lib/types/xlsx-export.d.ts +21 -0
  170. package/lib/types/xlsx-export.js +371 -0
  171. package/lib/types/xlsx-import-worker.d.ts +1 -0
  172. package/lib/types/xlsx-import-worker.js +19 -0
  173. package/lib/univer-client.js +690 -0
  174. package/lib/workbook-page.js +23826 -0
  175. package/lib/xlsx-export-worker.js +104 -0
  176. package/lib/xlsx-import-worker.js +46 -0
  177. package/package.json +106 -3
  178. package/src/audit.ts +58 -0
  179. package/src/client/ProjectImportMenu.tsx +100 -0
  180. package/src/client/SheetPanel.module.css +1578 -0
  181. package/src/client/SheetPanel.tsx +1934 -0
  182. package/src/client/SheetToggle.module.css +73 -0
  183. package/src/client/SheetToggle.tsx +65 -0
  184. package/src/client/contract.d.ts +19 -0
  185. package/src/client/index.ts +131 -0
  186. package/src/client/persistence/changes.ts +58 -0
  187. package/src/client/persistence/ids.ts +60 -0
  188. package/src/client/persistence/merge.ts +392 -0
  189. package/src/client/store.ts +188 -0
  190. package/src/client/surface-context.ts +123 -0
  191. package/src/client/surface-control.ts +13 -0
  192. package/src/client/transport/workbookApi.ts +355 -0
  193. package/src/client/univer/SheetView.module.css +110 -0
  194. package/src/client/univer/StandaloneWorkbookPage.module.css +8 -0
  195. package/src/client/univer/StandaloneWorkbookPage.tsx +15 -0
  196. package/src/client/univer/WorkbookCanvas.tsx +128 -0
  197. package/src/client/univer/WorkbookView.module.css +30 -0
  198. package/src/client/univer/WorkbookView.tsx +3 -0
  199. package/src/client/univer/loader.ts +90 -0
  200. package/src/client/univer/react-dom-client.d.ts +10 -0
  201. package/src/client/univer/standalone-entry.tsx +19 -0
  202. package/src/client/univer/standalone.css +12 -0
  203. package/src/client/univer/univer-locales.d.ts +89 -0
  204. package/src/client/univer/univer-modules.d.ts +26 -0
  205. package/src/client/versions/VersionChrome.tsx +114 -0
  206. package/src/client/versions/inspect.ts +138 -0
  207. package/src/client/versions/preview-decoration.ts +54 -0
  208. package/src/client/versions/records.ts +78 -0
  209. package/src/client/workspace-host.ts +147 -0
  210. package/src/collaboration-hub.ts +83 -0
  211. package/src/contract/ids.ts +50 -0
  212. package/src/contract/mutations.ts +791 -0
  213. package/src/contract/operations.ts +221 -0
  214. package/src/contract/snapshots.ts +383 -0
  215. package/src/contract/univer-api-catalog.ts +289 -0
  216. package/src/css-modules.d.ts +6 -0
  217. package/src/errors.ts +25 -0
  218. package/src/http/assets-routes.ts +177 -0
  219. package/src/http/collaboration.ts +144 -0
  220. package/src/http/history.ts +151 -0
  221. package/src/http/project-files.ts +227 -0
  222. package/src/http/project-scope.ts +77 -0
  223. package/src/http/routes.ts +364 -0
  224. package/src/http/standalone.ts +32 -0
  225. package/src/http/trunk.ts +322 -0
  226. package/src/http/worktree.ts +119 -0
  227. package/src/index.ts +165 -0
  228. package/src/invariant.ts +17 -0
  229. package/src/request-params.ts +92 -0
  230. package/src/store/paths.ts +165 -0
  231. package/src/store/project.ts +137 -0
  232. package/src/store/read.ts +454 -0
  233. package/src/store/retention.ts +106 -0
  234. package/src/store/write.ts +230 -0
  235. package/src/tools/arguments.ts +128 -0
  236. package/src/tools/cells.ts +298 -0
  237. package/src/tools/index.ts +274 -0
  238. package/src/tools/render.ts +301 -0
  239. package/src/tools/univer-api.ts +243 -0
  240. package/src/tools/workbook-catalog.ts +94 -0
  241. package/src/tools/workbook-edit.ts +987 -0
  242. package/src/tools/workbook-find.ts +80 -0
  243. package/src/tools/workbook-history.ts +63 -0
  244. package/src/tools/workbook-read.ts +210 -0
  245. package/src/types.ts +432 -0
  246. package/src/univer/apply-operation.ts +369 -0
  247. package/src/univer/chunk.ts +77 -0
  248. package/src/univer/decoration.ts +111 -0
  249. package/src/univer/diagnostics.ts +136 -0
  250. package/src/univer/engine.ts +370 -0
  251. package/src/univer/entry.ts +14 -0
  252. package/src/univer/facade.ts +91 -0
  253. package/src/univer/fonts.ts +148 -0
  254. package/src/univer/overrides.css +33 -0
  255. package/src/univer/plugins/collaboration.ts +47 -0
  256. package/src/univer/plugins/export.ts +236 -0
  257. package/src/univer/plugins/history.ts +49 -0
  258. package/src/univer/plugins/version.ts +13 -0
  259. package/src/version/diff.ts +169 -0
  260. package/src/version/grouping.ts +96 -0
  261. package/src/version/records.ts +113 -0
  262. package/src/version/session.ts +90 -0
  263. package/src/version/summary.ts +117 -0
  264. package/src/workbook-manager.ts +1111 -0
  265. package/src/xlsx-export-worker.ts +34 -0
  266. package/src/xlsx-export.ts +373 -0
  267. package/src/xlsx-import-worker.ts +30 -0
@@ -0,0 +1,1578 @@
1
+ /* The panel's own names for the shared palette: ~200 rules below read
2
+ * `var(--sheet-*)`. The legacy `--color-tita-*` aliases cover the neutral, ink,
3
+ * accent and status names only, so the tone/scrim/`-line` families read `--tita-*`. */
4
+ .panel {
5
+ --sheet-bg: var(--tita-canvas);
6
+ --sheet-surface: var(--tita-surface);
7
+ --sheet-surface-muted: var(--tita-surface-muted);
8
+ --sheet-line: var(--tita-line);
9
+ --sheet-line-strong: var(--tita-line-strong);
10
+ --sheet-ink: var(--tita-ink);
11
+ --sheet-ink-muted: var(--tita-ink-muted);
12
+ --sheet-ink-faint: var(--tita-ink-faint);
13
+ --sheet-accent: var(--tita-primary);
14
+ --sheet-accent-soft: var(--tita-primary-soft);
15
+ --sheet-danger: var(--tita-danger);
16
+ /* `tita-danger` has no tint/line pair; these use the `tita-tone-*` recipe. */
17
+ --sheet-danger-soft: color-mix(in srgb, var(--tita-danger) 10%, var(--tita-surface));
18
+ --sheet-danger-line: color-mix(in srgb, var(--tita-danger) 32%, var(--tita-surface));
19
+ display: flex;
20
+ flex-direction: column;
21
+ height: 100%;
22
+ min-height: 0;
23
+ color: var(--sheet-ink);
24
+ background: var(--sheet-bg);
25
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
26
+ font-size: 13px;
27
+ }
28
+
29
+ /* In `@layer base` **on purpose**: `packages/ui` ships its utilities unlayered,
30
+ * and an unlayered `(0,1,1)` element rule beats a `(0,1,0)` utility. Out here
31
+ * `font: inherit` outranked every `text-*` / `font-*` utility on every button,
32
+ * input and select in the panel, and the ring below replaced the shared one on
33
+ * `Button`, `Input` and every Radix primitive (measured before: `Button` at the
34
+ * inherited 13px/400 instead of its own 12px/semibold, the pickers at 13px
35
+ * instead of 11px). It cannot be a `:not(.tita-uiButton)` list — CSS Modules
36
+ * rewrites class names inside `:not()` too, so the selector matched nothing (0023 §7).
37
+ */
38
+ @layer base {
39
+ .panel button, .panel input, .panel select { box-sizing: border-box; font: inherit; }
40
+ .panel button:focus-visible, .panel input:focus-visible, .panel select:focus-visible { outline: 2px solid var(--sheet-accent); outline-offset: 1px; }
41
+ }
42
+
43
+ .sidebarTab {
44
+ width: 100%;
45
+ height: 100%;
46
+ min-height: 0;
47
+ }
48
+
49
+ .header {
50
+ position: relative;
51
+ z-index: 3;
52
+ display: flex;
53
+ align-items: center;
54
+ gap: 6px;
55
+ min-height: 42px;
56
+ padding: 4px 9px;
57
+ border-bottom: 1px solid var(--sheet-line);
58
+ background: var(--sheet-surface);
59
+ flex-shrink: 0;
60
+ }
61
+
62
+ .workbookPickerAnchor,
63
+ .toolbarMenuAnchor {
64
+ position: relative;
65
+ flex: 0 1 auto;
66
+ min-width: 0;
67
+ }
68
+
69
+ .workbookPickerAnchor {
70
+ flex: 1 1 auto;
71
+ }
72
+
73
+ .workbookPickerButton {
74
+ display: inline-flex;
75
+ align-items: center;
76
+ gap: 7px;
77
+ width: min(320px, 100%);
78
+ min-width: 0;
79
+ height: 32px;
80
+ padding: 3px 8px;
81
+ border: 1px solid transparent;
82
+ border-radius: 5px;
83
+ color: var(--sheet-ink);
84
+ background: transparent;
85
+ text-align: left;
86
+ cursor: pointer;
87
+ }
88
+
89
+ .workbookPickerButton:hover:not(:disabled),
90
+ .workbookPickerButton[aria-expanded='true'] {
91
+ border-color: var(--sheet-line);
92
+ background: var(--sheet-surface-muted);
93
+ }
94
+
95
+ .workbookPickerButton:disabled {
96
+ opacity: 0.55;
97
+ cursor: not-allowed;
98
+ }
99
+
100
+ .workbookPickerLabel {
101
+ flex: 0 0 auto;
102
+ color: var(--sheet-ink-faint);
103
+ font-size: 11px;
104
+ }
105
+
106
+ .workbookPickerButton strong {
107
+ min-width: 0;
108
+ overflow: hidden;
109
+ flex: 1;
110
+ font-size: 13px;
111
+ font-weight: 600;
112
+ text-overflow: ellipsis;
113
+ white-space: nowrap;
114
+ }
115
+
116
+ .chevron,
117
+ .menuChevron {
118
+ flex: 0 0 auto;
119
+ color: var(--sheet-ink-faint);
120
+ font-size: 13px;
121
+ line-height: 1;
122
+ }
123
+
124
+ .workbookPickerMenu,
125
+ .toolbarMenu {
126
+ position: absolute;
127
+ z-index: 50;
128
+ border: 1px solid var(--sheet-line-strong);
129
+ border-radius: 8px;
130
+ background: var(--sheet-surface);
131
+ box-shadow: 0 10px 28px rgb(17 24 39 / 0.14);
132
+ }
133
+
134
+ .workbookPickerMenu {
135
+ top: calc(100% + 3px);
136
+ left: 0;
137
+ display: flex;
138
+ flex-direction: column;
139
+ width: min(360px, calc(100vw - 20px));
140
+ overflow: hidden;
141
+ }
142
+
143
+ .pickerMenuHeader,
144
+ .pickerMenuFooter {
145
+ display: flex;
146
+ align-items: center;
147
+ justify-content: space-between;
148
+ gap: 8px;
149
+ padding: 10px 12px;
150
+ }
151
+
152
+ .pickerMenuHeader {
153
+ border-bottom: 1px solid var(--sheet-line);
154
+ }
155
+
156
+ .pickerMenuHeader > div {
157
+ display: flex;
158
+ flex-direction: column;
159
+ gap: 2px;
160
+ }
161
+
162
+ .pickerMenuHeader strong {
163
+ color: var(--sheet-ink);
164
+ font-size: 13px;
165
+ }
166
+
167
+ .pickerMenuHeader small,
168
+ .pickerMenuHeader > span,
169
+ .pickerMenuFooter small {
170
+ color: var(--sheet-ink-faint);
171
+ font-size: 11px;
172
+ }
173
+
174
+ .workbookOptionList {
175
+ max-height: min(310px, 45vh);
176
+ padding: 5px;
177
+ overflow: auto;
178
+ }
179
+
180
+ .emptyPicker {
181
+ padding: 18px 10px;
182
+ color: var(--sheet-ink-faint);
183
+ font-size: 12px;
184
+ text-align: center;
185
+ }
186
+
187
+ .workbookOptionRow {
188
+ display: flex;
189
+ align-items: center;
190
+ gap: 4px;
191
+ min-width: 0;
192
+ padding: 2px;
193
+ border-radius: 6px;
194
+ }
195
+
196
+ .workbookOptionRow:hover,
197
+ .workbookOptionActive {
198
+ background: var(--sheet-accent-soft);
199
+ }
200
+
201
+ .workbookOption {
202
+ display: flex;
203
+ align-items: center;
204
+ gap: 8px;
205
+ min-width: 0;
206
+ flex: 1;
207
+ padding: 6px 7px;
208
+ border: 0;
209
+ color: var(--sheet-ink);
210
+ background: transparent;
211
+ text-align: left;
212
+ cursor: pointer;
213
+ }
214
+
215
+ .workbookOption:disabled {
216
+ opacity: 0.55;
217
+ cursor: wait;
218
+ }
219
+
220
+ .workbookOptionMain {
221
+ display: flex;
222
+ min-width: 0;
223
+ flex: 1;
224
+ flex-direction: column;
225
+ gap: 2px;
226
+ }
227
+
228
+ .workbookOptionMain strong,
229
+ .workbookOptionMain small {
230
+ overflow: hidden;
231
+ text-overflow: ellipsis;
232
+ white-space: nowrap;
233
+ }
234
+
235
+ .workbookOptionMain strong {
236
+ font-size: 12px;
237
+ font-weight: 600;
238
+ }
239
+
240
+ .workbookOptionMain small {
241
+ color: var(--sheet-ink-faint);
242
+ font-size: 11px;
243
+ }
244
+
245
+ .currentMark {
246
+ flex: 0 0 auto;
247
+ color: var(--sheet-accent);
248
+ font-size: 11px;
249
+ }
250
+
251
+ .workbookOptionActions {
252
+ display: inline-flex;
253
+ flex: 0 0 auto;
254
+ gap: 2px;
255
+ }
256
+
257
+ .itemActionButton {
258
+ padding: 4px 5px;
259
+ border: 0;
260
+ border-radius: 4px;
261
+ color: var(--sheet-ink-faint);
262
+ background: transparent;
263
+ font-size: 11px;
264
+ cursor: pointer;
265
+ }
266
+
267
+ .itemActionButton:hover:not(:disabled) {
268
+ color: var(--sheet-accent);
269
+ background: var(--sheet-surface);
270
+ }
271
+
272
+ .itemActionButton:disabled {
273
+ opacity: 0.4;
274
+ cursor: not-allowed;
275
+ }
276
+
277
+ .pickerMenuFooter {
278
+ align-items: flex-start;
279
+ flex-direction: column;
280
+ border-top: 1px solid var(--sheet-line);
281
+ background: var(--sheet-surface-muted);
282
+ }
283
+
284
+ .createWorkbookButton {
285
+ display: inline-flex;
286
+ align-items: center;
287
+ gap: 4px;
288
+ padding: 0;
289
+ border: 0;
290
+ color: var(--sheet-accent);
291
+ background: transparent;
292
+ font-size: 12px;
293
+ font-weight: 600;
294
+ cursor: pointer;
295
+ }
296
+
297
+ .createWorkbookButton:disabled {
298
+ opacity: 0.5;
299
+ cursor: wait;
300
+ }
301
+
302
+ .toolbarMenu {
303
+ top: calc(100% + 3px);
304
+ right: 0;
305
+ display: flex;
306
+ flex-direction: column;
307
+ gap: 2px;
308
+ min-width: 142px;
309
+ padding: 4px;
310
+ }
311
+
312
+ .toolbarMenu button {
313
+ padding: 7px 8px;
314
+ border: 0;
315
+ border-radius: 4px;
316
+ color: var(--sheet-ink-muted);
317
+ background: transparent;
318
+ font-size: 12px;
319
+ text-align: left;
320
+ cursor: pointer;
321
+ }
322
+
323
+ .toolbarMenu button:hover {
324
+ color: var(--sheet-ink);
325
+ background: var(--sheet-surface-muted);
326
+ }
327
+
328
+ .headerStatusGroup {
329
+ display: inline-flex;
330
+ align-items: center;
331
+ gap: 6px;
332
+ margin-left: auto;
333
+ flex: 0 0 auto;
334
+ }
335
+
336
+ .standalone {
337
+ height: 100%;
338
+ min-height: 100%;
339
+ background: var(--sheet-bg);
340
+ }
341
+
342
+ .headerIdentity {
343
+ display: inline-flex;
344
+ align-items: center;
345
+ gap: 8px;
346
+ min-width: 126px;
347
+ flex: 0 1 auto;
348
+ }
349
+
350
+ .appMark {
351
+ display: grid;
352
+ width: 25px;
353
+ height: 25px;
354
+ flex: 0 0 auto;
355
+ place-items: center;
356
+ color: var(--sheet-accent);
357
+ }
358
+
359
+ .appMark svg {
360
+ display: block;
361
+ width: 20px;
362
+ height: 20px;
363
+ }
364
+
365
+ .headerTitle {
366
+ display: flex;
367
+ flex-direction: column;
368
+ gap: 1px;
369
+ min-width: 0;
370
+ }
371
+
372
+ .headerTitle strong {
373
+ overflow: hidden;
374
+ color: var(--sheet-ink);
375
+ font-size: 13px;
376
+ font-weight: 650;
377
+ text-overflow: ellipsis;
378
+ white-space: nowrap;
379
+ }
380
+
381
+ .headerTitle small {
382
+ overflow: hidden;
383
+ color: var(--sheet-ink-faint);
384
+ font-size: 12px;
385
+ text-overflow: ellipsis;
386
+ white-space: nowrap;
387
+ }
388
+
389
+ .workbookPicker {
390
+ display: inline-flex;
391
+ align-items: center;
392
+ gap: 6px;
393
+ min-width: 0;
394
+ flex: 1 1 auto;
395
+ }
396
+
397
+ .pickerLabel {
398
+ flex: 0 0 auto;
399
+ color: var(--sheet-ink-muted);
400
+ font-size: 12px;
401
+ }
402
+
403
+ .workbookSelect {
404
+ width: min(260px, 100%);
405
+ min-width: 130px;
406
+ height: 32px;
407
+ padding: 3px 24px 3px 8px;
408
+ border: 1px solid var(--sheet-line-strong);
409
+ border-radius: 5px;
410
+ outline: 0;
411
+ color: var(--sheet-ink);
412
+ background: var(--sheet-surface);
413
+ cursor: pointer;
414
+ }
415
+
416
+ .workbookSelect:hover:not(:disabled) {
417
+ /* One step past the resting `line-strong`; no grey sits between them. */
418
+ border-color: var(--tita-ink-faint);
419
+ }
420
+
421
+ .workbookSelect:focus-visible {
422
+ border-color: var(--sheet-accent);
423
+ }
424
+
425
+ .actionButton,
426
+ .iconButton,
427
+ .dangerButton {
428
+ flex: 0 0 auto;
429
+ border: 1px solid var(--sheet-line-strong);
430
+ border-radius: 5px;
431
+ color: var(--sheet-ink-muted);
432
+ background: var(--sheet-surface);
433
+ cursor: pointer;
434
+ transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
435
+ }
436
+
437
+ .actionButton {
438
+ height: 28px;
439
+ padding: 2px 8px;
440
+ font-size: 12px;
441
+ }
442
+
443
+ .actionButton:hover:not(:disabled),
444
+ .iconButton:hover:not(:disabled) {
445
+ border-color: var(--tita-primary-line);
446
+ color: var(--sheet-accent);
447
+ background: var(--sheet-accent-soft);
448
+ }
449
+
450
+ .actionButton:disabled,
451
+ .iconButton:disabled,
452
+ .dangerButton:disabled {
453
+ opacity: 0.45;
454
+ cursor: not-allowed;
455
+ }
456
+
457
+ .status {
458
+ display: inline-flex;
459
+ align-items: center;
460
+ gap: 5px;
461
+ margin-left: auto;
462
+ color: var(--sheet-ink-faint);
463
+ font-size: 12px;
464
+ white-space: nowrap;
465
+ }
466
+
467
+ .status i {
468
+ width: 6px;
469
+ height: 6px;
470
+ border-radius: 50%;
471
+ background: var(--tita-success);
472
+ }
473
+
474
+ .status[data-status='loading'] i,
475
+ .status[data-status='saving'] i {
476
+ background: var(--tita-warning);
477
+ }
478
+
479
+ .status[data-status='error'] i,
480
+ .status[data-status='conflict'] i {
481
+ background: var(--sheet-danger);
482
+ }
483
+
484
+ .status[data-status='error'],
485
+ .status[data-status='conflict'] {
486
+ color: var(--sheet-danger);
487
+ }
488
+
489
+ .switchingLabel {
490
+ color: var(--sheet-ink-faint);
491
+ font-size: 12px;
492
+ white-space: nowrap;
493
+ }
494
+
495
+ .body {
496
+ position: relative;
497
+ display: flex;
498
+ flex-direction: column;
499
+ min-height: 0;
500
+ flex: 1;
501
+ padding: 12px;
502
+ background: var(--sheet-bg);
503
+ }
504
+
505
+ .body > .hint {
506
+ max-width: 380px;
507
+ margin: auto;
508
+ padding: 38px 24px;
509
+ border: 1px dashed var(--sheet-line-strong);
510
+ border-radius: 6px;
511
+ color: var(--sheet-ink-muted);
512
+ background: var(--sheet-surface);
513
+ text-align: center;
514
+ }
515
+
516
+ .body > .hint p {
517
+ margin: 0;
518
+ }
519
+
520
+ .hintSub {
521
+ margin-top: 6px;
522
+ color: var(--sheet-ink-faint);
523
+ }
524
+
525
+ /* Transient success toast: floats so it never reflows the canvas, and takes no
526
+ pointer events so it can never swallow a click. */
527
+ .toast {
528
+ position: absolute;
529
+ z-index: 30;
530
+ top: 12px;
531
+ right: 12px;
532
+ max-width: min(440px, calc(100% - 24px));
533
+ padding: 8px 11px;
534
+ border: 1px solid var(--tita-primary-line);
535
+ border-radius: 5px;
536
+ box-shadow: 0 6px 18px rgb(17 24 39 / 0.1);
537
+ pointer-events: none;
538
+ color: var(--sheet-accent);
539
+ background: var(--tita-primary-soft);
540
+ }
541
+
542
+ /* Persistent notice: an in-flow banner. It used to be an absolutely positioned
543
+ overlay with `pointer-events: none`, so it covered the Univer toolbar and
544
+ could not be dismissed (GUI feedback 2026-09-19). A banner pushes the canvas
545
+ down instead of hiding it, and carries its own close button. */
546
+ .notice {
547
+ flex: none;
548
+ display: flex;
549
+ align-items: flex-start;
550
+ gap: 8px;
551
+ margin-bottom: 10px;
552
+ padding: 8px 10px;
553
+ border: 1px solid var(--tita-tone-amber-line);
554
+ border-radius: 6px;
555
+ color: var(--sheet-ink-muted);
556
+ background: var(--tita-tone-amber-tint);
557
+ }
558
+
559
+ .noticeMessage {
560
+ flex: 1;
561
+ min-width: 0;
562
+ }
563
+
564
+ .noticeClose {
565
+ flex: none;
566
+ display: inline-flex;
567
+ align-items: center;
568
+ justify-content: center;
569
+ width: 20px;
570
+ height: 20px;
571
+ padding: 0;
572
+ border: 0;
573
+ border-radius: 4px;
574
+ color: var(--sheet-ink-faint);
575
+ background: transparent;
576
+ cursor: pointer;
577
+ }
578
+
579
+ .noticeClose:hover {
580
+ color: var(--sheet-ink);
581
+ background: var(--tita-surface-muted);
582
+ }
583
+
584
+ .conflictPanel,
585
+ .proposal,
586
+ .worktreeDiffPanel,
587
+ .historyPanel {
588
+ flex-shrink: 0;
589
+ border: 1px solid var(--sheet-line);
590
+ border-radius: 6px;
591
+ background: var(--sheet-surface);
592
+ }
593
+
594
+ .conflictPanel {
595
+ display: flex;
596
+ align-items: center;
597
+ justify-content: space-between;
598
+ gap: 12px;
599
+ margin-bottom: 10px;
600
+ padding: 10px 12px;
601
+ border: 1px solid var(--tita-tone-amber-line); border-radius: 6px;
602
+ background: var(--tita-tone-amber-tint);
603
+ }
604
+
605
+ .conflictText,
606
+ .proposalText {
607
+ display: flex;
608
+ flex-direction: column;
609
+ gap: 3px;
610
+ min-width: 0;
611
+ color: var(--sheet-ink-muted);
612
+ font-size: 12px;
613
+ }
614
+
615
+ .conflictText strong {
616
+ color: var(--tita-warning);
617
+ }
618
+
619
+ .conflictText span,
620
+ .conflictText small,
621
+ .proposalText span,
622
+ .proposalText small {
623
+ overflow: hidden;
624
+ text-overflow: ellipsis;
625
+ white-space: nowrap;
626
+ }
627
+
628
+ .conflictText small,
629
+ .proposalText small,
630
+ .worktreeDiffPanel small,
631
+ .historyCompressed {
632
+ color: var(--sheet-ink-faint);
633
+ font-size: 12px;
634
+ }
635
+
636
+ .conflictActions,
637
+ .proposalActions {
638
+ display: inline-flex;
639
+ gap: 6px;
640
+ flex-shrink: 0;
641
+ }
642
+
643
+ .proposals {
644
+ display: flex;
645
+ flex-direction: column;
646
+ gap: 6px;
647
+ margin-bottom: 10px;
648
+ }
649
+
650
+ .proposal {
651
+ display: flex;
652
+ align-items: center;
653
+ justify-content: space-between;
654
+ gap: 10px;
655
+ padding: 9px 11px;
656
+ border: 1px solid var(--sheet-line-strong); border-radius: 6px;
657
+ }
658
+
659
+ .proposalText strong {
660
+ color: var(--sheet-accent);
661
+ }
662
+
663
+ .worktreeDiffPanel {
664
+ display: flex;
665
+ flex-direction: column;
666
+ gap: 5px;
667
+ margin-bottom: 10px;
668
+ padding: 9px 11px;
669
+ color: var(--sheet-ink-muted);
670
+ font-size: 12px;
671
+ }
672
+
673
+ .worktreeDiffPanel {
674
+ border: 1px solid var(--sheet-line); border-radius: 6px;
675
+ }
676
+
677
+ .historyDiffSummary {
678
+ display: flex;
679
+ flex-direction: column;
680
+ gap: 3px;
681
+ color: var(--sheet-accent);
682
+ }
683
+
684
+ .historyPanel {
685
+ display: flex;
686
+ flex-direction: column;
687
+ gap: 8px;
688
+ max-height: 280px;
689
+ margin-bottom: 10px;
690
+ padding: 10px 12px;
691
+ }
692
+
693
+ .historyHeader,
694
+ .historyPreview {
695
+ display: flex;
696
+ align-items: center;
697
+ justify-content: space-between;
698
+ gap: 8px;
699
+ color: var(--sheet-ink-muted);
700
+ font-size: 12px;
701
+ }
702
+
703
+ .historyHeader strong {
704
+ color: var(--sheet-ink);
705
+ }
706
+
707
+ .historyList {
708
+ display: flex;
709
+ flex-direction: column;
710
+ gap: 3px;
711
+ min-height: 0;
712
+ overflow: auto;
713
+ }
714
+
715
+ .historyEntry {
716
+ display: flex;
717
+ flex-direction: column;
718
+ align-items: flex-start;
719
+ gap: 2px;
720
+ width: 100%;
721
+ padding: 6px 7px;
722
+ border: 1px solid transparent;
723
+ border-radius: 4px;
724
+ color: var(--sheet-ink-muted);
725
+ background: transparent;
726
+ font-size: 12px;
727
+ text-align: left;
728
+ cursor: pointer;
729
+ }
730
+
731
+ .historyEntry:hover:not(:disabled),
732
+ .historyEntrySelected {
733
+ border-color: var(--tita-primary-line);
734
+ color: var(--sheet-ink);
735
+ background: var(--sheet-accent-soft);
736
+ }
737
+
738
+ .historyEntry:disabled {
739
+ color: var(--sheet-ink-faint);
740
+ cursor: not-allowed;
741
+ }
742
+
743
+ .historyEntry span:first-child {
744
+ color: var(--sheet-ink);
745
+ }
746
+
747
+ .historyEntry small,
748
+ .historyPreview span {
749
+ color: var(--sheet-ink-faint);
750
+ }
751
+
752
+ .historyHint {
753
+ color: var(--sheet-ink-faint);
754
+ font-size: 12px;
755
+ }
756
+
757
+ .historyPreview {
758
+ padding-top: 7px;
759
+ border-top: 1px solid var(--sheet-line);
760
+ }
761
+
762
+ .historyPreview > div,
763
+ .historyDetailHeader,
764
+ .drawerHeader > div {
765
+ display: flex;
766
+ flex-direction: column;
767
+ gap: 3px;
768
+ min-width: 0;
769
+ }
770
+
771
+ .historyTimeline,
772
+ .workbookManagerList {
773
+ min-height: 0;
774
+ overflow: auto;
775
+ }
776
+
777
+ .historyTimeline {
778
+ flex: 1;
779
+ padding: 14px 3px 8px 4px;
780
+ }
781
+
782
+ .historyTimelineItem {
783
+ position: relative;
784
+ display: flex;
785
+ gap: 9px;
786
+ min-height: 68px;
787
+ padding-bottom: 12px;
788
+ }
789
+
790
+ .historyTimelineItem::before {
791
+ position: absolute;
792
+ top: 8px;
793
+ bottom: 0;
794
+ left: 3px;
795
+ width: 1px;
796
+ background: var(--sheet-line);
797
+ content: '';
798
+ }
799
+
800
+ .historyTimelineItem:last-child::before {
801
+ display: none;
802
+ }
803
+
804
+ .timelineAgentDot,
805
+ .timelineUserDot {
806
+ position: relative;
807
+ z-index: 1;
808
+ display: block;
809
+ width: 7px;
810
+ height: 7px;
811
+ flex: 0 0 auto;
812
+ margin-top: 5px;
813
+ border-radius: 50%;
814
+ background: var(--tita-tone-violet);
815
+ }
816
+
817
+ .timelineUserDot {
818
+ background: var(--tita-tone-green);
819
+ }
820
+
821
+ .activityAgent {
822
+ color: var(--tita-tone-violet);
823
+ }
824
+
825
+ .activityUser {
826
+ color: var(--tita-tone-green);
827
+ }
828
+
829
+ .historyTimelineContent {
830
+ display: flex;
831
+ flex-direction: column;
832
+ gap: 4px;
833
+ min-width: 0;
834
+ color: var(--sheet-ink-muted);
835
+ font-size: 12px;
836
+ }
837
+
838
+ .historyTimelineTop {
839
+ display: inline-flex;
840
+ align-items: center;
841
+ flex-wrap: wrap;
842
+ gap: 6px;
843
+ }
844
+
845
+ .historyTimelineTop b {
846
+ color: var(--sheet-ink);
847
+ font-weight: 650;
848
+ }
849
+
850
+ .historyTimelineTop small {
851
+ color: var(--sheet-ink-faint);
852
+ }
853
+
854
+ .historyBranch,
855
+ .historyTemporary {
856
+ padding: 1px 5px;
857
+ border-radius: 3px;
858
+ font-size: 11px;
859
+ font-style: normal;
860
+ }
861
+
862
+ .historyBranch {
863
+ color: var(--sheet-ink-faint);
864
+ background: var(--sheet-surface-muted);
865
+ }
866
+
867
+ .historyTemporary {
868
+ color: var(--tita-tone-amber);
869
+ background: var(--tita-tone-amber-tint);
870
+ }
871
+
872
+ .historyVersionActions {
873
+ display: flex;
874
+ align-items: center;
875
+ gap: 11px;
876
+ }
877
+
878
+ .historyStepList {
879
+ display: flex;
880
+ flex-direction: column;
881
+ gap: 3px;
882
+ margin-top: 2px;
883
+ padding-left: 8px;
884
+ border-left: 1px solid var(--sheet-line);
885
+ }
886
+
887
+ .historyStepButton,
888
+ .historyPreviewButton {
889
+ border: 0;
890
+ color: var(--sheet-accent);
891
+ background: transparent;
892
+ font-size: 12px;
893
+ text-align: left;
894
+ cursor: pointer;
895
+ }
896
+
897
+ .historyStepButton {
898
+ display: flex;
899
+ align-items: baseline;
900
+ gap: 6px;
901
+ padding: 3px 5px;
902
+ color: var(--sheet-ink-muted);
903
+ }
904
+
905
+ .historyStepButton:hover:not(:disabled),
906
+ .historyPreviewButton:hover {
907
+ text-decoration: underline;
908
+ }
909
+
910
+ .historyStepButton span {
911
+ flex: 0 0 auto;
912
+ color: var(--sheet-ink);
913
+ font-weight: 650;
914
+ }
915
+
916
+ .historyStepButton small {
917
+ overflow: hidden;
918
+ color: var(--sheet-ink-faint);
919
+ text-overflow: ellipsis;
920
+ white-space: nowrap;
921
+ }
922
+
923
+ .historyPreviewButton {
924
+ align-self: flex-start;
925
+ padding: 2px 0;
926
+ }
927
+
928
+ /* Compare panel at the end of the drawer: head, baseline picker, diff. */
929
+ .historyDetail {
930
+ display: flex;
931
+ flex-direction: column;
932
+ align-items: stretch;
933
+ gap: 8px;
934
+ flex-shrink: 0;
935
+ padding-top: 10px;
936
+ border-top: 1px solid var(--sheet-line);
937
+ font-size: 12px;
938
+ }
939
+
940
+ /* Preview bar above the canvas (docs/issue/0002 PRD v3.2 §7.2). */
941
+ .previewBar {
942
+ flex: none;
943
+ margin-bottom: 8px;
944
+ }
945
+
946
+ /* Change summary + diff legend inside the preview bar (v3.3 §7.2). */
947
+ .previewChanges {
948
+ color: var(--tita-tone-amber);
949
+ font-size: 11px;
950
+ }
951
+
952
+ .previewLegend {
953
+ display: flex;
954
+ align-items: center;
955
+ gap: 10px;
956
+ color: var(--sheet-ink-muted);
957
+ font-size: 10px;
958
+ }
959
+
960
+ .previewLegend > span {
961
+ display: inline-flex;
962
+ align-items: center;
963
+ gap: 4px;
964
+ }
965
+
966
+ .previewLegend i {
967
+ width: 9px;
968
+ height: 9px;
969
+ border: 1px solid transparent;
970
+ border-radius: 2px;
971
+ }
972
+
973
+ /* Swatch hues. `DECORATION_TINT` keeps its hex: Univer paints the cells on a canvas. */
974
+ .legendAdd { border-color: var(--tita-tone-green-line) !important; background: var(--tita-tone-green-tint); }
975
+ .legendModify { border-color: var(--tita-tone-amber-line) !important; background: var(--tita-tone-amber-tint); }
976
+ .legendRemove { border-color: var(--sheet-danger-line) !important; background: var(--sheet-danger-soft); }
977
+
978
+ .historyDetailHeader span {
979
+ color: var(--sheet-ink-faint);
980
+ }
981
+
982
+ .historyReplayActions {
983
+ display: flex;
984
+ gap: 5px;
985
+ flex: 0 0 auto;
986
+ }
987
+
988
+ .drawerLayer {
989
+ position: absolute;
990
+ z-index: 40;
991
+ inset: 0;
992
+ pointer-events: none;
993
+ }
994
+
995
+ .drawerBackdrop {
996
+ position: absolute;
997
+ inset: 0;
998
+ width: 100%;
999
+ border: 0;
1000
+ background: var(--tita-scrim);
1001
+ cursor: default;
1002
+ pointer-events: auto;
1003
+ }
1004
+
1005
+ .historyDrawer,
1006
+ .workbookManager {
1007
+ position: absolute;
1008
+ z-index: 1;
1009
+ top: 0;
1010
+ right: 0;
1011
+ bottom: 0;
1012
+ display: flex;
1013
+ flex-direction: column;
1014
+ width: min(400px, 92%);
1015
+ padding: 16px;
1016
+ border-left: 1px solid var(--sheet-line);
1017
+ background: var(--sheet-surface);
1018
+ box-shadow: -10px 0 24px rgb(17 24 39 / 0.12);
1019
+ pointer-events: auto;
1020
+ }
1021
+
1022
+ .drawerHeader {
1023
+ display: flex;
1024
+ align-items: flex-start;
1025
+ justify-content: space-between;
1026
+ gap: 8px;
1027
+ flex-shrink: 0;
1028
+ padding-bottom: 11px;
1029
+ border-bottom: 1px solid var(--sheet-line);
1030
+ }
1031
+
1032
+ .drawerHeader > div {
1033
+ color: var(--sheet-ink);
1034
+ }
1035
+
1036
+ .drawerHeader small,
1037
+ .workbookManagerHint {
1038
+ color: var(--sheet-ink-faint);
1039
+ font-size: 12px;
1040
+ }
1041
+
1042
+ .iconButton {
1043
+ width: 30px;
1044
+ height: 30px;
1045
+ padding: 0;
1046
+ font-size: 17px;
1047
+ line-height: 1;
1048
+ }
1049
+
1050
+ .workbookManagerHint {
1051
+ flex-shrink: 0;
1052
+ padding: 11px 1px;
1053
+ line-height: 1.55;
1054
+ }
1055
+
1056
+ .workbookManagerList {
1057
+ display: flex;
1058
+ flex-direction: column;
1059
+ gap: 6px;
1060
+ flex: 1;
1061
+ }
1062
+
1063
+ .workbookManagerItem {
1064
+ display: flex;
1065
+ align-items: center;
1066
+ justify-content: space-between;
1067
+ gap: 9px;
1068
+ padding: 9px;
1069
+ border: 1px solid var(--sheet-line);
1070
+ border-radius: 5px;
1071
+ background: var(--sheet-surface);
1072
+ }
1073
+
1074
+ .workbookManagerItem:hover {
1075
+ border-color: var(--sheet-line-strong);
1076
+ background: var(--sheet-surface-muted);
1077
+ }
1078
+
1079
+ .workbookManagerMeta {
1080
+ display: flex;
1081
+ flex-direction: column;
1082
+ gap: 3px;
1083
+ min-width: 0;
1084
+ }
1085
+
1086
+ .workbookManagerMeta strong,
1087
+ .workbookManagerMeta small {
1088
+ overflow: hidden;
1089
+ text-overflow: ellipsis;
1090
+ white-space: nowrap;
1091
+ }
1092
+
1093
+ .workbookManagerMeta strong {
1094
+ color: var(--sheet-ink);
1095
+ font-size: 13px;
1096
+ }
1097
+
1098
+ .workbookManagerMeta small {
1099
+ color: var(--sheet-ink-faint);
1100
+ font-size: 12px;
1101
+ }
1102
+
1103
+ .dangerButton {
1104
+ height: 29px;
1105
+ padding: 3px 8px;
1106
+ border-color: var(--sheet-danger-line);
1107
+ color: var(--sheet-danger);
1108
+ background: var(--sheet-danger-soft);
1109
+ font-size: 12px;
1110
+ }
1111
+
1112
+ .dangerButton:hover:not(:disabled) {
1113
+ border-color: var(--sheet-danger);
1114
+ background: color-mix(in srgb, var(--sheet-danger) 16%, var(--tita-surface));
1115
+ }
1116
+
1117
+ @media (max-width: 760px) {
1118
+ .header {
1119
+ flex-wrap: wrap;
1120
+ padding: 4px 8px;
1121
+ }
1122
+
1123
+ .workbookPickerAnchor {
1124
+ flex: 1 1 100%;
1125
+ }
1126
+
1127
+ .workbookPickerButton {
1128
+ width: 100%;
1129
+ }
1130
+
1131
+ .headerStatusGroup,
1132
+ .status {
1133
+ margin-left: 0;
1134
+ }
1135
+
1136
+ .body {
1137
+ padding: 8px;
1138
+ }
1139
+
1140
+ .conflictPanel,
1141
+ .proposal {
1142
+ align-items: flex-start;
1143
+ flex-direction: column;
1144
+ }
1145
+
1146
+ .conflictActions,
1147
+ .proposalActions {
1148
+ width: 100%;
1149
+ }
1150
+
1151
+ .historyDrawer,
1152
+ .workbookManager {
1153
+ width: min(390px, 94%);
1154
+ }
1155
+ }
1156
+
1157
+ /* Workbook actions are application dialogs rather than browser prompt/confirm
1158
+ * surfaces, so they stay inside the same compact command surface. */
1159
+ .panel {
1160
+ position: relative;
1161
+ }
1162
+
1163
+ .workbookPickerButton {
1164
+ width: min(420px, 100%);
1165
+ max-width: 100%;
1166
+ }
1167
+
1168
+ .workbookPickerMenu {
1169
+ width: min(clamp(280px, 32vw, 420px), calc(100vw - 24px));
1170
+ }
1171
+
1172
+ .workbookOptionMain {
1173
+ max-width: 100%;
1174
+ }
1175
+
1176
+ .workbookOptionMain strong {
1177
+ max-width: 100%;
1178
+ }
1179
+
1180
+ .buttonIcon,
1181
+ .menuIcon {
1182
+ display: inline-flex;
1183
+ align-items: center;
1184
+ justify-content: center;
1185
+ flex: 0 0 auto;
1186
+ }
1187
+
1188
+ .buttonIcon {
1189
+ margin-right: 2px;
1190
+ }
1191
+
1192
+ .menuIcon {
1193
+ width: 26px;
1194
+ height: 26px;
1195
+ border: 1px solid var(--sheet-line);
1196
+ border-radius: 6px;
1197
+ color: var(--sheet-accent);
1198
+ background: var(--sheet-accent-soft);
1199
+ }
1200
+
1201
+ .menuItemText {
1202
+ display: flex;
1203
+ min-width: 0;
1204
+ flex: 1;
1205
+ flex-direction: column;
1206
+ gap: 1px;
1207
+ text-align: left;
1208
+ }
1209
+
1210
+ .menuItemText strong {
1211
+ color: var(--sheet-ink);
1212
+ font-size: 12px;
1213
+ font-weight: 600;
1214
+ }
1215
+
1216
+ .menuItemText small {
1217
+ overflow: hidden;
1218
+ color: var(--sheet-ink-faint);
1219
+ font-size: 10px;
1220
+ text-overflow: ellipsis;
1221
+ white-space: nowrap;
1222
+ }
1223
+
1224
+ .toolbarMenuItem {
1225
+ display: flex;
1226
+ align-items: center;
1227
+ gap: 8px;
1228
+ width: 100%;
1229
+ text-align: left;
1230
+ }
1231
+
1232
+ .dialogLayer {
1233
+ position: absolute;
1234
+ z-index: 500;
1235
+ inset: 0;
1236
+ display: grid;
1237
+ place-items: center;
1238
+ padding: 16px;
1239
+ }
1240
+
1241
+ .dialogBackdrop {
1242
+ position: absolute;
1243
+ inset: 0;
1244
+ border: 0;
1245
+ background: var(--tita-scrim);
1246
+ cursor: default;
1247
+ }
1248
+
1249
+ .dialog {
1250
+ position: relative;
1251
+ z-index: 1;
1252
+ width: min(360px, 100%);
1253
+ padding: 16px;
1254
+ border: 1px solid var(--sheet-line-strong);
1255
+ border-radius: 10px;
1256
+ background: var(--sheet-surface);
1257
+ box-shadow: 0 20px 50px rgb(15 23 42 / 0.2), 0 4px 12px rgb(15 23 42 / 0.08);
1258
+ }
1259
+
1260
+ .dialogHeader {
1261
+ display: flex;
1262
+ align-items: flex-start;
1263
+ justify-content: space-between;
1264
+ gap: 12px;
1265
+ margin-bottom: 14px;
1266
+ }
1267
+
1268
+ .dialogHeader > div {
1269
+ display: flex;
1270
+ flex-direction: column;
1271
+ gap: 4px;
1272
+ }
1273
+
1274
+ .dialogHeader strong {
1275
+ color: var(--sheet-ink);
1276
+ font-size: 14px;
1277
+ }
1278
+
1279
+ .dialogHeader span,
1280
+ .dialogMessage {
1281
+ color: var(--sheet-ink-muted);
1282
+ font-size: 12px;
1283
+ line-height: 1.6;
1284
+ }
1285
+
1286
+ .dialogClose {
1287
+ width: 24px;
1288
+ height: 24px;
1289
+ padding: 0;
1290
+ border: 0;
1291
+ border-radius: 5px;
1292
+ color: var(--sheet-ink-faint);
1293
+ background: transparent;
1294
+ font-size: 18px;
1295
+ line-height: 1;
1296
+ cursor: pointer;
1297
+ }
1298
+
1299
+ .dialogClose:hover:not(:disabled) {
1300
+ color: var(--sheet-ink);
1301
+ background: var(--sheet-surface-muted);
1302
+ }
1303
+
1304
+ .dialogField {
1305
+ display: flex;
1306
+ flex-direction: column;
1307
+ gap: 6px;
1308
+ color: var(--sheet-ink-muted);
1309
+ font-size: 12px;
1310
+ }
1311
+
1312
+ .dialogField input {
1313
+ width: 100%;
1314
+ height: 34px;
1315
+ padding: 5px 9px;
1316
+ border: 1px solid var(--sheet-line-strong);
1317
+ border-radius: 6px;
1318
+ color: var(--sheet-ink);
1319
+ background: var(--sheet-surface);
1320
+ }
1321
+
1322
+ .dialogMessage {
1323
+ margin: 0 0 16px;
1324
+ }
1325
+
1326
+ .dialogActions {
1327
+ display: flex;
1328
+ justify-content: flex-end;
1329
+ gap: 7px;
1330
+ margin-top: 16px;
1331
+ }
1332
+
1333
+ .dialogCancel,
1334
+ .dialogConfirm,
1335
+ .dialogDanger {
1336
+ min-width: 70px;
1337
+ height: 30px;
1338
+ padding: 4px 11px;
1339
+ border: 1px solid var(--sheet-line-strong);
1340
+ border-radius: 6px;
1341
+ font-size: 12px;
1342
+ cursor: pointer;
1343
+ }
1344
+
1345
+ .dialogCancel {
1346
+ color: var(--sheet-ink-muted);
1347
+ background: var(--sheet-surface);
1348
+ }
1349
+
1350
+ .dialogConfirm {
1351
+ border-color: var(--sheet-accent);
1352
+ color: var(--tita-primary-foreground);
1353
+ background: var(--sheet-accent);
1354
+ }
1355
+
1356
+ /* Text on a filled danger plate; `--tita-danger-foreground` inverts with the theme. */
1357
+ .dialogDanger {
1358
+ border-color: var(--sheet-danger);
1359
+ color: var(--tita-danger-foreground);
1360
+ background: var(--sheet-danger);
1361
+ }
1362
+
1363
+ .dialogCancel:hover:not(:disabled) {
1364
+ background: var(--sheet-surface-muted);
1365
+ }
1366
+
1367
+ .dialogConfirm:hover:not(:disabled) {
1368
+ background: var(--tita-primary-hover);
1369
+ }
1370
+
1371
+ .dialogDanger:hover:not(:disabled) {
1372
+ /* `--tita-danger-hover`: the host's red-500 in light, red-400 in dark. */
1373
+ background: var(--tita-danger-hover);
1374
+ }
1375
+
1376
+ .dialogCancel:disabled,
1377
+ .dialogConfirm:disabled,
1378
+ .dialogDanger:disabled {
1379
+ opacity: 0.55;
1380
+ cursor: not-allowed;
1381
+ }
1382
+
1383
+ /* Unified DSH command surface. These final rules intentionally keep the
1384
+ * sheet header visually aligned with the host's tab
1385
+ * strip: compact, neutral, and shadcn-like without adding a runtime UI
1386
+ * dependency to the plugin. */
1387
+ .panel {
1388
+ /* The palette restated here is gone: a second answer for the same tokens. */
1389
+ letter-spacing: 0.005em;
1390
+ }
1391
+
1392
+ .header {
1393
+ z-index: 40;
1394
+ isolation: isolate;
1395
+ min-height: 40px;
1396
+ height: 40px;
1397
+ padding: 4px 12px;
1398
+ gap: 5px;
1399
+ overflow: visible;
1400
+ }
1401
+
1402
+ .workbookPickerAnchor {
1403
+ flex: 1 1 auto;
1404
+ min-width: 0;
1405
+ }
1406
+
1407
+ .workbookPickerButton {
1408
+ width: min(360px, 100%);
1409
+ height: 30px;
1410
+ padding: 3px 8px;
1411
+ border-radius: 6px;
1412
+ }
1413
+
1414
+ .workbookPickerButton strong {
1415
+ font-size: 12px;
1416
+ font-weight: 600;
1417
+ }
1418
+
1419
+ .workbookPickerLabel {
1420
+ color: var(--sheet-ink-muted);
1421
+ font-size: 11px;
1422
+ font-weight: 500;
1423
+ }
1424
+
1425
+ .headerActions {
1426
+ display: inline-flex;
1427
+ align-items: center;
1428
+ gap: 4px;
1429
+ min-width: 0;
1430
+ margin-left: auto;
1431
+ flex: 0 0 auto;
1432
+ }
1433
+
1434
+ .headerActions::before {
1435
+ width: 1px;
1436
+ height: 20px;
1437
+ margin: 0 3px 0 1px;
1438
+ background: var(--sheet-line);
1439
+ content: '';
1440
+ }
1441
+
1442
+ .headerActions .toolbarMenuAnchor {
1443
+ display: inline-flex;
1444
+ }
1445
+
1446
+ .actionButton,
1447
+ .iconButton {
1448
+ height: 30px;
1449
+ padding: 3px 9px;
1450
+ border-color: var(--sheet-line-strong);
1451
+ border-radius: 6px;
1452
+ color: var(--sheet-ink-muted);
1453
+ background: var(--sheet-surface);
1454
+ font-size: 12px;
1455
+ }
1456
+
1457
+ .actionButton:hover:not(:disabled),
1458
+ .iconButton:hover:not(:disabled),
1459
+ .workbookPickerButton:hover:not(:disabled),
1460
+ .workbookPickerButton[aria-expanded='true'] {
1461
+ border-color: var(--tita-primary-line);
1462
+ color: var(--sheet-accent);
1463
+ background: var(--sheet-accent-soft);
1464
+ }
1465
+
1466
+ .headerStatusGroup {
1467
+ gap: 6px;
1468
+ margin-left: 3px;
1469
+ padding-left: 8px;
1470
+ border-left: 1px solid var(--sheet-line);
1471
+ }
1472
+
1473
+ .status {
1474
+ gap: 5px;
1475
+ margin-left: 0;
1476
+ color: var(--sheet-ink-muted);
1477
+ font-size: 11px;
1478
+ }
1479
+
1480
+ .status i {
1481
+ width: 6px;
1482
+ height: 6px;
1483
+ }
1484
+
1485
+ .switchingLabel {
1486
+ font-size: 11px;
1487
+ }
1488
+
1489
+ .workbookPickerMenu,
1490
+ .toolbarMenu {
1491
+ z-index: 200;
1492
+ border-color: var(--sheet-line-strong);
1493
+ border-radius: 8px;
1494
+ box-shadow: 0 16px 36px rgb(15 23 42 / 0.16), 0 2px 7px rgb(15 23 42 / 0.06);
1495
+ }
1496
+
1497
+ .workbookPickerMenu {
1498
+ width: min(360px, calc(100vw - 24px));
1499
+ max-height: min(500px, calc(100vh - 58px));
1500
+ }
1501
+
1502
+ .toolbarMenu {
1503
+ min-width: 156px;
1504
+ padding: 5px;
1505
+ }
1506
+
1507
+ .toolbarMenu button {
1508
+ min-height: 30px;
1509
+ padding: 5px 8px;
1510
+ border-radius: 5px;
1511
+ font-size: 12px;
1512
+ }
1513
+
1514
+ .toolbarMenu button:hover {
1515
+ color: var(--sheet-accent);
1516
+ background: var(--sheet-accent-soft);
1517
+ }
1518
+
1519
+ .body {
1520
+ z-index: 0;
1521
+ padding: 0;
1522
+ }
1523
+
1524
+ .body > .hint {
1525
+ margin: auto;
1526
+ }
1527
+
1528
+ /* Standalone page: the toast still floats; the notice stays an in-flow banner. */
1529
+ .toast {
1530
+ z-index: 120;
1531
+ top: 8px;
1532
+ right: 12px;
1533
+ }
1534
+
1535
+ .notice {
1536
+ margin-inline: 12px;
1537
+ margin-top: 8px;
1538
+ }
1539
+
1540
+ .conflictPanel,
1541
+ .proposals,
1542
+ .worktreeDiffPanel,
1543
+ .historyPanel {
1544
+ margin-inline: 10px;
1545
+ }
1546
+
1547
+ .conflictPanel {
1548
+ margin-top: 8px;
1549
+ }
1550
+
1551
+ .drawerLayer {
1552
+ z-index: 300;
1553
+ }
1554
+
1555
+ @media (max-width: 760px) {
1556
+ .header {
1557
+ height: auto;
1558
+ min-height: 40px;
1559
+ }
1560
+
1561
+ .workbookPickerAnchor {
1562
+ flex: 1 1 100%;
1563
+ }
1564
+
1565
+ .headerActions {
1566
+ margin-left: 0;
1567
+ }
1568
+
1569
+ .headerActions::before {
1570
+ display: none;
1571
+ }
1572
+
1573
+ .headerStatusGroup {
1574
+ margin-left: 0;
1575
+ padding-left: 0;
1576
+ border-left: 0;
1577
+ }
1578
+ }