@johnoscott/isometric-engine 0.0.0-stage → 0.9.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 (310) hide show
  1. package/EDITOR-GUIDE.md +317 -0
  2. package/LICENSE +21 -0
  3. package/LICENSES/ajv.txt +22 -0
  4. package/LICENSES/lucide-static.txt +43 -0
  5. package/LICENSES/yaml.txt +13 -0
  6. package/README.md +62 -2
  7. package/assets/app.css +265 -0
  8. package/assets/default-theme.yaml +99 -0
  9. package/assets/icons.svg +1 -0
  10. package/assets/marks.css +35 -0
  11. package/assets/skin.css +181 -0
  12. package/iso-editor.d.ts +4 -0
  13. package/iso-editor.js +550 -0
  14. package/iso-render.d.ts +3 -0
  15. package/iso-render.js +388 -0
  16. package/iso-systems.d.ts +4 -0
  17. package/iso-systems.js +389 -0
  18. package/js/iso-core/compile-schema.js +22 -0
  19. package/js/iso-core/depth.js +55 -0
  20. package/js/iso-core/errors.js +65 -0
  21. package/js/iso-core/glyphs.js +100 -0
  22. package/js/iso-core/index.js +55 -0
  23. package/js/iso-core/kernel.js +158 -0
  24. package/js/iso-core/metrics.json +1 -0
  25. package/js/iso-core/package.json +6 -0
  26. package/js/iso-core/parse.js +79 -0
  27. package/js/iso-core/schema-errors.js +170 -0
  28. package/js/iso-core/shims/crypto.js +125 -0
  29. package/js/iso-core/shims/path.js +49 -0
  30. package/js/iso-core/svg-dom.js +144 -0
  31. package/js/iso-core/theme.js +48 -0
  32. package/js/iso-core/vdom.js +48 -0
  33. package/js/iso-editor/adapter.js +0 -0
  34. package/js/iso-editor/clipboard.js +152 -0
  35. package/js/iso-editor/commands.js +173 -0
  36. package/js/iso-editor/complete.js +55 -0
  37. package/js/iso-editor/doc.js +182 -0
  38. package/js/iso-editor/index.js +105 -0
  39. package/js/iso-editor/model.js +210 -0
  40. package/js/iso-editor/outline.js +111 -0
  41. package/js/iso-editor/package.json +6 -0
  42. package/js/iso-editor/path.js +19 -0
  43. package/js/iso-editor/providers.js +96 -0
  44. package/js/iso-editor/schema-nav.js +117 -0
  45. package/js/iso-editor/splice.js +441 -0
  46. package/js/iso-editor/storage-keys.js +6 -0
  47. package/js/iso-editor/ui/actions.js +116 -0
  48. package/js/iso-editor/ui/canvas-layer.js +0 -0
  49. package/js/iso-editor/ui/canvas.js +1205 -0
  50. package/js/iso-editor/ui/clip.js +133 -0
  51. package/js/iso-editor/ui/dialog.js +26 -0
  52. package/js/iso-editor/ui/flat-canvas.js +54 -0
  53. package/js/iso-editor/ui/icons.js +15 -0
  54. package/js/iso-editor/ui/keys.js +26 -0
  55. package/js/iso-editor/ui/later.js +28 -0
  56. package/js/iso-editor/ui/layer.js +11 -0
  57. package/js/iso-editor/ui/menu.js +105 -0
  58. package/js/iso-editor/ui/monaco-entry.js +2 -0
  59. package/js/iso-editor/ui/mount-kit.js +0 -0
  60. package/js/iso-editor/ui/mount.js +767 -0
  61. package/js/iso-editor/ui/pane.js +0 -0
  62. package/js/iso-editor/ui/part.js +0 -0
  63. package/js/iso-editor/ui/plain-icons.js +34 -0
  64. package/js/iso-editor/ui/props.js +314 -0
  65. package/js/iso-editor/ui/scope-css.js +81 -0
  66. package/js/iso-editor/ui/setup.js +145 -0
  67. package/js/iso-editor/ui/text.js +323 -0
  68. package/js/iso-editor/ui/tree.js +728 -0
  69. package/js/iso-editor/validate.js +33 -0
  70. package/js/iso-editor/window/protocol.js +8 -0
  71. package/js/iso-objects/assemble.js +43 -0
  72. package/js/iso-objects/assets.js +88 -0
  73. package/js/iso-objects/board.js +162 -0
  74. package/js/iso-objects/compile.js +60 -0
  75. package/js/iso-objects/css.js +154 -0
  76. package/js/iso-objects/flat.js +696 -0
  77. package/js/iso-objects/focus.js +16 -0
  78. package/js/iso-objects/geometry.js +76 -0
  79. package/js/iso-objects/index.js +93 -0
  80. package/js/iso-objects/kinds.js +12 -0
  81. package/js/iso-objects/labels.js +325 -0
  82. package/js/iso-objects/package.json +6 -0
  83. package/js/iso-objects/place.js +347 -0
  84. package/js/iso-objects/route.js +461 -0
  85. package/js/iso-objects/scene.js +350 -0
  86. package/js/iso-objects/steps.js +246 -0
  87. package/js/iso-objects/types.js +0 -0
  88. package/js/iso-systems/catalog.js +42 -0
  89. package/js/iso-systems/compile.js +34 -0
  90. package/js/iso-systems/css.js +8 -0
  91. package/js/iso-systems/index.js +16 -0
  92. package/js/iso-systems/nodes.js +124 -0
  93. package/js/iso-systems/package.json +6 -0
  94. package/js/iso-systems/schema.json +311 -0
  95. package/js/iso-systems/validate.js +35 -0
  96. package/js/iso-viewer/bundle.js +20 -0
  97. package/js/iso-viewer/card-motion.js +228 -0
  98. package/js/iso-viewer/dom.js +14 -0
  99. package/js/iso-viewer/dual-view.js +212 -0
  100. package/js/iso-viewer/flat-view.js +124 -0
  101. package/js/iso-viewer/history.js +990 -0
  102. package/js/iso-viewer/index.js +98 -0
  103. package/js/iso-viewer/morph.js +192 -0
  104. package/js/iso-viewer/overlay.js +199 -0
  105. package/js/iso-viewer/package.json +6 -0
  106. package/js/iso-viewer/page.js +138 -0
  107. package/js/iso-viewer/player.js +409 -0
  108. package/js/iso-viewer/still.js +81 -0
  109. package/js/iso-viewer/timeline-contract.js +14 -0
  110. package/js/iso-viewer/timeline-engine.js +475 -0
  111. package/js/iso-viewer/timeline-export.js +36 -0
  112. package/js/iso-viewer/timeline-scale.js +116 -0
  113. package/js/iso-viewer/timeline-scope.js +58 -0
  114. package/js/iso-viewer/timeline-search.js +216 -0
  115. package/js/iso-viewer/timeline-time.js +55 -0
  116. package/js/iso-viewer/view-css.js +68 -0
  117. package/js/iso-viewer/viewport.js +177 -0
  118. package/package.json +502 -4
  119. package/src/iso-core/compile-schema.ts +23 -0
  120. package/src/iso-core/depth.ts +56 -0
  121. package/src/iso-core/errors.ts +73 -0
  122. package/src/iso-core/glyphs.ts +108 -0
  123. package/src/iso-core/index.ts +27 -0
  124. package/src/iso-core/kernel.ts +163 -0
  125. package/src/iso-core/metrics.json +1 -0
  126. package/src/iso-core/package.json +6 -0
  127. package/src/iso-core/parse.ts +91 -0
  128. package/src/iso-core/schema-errors.ts +163 -0
  129. package/src/iso-core/shims/crypto.ts +37 -0
  130. package/src/iso-core/shims/path.ts +24 -0
  131. package/src/iso-core/svg-dom.ts +103 -0
  132. package/src/iso-core/theme.ts +64 -0
  133. package/src/iso-core/vdom.ts +41 -0
  134. package/src/iso-editor/adapter.ts +128 -0
  135. package/src/iso-editor/clipboard.ts +163 -0
  136. package/src/iso-editor/commands.ts +191 -0
  137. package/src/iso-editor/complete.ts +73 -0
  138. package/src/iso-editor/doc.ts +207 -0
  139. package/src/iso-editor/index.ts +67 -0
  140. package/src/iso-editor/model.ts +234 -0
  141. package/src/iso-editor/outline.ts +126 -0
  142. package/src/iso-editor/package.json +6 -0
  143. package/src/iso-editor/path.ts +18 -0
  144. package/src/iso-editor/providers.ts +113 -0
  145. package/src/iso-editor/schema-nav.ts +129 -0
  146. package/src/iso-editor/splice.ts +472 -0
  147. package/src/iso-editor/storage-keys.ts +6 -0
  148. package/src/iso-editor/ui/actions.ts +119 -0
  149. package/src/iso-editor/ui/app.css +230 -0
  150. package/src/iso-editor/ui/canvas-layer.ts +56 -0
  151. package/src/iso-editor/ui/canvas.ts +1071 -0
  152. package/src/iso-editor/ui/clip.ts +97 -0
  153. package/src/iso-editor/ui/dialog.ts +25 -0
  154. package/src/iso-editor/ui/flat-canvas.ts +51 -0
  155. package/src/iso-editor/ui/icons.ts +21 -0
  156. package/src/iso-editor/ui/keys.ts +30 -0
  157. package/src/iso-editor/ui/later.ts +22 -0
  158. package/src/iso-editor/ui/layer.ts +7 -0
  159. package/src/iso-editor/ui/marks.css +35 -0
  160. package/src/iso-editor/ui/menu.ts +67 -0
  161. package/src/iso-editor/ui/monaco-entry.ts +6 -0
  162. package/src/iso-editor/ui/mount-kit.ts +35 -0
  163. package/src/iso-editor/ui/mount.ts +684 -0
  164. package/src/iso-editor/ui/pane.ts +45 -0
  165. package/src/iso-editor/ui/part.ts +45 -0
  166. package/src/iso-editor/ui/plain-icons.ts +83 -0
  167. package/src/iso-editor/ui/props.ts +347 -0
  168. package/src/iso-editor/ui/scope-css.ts +65 -0
  169. package/src/iso-editor/ui/setup.ts +144 -0
  170. package/src/iso-editor/ui/skin.css +181 -0
  171. package/src/iso-editor/ui/text.ts +262 -0
  172. package/src/iso-editor/ui/tree.ts +657 -0
  173. package/src/iso-editor/validate.ts +62 -0
  174. package/src/iso-editor/window/protocol.ts +33 -0
  175. package/src/iso-objects/assemble.ts +57 -0
  176. package/src/iso-objects/assets.ts +122 -0
  177. package/src/iso-objects/board.ts +169 -0
  178. package/src/iso-objects/compile.ts +76 -0
  179. package/src/iso-objects/css.ts +163 -0
  180. package/src/iso-objects/flat.ts +653 -0
  181. package/src/iso-objects/focus.ts +14 -0
  182. package/src/iso-objects/geometry.ts +86 -0
  183. package/src/iso-objects/index.ts +33 -0
  184. package/src/iso-objects/kinds.ts +56 -0
  185. package/src/iso-objects/labels.ts +310 -0
  186. package/src/iso-objects/package.json +6 -0
  187. package/src/iso-objects/place.ts +318 -0
  188. package/src/iso-objects/route.ts +444 -0
  189. package/src/iso-objects/scene.ts +376 -0
  190. package/src/iso-objects/steps.ts +234 -0
  191. package/src/iso-objects/types.ts +68 -0
  192. package/src/iso-systems/catalog.ts +31 -0
  193. package/src/iso-systems/compile.ts +39 -0
  194. package/src/iso-systems/css.ts +9 -0
  195. package/src/iso-systems/index.ts +12 -0
  196. package/src/iso-systems/nodes.ts +126 -0
  197. package/src/iso-systems/package.json +6 -0
  198. package/src/iso-systems/schema.json +311 -0
  199. package/src/iso-systems/validate.ts +34 -0
  200. package/src/iso-viewer/bundle.ts +15 -0
  201. package/src/iso-viewer/card-motion.ts +237 -0
  202. package/src/iso-viewer/dom.ts +13 -0
  203. package/src/iso-viewer/dual-view.ts +212 -0
  204. package/src/iso-viewer/flat-view.ts +127 -0
  205. package/src/iso-viewer/history.ts +781 -0
  206. package/src/iso-viewer/index.ts +40 -0
  207. package/src/iso-viewer/morph.ts +191 -0
  208. package/src/iso-viewer/overlay.ts +212 -0
  209. package/src/iso-viewer/package.json +6 -0
  210. package/src/iso-viewer/page.ts +150 -0
  211. package/src/iso-viewer/player.ts +321 -0
  212. package/src/iso-viewer/still.ts +74 -0
  213. package/src/iso-viewer/timeline-contract.ts +342 -0
  214. package/src/iso-viewer/timeline-engine.ts +420 -0
  215. package/src/iso-viewer/timeline-export.ts +31 -0
  216. package/src/iso-viewer/timeline-scale.ts +129 -0
  217. package/src/iso-viewer/timeline-scope.ts +56 -0
  218. package/src/iso-viewer/timeline-search.ts +198 -0
  219. package/src/iso-viewer/timeline-time.ts +54 -0
  220. package/src/iso-viewer/view-css.ts +59 -0
  221. package/src/iso-viewer/viewport.ts +142 -0
  222. package/types/iso-core/compile-schema.d.ts +11 -0
  223. package/types/iso-core/depth.d.ts +6 -0
  224. package/types/iso-core/errors.d.ts +24 -0
  225. package/types/iso-core/glyphs.d.ts +19 -0
  226. package/types/iso-core/index.d.ts +17 -0
  227. package/types/iso-core/kernel.d.ts +130 -0
  228. package/types/iso-core/metrics.json +1 -0
  229. package/types/iso-core/parse.d.ts +18 -0
  230. package/types/iso-core/schema-errors.d.ts +14 -0
  231. package/types/iso-core/shims/crypto.d.ts +9 -0
  232. package/types/iso-core/svg-dom.d.ts +15 -0
  233. package/types/iso-core/theme.d.ts +38 -0
  234. package/types/iso-core/vdom.d.ts +26 -0
  235. package/types/iso-editor/adapter.d.ts +145 -0
  236. package/types/iso-editor/clipboard.d.ts +23 -0
  237. package/types/iso-editor/commands.d.ts +32 -0
  238. package/types/iso-editor/complete.d.ts +25 -0
  239. package/types/iso-editor/doc.d.ts +50 -0
  240. package/types/iso-editor/index.d.ts +57 -0
  241. package/types/iso-editor/model.d.ts +96 -0
  242. package/types/iso-editor/outline.d.ts +28 -0
  243. package/types/iso-editor/path.d.ts +7 -0
  244. package/types/iso-editor/providers.d.ts +43 -0
  245. package/types/iso-editor/schema-nav.d.ts +34 -0
  246. package/types/iso-editor/splice.d.ts +53 -0
  247. package/types/iso-editor/storage-keys.d.ts +5 -0
  248. package/types/iso-editor/ui/actions.d.ts +23 -0
  249. package/types/iso-editor/ui/canvas-layer.d.ts +65 -0
  250. package/types/iso-editor/ui/canvas.d.ts +279 -0
  251. package/types/iso-editor/ui/clip.d.ts +14 -0
  252. package/types/iso-editor/ui/dialog.d.ts +7 -0
  253. package/types/iso-editor/ui/flat-canvas.d.ts +2 -0
  254. package/types/iso-editor/ui/icons.d.ts +5 -0
  255. package/types/iso-editor/ui/keys.d.ts +7 -0
  256. package/types/iso-editor/ui/later.d.ts +12 -0
  257. package/types/iso-editor/ui/layer.d.ts +2 -0
  258. package/types/iso-editor/ui/menu.d.ts +21 -0
  259. package/types/iso-editor/ui/mount-kit.d.ts +31 -0
  260. package/types/iso-editor/ui/mount.d.ts +146 -0
  261. package/types/iso-editor/ui/pane.d.ts +60 -0
  262. package/types/iso-editor/ui/part.d.ts +40 -0
  263. package/types/iso-editor/ui/plain-icons.d.ts +10 -0
  264. package/types/iso-editor/ui/props.d.ts +57 -0
  265. package/types/iso-editor/ui/scope-css.d.ts +5 -0
  266. package/types/iso-editor/ui/setup.d.ts +40 -0
  267. package/types/iso-editor/ui/text.d.ts +19 -0
  268. package/types/iso-editor/ui/tree.d.ts +100 -0
  269. package/types/iso-editor/validate.d.ts +36 -0
  270. package/types/iso-editor/window/protocol.d.ts +60 -0
  271. package/types/iso-objects/assemble.d.ts +35 -0
  272. package/types/iso-objects/assets.d.ts +49 -0
  273. package/types/iso-objects/board.d.ts +36 -0
  274. package/types/iso-objects/compile.d.ts +35 -0
  275. package/types/iso-objects/css.d.ts +16 -0
  276. package/types/iso-objects/flat.d.ts +130 -0
  277. package/types/iso-objects/focus.d.ts +1 -0
  278. package/types/iso-objects/geometry.d.ts +59 -0
  279. package/types/iso-objects/index.d.ts +26 -0
  280. package/types/iso-objects/kinds.d.ts +53 -0
  281. package/types/iso-objects/labels.d.ts +92 -0
  282. package/types/iso-objects/place.d.ts +25 -0
  283. package/types/iso-objects/route.d.ts +67 -0
  284. package/types/iso-objects/scene.d.ts +63 -0
  285. package/types/iso-objects/steps.d.ts +90 -0
  286. package/types/iso-objects/types.d.ts +140 -0
  287. package/types/iso-systems/catalog.d.ts +4 -0
  288. package/types/iso-systems/compile.d.ts +6 -0
  289. package/types/iso-systems/css.d.ts +3 -0
  290. package/types/iso-systems/index.d.ts +5 -0
  291. package/types/iso-systems/nodes.d.ts +3 -0
  292. package/types/iso-viewer/card-motion.d.ts +56 -0
  293. package/types/iso-viewer/dom.d.ts +1 -0
  294. package/types/iso-viewer/dual-view.d.ts +44 -0
  295. package/types/iso-viewer/flat-view.d.ts +25 -0
  296. package/types/iso-viewer/history.d.ts +91 -0
  297. package/types/iso-viewer/index.d.ts +31 -0
  298. package/types/iso-viewer/morph.d.ts +28 -0
  299. package/types/iso-viewer/overlay.d.ts +135 -0
  300. package/types/iso-viewer/page.d.ts +13 -0
  301. package/types/iso-viewer/still.d.ts +26 -0
  302. package/types/iso-viewer/timeline-contract.d.ts +345 -0
  303. package/types/iso-viewer/timeline-engine.d.ts +20 -0
  304. package/types/iso-viewer/timeline-export.d.ts +5 -0
  305. package/types/iso-viewer/timeline-scale.d.ts +44 -0
  306. package/types/iso-viewer/timeline-scope.d.ts +33 -0
  307. package/types/iso-viewer/timeline-search.d.ts +52 -0
  308. package/types/iso-viewer/timeline-time.d.ts +8 -0
  309. package/types/iso-viewer/view-css.d.ts +7 -0
  310. package/types/iso-viewer/viewport.d.ts +50 -0
package/assets/app.css ADDED
@@ -0,0 +1,265 @@
1
+ /* The editor's own layout, on its skin's tokens and blocks (L3's plain skin, or a domain's layered over it). No colour
2
+ here that isn't a token. Laid out as a page: a title bar, a sidebar, the centre, a status bar. */
3
+ @layer views {
4
+ html, body { height: 100%; }
5
+ body { display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
6
+
7
+ .titlebar { display: flex; align-items: center; gap: var(--sp-3); height: var(--title-bar-h); padding: 0 var(--sp-5);
8
+ background: var(--surface); border-bottom: var(--bw) solid var(--line); flex: none; }
9
+ .titlebar .brand { color: var(--ink-2); font-size: var(--fs-md); white-space: nowrap; }
10
+ .titlebar .brand b { color: var(--ink); font-weight: var(--fw-strong); }
11
+ .titlebar .file { font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
12
+ padding-left: var(--sp-3); border-left: var(--bw) solid var(--line); }
13
+ #se-fname.dirty::after { content: " ●"; color: var(--accent); }
14
+ .spacer { flex: 1; }
15
+
16
+ .body { flex: 1; display: flex; min-height: 0; }
17
+ .side { width: var(--side-w, 260px); flex: none; display: flex; flex-direction: column; background: var(--surface); border-right: var(--bw) solid var(--line); min-height: 0; }
18
+ .side-head { padding: var(--sp-3) var(--sp-4) var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-strong); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
19
+ .side-head .root { display: block; text-transform: none; letter-spacing: 0; font-weight: var(--fw-regular); font-family: var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: var(--sp-0); }
20
+ #se-files { list-style: none; margin: 0; padding: 0 var(--sp-2) var(--sp-3); overflow: auto; }
21
+ .frow { display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: var(--ctl-md); padding: 0 var(--sp-2) 0 calc(var(--sp-2) + var(--depth, 0) * var(--tree-indent));
22
+ border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
23
+ .frow:hover { background: var(--state-hover); }
24
+ .frow.current { background: var(--accent-tint); }
25
+ .frow .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: var(--fs-mono); }
26
+ .frow .kind { font-size: var(--fs-xs); color: var(--ink-3); border: var(--bw) solid var(--line); border-radius: var(--r-pill); padding: 0 var(--sp-2); }
27
+
28
+ .center { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; background: var(--surface); }
29
+ #se-code { flex: 1 1 0; min-width: 0; min-height: 0; position: relative; }
30
+
31
+ /* E7: the keyboard sheet */
32
+ dialog.dlg.keys-dlg { width: min(720px, calc(100vw - 32px)); }
33
+ .keys { columns: 2 280px; column-gap: var(--sp-6); display: block; }
34
+ .keys-h { font-size: var(--fs-sm); font-weight: var(--fw-strong); color: var(--ink-2); margin: var(--sp-2) 0 var(--sp-1); break-after: avoid; }
35
+ .keys-list { display: grid; grid-template-columns: auto 1fr; column-gap: var(--sp-3); row-gap: var(--sp-1); margin: 0 0 var(--sp-4); break-inside: avoid; font-size: var(--fs-sm); }
36
+ .keys-list dt { white-space: nowrap; color: var(--ink-2); }
37
+ .keys-list dd { margin: 0; }
38
+ .keys-list kbd { font-family: var(--mono); font-size: var(--fs-xs); padding: 0 var(--sp-1); border: var(--bw) solid var(--line); border-bottom-width: 2px; border-radius: var(--r-xs); background: var(--surface-2); color: var(--ink); }
39
+ @media (prefers-reduced-motion: reduce) { .problems-toggle .icon { transition: none; } }
40
+
41
+ /* E6: files */
42
+ .filebar { margin: var(--sp-2) var(--sp-3) 0; flex: none; }
43
+ .filebar .c-body { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
44
+ #se-files .files-head { padding: var(--sp-2) var(--sp-2) var(--sp-1); font-size: var(--fs-xs); font-weight: var(--fw-strong); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
45
+ #se-files .files-empty { padding: var(--sp-3) var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
46
+ body[data-store="browser"] .side-head .root { color: var(--accent); }
47
+
48
+ /* E4: the work area, the canvas beside the text (or either alone) */
49
+ .work { flex: 1; min-height: 0; display: flex; }
50
+ #se-canvas { flex: 0 0 var(--canvas-w, 55%); min-width: 0; position: relative; background: var(--bg); border-right: var(--bw) solid var(--line); overflow: hidden; }
51
+ body[data-view="canvas"] #se-canvas { flex: 1 1 auto; border-right: 0; }
52
+ body[data-view="canvas"] #se-code, body[data-view="canvas"] #se-work-grip { display: none; }
53
+ body[data-view="text"] #se-canvas, body[data-view="text"] #se-work-grip { display: none; }
54
+ /* the stage (canvas.css styles the drawing in it); focused by a click, a quieter ring than the keyboard's */
55
+ .canvas.has-focus .canvas-stage:not(:focus-visible) { outline: 2px solid color-mix(in srgb, var(--focus) 50%, transparent); outline-offset: -2px; }
56
+ .canvas-tools { position: absolute; right: var(--sp-3); bottom: var(--sp-3); display: flex; gap: var(--sp-0); padding: var(--sp-0); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1, none); }
57
+ .canvas-tools .segmented { margin-right: var(--sp-1); }
58
+ .status .hint-mode { color: var(--ink-3); }
59
+ body[data-view="text"] .status .hint-mode { display: none; }
60
+ .canvas-tools .zoom-label { min-width: 52px; font-variant-numeric: tabular-nums; }
61
+ .canvas-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); color: var(--ink-2); text-align: center; background: var(--bg); }
62
+ .canvas-empty[hidden] { display: none; }
63
+
64
+ /* E4: the properties panel */
65
+ .sel-headrow { display: flex; align-items: center; gap: var(--sp-2); }
66
+ .sel-headrow .sel-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
67
+ .props { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); }
68
+ /* the label above the field, the field the row's whole width; a wide panel puts them side by side */
69
+ .prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-2); row-gap: var(--sp-0); align-items: center; padding: var(--sp-1); border-radius: var(--r-sm); }
70
+ .prow .plabel { grid-column: 1 / -1; }
71
+ @container (min-width: 480px) {
72
+ .prow { grid-template-columns: 120px minmax(0, 1fr) auto; }
73
+ .prow .plabel { grid-column: 1; }
74
+ .prow .pfrom, .prow .pprob, .prow .pinherit, .prow .poverride { grid-column: 2 / -1; }
75
+ }
76
+ .prow .pinherit { grid-column: 1 / -1; font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink-3); overflow-wrap: anywhere; padding: var(--sp-0) 0; }
77
+ .prow .poverride { grid-column: 1 / -1; justify-self: start; }
78
+ .padd { margin-top: var(--sp-2); align-self: flex-start; min-height: var(--ctl-sm); font-size: var(--fs-sm); color: var(--accent); }
79
+ .prow.focus-row { background: var(--accent-tint); }
80
+ .prow .plabel { font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
81
+ .prow.unset .plabel { color: var(--ink-3); }
82
+ .prow .pinput { width: 100%; min-height: var(--ctl-sm); font-size: var(--fs-sm); }
83
+ .prow input.pinput, .prow .pinput.mono { font-family: var(--mono); font-size: var(--fs-mono); }
84
+ .prow textarea.pinput { grid-column: 1 / -1; min-height: 72px; }
85
+ .prow .pacts { display: inline-flex; gap: var(--sp-0); }
86
+ .prow .pfrom, .prow .pprob { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--ink-3); overflow-wrap: anywhere; }
87
+ .prow .pprob { display: flex; gap: var(--sp-1); align-items: center; color: var(--bad); } .prow .pprob.warning { color: var(--warn); }
88
+ .prow .pprob .icon { width: 12px; height: 12px; }
89
+ .chips { display: flex; flex-wrap: wrap; gap: var(--sp-1); align-items: center; }
90
+ .chip { display: inline-flex; align-items: center; gap: var(--sp-0); height: 22px; padding: 0 var(--sp-1) 0 var(--sp-2); border-radius: var(--r-pill); background: var(--surface-2); border: var(--bw) solid var(--line); font: var(--fs-mono)/1 var(--mono); }
91
+ .chip-x { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
92
+ .chip-x:hover { color: var(--bad); }
93
+ .chip-add { width: auto !important; min-width: 80px; }
94
+ .props-delete { margin-top: var(--sp-4); align-self: flex-start; }
95
+ .mono-input { font-family: var(--mono); }
96
+ #se-grip { height: 6px; margin: -3px 0; cursor: row-resize; z-index: 2; position: relative; }
97
+ #se-grip:hover, #se-grip:focus-visible { background: color-mix(in srgb, var(--accent) 30%, transparent); }
98
+ #se-problems { height: var(--problems-h, 160px); flex: none; overflow: auto; border-top: var(--bw) solid var(--line); background: var(--bg); font-size: var(--fs-sm); }
99
+ #se-problems.collapsed { height: auto; overflow: hidden; }
100
+ #se-problems.collapsed #se-problems-list { display: none; }
101
+ .center:has(#se-problems.collapsed) #se-grip { display: none; }
102
+ .problems-toggle { display: inline-flex; align-items: center; gap: var(--sp-1); border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
103
+ .problems-toggle .icon { width: 14px; height: 14px; transition: transform var(--dur-1, 0ms); }
104
+ .problems-toggle[aria-expanded="true"] .icon { transform: rotate(90deg); }
105
+ #se-problems.collapsed .problems-head { border-bottom: 0; }
106
+ .problems-head { position: sticky; top: 0; padding: var(--sp-1) var(--sp-4); background: var(--bg); color: var(--ink-2); font-weight: var(--fw-strong); border-bottom: var(--bw) solid var(--line); }
107
+ .prob { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: var(--sp-3); width: 100%; padding: var(--sp-1) var(--sp-4); border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
108
+ .prob:hover { background: var(--state-hover); }
109
+ .prob .where { font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink-3); }
110
+ .prob.error .where { color: var(--bad); }
111
+ .prob.warning .where { color: var(--warn); }
112
+ .prob .hint { grid-column: 2; color: var(--ink-2); }
113
+ #se-note { position: absolute; right: var(--sp-5); bottom: calc(var(--problems-h, 160px) + var(--sp-4)); max-width: 520px; z-index: 5; box-shadow: var(--shadow-2, none); }
114
+
115
+ .status { display: flex; align-items: center; gap: var(--sp-4); height: var(--status-h); padding: 0 var(--sp-5); flex: none;
116
+ background: var(--surface); border-top: var(--bw) solid var(--line); color: var(--ink-2); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
117
+ .status .path { font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
118
+ #se-st-problems.bad { color: var(--bad); } #se-st-problems.warn { color: var(--warn); } #se-st-problems.ok { color: var(--ok); }
119
+
120
+ /* E3: the sidebar's tabs and the tree */
121
+ .side-tabs { margin: var(--sp-3) var(--sp-3) var(--sp-2); display: flex; }
122
+ .side-tabs .seg { flex: 1; justify-content: center; }
123
+ #se-outline { flex: 1; min-height: 0; overflow: auto; padding: 0 var(--sp-2) var(--sp-4); }
124
+ #se-files-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
125
+ #se-files-pane[hidden], #se-outline[hidden] { display: none; }
126
+ .tree:focus-within .trow.selected { background: var(--accent-tint); }
127
+ .trow { display: flex; align-items: center; gap: var(--sp-1); min-height: var(--ctl-sm); padding: 0 var(--sp-1) 0 calc(var(--sp-1) + var(--depth, 0) * var(--tree-indent));
128
+ border-radius: var(--r-sm); cursor: default; position: relative; color: var(--ink); white-space: nowrap; }
129
+ .trow:hover { background: var(--state-hover); }
130
+ .trow.selected { background: color-mix(in srgb, var(--accent-tint) 70%, transparent); }
131
+ .trow:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
132
+ .trow .twisty { width: 16px; height: 16px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); cursor: pointer; }
133
+ .trow .twisty .icon { width: 14px; height: 14px; }
134
+ .trow .ticon { width: 14px; height: 14px; color: var(--ink-2); }
135
+ .trow.k-group > .ticon, .trow.k-resource > .ticon { color: var(--accent); }
136
+ .trow .tlabel { font-size: var(--fs-md); flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
137
+ .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
138
+ .trow.k-group > .tlabel { font-weight: var(--fw-strong); }
139
+ .trow.k-key > .tlabel, .trow.k-item > .tlabel { font-family: var(--mono); font-size: var(--fs-mono); }
140
+ .trow.ext > .tlabel { color: var(--ink-2); font-style: italic; }
141
+ .trow .tval { font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; margin-left: var(--sp-1); }
142
+ .trow .tval.none, .trow.missing > .tlabel { color: var(--ink-3); }
143
+ .trow .tcount { font-size: var(--fs-xs); color: var(--ink-3); }
144
+ .trow .tpill { font-size: var(--fs-xs); border-radius: var(--r-pill); padding: 0 var(--sp-2); border: var(--bw) solid var(--line); color: var(--ink-2); flex: none; }
145
+ .trow .tpill.l-external { border-style: dashed; }
146
+ .trow .count { margin-left: auto; }
147
+ .trow .tadd { margin-left: auto; visibility: hidden; height: 20px; width: 20px; }
148
+ .trow .count + .tadd { margin-left: 0; }
149
+ .trow:hover .tadd, .trow:focus-visible .tadd, .trow.selected .tadd { visibility: visible; }
150
+ .trow .tedit { height: 22px; min-height: 22px; padding: 0 var(--sp-2); font-family: var(--mono); font-size: var(--fs-mono); flex: 1 1 auto; min-width: 60px; }
151
+ .trow .tedit[aria-invalid="true"] { border-color: var(--bad); }
152
+ .trow.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
153
+ .trow.drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
154
+ .tree-note { margin: var(--sp-2) 0; }
155
+ .ref-list { margin: 0; padding-left: var(--sp-5); font-size: var(--fs-sm); }
156
+ .ref-list code { font-size: var(--fs-mono); }
157
+
158
+ /* the panels' grips, and the selection panel */
159
+ .vgrip { width: 6px; margin: 0 -3px; cursor: col-resize; z-index: 3; flex: none; position: relative; }
160
+ .vgrip:hover, .vgrip:focus-visible { background: color-mix(in srgb, var(--accent) 30%, transparent); }
161
+ .right { width: var(--right-w, 340px); overflow-x: hidden; container-type: inline-size; flex: none; display: flex; flex-direction: column; background: var(--surface); border-left: var(--bw) solid var(--line); min-height: 0; overflow: auto; }
162
+ body.no-right .right, body.no-right #se-right-grip { display: none; }
163
+ .sel-body { padding: 0 var(--sp-4) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-md); }
164
+ .sel-title { font-weight: var(--fw-strong); font-size: var(--fs-lg); }
165
+ .sel-path { font-size: var(--fs-mono); color: var(--ink-2); overflow-wrap: anywhere; }
166
+ .sel-row { display: flex; gap: var(--sp-3); align-items: baseline; } .sel-row > span { color: var(--ink-2); min-width: 48px; }
167
+ .sel-doc { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
168
+ .sel-head { margin-top: var(--sp-3); font-size: var(--fs-xs); font-weight: var(--fw-strong); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
169
+ .sel-refs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sp-1); }
170
+ .linkish { border: 0; background: none; padding: 0; color: var(--accent); font: var(--fs-mono)/1.3 var(--mono); cursor: pointer; text-align: left; }
171
+ .linkish:hover { text-decoration: underline; }
172
+ .hint { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
173
+ .sel-prob { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); }
174
+ .sel-prob.error .icon { color: var(--bad); } .sel-prob.warning .icon { color: var(--warn); }
175
+ ul.plain { margin: 0; padding-left: var(--sp-5); }
176
+ .icon.flip { transform: scaleX(-1); }
177
+ .monaco-editor .sel-range { background: color-mix(in srgb, var(--accent-tint) 80%, transparent); border-radius: 2px; }
178
+
179
+ /* v0.4.1: narrow (the editor's own width ≤ 760 px, wherever the host puts it): the canvas takes the full width; the
180
+ outline is a drawer over it, opened by the titlebar's outline button; the properties and the grips are not shown */
181
+ body { container: se-root / inline-size; }
182
+ #se-tree { display: none; }
183
+ .scrim { display: none; }
184
+ @container se-root (max-width: 760px) {
185
+ .right, .vgrip, #se-panel { display: none; }
186
+ .titlebar { overflow: hidden; }
187
+ /* the canvas's toolbar wraps onto rows inside the canvas, right-aligned: nothing clipped */
188
+ .canvas-tools { left: var(--sp-2); right: var(--sp-2); bottom: var(--sp-2); flex-wrap: wrap; justify-content: flex-end; width: fit-content; margin-left: auto; max-width: calc(100% - 2 * var(--sp-2)); }
189
+ .titlebar { padding: 0 var(--sp-4); } .titlebar .brand { display: none; }
190
+ #se-tree { display: inline-flex; }
191
+ .body { position: relative; }
192
+ .side { position: absolute; left: 0; top: 0; bottom: 0; z-index: 20; width: min(var(--side-w, 300px), 85%); visibility: hidden; transform: translateX(-100%); transition: transform .18s ease, visibility 0s linear .18s; box-shadow: var(--shadow-2, 0 8px 24px rgb(0 0 0 / .18)); }
193
+ body.side-open .side { visibility: visible; transform: none; transition: transform .18s ease; }
194
+ body.side-open .scrim { display: block; position: absolute; inset: 0; z-index: 19; background: color-mix(in srgb, var(--ink) 18%, transparent); }
195
+ }
196
+ @media (prefers-reduced-motion: reduce) { .side { transition: none !important; } }
197
+ }
198
+
199
+ /* the component (mount.ts): its root fills the host's element; read-only; a problem in another file isn't a link */
200
+ @layer views {
201
+ body { position: relative; height: 100%; min-height: 0; font: var(--fw-regular) var(--fs-md)/var(--lh) var(--font); color: var(--ink); }
202
+ .title-start { display: contents; }
203
+ [hidden] { display: none !important; }
204
+ .pill.ro { font-size: var(--fs-xs); color: var(--warn); border: var(--bw) solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: var(--r-pill, 999px); padding: 0 var(--sp-2); }
205
+ .prob.other-file { cursor: default; }
206
+ .prob.other-file .where { font-style: italic; }
207
+ .sprite { display: none; }
208
+ }
209
+
210
+ /* the panel beside Problems (a host's deeper check): its tab and its label */
211
+ @layer views {
212
+ .problems-head { display: flex; align-items: center; gap: var(--sp-3); }
213
+ .bottom-tabs .seg { height: 22px; font-size: var(--fs-xs); }
214
+ .plan-label { font-size: var(--fs-xs); font-weight: var(--fw-medium); }
215
+ .plan-label.ok { color: var(--ok); } .plan-label.bad { color: var(--bad); }
216
+ #se-problems.collapsed #se-plan { display: none; }
217
+ }
218
+ /* E11: the palette, on the canvas: click to add, or drag onto the canvas */
219
+ @layer views {
220
+ .palette { position: absolute; left: var(--sp-3); top: var(--sp-3); display: flex; flex-direction: column; gap: 2px; padding: var(--sp-0); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1, none); z-index: 2; }
221
+ .pal-item { display: flex; align-items: center; gap: var(--sp-2); height: var(--ctl-sm); padding: 0 var(--sp-2); border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font: inherit; font-size: var(--fs-sm); cursor: grab; text-align: left; touch-action: none; user-select: none; }
222
+ .pal-item:hover { background: var(--state-hover); color: var(--ink); }
223
+ .pal-item:active { cursor: grabbing; }
224
+ .pal-item .icon { width: 14px; height: 14px; }
225
+ body.read-only .palette { display: none; }
226
+ .pal-ghost { position: absolute; z-index: 5; pointer-events: none; display: flex; align-items: center; gap: var(--sp-1); padding: 2px var(--sp-2); border: var(--bw) solid var(--accent); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: var(--fs-sm); box-shadow: var(--shadow-2, none); }
227
+ .pal-ghost .icon { width: 14px; height: 14px; }
228
+ .pal-ghost.bad { border-color: var(--bad); color: var(--bad); }
229
+ }
230
+
231
+ /* The canvas's own marks over the drawing (0.7.4), for the plain words (setup.ts: the root .iso-canvas, the pan key's
232
+ class .pan-key): selection, hover, marquee, the drag's grid, drop target and edges,
233
+ problem badges, and the canvas's cursors. On the skin's tokens: --iso-sel* default to --accent, --iso-bad and
234
+ --iso-warn to --bad and --warn; a host may set any of them on .iso-canvas. The package's assets/app.css carries
235
+ this file after the layout, and it ships alone as assets/marks.css. (A domain with its own words styles its own.)
236
+ Without any of it the marks are still harmless: the overlay's own attributes give no fill and take no pointer. */
237
+ @layer views {
238
+ .iso-canvas { --iso-sel: var(--accent); --iso-sel-fill: color-mix(in srgb, var(--iso-sel) 12%, transparent);
239
+ --iso-sel-faint: color-mix(in srgb, var(--iso-sel) 6%, transparent); --iso-bad: var(--bad); --iso-warn: var(--warn); }
240
+ .iso-canvas svg.scene [data-id] { cursor: pointer; }
241
+ .iso-canvas svg.scene.mode-pan { cursor: grab; }
242
+ .iso-canvas svg.scene.mode-select { cursor: crosshair; }
243
+ .iso-canvas svg.scene.pan-key, .iso-canvas svg.scene.pan-key [data-id] { cursor: grab; }
244
+ .iso-canvas svg.scene.panning, .iso-canvas svg.scene.panning [data-id] { cursor: grabbing; }
245
+ .iso-canvas svg.scene.drag-bad, .iso-canvas svg.scene.drag-bad * { cursor: not-allowed !important; }
246
+ .iso-canvas svg.scene.dragging, .iso-canvas svg.scene.dragging * { cursor: grabbing; }
247
+ .iso-canvas .overlay, .iso-canvas .overlay * { pointer-events: none; }
248
+ .iso-canvas .overlay .ring { fill: var(--iso-sel-fill); stroke: var(--iso-sel); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
249
+ .iso-canvas .overlay .hover { fill: var(--iso-sel-faint); stroke: var(--iso-sel); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .55; }
250
+ .iso-canvas .overlay .route-ring { fill: none; stroke: var(--iso-sel); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .35; vector-effect: non-scaling-stroke; }
251
+ .iso-canvas .overlay .route-hover { fill: none; stroke: var(--iso-sel); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .18; vector-effect: non-scaling-stroke; }
252
+ .iso-canvas .overlay .marquee { fill: var(--iso-sel-fill); stroke: var(--iso-sel); stroke-width: 1.2; stroke-dasharray: 5 4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
253
+ .iso-canvas .overlay .dgrid { fill: none; stroke: var(--iso-sel); stroke-width: 1; opacity: .42; vector-effect: non-scaling-stroke; }
254
+ .iso-canvas .overlay .dgrid.sub { opacity: .24; stroke-dasharray: 2 3; }
255
+ .iso-canvas .overlay .gridwrap.fresh { animation: iso-gridin .18s ease-out; }
256
+ .iso-canvas .overlay .out { opacity: 0; transition: opacity .15s ease-in; }
257
+ .iso-canvas .overlay .drop { fill: var(--iso-sel-fill); stroke: var(--iso-sel); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
258
+ .iso-canvas .overlay .drop.bad { fill: color-mix(in srgb, var(--iso-bad) 18%, transparent); stroke: var(--iso-bad); }
259
+ .iso-canvas .overlay .edge { fill: none; stroke: var(--iso-sel); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
260
+ .iso-canvas .overlay .badge circle { fill: var(--iso-bad); stroke: none; }
261
+ .iso-canvas .overlay .badge.warn circle { fill: var(--iso-warn); }
262
+ .iso-canvas .overlay .badge text { fill: #fff; stroke: none; font-family: system-ui, sans-serif; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
263
+ @media (prefers-reduced-motion: reduce) { .iso-canvas .overlay .gridwrap.fresh { animation: none; } .iso-canvas .overlay .out { transition: none; } }
264
+ }
265
+ @keyframes iso-gridin { from { opacity: 0; } to { opacity: 1; } }
@@ -0,0 +1,99 @@
1
+ # The default theme: the tokens of the reference pages, verbatim.
2
+ # A theme is data. Every key becomes a CSS custom property (--key) for its mode.
3
+ name: default
4
+
5
+ light:
6
+ bg: "#f5f4ef"
7
+ surface: "#ffffff"
8
+ ink: "#1c1c1f"
9
+ muted: "#66666d"
10
+ line: "#dcd8ce"
11
+ code-bg: "#f0eee7"
12
+ on: "#ffffff" # text on a coloured step number or badge
13
+ # lightness of each block face; hue and saturation come from the node's role
14
+ l-top: 80%
15
+ l-left: 64%
16
+ l-right: 52%
17
+ l-edge: 30%
18
+ slab-top: "#e3dfd4"
19
+ slab-l: "#c9c3b4"
20
+ slab-r: "#b3ac9c"
21
+ pad-top: "#dfe3ea"
22
+ fence-text: "hsl(38 85% 32%)"
23
+ tunnel-text: "hsl(205 80% 32%)"
24
+ # flow kinds
25
+ send: "#2a64d6"
26
+ reply: "#14946a"
27
+ user: "#8446d0"
28
+ token: "#c9820a"
29
+ blocked: "#c8433a"
30
+ control: "#55565e"
31
+ event: "#c2317f"
32
+
33
+ dark:
34
+ bg: "#131316"
35
+ surface: "#1c1c20"
36
+ ink: "#ececf0"
37
+ muted: "#9d9da6"
38
+ line: "#33333a"
39
+ code-bg: "#24242a"
40
+ on: "#111111"
41
+ l-top: 44%
42
+ l-left: 32%
43
+ l-right: 24%
44
+ l-edge: 62%
45
+ slab-top: "#26262c"
46
+ slab-l: "#1d1d22"
47
+ slab-r: "#17171b"
48
+ pad-top: "#22252c"
49
+ fence-text: "hsl(38 90% 62%)"
50
+ tunnel-text: "hsl(205 80% 72%)"
51
+ send: "#6e9bff"
52
+ reply: "#3fcf98"
53
+ user: "#b58bff"
54
+ token: "#f2b33d"
55
+ blocked: "#ff7a6e"
56
+ control: "#b5b6bf"
57
+ event: "#ff86c8"
58
+
59
+ # Flow kinds: colour token, line style, legend text. Files may add more with `kinds:`.
60
+ kinds:
61
+ send: { color: send, dash: solid, legend: Message sent }
62
+ reply: { color: reply, dash: solid, legend: Reply or answer }
63
+ user: { color: user, dash: solid, legend: The human }
64
+ token: { color: token, dash: dashed, legend: Token, placeholder or swap }
65
+ blocked: { color: blocked, dash: dotted, legend: Blocked or refused }
66
+ control: { color: control, dash: solid, legend: Setup or control }
67
+ event: { color: event, dash: solid, legend: Wake or event }
68
+ planned: { color: token, dash: dashed, legend: Not built }
69
+
70
+ # Colour roles for nodes and regions: hue and saturation; lightness comes from the face.
71
+ # `top` replaces the top face colour; `tint` mixes the role colour into pad-top for the top face.
72
+ roles:
73
+ slab: { h: 40, s: 10 }
74
+ pad: { h: 220, s: 12 }
75
+ lead: { h: 218, s: 62 }
76
+ work: { h: 150, s: 45 }
77
+ doz: { h: 228, s: 8 }
78
+ chat: { h: 170, s: 48 }
79
+ mail: { h: 170, s: 48 }
80
+ file: { h: 40, s: 28 }
81
+ folder: { h: 38, s: 35 }
82
+ key: { h: 46, s: 78 }
83
+ gate: { h: 28, s: 85 }
84
+ cloud: { h: 200, s: 50 }
85
+ event: { h: 325, s: 58 }
86
+ placeholder: { h: 38, s: 70 }
87
+ term: { h: 275, s: 35 }
88
+ socket: { h: 205, s: 35 }
89
+ fence: { h: 38, s: 80 }
90
+ sandbox: { h: 170, s: 30, tint: 18 }
91
+ server: { h: 205, s: 22, tint: 13 }
92
+ belt: { h: 38, s: 55, tint: 20 }
93
+ bot: { h: 328, s: 55 }
94
+ cursor: { h: 228, s: 8 }
95
+ grey: { h: 228, s: 8 }
96
+ violet: { h: 250, s: 52 }
97
+ blue: { h: 218, s: 62 }
98
+ green: { h: 150, s: 45 }
99
+ person: { h: 275, s: 35 }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" class="sprite" aria-hidden="true" focusable="false"><symbol id="se-i-arrow-up-right" viewBox="0 0 24 24"><path d="M7 7h10v10" /> <path d="M7 17 17 7" /></symbol><symbol id="se-i-box" viewBox="0 0 24 24"><path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z" /> <path d="m3.3 7 8.7 5 8.7-5" /> <path d="M12 22V12" /></symbol><symbol id="se-i-chevron-down" viewBox="0 0 24 24"><path d="m6 9 6 6 6-6" /></symbol><symbol id="se-i-chevron-right" viewBox="0 0 24 24"><path d="m9 18 6-6-6-6" /></symbol><symbol id="se-i-circle-dot" viewBox="0 0 24 24"><circle cx="12" cy="12" r="1" /> <circle cx="12" cy="12" r="10" /></symbol><symbol id="se-i-circle-x" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" /> <path d="m15 9-6 6" /> <path d="m9 9 6 6" /></symbol><symbol id="se-i-clipboard" viewBox="0 0 24 24"><rect width="8" height="4" x="8" y="2" rx="1" ry="1" /> <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" /></symbol><symbol id="se-i-clipboard-paste" viewBox="0 0 24 24"><path d="M11 14h10" /> <path d="M16 4h2a2 2 0 0 1 2 2v1.344" /> <path d="m17 18 4-4-4-4" /> <path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113" /> <rect x="8" y="2" width="8" height="4" rx="1" /></symbol><symbol id="se-i-code-xml" viewBox="0 0 24 24"><path d="m18 16 4-4-4-4" /> <path d="m6 8-4 4 4 4" /> <path d="m14.5 4-5 16" /></symbol><symbol id="se-i-copy" viewBox="0 0 24 24"><rect width="14" height="14" x="8" y="8" rx="2" ry="2" /> <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></symbol><symbol id="se-i-layers" viewBox="0 0 24 24"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z" /> <path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12" /> <path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17" /></symbol><symbol id="se-i-link" viewBox="0 0 24 24"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" /> <path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" /></symbol><symbol id="se-i-list" viewBox="0 0 24 24"><path d="M3 5h.01" /> <path d="M3 12h.01" /> <path d="M3 19h.01" /> <path d="M8 5h13" /> <path d="M8 12h13" /> <path d="M8 19h13" /></symbol><symbol id="se-i-list-tree" viewBox="0 0 24 24"><path d="M8 5h13" /> <path d="M13 12h8" /> <path d="M13 19h8" /> <path d="M3 10a2 2 0 0 0 2 2h3" /> <path d="M3 5v12a2 2 0 0 0 2 2h3" /></symbol><symbol id="se-i-panel-right" viewBox="0 0 24 24"><rect width="18" height="18" x="3" y="3" rx="2" /> <path d="M15 3v18" /></symbol><symbol id="se-i-pencil" viewBox="0 0 24 24"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /> <path d="m15 5 4 4" /></symbol><symbol id="se-i-plus" viewBox="0 0 24 24"><path d="M5 12h14" /> <path d="M12 5v14" /></symbol><symbol id="se-i-rotate-ccw" viewBox="0 0 24 24"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /> <path d="M3 3v5h5" /></symbol><symbol id="se-i-trash-2" viewBox="0 0 24 24"><path d="M10 11v6" /> <path d="M14 11v6" /> <path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" /> <path d="M3 6h18" /> <path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" /></symbol><symbol id="se-i-triangle-alert" viewBox="0 0 24 24"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" /> <path d="M12 9v4" /> <path d="M12 17h.01" /></symbol><symbol id="se-i-x" viewBox="0 0 24 24"><path d="M18 6 6 18" /> <path d="m6 6 12 12" /></symbol></svg>
@@ -0,0 +1,35 @@
1
+ /* The canvas's own marks over the drawing (0.7.4), for the plain words (setup.ts: the root .iso-canvas, the pan key's
2
+ class .pan-key): selection, hover, marquee, the drag's grid, drop target and edges,
3
+ problem badges, and the canvas's cursors. On the skin's tokens: --iso-sel* default to --accent, --iso-bad and
4
+ --iso-warn to --bad and --warn; a host may set any of them on .iso-canvas. The package's assets/app.css carries
5
+ this file after the layout, and it ships alone as assets/marks.css. (A domain with its own words styles its own.)
6
+ Without any of it the marks are still harmless: the overlay's own attributes give no fill and take no pointer. */
7
+ @layer views {
8
+ .iso-canvas { --iso-sel: var(--accent); --iso-sel-fill: color-mix(in srgb, var(--iso-sel) 12%, transparent);
9
+ --iso-sel-faint: color-mix(in srgb, var(--iso-sel) 6%, transparent); --iso-bad: var(--bad); --iso-warn: var(--warn); }
10
+ .iso-canvas svg.scene [data-id] { cursor: pointer; }
11
+ .iso-canvas svg.scene.mode-pan { cursor: grab; }
12
+ .iso-canvas svg.scene.mode-select { cursor: crosshair; }
13
+ .iso-canvas svg.scene.pan-key, .iso-canvas svg.scene.pan-key [data-id] { cursor: grab; }
14
+ .iso-canvas svg.scene.panning, .iso-canvas svg.scene.panning [data-id] { cursor: grabbing; }
15
+ .iso-canvas svg.scene.drag-bad, .iso-canvas svg.scene.drag-bad * { cursor: not-allowed !important; }
16
+ .iso-canvas svg.scene.dragging, .iso-canvas svg.scene.dragging * { cursor: grabbing; }
17
+ .iso-canvas .overlay, .iso-canvas .overlay * { pointer-events: none; }
18
+ .iso-canvas .overlay .ring { fill: var(--iso-sel-fill); stroke: var(--iso-sel); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
19
+ .iso-canvas .overlay .hover { fill: var(--iso-sel-faint); stroke: var(--iso-sel); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .55; }
20
+ .iso-canvas .overlay .route-ring { fill: none; stroke: var(--iso-sel); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .35; vector-effect: non-scaling-stroke; }
21
+ .iso-canvas .overlay .route-hover { fill: none; stroke: var(--iso-sel); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .18; vector-effect: non-scaling-stroke; }
22
+ .iso-canvas .overlay .marquee { fill: var(--iso-sel-fill); stroke: var(--iso-sel); stroke-width: 1.2; stroke-dasharray: 5 4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
23
+ .iso-canvas .overlay .dgrid { fill: none; stroke: var(--iso-sel); stroke-width: 1; opacity: .42; vector-effect: non-scaling-stroke; }
24
+ .iso-canvas .overlay .dgrid.sub { opacity: .24; stroke-dasharray: 2 3; }
25
+ .iso-canvas .overlay .gridwrap.fresh { animation: iso-gridin .18s ease-out; }
26
+ .iso-canvas .overlay .out { opacity: 0; transition: opacity .15s ease-in; }
27
+ .iso-canvas .overlay .drop { fill: var(--iso-sel-fill); stroke: var(--iso-sel); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
28
+ .iso-canvas .overlay .drop.bad { fill: color-mix(in srgb, var(--iso-bad) 18%, transparent); stroke: var(--iso-bad); }
29
+ .iso-canvas .overlay .edge { fill: none; stroke: var(--iso-sel); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
30
+ .iso-canvas .overlay .badge circle { fill: var(--iso-bad); stroke: none; }
31
+ .iso-canvas .overlay .badge.warn circle { fill: var(--iso-warn); }
32
+ .iso-canvas .overlay .badge text { fill: #fff; stroke: none; font-family: system-ui, sans-serif; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
33
+ @media (prefers-reduced-motion: reduce) { .iso-canvas .overlay .gridwrap.fresh { animation: none; } .iso-canvas .overlay .out { transition: none; } }
34
+ }
35
+ @keyframes iso-gridin { from { opacity: 0; } to { opacity: 1; } }
@@ -0,0 +1,181 @@
1
+ /* The editor's plain skin (L3): its tokens, a base, and the blocks the editor's views use (buttons, segmented
2
+ controls, callouts, menus, pills, counts, fields, dialogs). A build that has no skin of its own puts this before
3
+ app.css and scopes both under its root class; a domain's skin replaces it whole, keeping the token names (its
4
+ tokens over these, its blocks over these). Light and dark follow the root's color-scheme, which mountEditor sets
5
+ from the theme (system: the page's), through light-dark(). Neutral greys, one blue accent. */
6
+ @layer tokens, base, components, views;
7
+
8
+ @layer tokens {
9
+ :root {
10
+ color-scheme: light dark;
11
+ /* colours */
12
+ --bg: light-dark(#f6f7f9, #14161a);
13
+ --surface: light-dark(#ffffff, #1b1e23);
14
+ --surface-2: light-dark(#f0f2f5, #22262c);
15
+ --line: light-dark(#dde1e6, #30353d);
16
+ --line-strong: light-dark(#c3c9d1, #444a54);
17
+ --ink: light-dark(#1c2026, #e8eaed);
18
+ --ink-2: light-dark(#4f5762, #b3b9c2);
19
+ --ink-3: light-dark(#7a828d, #868d97);
20
+ --accent: light-dark(#2f6fd6, #6ea2f2);
21
+ --accent-hover: light-dark(#255cb5, #8bb5f5);
22
+ --accent-tint: light-dark(#e6effc, #1f2d44);
23
+ --on-accent: light-dark(#ffffff, #0e1420);
24
+ --ok: light-dark(#1f7a4d, #5fc08d);
25
+ --ok-tint: light-dark(#e5f4ec, #18301f);
26
+ --warn: light-dark(#a35f00, #e2a54a);
27
+ --warn-tint: light-dark(#fbf0df, #34280f);
28
+ --bad: light-dark(#c2362e, #f07a72);
29
+ --bad-tint: light-dark(#fbe7e5, #3a1b19);
30
+ --on-danger: light-dark(#ffffff, #1a0b0a);
31
+ --info: var(--accent);
32
+ --info-tint: var(--accent-tint);
33
+ --focus: light-dark(#2f6fd6, #8bb5f5);
34
+ --state-hover: light-dark(rgb(0 0 0 / .05), rgb(255 255 255 / .06));
35
+ --state-press: light-dark(rgb(0 0 0 / .09), rgb(255 255 255 / .1));
36
+ --scrim: light-dark(rgb(20 24 30 / .35), rgb(0 0 0 / .5));
37
+ --shadow-1: 0 1px 2px light-dark(rgb(0 0 0 / .08), rgb(0 0 0 / .4));
38
+ --shadow-2: 0 4px 12px light-dark(rgb(0 0 0 / .12), rgb(0 0 0 / .5));
39
+ --shadow-3: 0 12px 32px light-dark(rgb(0 0 0 / .18), rgb(0 0 0 / .6));
40
+ /* type */
41
+ --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
42
+ --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
43
+ --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-lg: 15px; --fs-xl: 18px; --fs-mono: 12px;
44
+ --fw-regular: 400; --fw-medium: 500; --fw-strong: 600;
45
+ --lh: 1.45;
46
+ /* sizes */
47
+ --sp-0: 2px; --sp-1: 4px; --sp-2: 6px; --sp-3: 8px; --sp-4: 12px; --sp-5: 16px; --sp-6: 24px;
48
+ --r-xs: 2px; --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-pill: 999px;
49
+ --bw: 1px;
50
+ --ctl-sm: 24px; --ctl-md: 28px; --ctl-lg: 34px; --ctl-px: 10px;
51
+ --title-bar-h: 44px; --status-h: 24px; --tree-indent: 14px;
52
+ --dur-1: .12s; --ease: cubic-bezier(.2, 0, 0, 1);
53
+ --z-menu: 50;
54
+ }
55
+ }
56
+
57
+ @layer base {
58
+ * { box-sizing: border-box; }
59
+ html, body { margin: 0; }
60
+ body { font: var(--fw-regular) var(--fs-md)/var(--lh) var(--font); color: var(--ink); background: var(--bg); }
61
+ a { color: var(--accent); text-decoration: none; }
62
+ a:hover { text-decoration: underline; }
63
+ }
64
+
65
+ @layer components {
66
+ code, kbd, .mono { font-family: var(--mono); font-size: var(--fs-mono); }
67
+ :focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
68
+ input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }
69
+ .icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
70
+
71
+ .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); height: var(--ctl-md); padding: 0 var(--ctl-px);
72
+ border: var(--bw) solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
73
+ font: inherit; font-weight: var(--fw-medium); white-space: nowrap; cursor: pointer; transition: background var(--dur-1) var(--ease); }
74
+ .btn:hover { background: var(--surface-2); }
75
+ .btn:active { background: var(--state-press); }
76
+ .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
77
+ .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
78
+ .btn.quiet { border-color: transparent; background: none; color: var(--ink-2); }
79
+ .btn.quiet:hover { background: var(--state-hover); color: var(--ink); }
80
+ .btn.quiet:active { background: var(--state-press); }
81
+ .btn.danger { color: var(--bad); }
82
+ .btn.danger:hover { background: var(--bad-tint); }
83
+ .btn.danger.primary { background: var(--bad); border-color: var(--bad); color: var(--on-danger); }
84
+ .btn.danger.primary:hover { background: color-mix(in srgb, var(--bad) 88%, black); }
85
+ .btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }
86
+ .btn.danger:disabled, .btn.danger.primary:disabled { opacity: .45; }
87
+ .btn.quiet:disabled { background: none; }
88
+ .btn[aria-busy="true"] { cursor: progress; }
89
+ .btn.sm { height: var(--ctl-sm); padding: 0 var(--sp-2); font-size: var(--fs-sm); }
90
+ .btn .icon { width: 16px; height: 16px; }
91
+ .btn.sm .icon { width: 14px; height: 14px; }
92
+ .btn.lg { height: var(--ctl-lg); padding: 0 var(--sp-5); }
93
+ .btn.icon-only { width: var(--ctl-md); padding: 0; }
94
+ .btn.sm.icon-only { width: var(--ctl-sm); }
95
+ .btn-group { display: inline-flex; }
96
+ .btn-group > .btn { border-radius: 0; }
97
+ .btn-group > .btn:first-of-type { border-radius: var(--r-md) 0 0 var(--r-md); }
98
+ .btn-group > .btn:last-of-type { border-radius: 0 var(--r-md) var(--r-md) 0; }
99
+ .btn-group > .btn:only-of-type { border-radius: var(--r-md); }
100
+ .btn-group > .btn + .btn { margin-left: calc(-1 * var(--bw)); }
101
+ .btn-group > .btn:hover, .btn-group > .btn:focus-visible { position: relative; z-index: 1; }
102
+ .actions { display: flex; gap: var(--sp-2); align-items: center; }
103
+ .spacer { flex: 1; }
104
+
105
+ .segmented { display: inline-flex; padding: var(--sp-0); gap: var(--sp-0); border-radius: var(--r-md); background: var(--surface-2); border: var(--bw) solid var(--line); }
106
+ .seg { display: inline-flex; align-items: center; gap: var(--sp-1); height: calc(var(--ctl-sm) - 2px); padding: 0 var(--sp-3); border: 0; border-radius: var(--r-sm);
107
+ background: none; color: var(--ink-2); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
108
+ .seg .icon { width: 14px; height: 14px; }
109
+ .seg:hover { color: var(--ink); background: var(--state-hover); }
110
+ .seg.active, .seg[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
111
+ .seg:disabled, .seg[aria-disabled="true"] { opacity: .5; cursor: default; }
112
+
113
+ .callout { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border: var(--bw) solid var(--line);
114
+ border-radius: var(--r-md); background: var(--surface); color: var(--ink); }
115
+ .callout[hidden] { display: none; }
116
+ .callout > .icon { margin-top: 2px; color: var(--ink-2); }
117
+ .callout .c-body { flex: 1; min-width: 0; }
118
+ .callout .c-body > p { margin: 0; }
119
+ .callout .c-title { font-weight: var(--fw-strong); }
120
+ .callout .c-acts { display: flex; gap: var(--sp-2); }
121
+ .callout .c-acts .btn.quiet { color: inherit; }
122
+ .callout.ok { background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
123
+ .callout.ok > .icon { color: var(--ok); }
124
+ .callout.warn { background: var(--warn-tint); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
125
+ .callout.warn > .icon { color: var(--warn); }
126
+ .callout.bad { background: var(--bad-tint); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
127
+ .callout.bad > .icon { color: var(--bad); }
128
+ .callout.banner { border-radius: 0; border-width: 0 0 var(--bw); }
129
+ .callout.compact { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); box-shadow: var(--shadow-2); }
130
+ .callout.compact > .icon { margin-top: 1px; width: 14px; height: 14px; }
131
+
132
+ .menu { position: fixed; z-index: var(--z-menu); min-width: 180px; max-width: 360px; padding: var(--sp-1); background: var(--surface);
133
+ border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); }
134
+ .menu[hidden] { display: none; }
135
+ .menu-item { display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: var(--ctl-sm); padding: var(--sp-1) var(--sp-3);
136
+ border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
137
+ .menu-item:hover, .menu-item:focus-visible { background: var(--state-hover); outline: none; }
138
+ .menu-item > .icon { width: 14px; height: 14px; color: var(--ink-2); }
139
+ .menu-item > .mi-label { flex: 1; }
140
+ .menu-item .desc { display: block; color: var(--ink-3); font-size: var(--fs-xs); }
141
+ .menu-item.danger { color: var(--bad); }
142
+ .menu-item.danger > .icon { color: var(--bad); }
143
+ .menu-item:disabled { color: var(--ink-3); cursor: default; }
144
+ .menu-item:disabled .desc { color: var(--ink-3); }
145
+ .menu-check { width: 14px; flex: none; color: var(--accent); }
146
+ .menu-sep { height: var(--bw); margin: var(--sp-1) 0; background: var(--line); border: 0; }
147
+
148
+ .pill { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0 var(--sp-2); border: var(--bw) solid var(--line);
149
+ border-radius: var(--r-pill); font-size: var(--fs-xs); color: var(--ink-2); white-space: nowrap; }
150
+ .pill .icon { width: 12px; height: 12px; }
151
+ .count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 var(--sp-1);
152
+ border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
153
+ .count.warn { background: var(--warn-tint); color: var(--warn); }
154
+ .count.bad { background: var(--bad-tint); color: var(--bad); }
155
+
156
+ .field { display: grid; gap: var(--sp-1); }
157
+ .field > span { font-size: var(--fs-sm); color: var(--ink-2); font-weight: var(--fw-medium); }
158
+ .field small { color: var(--ink-3); font-size: var(--fs-xs); }
159
+ .field[hidden] { display: none; }
160
+ .field.check { grid-template-columns: auto 1fr; align-items: center; }
161
+ input:where(:not([type]), [type="text"], [type="number"], [type="password"], [type="search"]), select, textarea {
162
+ height: var(--ctl-md); padding: 0 var(--sp-2); border: var(--bw) solid var(--line-strong); border-radius: var(--r-sm);
163
+ background: var(--surface); color: var(--ink); font: inherit; min-width: 0; }
164
+ textarea { height: auto; padding: var(--sp-2); resize: vertical; }
165
+ select:hover:where(:not(:focus-visible)), textarea:hover:where(:not(:focus-visible)) { border-color: var(--ink-3); }
166
+ input:where(:not([type]), [type="text"], [type="number"], [type="password"], [type="search"]):disabled, select:disabled, textarea:disabled { opacity: .6; }
167
+
168
+ dialog.dlg { width: min(480px, calc(100vw - 32px)); padding: 0; border: var(--bw) solid var(--line); border-radius: var(--r-xl);
169
+ background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); }
170
+ dialog.dlg::backdrop { background: var(--scrim); }
171
+ dialog.dlg form { margin: 0; }
172
+ .dlg-head { padding: var(--sp-5) var(--sp-5) 0; }
173
+ .dlg-head .h-title, dialog.dlg h2.h-title { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-strong); }
174
+ .dlg-body { display: grid; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); }
175
+ .dlg-body > p.sub { margin: 0; color: var(--ink-2); }
176
+ .dlg-foot { display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-5) var(--sp-5); }
177
+ .dlg-foot .why { margin-right: auto; color: var(--ink-3); font-size: var(--fs-sm); }
178
+ .dlg-foot .why:empty, .dlg-foot .why[hidden] { display: none; }
179
+ .dlg-error:empty { display: none; }
180
+ .dlg-error:not(:empty) { margin: 0; color: var(--bad); font-size: var(--fs-sm); }
181
+ }
@@ -0,0 +1,4 @@
1
+ export * as core from './types/iso-core/index.js';
2
+ export * as objects from './types/iso-objects/index.js';
3
+ export * as viewer from './types/iso-viewer/index.js';
4
+ export * as editor from './types/iso-editor/index.js';