@jxsuite/studio 2.0.0 → 2.1.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 (419) hide show
  1. package/canvas.html +21 -0
  2. package/dist/chunks/Overlay.dev-qfjzkms8.js +23 -0
  3. package/dist/chunks/{Overlay.dev-cszx7yn5.js.map → Overlay.dev-qfjzkms8.js.map} +1 -1
  4. package/dist/chunks/{adapter-z8fkmbmv.js → adapter-qfnesn5v.js} +2 -2
  5. package/dist/chunks/{cf-settings-mmyv436d.js → cf-settings-73sh5z4p.js} +3 -3
  6. package/dist/chunks/{components-0hzentwq.js → components-2bpqp4mq.js} +5 -7
  7. package/dist/chunks/{components-0hzentwq.js.map → components-2bpqp4mq.js.map} +1 -1
  8. package/dist/chunks/content-source-34gnkbnn.js +38 -0
  9. package/dist/chunks/content-source-34gnkbnn.js.map +9 -0
  10. package/dist/chunks/convert-to-repeater-t8kxre5s.js +258 -0
  11. package/dist/chunks/convert-to-repeater-t8kxre5s.js.map +10 -0
  12. package/dist/chunks/extension-sections-6mqydz35.js +301 -0
  13. package/dist/chunks/extension-sections-6mqydz35.js.map +11 -0
  14. package/dist/chunks/files-8kn321h1.js +70 -0
  15. package/dist/chunks/files-8kn321h1.js.map +9 -0
  16. package/dist/chunks/{format-host-2c188n41.js → format-host-mkwsmt8d.js} +3 -3
  17. package/dist/chunks/git-panel-tjbr191d.js +51 -0
  18. package/dist/chunks/git-panel-tjbr191d.js.map +9 -0
  19. package/dist/chunks/{index-baeg2x3y.js → index-7pxchcce.js} +4 -3
  20. package/dist/chunks/{index-baeg2x3y.js.map → index-7pxchcce.js.map} +3 -3
  21. package/dist/chunks/{jx-validate-qx8degj7.js → jx-validate-v6qgknrs.js} +3 -3
  22. package/dist/chunks/layers-panel-87pb25km.js +58 -0
  23. package/dist/chunks/layers-panel-87pb25km.js.map +9 -0
  24. package/dist/chunks/{monaco-setup-zjdp9zdw.js → monaco-setup-e0yh25j4.js} +4 -75
  25. package/dist/chunks/{monaco-setup-zjdp9zdw.js.map → monaco-setup-e0yh25j4.js.map} +3 -4
  26. package/dist/chunks/publish-panel-m0fcgdrt.js +21 -0
  27. package/dist/chunks/publish-panel-m0fcgdrt.js.map +9 -0
  28. package/dist/chunks/quick-search-rhs6cbsb.js +53 -0
  29. package/dist/chunks/quick-search-rhs6cbsb.js.map +9 -0
  30. package/dist/chunks/right-panel-zpdxd98t.js +37 -0
  31. package/dist/chunks/right-panel-zpdxd98t.js.map +9 -0
  32. package/dist/chunks/section-registry-zmckaxf4.js +30 -0
  33. package/dist/chunks/section-registry-zmckaxf4.js.map +9 -0
  34. package/dist/chunks/sp-overlay.dev-9ran0sfq.js +18 -0
  35. package/dist/chunks/sp-overlay.dev-9ran0sfq.js.map +9 -0
  36. package/dist/chunks/sp-popover.dev-rebmdncr.js +9 -0
  37. package/dist/chunks/sp-popover.dev-rebmdncr.js.map +9 -0
  38. package/dist/chunks/sp-progress-circle.dev-5vkppfkt.js +15 -0
  39. package/dist/chunks/sp-progress-circle.dev-5vkppfkt.js.map +9 -0
  40. package/dist/chunks/sp-tooltip.dev-ykqrg8h5.js +15 -0
  41. package/dist/chunks/sp-tooltip.dev-ykqrg8h5.js.map +9 -0
  42. package/dist/chunks/{sp-tray.dev-pb2fsd65.js → sp-tray.dev-ey59vfh7.js} +10 -8
  43. package/dist/chunks/{sp-tray.dev-pb2fsd65.js.map → sp-tray.dev-ey59vfh7.js.map} +2 -2
  44. package/dist/chunks/{studio-9qr6fq7p.js → studio-0rqqhrdy.js} +10 -378
  45. package/dist/chunks/{studio-9qr6fq7p.js.map → studio-0rqqhrdy.js.map} +4 -14
  46. package/dist/chunks/{studio-5x6tqqec.js → studio-2sj1jj3v.js} +10 -8
  47. package/dist/chunks/{studio-5x6tqqec.js.map → studio-2sj1jj3v.js.map} +2 -2
  48. package/dist/chunks/{studio-h3fw0wn8.js → studio-3fk1ac9z.js} +6 -4
  49. package/dist/chunks/{studio-h3fw0wn8.js.map → studio-3fk1ac9z.js.map} +2 -2
  50. package/dist/chunks/studio-41exgzhq.js +6690 -0
  51. package/dist/chunks/studio-41exgzhq.js.map +38 -0
  52. package/dist/chunks/{studio-7v2bpweq.js → studio-4mqb9a0j.js} +6 -4
  53. package/dist/chunks/{studio-7v2bpweq.js.map → studio-4mqb9a0j.js.map} +2 -2
  54. package/dist/chunks/studio-50k77cca.js +1787 -0
  55. package/dist/chunks/studio-50k77cca.js.map +18 -0
  56. package/dist/chunks/{studio-56v3zwk6.js → studio-6a0h7sne.js} +10 -8
  57. package/dist/chunks/{studio-56v3zwk6.js.map → studio-6a0h7sne.js.map} +2 -2
  58. package/dist/chunks/studio-6f0am8f2.js +53 -0
  59. package/dist/chunks/studio-6f0am8f2.js.map +10 -0
  60. package/dist/chunks/studio-6nmjc5qk.js +7002 -0
  61. package/dist/chunks/studio-6nmjc5qk.js.map +32 -0
  62. package/dist/chunks/studio-7afd21nw.js +67 -0
  63. package/dist/chunks/studio-7afd21nw.js.map +10 -0
  64. package/dist/chunks/{studio-xze4zrs1.js → studio-7bmdvzne.js} +2 -2
  65. package/dist/chunks/studio-7bmdvzne.js.map +10 -0
  66. package/dist/chunks/studio-8jpzqk5s.js +128 -0
  67. package/dist/chunks/studio-8jpzqk5s.js.map +10 -0
  68. package/dist/chunks/studio-94m77tgk.js +1482 -0
  69. package/dist/chunks/studio-94m77tgk.js.map +13 -0
  70. package/dist/chunks/studio-9je6w5sq.js +1000 -0
  71. package/dist/chunks/studio-9je6w5sq.js.map +16 -0
  72. package/dist/chunks/{studio-w7c6kvk7.js → studio-a7pzveq1.js} +2 -2
  73. package/dist/chunks/{studio-97qcgvdn.js → studio-adn0z1k3.js} +14 -8
  74. package/dist/chunks/{studio-97qcgvdn.js.map → studio-adn0z1k3.js.map} +3 -3
  75. package/dist/chunks/{studio-kr88ryr7.js → studio-bsxxx3x2.js} +17 -15
  76. package/dist/chunks/{studio-kr88ryr7.js.map → studio-bsxxx3x2.js.map} +7 -6
  77. package/dist/chunks/studio-bw5dz6km.js +608 -0
  78. package/dist/chunks/studio-bw5dz6km.js.map +21 -0
  79. package/dist/chunks/studio-c6s5getc.js +4232 -0
  80. package/dist/chunks/studio-c6s5getc.js.map +39 -0
  81. package/dist/chunks/studio-cjm7fdjf.js +451 -0
  82. package/dist/chunks/studio-cjm7fdjf.js.map +14 -0
  83. package/dist/chunks/{studio-cx91mnh8.js → studio-ckwz4d3x.js} +53 -53
  84. package/dist/chunks/{studio-cx91mnh8.js.map → studio-ckwz4d3x.js.map} +5 -5
  85. package/dist/chunks/studio-dg7zyt5x.js +28 -0
  86. package/dist/chunks/studio-dg7zyt5x.js.map +10 -0
  87. package/dist/chunks/studio-dzcyvvvz.js +166 -0
  88. package/dist/chunks/studio-dzcyvvvz.js.map +10 -0
  89. package/dist/chunks/{studio-7kqe41sa.js → studio-evkr5d3b.js} +15 -7
  90. package/dist/chunks/{studio-7kqe41sa.js.map → studio-evkr5d3b.js.map} +5 -4
  91. package/dist/chunks/studio-f12h6177.js +411 -0
  92. package/dist/chunks/studio-f12h6177.js.map +13 -0
  93. package/dist/chunks/studio-hbp1s8m9.js +1817 -0
  94. package/dist/chunks/studio-hbp1s8m9.js.map +14 -0
  95. package/dist/chunks/studio-k2sxjph5.js +15295 -0
  96. package/dist/chunks/studio-k2sxjph5.js.map +235 -0
  97. package/dist/chunks/studio-myje51t3.js +385 -0
  98. package/dist/chunks/studio-myje51t3.js.map +12 -0
  99. package/dist/chunks/studio-na6rwzhw.js +353 -0
  100. package/dist/chunks/studio-na6rwzhw.js.map +11 -0
  101. package/dist/chunks/{studio-4k0m4fmp.js → studio-p471gg5n.js} +126 -3
  102. package/dist/chunks/studio-p471gg5n.js.map +14 -0
  103. package/dist/chunks/{studio-9bjwf0d4.js → studio-rgwcpast.js} +5 -46
  104. package/dist/chunks/{studio-9bjwf0d4.js.map → studio-rgwcpast.js.map} +4 -5
  105. package/dist/chunks/{studio-hhj92gcr.js → studio-s519zc99.js} +3 -3
  106. package/dist/chunks/studio-sas7mt3k.js +75 -0
  107. package/dist/chunks/studio-sas7mt3k.js.map +10 -0
  108. package/dist/chunks/studio-t5wqwzdh.js +74 -0
  109. package/dist/chunks/studio-t5wqwzdh.js.map +10 -0
  110. package/dist/chunks/{studio-9qpspwfn.js → studio-temv5bw4.js} +5 -5
  111. package/dist/chunks/{studio-9qpspwfn.js.map → studio-temv5bw4.js.map} +1 -1
  112. package/dist/chunks/{studio-qkvt37c0.js → studio-tr20m8g8.js} +669 -18
  113. package/dist/chunks/studio-tr20m8g8.js.map +9 -0
  114. package/dist/chunks/{studio-ygzav7z5.js → studio-v96qfnww.js} +5514 -4291
  115. package/dist/chunks/studio-v96qfnww.js.map +54 -0
  116. package/dist/chunks/studio-vcetc91k.js +659 -0
  117. package/dist/chunks/studio-vcetc91k.js.map +10 -0
  118. package/dist/chunks/{studio-n9zmpxjg.js → studio-vmymjefp.js} +2972 -4937
  119. package/dist/chunks/studio-vmymjefp.js.map +98 -0
  120. package/dist/chunks/{studio-bghqfmea.js → studio-wwseqyw0.js} +2 -2
  121. package/dist/chunks/studio-x9hmy5kr.js +390 -0
  122. package/dist/chunks/studio-x9hmy5kr.js.map +10 -0
  123. package/dist/chunks/studio-xa0ce0n7.js +335 -0
  124. package/dist/chunks/studio-xa0ce0n7.js.map +10 -0
  125. package/dist/chunks/studio-xm3dbxvn.js +378 -0
  126. package/dist/chunks/studio-xm3dbxvn.js.map +19 -0
  127. package/dist/chunks/{studio-nqw433kv.js → studio-xmvbhg31.js} +2 -2
  128. package/dist/chunks/studio-zv37yrfa.js +1054 -0
  129. package/dist/chunks/studio-zv37yrfa.js.map +13 -0
  130. package/dist/chunks/{ws-client-q7hkz3j9.js → ws-client-654ts66j.js} +6 -4
  131. package/dist/chunks/ws-client-654ts66j.js.map +11 -0
  132. package/dist/iframe-entry.js +668 -230
  133. package/dist/studio.js +23711 -35185
  134. package/index.html +35 -4685
  135. package/package.json +17 -15
  136. package/src/about/about-modal.ts +42 -11
  137. package/src/browse/library-commands.ts +240 -0
  138. package/src/browse/library-layouts.ts +369 -0
  139. package/src/browse/library-model.ts +396 -0
  140. package/src/browse/library-pane.ts +1049 -0
  141. package/src/browse/library-preview.ts +252 -0
  142. package/src/browse/library-source.ts +150 -0
  143. package/src/canvas/canvas-helpers.ts +33 -9
  144. package/src/canvas/canvas-live-render.ts +45 -29
  145. package/src/canvas/canvas-patcher.ts +151 -31
  146. package/src/canvas/canvas-perf.ts +46 -7
  147. package/src/canvas/canvas-render.ts +1092 -220
  148. package/src/canvas/canvas-surface.ts +240 -0
  149. package/src/canvas/canvas-utils.ts +1166 -124
  150. package/src/canvas/iframe-drop.ts +2 -1
  151. package/src/canvas/iframe-entry.ts +241 -4
  152. package/src/canvas/iframe-host.ts +1226 -143
  153. package/src/canvas/iframe-inline-edit.ts +31 -0
  154. package/src/canvas/iframe-interaction.ts +76 -16
  155. package/src/canvas/iframe-keys.ts +107 -45
  156. package/src/canvas/iframe-overlay.ts +38 -1
  157. package/src/canvas/iframe-protocol.ts +137 -2
  158. package/src/canvas/iframe-render.ts +70 -2
  159. package/src/canvas/iframe-slash.ts +6 -0
  160. package/src/canvas/path-mapping.ts +56 -6
  161. package/src/canvas/surface-registry.ts +292 -0
  162. package/src/collab/collab-commands.ts +244 -0
  163. package/src/collab/collab-session.ts +198 -32
  164. package/src/collab/collab-state.ts +28 -2
  165. package/src/collab/presence-chips.ts +100 -9
  166. package/src/commands/active-registry.ts +42 -0
  167. package/src/commands/app-commands.ts +176 -0
  168. package/src/commands/budget.ts +158 -0
  169. package/src/commands/command-args.ts +253 -0
  170. package/src/commands/context.ts +387 -0
  171. package/src/commands/defaults.ts +580 -0
  172. package/src/commands/keymap.ts +571 -0
  173. package/src/commands/levels.ts +345 -0
  174. package/src/commands/live-context.ts +193 -0
  175. package/src/commands/reference.ts +227 -0
  176. package/src/commands/registry.ts +293 -0
  177. package/src/component-props.ts +3 -2
  178. package/src/content/draft-state.ts +106 -0
  179. package/src/content/entry-commands.ts +282 -0
  180. package/src/content/entry-editor.ts +327 -0
  181. package/src/content/entry-fields.ts +116 -0
  182. package/src/content/entry-model.ts +175 -0
  183. package/src/editor/canvas-context-menu.ts +17 -11
  184. package/src/editor/canvas-slash-bridge.ts +11 -4
  185. package/src/editor/context-menu.ts +804 -204
  186. package/src/editor/convert-to-component.ts +31 -10
  187. package/src/editor/convert-to-repeater.ts +3 -2
  188. package/src/editor/inline-edit-apply.ts +5 -5
  189. package/src/editor/inline-edit.ts +86 -50
  190. package/src/editor/insert-zone-action.ts +1 -1
  191. package/src/editor/shortcuts.ts +1043 -329
  192. package/src/editor/slash-menu.ts +1 -0
  193. package/src/files/elements.ts +166 -0
  194. package/src/files/file-ops.ts +178 -31
  195. package/src/files/files.ts +898 -268
  196. package/src/files/fs-events.ts +21 -0
  197. package/src/files/media-meta.ts +203 -0
  198. package/src/files/media-paths.ts +141 -0
  199. package/src/files/media-upload.ts +7 -3
  200. package/src/files/media-usage.ts +189 -0
  201. package/src/github/github-auth.ts +235 -33
  202. package/src/github/github-publish.ts +80 -21
  203. package/src/grid/grid-controller.ts +152 -12
  204. package/src/grid/grid-layout.ts +225 -20
  205. package/src/grid/grid-open.ts +120 -0
  206. package/src/grid/grid-panel.ts +554 -39
  207. package/src/grid/grid-source.ts +27 -1
  208. package/src/grid/redirects-grid.ts +599 -0
  209. package/src/grid/redirects.ts +398 -0
  210. package/src/grid/sources/content-source.ts +108 -2
  211. package/src/i18n/i18n-commands.ts +322 -0
  212. package/src/new-project/add-repo-modal.ts +8 -10
  213. package/src/new-project/import-tab.ts +34 -9
  214. package/src/new-project/location-fields.ts +9 -1
  215. package/src/new-project/new-project-modal.ts +270 -262
  216. package/src/packages/jxsuite-update.ts +97 -48
  217. package/src/packages/pull-package-sync.ts +18 -9
  218. package/src/page-params.ts +2 -1
  219. package/src/panels/activity-bar.ts +152 -91
  220. package/src/panels/activity-panel.ts +481 -0
  221. package/src/panels/ai-chat/chat-markdown.ts +8 -3
  222. package/src/panels/ai-chat/chat-view.ts +245 -18
  223. package/src/panels/ai-chat/composer.ts +31 -5
  224. package/src/panels/ai-chat/sessions-view.ts +17 -10
  225. package/src/panels/ai-panel.ts +279 -120
  226. package/src/panels/block-action-bar.ts +1115 -224
  227. package/src/panels/bottom-dock.ts +337 -0
  228. package/src/panels/canvas-dnd-bridge.ts +37 -8
  229. package/src/panels/chat-panel.ts +29 -12
  230. package/src/panels/data-explorer.ts +254 -112
  231. package/src/panels/data-grid.ts +10 -4
  232. package/src/panels/dnd.ts +28 -51
  233. package/src/panels/editors.ts +434 -107
  234. package/src/panels/elements-panel.ts +66 -2
  235. package/src/panels/empty-state.ts +112 -0
  236. package/src/panels/events-panel.ts +596 -82
  237. package/src/panels/formula-workspace.ts +408 -218
  238. package/src/panels/frontmatter-fields.ts +51 -10
  239. package/src/panels/frontmatter-panel.ts +357 -79
  240. package/src/panels/git-panel.ts +375 -164
  241. package/src/panels/head-panel.ts +791 -85
  242. package/src/panels/i18n-panel.ts +592 -0
  243. package/src/panels/imports-panel.ts +95 -85
  244. package/src/panels/jump-bar.ts +584 -0
  245. package/src/panels/layers-panel.ts +1106 -328
  246. package/src/panels/left-panel.ts +109 -204
  247. package/src/panels/navigator-panels.ts +131 -0
  248. package/src/panels/overlays.ts +7 -2
  249. package/src/panels/pane-context.ts +1477 -0
  250. package/src/panels/pane-grid.ts +406 -0
  251. package/src/panels/panel-registry.ts +340 -0
  252. package/src/panels/panel-scheduler.ts +75 -0
  253. package/src/panels/problems-panel.ts +234 -0
  254. package/src/panels/properties-panel.ts +946 -1139
  255. package/src/panels/provenance.ts +258 -0
  256. package/src/panels/quick-search.ts +791 -122
  257. package/src/panels/right-panel.ts +228 -102
  258. package/src/panels/seo-modal.ts +395 -0
  259. package/src/panels/settings-pane.ts +203 -0
  260. package/src/panels/signals-panel.ts +354 -137
  261. package/src/panels/statement-editor.ts +41 -25
  262. package/src/panels/statusbar.ts +342 -106
  263. package/src/panels/style-panel.ts +974 -463
  264. package/src/panels/style-utils.ts +3 -3
  265. package/src/panels/stylebook-doc.ts +4 -2
  266. package/src/panels/stylebook-layers-panel.ts +3 -2
  267. package/src/panels/stylebook-panel.ts +51 -26
  268. package/src/panels/tab-strip.ts +1058 -78
  269. package/src/panels/target-line.ts +274 -0
  270. package/src/panels/toolbar.ts +631 -484
  271. package/src/panels/welcome-screen.ts +301 -198
  272. package/src/platform-errors.ts +26 -3
  273. package/src/platform.ts +96 -2
  274. package/src/platforms/cloud.ts +71 -8
  275. package/src/platforms/devserver.ts +92 -29
  276. package/src/publish/deploy-checklist.ts +383 -0
  277. package/src/publish/pages-service.ts +10 -1
  278. package/src/publish/publish-commands.ts +218 -0
  279. package/src/publish/publish-panel.ts +110 -16
  280. package/src/recent-projects.ts +3 -2
  281. package/src/services/a11y-report.ts +505 -0
  282. package/src/services/ai-models.ts +75 -2
  283. package/src/services/ai-project-tools.ts +29 -10
  284. package/src/services/ai-system-prompt.ts +53 -14
  285. package/src/services/ai-tools.ts +39 -3
  286. package/src/services/ai-writes.ts +154 -0
  287. package/src/services/announce.ts +97 -0
  288. package/src/services/automation.ts +424 -175
  289. package/src/services/cem-export.ts +9 -4
  290. package/src/services/clock.ts +61 -0
  291. package/src/services/document-assistant.ts +36 -8
  292. package/src/services/idle.ts +179 -0
  293. package/src/services/import-client.ts +26 -0
  294. package/src/services/monaco-buffer.ts +627 -0
  295. package/src/services/monaco-lazy.ts +36 -0
  296. package/src/services/notify.ts +271 -0
  297. package/src/services/profile.ts +155 -0
  298. package/src/services/references.ts +0 -0
  299. package/src/services/token-lint.ts +3 -2
  300. package/src/services/tool-executor.ts +53 -7
  301. package/src/services/trusted-types.ts +123 -0
  302. package/src/settings/contexts-section.ts +427 -0
  303. package/src/settings/contributed-section.ts +149 -11
  304. package/src/settings/css-vars-editor.ts +306 -349
  305. package/src/settings/defs-editor.ts +93 -34
  306. package/src/settings/dependencies-editor.ts +7 -7
  307. package/src/settings/extension-sections.ts +37 -5
  308. package/src/settings/general-settings.ts +204 -121
  309. package/src/settings/locales-section.ts +347 -0
  310. package/src/settings/preferences-accounts.ts +140 -0
  311. package/src/settings/preferences-dialog.ts +620 -0
  312. package/src/settings/preferences-keymap.ts +270 -0
  313. package/src/settings/project-sections.ts +260 -0
  314. package/src/settings/section-registry.ts +169 -0
  315. package/src/settings/settings-document.ts +385 -0
  316. package/src/shell.ts +1549 -0
  317. package/src/site-context.ts +45 -20
  318. package/src/state.ts +14 -275
  319. package/src/store.ts +88 -43
  320. package/src/studio.ts +790 -346
  321. package/src/style/live-preview.ts +36 -0
  322. package/src/style/project-styles.ts +349 -0
  323. package/src/style/token-ref.ts +123 -0
  324. package/src/tabs/patch-ops.ts +16 -4
  325. package/src/tabs/project-config.ts +416 -0
  326. package/src/tabs/selection.ts +323 -0
  327. package/src/tabs/tab.ts +182 -47
  328. package/src/tabs/transact.ts +209 -28
  329. package/src/types.ts +68 -13
  330. package/src/ui/ai-credentials-form.ts +39 -35
  331. package/src/ui/ai-managed-connect.ts +113 -0
  332. package/src/ui/dynamic-slot.ts +224 -81
  333. package/src/ui/expression-editor.ts +71 -63
  334. package/src/ui/field-input.ts +4 -6
  335. package/src/ui/field-row.ts +215 -38
  336. package/src/ui/form-controls.ts +194 -7
  337. package/src/ui/layers.ts +492 -69
  338. package/src/ui/media-picker.ts +115 -25
  339. package/src/ui/panel-resize.ts +109 -91
  340. package/src/ui/progress-modal.ts +131 -50
  341. package/src/ui/regions.ts +462 -0
  342. package/src/ui/schema-form.ts +229 -45
  343. package/src/ui/spectrum.ts +24 -8
  344. package/src/ui/timing.ts +49 -0
  345. package/src/ui/value-selector.ts +20 -0
  346. package/src/ui/value-source.ts +348 -0
  347. package/src/ui/virtual-window.ts +400 -0
  348. package/src/utils/edit-display.ts +3 -2
  349. package/src/utils/inherited-style.ts +67 -37
  350. package/src/view.ts +64 -78
  351. package/src/workspace/pane-derive.ts +1258 -0
  352. package/src/workspace/session.ts +317 -0
  353. package/src/workspace/workspace.ts +1345 -23
  354. package/styles/canvas.css +653 -0
  355. package/styles/forced-colors.css +106 -0
  356. package/styles/inspector.css +1454 -0
  357. package/styles/overlays.css +2704 -0
  358. package/styles/panels.css +1701 -0
  359. package/styles/shell.css +1423 -0
  360. package/styles/tokens.css +151 -0
  361. package/dist/chunks/Overlay.dev-cszx7yn5.js +0 -22
  362. package/dist/chunks/extension-sections-qct0gt8f.js +0 -531
  363. package/dist/chunks/extension-sections-qct0gt8f.js.map +0 -12
  364. package/dist/chunks/files-02zn5y24.js +0 -50
  365. package/dist/chunks/files-02zn5y24.js.map +0 -9
  366. package/dist/chunks/git-panel-mbb0y0hz.js +0 -28
  367. package/dist/chunks/git-panel-mbb0y0hz.js.map +0 -9
  368. package/dist/chunks/layers-panel-9qekmqk1.js +0 -26
  369. package/dist/chunks/layers-panel-9qekmqk1.js.map +0 -9
  370. package/dist/chunks/settings-modal-gj0hrah4.js +0 -29
  371. package/dist/chunks/settings-modal-gj0hrah4.js.map +0 -9
  372. package/dist/chunks/sp-overlay.dev-earn5as8.js +0 -17
  373. package/dist/chunks/sp-overlay.dev-earn5as8.js.map +0 -9
  374. package/dist/chunks/sp-popover.dev-frxtfejn.js +0 -8
  375. package/dist/chunks/sp-popover.dev-frxtfejn.js.map +0 -9
  376. package/dist/chunks/sp-progress-circle.dev-7tvw34h8.js +0 -14
  377. package/dist/chunks/sp-progress-circle.dev-7tvw34h8.js.map +0 -9
  378. package/dist/chunks/sp-tooltip.dev-a9fywesm.js +0 -21
  379. package/dist/chunks/sp-tooltip.dev-a9fywesm.js.map +0 -10
  380. package/dist/chunks/studio-4k0m4fmp.js.map +0 -13
  381. package/dist/chunks/studio-568nx4t5.js +0 -469
  382. package/dist/chunks/studio-568nx4t5.js.map +0 -14
  383. package/dist/chunks/studio-9smfzqhc.js +0 -19
  384. package/dist/chunks/studio-9smfzqhc.js.map +0 -10
  385. package/dist/chunks/studio-asvf0j9e.js +0 -429
  386. package/dist/chunks/studio-asvf0j9e.js.map +0 -13
  387. package/dist/chunks/studio-d77qm3pk.js +0 -3427
  388. package/dist/chunks/studio-d77qm3pk.js.map +0 -26
  389. package/dist/chunks/studio-j6gqyjf4.js +0 -1854
  390. package/dist/chunks/studio-j6gqyjf4.js.map +0 -18
  391. package/dist/chunks/studio-n9zmpxjg.js.map +0 -115
  392. package/dist/chunks/studio-qkvt37c0.js.map +0 -9
  393. package/dist/chunks/studio-rq0vxb19.js +0 -3744
  394. package/dist/chunks/studio-rq0vxb19.js.map +0 -22
  395. package/dist/chunks/studio-wd6ewdvd.js +0 -853
  396. package/dist/chunks/studio-wd6ewdvd.js.map +0 -12
  397. package/dist/chunks/studio-xq0t7n5t.js +0 -140
  398. package/dist/chunks/studio-xq0t7n5t.js.map +0 -10
  399. package/dist/chunks/studio-xze4zrs1.js.map +0 -10
  400. package/dist/chunks/studio-ygzav7z5.js.map +0 -46
  401. package/dist/chunks/studio-zmy7241e.js +0 -399
  402. package/dist/chunks/studio-zmy7241e.js.map +0 -12
  403. package/dist/chunks/ws-client-q7hkz3j9.js.map +0 -11
  404. package/src/browse/browse-modal.ts +0 -69
  405. package/src/browse/browse.ts +0 -904
  406. package/src/canvas/canvas-diff.ts +0 -216
  407. package/src/canvas/nested-site-style.ts +0 -58
  408. package/src/new-project/design-fields.ts +0 -264
  409. package/src/new-project/templates.ts +0 -61
  410. package/src/panels/tab-bar.ts +0 -548
  411. package/src/settings/settings-modal.ts +0 -203
  412. /package/dist/chunks/{adapter-z8fkmbmv.js.map → adapter-qfnesn5v.js.map} +0 -0
  413. /package/dist/chunks/{cf-settings-mmyv436d.js.map → cf-settings-73sh5z4p.js.map} +0 -0
  414. /package/dist/chunks/{format-host-2c188n41.js.map → format-host-mkwsmt8d.js.map} +0 -0
  415. /package/dist/chunks/{jx-validate-qx8degj7.js.map → jx-validate-v6qgknrs.js.map} +0 -0
  416. /package/dist/chunks/{studio-w7c6kvk7.js.map → studio-a7pzveq1.js.map} +0 -0
  417. /package/dist/chunks/{studio-hhj92gcr.js.map → studio-s519zc99.js.map} +0 -0
  418. /package/dist/chunks/{studio-bghqfmea.js.map → studio-wwseqyw0.js.map} +0 -0
  419. /package/dist/chunks/{studio-nqw433kv.js.map → studio-xmvbhg31.js.map} +0 -0
@@ -0,0 +1,1701 @@
1
+ /* Jx Studio — panel rails.
2
+ Load after tokens.css, after shell.css and canvas.css.
3
+
4
+ Owns the activity bar, the right-rail panel tabs, the file tree and the
5
+ layers tree, plus the drag-and-drop chrome that belongs to them: the
6
+ layers drop indicator, the canvas drop indicator, git diff highlighting
7
+ and the insertion helper. The two canvas-side drop affordances live here
8
+ rather than in canvas.css because they are authored inline with the
9
+ layers drag logic and must keep their original cascade position.
10
+
11
+ Also owns the teaching empty-state layout emitted by
12
+ src/panels/empty-state.ts, which every panel in the shell renders through. */
13
+
14
+ /* ─── Navigator rail (labelled, grouped by level) ──────── */
15
+ /* 56px, and every button names itself in 11px text under its icon. An icon whose only name is a
16
+ hover tooltip is not named (spec §12 region ②) — there were thirteen of those. */
17
+ .rail-groups {
18
+ display: flex;
19
+ flex-direction: column;
20
+ padding: 4px 0;
21
+ }
22
+ .rail-group {
23
+ display: flex;
24
+ flex-direction: column;
25
+ }
26
+ /* The divider IS the level boundary: PROJECT above, DOCUMENT below. */
27
+ .rail-divider {
28
+ height: 1px;
29
+ margin: 6px 10px;
30
+ background: var(--border);
31
+ }
32
+ .rail-footer {
33
+ margin-top: auto;
34
+ display: flex;
35
+ flex-direction: column;
36
+ padding: 6px 0;
37
+ }
38
+ .rail-item {
39
+ position: relative;
40
+ display: flex;
41
+ flex-direction: column;
42
+ align-items: center;
43
+ justify-content: center;
44
+ gap: 2px;
45
+ width: 100%;
46
+ padding: 6px 2px;
47
+ border: none;
48
+ border-left: 2px solid transparent;
49
+ background: none;
50
+ color: var(--fg-dim);
51
+ cursor: pointer;
52
+ opacity: 0.7;
53
+ }
54
+ .rail-item:hover {
55
+ opacity: 1;
56
+ background: var(--hover-bg);
57
+ }
58
+ .rail-item.selected {
59
+ opacity: 1;
60
+ color: var(--fg);
61
+ border-left-color: var(--accent);
62
+ }
63
+ .rail-item:focus-visible {
64
+ outline: 2px solid var(--accent);
65
+ outline-offset: -2px;
66
+ }
67
+ .rail-icon {
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ height: 20px;
72
+ }
73
+ .rail-label {
74
+ max-width: 100%;
75
+ overflow: hidden;
76
+ text-overflow: ellipsis;
77
+ white-space: nowrap;
78
+ font-size: var(--spectrum-font-size-50, 11px);
79
+ line-height: 1.2;
80
+ }
81
+ .activity-badge {
82
+ position: absolute;
83
+ top: 6px;
84
+ right: 4px;
85
+ min-width: 16px;
86
+ height: 16px;
87
+ padding: 0 4px;
88
+ border-radius: var(--spectrum-corner-radius-200, 8px);
89
+ background: var(--accent);
90
+ color: var(--spectrum-white);
91
+ font-size: 9px;
92
+ font-weight: 700;
93
+ display: flex;
94
+ align-items: center;
95
+ justify-content: center;
96
+ pointer-events: none;
97
+ }
98
+ /* ─── Panel header (title · level) ────────────── */
99
+ /* Every Navigator panel renders under one. Six of eight had no header at all, so nothing on
100
+ screen said which panel you were in — or, for Packages, which of its two meanings it had. */
101
+ .panel-header {
102
+ display: flex;
103
+ align-items: baseline;
104
+ gap: 6px;
105
+ padding: 6px 8px;
106
+ border-bottom: 1px solid var(--border);
107
+ }
108
+ .panel-header-title {
109
+ font-size: var(--spectrum-font-size-50, 11px);
110
+ font-weight: 700;
111
+ letter-spacing: 0.06em;
112
+ text-transform: uppercase;
113
+ color: var(--fg);
114
+ }
115
+ .panel-header-level::before {
116
+ content: "·";
117
+ margin-right: 6px;
118
+ }
119
+ .panel-header-level {
120
+ font-size: var(--spectrum-font-size-50, 11px);
121
+ color: var(--fg-dim);
122
+ }
123
+ .panel-content {
124
+ min-height: 0;
125
+ }
126
+
127
+ /* ─── Panel tabs (right: horizontal icon tabs) ── */
128
+ .panel-tabs {
129
+ border-bottom: 1px solid var(--border);
130
+ }
131
+ .panel-tabs sp-tabs {
132
+ --mod-tabs-item-horizontal-spacing: 0px;
133
+ --mod-tabs-start-to-tab-item: 0px;
134
+ --mod-tabs-color: var(--fg-dim);
135
+ --mod-tabs-color-selected: var(--fg);
136
+ --spectrum-tabs-top-to-text: 0px;
137
+ --spectrum-tabs-bottom-to-text: 0px;
138
+ }
139
+ .panel-tabs sp-tab {
140
+ padding: 4px 10px;
141
+ color: var(--fg-dim);
142
+ opacity: 0.7;
143
+ min-block-size: unset;
144
+ block-size: 36px;
145
+ box-sizing: border-box;
146
+ }
147
+ .panel-tabs sp-tab:hover {
148
+ opacity: 1;
149
+ }
150
+ .panel-tabs sp-tab[selected] {
151
+ color: var(--fg);
152
+ opacity: 1;
153
+ }
154
+ .panel-body {
155
+ padding: 0;
156
+ }
157
+
158
+ /* ─── File tree ──────────────────────────────── */
159
+ .files-toolbar {
160
+ display: flex;
161
+ gap: 4px;
162
+ padding: 4px 8px;
163
+ border-bottom: 1px solid var(--border);
164
+ align-items: center;
165
+ }
166
+ .files-toolbar sp-search {
167
+ flex: 1;
168
+ --spectrum-textfield-height: 24px;
169
+ }
170
+ .file-tree {
171
+ overflow-y: auto;
172
+ }
173
+ /* `block-size` is a CONTRACT, not a look: the tree is windowed (files/files.ts `FILE_ROW_HEIGHT`,
174
+ ui/virtual-window.ts), and a window can only reserve the right amount of scroll for the rows it
175
+ did not draw if every row is the same known height. 24px is what the box already computed to —
176
+ 3px + 3px of padding around an 18px line box (12px font × the 1.5 line-height in tokens.css) —
177
+ so declaring it changes nothing on screen and stops the next padding tweak from silently
178
+ desynchronising the scrollbar. The renderer measures a real row anyway and believes the
179
+ measurement over this number. */
180
+ .file-tree-item {
181
+ display: flex;
182
+ align-items: center;
183
+ gap: 6px;
184
+ padding: 3px 8px;
185
+ block-size: 24px;
186
+ box-sizing: border-box;
187
+ cursor: pointer;
188
+ font-size: var(--spectrum-font-size-75, 12px);
189
+ color: var(--fg);
190
+ user-select: none;
191
+ }
192
+ .file-tree-item:hover {
193
+ background: var(--hover-bg);
194
+ }
195
+ /* The language chip. Deliberately declares no `block-size`, no padding and no line-height: the row
196
+ above is 24px by CONTRACT (see the note there), and a chip that grew the box would desynchronise
197
+ the window's scroll reservation from `FILE_ROW_HEIGHT`. It only ever shrinks the text. */
198
+ .file-tree-locale {
199
+ margin-inline-start: auto;
200
+ flex-shrink: 0;
201
+ font-size: var(--spectrum-font-size-50, 11px);
202
+ color: var(--fg-dim);
203
+ overflow: hidden;
204
+ text-overflow: ellipsis;
205
+ white-space: nowrap;
206
+ max-inline-size: 6em;
207
+ }
208
+ /* Roving tabindex (src/files/files.ts) moves focus between rows, so the ring is
209
+ the only thing telling a keyboard user where they are. */
210
+ .file-tree-item:focus-visible {
211
+ outline: 2px solid var(--accent);
212
+ outline-offset: -2px;
213
+ }
214
+ .file-tree-item.selected {
215
+ background: var(--accent-20);
216
+ }
217
+ .file-tree-item.dragging {
218
+ opacity: 0.4;
219
+ }
220
+ .file-tree-item.drag-over {
221
+ background: var(--accent-20);
222
+ outline: 1px solid var(--accent);
223
+ outline-offset: -1px;
224
+ }
225
+ .file-tree.drag-over-root {
226
+ background: var(--hover-bg);
227
+ }
228
+ .file-tree-toggle {
229
+ width: 14px;
230
+ text-align: center;
231
+ font-size: 8px;
232
+ color: var(--fg-dim);
233
+ flex-shrink: 0;
234
+ cursor: pointer;
235
+ }
236
+ .file-tree-toggle.empty {
237
+ visibility: hidden;
238
+ }
239
+ .file-tree-icon {
240
+ flex-shrink: 0;
241
+ display: flex;
242
+ align-items: center;
243
+ }
244
+ .file-tree-icon sp-icon-folder,
245
+ .file-tree-icon sp-icon-folder-open,
246
+ .file-tree-icon sp-icon-document,
247
+ .file-tree-icon sp-icon-file-code,
248
+ .file-tree-icon sp-icon-file-txt,
249
+ .file-tree-icon sp-icon-file-css,
250
+ .file-tree-icon sp-icon-image {
251
+ --spectrum-icon-size-100: 16px;
252
+ }
253
+ .file-tree-name {
254
+ overflow: hidden;
255
+ text-overflow: ellipsis;
256
+ white-space: nowrap;
257
+ flex: 1;
258
+ }
259
+ .file-tree-empty {
260
+ padding: 24px;
261
+ text-align: center;
262
+ color: var(--fg-dim);
263
+ font-size: var(--spectrum-font-size-75, 12px);
264
+ }
265
+ .project-header {
266
+ display: flex;
267
+ align-items: center;
268
+ padding: 6px 12px;
269
+ border-bottom: 1px solid var(--border);
270
+ gap: 6px;
271
+ }
272
+ .project-name {
273
+ font-size: var(--spectrum-font-size-75, 12px);
274
+ font-weight: 600;
275
+ overflow: hidden;
276
+ text-overflow: ellipsis;
277
+ white-space: nowrap;
278
+ }
279
+
280
+ /* ─── Layers ─────────────────────────────────── */
281
+ /* The Outline used to scroll sideways inside a 240px column: `overflow-y: auto` on #left-panel
282
+ computes overflow-x to `auto` too, and a row's intrinsic width was indent (16px × unbounded
283
+ depth) + badge (a full custom-element tag) + label + five in-flow action buttons. All four are
284
+ bounded now — the indent caps at 6 levels (layers-panel.ts `indentWidth`), the badge truncates,
285
+ the label shrinks, and the action cluster is positioned out of flow. */
286
+ /* The fixed `block-size` is the same contract the file tree carries, for the same reason
287
+ (panels/layers-panel.ts `OUTLINE_ROW_HEIGHT`): the Outline is windowed, and a window reserves
288
+ scroll height for rows it did not draw. 24px is what an Outline row already computed to — the
289
+ 18px line box of a 12px label, plus 3px of padding either side — and it makes the chevron rows
290
+ and the text-node rows agree, which they only did by coincidence before. */
291
+ .layer-row {
292
+ position: relative;
293
+ display: flex;
294
+ align-items: center;
295
+ gap: 4px;
296
+ padding: 3px 8px;
297
+ block-size: 24px;
298
+ box-sizing: border-box;
299
+ cursor: grab;
300
+ white-space: nowrap;
301
+ user-select: none;
302
+ border-left: 2px solid transparent;
303
+ transition: transform 150ms ease;
304
+ }
305
+ .layer-row:hover {
306
+ background: var(--hover-bg);
307
+ }
308
+ .layer-row.selected {
309
+ background: var(--accent-20);
310
+ border-left-color: var(--accent);
311
+ }
312
+ .layer-row:focus-visible {
313
+ outline: 2px solid var(--accent);
314
+ outline-offset: -2px;
315
+ }
316
+ .layer-row.dragging {
317
+ opacity: 0.4;
318
+ transition: none;
319
+ }
320
+ .layer-row.drop-target {
321
+ background: var(--accent-15);
322
+ outline: 1px dashed var(--accent);
323
+ outline-offset: -1px;
324
+ }
325
+ .layer-indent {
326
+ flex-shrink: 0;
327
+ }
328
+ /* Row actions exist for the SELECTED row and the hovered one, and for no other row — five
329
+ sp-action-buttons per row is ~5 custom elements with shadow roots per visible row, which is what
330
+ made a large document's layer tree slow to render, and a row that always shows its verbs has no
331
+ way to show which row is being acted on. This is a DOM rule, not a `display:none` one
332
+ (layers-panel.ts `mountHoverActions`): a hidden custom element still costs everything but the
333
+ pixels. On every other row the span below is empty, so it draws nothing. The row itself stays
334
+ fully draggable (dnd's canDrag excludes only .layer-actions), so reordering is unaffected.
335
+
336
+ The cluster is absolutely positioned so it never contributes to the row's intrinsic width: in a
337
+ 240px column, four in-flow buttons plus an indent is exactly what pushed the tree sideways. */
338
+ .layer-actions {
339
+ display: flex;
340
+ align-items: center;
341
+ gap: 0;
342
+ position: absolute;
343
+ right: 2px;
344
+ top: 50%;
345
+ transform: translateY(-50%);
346
+ border-radius: var(--spectrum-corner-radius-75, 2px);
347
+ }
348
+ .layer-actions:not(:empty) {
349
+ padding-left: 8px;
350
+ background: var(--bg-panel);
351
+ box-shadow: -8px 0 8px -8px rgba(0, 0, 0, 0.4);
352
+ }
353
+ .layer-row:hover .layer-drag-handle,
354
+ .layer-row.selected .layer-drag-handle,
355
+ .layer-row:focus-within .layer-drag-handle {
356
+ display: inline-block;
357
+ }
358
+ /* Renaming owns the row: the verbs would sit on top of the input's right edge. */
359
+ .layer-row:has(.layer-title-input) .layer-actions {
360
+ display: none;
361
+ }
362
+ /* The grab affordance is a plain span, so it stays on every row (revealed on hover) while the
363
+ Spectrum action buttons are built for the selected row only. It sits OUTSIDE .layer-actions
364
+ so dnd's canDrag no longer refuses drags that start on it. */
365
+ .layer-drag-handle {
366
+ display: none;
367
+ color: var(--fg-dim);
368
+ opacity: 0.6;
369
+ font-size: var(--spectrum-font-size-50, 11px);
370
+ cursor: grab;
371
+ padding: 0 4px 0 0;
372
+ }
373
+ .layer-toggle {
374
+ width: 14px;
375
+ text-align: center;
376
+ font-size: 9px;
377
+ color: var(--fg-dim);
378
+ cursor: pointer;
379
+ flex-shrink: 0;
380
+ }
381
+ .layer-tag {
382
+ padding: 0 4px;
383
+ font-size: 10px;
384
+ border-radius: var(--spectrum-corner-radius-75, 2px);
385
+ color: var(--accent-fg);
386
+ background: var(--tag);
387
+ flex-shrink: 0;
388
+ /* A long custom-element tag is a badge, not a paragraph: it truncates rather than pushing the
389
+ label out of a 240px column. */
390
+ max-width: 12ch;
391
+ overflow: hidden;
392
+ text-overflow: ellipsis;
393
+ }
394
+ .layer-label {
395
+ overflow: hidden;
396
+ text-overflow: ellipsis;
397
+ white-space: nowrap;
398
+ min-width: 24px;
399
+ flex: 1;
400
+ }
401
+ /* Stretches into the row's content box rather than setting its own height: the row is a fixed 24px
402
+ now, and an input taller than that would push its borders through the rows either side. */
403
+ .layer-title-input {
404
+ width: 100%;
405
+ align-self: stretch;
406
+ box-sizing: border-box;
407
+ background: var(--bg);
408
+ color: inherit;
409
+ border: 1px solid var(--accent, #3b82f6);
410
+ border-radius: var(--spectrum-corner-radius-75, 2px);
411
+ font: inherit;
412
+ font-size: inherit;
413
+ padding: 0 2px;
414
+ }
415
+ .layer-title-input:focus-visible {
416
+ outline: 2px solid var(--accent);
417
+ outline-offset: -1px;
418
+ }
419
+ .layer-dot {
420
+ font-size: 9px;
421
+ flex-shrink: 0;
422
+ }
423
+ /* One rule for every registry-rendered row verb; `.layer-delete` is the `destructive: true` half. */
424
+ .layer-action {
425
+ flex-shrink: 0;
426
+ }
427
+ .layer-overflow {
428
+ flex-shrink: 0;
429
+ }
430
+ .layer-delete {
431
+ color: var(--danger);
432
+ }
433
+ .map-tag {
434
+ background: var(--map) !important;
435
+ color: var(--accent-fg) !important;
436
+ font-size: 9px;
437
+ letter-spacing: 0.5px;
438
+ }
439
+ .repeater-perimeter {
440
+ border: 1px dashed color-mix(in srgb, var(--map) 25%, transparent);
441
+ border-radius: var(--radius);
442
+ padding: 4px;
443
+ min-height: 24px;
444
+ position: relative;
445
+ }
446
+ .repeater-perimeter::before {
447
+ content: "↻ Repeater";
448
+ position: absolute;
449
+ top: -9px;
450
+ left: 6px;
451
+ font-size: 9px;
452
+ color: color-mix(in srgb, var(--map) 50%, transparent);
453
+ background: var(--spectrum-white, #fff);
454
+ padding: 0 3px;
455
+ font-family: var(--font-mono);
456
+ pointer-events: none;
457
+ }
458
+ /* Empty element placeholders (design/edit mode only) */
459
+ .empty-media-placeholder {
460
+ display: inline-block;
461
+ min-width: 120px;
462
+ min-height: 80px;
463
+ border: 1px dashed color-mix(in srgb, var(--fg-dim, #808080) 30%, transparent);
464
+ border-radius: var(--radius);
465
+ background: color-mix(in srgb, var(--fg-dim, #808080) 5%, transparent)
466
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3E%3Crect x='4' y='8' width='32' height='24' rx='2' stroke='%23808080' stroke-opacity='.4' stroke-width='1.5'/%3E%3Ccircle cx='13' cy='16' r='3' stroke='%23808080' stroke-opacity='.4' stroke-width='1.5'/%3E%3Cpath d='M8 28l8-8 5 5 4-4 7 7' stroke='%23808080' stroke-opacity='.4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
467
+ center / 40px no-repeat;
468
+ color: transparent;
469
+ font-size: 0;
470
+ overflow: hidden;
471
+ }
472
+ .empty-text-placeholder:not([contenteditable])::after {
473
+ content: "Click here to add text...";
474
+ color: color-mix(in srgb, var(--fg-dim, #808080) 40%, transparent);
475
+ font-style: italic;
476
+ font-size: 13px;
477
+ pointer-events: none;
478
+ }
479
+ .empty-container-placeholder {
480
+ border: 1px dashed color-mix(in srgb, var(--fg-dim, #808080) 25%, transparent);
481
+ border-radius: var(--radius);
482
+ min-height: 32px;
483
+ position: relative;
484
+ }
485
+ .empty-container-placeholder::after {
486
+ content: "Drag elements here...";
487
+ position: absolute;
488
+ top: 50%;
489
+ left: 50%;
490
+ transform: translate(-50%, -50%);
491
+ color: color-mix(in srgb, var(--fg-dim, #808080) 40%, transparent);
492
+ font-style: italic;
493
+ font-size: var(--spectrum-font-size-50, 11px);
494
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
495
+ pointer-events: none;
496
+ white-space: nowrap;
497
+ }
498
+ [contenteditable="plaintext-only"]:focus {
499
+ outline: 1px solid var(--accent) !important;
500
+ outline-offset: -1px;
501
+ }
502
+ .switch-tag {
503
+ background: var(--switch-c) !important;
504
+ color: var(--accent-fg) !important;
505
+ }
506
+ .case-tag {
507
+ background: var(--case-c) !important;
508
+ color: var(--accent-fg) !important;
509
+ font-style: italic;
510
+ font-size: 9px;
511
+ max-width: 60px;
512
+ overflow: hidden;
513
+ text-overflow: ellipsis;
514
+ }
515
+ .slot-tag {
516
+ background: var(--slot-c) !important;
517
+ color: var(--accent-fg) !important;
518
+ }
519
+ .component-row {
520
+ opacity: 0.9;
521
+ cursor: grab;
522
+ }
523
+ .component-row.available {
524
+ opacity: 0.6;
525
+ }
526
+ .component-row.available:hover {
527
+ opacity: 0.8;
528
+ }
529
+ .component-tag {
530
+ font-size: 9px;
531
+ width: 18px;
532
+ text-align: center;
533
+ }
534
+ .components-section {
535
+ padding: 0 0 2px;
536
+ }
537
+ .imports-panel {
538
+ overflow-y: auto;
539
+ padding: 4px;
540
+ }
541
+ .imports-section {
542
+ margin-bottom: 12px;
543
+ }
544
+ /* The Page panel's door to Search appearance — pushed to the right edge of the section header, so
545
+ the section still reads as a heading and the button as its affordance. */
546
+ .head-seo-btn {
547
+ margin-left: auto;
548
+ text-transform: none;
549
+ letter-spacing: normal;
550
+ }
551
+ .imports-section-header {
552
+ display: flex;
553
+ align-items: center;
554
+ gap: 6px;
555
+ padding: 6px 8px 2px;
556
+ font-size: var(--spectrum-font-size-50, 11px);
557
+ font-weight: 600;
558
+ color: var(--fg-dim);
559
+ text-transform: uppercase;
560
+ letter-spacing: 0.5px;
561
+ }
562
+ .imports-count {
563
+ font-weight: 400;
564
+ color: var(--text-hint);
565
+ }
566
+ .imports-list {
567
+ padding: 0 4px;
568
+ }
569
+ .import-row {
570
+ display: flex;
571
+ align-items: center;
572
+ gap: 4px;
573
+ padding: 3px 4px;
574
+ font-size: var(--spectrum-font-size-50, 11px);
575
+ border-radius: var(--radius);
576
+ }
577
+ .import-row:hover {
578
+ background: var(--hover-bg);
579
+ }
580
+ .import-name {
581
+ font-weight: 500;
582
+ white-space: nowrap;
583
+ }
584
+ .import-path {
585
+ color: var(--fg-dim);
586
+ overflow: hidden;
587
+ text-overflow: ellipsis;
588
+ flex: 1;
589
+ white-space: nowrap;
590
+ font-family: var(--font-mono, monospace);
591
+ font-size: 10px;
592
+ }
593
+ .import-mono {
594
+ font-family: var(--font-mono, monospace);
595
+ }
596
+ .import-add-form {
597
+ display: flex;
598
+ align-items: center;
599
+ gap: 4px;
600
+ padding: 4px;
601
+ }
602
+ .import-add-form sp-textfield {
603
+ flex: 1;
604
+ }
605
+ .import-picker {
606
+ width: 100%;
607
+ }
608
+ /* Head panel */
609
+ .head-section-body {
610
+ padding: 0 4px;
611
+ }
612
+ .head-section-body .style-row > sp-textfield,
613
+ .head-section-body .style-row > .media-picker {
614
+ width: 100%;
615
+ }
616
+ .head-add-form {
617
+ display: flex;
618
+ align-items: center;
619
+ gap: 4px;
620
+ padding: 4px;
621
+ }
622
+ .head-add-form sp-textfield {
623
+ flex: 1;
624
+ }
625
+ .head-add-form sp-picker {
626
+ min-width: 70px;
627
+ }
628
+ .element-card {
629
+ cursor: grab;
630
+ display: flex;
631
+ flex-direction: column;
632
+ width: 100%;
633
+ border: 1px solid var(--border);
634
+ border-radius: var(--radius);
635
+ overflow: hidden;
636
+ margin-bottom: 6px;
637
+ }
638
+ .element-card:hover {
639
+ border-color: var(--accent);
640
+ }
641
+ .element-card-preview {
642
+ background: var(--spectrum-white, #fff);
643
+ padding: 6px 8px;
644
+ min-height: 32px;
645
+ max-height: 120px;
646
+ display: flex;
647
+ align-items: center;
648
+ overflow: hidden;
649
+ pointer-events: none;
650
+ }
651
+ .element-card-preview > * {
652
+ max-width: 100%;
653
+ color: var(--canvas-fg-2);
654
+ margin: 0;
655
+ padding: 0;
656
+ }
657
+ .element-card-preview > hr {
658
+ width: 100%;
659
+ border: none;
660
+ border-top: 1px solid var(--canvas-muted);
661
+ }
662
+ .element-card-preview > input,
663
+ .element-card-preview > textarea,
664
+ .element-card-preview > select,
665
+ .element-card-preview > button,
666
+ .element-card-preview > progress,
667
+ .element-card-preview > meter {
668
+ font-size: 10px;
669
+ }
670
+ .element-card-label {
671
+ padding: 2px 6px;
672
+ font-size: 10px;
673
+ color: var(--fg-dim);
674
+ background: var(--bg-input);
675
+ text-align: center;
676
+ font-family: var(--font-mono);
677
+ }
678
+ .elements-list {
679
+ border: none;
680
+ }
681
+ .elements-list sp-accordion-item {
682
+ --spectrum-accordion-item-header-font-size: var(--spectrum-font-size-50, 11px);
683
+ border-bottom: 1px solid var(--border);
684
+ }
685
+
686
+ /* ─── Teaching empty states ──────────────────── */
687
+ /* The one empty-state pattern, emitted by src/panels/empty-state.ts: a sentence
688
+ saying what the region is for, then the button that fills it. `.empty-state`
689
+ itself (padding, centring, dimmed colour) is declared in overlays.css; these
690
+ rules add the teaching layout on top of it, and the compact variant wins on
691
+ specificity because overlays.css loads last. */
692
+ .empty-state--teach {
693
+ display: flex;
694
+ flex-direction: column;
695
+ align-items: center;
696
+ gap: 8px;
697
+ }
698
+ .empty-state-message {
699
+ max-width: 34ch;
700
+ line-height: 1.5;
701
+ }
702
+ .empty-state-detail {
703
+ max-width: 34ch;
704
+ font-size: var(--spectrum-font-size-50, 11px);
705
+ color: var(--fg-dim);
706
+ opacity: 0.8;
707
+ }
708
+ .empty-state-actions {
709
+ display: flex;
710
+ flex-wrap: wrap;
711
+ justify-content: center;
712
+ gap: 8px;
713
+ }
714
+ .empty-state-action {
715
+ flex: none;
716
+ }
717
+ /* Inline section inside an otherwise populated panel — reads as a note above its
718
+ own add form rather than as a whole empty region. */
719
+ .empty-state.empty-state--compact {
720
+ align-items: flex-start;
721
+ gap: 4px;
722
+ padding: 8px 12px;
723
+ text-align: left;
724
+ font-size: var(--spectrum-font-size-50, 11px);
725
+ }
726
+ .empty-state--compact .empty-state-actions {
727
+ justify-content: flex-start;
728
+ }
729
+
730
+ /* ─── Drop indicator ──────────────────────────── */
731
+ .drop-indicator {
732
+ display: none;
733
+ position: absolute;
734
+ height: 2px;
735
+ background: var(--accent);
736
+ z-index: 5;
737
+ pointer-events: none;
738
+ }
739
+
740
+ /* ─── Canvas drop indicator ───────────────────── */
741
+ .canvas-drop-indicator {
742
+ position: absolute;
743
+ pointer-events: none;
744
+ z-index: 11;
745
+ }
746
+ .canvas-drop-indicator.line {
747
+ height: 2px;
748
+ background: var(--accent);
749
+ }
750
+ .canvas-drop-indicator.inside {
751
+ border: 2px dashed var(--accent);
752
+ background: var(--accent-8);
753
+ }
754
+ /* An external file drop over an existing image: "this picture is about to be replaced".
755
+ Solid, not dashed, so it reads differently from the insert indicator above. */
756
+ .canvas-replace-target {
757
+ position: absolute;
758
+ pointer-events: none;
759
+ z-index: 11;
760
+ border: 2px solid var(--accent);
761
+ background: var(--accent-8);
762
+ border-radius: var(--radius);
763
+ }
764
+
765
+ /* ─── Insertion helper ─────────────────────────── */
766
+ .insertion-helper {
767
+ position: absolute;
768
+ position-anchor: --jx-insert;
769
+ z-index: 12;
770
+ pointer-events: auto;
771
+ width: 20px;
772
+ height: 20px;
773
+ border-radius: 50%;
774
+ border: 1.5px solid var(--accent);
775
+ background: var(--bg-panel);
776
+ color: var(--accent);
777
+ font-size: var(--spectrum-font-size-100, 14px);
778
+ font-weight: 500;
779
+ line-height: 1;
780
+ cursor: pointer;
781
+ display: none;
782
+ place-items: center;
783
+ padding: 0;
784
+ opacity: 0;
785
+ transition: opacity 0.15s ease;
786
+ }
787
+ .insertion-helper.visible {
788
+ display: grid;
789
+ opacity: 1;
790
+ }
791
+ .insertion-helper:hover {
792
+ background: var(--accent);
793
+ color: var(--accent-fg);
794
+ transform: scale(1.15);
795
+ }
796
+ /* Line pseudo element — extends beyond button as a visual cue */
797
+ .insertion-helper::before {
798
+ content: "";
799
+ position: absolute;
800
+ background: var(--accent);
801
+ opacity: 0.5;
802
+ pointer-events: none;
803
+ border-radius: 1px;
804
+ }
805
+ /* Horizontal edges (column / block layout) */
806
+ .insertion-helper[data-edge="top"],
807
+ .insertion-helper[data-edge="bottom"] {
808
+ left: anchor(center);
809
+ translate: -50% 0;
810
+ }
811
+ .insertion-helper[data-edge="top"] {
812
+ bottom: anchor(top);
813
+ translate: -50% 50%;
814
+ }
815
+ .insertion-helper[data-edge="bottom"] {
816
+ top: anchor(bottom);
817
+ translate: -50% -50%;
818
+ }
819
+ .insertion-helper[data-edge="top"]::before,
820
+ .insertion-helper[data-edge="bottom"]::before {
821
+ width: 80px;
822
+ height: 2px;
823
+ top: 50%;
824
+ left: 50%;
825
+ translate: -50% -50%;
826
+ z-index: -1;
827
+ }
828
+ /* Vertical edges (row / inline layout) */
829
+ .insertion-helper[data-edge="left"],
830
+ .insertion-helper[data-edge="right"] {
831
+ top: anchor(center);
832
+ translate: 0 -50%;
833
+ }
834
+ .insertion-helper[data-edge="left"] {
835
+ right: anchor(left);
836
+ translate: 50% -50%;
837
+ }
838
+ .insertion-helper[data-edge="right"] {
839
+ left: anchor(right);
840
+ translate: -50% -50%;
841
+ }
842
+ .insertion-helper[data-edge="left"]::before,
843
+ .insertion-helper[data-edge="right"]::before {
844
+ height: 80px;
845
+ width: 2px;
846
+ top: 50%;
847
+ left: 50%;
848
+ translate: -50% -50%;
849
+ z-index: -1;
850
+ }
851
+ /* Empty container center */
852
+ .insertion-helper[data-edge="center"] {
853
+ top: anchor(center);
854
+ left: anchor(center);
855
+ translate: -50% -50%;
856
+ }
857
+
858
+ /* ─── ⑪ Problems ──────────────────────────────────────────────────────────────
859
+ The same body in two hosts: the Navigator dock (rail button, badge, ⌘4) and the Bottom dock's
860
+ first tab. Grouped by SOURCE with the severity as a glyph, because a reader who has just saved
861
+ wants the save's failures together and a list that reorders as it grows cannot be read. */
862
+ .problems-panel {
863
+ display: flex;
864
+ flex-direction: column;
865
+ gap: 8px;
866
+ padding: 8px;
867
+ }
868
+ .problems-actions {
869
+ display: flex;
870
+ justify-content: flex-end;
871
+ }
872
+ .problems-clear,
873
+ .activity-clear {
874
+ padding: 2px 8px;
875
+ border: 1px solid var(--border);
876
+ border-radius: var(--spectrum-corner-radius-75, 2px);
877
+ background: transparent;
878
+ color: var(--fg-dim);
879
+ font: inherit;
880
+ font-size: var(--spectrum-font-size-50, 11px);
881
+ cursor: pointer;
882
+ }
883
+ .problems-clear:hover,
884
+ .activity-clear:hover {
885
+ color: var(--fg);
886
+ background: var(--hover-bg);
887
+ }
888
+ /* One source's rows, under its heading. A section rather than a run of rows so the heading and
889
+ the problems it names cannot be separated by a scroll position. */
890
+ .problem-group {
891
+ display: flex;
892
+ flex-direction: column;
893
+ gap: 4px;
894
+ }
895
+ .problem-group-title {
896
+ margin: 0 0 2px;
897
+ color: var(--fg-dim);
898
+ font-size: var(--spectrum-font-size-50, 11px);
899
+ font-weight: 700;
900
+ text-transform: uppercase;
901
+ letter-spacing: 0.04em;
902
+ }
903
+ .problem-list,
904
+ .activity-list {
905
+ display: flex;
906
+ flex-direction: column;
907
+ gap: 4px;
908
+ margin: 0;
909
+ padding: 0;
910
+ list-style: none;
911
+ }
912
+ .problem-row,
913
+ .activity-row {
914
+ display: flex;
915
+ align-items: flex-start;
916
+ gap: 8px;
917
+ padding: 6px 8px;
918
+ border: 1px solid var(--border);
919
+ border-left: 3px solid var(--fg-dim);
920
+ border-radius: var(--radius);
921
+ background: var(--bg-panel);
922
+ color: var(--fg);
923
+ font-size: var(--spectrum-font-size-75, 12px);
924
+ }
925
+ .problem-row--success {
926
+ border-left-color: var(--success);
927
+ }
928
+ .problem-row--info {
929
+ border-left-color: var(--accent);
930
+ }
931
+ .problem-row--warn {
932
+ border-left-color: var(--warning);
933
+ }
934
+ .problem-row--error {
935
+ border-left-color: var(--danger);
936
+ }
937
+ .problem-icon,
938
+ .activity-icon {
939
+ flex: none;
940
+ width: 14px;
941
+ text-align: center;
942
+ font-weight: 700;
943
+ line-height: 1.5;
944
+ }
945
+ .problem-row--success .problem-icon {
946
+ color: var(--success);
947
+ }
948
+ .problem-row--info .problem-icon {
949
+ color: var(--accent);
950
+ }
951
+ .problem-row--warn .problem-icon {
952
+ color: var(--warning);
953
+ }
954
+ .problem-row--error .problem-icon {
955
+ color: var(--danger);
956
+ }
957
+ .problem-body,
958
+ .activity-body {
959
+ flex: 1;
960
+ min-width: 0;
961
+ display: flex;
962
+ flex-direction: column;
963
+ gap: 2px;
964
+ }
965
+ .problem-message {
966
+ overflow-wrap: anywhere;
967
+ }
968
+ /* The path is a control, not a label: it opens the file the problem is about, which is the
969
+ click-through §7.1 asks for. Underlined on hover only — a permanently underlined path in a
970
+ dense list reads as a paragraph of links. */
971
+ .problem-path {
972
+ align-self: flex-start;
973
+ max-width: 100%;
974
+ overflow: hidden;
975
+ padding: 0;
976
+ border: none;
977
+ background: none;
978
+ color: var(--accent);
979
+ font: inherit;
980
+ font-family: var(--font-mono);
981
+ font-size: var(--spectrum-font-size-50, 11px);
982
+ text-overflow: ellipsis;
983
+ white-space: nowrap;
984
+ cursor: pointer;
985
+ }
986
+ .problem-path:hover {
987
+ text-decoration: underline;
988
+ }
989
+ /* The captured log the progress modal used to own. It scrolls inside the row rather than growing
990
+ it, so one 400-line `bun install` failure does not become the whole panel. */
991
+ .problem-detail,
992
+ .activity-log {
993
+ max-height: 180px;
994
+ margin: 2px 0 0;
995
+ padding: 6px;
996
+ overflow: auto;
997
+ border-radius: var(--spectrum-corner-radius-75, 2px);
998
+ background: var(--bg);
999
+ color: var(--fg-dim);
1000
+ font-family: var(--font-mono);
1001
+ font-size: var(--spectrum-font-size-50, 11px);
1002
+ white-space: pre-wrap;
1003
+ }
1004
+ .problem-action,
1005
+ .activity-cancel {
1006
+ flex: none;
1007
+ padding: 2px 8px;
1008
+ border: 1px solid var(--border);
1009
+ border-radius: var(--spectrum-corner-radius-75, 2px);
1010
+ background: transparent;
1011
+ color: var(--accent);
1012
+ font: inherit;
1013
+ cursor: pointer;
1014
+ }
1015
+ .problem-action:hover:not(:disabled),
1016
+ .activity-cancel:hover:not(:disabled) {
1017
+ background: var(--hover-bg);
1018
+ }
1019
+ .problem-action:disabled {
1020
+ color: var(--fg-dim);
1021
+ cursor: default;
1022
+ }
1023
+ .problem-dismiss {
1024
+ flex: none;
1025
+ width: 18px;
1026
+ height: 18px;
1027
+ padding: 0;
1028
+ border: none;
1029
+ border-radius: var(--spectrum-corner-radius-75, 2px);
1030
+ background: transparent;
1031
+ color: var(--fg-dim);
1032
+ font: inherit;
1033
+ line-height: 1;
1034
+ cursor: pointer;
1035
+ }
1036
+ .problem-dismiss:hover {
1037
+ color: var(--fg);
1038
+ background: var(--hover-bg);
1039
+ }
1040
+
1041
+ /* ─── ⑪ Activity ──────────────────────────────────────────────────────────────
1042
+ One row per operation, newest LAST, because this is a log and not a menu: an install that starts
1043
+ while you are reading the clone above it must not push that clone off the top. */
1044
+ .activity-panel {
1045
+ display: flex;
1046
+ flex-direction: column;
1047
+ gap: 8px;
1048
+ padding: 8px;
1049
+ }
1050
+ .activity-actions {
1051
+ display: flex;
1052
+ justify-content: flex-end;
1053
+ }
1054
+ .activity-row--running {
1055
+ border-left-color: var(--accent);
1056
+ }
1057
+ .activity-row--done {
1058
+ border-left-color: var(--success);
1059
+ }
1060
+ .activity-row--failed {
1061
+ border-left-color: var(--danger);
1062
+ }
1063
+ .activity-row--cancelled {
1064
+ border-left-color: var(--fg-dim);
1065
+ }
1066
+ .activity-row--running .activity-icon {
1067
+ color: var(--accent);
1068
+ }
1069
+ .activity-row--done .activity-icon {
1070
+ color: var(--success);
1071
+ }
1072
+ .activity-row--failed .activity-icon {
1073
+ color: var(--danger);
1074
+ }
1075
+ .activity-head {
1076
+ display: flex;
1077
+ align-items: baseline;
1078
+ gap: 8px;
1079
+ min-width: 0;
1080
+ }
1081
+ .activity-title {
1082
+ font-weight: 700;
1083
+ overflow: hidden;
1084
+ text-overflow: ellipsis;
1085
+ white-space: nowrap;
1086
+ }
1087
+ .activity-source,
1088
+ .activity-duration {
1089
+ flex: none;
1090
+ color: var(--fg-dim);
1091
+ font-size: var(--spectrum-font-size-50, 11px);
1092
+ }
1093
+ /* The duration is pushed to the far edge so a column of rows reads as a column of times. */
1094
+ .activity-duration {
1095
+ margin-left: auto;
1096
+ }
1097
+ .activity-status {
1098
+ color: var(--fg-dim);
1099
+ overflow-wrap: anywhere;
1100
+ }
1101
+ /* The plan, declared up front, so "which of the three steps is this on" is answered by looking
1102
+ rather than by reading the status line and remembering what came before it. */
1103
+ .activity-steps {
1104
+ display: flex;
1105
+ flex-direction: column;
1106
+ gap: 1px;
1107
+ margin: 2px 0 0;
1108
+ padding: 0;
1109
+ list-style: none;
1110
+ font-size: var(--spectrum-font-size-50, 11px);
1111
+ }
1112
+ .activity-step {
1113
+ display: flex;
1114
+ gap: 6px;
1115
+ color: var(--fg-dim);
1116
+ }
1117
+ .activity-step--running {
1118
+ color: var(--fg);
1119
+ }
1120
+ .activity-step--done .activity-step-icon {
1121
+ color: var(--success);
1122
+ }
1123
+ .activity-step--failed .activity-step-icon {
1124
+ color: var(--danger);
1125
+ }
1126
+ .activity-step-icon {
1127
+ flex: none;
1128
+ width: 10px;
1129
+ text-align: center;
1130
+ }
1131
+ .activity-log-toggle {
1132
+ align-self: flex-start;
1133
+ padding: 0;
1134
+ border: none;
1135
+ background: none;
1136
+ color: var(--accent);
1137
+ font: inherit;
1138
+ font-size: var(--spectrum-font-size-50, 11px);
1139
+ cursor: pointer;
1140
+ }
1141
+ .activity-log-toggle:hover {
1142
+ text-decoration: underline;
1143
+ }
1144
+
1145
+ /* ─── The one blocking progress surface ───────────────────────────────────────
1146
+ Dependency install, and nothing else (§7.3). Its error view has left for Problems, so what is
1147
+ left is a spinner, a line and the two ways out. */
1148
+ .progress-modal {
1149
+ position: fixed;
1150
+ inset: 0;
1151
+ /* Above its own scrim. `sp-underlay` paints at `z-index: 1`, and this card — its sibling in the
1152
+ modal layer — sat at `auto`, so the scrim covered it: the surface was VISIBLE (the scrim is
1153
+ translucent) and every click landed on the underlay instead. `Run in the background` was the
1154
+ only way out of a running install and could not be pressed. 1000 is what the other four
1155
+ underlay-bearing cards use (.settings-modal, .about-modal, .new-project-modal, .seo-modal). */
1156
+ z-index: 1000;
1157
+ margin: auto;
1158
+ width: min(420px, calc(100vw - 48px));
1159
+ max-height: calc(100vh - 96px);
1160
+ height: max-content;
1161
+ display: flex;
1162
+ flex-direction: column;
1163
+ gap: 16px;
1164
+ padding: 24px;
1165
+ border: 1px solid var(--border);
1166
+ border-radius: var(--spectrum-corner-radius-200, 8px);
1167
+ background: var(--bg-panel);
1168
+ color: var(--fg);
1169
+ box-shadow: 0 8px 32px rgb(0 0 0 / 40%);
1170
+ }
1171
+ .progress-head {
1172
+ display: flex;
1173
+ align-items: center;
1174
+ gap: 14px;
1175
+ }
1176
+ .progress-lines {
1177
+ display: flex;
1178
+ flex-direction: column;
1179
+ gap: 2px;
1180
+ min-width: 0;
1181
+ }
1182
+ .progress-title {
1183
+ font-size: var(--spectrum-font-size-100, 14px);
1184
+ }
1185
+ .progress-status {
1186
+ color: var(--fg-dim);
1187
+ font-size: var(--spectrum-font-size-75, 12px);
1188
+ overflow-wrap: anywhere;
1189
+ }
1190
+ .progress-actions {
1191
+ display: flex;
1192
+ justify-content: flex-end;
1193
+ gap: 8px;
1194
+ }
1195
+
1196
+ /* ─── Project Settings, in the pane ───────────────────────────────────────────
1197
+ The settings document (settings/settings-document.ts, panels/settings-pane.ts). Its section
1198
+ internals are the .settings-* rules in overlays.css, unchanged: the modal's IA was never the
1199
+ problem, its modality was, so only the SHELL is new. It fills the pane cell instead of an
1200
+ inset:40px overlay, which is why there is no header row here — the tab strip already names the
1201
+ document and the pane already has a frame. */
1202
+ .settings-doc {
1203
+ display: flex;
1204
+ height: 100%;
1205
+ min-height: 0;
1206
+ background: var(--bg);
1207
+ text-align: initial;
1208
+ }
1209
+ .settings-doc-nav {
1210
+ width: 180px;
1211
+ min-width: 180px;
1212
+ padding: 8px 0;
1213
+ border-right: 1px solid var(--border);
1214
+ overflow-y: auto;
1215
+ display: flex;
1216
+ flex-direction: column;
1217
+ }
1218
+ .settings-doc-content {
1219
+ flex: 1;
1220
+ overflow-y: auto;
1221
+ padding: 24px;
1222
+ min-width: 0;
1223
+ }
1224
+ /* One row of a simple key list — an extension package, and whatever else turns out to be a name
1225
+ with one action beside it. */
1226
+ .settings-row {
1227
+ display: flex;
1228
+ align-items: center;
1229
+ justify-content: space-between;
1230
+ gap: 8px;
1231
+ padding: 4px 8px;
1232
+ }
1233
+ .settings-row-name {
1234
+ font-size: var(--spectrum-font-size-75, 12px);
1235
+ color: var(--fg);
1236
+ overflow-wrap: anywhere;
1237
+ }
1238
+ .settings-extension-name {
1239
+ flex: 1;
1240
+ min-width: 0;
1241
+ }
1242
+ .settings-build-adapter {
1243
+ max-width: 320px;
1244
+ }
1245
+ /* project.json as it is saved. Scrolls in its own box: a 250-line file must not push the "Edit as
1246
+ code" action off the bottom of the section. */
1247
+ .settings-raw-json {
1248
+ margin: 0 0 12px;
1249
+ padding: 12px;
1250
+ max-height: 420px;
1251
+ overflow: auto;
1252
+ border: 1px solid var(--border);
1253
+ border-radius: var(--radius);
1254
+ background: var(--bg-dim, var(--bg));
1255
+ font-family: var(--font-mono);
1256
+ font-size: var(--spectrum-font-size-75, 12px);
1257
+ color: var(--fg);
1258
+ white-space: pre;
1259
+ }
1260
+ .settings-edit-as-code {
1261
+ align-self: flex-start;
1262
+ }
1263
+
1264
+ /* ─── The Document Header card's SEO block ───────────────────────────────────
1265
+ Two rendered previews of the MERGED site → layout → page $head, the resolved fields with their
1266
+ character counters and provenance chips, and the named warnings. No score: there is deliberately
1267
+ no rule here that can render a total (plan §9.2, §14).
1268
+
1269
+ The card itself is styled in styles/canvas.css, beside .doc-header — it is drawn in the stage,
1270
+ not in a panel. These rules live here because the SEO block landed in the phase that owns this
1271
+ stylesheet; they belong beside their siblings and should move when the two are next touched
1272
+ together. */
1273
+ .seo-previews {
1274
+ display: flex;
1275
+ flex-wrap: wrap;
1276
+ gap: 8px;
1277
+ padding: 4px 0 8px;
1278
+ }
1279
+ .seo-card {
1280
+ flex: 1 1 220px;
1281
+ min-width: 0;
1282
+ margin: 0;
1283
+ padding: 8px;
1284
+ border: 1px solid var(--border);
1285
+ border-radius: var(--radius);
1286
+ background: var(--bg);
1287
+ }
1288
+ /* The two cards want different floors before they wrap: the result row is text and reads badly
1289
+ narrow, the social card is a fixed-height image with two lines under it. */
1290
+ .seo-card--serp {
1291
+ flex-basis: 260px;
1292
+ }
1293
+ .seo-card--social {
1294
+ flex-basis: 200px;
1295
+ }
1296
+ .seo-card-label {
1297
+ display: block;
1298
+ padding-bottom: 6px;
1299
+ font-size: var(--spectrum-font-size-50, 11px);
1300
+ font-weight: 700;
1301
+ letter-spacing: 0.06em;
1302
+ text-transform: uppercase;
1303
+ color: var(--fg-dim);
1304
+ }
1305
+ /* A search result, in its own proportions: the URL line small, the title the largest thing in the
1306
+ card, the snippet two lines. Clamped rather than truncated at a character count — where a given
1307
+ engine cuts is its business, and the counter beside the field is what states the budget. */
1308
+ .seo-serp-url {
1309
+ overflow: hidden;
1310
+ text-overflow: ellipsis;
1311
+ white-space: nowrap;
1312
+ font-size: var(--spectrum-font-size-50, 11px);
1313
+ color: var(--fg-dim);
1314
+ }
1315
+ .seo-serp-title {
1316
+ overflow: hidden;
1317
+ display: -webkit-box;
1318
+ -webkit-box-orient: vertical;
1319
+ -webkit-line-clamp: 2;
1320
+ line-clamp: 2;
1321
+ padding: 2px 0;
1322
+ font-size: var(--spectrum-font-size-200, 16px);
1323
+ color: var(--accent);
1324
+ }
1325
+ .seo-serp-desc {
1326
+ overflow: hidden;
1327
+ display: -webkit-box;
1328
+ -webkit-box-orient: vertical;
1329
+ -webkit-line-clamp: 2;
1330
+ line-clamp: 2;
1331
+ font-size: var(--spectrum-font-size-75, 12px);
1332
+ color: var(--fg);
1333
+ }
1334
+ .seo-social-media {
1335
+ display: flex;
1336
+ align-items: center;
1337
+ justify-content: center;
1338
+ height: 96px;
1339
+ overflow: hidden;
1340
+ border: 1px solid var(--border);
1341
+ border-radius: var(--radius);
1342
+ background: var(--bg-panel);
1343
+ }
1344
+ .seo-social-media img {
1345
+ width: 100%;
1346
+ height: 100%;
1347
+ object-fit: cover;
1348
+ }
1349
+ .seo-social-text {
1350
+ display: flex;
1351
+ flex-direction: column;
1352
+ gap: 1px;
1353
+ padding-top: 6px;
1354
+ }
1355
+ .seo-social-domain {
1356
+ font-size: var(--spectrum-font-size-50, 11px);
1357
+ text-transform: uppercase;
1358
+ letter-spacing: 0.04em;
1359
+ color: var(--fg-dim);
1360
+ }
1361
+ .seo-social-title {
1362
+ overflow: hidden;
1363
+ text-overflow: ellipsis;
1364
+ white-space: nowrap;
1365
+ font-size: var(--spectrum-font-size-75, 12px);
1366
+ font-weight: 700;
1367
+ color: var(--fg);
1368
+ }
1369
+ .seo-social-desc {
1370
+ overflow: hidden;
1371
+ display: -webkit-box;
1372
+ -webkit-box-orient: vertical;
1373
+ -webkit-line-clamp: 2;
1374
+ line-clamp: 2;
1375
+ font-size: var(--spectrum-font-size-50, 11px);
1376
+ color: var(--fg-dim);
1377
+ }
1378
+ /* Absence, said once and in one colour, wherever a preview has nothing to draw. */
1379
+ .seo-unset {
1380
+ font-style: italic;
1381
+ color: var(--fg-dim);
1382
+ }
1383
+ .seo-fields {
1384
+ display: flex;
1385
+ flex-direction: column;
1386
+ gap: 2px;
1387
+ margin: 0;
1388
+ padding: 0 0 6px;
1389
+ list-style: none;
1390
+ }
1391
+ .seo-field {
1392
+ display: flex;
1393
+ align-items: baseline;
1394
+ gap: 8px;
1395
+ min-width: 0;
1396
+ font-size: var(--spectrum-font-size-50, 11px);
1397
+ }
1398
+ .seo-field-label {
1399
+ flex: 0 0 96px;
1400
+ color: var(--fg-dim);
1401
+ }
1402
+ .seo-field-value {
1403
+ flex: 1;
1404
+ min-width: 0;
1405
+ overflow: hidden;
1406
+ text-overflow: ellipsis;
1407
+ white-space: nowrap;
1408
+ color: var(--fg);
1409
+ }
1410
+ /* The counter is a reference line, not a verdict — over budget is stated, never scored. */
1411
+ .seo-field-count {
1412
+ flex: 0 0 auto;
1413
+ font-family: var(--font-mono);
1414
+ font-variant-numeric: tabular-nums;
1415
+ color: var(--fg-dim);
1416
+ }
1417
+ .seo-field-count--over {
1418
+ color: var(--warning);
1419
+ }
1420
+ .seo-warnings {
1421
+ display: flex;
1422
+ flex-direction: column;
1423
+ gap: 4px;
1424
+ margin: 0;
1425
+ padding: 0 0 6px;
1426
+ list-style: none;
1427
+ }
1428
+ .seo-warning {
1429
+ display: flex;
1430
+ gap: 6px;
1431
+ min-width: 0;
1432
+ font-size: var(--spectrum-font-size-50, 11px);
1433
+ color: var(--fg-dim);
1434
+ }
1435
+ .seo-warning-field {
1436
+ flex: 0 0 auto;
1437
+ font-family: var(--font-mono);
1438
+ color: var(--warning);
1439
+ }
1440
+
1441
+ /* ─── ⑪ · Logic — the formula workspace and the function editor ──────── */
1442
+ /* Both surfaces moved out of their canvas takeovers into the Bottom dock (plan §12 P8.5), and a
1443
+ dock is not a stage: the whole surface has to fit ~240px with the page still rendering above it.
1444
+ So the header, the chip pipeline and the result are one line each, and only the two middle
1445
+ columns scroll. These rules replace the inline `style=` attributes the takeover carried, which
1446
+ is why seventeen `fw-*` classes have left check-styles.ts's orphan list. */
1447
+ .formula-workspace {
1448
+ display: flex;
1449
+ flex-direction: column;
1450
+ min-height: 0;
1451
+ height: 100%;
1452
+ background: var(--bg-panel);
1453
+ }
1454
+ .fw-header {
1455
+ display: flex;
1456
+ flex-shrink: 0;
1457
+ gap: 8px;
1458
+ align-items: center;
1459
+ padding: 6px 10px;
1460
+ border-bottom: 1px solid var(--border);
1461
+ }
1462
+ .fw-title {
1463
+ overflow: hidden;
1464
+ font-family: var(--font-mono);
1465
+ font-size: var(--spectrum-font-size-75, 12px);
1466
+ color: var(--fg);
1467
+ white-space: nowrap;
1468
+ text-overflow: ellipsis;
1469
+ }
1470
+ .fw-kind {
1471
+ flex-shrink: 0;
1472
+ font-size: var(--spectrum-font-size-50, 11px);
1473
+ color: var(--fg-dim);
1474
+ }
1475
+ .fw-header-gap {
1476
+ flex: 1;
1477
+ min-width: 0;
1478
+ }
1479
+ .fw-chips {
1480
+ flex-shrink: 0;
1481
+ overflow-x: auto;
1482
+ padding: 4px 10px;
1483
+ border-bottom: 1px solid var(--border);
1484
+ white-space: nowrap;
1485
+ }
1486
+ /* The two columns, and the only thing in the tab that scrolls vertically. */
1487
+ .fw-body {
1488
+ display: flex;
1489
+ flex: 1;
1490
+ min-height: 0;
1491
+ }
1492
+ .fw-editor {
1493
+ flex: 1;
1494
+ min-width: 0;
1495
+ overflow: auto;
1496
+ padding: 8px 10px;
1497
+ }
1498
+ .fw-selected {
1499
+ padding-bottom: 6px;
1500
+ font-size: var(--spectrum-font-size-50, 11px);
1501
+ color: var(--fg-dim);
1502
+ }
1503
+ .fw-selected-node {
1504
+ font-family: var(--font-mono);
1505
+ }
1506
+ /* Narrower than the takeover's 280px slab: at dock height it is a reference column beside the
1507
+ editor, and the live values it used to be the only source of are on the canvas now. */
1508
+ .fw-context {
1509
+ flex: 0 0 200px;
1510
+ overflow: auto;
1511
+ padding: 8px 10px;
1512
+ border-left: 1px solid var(--border);
1513
+ }
1514
+ .fw-context-title {
1515
+ padding-bottom: 6px;
1516
+ font-size: var(--spectrum-font-size-50, 11px);
1517
+ letter-spacing: 0.5px;
1518
+ color: var(--fg-dim);
1519
+ text-transform: uppercase;
1520
+ }
1521
+ .fw-context-entry {
1522
+ margin-bottom: 8px;
1523
+ }
1524
+ .fw-context-head {
1525
+ display: flex;
1526
+ gap: 6px;
1527
+ align-items: baseline;
1528
+ }
1529
+ .fw-context-name {
1530
+ font-family: var(--font-mono);
1531
+ font-size: var(--spectrum-font-size-75, 12px);
1532
+ color: var(--fg);
1533
+ }
1534
+ .fw-context-type {
1535
+ font-size: var(--spectrum-font-size-50, 11px);
1536
+ color: var(--fg-dim);
1537
+ }
1538
+ .fw-result {
1539
+ flex-shrink: 0;
1540
+ overflow: hidden;
1541
+ padding: 6px 10px;
1542
+ border-top: 1px solid var(--border);
1543
+ font-family: var(--font-mono);
1544
+ font-size: var(--spectrum-font-size-75, 12px);
1545
+ color: var(--success);
1546
+ white-space: nowrap;
1547
+ text-overflow: ellipsis;
1548
+ }
1549
+ .fw-result--error {
1550
+ color: var(--danger);
1551
+ }
1552
+ .fw-result--pending {
1553
+ font-family: inherit;
1554
+ color: var(--fg-dim);
1555
+ }
1556
+ .fw-result-note {
1557
+ color: var(--fg-dim);
1558
+ }
1559
+ /* Monaco's host. It must have a real height of its own — the editor measures its container, and a
1560
+ flex item with `auto` minimum would report the editor's own content height back at itself. */
1561
+ .fw-code {
1562
+ flex: 1;
1563
+ min-height: 0;
1564
+ }
1565
+ /* The code surface has no chip strip, no rail and no result line, so the editor takes the height
1566
+ the formula surface spends on all three. */
1567
+ .formula-workspace--code {
1568
+ overflow: hidden;
1569
+ }
1570
+
1571
+ /* ─── Languages (parity grid) ─────────────────────────────────────────────────
1572
+ A grid over ABSENCE: one row per translation key, one column per declared locale, and a cell
1573
+ that is a button whichever of the three states it is in. The glyph carries the state and the
1574
+ colour repeats it, the way `.problem-row--*` does, because a column of squares is read by
1575
+ scanning rather than by reading. */
1576
+ .i18n-panel {
1577
+ display: flex;
1578
+ flex-direction: column;
1579
+ gap: 8px;
1580
+ padding: 8px;
1581
+ min-width: 0;
1582
+ }
1583
+ .i18n-actions {
1584
+ display: flex;
1585
+ align-items: baseline;
1586
+ justify-content: space-between;
1587
+ gap: 8px;
1588
+ }
1589
+ .i18n-summary {
1590
+ margin: 0;
1591
+ min-width: 0;
1592
+ color: var(--fg-dim);
1593
+ font-size: var(--spectrum-font-size-50, 11px);
1594
+ }
1595
+ .i18n-rescan {
1596
+ flex: none;
1597
+ padding: 2px 8px;
1598
+ border: 1px solid var(--border);
1599
+ border-radius: var(--spectrum-corner-radius-75, 2px);
1600
+ background: transparent;
1601
+ color: var(--fg-dim);
1602
+ font: inherit;
1603
+ font-size: var(--spectrum-font-size-50, 11px);
1604
+ cursor: pointer;
1605
+ }
1606
+ .i18n-rescan:hover {
1607
+ color: var(--fg);
1608
+ background: var(--hover-bg);
1609
+ }
1610
+ /* A directory the scan could not read makes the whole grid a partial answer, so it says so above
1611
+ the table rather than letting an unreadable `content/` read as a project with no content. */
1612
+ .i18n-incomplete {
1613
+ margin: 0;
1614
+ padding: 4px 6px;
1615
+ border-left: 3px solid var(--warning);
1616
+ border-radius: var(--radius);
1617
+ background: var(--bg-panel);
1618
+ color: var(--fg-dim);
1619
+ font-size: var(--spectrum-font-size-50, 11px);
1620
+ }
1621
+ /* The Navigator is narrow and a key is a path, so the table scrolls sideways rather than wrapping
1622
+ every path onto four lines. */
1623
+ .i18n-parity {
1624
+ display: block;
1625
+ overflow-x: auto;
1626
+ border-collapse: collapse;
1627
+ font-size: var(--spectrum-font-size-75, 12px);
1628
+ }
1629
+ .i18n-key-head,
1630
+ .i18n-locale-head {
1631
+ padding: 2px 6px;
1632
+ border-bottom: 1px solid var(--border);
1633
+ color: var(--fg-dim);
1634
+ font-size: var(--spectrum-font-size-50, 11px);
1635
+ font-weight: 700;
1636
+ text-align: start;
1637
+ text-transform: uppercase;
1638
+ letter-spacing: 0.04em;
1639
+ white-space: nowrap;
1640
+ }
1641
+ .i18n-default-mark {
1642
+ margin-inline-start: 4px;
1643
+ color: var(--accent);
1644
+ font-weight: 400;
1645
+ text-transform: none;
1646
+ letter-spacing: normal;
1647
+ }
1648
+ .i18n-row:hover {
1649
+ background: var(--hover-bg);
1650
+ }
1651
+ .i18n-key {
1652
+ max-width: 220px;
1653
+ overflow: hidden;
1654
+ padding: 2px 6px;
1655
+ color: var(--fg);
1656
+ font-family: var(--font-mono);
1657
+ font-size: var(--spectrum-font-size-50, 11px);
1658
+ font-weight: 400;
1659
+ text-align: start;
1660
+ text-overflow: ellipsis;
1661
+ white-space: nowrap;
1662
+ }
1663
+ .i18n-cell {
1664
+ padding: 2px 6px;
1665
+ text-align: center;
1666
+ }
1667
+ .i18n-cell-button {
1668
+ inline-size: 22px;
1669
+ block-size: 18px;
1670
+ border: 1px solid var(--border);
1671
+ border-radius: var(--spectrum-corner-radius-75, 2px);
1672
+ background: transparent;
1673
+ color: var(--fg-dim);
1674
+ font: inherit;
1675
+ font-size: var(--spectrum-font-size-75, 12px);
1676
+ line-height: 1;
1677
+ cursor: pointer;
1678
+ }
1679
+ .i18n-cell-button:hover:not(:disabled) {
1680
+ background: var(--hover-bg);
1681
+ }
1682
+ .i18n-cell-button:disabled {
1683
+ cursor: default;
1684
+ opacity: 0.45;
1685
+ }
1686
+ .i18n-cell-button--present {
1687
+ color: var(--success);
1688
+ }
1689
+ .i18n-cell-button--stale {
1690
+ color: var(--warning);
1691
+ border-color: var(--warning);
1692
+ }
1693
+ .i18n-cell-button--missing {
1694
+ color: var(--accent);
1695
+ border-style: dashed;
1696
+ }
1697
+ .i18n-truncated {
1698
+ margin: 0;
1699
+ color: var(--fg-dim);
1700
+ font-size: var(--spectrum-font-size-50, 11px);
1701
+ }