@classytic/labs 0.1.0 → 0.3.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 (2111) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +196 -8
  3. package/dist/_virtual/_rolldown/runtime.mjs +18 -0
  4. package/dist/algorithms/GraphAlgorithmLab.d.mts +21 -0
  5. package/dist/algorithms/GraphAlgorithmLab.mjs +183 -0
  6. package/dist/algorithms/GraphView.d.mts +23 -0
  7. package/dist/algorithms/GraphView.mjs +86 -0
  8. package/dist/algorithms/GridPathLab.d.mts +15 -0
  9. package/dist/algorithms/GridPathLab.mjs +164 -0
  10. package/dist/algorithms/GrowthLab.d.mts +18 -0
  11. package/dist/algorithms/GrowthLab.mjs +191 -0
  12. package/dist/algorithms/HashLab.d.mts +21 -0
  13. package/dist/algorithms/HashLab.mjs +199 -0
  14. package/dist/algorithms/HeapDualView.d.mts +17 -0
  15. package/dist/algorithms/HeapDualView.mjs +115 -0
  16. package/dist/algorithms/HeapQuestLab.d.mts +23 -0
  17. package/dist/algorithms/HeapQuestLab.mjs +152 -0
  18. package/dist/algorithms/LearningChecks.mjs +36 -0
  19. package/dist/algorithms/ListLab.d.mts +22 -0
  20. package/dist/algorithms/ListLab.mjs +208 -0
  21. package/dist/algorithms/SearchLab.d.mts +17 -0
  22. package/dist/algorithms/SearchLab.mjs +201 -0
  23. package/dist/algorithms/SortingLab.d.mts +22 -0
  24. package/dist/algorithms/SortingLab.mjs +190 -0
  25. package/dist/algorithms/TraceTransport.d.mts +19 -0
  26. package/dist/algorithms/TraceTransport.mjs +192 -0
  27. package/dist/algorithms/TreeQuestLab.d.mts +28 -0
  28. package/dist/algorithms/TreeQuestLab.mjs +289 -0
  29. package/dist/algorithms/TreeScene.d.mts +17 -0
  30. package/dist/algorithms/TreeScene.mjs +199 -0
  31. package/dist/algorithms/contract.d.mts +75 -0
  32. package/dist/algorithms/core/index.d.mts +12 -0
  33. package/dist/algorithms/core/index.mjs +11 -0
  34. package/dist/algorithms/cost-derivation/core.d.mts +66 -0
  35. package/dist/algorithms/cost-derivation/core.mjs +93 -0
  36. package/dist/algorithms/cost-derivation/index.d.mts +2 -0
  37. package/dist/algorithms/cost-derivation/preset.d.mts +19 -0
  38. package/dist/algorithms/cost-derivation/preset.mjs +371 -0
  39. package/dist/algorithms/dp/index.d.mts +3 -0
  40. package/dist/algorithms/dp/index.mjs +3 -0
  41. package/dist/algorithms/dp.d.mts +7 -0
  42. package/dist/algorithms/dp.mjs +32 -0
  43. package/dist/algorithms/graph/index.d.mts +5 -0
  44. package/dist/algorithms/graph/index.mjs +5 -0
  45. package/dist/algorithms/graph.d.mts +9 -0
  46. package/dist/algorithms/graph.mjs +148 -0
  47. package/dist/algorithms/growth.d.mts +56 -0
  48. package/dist/algorithms/growth.mjs +99 -0
  49. package/dist/algorithms/hashing.d.mts +63 -0
  50. package/dist/algorithms/hashing.mjs +121 -0
  51. package/dist/algorithms/heap/index.d.mts +3 -0
  52. package/dist/algorithms/heap/index.mjs +4 -0
  53. package/dist/algorithms/heap.d.mts +38 -0
  54. package/dist/algorithms/heap.mjs +190 -0
  55. package/dist/algorithms/index.d.mts +33 -0
  56. package/dist/algorithms/index.mjs +32 -0
  57. package/dist/algorithms/lists.d.mts +53 -0
  58. package/dist/algorithms/lists.mjs +254 -0
  59. package/dist/algorithms/normalize.d.mts +6 -0
  60. package/dist/algorithms/normalize.mjs +27 -0
  61. package/dist/algorithms/presets.d.mts +6 -0
  62. package/dist/algorithms/presets.mjs +94 -0
  63. package/dist/algorithms/react/index.d.mts +9 -0
  64. package/dist/algorithms/react/index.mjs +12 -0
  65. package/dist/algorithms/search.d.mts +45 -0
  66. package/dist/algorithms/search.mjs +65 -0
  67. package/dist/algorithms/sequence-contract.d.mts +39 -0
  68. package/dist/algorithms/sequence-contract.mjs +5 -0
  69. package/dist/algorithms/sorting.d.mts +30 -0
  70. package/dist/algorithms/sorting.mjs +219 -0
  71. package/dist/algorithms/tree/index.d.mts +6 -0
  72. package/dist/algorithms/tree/index.mjs +6 -0
  73. package/dist/algorithms/tree-builder.d.mts +8 -0
  74. package/dist/algorithms/tree-builder.mjs +54 -0
  75. package/dist/algorithms/tree-contract.d.mts +95 -0
  76. package/dist/algorithms/tree-layout.d.mts +9 -0
  77. package/dist/algorithms/tree-layout.mjs +47 -0
  78. package/dist/algorithms/tree-presets.d.mts +7 -0
  79. package/dist/algorithms/tree-presets.mjs +92 -0
  80. package/dist/algorithms/tree.d.mts +10 -0
  81. package/dist/algorithms/tree.mjs +375 -0
  82. package/dist/authoring/index.d.mts +11 -0
  83. package/dist/authoring/index.mjs +20 -0
  84. package/dist/authoring/quality.d.mts +18 -0
  85. package/dist/authoring/quality.mjs +54 -0
  86. package/dist/authoring/report.d.mts +24 -0
  87. package/dist/authoring/report.mjs +27 -0
  88. package/dist/biology/cell-division/activity.d.mts +1 -0
  89. package/dist/biology/cell-division/activity.mjs +82 -0
  90. package/dist/biology/cell-division/core.d.mts +24 -0
  91. package/dist/biology/cell-division/core.mjs +87 -0
  92. package/dist/biology/cell-division/index.d.mts +5 -0
  93. package/dist/biology/cell-division/meiosis-activity.d.mts +1 -0
  94. package/dist/biology/cell-division/meiosis-activity.mjs +81 -0
  95. package/dist/biology/cell-division/meiosis-core.d.mts +19 -0
  96. package/dist/biology/cell-division/meiosis-core.mjs +89 -0
  97. package/dist/biology/cell-division/meiosis-preset.d.mts +35 -0
  98. package/dist/biology/cell-division/meiosis-preset.mjs +117 -0
  99. package/dist/biology/cell-division/meiosis-scene.d.mts +13 -0
  100. package/dist/biology/cell-division/meiosis-scene.mjs +149 -0
  101. package/dist/biology/cell-division/preset.d.mts +38 -0
  102. package/dist/biology/cell-division/preset.mjs +226 -0
  103. package/dist/biology/cell-energy/activity.d.mts +1 -0
  104. package/dist/biology/cell-energy/activity.mjs +74 -0
  105. package/dist/biology/cell-energy/core.d.mts +25 -0
  106. package/dist/biology/cell-energy/core.mjs +17 -0
  107. package/dist/biology/cell-energy/index.d.mts +2 -0
  108. package/dist/biology/cell-energy/preset.d.mts +40 -0
  109. package/dist/biology/cell-energy/preset.mjs +110 -0
  110. package/dist/biology/cell-system/activity.d.mts +1 -0
  111. package/dist/biology/cell-system/activity.mjs +74 -0
  112. package/dist/biology/cell-system/core.d.mts +18 -0
  113. package/dist/biology/cell-system/core.mjs +63 -0
  114. package/dist/biology/cell-system/index.d.mts +2 -0
  115. package/dist/biology/cell-system/preset.d.mts +33 -0
  116. package/dist/biology/cell-system/preset.mjs +82 -0
  117. package/dist/biology/enzyme-rate/preset.mjs +117 -49
  118. package/dist/biology/genetic-cross/core.d.mts +7 -7
  119. package/dist/biology/genetic-cross/core.mjs +4 -4
  120. package/dist/biology/genetic-cross/grid.mjs +185 -164
  121. package/dist/biology/genetic-cross/preset.d.mts +3 -1
  122. package/dist/biology/genetic-cross/preset.mjs +21 -64
  123. package/dist/biology/genetic-cross/sex-linked.mjs +40 -81
  124. package/dist/biology/index.d.mts +12 -1
  125. package/dist/biology/index.mjs +12 -1
  126. package/dist/biology/membrane-transport/activity.d.mts +1 -0
  127. package/dist/biology/membrane-transport/activity.mjs +74 -0
  128. package/dist/biology/membrane-transport/core.d.mts +28 -0
  129. package/dist/biology/membrane-transport/core.mjs +49 -0
  130. package/dist/biology/membrane-transport/index.d.mts +2 -0
  131. package/dist/biology/membrane-transport/preset.d.mts +43 -0
  132. package/dist/biology/membrane-transport/preset.mjs +131 -0
  133. package/dist/biology/photosynthesis-factors/preset.mjs +135 -81
  134. package/dist/biology/punnett-cross/preset.mjs +2 -1
  135. package/dist/biology/respiration/preset.mjs +79 -68
  136. package/dist/biology/sequence/central-dogma.mjs +199 -192
  137. package/dist/biology/sequence/core.d.mts +6 -6
  138. package/dist/biology/sequence/core.mjs +1 -1
  139. package/dist/biology/sequence/preset.mjs +177 -133
  140. package/dist/blocks/authoring.mjs +334 -176
  141. package/dist/blocks/catalog.d.mts +16 -0
  142. package/dist/blocks/catalog.mjs +9 -0
  143. package/dist/blocks/domains.d.mts +11 -0
  144. package/dist/blocks/domains.mjs +15 -0
  145. package/dist/blocks/gallery.d.mts +3 -0
  146. package/dist/blocks/gallery.mjs +6 -0
  147. package/dist/blocks/index.d.mts +9 -4545
  148. package/dist/blocks/index.mjs +11 -109
  149. package/dist/blocks/lab-block.mjs +4 -45
  150. package/dist/blocks/lab-config.d.mts +1 -1
  151. package/dist/blocks/lab-config.mjs +112 -35
  152. package/dist/blocks/lazy-resolve.d.mts +20 -0
  153. package/dist/blocks/lazy-resolve.mjs +24 -0
  154. package/dist/blocks/lazy.d.mts +10 -0
  155. package/dist/blocks/lazy.mjs +13 -0
  156. package/dist/blocks/lesson.mjs +4 -4
  157. package/dist/build/CircuitEditor.d.mts +14 -0
  158. package/dist/build/CircuitEditor.mjs +798 -0
  159. package/dist/build/CircuitPlayer.d.mts +19 -0
  160. package/dist/build/CircuitPlayer.mjs +53 -0
  161. package/dist/build/CircuitScene.d.mts +69 -0
  162. package/dist/build/CircuitScene.mjs +472 -0
  163. package/dist/build/contract.d.mts +116 -0
  164. package/dist/build/editor/index.d.mts +4 -0
  165. package/dist/build/editor/index.mjs +6 -0
  166. package/dist/build/editor-ops.d.mts +65 -0
  167. package/dist/build/editor-ops.mjs +306 -0
  168. package/dist/build/editor-ui.mjs +98 -0
  169. package/dist/build/flow.d.mts +14 -0
  170. package/dist/build/flow.mjs +119 -0
  171. package/dist/build/index.d.mts +10 -0
  172. package/dist/build/index.mjs +10 -0
  173. package/dist/build/parts/ammeter.d.mts +1 -0
  174. package/dist/build/parts/ammeter.mjs +32 -0
  175. package/dist/build/parts/bulb.d.mts +1 -0
  176. package/dist/build/parts/bulb.mjs +50 -0
  177. package/dist/build/parts/capacitor.d.mts +1 -0
  178. package/dist/build/parts/capacitor.mjs +26 -0
  179. package/dist/build/parts/cell.d.mts +1 -0
  180. package/dist/build/parts/cell.mjs +40 -0
  181. package/dist/build/parts/diode.d.mts +1 -0
  182. package/dist/build/parts/diode.mjs +33 -0
  183. package/dist/build/parts/index.d.mts +5 -0
  184. package/dist/build/parts/index.mjs +43 -0
  185. package/dist/build/parts/mosfet.d.mts +1 -0
  186. package/dist/build/parts/mosfet.mjs +95 -0
  187. package/dist/build/parts/node.d.mts +1 -0
  188. package/dist/build/parts/node.mjs +32 -0
  189. package/dist/build/parts/resistor.d.mts +1 -0
  190. package/dist/build/parts/resistor.mjs +49 -0
  191. package/dist/build/parts/shared.mjs +42 -0
  192. package/dist/build/parts/switch.d.mts +1 -0
  193. package/dist/build/parts/switch.mjs +34 -0
  194. package/dist/build/registry.d.mts +9 -0
  195. package/dist/build/registry.mjs +15 -0
  196. package/dist/build/runtime/index.d.mts +8 -0
  197. package/dist/build/runtime/index.mjs +10 -0
  198. package/dist/build/solve.d.mts +8 -0
  199. package/dist/build/solve.mjs +0 -0
  200. package/dist/build/viewport.mjs +231 -0
  201. package/dist/catalog/registry.d.mts +2 -2
  202. package/dist/catalog/templates.d.mts +1 -1
  203. package/dist/catalog/templates.mjs +6 -6
  204. package/dist/chem/battery.d.mts +4 -1
  205. package/dist/chem/battery.mjs +315 -191
  206. package/dist/chem/bohr-atom.d.mts +4 -1
  207. package/dist/chem/bohr-atom.mjs +80 -25
  208. package/dist/chem/crystal-lattice/activity.d.mts +6 -0
  209. package/dist/chem/crystal-lattice/activity.mjs +95 -0
  210. package/dist/chem/crystal-lattice/core.d.mts +19 -0
  211. package/dist/chem/crystal-lattice/core.mjs +101 -0
  212. package/dist/chem/crystal-lattice/index.d.mts +3 -0
  213. package/dist/chem/crystal-lattice/preset.d.mts +44 -0
  214. package/dist/chem/crystal-lattice/preset.mjs +244 -0
  215. package/dist/chem/diffusion/asset.mjs +76 -38
  216. package/dist/chem/diffusion/preset.d.mts +4 -1
  217. package/dist/chem/diffusion/preset.mjs +144 -91
  218. package/dist/chem/electrochem/preset.d.mts +4 -1
  219. package/dist/chem/electrochem/preset.mjs +366 -246
  220. package/dist/chem/equilibrium/preset.d.mts +5 -2
  221. package/dist/chem/equilibrium/preset.mjs +336 -283
  222. package/dist/chem/gas-box/preset.d.mts +4 -1
  223. package/dist/chem/gas-box/preset.mjs +189 -146
  224. package/dist/chem/index.d.mts +17 -2
  225. package/dist/chem/index.mjs +16 -1
  226. package/dist/chem/kinetics/preset.d.mts +4 -1
  227. package/dist/chem/kinetics/preset.mjs +314 -316
  228. package/dist/chem/molecular-geometry/activity.d.mts +6 -0
  229. package/dist/chem/molecular-geometry/activity.mjs +90 -0
  230. package/dist/chem/molecular-geometry/core.d.mts +30 -0
  231. package/dist/chem/molecular-geometry/core.mjs +156 -0
  232. package/dist/chem/molecular-geometry/index.d.mts +3 -0
  233. package/dist/chem/molecular-geometry/preset.d.mts +45 -0
  234. package/dist/chem/molecular-geometry/preset.mjs +291 -0
  235. package/dist/chem/orbital-overlap/activity.d.mts +6 -0
  236. package/dist/chem/orbital-overlap/activity.mjs +82 -0
  237. package/dist/chem/orbital-overlap/core.d.mts +12 -0
  238. package/dist/chem/orbital-overlap/core.mjs +27 -0
  239. package/dist/chem/orbital-overlap/index.d.mts +3 -0
  240. package/dist/chem/orbital-overlap/preset.d.mts +39 -0
  241. package/dist/chem/orbital-overlap/preset.mjs +200 -0
  242. package/dist/chem/orbitals/activity.d.mts +6 -0
  243. package/dist/chem/orbitals/activity.mjs +90 -0
  244. package/dist/chem/orbitals/core.d.mts +27 -0
  245. package/dist/chem/orbitals/core.mjs +100 -0
  246. package/dist/chem/orbitals/index.d.mts +3 -0
  247. package/dist/chem/orbitals/preset.d.mts +47 -0
  248. package/dist/chem/orbitals/preset.mjs +213 -0
  249. package/dist/chem/periodic-trends/preset.d.mts +5 -1
  250. package/dist/chem/periodic-trends/preset.mjs +277 -167
  251. package/dist/chem/reaction-lab.d.mts +4 -1
  252. package/dist/chem/reaction-lab.mjs +102 -52
  253. package/dist/chem/reaction-profile.d.mts +4 -1
  254. package/dist/chem/reaction-profile.mjs +203 -182
  255. package/dist/chem/solution/dilution.d.mts +5 -1
  256. package/dist/chem/solution/dilution.mjs +167 -133
  257. package/dist/chem/solution/field.d.mts +14 -5
  258. package/dist/chem/solution/field.mjs +122 -88
  259. package/dist/chem/solution/solution-box.d.mts +5 -1
  260. package/dist/chem/solution/solution-box.mjs +135 -87
  261. package/dist/chem/stereochemistry/activity.d.mts +6 -0
  262. package/dist/chem/stereochemistry/activity.mjs +88 -0
  263. package/dist/chem/stereochemistry/core.d.mts +25 -0
  264. package/dist/chem/stereochemistry/core.mjs +130 -0
  265. package/dist/chem/stereochemistry/index.d.mts +3 -0
  266. package/dist/chem/stereochemistry/preset.d.mts +43 -0
  267. package/dist/chem/stereochemistry/preset.mjs +245 -0
  268. package/dist/chem/stoichiometry/preset.d.mts +5 -1
  269. package/dist/chem/stoichiometry/preset.mjs +295 -201
  270. package/dist/chem/titration/index.d.mts +1 -1
  271. package/dist/chem/titration/preset.d.mts +10 -2
  272. package/dist/chem/titration/preset.mjs +467 -324
  273. package/dist/chem/visual/atom.mjs +41 -0
  274. package/dist/circuits/ac-dc/activity-plan.mjs +70 -0
  275. package/dist/circuits/ac-dc/asset.mjs +3 -3
  276. package/dist/circuits/ac-dc/preset.d.mts +8 -1
  277. package/dist/circuits/ac-dc/preset.mjs +78 -48
  278. package/dist/circuits/brownout/activity-plan.mjs +83 -0
  279. package/dist/circuits/brownout/index.d.mts +1 -0
  280. package/dist/circuits/brownout/preset.d.mts +23 -0
  281. package/dist/circuits/brownout/preset.mjs +352 -0
  282. package/dist/circuits/capacitor-leak/activity-plan.mjs +83 -0
  283. package/dist/circuits/capacitor-leak/preset.d.mts +4 -1
  284. package/dist/circuits/capacitor-leak/preset.mjs +276 -192
  285. package/dist/circuits/circuit/activity-plan.mjs +83 -0
  286. package/dist/circuits/circuit/asset.mjs +144 -198
  287. package/dist/circuits/circuit/preset.d.mts +3 -0
  288. package/dist/circuits/circuit/preset.mjs +76 -36
  289. package/dist/circuits/circuit-builder.d.mts +10 -14
  290. package/dist/circuits/circuit-builder.mjs +16 -392
  291. package/dist/circuits/circuit-divider-activity-plan.mjs +101 -0
  292. package/dist/circuits/circuit-lab.d.mts +7 -1
  293. package/dist/circuits/circuit-lab.mjs +171 -163
  294. package/dist/circuits/cmos-gate/activity-plans.mjs +309 -0
  295. package/dist/circuits/cmos-gate/index.d.mts +4 -0
  296. package/dist/circuits/cmos-gate/inverter.d.mts +25 -0
  297. package/dist/circuits/cmos-gate/inverter.mjs +274 -0
  298. package/dist/circuits/cmos-gate/model.mjs +186 -0
  299. package/dist/circuits/cmos-gate/nand.d.mts +23 -0
  300. package/dist/circuits/cmos-gate/nand.mjs +288 -0
  301. package/dist/circuits/cmos-gate/nor.d.mts +23 -0
  302. package/dist/circuits/cmos-gate/nor.mjs +323 -0
  303. package/dist/circuits/cmos-gate/preset.d.mts +4 -0
  304. package/dist/circuits/cmos-gate/rnmos-not.d.mts +26 -0
  305. package/dist/circuits/cmos-gate/rnmos-not.mjs +264 -0
  306. package/dist/circuits/cmos-gate/shared.mjs +6 -0
  307. package/dist/circuits/diode/activity-plan.mjs +97 -0
  308. package/dist/circuits/diode/index.d.mts +1 -0
  309. package/dist/circuits/diode/preset.d.mts +26 -0
  310. package/dist/circuits/diode/preset.mjs +307 -0
  311. package/dist/circuits/index.d.mts +15 -1
  312. package/dist/circuits/index.mjs +15 -1
  313. package/dist/circuits/rc-charging/activity-plan.mjs +101 -0
  314. package/dist/circuits/rc-charging/index.d.mts +1 -0
  315. package/dist/circuits/rc-charging/preset.d.mts +28 -0
  316. package/dist/circuits/rc-charging/preset.mjs +374 -0
  317. package/dist/circuits/semiconductor/bjt-inside.d.mts +23 -0
  318. package/dist/circuits/semiconductor/bjt-inside.mjs +303 -0
  319. package/dist/circuits/semiconductor/conduction.d.mts +19 -0
  320. package/dist/circuits/semiconductor/conduction.mjs +203 -0
  321. package/dist/circuits/semiconductor/device-activity-plans.mjs +230 -0
  322. package/dist/circuits/semiconductor/hall-effect.d.mts +19 -0
  323. package/dist/circuits/semiconductor/hall-effect.mjs +250 -0
  324. package/dist/circuits/semiconductor/index.d.mts +6 -0
  325. package/dist/circuits/semiconductor/mosfet-inside.d.mts +26 -0
  326. package/dist/circuits/semiconductor/mosfet-inside.mjs +452 -0
  327. package/dist/circuits/semiconductor/pn-junction.d.mts +25 -0
  328. package/dist/circuits/semiconductor/pn-junction.mjs +333 -0
  329. package/dist/circuits/semiconductor/preset.d.mts +6 -0
  330. package/dist/circuits/semiconductor/shared.mjs +183 -0
  331. package/dist/circuits/semiconductor/silicon-lattice.d.mts +32 -0
  332. package/dist/circuits/semiconductor/silicon-lattice.mjs +266 -0
  333. package/dist/circuits/semiconductor/transport-activity-plans.mjs +251 -0
  334. package/dist/circuits/transistor/activity-plan.mjs +90 -0
  335. package/dist/circuits/transistor/index.d.mts +1 -0
  336. package/dist/circuits/transistor/preset.d.mts +28 -0
  337. package/dist/circuits/transistor/preset.mjs +352 -0
  338. package/dist/commerce/accounting/core.d.mts +1 -1
  339. package/dist/commerce/accounting/equation-balance.mjs +186 -78
  340. package/dist/commerce/accounting/journal-poster.mjs +295 -263
  341. package/dist/commerce/accounting/statement-sorter.mjs +233 -174
  342. package/dist/commerce/activity.d.mts +58 -0
  343. package/dist/commerce/activity.mjs +64 -0
  344. package/dist/commerce/economics/core.d.mts +2 -2
  345. package/dist/commerce/economics/core.mjs +1 -1
  346. package/dist/commerce/economics/demand-shift-vs-move.mjs +214 -93
  347. package/dist/commerce/economics/elasticity-revenue.mjs +195 -69
  348. package/dist/commerce/economics/market-equilibrium.mjs +225 -71
  349. package/dist/commerce/finance/apportion.d.mts +35 -0
  350. package/dist/commerce/finance/apportion.mjs +231 -0
  351. package/dist/commerce/finance/break-even.d.mts +28 -0
  352. package/dist/commerce/finance/break-even.mjs +385 -0
  353. package/dist/commerce/finance/business-lesson.d.mts +49 -0
  354. package/dist/commerce/finance/business-lesson.mjs +388 -0
  355. package/dist/commerce/finance/compound-interest.d.mts +35 -0
  356. package/dist/commerce/finance/compound-interest.mjs +515 -0
  357. package/dist/commerce/finance/depreciation.d.mts +30 -0
  358. package/dist/commerce/finance/depreciation.mjs +324 -0
  359. package/dist/commerce/finance/eoq.d.mts +27 -0
  360. package/dist/commerce/finance/eoq.mjs +266 -0
  361. package/dist/commerce/finance/index.d.mts +12 -0
  362. package/dist/commerce/finance/inventory-policy.d.mts +35 -0
  363. package/dist/commerce/finance/inventory-policy.mjs +56 -0
  364. package/dist/commerce/finance/limited-company.d.mts +25 -0
  365. package/dist/commerce/finance/limited-company.mjs +423 -0
  366. package/dist/commerce/finance/ratio-lab.d.mts +37 -0
  367. package/dist/commerce/finance/ratio-lab.mjs +339 -0
  368. package/dist/commerce/finance/statement-builder.d.mts +37 -0
  369. package/dist/commerce/finance/statement-builder.mjs +303 -0
  370. package/dist/commerce/finance/supply-chain.d.mts +37 -0
  371. package/dist/commerce/finance/supply-chain.mjs +341 -0
  372. package/dist/commerce/finance/warehouse-allocation.d.mts +27 -0
  373. package/dist/commerce/finance/warehouse-allocation.mjs +49 -0
  374. package/dist/commerce/index.d.mts +14 -1
  375. package/dist/commerce/index.mjs +14 -1
  376. package/dist/core/easing.d.mts +3 -3
  377. package/dist/core/easing.mjs +2 -2
  378. package/dist/core/index.d.mts +1 -1
  379. package/dist/core/numeric.d.mts +3 -3
  380. package/dist/core/numeric.mjs +2 -2
  381. package/dist/core/reactive.d.mts +1 -1
  382. package/dist/core/reactive.mjs +1 -1
  383. package/dist/core/rng.d.mts +2 -2
  384. package/dist/core/rng.mjs +1 -1
  385. package/dist/core/tex.mjs +2 -2
  386. package/dist/core/timeline.d.mts +1 -1
  387. package/dist/core/timeline.mjs +1 -1
  388. package/dist/core/util.d.mts +0 -4
  389. package/dist/core/util.mjs +10 -7
  390. package/dist/discrete/arrangements/preset.mjs +140 -132
  391. package/dist/discrete/bayes/preset.mjs +314 -272
  392. package/dist/discrete/binomial/preset.mjs +135 -109
  393. package/dist/discrete/combination-studio/figure.d.mts +6 -0
  394. package/dist/discrete/combination-studio/figure.mjs +126 -0
  395. package/dist/discrete/combination-studio/index.d.mts +2 -0
  396. package/dist/discrete/combination-studio/preset.d.mts +44 -0
  397. package/dist/discrete/combination-studio/preset.mjs +381 -0
  398. package/dist/discrete/core/combinatorics.d.mts +26 -3
  399. package/dist/discrete/core/combinatorics.mjs +43 -3
  400. package/dist/discrete/core/pigeonhole.d.mts +1 -1
  401. package/dist/discrete/core/pigeonhole.mjs +1 -1
  402. package/dist/discrete/core/probability.d.mts +3 -3
  403. package/dist/discrete/core/probability.mjs +3 -3
  404. package/dist/discrete/core/sets.d.mts +1 -1
  405. package/dist/discrete/counting-slots/preset.mjs +191 -229
  406. package/dist/discrete/counting-tree/preset.mjs +200 -63
  407. package/dist/discrete/expected-value/preset.mjs +163 -245
  408. package/dist/discrete/hypergeometric/preset.mjs +164 -98
  409. package/dist/discrete/index.d.mts +14 -4
  410. package/dist/discrete/index.mjs +11 -3
  411. package/dist/discrete/induction/core.mjs +17 -0
  412. package/dist/discrete/induction/index.d.mts +1 -0
  413. package/dist/discrete/induction/preset.d.mts +17 -0
  414. package/dist/discrete/induction/preset.mjs +112 -0
  415. package/dist/discrete/invariant/core.d.mts +8 -0
  416. package/dist/discrete/invariant/core.mjs +17 -0
  417. package/dist/discrete/invariant/index.d.mts +2 -0
  418. package/dist/discrete/invariant/preset.d.mts +22 -0
  419. package/dist/discrete/invariant/preset.mjs +159 -0
  420. package/dist/discrete/karnaugh/preset.mjs +208 -156
  421. package/dist/discrete/lln/asset.mjs +2 -2
  422. package/dist/discrete/lln/preset.mjs +191 -54
  423. package/dist/discrete/modular-clock/core.mjs +14 -0
  424. package/dist/discrete/modular-clock/index.d.mts +1 -0
  425. package/dist/discrete/modular-clock/preset.d.mts +21 -0
  426. package/dist/discrete/modular-clock/preset.mjs +192 -0
  427. package/dist/discrete/monte-carlo/preset.d.mts +1 -1
  428. package/dist/discrete/monte-carlo/preset.mjs +187 -106
  429. package/dist/discrete/monty-hall/preset.mjs +201 -221
  430. package/dist/discrete/outcome-builder/preset.mjs +156 -131
  431. package/dist/discrete/pascal/preset.mjs +174 -139
  432. package/dist/discrete/pigeonhole/index.d.mts +1 -0
  433. package/dist/discrete/pigeonhole/preset.d.mts +19 -0
  434. package/dist/discrete/pigeonhole/preset.mjs +129 -0
  435. package/dist/discrete/proof/core.d.mts +74 -0
  436. package/dist/discrete/proof/core.mjs +44 -0
  437. package/dist/discrete/proof-builder/index.d.mts +1 -0
  438. package/dist/discrete/proof-builder/preset.d.mts +18 -0
  439. package/dist/discrete/proof-builder/preset.mjs +238 -0
  440. package/dist/discrete/recurrence/core.mjs +18 -0
  441. package/dist/discrete/recurrence/index.d.mts +1 -0
  442. package/dist/discrete/recurrence/preset.d.mts +19 -0
  443. package/dist/discrete/recurrence/preset.mjs +118 -0
  444. package/dist/discrete/rule-figures.mjs +114 -0
  445. package/dist/discrete/rules.d.mts +20 -0
  446. package/dist/discrete/rules.mjs +364 -0
  447. package/dist/discrete/sample-space/preset.mjs +160 -129
  448. package/dist/discrete/selection/preset.mjs +158 -187
  449. package/dist/discrete/statement-logic/core.d.mts +41 -0
  450. package/dist/discrete/statement-logic/core.mjs +53 -0
  451. package/dist/discrete/statement-logic/index.d.mts +2 -0
  452. package/dist/discrete/statement-logic/preset.d.mts +42 -0
  453. package/dist/discrete/statement-logic/preset.mjs +245 -0
  454. package/dist/discrete/truth-table/preset.mjs +146 -127
  455. package/dist/discrete/venn/preset.mjs +201 -169
  456. package/dist/discrete/visuals/reasoning-scenes.mjs +236 -0
  457. package/dist/domains/accounting/apportion/manifest.mjs +56 -0
  458. package/dist/domains/accounting/apportion/runtime.mjs +5 -0
  459. package/dist/domains/accounting/break-even/manifest.mjs +55 -0
  460. package/dist/domains/accounting/break-even/runtime.mjs +5 -0
  461. package/dist/domains/accounting/business-lesson/manifest.mjs +54 -0
  462. package/dist/domains/accounting/business-lesson/runtime.mjs +5 -0
  463. package/dist/domains/accounting/business-lesson/schema.mjs +97 -0
  464. package/dist/domains/accounting/compound-interest/manifest.mjs +58 -0
  465. package/dist/domains/accounting/compound-interest/runtime.mjs +5 -0
  466. package/dist/domains/accounting/depreciation/manifest.mjs +60 -0
  467. package/dist/domains/accounting/depreciation/runtime.mjs +5 -0
  468. package/dist/domains/accounting/eoq/manifest.mjs +57 -0
  469. package/dist/domains/accounting/eoq/runtime.mjs +5 -0
  470. package/dist/domains/accounting/equation-balance/authoring.mjs +159 -0
  471. package/dist/domains/accounting/equation-balance/manifest.mjs +77 -0
  472. package/dist/domains/accounting/equation-balance/runtime.mjs +20 -0
  473. package/dist/domains/accounting/journal-poster/manifest.mjs +68 -0
  474. package/dist/domains/accounting/journal-poster/runtime.mjs +20 -0
  475. package/dist/domains/accounting/limited-company/manifest.mjs +55 -0
  476. package/dist/domains/accounting/limited-company/runtime.mjs +5 -0
  477. package/dist/domains/accounting/ratio-lab/manifest.mjs +73 -0
  478. package/dist/domains/accounting/ratio-lab/runtime.mjs +5 -0
  479. package/dist/domains/accounting/reorder-point/manifest.mjs +60 -0
  480. package/dist/domains/accounting/reorder-point/runtime.mjs +5 -0
  481. package/dist/domains/accounting/shared.mjs +65 -0
  482. package/dist/domains/accounting/statement-builder/manifest.mjs +57 -0
  483. package/dist/domains/accounting/statement-builder/runtime.mjs +5 -0
  484. package/dist/domains/accounting/statement-sorter/manifest.mjs +62 -0
  485. package/dist/domains/accounting/statement-sorter/runtime.mjs +20 -0
  486. package/dist/domains/accounting/warehouse-allocation/manifest.mjs +53 -0
  487. package/dist/domains/accounting/warehouse-allocation/runtime.mjs +5 -0
  488. package/dist/domains/activity-map.d.mts +9 -0
  489. package/dist/domains/activity-map.mjs +33 -0
  490. package/dist/domains/biology/cell-energy/activity.mjs +3 -0
  491. package/dist/domains/biology/cell-energy/manifest.mjs +65 -0
  492. package/dist/domains/biology/cell-energy/runtime.mjs +3 -0
  493. package/dist/domains/biology/cell-system/activity.mjs +3 -0
  494. package/dist/domains/biology/cell-system/manifest.mjs +81 -0
  495. package/dist/domains/biology/cell-system/runtime.mjs +3 -0
  496. package/dist/domains/biology/central-dogma/manifest.mjs +51 -0
  497. package/dist/domains/biology/central-dogma/runtime.mjs +5 -0
  498. package/dist/domains/biology/enzyme-rate/manifest.mjs +69 -0
  499. package/dist/domains/biology/enzyme-rate/runtime.mjs +5 -0
  500. package/dist/domains/biology/genetic-cross/manifest.mjs +132 -0
  501. package/dist/domains/biology/genetic-cross/runtime.mjs +24 -0
  502. package/dist/domains/biology/meiosis-explorer/activity.mjs +3 -0
  503. package/dist/domains/biology/meiosis-explorer/manifest.mjs +71 -0
  504. package/dist/domains/biology/meiosis-explorer/runtime.mjs +3 -0
  505. package/dist/domains/biology/membrane-transport/activity.mjs +3 -0
  506. package/dist/domains/biology/membrane-transport/manifest.mjs +73 -0
  507. package/dist/domains/biology/membrane-transport/runtime.mjs +3 -0
  508. package/dist/domains/biology/mitosis-explorer/activity.mjs +3 -0
  509. package/dist/domains/biology/mitosis-explorer/manifest.mjs +69 -0
  510. package/dist/domains/biology/mitosis-explorer/runtime.mjs +3 -0
  511. package/dist/domains/biology/photosynthesis-factors/manifest.mjs +58 -0
  512. package/dist/domains/biology/photosynthesis-factors/runtime.mjs +5 -0
  513. package/dist/domains/biology/punnett-cross/manifest.mjs +72 -0
  514. package/dist/domains/biology/punnett-cross/runtime.mjs +5 -0
  515. package/dist/domains/biology/respiration/manifest.mjs +55 -0
  516. package/dist/domains/biology/respiration/runtime.mjs +5 -0
  517. package/dist/domains/biology/sequence/manifest.mjs +64 -0
  518. package/dist/domains/biology/sequence/runtime.mjs +18 -0
  519. package/dist/domains/biology/sex-linked-cross/manifest.mjs +75 -0
  520. package/dist/domains/biology/sex-linked-cross/runtime.mjs +5 -0
  521. package/dist/domains/block-loaders.mjs +22 -0
  522. package/dist/domains/block-sets/accounting.mjs +37 -0
  523. package/dist/domains/block-sets/biology.mjs +35 -0
  524. package/dist/domains/block-sets/chem.mjs +45 -0
  525. package/dist/domains/block-sets/circuits.mjs +47 -0
  526. package/dist/domains/block-sets/discrete.mjs +61 -0
  527. package/dist/domains/block-sets/economics.mjs +15 -0
  528. package/dist/domains/block-sets/exam.mjs +9 -0
  529. package/dist/domains/block-sets/geography.mjs +9 -0
  530. package/dist/domains/block-sets/geometry.mjs +10 -0
  531. package/dist/domains/block-sets/ict.mjs +59 -0
  532. package/dist/domains/block-sets/language.mjs +31 -0
  533. package/dist/domains/block-sets/math.mjs +121 -0
  534. package/dist/domains/block-sets/ml.mjs +23 -0
  535. package/dist/domains/block-sets/networking.mjs +25 -0
  536. package/dist/domains/block-sets/physics.mjs +149 -0
  537. package/dist/domains/block-sets/statistics.mjs +27 -0
  538. package/dist/domains/blocks.mjs +11 -0
  539. package/dist/domains/catalog-map.mjs +6434 -0
  540. package/dist/domains/catalog.mjs +10 -0
  541. package/dist/domains/chem/atomic-orbital/activity.mjs +3 -0
  542. package/dist/domains/chem/atomic-orbital/manifest.mjs +71 -0
  543. package/dist/domains/chem/atomic-orbital/runtime.mjs +20 -0
  544. package/dist/domains/chem/battery/manifest.mjs +54 -0
  545. package/dist/domains/chem/battery/runtime.mjs +15 -0
  546. package/dist/domains/chem/bohr-atom/manifest.mjs +54 -0
  547. package/dist/domains/chem/bohr-atom/runtime.mjs +15 -0
  548. package/dist/domains/chem/crystal-lattice/activity.mjs +3 -0
  549. package/dist/domains/chem/crystal-lattice/manifest.mjs +68 -0
  550. package/dist/domains/chem/crystal-lattice/runtime.mjs +20 -0
  551. package/dist/domains/chem/dilution/manifest.mjs +57 -0
  552. package/dist/domains/chem/dilution/runtime.mjs +5 -0
  553. package/dist/domains/chem/electrochem/manifest.mjs +72 -0
  554. package/dist/domains/chem/electrochem/runtime.mjs +5 -0
  555. package/dist/domains/chem/gas-box/manifest.mjs +64 -0
  556. package/dist/domains/chem/gas-box/runtime.mjs +5 -0
  557. package/dist/domains/chem/kinetics/manifest.mjs +59 -0
  558. package/dist/domains/chem/kinetics/runtime.mjs +5 -0
  559. package/dist/domains/chem/le-chatelier/manifest.mjs +57 -0
  560. package/dist/domains/chem/le-chatelier/runtime.mjs +5 -0
  561. package/dist/domains/chem/molecular-geometry/activity.mjs +3 -0
  562. package/dist/domains/chem/molecular-geometry/manifest.mjs +74 -0
  563. package/dist/domains/chem/molecular-geometry/runtime.mjs +22 -0
  564. package/dist/domains/chem/orbital-overlap/activity.mjs +3 -0
  565. package/dist/domains/chem/orbital-overlap/manifest.mjs +60 -0
  566. package/dist/domains/chem/orbital-overlap/runtime.mjs +18 -0
  567. package/dist/domains/chem/periodic-trends/manifest.mjs +60 -0
  568. package/dist/domains/chem/periodic-trends/runtime.mjs +5 -0
  569. package/dist/domains/chem/reaction-lab/manifest.mjs +55 -0
  570. package/dist/domains/chem/reaction-lab/runtime.mjs +18 -0
  571. package/dist/domains/chem/reaction-profile/manifest.mjs +56 -0
  572. package/dist/domains/chem/reaction-profile/runtime.mjs +17 -0
  573. package/dist/domains/chem/solution-box/manifest.mjs +57 -0
  574. package/dist/domains/chem/solution-box/runtime.mjs +5 -0
  575. package/dist/domains/chem/stereochemistry/activity.mjs +3 -0
  576. package/dist/domains/chem/stereochemistry/manifest.mjs +65 -0
  577. package/dist/domains/chem/stereochemistry/runtime.mjs +21 -0
  578. package/dist/domains/chem/stoichiometry/manifest.mjs +61 -0
  579. package/dist/domains/chem/stoichiometry/runtime.mjs +5 -0
  580. package/dist/domains/chem/titration/manifest.mjs +60 -0
  581. package/dist/domains/chem/titration/runtime.mjs +5 -0
  582. package/dist/domains/circuits/bjt-inside/manifest.mjs +57 -0
  583. package/dist/domains/circuits/bjt-inside/runtime.mjs +5 -0
  584. package/dist/domains/circuits/brownout/manifest.mjs +59 -0
  585. package/dist/domains/circuits/brownout/runtime.mjs +5 -0
  586. package/dist/domains/circuits/capacitor-leak/manifest.mjs +61 -0
  587. package/dist/domains/circuits/capacitor-leak/runtime.mjs +5 -0
  588. package/dist/domains/circuits/circuit/manifest.mjs +64 -0
  589. package/dist/domains/circuits/circuit/runtime.mjs +32 -0
  590. package/dist/domains/circuits/circuit-builder/authoring.mjs +138 -0
  591. package/dist/domains/circuits/circuit-builder/manifest.mjs +78 -0
  592. package/dist/domains/circuits/circuit-builder/runtime.mjs +20 -0
  593. package/dist/domains/circuits/circuit-builder/shared.mjs +16 -0
  594. package/dist/domains/circuits/circuit-lab/manifest.mjs +64 -0
  595. package/dist/domains/circuits/circuit-lab/runtime.mjs +21 -0
  596. package/dist/domains/circuits/circuit-scene/authoring.mjs +33 -0
  597. package/dist/domains/circuits/circuit-scene/manifest.mjs +100 -0
  598. package/dist/domains/circuits/circuit-scene/runtime.mjs +25 -0
  599. package/dist/domains/circuits/cmos-inverter/manifest.mjs +69 -0
  600. package/dist/domains/circuits/cmos-inverter/runtime.mjs +5 -0
  601. package/dist/domains/circuits/cmos-nand/manifest.mjs +60 -0
  602. package/dist/domains/circuits/cmos-nand/runtime.mjs +5 -0
  603. package/dist/domains/circuits/cmos-nor/manifest.mjs +60 -0
  604. package/dist/domains/circuits/cmos-nor/runtime.mjs +5 -0
  605. package/dist/domains/circuits/conduction/manifest.mjs +57 -0
  606. package/dist/domains/circuits/conduction/runtime.mjs +5 -0
  607. package/dist/domains/circuits/diode/manifest.mjs +55 -0
  608. package/dist/domains/circuits/diode/runtime.mjs +5 -0
  609. package/dist/domains/circuits/hall-effect/manifest.mjs +51 -0
  610. package/dist/domains/circuits/hall-effect/runtime.mjs +5 -0
  611. package/dist/domains/circuits/mosfet-inside/manifest.mjs +58 -0
  612. package/dist/domains/circuits/mosfet-inside/runtime.mjs +5 -0
  613. package/dist/domains/circuits/pn-junction/manifest.mjs +57 -0
  614. package/dist/domains/circuits/pn-junction/runtime.mjs +5 -0
  615. package/dist/domains/circuits/rc-charging/manifest.mjs +59 -0
  616. package/dist/domains/circuits/rc-charging/runtime.mjs +5 -0
  617. package/dist/domains/circuits/rnmos-not/manifest.mjs +62 -0
  618. package/dist/domains/circuits/rnmos-not/runtime.mjs +5 -0
  619. package/dist/domains/circuits/silicon-lattice/manifest.mjs +63 -0
  620. package/dist/domains/circuits/silicon-lattice/runtime.mjs +5 -0
  621. package/dist/domains/circuits/transistor/manifest.mjs +60 -0
  622. package/dist/domains/circuits/transistor/runtime.mjs +5 -0
  623. package/dist/domains/discrete/arrangements/manifest.mjs +53 -0
  624. package/dist/domains/discrete/arrangements/runtime.mjs +5 -0
  625. package/dist/domains/discrete/bayes/manifest.mjs +58 -0
  626. package/dist/domains/discrete/bayes/runtime.mjs +5 -0
  627. package/dist/domains/discrete/binomial/manifest.mjs +50 -0
  628. package/dist/domains/discrete/binomial/runtime.mjs +5 -0
  629. package/dist/domains/discrete/combination-studio/manifest.mjs +72 -0
  630. package/dist/domains/discrete/combination-studio/runtime.mjs +5 -0
  631. package/dist/domains/discrete/counting-slots/manifest.mjs +74 -0
  632. package/dist/domains/discrete/counting-slots/runtime.mjs +5 -0
  633. package/dist/domains/discrete/counting-tree/manifest.mjs +60 -0
  634. package/dist/domains/discrete/counting-tree/runtime.mjs +5 -0
  635. package/dist/domains/discrete/expected-value/manifest.mjs +53 -0
  636. package/dist/domains/discrete/expected-value/runtime.mjs +5 -0
  637. package/dist/domains/discrete/hypergeometric/manifest.mjs +56 -0
  638. package/dist/domains/discrete/hypergeometric/runtime.mjs +5 -0
  639. package/dist/domains/discrete/induction-ladder/manifest.mjs +54 -0
  640. package/dist/domains/discrete/induction-ladder/runtime.mjs +5 -0
  641. package/dist/domains/discrete/invariant-detective/manifest.mjs +61 -0
  642. package/dist/domains/discrete/invariant-detective/runtime.mjs +5 -0
  643. package/dist/domains/discrete/karnaugh/manifest.mjs +69 -0
  644. package/dist/domains/discrete/karnaugh/runtime.mjs +5 -0
  645. package/dist/domains/discrete/lln/manifest.mjs +52 -0
  646. package/dist/domains/discrete/lln/runtime.mjs +5 -0
  647. package/dist/domains/discrete/modular-clock/manifest.mjs +58 -0
  648. package/dist/domains/discrete/modular-clock/runtime.mjs +5 -0
  649. package/dist/domains/discrete/monte-carlo/manifest.mjs +76 -0
  650. package/dist/domains/discrete/monte-carlo/runtime.mjs +5 -0
  651. package/dist/domains/discrete/monty-hall/manifest.mjs +53 -0
  652. package/dist/domains/discrete/monty-hall/runtime.mjs +5 -0
  653. package/dist/domains/discrete/outcome-builder/manifest.mjs +53 -0
  654. package/dist/domains/discrete/outcome-builder/runtime.mjs +5 -0
  655. package/dist/domains/discrete/pascal/manifest.mjs +57 -0
  656. package/dist/domains/discrete/pascal/runtime.mjs +5 -0
  657. package/dist/domains/discrete/pigeonhole-adversary/manifest.mjs +56 -0
  658. package/dist/domains/discrete/pigeonhole-adversary/runtime.mjs +5 -0
  659. package/dist/domains/discrete/proof-builder/manifest.mjs +117 -0
  660. package/dist/domains/discrete/proof-builder/runtime.mjs +5 -0
  661. package/dist/domains/discrete/recurrence-builder/manifest.mjs +55 -0
  662. package/dist/domains/discrete/recurrence-builder/runtime.mjs +5 -0
  663. package/dist/domains/discrete/rule-card/builtins.mjs +17 -0
  664. package/dist/domains/discrete/rule-card/manifest.mjs +81 -0
  665. package/dist/domains/discrete/rule-card/presets.mjs +23 -0
  666. package/dist/domains/discrete/rule-card/runtime.mjs +28 -0
  667. package/dist/domains/discrete/sample-space/manifest.mjs +77 -0
  668. package/dist/domains/discrete/sample-space/runtime.mjs +5 -0
  669. package/dist/domains/discrete/selection/manifest.mjs +55 -0
  670. package/dist/domains/discrete/selection/runtime.mjs +5 -0
  671. package/dist/domains/discrete/statement-logic/manifest.mjs +106 -0
  672. package/dist/domains/discrete/statement-logic/runtime.mjs +5 -0
  673. package/dist/domains/discrete/truth-table/manifest.mjs +57 -0
  674. package/dist/domains/discrete/truth-table/runtime.mjs +5 -0
  675. package/dist/domains/discrete/venn/manifest.mjs +73 -0
  676. package/dist/domains/discrete/venn/runtime.mjs +5 -0
  677. package/dist/domains/economics/demand-shift-vs-move/manifest.mjs +47 -0
  678. package/dist/domains/economics/demand-shift-vs-move/runtime.mjs +5 -0
  679. package/dist/domains/economics/elasticity-revenue/manifest.mjs +60 -0
  680. package/dist/domains/economics/elasticity-revenue/runtime.mjs +24 -0
  681. package/dist/domains/economics/market-equilibrium/manifest.mjs +53 -0
  682. package/dist/domains/economics/market-equilibrium/runtime.mjs +28 -0
  683. package/dist/domains/exam/exam-question/manifest.mjs +96 -0
  684. package/dist/domains/exam/exam-question/runtime.mjs +5 -0
  685. package/dist/domains/geography/cycle/manifest.mjs +135 -0
  686. package/dist/domains/geography/cycle/runtime.mjs +26 -0
  687. package/dist/domains/geometry/geometry-board/authoring.mjs +33 -0
  688. package/dist/domains/geometry/geometry-board/manifest.mjs +135 -0
  689. package/dist/domains/geometry/geometry-board/runtime.mjs +16 -0
  690. package/dist/domains/geometry/geometry-board/scene.mjs +62 -0
  691. package/dist/domains/geometry/intersecting-circles/manifest.mjs +55 -0
  692. package/dist/domains/geometry/intersecting-circles/runtime.mjs +16 -0
  693. package/dist/domains/ict/array-vs-list/manifest.mjs +75 -0
  694. package/dist/domains/ict/array-vs-list/runtime.mjs +5 -0
  695. package/dist/domains/ict/base-odometer/manifest.mjs +72 -0
  696. package/dist/domains/ict/base-odometer/runtime.mjs +5 -0
  697. package/dist/domains/ict/binary-counter/manifest.mjs +65 -0
  698. package/dist/domains/ict/binary-counter/runtime.mjs +235 -0
  699. package/dist/domains/ict/binary-display/manifest.mjs +59 -0
  700. package/dist/domains/ict/binary-display/runtime.mjs +5 -0
  701. package/dist/domains/ict/binary-search/manifest.mjs +70 -0
  702. package/dist/domains/ict/binary-search/runtime.mjs +5 -0
  703. package/dist/domains/ict/bit-grouper/manifest.mjs +59 -0
  704. package/dist/domains/ict/bit-grouper/runtime.mjs +5 -0
  705. package/dist/domains/ict/complexity-growth/manifest.mjs +69 -0
  706. package/dist/domains/ict/complexity-growth/runtime.mjs +5 -0
  707. package/dist/domains/ict/cost-derivation/manifest.mjs +56 -0
  708. package/dist/domains/ict/cost-derivation/runtime.mjs +12 -0
  709. package/dist/domains/ict/graph-algorithm/authoring.mjs +246 -0
  710. package/dist/domains/ict/graph-algorithm/manifest.mjs +87 -0
  711. package/dist/domains/ict/graph-algorithm/runtime.mjs +5 -0
  712. package/dist/domains/ict/grid-path-dp/authoring.mjs +75 -0
  713. package/dist/domains/ict/grid-path-dp/manifest.mjs +66 -0
  714. package/dist/domains/ict/grid-path-dp/runtime.mjs +5 -0
  715. package/dist/domains/ict/hash-table/manifest.mjs +68 -0
  716. package/dist/domains/ict/hash-table/runtime.mjs +5 -0
  717. package/dist/domains/ict/heap-quest/authoring.mjs +123 -0
  718. package/dist/domains/ict/heap-quest/manifest.mjs +76 -0
  719. package/dist/domains/ict/heap-quest/runtime.mjs +5 -0
  720. package/dist/domains/ict/jk-flip-flop/manifest.mjs +65 -0
  721. package/dist/domains/ict/jk-flip-flop/runtime.mjs +273 -0
  722. package/dist/domains/ict/latch-vs-flip-flop/manifest.mjs +61 -0
  723. package/dist/domains/ict/latch-vs-flip-flop/runtime.mjs +227 -0
  724. package/dist/domains/ict/logic-builder/manifest.mjs +67 -0
  725. package/dist/domains/ict/logic-builder/runtime.mjs +17 -0
  726. package/dist/domains/ict/logic-circuit/manifest.mjs +79 -0
  727. package/dist/domains/ict/logic-circuit/runtime.mjs +25 -0
  728. package/dist/domains/ict/logic-gate/manifest.mjs +71 -0
  729. package/dist/domains/ict/logic-gate/runtime.mjs +5 -0
  730. package/dist/domains/ict/place-value-dial/manifest.mjs +60 -0
  731. package/dist/domains/ict/place-value-dial/runtime.mjs +5 -0
  732. package/dist/domains/ict/sequence-detector/manifest.mjs +68 -0
  733. package/dist/domains/ict/sequence-detector/runtime.mjs +328 -0
  734. package/dist/domains/ict/shift-register/manifest.mjs +65 -0
  735. package/dist/domains/ict/shift-register/runtime.mjs +199 -0
  736. package/dist/domains/ict/sorting-quest/manifest.mjs +76 -0
  737. package/dist/domains/ict/sorting-quest/runtime.mjs +5 -0
  738. package/dist/domains/ict/sr-latch/manifest.mjs +65 -0
  739. package/dist/domains/ict/sr-latch/runtime.mjs +253 -0
  740. package/dist/domains/ict/tree-quest/authoring.mjs +265 -0
  741. package/dist/domains/ict/tree-quest/manifest.mjs +90 -0
  742. package/dist/domains/ict/tree-quest/runtime.mjs +5 -0
  743. package/dist/domains/ict/twos-complement/manifest.mjs +71 -0
  744. package/dist/domains/ict/twos-complement/runtime.mjs +276 -0
  745. package/dist/domains/ict/wire-a-chip/manifest.mjs +72 -0
  746. package/dist/domains/ict/wire-a-chip/runtime.mjs +287 -0
  747. package/dist/domains/language/agreement/authoring.mjs +75 -0
  748. package/dist/domains/language/agreement/manifest.mjs +61 -0
  749. package/dist/domains/language/agreement/runtime.mjs +20 -0
  750. package/dist/domains/language/article-lens/authoring.mjs +86 -0
  751. package/dist/domains/language/article-lens/manifest.mjs +61 -0
  752. package/dist/domains/language/article-lens/runtime.mjs +20 -0
  753. package/dist/domains/language/cloze/authoring.mjs +69 -0
  754. package/dist/domains/language/cloze/manifest.mjs +61 -0
  755. package/dist/domains/language/cloze/runtime.mjs +20 -0
  756. package/dist/domains/language/dictation/authoring.mjs +66 -0
  757. package/dist/domains/language/dictation/manifest.mjs +62 -0
  758. package/dist/domains/language/dictation/runtime.mjs +19 -0
  759. package/dist/domains/language/error-correct/authoring.mjs +45 -0
  760. package/dist/domains/language/error-correct/manifest.mjs +60 -0
  761. package/dist/domains/language/error-correct/runtime.mjs +19 -0
  762. package/dist/domains/language/listening/authoring.mjs +83 -0
  763. package/dist/domains/language/listening/manifest.mjs +67 -0
  764. package/dist/domains/language/listening/runtime.mjs +20 -0
  765. package/dist/domains/language/preposition/authoring.mjs +99 -0
  766. package/dist/domains/language/preposition/manifest.mjs +61 -0
  767. package/dist/domains/language/preposition/runtime.mjs +20 -0
  768. package/dist/domains/language/reading/authoring.mjs +87 -0
  769. package/dist/domains/language/reading/manifest.mjs +62 -0
  770. package/dist/domains/language/reading/runtime.mjs +22 -0
  771. package/dist/domains/language/sentence-builder/authoring.mjs +74 -0
  772. package/dist/domains/language/sentence-builder/manifest.mjs +63 -0
  773. package/dist/domains/language/sentence-builder/runtime.mjs +22 -0
  774. package/dist/domains/language/shared.mjs +311 -0
  775. package/dist/domains/language/transform/authoring.mjs +89 -0
  776. package/dist/domains/language/transform/manifest.mjs +65 -0
  777. package/dist/domains/language/transform/runtime.mjs +23 -0
  778. package/dist/domains/language/word-match/authoring.mjs +83 -0
  779. package/dist/domains/language/word-match/manifest.mjs +59 -0
  780. package/dist/domains/language/word-match/runtime.mjs +21 -0
  781. package/dist/domains/manifests.mjs +573 -0
  782. package/dist/domains/math/area-model/manifest.mjs +57 -0
  783. package/dist/domains/math/area-model/runtime.mjs +17 -0
  784. package/dist/domains/math/area-rearrange/manifest.mjs +65 -0
  785. package/dist/domains/math/area-rearrange/runtime.mjs +12 -0
  786. package/dist/domains/math/authoring-kit.mjs +340 -0
  787. package/dist/domains/math/balance-algebra/manifest.mjs +58 -0
  788. package/dist/domains/math/balance-algebra/runtime.mjs +18 -0
  789. package/dist/domains/math/bearings/manifest.mjs +65 -0
  790. package/dist/domains/math/bearings/runtime.mjs +12 -0
  791. package/dist/domains/math/broken-tree/manifest.mjs +59 -0
  792. package/dist/domains/math/broken-tree/runtime.mjs +12 -0
  793. package/dist/domains/math/calculus-authoring.mjs +127 -0
  794. package/dist/domains/math/circle-geometry/authoring.mjs +55 -0
  795. package/dist/domains/math/circle-geometry/manifest.mjs +65 -0
  796. package/dist/domains/math/circle-geometry/runtime.mjs +5 -0
  797. package/dist/domains/math/complex-plane/manifest.mjs +64 -0
  798. package/dist/domains/math/complex-plane/runtime.mjs +5 -0
  799. package/dist/domains/math/conic/authoring.mjs +84 -0
  800. package/dist/domains/math/conic/manifest.mjs +67 -0
  801. package/dist/domains/math/conic/runtime.mjs +5 -0
  802. package/dist/domains/math/custom-scene/authoring.mjs +34 -0
  803. package/dist/domains/math/custom-scene/manifest.mjs +72 -0
  804. package/dist/domains/math/custom-scene/runtime.mjs +29 -0
  805. package/dist/domains/math/custom-scene/shared.mjs +51 -0
  806. package/dist/domains/math/derivation/authoring.mjs +65 -0
  807. package/dist/domains/math/derivation/manifest.mjs +61 -0
  808. package/dist/domains/math/derivation/runtime.mjs +19 -0
  809. package/dist/domains/math/derivative-explorer/authoring.mjs +15 -0
  810. package/dist/domains/math/derivative-explorer/manifest.mjs +54 -0
  811. package/dist/domains/math/derivative-explorer/runtime.mjs +17 -0
  812. package/dist/domains/math/differential-equation/authoring.mjs +120 -0
  813. package/dist/domains/math/differential-equation/manifest.mjs +67 -0
  814. package/dist/domains/math/differential-equation/runtime.mjs +20 -0
  815. package/dist/domains/math/division-workbench/manifest.mjs +65 -0
  816. package/dist/domains/math/division-workbench/runtime.mjs +3 -0
  817. package/dist/domains/math/domain-range/authoring.mjs +87 -0
  818. package/dist/domains/math/domain-range/manifest.mjs +63 -0
  819. package/dist/domains/math/domain-range/runtime.mjs +5 -0
  820. package/dist/domains/math/expression-order/manifest.mjs +77 -0
  821. package/dist/domains/math/expression-order/runtime.mjs +5 -0
  822. package/dist/domains/math/fraction-bar/manifest.mjs +61 -0
  823. package/dist/domains/math/fraction-bar/runtime.mjs +5 -0
  824. package/dist/domains/math/function-machine/manifest.mjs +73 -0
  825. package/dist/domains/math/function-machine/runtime.mjs +5 -0
  826. package/dist/domains/math/fundamental-theorem/authoring.mjs +15 -0
  827. package/dist/domains/math/fundamental-theorem/manifest.mjs +61 -0
  828. package/dist/domains/math/fundamental-theorem/runtime.mjs +18 -0
  829. package/dist/domains/math/geometry-foundations/activity.mjs +3 -0
  830. package/dist/domains/math/geometry-foundations/manifest.mjs +75 -0
  831. package/dist/domains/math/geometry-foundations/runtime.mjs +3 -0
  832. package/dist/domains/math/geometry-transform/manifest.mjs +73 -0
  833. package/dist/domains/math/geometry-transform/runtime.mjs +41 -0
  834. package/dist/domains/math/gradient-descent/authoring.mjs +76 -0
  835. package/dist/domains/math/gradient-descent/manifest.mjs +55 -0
  836. package/dist/domains/math/gradient-descent/runtime.mjs +18 -0
  837. package/dist/domains/math/graph/authoring.mjs +156 -0
  838. package/dist/domains/math/graph/manifest.mjs +62 -0
  839. package/dist/domains/math/graph/runtime.mjs +20 -0
  840. package/dist/domains/math/growing-pattern/manifest.mjs +57 -0
  841. package/dist/domains/math/growing-pattern/runtime.mjs +17 -0
  842. package/dist/domains/math/harmonic-form/manifest.mjs +53 -0
  843. package/dist/domains/math/harmonic-form/runtime.mjs +12 -0
  844. package/dist/domains/math/identity-proof/manifest.mjs +71 -0
  845. package/dist/domains/math/identity-proof/runtime.mjs +12 -0
  846. package/dist/domains/math/integral-explorer/authoring.mjs +15 -0
  847. package/dist/domains/math/integral-explorer/manifest.mjs +56 -0
  848. package/dist/domains/math/integral-explorer/runtime.mjs +19 -0
  849. package/dist/domains/math/interactive-problem/authoring.mjs +295 -0
  850. package/dist/domains/math/interactive-problem/manifest.mjs +65 -0
  851. package/dist/domains/math/interactive-problem/runtime.mjs +26 -0
  852. package/dist/domains/math/iteration/manifest.mjs +60 -0
  853. package/dist/domains/math/iteration/runtime.mjs +12 -0
  854. package/dist/domains/math/limit-explorer/authoring.mjs +15 -0
  855. package/dist/domains/math/limit-explorer/manifest.mjs +54 -0
  856. package/dist/domains/math/limit-explorer/runtime.mjs +17 -0
  857. package/dist/domains/math/linear-model/manifest.mjs +81 -0
  858. package/dist/domains/math/linear-model/runtime.mjs +19 -0
  859. package/dist/domains/math/linear-system/manifest.mjs +57 -0
  860. package/dist/domains/math/linear-system/runtime.mjs +24 -0
  861. package/dist/domains/math/lines-in-space/manifest.mjs +74 -0
  862. package/dist/domains/math/lines-in-space/runtime.mjs +12 -0
  863. package/dist/domains/math/measurement/activity.mjs +3 -0
  864. package/dist/domains/math/measurement/manifest.mjs +81 -0
  865. package/dist/domains/math/measurement/runtime.mjs +3 -0
  866. package/dist/domains/math/mystery-bucket/manifest.mjs +57 -0
  867. package/dist/domains/math/mystery-bucket/runtime.mjs +17 -0
  868. package/dist/domains/math/newton-method/authoring.mjs +72 -0
  869. package/dist/domains/math/newton-method/manifest.mjs +61 -0
  870. package/dist/domains/math/newton-method/runtime.mjs +18 -0
  871. package/dist/domains/math/number-line/manifest.mjs +57 -0
  872. package/dist/domains/math/number-line/runtime.mjs +17 -0
  873. package/dist/domains/math/number-structure/manifest.mjs +71 -0
  874. package/dist/domains/math/number-structure/runtime.mjs +3 -0
  875. package/dist/domains/math/oblique-triangle/manifest.mjs +67 -0
  876. package/dist/domains/math/oblique-triangle/runtime.mjs +12 -0
  877. package/dist/domains/math/partial-fractions/manifest.mjs +71 -0
  878. package/dist/domains/math/partial-fractions/runtime.mjs +12 -0
  879. package/dist/domains/math/percent-bar/manifest.mjs +66 -0
  880. package/dist/domains/math/percent-bar/runtime.mjs +5 -0
  881. package/dist/domains/math/phase-portrait/authoring.mjs +132 -0
  882. package/dist/domains/math/phase-portrait/manifest.mjs +64 -0
  883. package/dist/domains/math/phase-portrait/runtime.mjs +21 -0
  884. package/dist/domains/math/polynomial-solver/manifest.mjs +57 -0
  885. package/dist/domains/math/polynomial-solver/runtime.mjs +5 -0
  886. package/dist/domains/math/radian-wrap/manifest.mjs +56 -0
  887. package/dist/domains/math/radian-wrap/runtime.mjs +12 -0
  888. package/dist/domains/math/rate-machine/manifest.mjs +73 -0
  889. package/dist/domains/math/rate-machine/runtime.mjs +5 -0
  890. package/dist/domains/math/ratio-share/manifest.mjs +61 -0
  891. package/dist/domains/math/ratio-share/runtime.mjs +5 -0
  892. package/dist/domains/math/receipt-totals/manifest.mjs +63 -0
  893. package/dist/domains/math/receipt-totals/runtime.mjs +24 -0
  894. package/dist/domains/math/schemas.mjs +79 -0
  895. package/dist/domains/math/sequence-predict/manifest.mjs +65 -0
  896. package/dist/domains/math/sequence-predict/runtime.mjs +5 -0
  897. package/dist/domains/math/shared.mjs +19 -0
  898. package/dist/domains/math/slide-rule/manifest.mjs +38 -0
  899. package/dist/domains/math/slide-rule/runtime.mjs +12 -0
  900. package/dist/domains/math/solid-net/manifest.mjs +65 -0
  901. package/dist/domains/math/solid-net/runtime.mjs +12 -0
  902. package/dist/domains/math/straight-line/authoring.mjs +86 -0
  903. package/dist/domains/math/straight-line/manifest.mjs +76 -0
  904. package/dist/domains/math/straight-line/runtime.mjs +5 -0
  905. package/dist/domains/math/system-solve/manifest.mjs +71 -0
  906. package/dist/domains/math/system-solve/runtime.mjs +36 -0
  907. package/dist/domains/math/taylor-series/authoring.mjs +81 -0
  908. package/dist/domains/math/taylor-series/manifest.mjs +62 -0
  909. package/dist/domains/math/taylor-series/runtime.mjs +19 -0
  910. package/dist/domains/math/triangle-trig/authoring.mjs +94 -0
  911. package/dist/domains/math/triangle-trig/manifest.mjs +75 -0
  912. package/dist/domains/math/triangle-trig/runtime.mjs +18 -0
  913. package/dist/domains/math/trig-explorer/manifest.mjs +54 -0
  914. package/dist/domains/math/trig-explorer/runtime.mjs +16 -0
  915. package/dist/domains/math/trig-signs/manifest.mjs +57 -0
  916. package/dist/domains/math/trig-signs/runtime.mjs +5 -0
  917. package/dist/domains/math/vertex-parabola/manifest.mjs +52 -0
  918. package/dist/domains/math/vertex-parabola/runtime.mjs +12 -0
  919. package/dist/domains/ml/activity.mjs +80 -0
  920. package/dist/domains/ml/classifier-threshold/manifest.mjs +68 -0
  921. package/dist/{ml/classifier/preset.d.mts → domains/ml/classifier-threshold/runtime.d.mts} +1 -1
  922. package/dist/domains/ml/classifier-threshold/runtime.mjs +342 -0
  923. package/dist/domains/ml/decision-boundary/manifest.mjs +56 -0
  924. package/dist/{ml/boundary/preset.d.mts → domains/ml/decision-boundary/runtime.d.mts} +1 -1
  925. package/dist/{ml/boundary/preset.mjs → domains/ml/decision-boundary/runtime.mjs} +143 -78
  926. package/dist/domains/ml/embedding-space/embedding.mjs +121 -0
  927. package/dist/domains/ml/embedding-space/manifest.mjs +75 -0
  928. package/dist/domains/ml/embedding-space/runtime.mjs +366 -0
  929. package/dist/domains/ml/kmeans/manifest.mjs +78 -0
  930. package/dist/{ml/kmeans/preset.d.mts → domains/ml/kmeans/runtime.d.mts} +1 -1
  931. package/dist/{ml/kmeans/preset.mjs → domains/ml/kmeans/runtime.mjs} +88 -53
  932. package/dist/domains/ml/knn/manifest.mjs +58 -0
  933. package/dist/{ml/knn/preset.d.mts → domains/ml/knn/runtime.d.mts} +1 -1
  934. package/dist/domains/ml/knn/runtime.mjs +402 -0
  935. package/dist/domains/ml/next-token/manifest.mjs +64 -0
  936. package/dist/domains/ml/next-token/model.mjs +112 -0
  937. package/dist/domains/ml/next-token/runtime.mjs +271 -0
  938. package/dist/domains/ml/regression/manifest.mjs +73 -0
  939. package/dist/{ml/regression/preset.d.mts → domains/ml/regression/runtime.d.mts} +1 -1
  940. package/dist/{ml/regression/preset.mjs → domains/ml/regression/runtime.mjs} +125 -123
  941. package/dist/domains/networking/ethernet-pinout/manifest.mjs +66 -0
  942. package/dist/domains/networking/ethernet-pinout/runtime.mjs +254 -0
  943. package/dist/domains/networking/layer-encapsulation/manifest.mjs +66 -0
  944. package/dist/domains/networking/layer-encapsulation/runtime.mjs +281 -0
  945. package/dist/domains/networking/network-media/manifest.mjs +75 -0
  946. package/dist/domains/networking/network-media/runtime.mjs +213 -0
  947. package/dist/domains/networking/packet-journey/manifest.mjs +61 -0
  948. package/dist/domains/networking/packet-journey/runtime.d.mts +24 -0
  949. package/dist/domains/networking/packet-journey/runtime.mjs +238 -0
  950. package/dist/domains/networking/subnet-builder/manifest.mjs +68 -0
  951. package/dist/domains/networking/subnet-builder/runtime.mjs +249 -0
  952. package/dist/domains/networking/switch-learning/manifest.mjs +62 -0
  953. package/dist/domains/networking/switch-learning/runtime.mjs +250 -0
  954. package/dist/domains/networking/vlan-designer/manifest.mjs +66 -0
  955. package/dist/domains/networking/vlan-designer/runtime.mjs +276 -0
  956. package/dist/domains/networking/vpn-tunnel/manifest.mjs +68 -0
  957. package/dist/domains/networking/vpn-tunnel/runtime.mjs +256 -0
  958. package/dist/domains/physics/alternating-current/manifest.mjs +67 -0
  959. package/dist/domains/physics/alternating-current/runtime.mjs +5 -0
  960. package/dist/domains/physics/atwood/manifest.mjs +50 -0
  961. package/dist/domains/physics/atwood/runtime.mjs +5 -0
  962. package/dist/domains/physics/bloch-sphere/activity.mjs +3 -0
  963. package/dist/domains/physics/bloch-sphere/manifest.mjs +70 -0
  964. package/dist/domains/physics/bloch-sphere/runtime.mjs +3 -0
  965. package/dist/domains/physics/bullet-walls/manifest.mjs +52 -0
  966. package/dist/domains/physics/bullet-walls/runtime.mjs +5 -0
  967. package/dist/domains/physics/carnot/manifest.mjs +59 -0
  968. package/dist/domains/physics/carnot/runtime.mjs +5 -0
  969. package/dist/domains/physics/circular-motion/manifest.mjs +53 -0
  970. package/dist/domains/physics/circular-motion/runtime.mjs +5 -0
  971. package/dist/domains/physics/collision-track/manifest.mjs +54 -0
  972. package/dist/domains/physics/collision-track/runtime.mjs +5 -0
  973. package/dist/domains/physics/couple-torque/manifest.mjs +57 -0
  974. package/dist/domains/physics/couple-torque/runtime.mjs +5 -0
  975. package/dist/domains/physics/doppler/manifest.mjs +49 -0
  976. package/dist/domains/physics/doppler/runtime.mjs +5 -0
  977. package/dist/domains/physics/double-slit/activity.mjs +3 -0
  978. package/dist/domains/physics/double-slit/manifest.mjs +62 -0
  979. package/dist/domains/physics/double-slit/runtime.mjs +3 -0
  980. package/dist/domains/physics/efficiency/manifest.mjs +69 -0
  981. package/dist/domains/physics/efficiency/runtime.mjs +5 -0
  982. package/dist/domains/physics/electric-field/manifest.mjs +49 -0
  983. package/dist/domains/physics/electric-field/runtime.mjs +5 -0
  984. package/dist/domains/physics/electric-flux/manifest.mjs +53 -0
  985. package/dist/domains/physics/electric-flux/runtime.mjs +5 -0
  986. package/dist/domains/physics/energy-skate/manifest.mjs +57 -0
  987. package/dist/domains/physics/energy-skate/runtime.mjs +5 -0
  988. package/dist/domains/physics/entropy/manifest.mjs +53 -0
  989. package/dist/domains/physics/entropy/runtime.mjs +5 -0
  990. package/dist/domains/physics/falling-target/manifest.mjs +65 -0
  991. package/dist/domains/physics/falling-target/runtime.mjs +12 -0
  992. package/dist/domains/physics/fission-chain/activity.mjs +3 -0
  993. package/dist/domains/physics/fission-chain/manifest.mjs +61 -0
  994. package/dist/domains/physics/fission-chain/runtime.mjs +3 -0
  995. package/dist/domains/physics/fluid-pressure/manifest.mjs +61 -0
  996. package/dist/domains/physics/fluid-pressure/runtime.mjs +5 -0
  997. package/dist/domains/physics/force-pairs/manifest.mjs +60 -0
  998. package/dist/domains/physics/force-pairs/runtime.mjs +5 -0
  999. package/dist/domains/physics/gas-process/manifest.mjs +58 -0
  1000. package/dist/domains/physics/gas-process/runtime.mjs +5 -0
  1001. package/dist/domains/physics/gauss-law/manifest.mjs +51 -0
  1002. package/dist/domains/physics/gauss-law/runtime.mjs +5 -0
  1003. package/dist/domains/physics/gravitation/manifest.mjs +52 -0
  1004. package/dist/domains/physics/gravitation/runtime.mjs +5 -0
  1005. package/dist/domains/physics/gravity-drop/manifest.mjs +54 -0
  1006. package/dist/domains/physics/gravity-drop/runtime.mjs +5 -0
  1007. package/dist/domains/physics/heat-transfer/manifest.mjs +59 -0
  1008. package/dist/domains/physics/heat-transfer/runtime.mjs +5 -0
  1009. package/dist/domains/physics/heating-curve/manifest.mjs +61 -0
  1010. package/dist/domains/physics/heating-curve/runtime.mjs +5 -0
  1011. package/dist/domains/physics/impulse/manifest.mjs +52 -0
  1012. package/dist/domains/physics/impulse/runtime.mjs +5 -0
  1013. package/dist/domains/physics/intercept/manifest.mjs +68 -0
  1014. package/dist/domains/physics/intercept/runtime.mjs +12 -0
  1015. package/dist/domains/physics/kepler/manifest.mjs +53 -0
  1016. package/dist/domains/physics/kepler/runtime.mjs +5 -0
  1017. package/dist/domains/physics/length-contraction/activity.mjs +3 -0
  1018. package/dist/domains/physics/length-contraction/manifest.mjs +59 -0
  1019. package/dist/domains/physics/length-contraction/runtime.mjs +3 -0
  1020. package/dist/domains/physics/lens-imaging/manifest.mjs +57 -0
  1021. package/dist/domains/physics/lens-imaging/runtime.mjs +5 -0
  1022. package/dist/domains/physics/lever/manifest.mjs +60 -0
  1023. package/dist/domains/physics/lever/runtime.mjs +24 -0
  1024. package/dist/domains/physics/linear-pursuit/manifest.mjs +74 -0
  1025. package/dist/domains/physics/linear-pursuit/runtime.mjs +12 -0
  1026. package/dist/domains/physics/lorentz/manifest.mjs +52 -0
  1027. package/dist/domains/physics/lorentz/runtime.mjs +5 -0
  1028. package/dist/domains/physics/lorentz-transformation/activity.mjs +3 -0
  1029. package/dist/domains/physics/lorentz-transformation/manifest.mjs +65 -0
  1030. package/dist/domains/physics/lorentz-transformation/runtime.mjs +3 -0
  1031. package/dist/domains/physics/magnetism/manifest.mjs +52 -0
  1032. package/dist/domains/physics/magnetism/runtime.mjs +5 -0
  1033. package/dist/domains/physics/mirror-imaging/manifest.mjs +57 -0
  1034. package/dist/domains/physics/mirror-imaging/runtime.mjs +5 -0
  1035. package/dist/domains/physics/moving-launcher/manifest.mjs +66 -0
  1036. package/dist/domains/physics/moving-launcher/runtime.mjs +12 -0
  1037. package/dist/domains/physics/muon-survival/activity.mjs +3 -0
  1038. package/dist/domains/physics/muon-survival/manifest.mjs +61 -0
  1039. package/dist/domains/physics/muon-survival/runtime.mjs +3 -0
  1040. package/dist/domains/physics/nuclear-binding-energy/activity.mjs +3 -0
  1041. package/dist/domains/physics/nuclear-binding-energy/manifest.mjs +67 -0
  1042. package/dist/domains/physics/nuclear-binding-energy/runtime.mjs +3 -0
  1043. package/dist/domains/physics/optics/manifest.mjs +53 -0
  1044. package/dist/domains/physics/optics/runtime.mjs +5 -0
  1045. package/dist/domains/physics/orbit-lab/manifest.mjs +51 -0
  1046. package/dist/domains/physics/orbit-lab/runtime.mjs +5 -0
  1047. package/dist/domains/physics/photoelectric-effect/activity.mjs +3 -0
  1048. package/dist/domains/physics/photoelectric-effect/manifest.mjs +67 -0
  1049. package/dist/domains/physics/photoelectric-effect/runtime.mjs +3 -0
  1050. package/dist/domains/physics/power/manifest.mjs +58 -0
  1051. package/dist/domains/physics/power/runtime.mjs +5 -0
  1052. package/dist/domains/physics/projectile-lab/core/formulas.mjs +26 -0
  1053. package/dist/domains/physics/projectile-lab/core/model.mjs +43 -0
  1054. package/dist/domains/physics/projectile-lab/manifest.mjs +53 -0
  1055. package/dist/domains/physics/projectile-lab/runtime/index.mjs +239 -0
  1056. package/dist/domains/physics/projectile-lab/runtime/svg.mjs +208 -0
  1057. package/dist/domains/physics/quantum-gates/activity.mjs +3 -0
  1058. package/dist/domains/physics/quantum-gates/manifest.mjs +68 -0
  1059. package/dist/domains/physics/quantum-gates/runtime.mjs +3 -0
  1060. package/dist/domains/physics/rain-relative/manifest.mjs +54 -0
  1061. package/dist/domains/physics/rain-relative/runtime.mjs +5 -0
  1062. package/dist/domains/physics/ramp-forces/manifest.mjs +65 -0
  1063. package/dist/domains/physics/ramp-forces/runtime.mjs +25 -0
  1064. package/dist/domains/physics/refraction/manifest.mjs +60 -0
  1065. package/dist/domains/physics/refraction/runtime.mjs +5 -0
  1066. package/dist/domains/physics/relativity-light-clock/activity.mjs +3 -0
  1067. package/dist/domains/physics/relativity-light-clock/manifest.mjs +67 -0
  1068. package/dist/domains/physics/relativity-light-clock/runtime.mjs +12 -0
  1069. package/dist/domains/physics/relativity-simultaneity/activity.mjs +3 -0
  1070. package/dist/domains/physics/relativity-simultaneity/manifest.mjs +59 -0
  1071. package/dist/domains/physics/relativity-simultaneity/runtime.mjs +3 -0
  1072. package/dist/domains/physics/ripple-tank/manifest.mjs +50 -0
  1073. package/dist/domains/physics/ripple-tank/runtime.mjs +5 -0
  1074. package/dist/domains/physics/river-boat/manifest.mjs +52 -0
  1075. package/dist/domains/physics/river-boat/runtime.mjs +17 -0
  1076. package/dist/domains/physics/shm/manifest.mjs +56 -0
  1077. package/dist/domains/physics/shm/runtime.mjs +5 -0
  1078. package/dist/domains/physics/spatial-lorentz/activity.mjs +3 -0
  1079. package/dist/domains/physics/spatial-lorentz/manifest.mjs +61 -0
  1080. package/dist/domains/physics/spatial-lorentz/runtime.mjs +20 -0
  1081. package/dist/domains/physics/stopping-distance/manifest.mjs +61 -0
  1082. package/dist/domains/physics/stopping-distance/runtime.mjs +5 -0
  1083. package/dist/domains/physics/stress-strain/manifest.mjs +69 -0
  1084. package/dist/domains/physics/stress-strain/runtime.mjs +5 -0
  1085. package/dist/domains/physics/string-reflection/manifest.mjs +55 -0
  1086. package/dist/domains/physics/string-reflection/runtime.mjs +5 -0
  1087. package/dist/domains/physics/temperature-scales/manifest.mjs +57 -0
  1088. package/dist/domains/physics/temperature-scales/runtime.mjs +5 -0
  1089. package/dist/domains/physics/terminal-velocity/manifest.mjs +53 -0
  1090. package/dist/domains/physics/terminal-velocity/runtime.mjs +5 -0
  1091. package/dist/domains/physics/thermal-expansion/manifest.mjs +56 -0
  1092. package/dist/domains/physics/thermal-expansion/runtime.mjs +5 -0
  1093. package/dist/domains/physics/uncertainty-wave-packet/activity.mjs +3 -0
  1094. package/dist/domains/physics/uncertainty-wave-packet/manifest.mjs +58 -0
  1095. package/dist/domains/physics/uncertainty-wave-packet/runtime.mjs +3 -0
  1096. package/dist/domains/physics/vector-board/manifest.mjs +62 -0
  1097. package/dist/domains/physics/vector-board/runtime.mjs +27 -0
  1098. package/dist/domains/physics/vector-types/manifest.mjs +51 -0
  1099. package/dist/domains/physics/vector-types/runtime.mjs +5 -0
  1100. package/dist/domains/physics/venturi/manifest.mjs +56 -0
  1101. package/dist/domains/physics/venturi/runtime.mjs +12 -0
  1102. package/dist/domains/physics/water-density/manifest.mjs +53 -0
  1103. package/dist/domains/physics/water-density/runtime.mjs +5 -0
  1104. package/dist/domains/physics/wave-lab/manifest.mjs +60 -0
  1105. package/dist/domains/physics/wave-lab/runtime.mjs +5 -0
  1106. package/dist/domains/physics/work-energy/manifest.mjs +54 -0
  1107. package/dist/domains/physics/work-energy/runtime.mjs +5 -0
  1108. package/dist/domains/physics/work-potential/manifest.mjs +63 -0
  1109. package/dist/domains/physics/work-potential/runtime.mjs +5 -0
  1110. package/dist/domains/physics/xray-attenuation/activity.mjs +3 -0
  1111. package/dist/domains/physics/xray-attenuation/manifest.mjs +61 -0
  1112. package/dist/domains/physics/xray-attenuation/runtime.mjs +3 -0
  1113. package/dist/domains/physics/xray-tube-spectrum/activity.mjs +3 -0
  1114. package/dist/domains/physics/xray-tube-spectrum/manifest.mjs +61 -0
  1115. package/dist/domains/physics/xray-tube-spectrum/runtime.mjs +3 -0
  1116. package/dist/domains/render-map.mjs +576 -0
  1117. package/dist/domains/render.d.mts +9 -0
  1118. package/dist/domains/render.mjs +23 -0
  1119. package/dist/domains/statistics/center-spread/manifest.mjs +60 -0
  1120. package/dist/domains/statistics/center-spread/runtime.mjs +5 -0
  1121. package/dist/domains/statistics/frequency-density/manifest.mjs +64 -0
  1122. package/dist/domains/statistics/frequency-density/runtime.mjs +12 -0
  1123. package/dist/domains/statistics/galton/manifest.mjs +50 -0
  1124. package/dist/domains/statistics/galton/runtime.mjs +5 -0
  1125. package/dist/domains/statistics/histogram/manifest.mjs +58 -0
  1126. package/dist/domains/statistics/histogram/runtime.mjs +5 -0
  1127. package/dist/domains/statistics/normal/manifest.mjs +56 -0
  1128. package/dist/domains/statistics/normal/runtime.mjs +5 -0
  1129. package/dist/domains/statistics/ogive/manifest.mjs +62 -0
  1130. package/dist/domains/statistics/ogive/runtime.mjs +12 -0
  1131. package/dist/domains/statistics/sampling/manifest.mjs +61 -0
  1132. package/dist/domains/statistics/sampling/runtime.mjs +5 -0
  1133. package/dist/domains/statistics/series/manifest.mjs +55 -0
  1134. package/dist/domains/statistics/series/runtime.mjs +5 -0
  1135. package/dist/domains/statistics/z-table/manifest.mjs +51 -0
  1136. package/dist/domains/statistics/z-table/runtime.mjs +5 -0
  1137. package/dist/exam/exam-question/core.d.mts +90 -0
  1138. package/dist/exam/exam-question/core.mjs +103 -0
  1139. package/dist/exam/exam-question/default-question.d.mts +18 -0
  1140. package/dist/exam/exam-question/default-question.mjs +41 -0
  1141. package/dist/exam/exam-question/index.d.mts +3 -0
  1142. package/dist/exam/exam-question/preset.d.mts +20 -0
  1143. package/dist/exam/exam-question/preset.mjs +198 -0
  1144. package/dist/exam/index.d.mts +4 -0
  1145. package/dist/exam/index.mjs +5 -0
  1146. package/dist/geography/cycle-lab/preset.mjs +231 -109
  1147. package/dist/geography/cycles.d.mts +3 -3
  1148. package/dist/geography/cycles.mjs +3 -3
  1149. package/dist/geometry/board/preset.d.mts +13 -0
  1150. package/dist/geometry/board/preset.mjs +67 -27
  1151. package/dist/geometry/builder.mjs +23 -13
  1152. package/dist/ict/number-systems/base-odometer.d.mts +1 -2
  1153. package/dist/ict/number-systems/base-odometer.mjs +58 -86
  1154. package/dist/ict/number-systems/bit-grouper.d.mts +2 -3
  1155. package/dist/ict/number-systems/bit-grouper.mjs +67 -98
  1156. package/dist/ict/number-systems/place-value-dial.d.mts +2 -3
  1157. package/dist/ict/number-systems/place-value-dial.mjs +70 -85
  1158. package/dist/ict/number-systems/wheel.d.mts +3 -3
  1159. package/dist/ict/number-systems/wheel.mjs +16 -42
  1160. package/dist/index.d.mts +1 -1
  1161. package/dist/kit/activity-authoring.d.mts +117 -0
  1162. package/dist/kit/activity-authoring.mjs +56 -0
  1163. package/dist/kit/activity.d.mts +147 -0
  1164. package/dist/kit/activity.mjs +374 -0
  1165. package/dist/kit/annotate.mjs +29 -8
  1166. package/dist/kit/answer-check.d.mts +2 -2
  1167. package/dist/kit/answer-check.mjs +35 -7
  1168. package/dist/kit/ask.d.mts +19 -0
  1169. package/dist/kit/ask.mjs +46 -0
  1170. package/dist/kit/authored-activity-runtime.d.mts +92 -0
  1171. package/dist/kit/authored-activity-runtime.mjs +148 -0
  1172. package/dist/kit/authored-response.d.mts +21 -0
  1173. package/dist/kit/authored-response.mjs +200 -0
  1174. package/dist/kit/bar-strip.mjs +53 -0
  1175. package/dist/kit/calc.d.mts +33 -0
  1176. package/dist/kit/calc.mjs +27 -0
  1177. package/dist/kit/carrier-engine.mjs +151 -0
  1178. package/dist/kit/celebrate.d.mts +18 -0
  1179. package/dist/kit/celebrate.mjs +79 -0
  1180. package/dist/kit/clue-scene.d.mts +86 -0
  1181. package/dist/kit/clue-scene.mjs +348 -0
  1182. package/dist/kit/cluster.d.mts +30 -0
  1183. package/dist/kit/cluster.mjs +81 -0
  1184. package/dist/kit/controls.mjs +195 -25
  1185. package/dist/kit/coords.d.mts +117 -0
  1186. package/dist/kit/coords.mjs +219 -0
  1187. package/dist/kit/cycle.mjs +86 -5
  1188. package/dist/kit/data-scene.d.mts +27 -0
  1189. package/dist/kit/data-scene.mjs +212 -0
  1190. package/dist/kit/{diagram.mjs → diagram/annotations.mjs} +15 -57
  1191. package/dist/kit/diagram/circuit-box.mjs +75 -0
  1192. package/dist/kit/electronics/_shared.mjs +82 -0
  1193. package/dist/kit/electronics/basics.mjs +323 -0
  1194. package/dist/kit/electronics/icons.mjs +140 -0
  1195. package/dist/kit/electronics/meter.mjs +58 -0
  1196. package/dist/kit/electronics/semiconductor.mjs +195 -0
  1197. package/dist/kit/electronics/signals.mjs +155 -0
  1198. package/dist/kit/electronics/wire.mjs +94 -0
  1199. package/dist/kit/embed.mjs +38 -0
  1200. package/dist/kit/expr-analysis.d.mts +18 -6
  1201. package/dist/kit/expr-analysis.mjs +83 -28
  1202. package/dist/kit/figure/beam.d.mts +89 -0
  1203. package/dist/kit/figure/beam.mjs +138 -0
  1204. package/dist/kit/figure/body.d.mts +74 -0
  1205. package/dist/kit/figure/body.mjs +102 -0
  1206. package/dist/kit/figure/container.d.mts +88 -0
  1207. package/dist/kit/figure/container.mjs +193 -0
  1208. package/dist/kit/figure/figure.d.mts +62 -0
  1209. package/dist/kit/figure/figure.mjs +99 -0
  1210. package/dist/kit/figure/illustration.d.mts +28 -0
  1211. package/dist/kit/figure/illustration.mjs +31 -0
  1212. package/dist/kit/figure/index.d.mts +7 -0
  1213. package/dist/kit/figure/plot.d.mts +109 -0
  1214. package/dist/kit/figure/plot.mjs +207 -0
  1215. package/dist/kit/figure/text.d.mts +50 -0
  1216. package/dist/kit/figure/text.mjs +44 -0
  1217. package/dist/kit/finance-viz/apportion-bar.d.mts +33 -0
  1218. package/dist/kit/finance-viz/apportion-bar.mjs +99 -0
  1219. package/dist/kit/finance-viz/index.d.mts +4 -0
  1220. package/dist/kit/finance-viz/plot-chart.d.mts +52 -0
  1221. package/dist/kit/finance-viz/plot-chart.mjs +148 -0
  1222. package/dist/kit/finance-viz/stock-timeline.d.mts +33 -0
  1223. package/dist/kit/finance-viz/stock-timeline.mjs +102 -0
  1224. package/dist/kit/finance-viz/tradeoff-curve.d.mts +45 -0
  1225. package/dist/kit/finance-viz/tradeoff-curve.mjs +221 -0
  1226. package/dist/kit/frame.d.mts +38 -40
  1227. package/dist/kit/frame.mjs +148 -111
  1228. package/dist/kit/gameshow.mjs +2 -2
  1229. package/dist/kit/guide.d.mts +44 -0
  1230. package/dist/kit/guide.mjs +53 -0
  1231. package/dist/kit/index.d.mts +34 -2
  1232. package/dist/kit/index.mjs +34 -2
  1233. package/dist/kit/learning-sequence.d.mts +51 -0
  1234. package/dist/kit/learning-sequence.mjs +101 -0
  1235. package/dist/kit/logic-gates/_shared.mjs +11 -0
  1236. package/dist/kit/logic-gates/display.mjs +281 -0
  1237. package/dist/kit/{logic-gates.d.mts → logic-gates/gate.d.mts} +1 -1
  1238. package/dist/kit/logic-gates/gate.mjs +132 -0
  1239. package/dist/kit/networking/glyphs.mjs +157 -0
  1240. package/dist/kit/palette.mjs +24 -0
  1241. package/dist/kit/pedagogy.d.mts +13 -5
  1242. package/dist/kit/pedagogy.mjs +138 -111
  1243. package/dist/kit/play.d.mts +1 -1
  1244. package/dist/kit/play.mjs +7 -4
  1245. package/dist/kit/predict-gate.d.mts +25 -0
  1246. package/dist/kit/predict-gate.mjs +42 -0
  1247. package/dist/kit/predict.d.mts +55 -0
  1248. package/dist/kit/predict.mjs +146 -0
  1249. package/dist/kit/probability.d.mts +55 -0
  1250. package/dist/kit/probability.mjs +115 -1
  1251. package/dist/kit/proportion.mjs +52 -27
  1252. package/dist/kit/receipt.d.mts +29 -0
  1253. package/dist/kit/receipt.mjs +54 -0
  1254. package/dist/kit/rich.mjs +2 -2
  1255. package/dist/kit/rule.d.mts +91 -0
  1256. package/dist/kit/rule.mjs +170 -0
  1257. package/dist/kit/scale.mjs +7 -4
  1258. package/dist/kit/scene-library.d.mts +22 -0
  1259. package/dist/kit/scene-library.mjs +273 -0
  1260. package/dist/kit/scene-studio.d.mts +14 -0
  1261. package/dist/kit/scene-studio.mjs +277 -0
  1262. package/dist/kit/scenes.d.mts +31 -0
  1263. package/dist/kit/scenes.mjs +761 -0
  1264. package/dist/kit/slot-fill.d.mts +66 -0
  1265. package/dist/kit/slot-fill.mjs +222 -0
  1266. package/dist/kit/solve.d.mts +21 -0
  1267. package/dist/kit/solve.mjs +75 -0
  1268. package/dist/kit/space.mjs +5 -5
  1269. package/dist/kit/steps.d.mts +3 -0
  1270. package/dist/kit/steps.mjs +8 -8
  1271. package/dist/kit/thermal.mjs +22 -4
  1272. package/dist/kit/ticks.mjs +19 -0
  1273. package/dist/kit/vessel.d.mts +69 -0
  1274. package/dist/kit/vessel.mjs +210 -0
  1275. package/dist/lab-def/attrs.d.mts +31 -0
  1276. package/dist/lab-def/attrs.mjs +65 -0
  1277. package/dist/lab-def/define-lab.d.mts +107 -0
  1278. package/dist/lab-def/define-lab.mjs +15 -0
  1279. package/dist/lab-def/lab-authoring.mjs +39 -0
  1280. package/dist/lab-def/lab-runtime.mjs +134 -0
  1281. package/dist/lab-def/to-block.mjs +55 -0
  1282. package/dist/language/activity.d.mts +28 -0
  1283. package/dist/language/activity.mjs +60 -0
  1284. package/dist/language/agreement/preset.d.mts +11 -0
  1285. package/dist/language/agreement/preset.mjs +60 -31
  1286. package/dist/language/article-lens/preset.d.mts +8 -1
  1287. package/dist/language/article-lens/preset.mjs +57 -32
  1288. package/dist/language/cloze/index.d.mts +1 -0
  1289. package/dist/language/cloze/preset.d.mts +36 -0
  1290. package/dist/language/cloze/preset.mjs +128 -0
  1291. package/dist/language/deck.d.mts +3 -3
  1292. package/dist/language/deck.mjs +1 -1
  1293. package/dist/language/dictation/index.d.mts +1 -0
  1294. package/dist/language/dictation/preset.d.mts +21 -0
  1295. package/dist/language/dictation/preset.mjs +171 -0
  1296. package/dist/language/error-correct/index.d.mts +1 -0
  1297. package/dist/language/error-correct/preset.d.mts +29 -0
  1298. package/dist/language/error-correct/preset.mjs +134 -0
  1299. package/dist/language/icon.mjs +4 -10
  1300. package/dist/language/index.d.mts +8 -2
  1301. package/dist/language/index.mjs +8 -2
  1302. package/dist/language/listening/index.d.mts +1 -0
  1303. package/dist/language/listening/preset.d.mts +25 -0
  1304. package/dist/language/listening/preset.mjs +152 -0
  1305. package/dist/language/preposition-scene/preset.d.mts +13 -2
  1306. package/dist/language/preposition-scene/preset.mjs +82 -72
  1307. package/dist/language/reading/index.d.mts +1 -0
  1308. package/dist/language/reading/preset.d.mts +39 -0
  1309. package/dist/language/reading/preset.mjs +62 -0
  1310. package/dist/language/sentence-builder/preset.d.mts +9 -1
  1311. package/dist/language/sentence-builder/preset.mjs +38 -25
  1312. package/dist/language/transform/preset.d.mts +11 -3
  1313. package/dist/language/transform/preset.mjs +46 -27
  1314. package/dist/language/ui.d.mts +30 -4
  1315. package/dist/language/ui.mjs +52 -12
  1316. package/dist/language/word-match/preset.d.mts +5 -1
  1317. package/dist/language/word-match/preset.mjs +41 -23
  1318. package/dist/logic/ChipScene.d.mts +30 -0
  1319. package/dist/logic/ChipScene.mjs +313 -0
  1320. package/dist/logic/CounterScene.d.mts +19 -0
  1321. package/dist/logic/CounterScene.mjs +228 -0
  1322. package/dist/logic/DetectorScene.d.mts +22 -0
  1323. package/dist/logic/DetectorScene.mjs +233 -0
  1324. package/dist/logic/LatchScene.d.mts +21 -0
  1325. package/dist/logic/LatchScene.mjs +309 -0
  1326. package/dist/logic/LogicBuildLab.d.mts +22 -0
  1327. package/dist/logic/LogicBuildLab.mjs +125 -0
  1328. package/dist/logic/LogicEditScene.d.mts +37 -0
  1329. package/dist/logic/LogicEditScene.mjs +284 -0
  1330. package/dist/logic/LogicEditor.d.mts +20 -0
  1331. package/dist/logic/LogicEditor.mjs +351 -0
  1332. package/dist/logic/LogicScene.d.mts +32 -0
  1333. package/dist/logic/LogicScene.mjs +333 -0
  1334. package/dist/logic/SequentialLogicLab.d.mts +23 -0
  1335. package/dist/logic/SequentialLogicLab.mjs +179 -0
  1336. package/dist/logic/ShiftScene.d.mts +17 -0
  1337. package/dist/logic/ShiftScene.mjs +170 -0
  1338. package/dist/logic/TimingScene.d.mts +29 -0
  1339. package/dist/logic/TimingScene.mjs +167 -0
  1340. package/dist/logic/TwosScene.d.mts +33 -0
  1341. package/dist/logic/TwosScene.mjs +269 -0
  1342. package/dist/logic/WaveScene.d.mts +43 -0
  1343. package/dist/logic/WaveScene.mjs +124 -0
  1344. package/dist/logic/contract.d.mts +92 -0
  1345. package/dist/logic/counter.d.mts +27 -0
  1346. package/dist/logic/counter.mjs +90 -0
  1347. package/dist/logic/detector.d.mts +72 -0
  1348. package/dist/logic/detector.mjs +93 -0
  1349. package/dist/logic/display.d.mts +24 -0
  1350. package/dist/logic/display.mjs +154 -0
  1351. package/dist/logic/edit-ops.d.mts +44 -0
  1352. package/dist/logic/edit-ops.mjs +177 -0
  1353. package/dist/logic/editor/index.d.mts +6 -0
  1354. package/dist/logic/editor/index.mjs +8 -0
  1355. package/dist/logic/evaluate.d.mts +18 -0
  1356. package/dist/logic/evaluate.mjs +170 -0
  1357. package/dist/logic/gates.d.mts +10 -0
  1358. package/dist/logic/gates.mjs +73 -0
  1359. package/dist/logic/ic.d.mts +62 -0
  1360. package/dist/logic/ic.mjs +245 -0
  1361. package/dist/logic/index.d.mts +33 -0
  1362. package/dist/logic/index.mjs +32 -0
  1363. package/dist/logic/lab.d.mts +32 -0
  1364. package/dist/logic/lab.mjs +138 -0
  1365. package/dist/logic/latch.d.mts +70 -0
  1366. package/dist/logic/latch.mjs +68 -0
  1367. package/dist/logic/netlist.d.mts +27 -0
  1368. package/dist/logic/netlist.mjs +29 -0
  1369. package/dist/logic/presets.d.mts +12 -0
  1370. package/dist/logic/presets.mjs +241 -0
  1371. package/dist/logic/registry.d.mts +9 -0
  1372. package/dist/logic/registry.mjs +15 -0
  1373. package/dist/logic/runtime/index.d.mts +14 -0
  1374. package/dist/logic/runtime/index.mjs +15 -0
  1375. package/dist/logic/sequential-presets.d.mts +147 -0
  1376. package/dist/logic/sequential-presets.mjs +179 -0
  1377. package/dist/logic/sequential.d.mts +124 -0
  1378. package/dist/logic/sequential.mjs +186 -0
  1379. package/dist/logic/shift.d.mts +33 -0
  1380. package/dist/logic/shift.mjs +76 -0
  1381. package/dist/logic/timing.d.mts +57 -0
  1382. package/dist/logic/timing.mjs +147 -0
  1383. package/dist/logic/twos.d.mts +65 -0
  1384. package/dist/logic/twos.mjs +95 -0
  1385. package/dist/math/activity.mjs +90 -0
  1386. package/dist/math/area-model/asset.mjs +24 -14
  1387. package/dist/math/area-model/preset.mjs +156 -76
  1388. package/dist/math/area-rearrange/core.d.mts +42 -0
  1389. package/dist/math/area-rearrange/core.mjs +188 -0
  1390. package/dist/math/area-rearrange/index.d.mts +2 -0
  1391. package/dist/math/area-rearrange/preset.d.mts +28 -0
  1392. package/dist/math/area-rearrange/preset.mjs +227 -0
  1393. package/dist/math/balance-algebra/preset.mjs +52 -15
  1394. package/dist/math/bearings/core.d.mts +76 -0
  1395. package/dist/math/bearings/core.mjs +85 -0
  1396. package/dist/math/bearings/index.d.mts +2 -0
  1397. package/dist/math/bearings/preset.d.mts +29 -0
  1398. package/dist/math/bearings/preset.mjs +336 -0
  1399. package/dist/math/broken-tree/index.d.mts +1 -0
  1400. package/dist/math/broken-tree/preset.d.mts +26 -0
  1401. package/dist/math/broken-tree/preset.mjs +470 -0
  1402. package/dist/math/calculus/core.d.mts +30 -0
  1403. package/dist/math/calculus/core.mjs +101 -0
  1404. package/dist/math/calculus/index.d.mts +2 -0
  1405. package/dist/math/calculus/index.mjs +3 -0
  1406. package/dist/math/circle/index.d.mts +1 -0
  1407. package/dist/math/circle/preset.d.mts +44 -0
  1408. package/dist/math/circle/preset.mjs +216 -0
  1409. package/dist/math/complex/core.d.mts +93 -0
  1410. package/dist/math/complex/core.mjs +239 -0
  1411. package/dist/math/complex/index.d.mts +3 -0
  1412. package/dist/math/complex/preset.d.mts +31 -0
  1413. package/dist/math/complex/preset.mjs +391 -0
  1414. package/dist/math/complex/rule-figures.mjs +328 -0
  1415. package/dist/math/complex/rules.d.mts +16 -0
  1416. package/dist/math/complex/rules.mjs +278 -0
  1417. package/dist/math/conic/index.d.mts +1 -0
  1418. package/dist/math/conic/preset.d.mts +30 -0
  1419. package/dist/math/conic/preset.mjs +384 -0
  1420. package/dist/math/derivation.d.mts +16 -1
  1421. package/dist/math/derivation.mjs +121 -56
  1422. package/dist/math/derivative-explorer/index.d.mts +2 -1
  1423. package/dist/math/derivative-explorer/index.mjs +3 -0
  1424. package/dist/math/derivative-explorer/preset.mjs +111 -123
  1425. package/dist/math/differential-equation/index.d.mts +2 -0
  1426. package/dist/math/differential-equation/index.mjs +3 -0
  1427. package/dist/math/differential-equation/preset.d.mts +25 -0
  1428. package/dist/math/differential-equation/preset.mjs +274 -0
  1429. package/dist/math/division-workbench/core.d.mts +26 -0
  1430. package/dist/math/division-workbench/core.mjs +53 -0
  1431. package/dist/math/division-workbench/index.d.mts +2 -0
  1432. package/dist/math/division-workbench/preset.d.mts +24 -0
  1433. package/dist/math/division-workbench/preset.mjs +186 -0
  1434. package/dist/math/division-workbench/visuals.mjs +357 -0
  1435. package/dist/math/domain-range/index.d.mts +1 -0
  1436. package/dist/math/domain-range/preset.d.mts +33 -0
  1437. package/dist/math/domain-range/preset.mjs +339 -0
  1438. package/dist/math/expression-order/core.d.mts +23 -0
  1439. package/dist/math/expression-order/core.mjs +130 -0
  1440. package/dist/math/expression-order/index.d.mts +2 -0
  1441. package/dist/math/expression-order/preset.d.mts +35 -0
  1442. package/dist/math/expression-order/preset.mjs +140 -0
  1443. package/dist/math/fraction-bar/index.d.mts +1 -0
  1444. package/dist/math/fraction-bar/preset.d.mts +27 -0
  1445. package/dist/math/fraction-bar/preset.mjs +231 -0
  1446. package/dist/math/function-machine/preset.mjs +36 -17
  1447. package/dist/math/fundamental-theorem/index.d.mts +2 -0
  1448. package/dist/math/fundamental-theorem/index.mjs +3 -0
  1449. package/dist/math/fundamental-theorem/preset.d.mts +21 -0
  1450. package/dist/math/fundamental-theorem/preset.mjs +206 -0
  1451. package/dist/math/geometry-foundations/activity.d.mts +1 -0
  1452. package/dist/math/geometry-foundations/activity.mjs +74 -0
  1453. package/dist/math/geometry-foundations/core.d.mts +22 -0
  1454. package/dist/math/geometry-foundations/core.mjs +62 -0
  1455. package/dist/math/geometry-foundations/index.d.mts +2 -0
  1456. package/dist/math/geometry-foundations/preset.d.mts +29 -0
  1457. package/dist/math/geometry-foundations/preset.mjs +310 -0
  1458. package/dist/math/gradient-descent.mjs +98 -117
  1459. package/dist/math/grapher/preset.d.mts +3 -1
  1460. package/dist/math/grapher/preset.mjs +207 -193
  1461. package/dist/math/harmonic-form/preset.mjs +106 -100
  1462. package/dist/math/identity-proof/core.d.mts +86 -0
  1463. package/dist/math/identity-proof/core.mjs +70 -0
  1464. package/dist/math/identity-proof/default-proof.d.mts +14 -0
  1465. package/dist/math/identity-proof/default-proof.mjs +56 -0
  1466. package/dist/math/identity-proof/index.d.mts +3 -0
  1467. package/dist/math/identity-proof/preset.d.mts +20 -0
  1468. package/dist/math/identity-proof/preset.mjs +147 -0
  1469. package/dist/math/index.d.mts +70 -3
  1470. package/dist/math/index.mjs +69 -2
  1471. package/dist/math/integral-explorer/index.d.mts +2 -1
  1472. package/dist/math/integral-explorer/index.mjs +3 -0
  1473. package/dist/math/integral-explorer/preset.mjs +123 -128
  1474. package/dist/math/interactive/preset.mjs +70 -35
  1475. package/dist/math/iteration/core.d.mts +87 -0
  1476. package/dist/math/iteration/core.mjs +135 -0
  1477. package/dist/math/iteration/index.d.mts +2 -0
  1478. package/dist/math/iteration/preset.d.mts +38 -0
  1479. package/dist/math/iteration/preset.mjs +242 -0
  1480. package/dist/math/limit-explorer/index.d.mts +2 -1
  1481. package/dist/math/limit-explorer/index.mjs +3 -0
  1482. package/dist/math/limit-explorer/preset.mjs +71 -93
  1483. package/dist/math/linear-model/index.d.mts +1 -0
  1484. package/dist/math/linear-model/preset.d.mts +53 -0
  1485. package/dist/math/linear-model/preset.mjs +210 -0
  1486. package/dist/math/linear-system/preset.mjs +48 -18
  1487. package/dist/math/lines-in-space/core.d.mts +71 -0
  1488. package/dist/math/lines-in-space/core.mjs +185 -0
  1489. package/dist/math/lines-in-space/index.d.mts +2 -0
  1490. package/dist/math/lines-in-space/preset.d.mts +49 -0
  1491. package/dist/math/lines-in-space/preset.mjs +862 -0
  1492. package/dist/math/measurement/activity.d.mts +1 -0
  1493. package/dist/math/measurement/activity.mjs +74 -0
  1494. package/dist/math/measurement/core.d.mts +27 -0
  1495. package/dist/math/measurement/core.mjs +62 -0
  1496. package/dist/math/measurement/index.d.mts +2 -0
  1497. package/dist/math/measurement/preset.d.mts +39 -0
  1498. package/dist/math/measurement/preset.mjs +666 -0
  1499. package/dist/math/mystery-bucket/preset.mjs +38 -15
  1500. package/dist/math/newton-method/index.d.mts +2 -0
  1501. package/dist/math/newton-method/index.mjs +3 -0
  1502. package/dist/math/newton-method/preset.d.mts +21 -0
  1503. package/dist/math/newton-method/preset.mjs +277 -0
  1504. package/dist/math/number-line/preset.mjs +51 -20
  1505. package/dist/math/number-structure/core.d.mts +42 -0
  1506. package/dist/math/number-structure/core.mjs +130 -0
  1507. package/dist/math/number-structure/index.d.mts +2 -0
  1508. package/dist/math/number-structure/preset.d.mts +28 -0
  1509. package/dist/math/number-structure/preset.mjs +237 -0
  1510. package/dist/math/number-structure/visuals.mjs +485 -0
  1511. package/dist/math/oblique-triangle/core.d.mts +99 -0
  1512. package/dist/math/oblique-triangle/core.mjs +194 -0
  1513. package/dist/math/oblique-triangle/index.d.mts +2 -0
  1514. package/dist/math/oblique-triangle/preset.d.mts +22 -0
  1515. package/dist/math/oblique-triangle/preset.mjs +423 -0
  1516. package/dist/math/ode/core.d.mts +15 -0
  1517. package/dist/math/ode/core.mjs +73 -0
  1518. package/dist/math/ode/index.d.mts +3 -0
  1519. package/dist/math/ode/index.mjs +4 -0
  1520. package/dist/math/ode/system.d.mts +23 -0
  1521. package/dist/math/ode/system.mjs +73 -0
  1522. package/dist/math/optimization/core.d.mts +21 -0
  1523. package/dist/math/optimization/core.mjs +46 -0
  1524. package/dist/math/optimization/index.d.mts +2 -0
  1525. package/dist/math/optimization/index.mjs +3 -0
  1526. package/dist/math/parabola/preset.mjs +57 -17
  1527. package/dist/math/partial-fractions/core.d.mts +69 -0
  1528. package/dist/math/partial-fractions/core.mjs +221 -0
  1529. package/dist/math/partial-fractions/index.d.mts +2 -0
  1530. package/dist/math/partial-fractions/preset.d.mts +44 -0
  1531. package/dist/math/partial-fractions/preset.mjs +267 -0
  1532. package/dist/math/pattern/preset.mjs +75 -98
  1533. package/dist/math/percent-bar/index.d.mts +1 -0
  1534. package/dist/math/percent-bar/preset.d.mts +37 -0
  1535. package/dist/math/percent-bar/preset.mjs +311 -0
  1536. package/dist/math/phase-portrait/index.d.mts +2 -0
  1537. package/dist/math/phase-portrait/index.mjs +3 -0
  1538. package/dist/math/phase-portrait/preset.d.mts +27 -0
  1539. package/dist/math/phase-portrait/preset.mjs +265 -0
  1540. package/dist/math/poly/core.d.mts +50 -0
  1541. package/dist/math/poly/core.mjs +268 -0
  1542. package/dist/math/poly/index.d.mts +3 -0
  1543. package/dist/math/poly/preset.d.mts +23 -0
  1544. package/dist/math/poly/preset.mjs +123 -0
  1545. package/dist/math/poly/steps.d.mts +10 -0
  1546. package/dist/math/poly/steps.mjs +99 -0
  1547. package/dist/math/radian-wrap/core.d.mts +38 -0
  1548. package/dist/math/radian-wrap/core.mjs +58 -0
  1549. package/dist/math/radian-wrap/index.d.mts +2 -0
  1550. package/dist/math/radian-wrap/preset.d.mts +19 -0
  1551. package/dist/math/radian-wrap/preset.mjs +228 -0
  1552. package/dist/math/rate-machine/index.d.mts +1 -0
  1553. package/dist/math/rate-machine/preset.d.mts +35 -0
  1554. package/dist/math/rate-machine/preset.mjs +332 -0
  1555. package/dist/math/ratio-share/index.d.mts +1 -0
  1556. package/dist/math/ratio-share/preset.d.mts +24 -0
  1557. package/dist/math/ratio-share/preset.mjs +259 -0
  1558. package/dist/math/receipt/index.d.mts +1 -0
  1559. package/dist/math/receipt/preset.d.mts +22 -0
  1560. package/dist/math/receipt/preset.mjs +141 -0
  1561. package/dist/math/root-finding/core.d.mts +18 -0
  1562. package/dist/math/root-finding/core.mjs +75 -0
  1563. package/dist/math/root-finding/index.d.mts +2 -0
  1564. package/dist/math/root-finding/index.mjs +3 -0
  1565. package/dist/math/sequence-predict/index.d.mts +1 -0
  1566. package/dist/math/sequence-predict/preset.d.mts +34 -0
  1567. package/dist/math/sequence-predict/preset.mjs +132 -0
  1568. package/dist/math/slide-rule/core.d.mts +39 -0
  1569. package/dist/math/slide-rule/core.mjs +104 -0
  1570. package/dist/math/slide-rule/index.d.mts +2 -0
  1571. package/dist/math/slide-rule/preset.d.mts +24 -0
  1572. package/dist/math/slide-rule/preset.mjs +330 -0
  1573. package/dist/math/solid-net/core.d.mts +48 -0
  1574. package/dist/math/solid-net/core.mjs +177 -0
  1575. package/dist/math/solid-net/index.d.mts +2 -0
  1576. package/dist/math/solid-net/preset.d.mts +28 -0
  1577. package/dist/math/solid-net/preset.mjs +433 -0
  1578. package/dist/math/straight-line/index.d.mts +1 -0
  1579. package/dist/math/straight-line/preset.d.mts +37 -0
  1580. package/dist/math/straight-line/preset.mjs +420 -0
  1581. package/dist/math/system-solve/index.d.mts +1 -0
  1582. package/dist/math/system-solve/preset.d.mts +21 -0
  1583. package/dist/math/system-solve/preset.mjs +209 -0
  1584. package/dist/math/taylor/core.d.mts +8 -0
  1585. package/dist/math/taylor/core.mjs +31 -0
  1586. package/dist/math/taylor/index.d.mts +2 -0
  1587. package/dist/math/taylor/index.mjs +3 -0
  1588. package/dist/math/taylor-series/index.d.mts +2 -0
  1589. package/dist/math/taylor-series/index.mjs +3 -0
  1590. package/dist/math/taylor-series/preset.d.mts +23 -0
  1591. package/dist/math/taylor-series/preset.mjs +243 -0
  1592. package/dist/math/transform/index.d.mts +1 -0
  1593. package/dist/math/transform/preset.d.mts +41 -0
  1594. package/dist/math/transform/preset.mjs +343 -0
  1595. package/dist/math/triangle-trig/preset.d.mts +10 -0
  1596. package/dist/math/triangle-trig/preset.mjs +107 -62
  1597. package/dist/math/trig/core.d.mts +37 -0
  1598. package/dist/math/trig/core.mjs +150 -0
  1599. package/dist/math/trig/diagrams.d.mts +1 -0
  1600. package/dist/math/trig/diagrams.mjs +347 -0
  1601. package/dist/math/trig/index.d.mts +3 -0
  1602. package/dist/math/trig/preset.d.mts +25 -0
  1603. package/dist/math/trig/preset.mjs +290 -0
  1604. package/dist/math/trig/rules.d.mts +6 -0
  1605. package/dist/math/trig/rules.mjs +220 -0
  1606. package/dist/math/trig-explorer.mjs +46 -21
  1607. package/dist/ml/index.d.mts +5 -5
  1608. package/dist/ml/index.mjs +5 -5
  1609. package/dist/networking/EncapScene.mjs +227 -0
  1610. package/dist/networking/MediaScene.mjs +217 -0
  1611. package/dist/networking/NetworkScene.d.mts +22 -0
  1612. package/dist/networking/NetworkScene.mjs +54 -0
  1613. package/dist/networking/PacketInspector.d.mts +11 -0
  1614. package/dist/networking/PacketInspector.mjs +32 -0
  1615. package/dist/networking/PlugScene.mjs +192 -0
  1616. package/dist/networking/SubnetScene.mjs +124 -0
  1617. package/dist/networking/SwitchScene.mjs +339 -0
  1618. package/dist/networking/VlanScene.mjs +203 -0
  1619. package/dist/networking/VpnScene.mjs +193 -0
  1620. package/dist/networking/contract.d.mts +136 -0
  1621. package/dist/networking/encapsulation.mjs +130 -0
  1622. package/dist/networking/index.d.mts +8 -0
  1623. package/dist/networking/index.mjs +8 -0
  1624. package/dist/networking/ip.d.mts +12 -0
  1625. package/dist/networking/ip.mjs +30 -0
  1626. package/dist/networking/media.mjs +183 -0
  1627. package/dist/networking/presets.d.mts +7 -0
  1628. package/dist/networking/presets.mjs +302 -0
  1629. package/dist/networking/simulation.d.mts +8 -0
  1630. package/dist/networking/simulation.mjs +148 -0
  1631. package/dist/networking/subnet.mjs +84 -0
  1632. package/dist/networking/switch.mjs +155 -0
  1633. package/dist/networking/vlan.mjs +100 -0
  1634. package/dist/networking/vpn.mjs +118 -0
  1635. package/dist/pathways/biology.d.mts +6 -0
  1636. package/dist/pathways/biology.mjs +60 -0
  1637. package/dist/pathways/calculus.d.mts +6 -0
  1638. package/dist/pathways/calculus.mjs +123 -0
  1639. package/dist/pathways/chemistry.d.mts +8 -0
  1640. package/dist/pathways/chemistry.mjs +87 -0
  1641. package/dist/pathways/digital-logic.d.mts +21 -0
  1642. package/dist/pathways/digital-logic.mjs +408 -0
  1643. package/dist/pathways/electronic-circuits.d.mts +15 -0
  1644. package/dist/pathways/electronic-circuits.mjs +136 -0
  1645. package/dist/pathways/electronic-devices.d.mts +18 -0
  1646. package/dist/pathways/electronic-devices.mjs +152 -0
  1647. package/dist/pathways/index.d.mts +10 -0
  1648. package/dist/pathways/index.mjs +11 -0
  1649. package/dist/pathways/quantum.d.mts +9 -0
  1650. package/dist/pathways/quantum.mjs +56 -0
  1651. package/dist/pathways/relativity.d.mts +6 -0
  1652. package/dist/pathways/relativity.mjs +63 -0
  1653. package/dist/pathways/types.d.mts +58 -0
  1654. package/dist/pathways/types.mjs +21 -0
  1655. package/dist/physics/alternating-current/core.d.mts +162 -0
  1656. package/dist/physics/alternating-current/core.mjs +155 -0
  1657. package/dist/physics/alternating-current/index.d.mts +2 -0
  1658. package/dist/physics/alternating-current/preset.d.mts +38 -0
  1659. package/dist/physics/alternating-current/preset.mjs +1068 -0
  1660. package/dist/physics/atwood/preset.d.mts +4 -1
  1661. package/dist/physics/atwood/preset.mjs +384 -157
  1662. package/dist/physics/bullet-walls/preset.d.mts +5 -2
  1663. package/dist/physics/bullet-walls/preset.mjs +211 -251
  1664. package/dist/physics/carnot/preset.d.mts +4 -1
  1665. package/dist/physics/carnot/preset.mjs +344 -335
  1666. package/dist/physics/circular-motion/preset.d.mts +4 -1
  1667. package/dist/physics/circular-motion/preset.mjs +211 -143
  1668. package/dist/physics/collision-track/preset.d.mts +4 -1
  1669. package/dist/physics/collision-track/preset.mjs +303 -182
  1670. package/dist/physics/couple-torque/index.d.mts +1 -0
  1671. package/dist/physics/couple-torque/preset.d.mts +30 -0
  1672. package/dist/physics/couple-torque/preset.mjs +614 -0
  1673. package/dist/physics/efficiency/preset.d.mts +9 -3
  1674. package/dist/physics/efficiency/preset.mjs +223 -160
  1675. package/dist/physics/electric-field/preset.d.mts +4 -1
  1676. package/dist/physics/electric-field/preset.mjs +181 -158
  1677. package/dist/physics/electric-flux/index.d.mts +1 -0
  1678. package/dist/physics/electric-flux/preset.d.mts +32 -0
  1679. package/dist/physics/electric-flux/preset.mjs +313 -0
  1680. package/dist/physics/energy-skate/preset.d.mts +4 -1
  1681. package/dist/physics/energy-skate/preset.mjs +171 -109
  1682. package/dist/physics/entropy/preset.d.mts +4 -1
  1683. package/dist/physics/entropy/preset.mjs +144 -153
  1684. package/dist/physics/expansion/preset.d.mts +4 -1
  1685. package/dist/physics/expansion/preset.mjs +195 -163
  1686. package/dist/physics/exponential/asset.mjs +4 -3
  1687. package/dist/physics/exponential/preset.mjs +108 -42
  1688. package/dist/physics/fields/activity.d.mts +1 -0
  1689. package/dist/physics/fields/activity.mjs +86 -0
  1690. package/dist/physics/fields/index.d.mts +3 -0
  1691. package/dist/physics/fields/spatial-activity.d.mts +6 -0
  1692. package/dist/physics/fields/spatial-activity.mjs +89 -0
  1693. package/dist/physics/fields/spatial-core.d.mts +16 -0
  1694. package/dist/physics/fields/spatial-core.mjs +72 -0
  1695. package/dist/physics/fields/spatial-preset.d.mts +42 -0
  1696. package/dist/physics/fields/spatial-preset.mjs +234 -0
  1697. package/dist/physics/fluid-pressure/index.d.mts +1 -0
  1698. package/dist/physics/fluid-pressure/preset.d.mts +56 -0
  1699. package/dist/physics/fluid-pressure/preset.mjs +727 -0
  1700. package/dist/physics/force-pairs/index.d.mts +1 -0
  1701. package/dist/physics/force-pairs/preset.d.mts +31 -0
  1702. package/dist/physics/force-pairs/preset.mjs +833 -0
  1703. package/dist/physics/gas-process/preset.d.mts +4 -1
  1704. package/dist/physics/gas-process/preset.mjs +132 -146
  1705. package/dist/physics/gauss-law/index.d.mts +1 -0
  1706. package/dist/physics/gauss-law/preset.d.mts +23 -0
  1707. package/dist/physics/gauss-law/preset.mjs +330 -0
  1708. package/dist/physics/gravitation/preset.d.mts +4 -1
  1709. package/dist/physics/gravitation/preset.mjs +326 -234
  1710. package/dist/physics/gravity-drop.d.mts +12 -1
  1711. package/dist/physics/gravity-drop.mjs +194 -31
  1712. package/dist/physics/heat-transfer/preset.d.mts +5 -2
  1713. package/dist/physics/heat-transfer/preset.mjs +474 -411
  1714. package/dist/physics/impulse/preset.d.mts +4 -1
  1715. package/dist/physics/impulse/preset.mjs +494 -337
  1716. package/dist/physics/index.d.mts +43 -4
  1717. package/dist/physics/index.mjs +41 -2
  1718. package/dist/physics/intercept/animals.mjs +194 -0
  1719. package/dist/physics/intercept/core.d.mts +22 -0
  1720. package/dist/physics/intercept/core.mjs +147 -0
  1721. package/dist/physics/intercept/index.d.mts +1 -0
  1722. package/dist/physics/intercept/preset.d.mts +41 -0
  1723. package/dist/physics/intercept/preset.mjs +450 -0
  1724. package/dist/physics/kepler/preset.d.mts +4 -1
  1725. package/dist/physics/kepler/preset.mjs +298 -134
  1726. package/dist/physics/lever/preset.d.mts +10 -1
  1727. package/dist/physics/lever/preset.mjs +48 -29
  1728. package/dist/physics/linear-pursuit/core.d.mts +16 -0
  1729. package/dist/physics/linear-pursuit/core.mjs +34 -0
  1730. package/dist/physics/linear-pursuit/index.d.mts +3 -0
  1731. package/dist/physics/linear-pursuit/index.mjs +4 -0
  1732. package/dist/physics/linear-pursuit/preset.d.mts +28 -0
  1733. package/dist/physics/linear-pursuit/preset.mjs +276 -0
  1734. package/dist/physics/linear-pursuit/vehicle.mjs +67 -0
  1735. package/dist/physics/lorentz/core.d.mts +12 -0
  1736. package/dist/physics/lorentz/core.mjs +31 -0
  1737. package/dist/physics/lorentz/index.d.mts +2 -1
  1738. package/dist/physics/lorentz/preset.d.mts +4 -1
  1739. package/dist/physics/lorentz/preset.mjs +149 -198
  1740. package/dist/physics/magnetism/preset.d.mts +4 -1
  1741. package/dist/physics/magnetism/preset.mjs +138 -107
  1742. package/dist/physics/mechanics/activity-plan.mjs +53 -0
  1743. package/dist/physics/mechanics/activity.mjs +32 -0
  1744. package/dist/physics/mechanics/core.d.mts +82 -0
  1745. package/dist/physics/mechanics/core.mjs +155 -0
  1746. package/dist/physics/mechanics/glyphs.mjs +250 -0
  1747. package/dist/physics/mechanics/presentation.mjs +277 -0
  1748. package/dist/physics/modern/constants.d.mts +5 -0
  1749. package/dist/physics/modern/constants.mjs +6 -0
  1750. package/dist/physics/modern/imaging/activity.d.mts +6 -0
  1751. package/dist/physics/modern/imaging/activity.mjs +79 -0
  1752. package/dist/physics/modern/imaging/index.d.mts +7 -0
  1753. package/dist/physics/modern/imaging/preset.d.mts +24 -0
  1754. package/dist/physics/modern/imaging/preset.mjs +126 -0
  1755. package/dist/physics/modern/imaging/spectrum-activity.d.mts +6 -0
  1756. package/dist/physics/modern/imaging/spectrum-activity.mjs +79 -0
  1757. package/dist/physics/modern/imaging/spectrum-preset.d.mts +25 -0
  1758. package/dist/physics/modern/imaging/spectrum-preset.mjs +132 -0
  1759. package/dist/physics/modern/imaging/spectrum-scene.d.mts +13 -0
  1760. package/dist/physics/modern/imaging/spectrum-scene.mjs +277 -0
  1761. package/dist/physics/modern/imaging/xray-core.d.mts +55 -0
  1762. package/dist/physics/modern/imaging/xray-core.mjs +90 -0
  1763. package/dist/physics/modern/imaging/xray-scene.mjs +224 -0
  1764. package/dist/physics/modern/imaging/xray-spectrum-core.d.mts +51 -0
  1765. package/dist/physics/modern/imaging/xray-spectrum-core.mjs +94 -0
  1766. package/dist/physics/modern/index.d.mts +49 -0
  1767. package/dist/physics/modern/index.mjs +50 -0
  1768. package/dist/physics/modern/nuclear/activity.d.mts +6 -0
  1769. package/dist/physics/modern/nuclear/activity.mjs +74 -0
  1770. package/dist/physics/modern/nuclear/core.d.mts +75 -0
  1771. package/dist/physics/modern/nuclear/core.mjs +69 -0
  1772. package/dist/physics/modern/nuclear/fission-activity.d.mts +6 -0
  1773. package/dist/physics/modern/nuclear/fission-activity.mjs +96 -0
  1774. package/dist/physics/modern/nuclear/fission-core.d.mts +49 -0
  1775. package/dist/physics/modern/nuclear/fission-core.mjs +67 -0
  1776. package/dist/physics/modern/nuclear/fission-preset.d.mts +24 -0
  1777. package/dist/physics/modern/nuclear/fission-preset.mjs +132 -0
  1778. package/dist/physics/modern/nuclear/fission-scene.mjs +295 -0
  1779. package/dist/physics/modern/nuclear/index.d.mts +6 -0
  1780. package/dist/physics/modern/nuclear/preset.d.mts +21 -0
  1781. package/dist/physics/modern/nuclear/preset.mjs +176 -0
  1782. package/dist/physics/modern/quantum/activity.d.mts +6 -0
  1783. package/dist/physics/modern/quantum/activity.mjs +74 -0
  1784. package/dist/physics/modern/quantum/bloch-activity.d.mts +6 -0
  1785. package/dist/physics/modern/quantum/bloch-activity.mjs +74 -0
  1786. package/dist/physics/modern/quantum/bloch-preset.d.mts +31 -0
  1787. package/dist/physics/modern/quantum/bloch-preset.mjs +232 -0
  1788. package/dist/physics/modern/quantum/double-slit-activity.d.mts +6 -0
  1789. package/dist/physics/modern/quantum/double-slit-activity.mjs +74 -0
  1790. package/dist/physics/modern/quantum/double-slit-core.d.mts +17 -0
  1791. package/dist/physics/modern/quantum/double-slit-core.mjs +26 -0
  1792. package/dist/physics/modern/quantum/double-slit-preset.d.mts +24 -0
  1793. package/dist/physics/modern/quantum/double-slit-preset.mjs +266 -0
  1794. package/dist/physics/modern/quantum/gates-activity.d.mts +6 -0
  1795. package/dist/physics/modern/quantum/gates-activity.mjs +74 -0
  1796. package/dist/physics/modern/quantum/gates-core.d.mts +19 -0
  1797. package/dist/physics/modern/quantum/gates-core.mjs +51 -0
  1798. package/dist/physics/modern/quantum/gates-preset.d.mts +22 -0
  1799. package/dist/physics/modern/quantum/gates-preset.mjs +102 -0
  1800. package/dist/physics/modern/quantum/index.d.mts +15 -0
  1801. package/dist/physics/modern/quantum/photoelectric-core.d.mts +43 -0
  1802. package/dist/physics/modern/quantum/photoelectric-core.mjs +48 -0
  1803. package/dist/physics/modern/quantum/preset.d.mts +25 -0
  1804. package/dist/physics/modern/quantum/preset.mjs +229 -0
  1805. package/dist/physics/modern/quantum/qubit-core.d.mts +49 -0
  1806. package/dist/physics/modern/quantum/qubit-core.mjs +52 -0
  1807. package/dist/physics/modern/quantum/uncertainty-activity.d.mts +6 -0
  1808. package/dist/physics/modern/quantum/uncertainty-activity.mjs +74 -0
  1809. package/dist/physics/modern/quantum/uncertainty-core.d.mts +11 -0
  1810. package/dist/physics/modern/quantum/uncertainty-core.mjs +19 -0
  1811. package/dist/physics/modern/quantum/uncertainty-preset.d.mts +20 -0
  1812. package/dist/physics/modern/quantum/uncertainty-preset.mjs +157 -0
  1813. package/dist/physics/modern/relativity/activity.d.mts +6 -0
  1814. package/dist/physics/modern/relativity/activity.mjs +80 -0
  1815. package/dist/physics/modern/relativity/core.d.mts +29 -0
  1816. package/dist/physics/modern/relativity/core.mjs +60 -0
  1817. package/dist/physics/modern/relativity/explorer-activity.d.mts +6 -0
  1818. package/dist/physics/modern/relativity/explorer-activity.mjs +74 -0
  1819. package/dist/physics/modern/relativity/explorer-core.d.mts +16 -0
  1820. package/dist/physics/modern/relativity/explorer-core.mjs +21 -0
  1821. package/dist/physics/modern/relativity/explorer-preset.d.mts +21 -0
  1822. package/dist/physics/modern/relativity/explorer-preset.mjs +341 -0
  1823. package/dist/physics/modern/relativity/index.d.mts +18 -0
  1824. package/dist/physics/modern/relativity/length-activity.d.mts +6 -0
  1825. package/dist/physics/modern/relativity/length-activity.mjs +79 -0
  1826. package/dist/physics/modern/relativity/length-core.d.mts +21 -0
  1827. package/dist/physics/modern/relativity/length-core.mjs +33 -0
  1828. package/dist/physics/modern/relativity/length-preset.d.mts +20 -0
  1829. package/dist/physics/modern/relativity/length-preset.mjs +185 -0
  1830. package/dist/physics/modern/relativity/light-clock.d.mts +11 -0
  1831. package/dist/physics/modern/relativity/light-clock.mjs +237 -0
  1832. package/dist/physics/modern/relativity/muon-activity.d.mts +6 -0
  1833. package/dist/physics/modern/relativity/muon-activity.mjs +79 -0
  1834. package/dist/physics/modern/relativity/muon-core.d.mts +39 -0
  1835. package/dist/physics/modern/relativity/muon-core.mjs +66 -0
  1836. package/dist/physics/modern/relativity/muon-preset.d.mts +24 -0
  1837. package/dist/physics/modern/relativity/muon-preset.mjs +120 -0
  1838. package/dist/physics/modern/relativity/muon-scene.d.mts +15 -0
  1839. package/dist/physics/modern/relativity/muon-scene.mjs +144 -0
  1840. package/dist/physics/modern/relativity/preset.d.mts +28 -0
  1841. package/dist/physics/modern/relativity/preset.mjs +132 -0
  1842. package/dist/physics/modern/relativity/scene-primitives.mjs +244 -0
  1843. package/dist/physics/modern/relativity/simultaneity-activity.d.mts +6 -0
  1844. package/dist/physics/modern/relativity/simultaneity-activity.mjs +80 -0
  1845. package/dist/physics/modern/relativity/simultaneity-core.d.mts +21 -0
  1846. package/dist/physics/modern/relativity/simultaneity-core.mjs +33 -0
  1847. package/dist/physics/modern/relativity/simultaneity-preset.d.mts +20 -0
  1848. package/dist/physics/modern/relativity/simultaneity-preset.mjs +319 -0
  1849. package/dist/physics/modern/relativity/spacetime.d.mts +11 -0
  1850. package/dist/physics/modern/relativity/spacetime.mjs +168 -0
  1851. package/dist/physics/modern/shared/experiment-transport.d.mts +38 -0
  1852. package/dist/physics/modern/shared/experiment-transport.mjs +82 -0
  1853. package/dist/physics/modern/shared/index.d.mts +1 -0
  1854. package/dist/physics/optics/activity-plan.mjs +53 -0
  1855. package/dist/physics/optics/activity.mjs +36 -0
  1856. package/dist/physics/optics/asset.mjs +1 -1
  1857. package/dist/physics/optics/core.d.mts +37 -0
  1858. package/dist/physics/optics/core.mjs +67 -0
  1859. package/dist/physics/optics/imaging-activity.mjs +64 -0
  1860. package/dist/physics/optics/index.d.mts +5 -1
  1861. package/dist/physics/optics/lens.d.mts +29 -0
  1862. package/dist/physics/optics/lens.mjs +393 -0
  1863. package/dist/physics/optics/mirror.d.mts +29 -0
  1864. package/dist/physics/optics/mirror.mjs +384 -0
  1865. package/dist/physics/optics/preset.d.mts +10 -1
  1866. package/dist/physics/optics/preset.mjs +48 -27
  1867. package/dist/physics/optics/refraction.d.mts +36 -0
  1868. package/dist/physics/optics/refraction.mjs +422 -0
  1869. package/dist/physics/orbit-lab.d.mts +19 -2
  1870. package/dist/physics/orbit-lab.mjs +314 -172
  1871. package/dist/physics/orbital/core.d.mts +26 -0
  1872. package/dist/physics/orbital/core.mjs +71 -0
  1873. package/dist/physics/power/index.d.mts +1 -0
  1874. package/dist/physics/power/preset.d.mts +37 -0
  1875. package/dist/physics/power/preset.mjs +555 -0
  1876. package/dist/physics/projectiles/core.d.mts +7 -0
  1877. package/dist/physics/projectiles/core.mjs +166 -0
  1878. package/dist/physics/projectiles/falling-target.d.mts +34 -0
  1879. package/dist/physics/projectiles/falling-target.mjs +337 -0
  1880. package/dist/physics/projectiles/glyphs.mjs +269 -0
  1881. package/dist/physics/projectiles/index.d.mts +2 -0
  1882. package/dist/physics/projectiles/moving-launcher.d.mts +44 -0
  1883. package/dist/physics/projectiles/moving-launcher.mjs +481 -0
  1884. package/dist/physics/rain-relative/preset.d.mts +6 -1
  1885. package/dist/physics/rain-relative/preset.mjs +241 -126
  1886. package/dist/physics/ramp-forces/preset.d.mts +4 -1
  1887. package/dist/physics/ramp-forces/preset.mjs +377 -320
  1888. package/dist/physics/river-boat.d.mts +8 -1
  1889. package/dist/physics/river-boat.mjs +199 -81
  1890. package/dist/physics/river-crossing.mjs +101 -0
  1891. package/dist/physics/shm/core.mjs +24 -0
  1892. package/dist/physics/shm/preset.d.mts +4 -1
  1893. package/dist/physics/shm/preset.mjs +496 -251
  1894. package/dist/physics/stopping-distance/preset.d.mts +4 -1
  1895. package/dist/physics/stopping-distance/preset.mjs +278 -177
  1896. package/dist/physics/stress-strain/core.d.mts +132 -0
  1897. package/dist/physics/stress-strain/core.mjs +161 -0
  1898. package/dist/physics/stress-strain/index.d.mts +2 -0
  1899. package/dist/physics/stress-strain/preset.d.mts +41 -0
  1900. package/dist/physics/stress-strain/preset.mjs +683 -0
  1901. package/dist/physics/temperature-scales/index.d.mts +1 -1
  1902. package/dist/physics/temperature-scales/preset.d.mts +15 -2
  1903. package/dist/physics/temperature-scales/preset.mjs +169 -201
  1904. package/dist/physics/terminal-velocity/preset.d.mts +4 -1
  1905. package/dist/physics/terminal-velocity/preset.mjs +317 -251
  1906. package/dist/physics/thermal/activity-plan.mjs +53 -0
  1907. package/dist/physics/thermal/activity.d.mts +44 -0
  1908. package/dist/physics/thermal/activity.mjs +32 -0
  1909. package/dist/physics/thermal/index.d.mts +2 -1
  1910. package/dist/physics/thermal/preset.mjs +463 -274
  1911. package/dist/physics/vector-board/preset.d.mts +24 -3
  1912. package/dist/physics/vector-board/preset.mjs +346 -184
  1913. package/dist/physics/vector-board/view.mjs +3 -16
  1914. package/dist/physics/vector-scene.mjs +53 -29
  1915. package/dist/physics/vector-types/preset.d.mts +8 -1
  1916. package/dist/physics/vector-types/preset.mjs +116 -11
  1917. package/dist/physics/venturi/core.mjs +67 -0
  1918. package/dist/physics/venturi/index.d.mts +1 -0
  1919. package/dist/physics/venturi/preset.d.mts +27 -0
  1920. package/dist/physics/venturi/preset.mjs +339 -0
  1921. package/dist/physics/water-density/preset.d.mts +4 -1
  1922. package/dist/physics/water-density/preset.mjs +169 -181
  1923. package/dist/physics/waves/activity-plan.mjs +62 -0
  1924. package/dist/physics/waves/doppler.d.mts +4 -1
  1925. package/dist/physics/waves/doppler.mjs +85 -90
  1926. package/dist/physics/waves/preset.d.mts +4 -1
  1927. package/dist/physics/waves/preset.mjs +224 -230
  1928. package/dist/physics/waves/ripple.d.mts +4 -1
  1929. package/dist/physics/waves/ripple.mjs +124 -110
  1930. package/dist/physics/waves/string.d.mts +4 -1
  1931. package/dist/physics/waves/string.mjs +104 -129
  1932. package/dist/physics/waves/wave-activity.mjs +58 -0
  1933. package/dist/physics/work-energy/preset.d.mts +4 -1
  1934. package/dist/physics/work-energy/preset.mjs +301 -171
  1935. package/dist/physics/work-potential/index.d.mts +1 -0
  1936. package/dist/physics/work-potential/preset.d.mts +43 -0
  1937. package/dist/physics/work-potential/preset.mjs +299 -0
  1938. package/dist/schemas/activity-authoring.d.mts +233 -0
  1939. package/dist/schemas/activity-authoring.mjs +316 -0
  1940. package/dist/schemas/index.d.mts +41 -7
  1941. package/dist/schemas/index.mjs +110 -23
  1942. package/dist/shared/fields.mjs +39 -0
  1943. package/dist/statistics/center-spread/preset.mjs +128 -86
  1944. package/dist/statistics/core/descriptive.d.mts +2 -2
  1945. package/dist/statistics/core/descriptive.mjs +2 -2
  1946. package/dist/statistics/core/normal.d.mts +3 -3
  1947. package/dist/statistics/core/normal.mjs +3 -3
  1948. package/dist/statistics/core/sequences.d.mts +1 -1
  1949. package/dist/statistics/frequency-density/core.d.mts +73 -0
  1950. package/dist/statistics/frequency-density/core.mjs +72 -0
  1951. package/dist/statistics/frequency-density/index.d.mts +2 -0
  1952. package/dist/statistics/frequency-density/preset.d.mts +31 -0
  1953. package/dist/statistics/frequency-density/preset.mjs +181 -0
  1954. package/dist/statistics/galton/preset.mjs +124 -70
  1955. package/dist/statistics/histogram/preset.mjs +179 -77
  1956. package/dist/statistics/index.d.mts +5 -1
  1957. package/dist/statistics/index.mjs +5 -1
  1958. package/dist/statistics/normal/preset.mjs +154 -75
  1959. package/dist/statistics/ogive/core.d.mts +54 -0
  1960. package/dist/statistics/ogive/core.mjs +73 -0
  1961. package/dist/statistics/ogive/index.d.mts +2 -0
  1962. package/dist/statistics/ogive/preset.d.mts +21 -0
  1963. package/dist/statistics/ogive/preset.mjs +242 -0
  1964. package/dist/statistics/sampling/preset.mjs +165 -99
  1965. package/dist/statistics/sequence/preset.mjs +126 -72
  1966. package/dist/statistics/z-table/preset.mjs +184 -133
  1967. package/dist/three/biology/cell-energy.d.mts +15 -0
  1968. package/dist/three/biology/cell-energy.mjs +151 -0
  1969. package/dist/three/biology/cell-system.d.mts +21 -0
  1970. package/dist/three/biology/cell-system.mjs +139 -0
  1971. package/dist/three/biology/cell-world.d.mts +65 -0
  1972. package/dist/three/biology/cell-world.mjs +344 -0
  1973. package/dist/three/biology/index.d.mts +8 -0
  1974. package/dist/three/biology/index.mjs +9 -0
  1975. package/dist/three/biology/meiosis-explorer.d.mts +14 -0
  1976. package/dist/three/biology/meiosis-explorer.mjs +292 -0
  1977. package/dist/three/biology/membrane-transport.d.mts +14 -0
  1978. package/dist/three/biology/membrane-transport.mjs +163 -0
  1979. package/dist/three/biology/mitosis-explorer.d.mts +15 -0
  1980. package/dist/three/biology/mitosis-explorer.mjs +721 -0
  1981. package/dist/three/biology/organelles.d.mts +29 -0
  1982. package/dist/three/biology/organelles.mjs +192 -0
  1983. package/dist/three/chemistry/atomic-orbital.d.mts +9 -0
  1984. package/dist/three/chemistry/atomic-orbital.mjs +120 -0
  1985. package/dist/three/chemistry/crystal-lattice.d.mts +9 -0
  1986. package/dist/three/chemistry/crystal-lattice.mjs +172 -0
  1987. package/dist/three/chemistry/index.d.mts +6 -0
  1988. package/dist/three/chemistry/index.mjs +7 -0
  1989. package/dist/three/chemistry/molecular-geometry.d.mts +9 -0
  1990. package/dist/three/chemistry/molecular-geometry.mjs +205 -0
  1991. package/dist/three/chemistry/orbital-overlap.d.mts +9 -0
  1992. package/dist/three/chemistry/orbital-overlap.mjs +144 -0
  1993. package/dist/three/chemistry/stereochemistry.d.mts +9 -0
  1994. package/dist/three/chemistry/stereochemistry.mjs +150 -0
  1995. package/dist/three/index.d.mts +11 -0
  1996. package/dist/three/index.mjs +12 -0
  1997. package/dist/three/model-asset.d.mts +27 -0
  1998. package/dist/three/model-asset.mjs +63 -0
  1999. package/dist/three/palette.d.mts +12 -0
  2000. package/dist/three/palette.mjs +75 -0
  2001. package/dist/three/physics/bloch-sphere.d.mts +12 -0
  2002. package/dist/three/physics/bloch-sphere.mjs +209 -0
  2003. package/dist/three/physics/index.d.mts +3 -0
  2004. package/dist/three/physics/index.mjs +4 -0
  2005. package/dist/three/physics/spatial-lorentz.d.mts +9 -0
  2006. package/dist/three/physics/spatial-lorentz.mjs +162 -0
  2007. package/dist/three/primitives.d.mts +127 -0
  2008. package/dist/three/primitives.mjs +347 -0
  2009. package/dist/three/surface.d.mts +36 -0
  2010. package/dist/three/surface.mjs +178 -0
  2011. package/package.json +242 -94
  2012. package/styles/commerce.css +826 -0
  2013. package/styles/core.css +3991 -0
  2014. package/styles/domains/algorithms.css +7 -0
  2015. package/styles/domains/biology.css +5 -0
  2016. package/styles/domains/chemistry.css +5 -0
  2017. package/styles/domains/circuits.css +5 -0
  2018. package/styles/domains/discrete.css +10 -0
  2019. package/styles/domains/editor.css +5 -0
  2020. package/styles/domains/ict.css +5 -0
  2021. package/styles/domains/logic.css +6 -0
  2022. package/styles/domains/math.css +10 -0
  2023. package/styles/domains/ml.css +5 -0
  2024. package/styles/domains/parts/algorithms-1.css +521 -0
  2025. package/styles/domains/parts/algorithms-2.css +122 -0
  2026. package/styles/domains/parts/algorithms-3.css +91 -0
  2027. package/styles/domains/parts/biology.css +345 -0
  2028. package/styles/domains/parts/chemistry.css +274 -0
  2029. package/styles/domains/parts/circuits.css +349 -0
  2030. package/styles/domains/parts/discrete-1.css +142 -0
  2031. package/styles/domains/parts/discrete-2.css +172 -0
  2032. package/styles/domains/parts/discrete-3.css +116 -0
  2033. package/styles/domains/parts/discrete-4.css +194 -0
  2034. package/styles/domains/parts/discrete-5.css +111 -0
  2035. package/styles/domains/parts/discrete-6.css +81 -0
  2036. package/styles/domains/parts/editor.css +267 -0
  2037. package/styles/domains/parts/ict.css +242 -0
  2038. package/styles/domains/parts/logic-1.css +286 -0
  2039. package/styles/domains/parts/logic-2.css +208 -0
  2040. package/styles/domains/parts/math-1.css +299 -0
  2041. package/styles/domains/parts/math-2.css +275 -0
  2042. package/styles/domains/parts/math-3.css +299 -0
  2043. package/styles/domains/parts/math-4.css +75 -0
  2044. package/styles/domains/parts/math-5.css +305 -0
  2045. package/styles/domains/parts/math-6.css +115 -0
  2046. package/styles/domains/parts/ml.css +243 -0
  2047. package/styles/domains/parts/physics-1.css +401 -0
  2048. package/styles/domains/parts/physics-2.css +642 -0
  2049. package/styles/domains/parts/physics-3.css +392 -0
  2050. package/styles/domains/parts/probability-1.css +54 -0
  2051. package/styles/domains/parts/probability-2.css +392 -0
  2052. package/styles/domains/parts/probability-3.css +111 -0
  2053. package/styles/domains/parts/shared-1.css +142 -0
  2054. package/styles/domains/parts/shared-2.css +60 -0
  2055. package/styles/domains/parts/statistics.css +250 -0
  2056. package/styles/domains/physics.css +7 -0
  2057. package/styles/domains/probability.css +7 -0
  2058. package/styles/domains/shared.css +3 -0
  2059. package/styles/domains/statistics.css +5 -0
  2060. package/styles/domains.css +47 -0
  2061. package/styles/exam.css +206 -0
  2062. package/styles/figure.css +247 -0
  2063. package/styles/modern-physics.css +155 -0
  2064. package/styles/three.css +299 -0
  2065. package/styles.css +22 -260
  2066. package/dist/blocks/accounting.d.mts +0 -142
  2067. package/dist/blocks/accounting.mjs +0 -446
  2068. package/dist/blocks/biology.d.mts +0 -197
  2069. package/dist/blocks/biology.mjs +0 -513
  2070. package/dist/blocks/chem.d.mts +0 -128
  2071. package/dist/blocks/chem.mjs +0 -486
  2072. package/dist/blocks/circuits.d.mts +0 -86
  2073. package/dist/blocks/circuits.mjs +0 -348
  2074. package/dist/blocks/discrete.d.mts +0 -62
  2075. package/dist/blocks/discrete.mjs +0 -314
  2076. package/dist/blocks/economics.d.mts +0 -56
  2077. package/dist/blocks/economics.mjs +0 -203
  2078. package/dist/blocks/geography.d.mts +0 -58
  2079. package/dist/blocks/geography.mjs +0 -115
  2080. package/dist/blocks/geometry.d.mts +0 -28
  2081. package/dist/blocks/geometry.mjs +0 -160
  2082. package/dist/blocks/ict.d.mts +0 -65
  2083. package/dist/blocks/ict.mjs +0 -197
  2084. package/dist/blocks/lab-block.d.mts +0 -16
  2085. package/dist/blocks/lab-gallery.d.mts +0 -30
  2086. package/dist/blocks/lab-gallery.mjs +0 -208
  2087. package/dist/blocks/language.d.mts +0 -349
  2088. package/dist/blocks/language.mjs +0 -750
  2089. package/dist/blocks/math.d.mts +0 -411
  2090. package/dist/blocks/math.mjs +0 -1536
  2091. package/dist/blocks/ml.d.mts +0 -84
  2092. package/dist/blocks/ml.mjs +0 -146
  2093. package/dist/blocks/physics.d.mts +0 -259
  2094. package/dist/blocks/physics.mjs +0 -868
  2095. package/dist/blocks/statistics.d.mts +0 -29
  2096. package/dist/blocks/statistics.mjs +0 -123
  2097. package/dist/discrete/logic-circuit/index.d.mts +0 -1
  2098. package/dist/discrete/logic-circuit/preset.d.mts +0 -47
  2099. package/dist/discrete/logic-circuit/preset.mjs +0 -307
  2100. package/dist/kit/electronics.mjs +0 -357
  2101. package/dist/kit/logic-gates.mjs +0 -210
  2102. package/dist/ml/boundary/index.d.mts +0 -1
  2103. package/dist/ml/classifier/index.d.mts +0 -1
  2104. package/dist/ml/classifier/preset.mjs +0 -315
  2105. package/dist/ml/kmeans/index.d.mts +0 -1
  2106. package/dist/ml/knn/index.d.mts +0 -1
  2107. package/dist/ml/knn/preset.mjs +0 -279
  2108. package/dist/ml/regression/index.d.mts +0 -1
  2109. package/dist/physics/projectile-lab.d.mts +0 -10
  2110. package/dist/physics/projectile-lab.mjs +0 -354
  2111. package/dist/physics/vector-board/view.d.mts +0 -49
@@ -0,0 +1,3991 @@
1
+ @source "./dist/**/*.mjs";
2
+
3
+ :root {
4
+ /* ── colour (semantic; host shadcn → calm fallback) ─────────────────────── */
5
+ --lab-surface: var(--card, var(--background, oklch(1 0 0)));
6
+ --lab-sunken: var(--muted, color-mix(in oklab, currentColor 5%, transparent));
7
+ --lab-fg: var(--foreground, currentColor);
8
+ --lab-muted: var(--muted-foreground, color-mix(in oklab, currentColor 55%, transparent));
9
+ --lab-border: var(--border, color-mix(in oklab, currentColor 13%, transparent));
10
+ --lab-border-strong: var(--border, color-mix(in oklab, currentColor 22%, transparent));
11
+ --lab-accent: var(--primary, oklch(0.55 0.16 262));
12
+ --lab-accent-fg: var(--primary-foreground, oklch(1 0 0));
13
+ --lab-good: var(--success, oklch(0.58 0.15 152));
14
+ --lab-warn: var(--warning, oklch(0.72 0.14 75));
15
+ --lab-warn-fg: var(--warning-foreground, oklch(0.42 0.1 75));
16
+ --lab-danger: var(--destructive, oklch(0.58 0.19 25));
17
+ --lab-ring: var(--ring, var(--lab-accent));
18
+
19
+ /* ── radius scale ───────────────────────────────────────────────────────── */
20
+ --lab-r-xs: 4px;
21
+ --lab-r-sm: 8px;
22
+ --lab-r-md: 12px;
23
+ --lab-r-lg: 16px;
24
+ --lab-r-pill: 999px;
25
+
26
+ /* ── spacing scale ──────────────────────────────────────────────────────────
27
+ A 2px grid, and the number in the name IS the pixel value, so a reader can
28
+ size a gap by eye and an author cannot invent 0.35rem by accident. The old
29
+ scale ran 6/10/14/18 while the values actually used were 4/8/12/16, which is
30
+ why almost nothing referenced it. */
31
+ --lab-sp-2: 2px;
32
+ --lab-sp-4: 4px;
33
+ --lab-sp-6: 6px;
34
+ --lab-sp-8: 8px;
35
+ --lab-sp-10: 10px;
36
+ --lab-sp-12: 12px;
37
+ --lab-sp-14: 14px;
38
+ --lab-sp-16: 16px;
39
+ --lab-sp-20: 20px;
40
+ --lab-sp-24: 24px;
41
+ --lab-sp-32: 32px;
42
+
43
+ /* ── type scale ─────────────────────────────────────────────────────────── */
44
+ --lab-t-micro: 10px;
45
+ --lab-t-eyebrow: 12px;
46
+ --lab-t-sm: 14px;
47
+ --lab-t-body: 16px;
48
+ --lab-t-lg: 18px;
49
+ --lab-t-title: 20px;
50
+ --lab-t-hero: 24px;
51
+
52
+ /* ── type roles: weight, leading, tracking ───────────────────────────────────
53
+ Four weights, four leadings, two trackings. A size on its own does not make
54
+ a hierarchy; the pairing does. The sheets carried ten weights (400 to 850)
55
+ and seventeen line-heights, which read as no hierarchy at all. */
56
+ --lab-w-regular: 450; /* prose, answer text */
57
+ --lab-w-medium: 550; /* the step lead, labels, picked answers */
58
+ --lab-w-semibold: 650; /* control text, chips, stat labels */
59
+ --lab-w-bold: 750; /* titles, eyebrows, headline values */
60
+ --lab-lh-tight: 1; /* a numeral on its own */
61
+ --lab-lh-title: 1.25; /* headings, readout values */
62
+ --lab-lh-ui: 1.45; /* everything a learner acts on */
63
+ --lab-lh-prose: 1.55; /* explanations, observe text */
64
+ --lab-ls-caps: 0.06em; /* small uppercase labels only */
65
+ --lab-ls-tight: -0.015em; /* large numerals only */
66
+
67
+ /* ── targets ─────────────────────────────────────────────────────────────────
68
+ 44px for anything the learner commits with (answers, primary actions,
69
+ transport, sliders' hit area). 36px for dense secondary controls inside a
70
+ dock (chips, segments, icon buttons), still above the WCAG 2.2 AA minimum
71
+ of 24px and spaced at least 8px apart. */
72
+ --lab-target: 44px;
73
+ --lab-target-compact: 36px;
74
+
75
+ /* ── state tints ─────────────────────────────────────────────────────────────
76
+ Every surface that reacts uses the SAME four steps, so "picked" looks like
77
+ picked everywhere and "right" is one green, not twenty. The mix is toward
78
+ the surface, not transparent, so the result is identical on a card and on
79
+ the sunken dock. Ink variants keep 4.5:1 for text on those tints. */
80
+ --lab-accent-faint: color-mix(in oklab, var(--lab-accent) 5%, var(--lab-surface)); /* hover */
81
+ --lab-accent-soft: color-mix(in oklab, var(--lab-accent) 12%, var(--lab-surface)); /* picked */
82
+ --lab-accent-edge: color-mix(
83
+ in oklab,
84
+ var(--lab-accent) 45%,
85
+ var(--lab-border)
86
+ ); /* hover border */
87
+ --lab-good-soft: color-mix(in oklab, var(--lab-good) 14%, var(--lab-surface));
88
+ --lab-good-ink: color-mix(in oklab, var(--lab-good) 80%, var(--lab-fg));
89
+ --lab-warn-soft: color-mix(in oklab, var(--lab-warn) 16%, var(--lab-surface));
90
+ --lab-warn-ink: color-mix(in oklab, var(--lab-warn-fg) 85%, var(--lab-fg));
91
+ --lab-danger-soft: color-mix(in oklab, var(--lab-danger) 12%, var(--lab-surface));
92
+ --lab-danger-ink: color-mix(in oklab, var(--lab-danger) 80%, var(--lab-fg));
93
+ --lab-hairline: color-mix(in oklab, var(--lab-border) 60%, transparent); /* row dividers */
94
+
95
+ /* ── motion ──────────────────────────────────────────────────────────────────
96
+ Three durations and three curves, and every animation in the package uses
97
+ them, so the whole product moves at one rhythm. fast is a state change
98
+ the pointer caused (hover, press); base is a state change the model caused
99
+ (a value lands, a chip lights); slow is something that moves through space
100
+ (a node slides, a panel opens). Exits run at fast. Anything longer than
101
+ slow is scene physics and is authored in the scene, not here. */
102
+ --lab-dur-fast: 120ms;
103
+ --lab-dur-base: 180ms;
104
+ --lab-dur-slow: 260ms;
105
+ --lab-ease: cubic-bezier(0.2, 0.8, 0.2, 1); /* decelerating: things arrive */
106
+ --lab-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); /* things move between two places */
107
+ --lab-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* one landing pop, sparingly */
108
+
109
+ /* ── focus ───────────────────────────────────────────────────────────────────
110
+ One ring for every keyboard focus in the package: 2px of the host's ring
111
+ colour, offset so it never covers the control's own border. Set once in
112
+ the shared :focus-visible rule; a component only overrides it when the
113
+ focused thing is SVG geometry with no box to outline. */
114
+ --lab-focus-ring: 2px solid var(--lab-ring);
115
+ --lab-focus-offset: 2px;
116
+
117
+ /* ── layering ────────────────────────────────────────────────────────────── */
118
+ --lab-z-raised: 1; /* a dragged handle, a lit edge */
119
+ --lab-z-overlay: 8; /* a lock, a tooltip, a floating readout inside the scene */
120
+ --lab-z-top: 50; /* focus-mode chrome */
121
+
122
+ /* elevation */
123
+ --lab-ink: oklch(0.29 0.045 262);
124
+ --lab-shadow-sm:
125
+ 0 1px 2px -1px color-mix(in oklab, var(--lab-ink) 14%, transparent),
126
+ 0 1px 2px color-mix(in oklab, var(--lab-ink) 8%, transparent);
127
+ --lab-shadow-md:
128
+ 0 2px 5px -2px color-mix(in oklab, var(--lab-ink) 12%, transparent),
129
+ 0 10px 24px -8px color-mix(in oklab, var(--lab-ink) 16%, transparent);
130
+ --lab-shadow-lg:
131
+ 0 4px 12px -4px color-mix(in oklab, var(--lab-ink) 14%, transparent),
132
+ 0 22px 46px -12px color-mix(in oklab, var(--lab-ink) 18%, transparent);
133
+
134
+ /* Legacy canvas tokens (widgets not yet migrated to stage). DEPRECATED. */
135
+ --sciviz-stage: oklch(0.16 0.02 255);
136
+ --sciviz-grid: oklch(0.55 0.02 255 / 0.5);
137
+ --sciviz-axis: oklch(0.7 0.02 255);
138
+ --sciviz-accent: oklch(0.72 0.15 250);
139
+ --sciviz-accent-2: oklch(0.78 0.16 50);
140
+ --sciviz-good: oklch(0.72 0.17 150);
141
+ --sciviz-text: oklch(0.92 0.01 255);
142
+ --sciviz-text-dim: oklch(0.7 0.02 255);
143
+ --sciviz-warn: oklch(0.82 0.16 85);
144
+ }
145
+
146
+ /* ── Shared interaction rules ─────────────────────────────────────────────────
147
+ Set once for the whole package. A component below adds to these only when it
148
+ has to (SVG geometry with no box to outline); it never restates them. */
149
+
150
+ /* Focus: one ring for every keyboard focus under a lab root. */
151
+ :is(.lab-activity, .lab-scene-studio)
152
+ :is(
153
+ button,
154
+ a[href],
155
+ input,
156
+ select,
157
+ textarea,
158
+ summary,
159
+ [role="button"],
160
+ [role="slider"],
161
+ [role="switch"],
162
+ [role="tab"],
163
+ [role="option"],
164
+ [role="radio"],
165
+ [tabindex]:not([tabindex="-1"])
166
+ ):focus-visible {
167
+ outline: var(--lab-focus-ring);
168
+ outline-offset: var(--lab-focus-offset);
169
+ }
170
+
171
+ /* Reduced motion: honoured at the root, not per animation. Everything collapses
172
+ to a single frame; confetti is removed outright because a still burst is
173
+ noise. A scene that must move to teach keeps a static state that still shows
174
+ the fact (see the lab-design rulebook). */
175
+ @media (prefers-reduced-motion: reduce) {
176
+ :is(.lab-activity, .lab-scene-studio) :is(*, *::before, *::after) {
177
+ animation-duration: 0.01ms !important;
178
+ animation-iteration-count: 1 !important;
179
+ transition-duration: 0.01ms !important;
180
+ scroll-behavior: auto !important;
181
+ }
182
+ .lab-activity .lab-confetti {
183
+ display: none;
184
+ }
185
+ }
186
+
187
+ /* Tree Quest: causal motion, recursion memory, and prediction—not decoration. */
188
+ .tree-scene {
189
+ position: relative;
190
+ overflow: hidden;
191
+ min-height: 17rem;
192
+ border: 1px solid var(--border, var(--stage-grid));
193
+ border-radius: var(--lab-r-md);
194
+ background:
195
+ radial-gradient(
196
+ circle at 1px 1px,
197
+ color-mix(in oklab, currentColor 9%, transparent) 1px,
198
+ transparent 0
199
+ )
200
+ 0 0 / 20px 20px,
201
+ var(--card, var(--stage-bg));
202
+ }
203
+ .tree-fit-button {
204
+ position: absolute;
205
+ top: var(--lab-sp-8);
206
+ right: var(--lab-sp-8);
207
+ }
208
+
209
+ /* One geometry contract for renderer-swappable learning scenes. The selected
210
+ model changes inside this frame; it must not make the activity jump. */
211
+ .lab-scene-viewport {
212
+ container-type: inline-size;
213
+ display: grid;
214
+ width: 100%;
215
+ height: clamp(16rem, 62cqi, 25rem);
216
+ min-width: 0;
217
+ place-items: stretch;
218
+ overflow: hidden;
219
+ }
220
+
221
+ .lab-scene-viewport[data-size="compact"] {
222
+ height: clamp(14rem, 52cqi, 21rem);
223
+ }
224
+
225
+ .lab-scene-viewport[data-size="strip"] {
226
+ height: clamp(10rem, 30cqi, 14rem);
227
+ }
228
+
229
+ .lab-scene-viewport[data-size="wide"] {
230
+ height: clamp(15rem, 48cqi, 23rem);
231
+ }
232
+
233
+ .lab-scene-viewport > :is(svg, .lab-figure, .lab-three-scene),
234
+ .lab-scene-viewport > .lab-three-scene > .lab-three-canvas {
235
+ width: 100%;
236
+ height: 100%;
237
+ min-height: 0;
238
+ }
239
+
240
+ .lab-scene-viewport > :is(svg, .lab-figure) {
241
+ display: block;
242
+ overflow: hidden;
243
+ }
244
+
245
+ /* Dense apparatus may preserve a readable drawing width and pan only when the
246
+ host viewport cannot fit it. This keeps scrolling behavior in one primitive. */
247
+ .lab-scene-viewport[data-overflow="scroll"] {
248
+ overflow-x: auto;
249
+ overflow-y: hidden;
250
+ overscroll-behavior-inline: contain;
251
+ scrollbar-gutter: stable;
252
+ }
253
+ .lab-scene-viewport[data-overflow="scroll"] > :is(svg, .lab-figure) {
254
+ width: max(100%, 42rem);
255
+ max-width: none;
256
+ }
257
+ /* The shared :focus-visible rule already reaches this (it is a tabbable scroll
258
+ box); only the offset changes sign, so the ring sits inside the container
259
+ instead of being clipped by the overflow it is announcing. */
260
+ .lab-scene-viewport[data-overflow="scroll"]:focus-visible {
261
+ outline-offset: calc(-1 * var(--lab-focus-offset));
262
+ }
263
+
264
+ .tree-scene svg {
265
+ display: block;
266
+ width: 100%;
267
+ height: clamp(17rem, 36cqw, 27rem);
268
+ }
269
+ .tree-edge {
270
+ fill: none;
271
+ stroke: var(--border, var(--stage-grid));
272
+ stroke-width: 2;
273
+ vector-effect: non-scaling-stroke;
274
+ transition:
275
+ stroke var(--lab-dur-base) var(--lab-ease),
276
+ stroke-width var(--lab-dur-base) var(--lab-ease);
277
+ }
278
+ .tree-edge[data-active] {
279
+ stroke: var(--primary, var(--stage-accent));
280
+ stroke-width: 4;
281
+ stroke-dasharray: 8 6;
282
+ animation: tree-edge-flow 0.75s linear infinite;
283
+ }
284
+ .tree-node {
285
+ outline: none;
286
+ cursor: default;
287
+ transition: transform var(--lab-dur-slow) var(--lab-ease);
288
+ }
289
+ .tree-node[tabindex] {
290
+ cursor: pointer;
291
+ }
292
+ .tree-node-face {
293
+ fill: var(--card, var(--stage-bg));
294
+ stroke: var(--border, var(--stage-grid));
295
+ stroke-width: 1.5;
296
+ vector-effect: non-scaling-stroke;
297
+ transition:
298
+ fill var(--lab-dur-base) var(--lab-ease),
299
+ stroke var(--lab-dur-base) var(--lab-ease);
300
+ }
301
+ .tree-node-halo {
302
+ fill: transparent;
303
+ stroke: transparent;
304
+ stroke-width: 1.5;
305
+ vector-effect: non-scaling-stroke;
306
+ }
307
+ .tree-node text {
308
+ fill: var(--foreground, var(--stage-fg));
309
+ font-size: var(--lab-t-sm);
310
+ font-weight: var(--lab-w-bold);
311
+ pointer-events: none;
312
+ }
313
+ .tree-node[data-visited] .tree-node-face {
314
+ fill: color-mix(in oklab, var(--stage-success, #16a34a) 16%, var(--card, var(--stage-bg)));
315
+ stroke: var(--stage-success, #16a34a);
316
+ }
317
+ .tree-node[data-current] .tree-node-face {
318
+ fill: color-mix(in oklab, var(--primary, var(--stage-accent)) 14%, var(--card, var(--stage-bg)));
319
+ stroke: var(--primary, var(--stage-accent));
320
+ stroke-width: 3;
321
+ }
322
+ .tree-node[data-current] .tree-node-halo {
323
+ stroke: color-mix(in oklab, var(--primary, var(--stage-accent)) 38%, transparent);
324
+ animation: tree-node-pulse 1.25s var(--lab-ease) infinite;
325
+ }
326
+ .tree-node:focus-visible .tree-node-halo {
327
+ stroke: var(--ring, var(--stage-accent));
328
+ stroke-width: 2.5;
329
+ }
330
+ .tree-prediction {
331
+ display: flex;
332
+ flex-wrap: wrap;
333
+ align-items: center;
334
+ justify-content: center;
335
+ gap: var(--lab-sp-10);
336
+ padding: var(--lab-sp-10);
337
+ border: 1px solid
338
+ color-mix(in oklab, var(--primary, var(--stage-accent)) 25%, var(--border, var(--stage-grid)));
339
+ border-radius: var(--lab-r-md);
340
+ background: color-mix(
341
+ in oklab,
342
+ var(--primary, var(--stage-accent)) 6%,
343
+ var(--card, var(--stage-bg))
344
+ );
345
+ }
346
+ .tree-prediction > span {
347
+ font-size: var(--lab-t-eyebrow);
348
+ font-weight: var(--lab-w-bold);
349
+ }
350
+ .tree-prediction > div {
351
+ display: flex;
352
+ flex-wrap: wrap;
353
+ justify-content: center;
354
+ gap: var(--lab-sp-6);
355
+ }
356
+ .tree-prediction small {
357
+ display: inline-flex;
358
+ align-items: center;
359
+ gap: var(--lab-sp-4);
360
+ flex-basis: 100%;
361
+ justify-content: center;
362
+ color: var(--muted-foreground, var(--stage-muted));
363
+ text-align: center;
364
+ }
365
+ .tree-prediction small svg {
366
+ width: 0.9rem;
367
+ height: 0.9rem;
368
+ }
369
+
370
+ .list-structure-label {
371
+ margin: 2px 0 var(--lab-sp-4);
372
+ color: var(--muted-foreground, var(--stage-muted));
373
+ font-size: var(--lab-t-eyebrow);
374
+ }
375
+
376
+ .list-structure-label[data-spaced] {
377
+ margin-top: var(--lab-sp-14);
378
+ }
379
+
380
+ .list-prediction-feedback {
381
+ display: flex;
382
+ align-items: center;
383
+ justify-content: center;
384
+ gap: var(--lab-sp-4);
385
+ margin-top: var(--lab-sp-10);
386
+ color: var(--muted-foreground, var(--stage-muted));
387
+ }
388
+
389
+ .tree-complexity ul {
390
+ list-style: none;
391
+ margin: 0;
392
+ padding: 0;
393
+ display: grid;
394
+ gap: var(--lab-sp-4);
395
+ }
396
+ .tree-complexity li {
397
+ display: flex;
398
+ align-items: center;
399
+ justify-content: space-between;
400
+ gap: var(--lab-sp-8);
401
+ padding: var(--lab-sp-6) var(--lab-sp-8);
402
+ border: 1px solid var(--border, var(--stage-grid));
403
+ border-radius: var(--lab-r-sm);
404
+ font-size: var(--lab-t-eyebrow);
405
+ font-variant-numeric: tabular-nums;
406
+ }
407
+ .tree-complexity li[data-here] {
408
+ border-color: var(--primary, var(--stage-accent));
409
+ background: color-mix(
410
+ in oklab,
411
+ var(--primary, var(--stage-accent)) 9%,
412
+ var(--card, var(--stage-bg))
413
+ );
414
+ font-weight: var(--lab-w-semibold);
415
+ }
416
+ .tree-complexity code {
417
+ padding: 0 var(--lab-sp-4);
418
+ border-radius: var(--lab-r-xs);
419
+ background: var(--muted, color-mix(in oklab, currentColor 6%, transparent));
420
+ font-size: 0.95em;
421
+ }
422
+ .tree-inspector {
423
+ display: grid;
424
+ gap: 1px;
425
+ background: var(--border, var(--stage-grid));
426
+ }
427
+ .tree-inspector section {
428
+ display: grid;
429
+ gap: var(--lab-sp-8);
430
+ padding: var(--lab-sp-12);
431
+ background: var(--card, var(--stage-bg));
432
+ }
433
+ .tree-inspector h4,
434
+ .tree-inspector p {
435
+ margin: 0;
436
+ font-size: var(--lab-t-eyebrow);
437
+ }
438
+ .tree-stack {
439
+ display: grid;
440
+ gap: var(--lab-sp-4);
441
+ }
442
+ .tree-stack span {
443
+ padding: var(--lab-sp-6) var(--lab-sp-8);
444
+ border: 1px solid var(--border, var(--stage-grid));
445
+ border-radius: var(--lab-r-sm);
446
+ background: var(--muted, color-mix(in oklab, currentColor 5%, transparent));
447
+ font:
448
+ 650 0.68rem ui-monospace,
449
+ SFMono-Regular,
450
+ Menlo,
451
+ monospace;
452
+ }
453
+ .tree-stack span[data-top] {
454
+ border-color: var(--primary, var(--stage-accent));
455
+ color: var(--primary, var(--stage-accent));
456
+ }
457
+ .tree-stack em,
458
+ .tree-output em {
459
+ color: var(--muted-foreground, var(--stage-muted));
460
+ font-size: var(--lab-t-micro);
461
+ }
462
+ .tree-output {
463
+ display: flex;
464
+ flex-wrap: wrap;
465
+ gap: var(--lab-sp-6);
466
+ min-height: 2rem;
467
+ }
468
+ .tree-output span {
469
+ display: grid;
470
+ width: 2rem;
471
+ height: 2rem;
472
+ place-items: center;
473
+ border-radius: var(--lab-r-sm);
474
+ background: color-mix(in oklab, var(--stage-success, #16a34a) 14%, transparent);
475
+ color: var(--foreground, var(--stage-fg));
476
+ font-size: var(--lab-t-eyebrow);
477
+ font-weight: var(--lab-w-bold);
478
+ animation: tree-output-land var(--lab-dur-slow) var(--lab-ease);
479
+ }
480
+ .tree-invariant p {
481
+ color: var(--muted-foreground, var(--stage-muted));
482
+ line-height: var(--lab-lh-ui);
483
+ }
484
+ .tree-balance strong {
485
+ color: var(--primary, var(--stage-accent));
486
+ font:
487
+ 800 1.1rem ui-monospace,
488
+ SFMono-Regular,
489
+ Menlo,
490
+ monospace;
491
+ }
492
+ .tree-balance small {
493
+ color: var(--muted-foreground, var(--stage-muted));
494
+ font-size: var(--lab-t-micro);
495
+ }
496
+ .tree-rotation-prediction .lab-chip {
497
+ min-width: 6.8rem;
498
+ justify-content: center;
499
+ gap: var(--lab-sp-6);
500
+ font-weight: var(--lab-w-medium);
501
+ }
502
+ .tree-rotation-prediction .lab-chip strong {
503
+ font-weight: var(--lab-w-bold);
504
+ }
505
+
506
+ /* Algorithm traces need the scene, its evidence and step transport visible as
507
+ one causal unit. Most embedded lesson columns never reach the generic 60rem
508
+ desktop breakpoint, so algorithms adopt a narrower two-pane threshold. */
509
+ @container lab-activity (min-width: 48rem) {
510
+ /* Only reserve a second pane when the inspector is actually open. Between
511
+ the compact and full desktop breakpoints Inspector intentionally remains
512
+ collapsible; an unconditional column here left a large, empty canvas. */
513
+ .algorithm-activity .lab-activity-workspace:has(> .lab-activity-inspector[open]) {
514
+ grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
515
+ align-items: start;
516
+ }
517
+ }
518
+
519
+ .algorithm-activity .lab-activity-transport {
520
+ position: sticky;
521
+ z-index: var(--lab-z-raised);
522
+ inset-block-end: 0;
523
+ box-shadow: 0 -0.45rem 1rem
524
+ color-mix(in oklab, var(--foreground, var(--stage-fg)) 7%, transparent);
525
+ }
526
+
527
+ @container lab-activity (min-width: 64rem) {
528
+ .algorithm-activity[data-focus][data-focus-layout="immersive"] .algorithm-graph svg,
529
+ .algorithm-activity[data-focus][data-focus-layout="immersive"] .tree-scene svg {
530
+ height: clamp(24rem, 56dvh, 42rem);
531
+ }
532
+
533
+ /* Data-rich subject scenes should use the extra focus width without turning
534
+ compact controls, tables, or prose into oversized panels. These selectors
535
+ intentionally target named render surfaces rather than workspace children. */
536
+ .lab-activity[data-focus][data-focus-layout="immersive"] .statistics-chart {
537
+ max-width: 64rem;
538
+ margin-inline: auto;
539
+ }
540
+ .lab-activity[data-focus][data-focus-layout="immersive"] .statistics-z-curve {
541
+ width: min(100%, 34rem);
542
+ }
543
+ .lab-activity[data-focus][data-focus-layout="immersive"] .statistics-z-table-scroll {
544
+ max-height: min(48dvh, 32rem);
545
+ }
546
+ .lab-activity[data-focus][data-focus-layout="immersive"] .geography-cycle-scene svg {
547
+ display: block;
548
+ width: min(100%, 68rem);
549
+ height: auto;
550
+ max-height: 58dvh;
551
+ margin-inline: auto;
552
+ }
553
+ .lab-activity[data-focus][data-focus-layout="immersive"]
554
+ :is(.biology-plot-region, .biology-chart-scene)
555
+ > svg {
556
+ width: 100%;
557
+ max-height: 56dvh;
558
+ }
559
+ }
560
+
561
+ /* Authorable concept rules -------------------------------------------------
562
+ One semantic composition serves both compact lesson cards and full RuleLab
563
+ activities. Domain rule data owns the mathematics; this layer owns layout. */
564
+ .rule-card {
565
+ overflow: hidden;
566
+ min-width: 0;
567
+ border: 1px solid var(--border, var(--stage-grid));
568
+ border-radius: var(--lab-r-panel, 0.85rem);
569
+ background: var(--card, var(--stage-bg));
570
+ color: var(--card-foreground, var(--stage-fg));
571
+ container: rule-card / inline-size;
572
+ }
573
+ .rule-card[data-display="activity"] {
574
+ border: 0;
575
+ border-radius: 0;
576
+ background: transparent;
577
+ }
578
+ .rule-card-header {
579
+ display: grid;
580
+ gap: var(--lab-sp-4);
581
+ padding: var(--lab-sp-14) var(--lab-sp-16);
582
+ border-bottom: 1px solid var(--border, var(--stage-grid));
583
+ }
584
+ .rule-card-title {
585
+ font-size: var(--lab-t-body);
586
+ font-weight: var(--lab-w-bold);
587
+ line-height: var(--lab-lh-title);
588
+ }
589
+ .rule-card-intuition {
590
+ margin: 0;
591
+ color: var(--muted-foreground, var(--stage-muted));
592
+ font-size: var(--lab-t-eyebrow);
593
+ line-height: var(--lab-lh-ui);
594
+ }
595
+ .rule-card-intuition > span {
596
+ margin-inline-end: var(--lab-sp-8);
597
+ color: var(--primary, var(--stage-accent));
598
+ font-size: var(--lab-t-eyebrow, 0.65rem);
599
+ font-weight: var(--lab-w-bold);
600
+ letter-spacing: var(--lab-ls-caps);
601
+ text-transform: uppercase;
602
+ }
603
+ .rule-card-workspace {
604
+ display: grid;
605
+ min-width: 0;
606
+ }
607
+ .rule-card-scene {
608
+ display: grid;
609
+ min-width: 0;
610
+ align-content: center;
611
+ justify-items: center;
612
+ gap: var(--lab-sp-12);
613
+ padding: clamp(0.9rem, 3cqw, 1.5rem);
614
+ }
615
+ .rule-card-formula {
616
+ max-width: 100%;
617
+ /* Same trap as `.rule-step-expression`, and worse here because the formula is set
618
+ larger: one scrolling axis promotes the other, so a fraction grew a vertical
619
+ scrollbar on the card's headline equation. */
620
+ overflow-x: auto;
621
+ overflow-y: hidden;
622
+ padding-block: 0.3em;
623
+ line-height: 1.9;
624
+ font-size: clamp(1rem, 3cqw, 1.25rem);
625
+ scrollbar-width: thin;
626
+ }
627
+ .rule-card-figure {
628
+ display: grid;
629
+ width: 100%;
630
+ min-width: 0;
631
+ place-items: center;
632
+ }
633
+ .rule-figure {
634
+ display: grid;
635
+ width: 100%;
636
+ min-width: 0;
637
+ gap: var(--lab-sp-8);
638
+ margin: 0;
639
+ }
640
+ .rule-figure-scene {
641
+ width: 100%;
642
+ min-width: 0;
643
+ }
644
+ .rule-figure figcaption {
645
+ max-width: 65ch;
646
+ margin-inline: auto;
647
+ color: var(--muted-foreground, var(--stage-muted));
648
+ font-size: var(--lab-t-eyebrow);
649
+ line-height: var(--lab-lh-ui);
650
+ text-align: center;
651
+ }
652
+ .rule-card-evidence {
653
+ display: grid;
654
+ min-width: 0;
655
+ align-content: start;
656
+ gap: var(--lab-sp-12);
657
+ padding: var(--lab-sp-14) var(--lab-sp-16);
658
+ border-top: 1px solid var(--border, var(--stage-grid));
659
+ background: color-mix(in oklab, var(--muted, var(--stage-grid)) 45%, transparent);
660
+ }
661
+ .rule-step-list {
662
+ display: grid;
663
+ gap: var(--lab-sp-4);
664
+ margin: 0;
665
+ padding: 0;
666
+ list-style: none;
667
+ }
668
+ .rule-step-list > li {
669
+ display: flex;
670
+ flex-wrap: wrap;
671
+ align-items: baseline;
672
+ gap: var(--lab-sp-4) var(--lab-sp-12);
673
+ min-width: 0;
674
+ padding: var(--lab-sp-6) var(--lab-sp-8);
675
+ border-radius: calc(var(--radius, 0.625rem) - 2px);
676
+ }
677
+ .rule-step-list > li[data-result="true"] {
678
+ border-inline-start: 2px solid var(--primary, var(--stage-accent));
679
+ background: color-mix(in oklab, var(--primary, var(--stage-accent)) 7%, transparent);
680
+ }
681
+ .rule-step-expression {
682
+ max-width: 100%;
683
+ /* `overflow-x: auto` alone is a trap: CSS promotes the OTHER axis from `visible`
684
+ to `auto` as soon as one axis scrolls. A KaTeX fraction is taller than the line
685
+ box it sits in, so every \frac grew its own vertical scrollbar, arrows and all.
686
+ Pin the y axis, then give the line box room so pinning it never clips: the
687
+ padding and line-height below are what let a two-storey fraction sit inside the
688
+ element rather than poke out of it. Wide expressions still scroll sideways. */
689
+ overflow-x: auto;
690
+ overflow-y: hidden;
691
+ padding-block: 0.3em;
692
+ line-height: 1.9;
693
+ font-size: var(--lab-t-sm);
694
+ }
695
+ .rule-step-note {
696
+ color: var(--muted-foreground, var(--stage-muted));
697
+ font-size: var(--lab-t-eyebrow);
698
+ line-height: var(--lab-lh-ui);
699
+ }
700
+ .rule-card-controls {
701
+ display: flex;
702
+ flex-wrap: wrap;
703
+ align-items: end;
704
+ gap: var(--lab-sp-12);
705
+ padding: var(--lab-sp-12) var(--lab-sp-16);
706
+ border-top: 1px solid var(--border, var(--stage-grid));
707
+ background: color-mix(in oklab, var(--muted, var(--stage-grid)) 42%, transparent);
708
+ }
709
+ .rule-card-support {
710
+ border-top: 1px solid var(--border, var(--stage-grid));
711
+ }
712
+ .rule-card-support > summary {
713
+ cursor: pointer;
714
+ padding: var(--lab-sp-12) var(--lab-sp-16);
715
+ color: var(--muted-foreground, var(--stage-muted));
716
+ font-size: var(--lab-t-eyebrow);
717
+ font-weight: var(--lab-w-semibold);
718
+ }
719
+ .rule-card-support[open] > summary {
720
+ border-bottom: 1px solid var(--border, var(--stage-grid));
721
+ }
722
+ .rule-card-support-body {
723
+ display: grid;
724
+ gap: var(--lab-sp-16);
725
+ padding: var(--lab-sp-14) var(--lab-sp-16) var(--lab-sp-16);
726
+ }
727
+ .rule-card-support-body section {
728
+ display: grid;
729
+ gap: var(--lab-sp-8);
730
+ }
731
+ .rule-card-support-body h4,
732
+ .rule-card-support-body ul {
733
+ margin: 0;
734
+ }
735
+ .rule-card-support-body h4 {
736
+ font-size: var(--lab-t-eyebrow, 0.68rem);
737
+ letter-spacing: var(--lab-ls-caps);
738
+ text-transform: uppercase;
739
+ }
740
+ .rule-card-support-body ul {
741
+ display: grid;
742
+ gap: var(--lab-sp-6);
743
+ padding-inline-start: var(--lab-sp-16);
744
+ font-size: var(--lab-t-eyebrow);
745
+ line-height: var(--lab-lh-ui);
746
+ }
747
+ /* Keep the explanation below the visual until both columns can remain useful.
748
+ The earlier 42rem split produced a cramped equation rail in ordinary lesson widths. */
749
+ @container rule-card (min-width: 54rem) {
750
+ .rule-card-workspace:has(> .rule-card-evidence) {
751
+ grid-template-columns: minmax(28rem, 1.35fr) minmax(19rem, 0.65fr);
752
+ align-items: stretch;
753
+ }
754
+ .rule-card-evidence {
755
+ border-top: 0;
756
+ border-inline-start: 1px solid var(--border, var(--stage-grid));
757
+ }
758
+ }
759
+
760
+ /* Heap Quest: synchronized tree and array with stable item identity. */
761
+ .heap-dual-view {
762
+ display: grid;
763
+ gap: var(--lab-sp-10);
764
+ min-width: 0;
765
+ }
766
+ .heap-tree {
767
+ overflow: hidden;
768
+ min-height: 18rem;
769
+ border: 1px solid var(--border, var(--stage-grid));
770
+ border-radius: var(--lab-r-md);
771
+ background:
772
+ radial-gradient(
773
+ circle at 1px 1px,
774
+ color-mix(in oklab, currentColor 9%, transparent) 1px,
775
+ transparent 0
776
+ )
777
+ 0 0 / 20px 20px,
778
+ var(--card, var(--stage-bg));
779
+ }
780
+ .heap-tree svg {
781
+ display: block;
782
+ width: 100%;
783
+ height: clamp(18rem, 38cqw, 29rem);
784
+ }
785
+ .heap-tree line {
786
+ stroke: var(--border, var(--stage-grid));
787
+ stroke-width: 2;
788
+ vector-effect: non-scaling-stroke;
789
+ transition: stroke var(--lab-dur-base) var(--lab-ease);
790
+ }
791
+ .heap-tree line[data-active] {
792
+ stroke: var(--primary, var(--stage-accent));
793
+ stroke-width: 4;
794
+ }
795
+ .heap-node {
796
+ outline: none;
797
+ cursor: pointer;
798
+ transition: transform 0.5s var(--lab-ease);
799
+ }
800
+ .heap-node circle {
801
+ fill: var(--card, var(--stage-bg));
802
+ stroke: var(--border, var(--stage-grid));
803
+ stroke-width: 1.5;
804
+ vector-effect: non-scaling-stroke;
805
+ transition:
806
+ fill var(--lab-dur-base) var(--lab-ease),
807
+ stroke var(--lab-dur-base) var(--lab-ease);
808
+ }
809
+ .heap-node > text:not(.heap-node-index) {
810
+ fill: var(--foreground, var(--stage-fg));
811
+ font-size: var(--lab-t-micro);
812
+ font-weight: var(--lab-w-bold);
813
+ }
814
+ .heap-node-index {
815
+ fill: var(--muted-foreground, var(--stage-muted));
816
+ font-size: var(--lab-t-micro);
817
+ font-weight: var(--lab-w-semibold);
818
+ }
819
+ .heap-node[data-active] circle {
820
+ fill: color-mix(in oklab, var(--primary, var(--stage-accent)) 13%, var(--card, var(--stage-bg)));
821
+ stroke: var(--primary, var(--stage-accent));
822
+ stroke-width: 3;
823
+ }
824
+ .heap-node[data-selected] circle,
825
+ .heap-node:focus-visible circle {
826
+ stroke: var(--ring, var(--stage-accent));
827
+ stroke-width: 3;
828
+ stroke-dasharray: 4 2;
829
+ }
830
+ .heap-array {
831
+ display: flex;
832
+ gap: var(--lab-sp-6);
833
+ overflow-x: auto;
834
+ padding: var(--lab-sp-4) 2px var(--lab-sp-8);
835
+ scroll-snap-type: x proximity;
836
+ }
837
+ .heap-array button {
838
+ display: grid;
839
+ flex: 0 0 3rem;
840
+ min-height: 3.25rem;
841
+ place-items: center;
842
+ scroll-snap-align: center;
843
+ border: 1px solid var(--border, var(--stage-grid));
844
+ border-radius: var(--lab-r-sm);
845
+ background: var(--card, var(--stage-bg));
846
+ color: var(--foreground, var(--stage-fg));
847
+ cursor: pointer;
848
+ }
849
+ .heap-array button small {
850
+ color: var(--muted-foreground, var(--stage-muted));
851
+ font-size: var(--lab-t-micro);
852
+ }
853
+ .heap-array button strong {
854
+ font-size: var(--lab-t-eyebrow);
855
+ }
856
+ .heap-array button[data-active] {
857
+ border-color: var(--primary, var(--stage-accent));
858
+ background: color-mix(
859
+ in oklab,
860
+ var(--primary, var(--stage-accent)) 10%,
861
+ var(--card, var(--stage-bg))
862
+ );
863
+ }
864
+ .heap-array button[data-selected],
865
+ .heap-relation {
866
+ display: flex;
867
+ align-items: center;
868
+ justify-content: space-between;
869
+ gap: var(--lab-sp-12);
870
+ min-height: 2.3rem;
871
+ padding: var(--lab-sp-8) var(--lab-sp-10);
872
+ border-radius: var(--lab-r-sm);
873
+ background: var(--muted, color-mix(in oklab, currentColor 5%, transparent));
874
+ color: var(--muted-foreground, var(--stage-muted));
875
+ font:
876
+ 0.67rem ui-monospace,
877
+ SFMono-Regular,
878
+ Menlo,
879
+ monospace;
880
+ }
881
+ .heap-relation b {
882
+ flex: none;
883
+ color: var(--primary, var(--stage-accent));
884
+ }
885
+ .heap-prediction .lab-chip {
886
+ min-width: 3.5rem;
887
+ justify-content: center;
888
+ text-transform: capitalize;
889
+ }
890
+ .heap-inspector {
891
+ display: grid;
892
+ gap: 1px;
893
+ background: var(--border, var(--stage-grid));
894
+ }
895
+ .heap-inspector section {
896
+ display: grid;
897
+ gap: var(--lab-sp-8);
898
+ padding: var(--lab-sp-12);
899
+ background: var(--card, var(--stage-bg));
900
+ }
901
+ .heap-inspector h4,
902
+ .heap-inspector p,
903
+ .heap-inspector dl {
904
+ margin: 0;
905
+ font-size: var(--lab-t-eyebrow);
906
+ }
907
+ .heap-inspector p {
908
+ color: var(--muted-foreground, var(--stage-muted));
909
+ line-height: var(--lab-lh-ui);
910
+ }
911
+ .heap-inspector code {
912
+ padding: var(--lab-sp-6) var(--lab-sp-8);
913
+ border-radius: var(--lab-r-sm);
914
+ background: var(--muted, color-mix(in oklab, currentColor 5%, transparent));
915
+ font-size: var(--lab-t-micro);
916
+ }
917
+ .heap-inspector dl {
918
+ display: grid;
919
+ gap: var(--lab-sp-6);
920
+ }
921
+ .heap-inspector dl div {
922
+ display: flex;
923
+ justify-content: space-between;
924
+ }
925
+ .heap-inspector dd {
926
+ margin: 0;
927
+ font-weight: var(--lab-w-bold);
928
+ }
929
+ .heap-authoring-preview {
930
+ min-width: 0;
931
+ }
932
+ @media (min-width: 56rem) {
933
+ .heap-authoring {
934
+ grid-template-columns: minmax(25rem, 1.2fr) minmax(20rem, 0.8fr);
935
+ }
936
+ .heap-authoring-preview {
937
+ position: sticky;
938
+ top: 1rem;
939
+ }
940
+ }
941
+ @container lab-activity (max-width: 42.5rem) {
942
+ .heap-tree {
943
+ min-height: 15rem;
944
+ }
945
+ .heap-tree svg {
946
+ height: 15rem;
947
+ }
948
+ .heap-relation {
949
+ align-items: flex-start;
950
+ font-size: var(--lab-t-micro);
951
+ }
952
+ }
953
+ /* No-code scene authoring. Named classes keep the editor styled in every host;
954
+ consumers should not need to scan package source with their Tailwind build. */
955
+ .lab-scene-studio {
956
+ display: grid;
957
+ grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.42fr);
958
+ gap: var(--lab-sp-16);
959
+ align-items: stretch;
960
+ padding: var(--lab-sp-14);
961
+ color: var(--lab-fg);
962
+ border: 1px solid var(--lab-border);
963
+ border-radius: var(--lab-r-lg);
964
+ background: var(--lab-surface);
965
+ }
966
+ .lab-scene-studio-form {
967
+ display: grid;
968
+ gap: var(--lab-sp-14);
969
+ min-width: 0;
970
+ }
971
+ .lab-scene-studio-fields {
972
+ display: grid;
973
+ grid-template-columns: repeat(2, minmax(0, 1fr));
974
+ gap: var(--lab-sp-10);
975
+ align-items: end;
976
+ }
977
+ .lab-scene-studio-field,
978
+ .lab-scene-studio-group {
979
+ display: grid;
980
+ gap: var(--lab-sp-6);
981
+ min-width: 0;
982
+ margin: 0;
983
+ padding: 0;
984
+ border: 0;
985
+ }
986
+ .lab-scene-studio-field small {
987
+ color: var(--lab-muted);
988
+ font-size: var(--lab-t-eyebrow);
989
+ }
990
+ .lab-scene-studio-label {
991
+ color: var(--lab-muted);
992
+ font-size: var(--lab-t-eyebrow);
993
+ font-weight: var(--lab-w-bold);
994
+ letter-spacing: var(--lab-ls-caps);
995
+ line-height: var(--lab-lh-title);
996
+ text-transform: uppercase;
997
+ }
998
+ .lab-scene-studio-input {
999
+ width: 100%;
1000
+ min-width: 0;
1001
+ min-height: var(--lab-target);
1002
+ box-sizing: border-box;
1003
+ padding: var(--lab-sp-8) var(--lab-sp-12);
1004
+ color: var(--lab-fg);
1005
+ font: inherit;
1006
+ font-size: var(--lab-t-sm);
1007
+ border: 1px solid var(--lab-border-strong);
1008
+ border-radius: var(--lab-r-sm);
1009
+ outline: none;
1010
+ background: var(--lab-surface);
1011
+ }
1012
+ .lab-scene-studio-choices {
1013
+ display: grid;
1014
+ grid-template-columns: repeat(3, minmax(0, 1fr));
1015
+ gap: var(--lab-sp-6);
1016
+ }
1017
+ .lab-scene-studio-choice {
1018
+ display: grid;
1019
+ gap: 2px;
1020
+ min-height: var(--lab-target);
1021
+ padding: var(--lab-sp-8) var(--lab-sp-12);
1022
+ text-align: start;
1023
+ color: var(--lab-fg);
1024
+ cursor: pointer;
1025
+ border: 1px solid var(--lab-border);
1026
+ border-radius: var(--lab-r-sm);
1027
+ background: var(--lab-surface);
1028
+ }
1029
+ .lab-scene-studio-choice strong {
1030
+ font-size: var(--lab-t-sm);
1031
+ }
1032
+ .lab-scene-studio-choice span {
1033
+ color: var(--lab-muted);
1034
+ font-size: var(--lab-t-eyebrow);
1035
+ font-weight: var(--lab-w-regular);
1036
+ }
1037
+ .lab-scene-studio-choice[aria-pressed="true"] {
1038
+ border-color: var(--lab-accent);
1039
+ background: var(--lab-accent-soft);
1040
+ }
1041
+ .lab-scene-studio-icons {
1042
+ display: flex;
1043
+ flex-wrap: wrap;
1044
+ gap: var(--lab-sp-6);
1045
+ }
1046
+ .lab-scene-studio-icons button {
1047
+ display: grid;
1048
+ place-items: center;
1049
+ width: var(--lab-target);
1050
+ height: var(--lab-target);
1051
+ padding: 0;
1052
+ cursor: pointer;
1053
+ font-size: var(--lab-t-title);
1054
+ border: 1px solid var(--lab-border);
1055
+ border-radius: var(--lab-r-sm);
1056
+ background: var(--lab-surface);
1057
+ }
1058
+ .lab-scene-studio-icons button[aria-pressed="true"] {
1059
+ border-color: var(--lab-accent);
1060
+ background: var(--lab-accent-soft);
1061
+ }
1062
+ .lab-scene-studio-custom-icon {
1063
+ display: flex;
1064
+ align-items: center;
1065
+ gap: var(--lab-sp-6);
1066
+ min-height: var(--lab-target);
1067
+ padding-inline: var(--lab-sp-10);
1068
+ border: 1px solid var(--lab-border);
1069
+ border-radius: var(--lab-r-sm);
1070
+ }
1071
+ .lab-scene-studio-custom-icon span {
1072
+ color: var(--lab-muted);
1073
+ font-size: var(--lab-t-eyebrow);
1074
+ }
1075
+ .lab-scene-studio-custom-icon input {
1076
+ width: 2rem;
1077
+ border: 0;
1078
+ outline: 0;
1079
+ color: var(--lab-fg);
1080
+ font: inherit;
1081
+ font-size: var(--lab-t-title);
1082
+ background: transparent;
1083
+ }
1084
+ .lab-scene-studio-color {
1085
+ display: grid;
1086
+ grid-template-columns: var(--lab-target) 1fr;
1087
+ gap: var(--lab-sp-6);
1088
+ }
1089
+ .lab-scene-studio-color input[type="color"] {
1090
+ width: var(--lab-target);
1091
+ height: var(--lab-target);
1092
+ padding: var(--lab-sp-2);
1093
+ cursor: pointer;
1094
+ border: 1px solid var(--lab-border-strong);
1095
+ border-radius: var(--lab-r-sm);
1096
+ background: var(--lab-surface);
1097
+ }
1098
+ .lab-scene-studio-preview {
1099
+ display: grid;
1100
+ grid-template-rows: auto minmax(9.5rem, 1fr) auto;
1101
+ gap: var(--lab-sp-6);
1102
+ justify-items: center;
1103
+ min-width: 0;
1104
+ padding: var(--lab-sp-10);
1105
+ border: 1px solid var(--lab-border);
1106
+ border-radius: var(--lab-r-md);
1107
+ background: var(--lab-sunken);
1108
+ }
1109
+ .lab-scene-studio-preview-stage {
1110
+ display: grid;
1111
+ place-items: center;
1112
+ min-height: 9.5rem;
1113
+ width: 100%;
1114
+ overflow: hidden;
1115
+ }
1116
+ .lab-scene-studio-preview-note {
1117
+ color: var(--lab-muted);
1118
+ font-size: var(--lab-t-eyebrow);
1119
+ }
1120
+ @media (max-width: 42rem) {
1121
+ .lab-scene-studio {
1122
+ grid-template-columns: minmax(0, 1fr);
1123
+ }
1124
+ .lab-scene-studio-preview {
1125
+ grid-template-rows: auto 8.5rem auto;
1126
+ }
1127
+ .lab-scene-studio-preview-stage {
1128
+ min-height: 8.5rem;
1129
+ }
1130
+ }
1131
+ @media (max-width: 30rem) {
1132
+ .lab-scene-studio-fields,
1133
+ .lab-scene-studio-choices {
1134
+ grid-template-columns: minmax(0, 1fr);
1135
+ }
1136
+ .lab-scene-studio-choice {
1137
+ grid-template-columns: auto 1fr;
1138
+ align-items: baseline;
1139
+ gap: var(--lab-sp-6);
1140
+ }
1141
+ }
1142
+ @keyframes tree-edge-flow {
1143
+ to {
1144
+ stroke-dashoffset: -14;
1145
+ }
1146
+ }
1147
+ @keyframes tree-node-pulse {
1148
+ from {
1149
+ opacity: 1;
1150
+ transform: scale(0.8);
1151
+ }
1152
+ to {
1153
+ opacity: 0;
1154
+ transform: scale(1.35);
1155
+ }
1156
+ }
1157
+ @keyframes tree-output-land {
1158
+ from {
1159
+ opacity: 0;
1160
+ transform: translateY(-0.5rem) scale(0.8);
1161
+ }
1162
+ }
1163
+ @container lab-activity (max-width: 42.5rem) {
1164
+ .tree-scene {
1165
+ min-height: 17rem;
1166
+ }
1167
+ .tree-scene svg {
1168
+ height: 17rem;
1169
+ }
1170
+ }
1171
+ /* Utility: visually-hidden (screen-reader only). */
1172
+ /**
1173
+ * Visually hidden, and it must STAY hidden.
1174
+ *
1175
+ * This is the one place `!important` is right. A live region announces what changed and must never
1176
+ * take part in layout, but a scene's blanket child rule (`.physics-scene-surface > div { width:
1177
+ * 100% }`) matched it and stretched it to the full width: at 360px the page then scrolled sideways
1178
+ * by 53px, which is a WCAG reflow failure caused by text nobody can even see. Every design system
1179
+ * marks this utility important for the same reason.
1180
+ */
1181
+ .lab-sr-only {
1182
+ position: absolute !important;
1183
+ width: 1px !important;
1184
+ height: 1px !important;
1185
+ margin: -1px !important;
1186
+ padding: 0 !important;
1187
+ border: 0 !important;
1188
+ overflow: hidden !important;
1189
+ clip-path: inset(50%);
1190
+ white-space: nowrap;
1191
+ }
1192
+
1193
+ /* ═══════════════════════════════════════════════════════════════════════════
1194
+ PRIMITIVES
1195
+ ═══════════════════════════════════════════════════════════════════════════ */
1196
+
1197
+ /* ── Eyebrow: the small-caps section label (PREDICT FIRST, SOLUTION, …) ────── */
1198
+ .lab-eyebrow,
1199
+ .lab-challenge-h,
1200
+ .lab-objectives-h,
1201
+ .lab-solution-h,
1202
+ .lab-field-label {
1203
+ font-size: var(--lab-t-eyebrow);
1204
+ font-weight: var(--lab-w-semibold);
1205
+ letter-spacing: var(--lab-ls-caps);
1206
+ text-transform: uppercase;
1207
+ color: var(--lab-muted);
1208
+ line-height: var(--lab-lh-title);
1209
+ }
1210
+
1211
+ .lab-option,
1212
+ .lab-choice,
1213
+ .lang-choice,
1214
+ .lang-match-cell {
1215
+ display: inline-flex;
1216
+ align-items: center;
1217
+ justify-content: center;
1218
+ gap: var(--lab-sp-6);
1219
+ padding: var(--lab-sp-10) var(--lab-sp-16);
1220
+ border-radius: var(--lab-r-md);
1221
+ border: 1.5px solid var(--lab-border-strong);
1222
+ background: var(--lab-surface);
1223
+ color: var(--lab-fg);
1224
+ font-size: var(--lab-t-lg);
1225
+ font-weight: var(--lab-w-semibold);
1226
+ font-variant-numeric: tabular-nums;
1227
+ cursor: pointer;
1228
+ transition:
1229
+ border-color var(--lab-dur-fast),
1230
+ background var(--lab-dur-fast),
1231
+ color var(--lab-dur-fast),
1232
+ box-shadow var(--lab-dur-fast),
1233
+ transform var(--lab-dur-fast);
1234
+ }
1235
+ .lab-option:hover:not(:disabled),
1236
+ .lab-choice:hover:not(:disabled),
1237
+ .lang-choice:hover:not(:disabled),
1238
+ .lang-match-cell:hover:not(:disabled) {
1239
+ border-color: var(--lab-accent-edge);
1240
+ background: var(--lab-accent-faint);
1241
+ box-shadow: var(--lab-shadow-md);
1242
+ }
1243
+ .lab-option:active:not(:disabled),
1244
+ .lab-choice:active:not(:disabled),
1245
+ .lang-choice:active:not(:disabled),
1246
+ .lang-match-cell:active:not(:disabled) {
1247
+ transform: translateY(1px);
1248
+ box-shadow: none;
1249
+ }
1250
+ /* selected (accent) — unify the different data-attrs the components emit */
1251
+ .lab-option[data-picked],
1252
+ .lab-option[data-sel="true"],
1253
+ .lab-choice[data-picked],
1254
+ .lang-choice[data-state="sel"],
1255
+ .lang-match-cell[data-state="sel"] {
1256
+ border-color: var(--lab-accent);
1257
+ background: var(--lab-accent-soft);
1258
+ }
1259
+ /* correct (good) */
1260
+ .lab-option[data-tone="correct"],
1261
+ .lab-option[data-state="ok"],
1262
+ .lab-choice[data-tone="correct"],
1263
+ .lang-choice[data-state="ok"],
1264
+ .lang-match-cell[data-state="ok"] {
1265
+ border-color: var(--lab-good);
1266
+ background: var(--lab-good-soft);
1267
+ color: var(--lab-good-ink);
1268
+ cursor: default;
1269
+ }
1270
+ /* wrong (danger) */
1271
+ .lab-option[data-tone="wrong"],
1272
+ .lab-option[data-state="no"],
1273
+ .lab-choice[data-tone="wrong"],
1274
+ .lang-choice[data-state="no"],
1275
+ .lang-match-cell[data-state="no"] {
1276
+ border-color: var(--lab-danger);
1277
+ background: var(--lab-danger-soft);
1278
+ color: var(--lab-danger-ink);
1279
+ }
1280
+ .lang-choice[data-state="no"],
1281
+ .lang-match-cell[data-state="no"] {
1282
+ animation: lang-shake 0.42s;
1283
+ }
1284
+ .lang-choice:disabled:not([data-state="ok"]) {
1285
+ opacity: 0.5;
1286
+ cursor: default;
1287
+ }
1288
+ .lang-match-cell:disabled {
1289
+ cursor: default;
1290
+ }
1291
+ /* size variants */
1292
+ .lab-choice {
1293
+ min-width: 46px;
1294
+ min-height: var(--lab-target);
1295
+ }
1296
+ .lang-choice {
1297
+ padding: var(--lab-sp-10) var(--lab-sp-20);
1298
+ font-size: var(--lab-t-body);
1299
+ }
1300
+ .lang-match-cell {
1301
+ padding: var(--lab-sp-14) var(--lab-sp-14);
1302
+ }
1303
+
1304
+ /* ── Panel: a bordered surface (card / callout / note) ─────────────────────── */
1305
+ .lab-panel,
1306
+ .lab-challenge,
1307
+ .lab-evidence-surface,
1308
+ .lab-solution,
1309
+ .lab-objectives {
1310
+ border-radius: var(--lab-r-lg);
1311
+ border: 1px solid var(--lab-border);
1312
+ background: var(--lab-surface);
1313
+ color: var(--lab-fg);
1314
+ }
1315
+
1316
+ .lab-evidence-surface,
1317
+ .lab-solution {
1318
+ box-shadow: var(--lab-shadow-sm);
1319
+ }
1320
+
1321
+ .lab-input {
1322
+ min-width: 140px;
1323
+ font-variant-numeric: tabular-nums;
1324
+ }
1325
+
1326
+ .lab-stepper {
1327
+ display: inline-flex;
1328
+ align-items: center;
1329
+ border: 1.5px solid var(--lab-border-strong);
1330
+ border-radius: var(--lab-r-md);
1331
+ overflow: hidden;
1332
+ background: var(--lab-sunken);
1333
+ }
1334
+ .lab-stepper b {
1335
+ min-width: 30px;
1336
+ text-align: center;
1337
+ font-size: var(--lab-t-body);
1338
+ font-weight: var(--lab-w-bold);
1339
+ padding: 0 var(--lab-sp-4);
1340
+ font-variant-numeric: tabular-nums;
1341
+ }
1342
+
1343
+ .lab-bar {
1344
+ display: flex;
1345
+ align-items: center;
1346
+ gap: var(--lab-sp-14);
1347
+ flex-wrap: wrap;
1348
+ padding: var(--lab-sp-12) 2px 2px;
1349
+ font-size: var(--lab-t-body);
1350
+ color: var(--lab-fg);
1351
+ }
1352
+ .lab-bar .sep {
1353
+ opacity: 0.6;
1354
+ }
1355
+
1356
+ /* ── Meter bar (progress / energy) ─────────────────────────────────────────── */
1357
+ .lab-meter {
1358
+ display: flex;
1359
+ flex-direction: column;
1360
+ gap: var(--lab-sp-2);
1361
+ }
1362
+ .lab-meter-head {
1363
+ display: flex;
1364
+ justify-content: space-between;
1365
+ font-size: var(--lab-t-eyebrow);
1366
+ font-weight: var(--lab-w-semibold);
1367
+ color: var(--lab-muted);
1368
+ }
1369
+ .lab-meter-head b {
1370
+ font-weight: var(--lab-w-semibold);
1371
+ font-variant-numeric: tabular-nums;
1372
+ }
1373
+ .lab-meter-track {
1374
+ height: 12px;
1375
+ border-radius: var(--lab-r-sm);
1376
+ background: color-mix(in oklab, var(--lab-muted) 18%, transparent);
1377
+ overflow: hidden;
1378
+ }
1379
+ .lab-meter-fill {
1380
+ height: 100%;
1381
+ border-radius: var(--lab-r-sm);
1382
+ background: var(--lab-meter-color, var(--lab-accent));
1383
+ transition: width var(--lab-dur-fast);
1384
+ }
1385
+
1386
+ /* ═══════════════════════════════════════════════════════════════════════════
1387
+ COMPONENTS
1388
+ ═══════════════════════════════════════════════════════════════════════════ */
1389
+
1390
+ /* ── pedagogy: objectives / hints / misconception ──────────────────────────── */
1391
+ .lab-objectives {
1392
+ margin: 0 0 var(--lab-sp-12);
1393
+ padding: var(--lab-sp-10) var(--lab-sp-14);
1394
+ border-radius: var(--lab-r-md);
1395
+ background: var(--lab-accent-faint);
1396
+ }
1397
+ .lab-objectives ul {
1398
+ margin: var(--lab-sp-4) 0 0;
1399
+ padding-inline-start: var(--lab-sp-16);
1400
+ }
1401
+ .lab-objectives li {
1402
+ font-size: var(--lab-t-sm);
1403
+ color: var(--lab-fg);
1404
+ margin: 1px 0;
1405
+ }
1406
+ .lab-hints {
1407
+ margin-top: var(--lab-sp-12);
1408
+ display: flex;
1409
+ flex-direction: column;
1410
+ gap: var(--lab-sp-6);
1411
+ align-items: flex-start;
1412
+ }
1413
+ .lab-hint {
1414
+ margin: 0;
1415
+ font-size: var(--lab-t-sm);
1416
+ color: var(--lab-fg);
1417
+ padding: var(--lab-sp-6) var(--lab-sp-10);
1418
+ border-radius: var(--lab-r-sm);
1419
+ background: var(--lab-warn-soft);
1420
+ max-width: 60ch;
1421
+ }
1422
+ .lab-hint-btn {
1423
+ align-self: flex-start;
1424
+ padding: var(--lab-sp-6) var(--lab-sp-14);
1425
+ border-radius: var(--lab-r-pill);
1426
+ border: 1.5px dashed var(--lab-border-strong);
1427
+ background: transparent;
1428
+ color: var(--lab-muted);
1429
+ font-size: var(--lab-t-sm);
1430
+ font-weight: var(--lab-w-medium);
1431
+ cursor: pointer;
1432
+ transition:
1433
+ border-color var(--lab-dur-fast),
1434
+ color var(--lab-dur-fast);
1435
+ }
1436
+ .lab-hint-btn:hover {
1437
+ border-color: var(--lab-accent);
1438
+ color: var(--lab-fg);
1439
+ }
1440
+ .lab-misconception {
1441
+ display: inline-flex;
1442
+ align-items: center;
1443
+ gap: var(--lab-sp-6);
1444
+ font-size: var(--lab-t-sm);
1445
+ font-weight: var(--lab-w-medium);
1446
+ padding: var(--lab-sp-4) var(--lab-sp-12);
1447
+ border-radius: var(--lab-r-pill);
1448
+ color: var(--lab-warn-fg);
1449
+ background: color-mix(in oklab, var(--lab-warn) 22%, var(--lab-surface));
1450
+ }
1451
+
1452
+ /* shared "Show answer" escape hatch (kit/pedagogy RevealSolution) */
1453
+ .lab-reveal-btn {
1454
+ align-self: flex-start;
1455
+ padding: var(--lab-sp-4) var(--lab-sp-12);
1456
+ border-radius: var(--lab-r-pill);
1457
+ border: 1.5px dashed var(--lab-border-strong);
1458
+ background: transparent;
1459
+ color: var(--lab-muted);
1460
+ font-size: var(--lab-t-eyebrow);
1461
+ font-weight: var(--lab-w-medium);
1462
+ cursor: pointer;
1463
+ transition:
1464
+ border-color var(--lab-dur-fast),
1465
+ color var(--lab-dur-fast);
1466
+ }
1467
+ .lab-reveal-btn:hover {
1468
+ border-color: var(--lab-warn);
1469
+ color: var(--lab-fg);
1470
+ }
1471
+ .lab-solution {
1472
+ margin-top: var(--lab-sp-8);
1473
+ max-width: 64ch;
1474
+ padding: var(--lab-sp-10) var(--lab-sp-14);
1475
+ border-radius: var(--lab-r-md);
1476
+ border-color: color-mix(in oklab, var(--lab-warn) 42%, transparent);
1477
+ background: var(--lab-warn-soft);
1478
+ }
1479
+ .lab-solution-h {
1480
+ display: flex;
1481
+ align-items: center;
1482
+ gap: var(--lab-sp-6);
1483
+ font-weight: var(--lab-w-bold);
1484
+ color: var(--lab-warn-fg);
1485
+ }
1486
+ .lab-solution-body {
1487
+ margin-top: var(--lab-sp-4);
1488
+ font-size: var(--lab-t-body);
1489
+ font-weight: var(--lab-w-medium);
1490
+ color: var(--lab-fg);
1491
+ }
1492
+ .lab-solution-note {
1493
+ margin: var(--lab-sp-4) 0 0;
1494
+ font-size: var(--lab-t-eyebrow);
1495
+ opacity: 0.7;
1496
+ }
1497
+
1498
+ /* ── Challenge: predict / classify / explain (kit/pedagogy) ─────────────────
1499
+ A clean card: a quiet eyebrow, a readable prompt, comfortable options. The
1500
+ card surface stays neutral so the accent reads only on the pick/right states,
1501
+ which is what carries meaning. */
1502
+ /* full width: the card aligns with the figure + controls above it instead of
1503
+ floating as a narrower island in the footer */
1504
+ .lab-challenge {
1505
+ display: flex;
1506
+ flex-direction: column;
1507
+ gap: var(--lab-sp-14);
1508
+ width: 100%;
1509
+ padding: var(--lab-sp-14) var(--lab-sp-16);
1510
+ box-shadow: var(--lab-shadow-sm);
1511
+ }
1512
+ .lab-challenge-h {
1513
+ display: flex;
1514
+ align-items: center;
1515
+ gap: var(--lab-sp-6);
1516
+ font-weight: var(--lab-w-bold);
1517
+ letter-spacing: var(--lab-ls-caps);
1518
+ }
1519
+ .lab-challenge-h::before {
1520
+ content: "";
1521
+ width: 7px;
1522
+ height: 7px;
1523
+ border-radius: var(--lab-r-pill);
1524
+ background: var(--lab-accent);
1525
+ }
1526
+ .lab-challenge-count {
1527
+ margin-inline-start: auto;
1528
+ padding: 1px var(--lab-sp-8);
1529
+ border-radius: var(--lab-r-pill);
1530
+ font-variant-numeric: tabular-nums;
1531
+ letter-spacing: 0;
1532
+ font-weight: var(--lab-w-semibold);
1533
+ color: var(--lab-muted);
1534
+ background: color-mix(in oklab, currentColor 8%, transparent);
1535
+ }
1536
+ .lab-challenge-q {
1537
+ display: flex;
1538
+ flex-direction: column;
1539
+ gap: var(--lab-sp-10);
1540
+ align-items: flex-start;
1541
+ min-inline-size: 0;
1542
+ width: 100%;
1543
+ margin: 0;
1544
+ padding: 0;
1545
+ border: 0;
1546
+ }
1547
+ .lab-challenge-q + .lab-challenge-q {
1548
+ padding-top: var(--lab-sp-14);
1549
+ border-top: 1px solid var(--lab-border);
1550
+ }
1551
+ .lab-challenge-prompt {
1552
+ display: flex;
1553
+ align-items: baseline;
1554
+ gap: var(--lab-sp-8);
1555
+ max-width: 68ch;
1556
+ font-size: var(--lab-t-sm);
1557
+ line-height: var(--lab-lh-ui);
1558
+ font-weight: var(--lab-w-medium);
1559
+ color: var(--lab-fg);
1560
+ margin: 0;
1561
+ padding: 0;
1562
+ }
1563
+ .lab-challenge-num {
1564
+ flex: none;
1565
+ display: inline-flex;
1566
+ align-items: center;
1567
+ justify-content: center;
1568
+ min-width: 20px;
1569
+ height: 20px;
1570
+ padding: 0 var(--lab-sp-4);
1571
+ border-radius: var(--lab-r-pill);
1572
+ font-size: var(--lab-t-eyebrow);
1573
+ font-weight: var(--lab-w-bold);
1574
+ font-variant-numeric: tabular-nums;
1575
+ color: var(--lab-accent);
1576
+ background: var(--lab-accent-soft);
1577
+ transform: translateY(1px);
1578
+ }
1579
+ .lab-choices {
1580
+ display: flex;
1581
+ flex-wrap: wrap;
1582
+ gap: var(--lab-sp-10);
1583
+ }
1584
+ /* Answer controls stay content-sized on roomy layouts. Equal-width full-row
1585
+ pills make short choices look like dominant page actions and waste space. */
1586
+ .lab-challenge .lab-choices {
1587
+ display: flex;
1588
+ align-items: stretch;
1589
+ flex-wrap: wrap;
1590
+ width: 100%;
1591
+ }
1592
+ .lab-challenge .lab-choice {
1593
+ flex: 0 1 auto;
1594
+ width: auto;
1595
+ max-width: min(100%, 34rem);
1596
+ min-height: var(--lab-target);
1597
+ padding: var(--lab-sp-8) var(--lab-sp-12);
1598
+ border-width: 1px;
1599
+ font-size: var(--lab-t-sm);
1600
+ font-weight: var(--lab-w-regular);
1601
+ line-height: var(--lab-lh-ui);
1602
+ text-align: center;
1603
+ white-space: normal;
1604
+ }
1605
+ .lab-challenge .lab-choice:hover:not(:disabled) {
1606
+ box-shadow: none;
1607
+ }
1608
+ @container lab-activity (max-width: 34rem) {
1609
+ .lab-challenge .lab-choice {
1610
+ flex-basis: 100%;
1611
+ max-width: 100%;
1612
+ }
1613
+ }
1614
+ /* Authored answers are SENTENCES, not tokens. The base .lab-choice is tuned for
1615
+ a short tile ("42", "True"): bold, large, centred, heavy border. A full clause
1616
+ in that dress reads as competing buttons rather than options to weigh. So in a
1617
+ question fieldset they become an option list: one per row so the left edges
1618
+ align, a lettered handle, body-size regular text, and a quiet border that only
1619
+ takes colour on hover or once picked. The prompt stays the heaviest thing. */
1620
+ .lab-challenge-q .lab-choices {
1621
+ flex-direction: column;
1622
+ align-items: stretch;
1623
+ width: 100%;
1624
+ max-width: 34rem;
1625
+ gap: var(--lab-sp-4);
1626
+ margin-block-start: 2px;
1627
+ counter-reset: lab-answer;
1628
+ }
1629
+ /* Short answers are comparisons, so let learners scan them side by side. Long
1630
+ authored clauses retain the prose list above. The renderer sets this policy;
1631
+ lesson authors do not hand-tune columns or button widths. */
1632
+ .lab-challenge-q[data-response-layout="compact"] .lab-choices {
1633
+ display: grid;
1634
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
1635
+ max-width: 48rem;
1636
+ gap: var(--lab-sp-10);
1637
+ }
1638
+ .lab-challenge-q[data-response-layout="compact"] .lab-choice {
1639
+ height: 100%;
1640
+ }
1641
+ .lab-challenge-q .lab-choice {
1642
+ position: relative;
1643
+ flex: 0 0 auto;
1644
+ width: 100%;
1645
+ max-width: 100%;
1646
+ min-height: 0;
1647
+ justify-content: flex-start;
1648
+ gap: var(--lab-sp-10);
1649
+ padding: var(--lab-sp-8) var(--lab-sp-10);
1650
+ border: 1px solid var(--lab-border);
1651
+ border-radius: var(--lab-r-md);
1652
+ background: var(--lab-surface);
1653
+ /* One step BELOW the 15px prompt. At body size the answers came out larger
1654
+ than the question, which inverts the reading order of the whole block. */
1655
+ font-size: var(--lab-t-sm);
1656
+ font-weight: var(--lab-w-regular);
1657
+ line-height: var(--lab-lh-ui);
1658
+ text-align: start;
1659
+ white-space: normal;
1660
+ }
1661
+ .lab-choice-control {
1662
+ position: absolute !important;
1663
+ inline-size: 1px !important;
1664
+ block-size: 1px !important;
1665
+ margin: 0 !important;
1666
+ opacity: 0;
1667
+ pointer-events: none;
1668
+ }
1669
+ .lab-choice:has(.lab-choice-control:focus-visible) {
1670
+ border-color: var(--lab-accent);
1671
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--lab-accent) 22%, transparent);
1672
+ }
1673
+ .lab-choice[data-disabled] {
1674
+ cursor: not-allowed;
1675
+ opacity: 0.5;
1676
+ }
1677
+ .lab-choice-label {
1678
+ min-inline-size: 0;
1679
+ }
1680
+ /* The letter is a handle, not decoration: it gives the explanation something to
1681
+ point at and keeps every answer's text starting on one vertical line. */
1682
+ .lab-challenge-q .lab-choice::before {
1683
+ counter-increment: lab-answer;
1684
+ content: counter(lab-answer, upper-alpha);
1685
+ flex: none;
1686
+ align-self: flex-start;
1687
+ display: inline-flex;
1688
+ align-items: center;
1689
+ justify-content: center;
1690
+ width: 20px;
1691
+ height: 20px;
1692
+ border-radius: var(--lab-r-pill);
1693
+ background: var(--lab-sunken);
1694
+ border: 1px solid var(--lab-border);
1695
+ color: var(--lab-muted);
1696
+ font-size: var(--lab-t-micro);
1697
+ font-weight: var(--lab-w-medium);
1698
+ line-height: var(--lab-lh-tight);
1699
+ }
1700
+ .lab-challenge-q .lab-choice:hover:not(:disabled) {
1701
+ border-color: var(--lab-accent-edge);
1702
+ background: var(--lab-accent-faint);
1703
+ box-shadow: none;
1704
+ }
1705
+ .lab-challenge-q .lab-choice[data-picked] {
1706
+ font-weight: var(--lab-w-medium);
1707
+ }
1708
+ .lab-challenge-q .lab-choice[data-picked]::before {
1709
+ background: var(--lab-accent-soft);
1710
+ border-color: var(--lab-accent);
1711
+ color: color-mix(in oklab, var(--lab-accent) 80%, var(--lab-fg));
1712
+ }
1713
+ .lab-challenge-q .lab-choice[data-tone="correct"]::before {
1714
+ content: "✓";
1715
+ background: var(--lab-good-soft);
1716
+ border-color: var(--lab-good);
1717
+ color: var(--lab-good-ink);
1718
+ }
1719
+ .lab-challenge-q .lab-choice[data-tone="wrong"]::before {
1720
+ content: "×";
1721
+ background: var(--lab-danger-soft);
1722
+ border-color: var(--lab-danger);
1723
+ color: var(--lab-danger-ink);
1724
+ }
1725
+ .lab-response-entry {
1726
+ display: grid;
1727
+ grid-template-columns: minmax(12rem, 28rem) auto;
1728
+ align-items: center;
1729
+ gap: var(--lab-sp-10);
1730
+ width: min(100%, 38rem);
1731
+ }
1732
+ .lab-response-entry .lab-input {
1733
+ width: 100%;
1734
+ min-width: 0;
1735
+ }
1736
+ .lab-response-entry > :is(.lab-explain, .lab-celebrate) {
1737
+ grid-column: 1 / -1;
1738
+ }
1739
+ .lab-response-entry[data-multiline] {
1740
+ grid-template-columns: minmax(0, 1fr);
1741
+ }
1742
+ .lab-response-entry[data-multiline] > button {
1743
+ justify-self: start;
1744
+ }
1745
+ .lab-ordering-list {
1746
+ display: grid;
1747
+ gap: var(--lab-sp-6);
1748
+ width: min(100%, 38rem);
1749
+ margin: 0;
1750
+ padding: 0;
1751
+ list-style: none;
1752
+ counter-reset: none;
1753
+ }
1754
+ .lab-ordering-list > li {
1755
+ display: grid;
1756
+ grid-template-columns: 1.75rem minmax(0, 1fr) auto;
1757
+ align-items: center;
1758
+ gap: var(--lab-sp-10);
1759
+ min-height: var(--lab-target);
1760
+ padding: var(--lab-sp-4) var(--lab-sp-6) var(--lab-sp-4) var(--lab-sp-8);
1761
+ border: 1px solid var(--lab-border);
1762
+ border-radius: var(--lab-r-md);
1763
+ background: var(--lab-surface);
1764
+ }
1765
+ .lab-ordering-rank {
1766
+ display: grid;
1767
+ place-items: center;
1768
+ width: 1.5rem;
1769
+ height: 1.5rem;
1770
+ border-radius: var(--lab-r-pill);
1771
+ background: var(--lab-sunken);
1772
+ color: var(--lab-muted);
1773
+ font-size: var(--lab-t-eyebrow);
1774
+ font-weight: var(--lab-w-semibold);
1775
+ font-variant-numeric: tabular-nums;
1776
+ }
1777
+ .lab-ordering-label {
1778
+ min-width: 0;
1779
+ font-size: var(--lab-t-sm);
1780
+ line-height: var(--lab-lh-ui);
1781
+ }
1782
+ .lab-ordering-actions {
1783
+ display: inline-flex;
1784
+ gap: 2px;
1785
+ }
1786
+ .lab-reflection-rubric {
1787
+ display: grid;
1788
+ gap: var(--lab-sp-6);
1789
+ width: min(100%, 38rem);
1790
+ padding: var(--lab-sp-12) var(--lab-sp-12);
1791
+ border: 1px solid var(--lab-border);
1792
+ border-radius: var(--lab-r-md);
1793
+ background: var(--lab-sunken);
1794
+ }
1795
+ .lab-reflection-rubric > p {
1796
+ margin: 0;
1797
+ color: var(--lab-muted);
1798
+ font-size: var(--lab-t-eyebrow);
1799
+ font-weight: var(--lab-w-semibold);
1800
+ letter-spacing: var(--lab-ls-caps);
1801
+ text-transform: uppercase;
1802
+ }
1803
+ .lab-reflection-rubric ul {
1804
+ display: grid;
1805
+ gap: var(--lab-sp-6);
1806
+ margin: 0;
1807
+ padding: 0;
1808
+ list-style: none;
1809
+ }
1810
+ .lab-reflection-rubric li {
1811
+ position: relative;
1812
+ padding-inline-start: var(--lab-sp-16);
1813
+ font-size: var(--lab-t-sm);
1814
+ line-height: var(--lab-lh-ui);
1815
+ }
1816
+ .lab-reflection-rubric li::before {
1817
+ position: absolute;
1818
+ inset-inline-start: 2px;
1819
+ color: var(--lab-muted);
1820
+ content: "•";
1821
+ }
1822
+ @container lab-activity (max-width: 30rem) {
1823
+ .lab-challenge-q[data-response-layout="compact"] .lab-choices,
1824
+ .lab-response-entry {
1825
+ grid-template-columns: minmax(0, 1fr);
1826
+ }
1827
+ .lab-response-entry > button {
1828
+ width: 100%;
1829
+ }
1830
+ }
1831
+ /* explanation note: a SENTENCE, so it reads as prose (regular weight, roomy
1832
+ line-height), not a shouting bold status pill. Neutral surface + a slim good
1833
+ edge: the picked choice already carries the green, a second green wash on
1834
+ the note turned the whole card monochrome. */
1835
+ .lab-explain {
1836
+ display: block;
1837
+ padding: var(--lab-sp-8) var(--lab-sp-12);
1838
+ border-radius: var(--lab-r-sm);
1839
+ font-size: var(--lab-t-body);
1840
+ font-weight: var(--lab-w-regular);
1841
+ line-height: var(--lab-lh-prose);
1842
+ color: var(--lab-fg);
1843
+ background: var(--lab-sunken);
1844
+ border-inline-start: 3px solid var(--lab-good);
1845
+ }
1846
+ .lab-explain > b:first-child {
1847
+ color: var(--lab-good-ink);
1848
+ }
1849
+ .lab-explain[data-state="no"] {
1850
+ border-inline-start-color: var(--lab-border-strong);
1851
+ color: var(--lab-muted);
1852
+ }
1853
+ /* ── Evidence: a compact instrument/readout surface ───────────────────────── */
1854
+ .lab-evidence-surface {
1855
+ padding: var(--lab-sp-14) var(--lab-sp-14);
1856
+ font-size: var(--lab-t-body);
1857
+ line-height: var(--lab-lh-prose);
1858
+ background: var(--lab-accent-faint);
1859
+ }
1860
+ .lab-evidence-surface[data-tone="result"] {
1861
+ border-color: var(--lab-border);
1862
+ background: var(--lab-surface);
1863
+ }
1864
+ .lab-evidence-value {
1865
+ display: block;
1866
+ margin-top: 2px;
1867
+ font-size: var(--lab-t-title);
1868
+ font-weight: var(--lab-w-bold);
1869
+ font-variant-numeric: tabular-nums;
1870
+ color: var(--lab-good);
1871
+ }
1872
+ .lab-readout {
1873
+ display: grid;
1874
+ gap: var(--lab-sp-4);
1875
+ font-variant-numeric: tabular-nums;
1876
+ }
1877
+ .lab-readout-label {
1878
+ font-size: var(--lab-t-eyebrow);
1879
+ font-weight: var(--lab-w-semibold);
1880
+ letter-spacing: var(--lab-ls-caps);
1881
+ text-transform: uppercase;
1882
+ color: var(--lab-muted);
1883
+ }
1884
+ .lab-readout-val {
1885
+ font-weight: var(--lab-w-bold);
1886
+ font-size: var(--lab-t-title);
1887
+ line-height: var(--lab-lh-title);
1888
+ letter-spacing: var(--lab-ls-tight);
1889
+ color: var(--lab-fg);
1890
+ }
1891
+ .lab-readout-sub {
1892
+ font-size: var(--lab-t-eyebrow);
1893
+ line-height: var(--lab-lh-ui);
1894
+ color: var(--lab-muted);
1895
+ }
1896
+ /* Stat readout: a stack of aligned "label … value" rows (StatList + Stat) — reads
1897
+ like a clean instrument panel, hairline dividers between rows for spec-sheet order. */
1898
+ .lab-statlist {
1899
+ display: grid;
1900
+ gap: var(--lab-sp-6);
1901
+ font-size: var(--lab-t-sm);
1902
+ font-variant-numeric: tabular-nums;
1903
+ }
1904
+ .lab-stat {
1905
+ display: flex;
1906
+ align-items: baseline;
1907
+ justify-content: space-between;
1908
+ gap: var(--lab-sp-14);
1909
+ }
1910
+ .lab-stat + .lab-stat {
1911
+ padding-top: var(--lab-sp-6);
1912
+ border-top: 1px solid var(--lab-hairline);
1913
+ }
1914
+ .lab-stat-label {
1915
+ color: var(--lab-muted);
1916
+ }
1917
+ .lab-stat-val {
1918
+ font-weight: var(--lab-w-bold);
1919
+ color: var(--lab-fg);
1920
+ letter-spacing: var(--lab-ls-tight);
1921
+ }
1922
+ .lab-stat-val[data-tone="good"] {
1923
+ color: var(--lab-good);
1924
+ }
1925
+ .lab-stat-val[data-tone="warn"] {
1926
+ color: var(--lab-warn);
1927
+ }
1928
+ .lab-stat-val[data-tone="danger"] {
1929
+ color: var(--lab-danger);
1930
+ }
1931
+
1932
+ /* Compatibility surface for domain evidence authored before StatList existed.
1933
+ Keep the visual contract here so those labs remain aligned and readable while
1934
+ their JSX can migrate incrementally without subject-specific CSS. */
1935
+ .lab-metric-list {
1936
+ display: grid;
1937
+ gap: 0;
1938
+ min-width: 0;
1939
+ overflow: hidden;
1940
+ border: 1px solid var(--lab-border);
1941
+ border-radius: var(--lab-r-md);
1942
+ background: var(--lab-surface);
1943
+ font-size: var(--lab-t-sm);
1944
+ font-variant-numeric: tabular-nums;
1945
+ }
1946
+ .lab-metric-list > div {
1947
+ display: grid;
1948
+ grid-template-columns: minmax(0, 1fr) auto;
1949
+ align-items: baseline;
1950
+ gap: var(--lab-sp-10);
1951
+ padding: var(--lab-sp-10) var(--lab-sp-14);
1952
+ }
1953
+ .lab-metric-list > div + div {
1954
+ border-top: 1px solid var(--lab-hairline);
1955
+ }
1956
+ .lab-metric-list > div > span {
1957
+ min-width: 0;
1958
+ color: var(--lab-muted);
1959
+ line-height: var(--lab-lh-ui);
1960
+ }
1961
+ .lab-metric-list > div > strong {
1962
+ color: var(--lab-fg);
1963
+ font-weight: var(--lab-w-bold);
1964
+ text-align: end;
1965
+ }
1966
+
1967
+ /* Step progress (deck labs) — a slim segmented indicator above the title, the
1968
+ premium "lesson progress" affordance that replaces a "2 / 4" text pill. */
1969
+ .lab-progress {
1970
+ display: inline-flex;
1971
+ align-items: center;
1972
+ gap: var(--lab-sp-10);
1973
+ font-size: var(--lab-t-sm);
1974
+ font-weight: var(--lab-w-semibold);
1975
+ color: var(--lab-muted);
1976
+ font-variant-numeric: tabular-nums;
1977
+ }
1978
+ .lab-progress-segs {
1979
+ display: inline-flex;
1980
+ gap: var(--lab-sp-4);
1981
+ }
1982
+ .lab-progress-seg {
1983
+ width: 24px;
1984
+ height: 6px;
1985
+ border-radius: var(--lab-r-pill);
1986
+ background: var(--lab-border-strong);
1987
+ transition: background var(--lab-dur-base) var(--lab-ease);
1988
+ }
1989
+ .lab-progress-seg[data-on="true"] {
1990
+ background: var(--lab-accent);
1991
+ }
1992
+ .lab-progress-bar {
1993
+ display: inline-block;
1994
+ width: 132px;
1995
+ height: 6px;
1996
+ border-radius: var(--lab-r-pill);
1997
+ background: var(--lab-border-strong);
1998
+ overflow: hidden;
1999
+ }
2000
+ .lab-progress-bar-fill {
2001
+ display: block;
2002
+ height: 100%;
2003
+ background: var(--lab-accent);
2004
+ border-radius: var(--lab-r-pill);
2005
+ transition: width var(--lab-dur-slow) var(--lab-ease);
2006
+ }
2007
+ .lab-progress[data-complete="true"] {
2008
+ gap: var(--lab-sp-4);
2009
+ padding: var(--lab-sp-4) var(--lab-sp-12);
2010
+ border-radius: var(--lab-r-pill);
2011
+ color: var(--lab-good-ink);
2012
+ background: var(--lab-good-soft);
2013
+ }
2014
+ .lab-progress-check {
2015
+ font-weight: var(--lab-w-bold);
2016
+ }
2017
+ .lab-prompt {
2018
+ margin: 0;
2019
+ font-size: var(--lab-t-body);
2020
+ line-height: var(--lab-lh-ui);
2021
+ color: var(--lab-muted);
2022
+ max-width: 68ch;
2023
+ }
2024
+ .lab-reps {
2025
+ display: grid;
2026
+ grid-template-columns: minmax(0, 1fr) minmax(150px, 0.3fr);
2027
+ gap: var(--lab-sp-16);
2028
+ align-items: center;
2029
+ }
2030
+ .lab-reps-plot {
2031
+ min-width: 0;
2032
+ }
2033
+ .lab-reps-views {
2034
+ display: flex;
2035
+ flex-wrap: wrap;
2036
+ gap: var(--lab-sp-10) var(--lab-sp-14);
2037
+ justify-content: center;
2038
+ align-items: flex-end;
2039
+ }
2040
+ .lab-rep {
2041
+ display: flex;
2042
+ flex-direction: column;
2043
+ align-items: center;
2044
+ gap: var(--lab-sp-2);
2045
+ }
2046
+ .lab-rep-cap {
2047
+ font-size: var(--lab-t-eyebrow);
2048
+ font-weight: var(--lab-w-semibold);
2049
+ letter-spacing: var(--lab-ls-caps);
2050
+ text-transform: uppercase;
2051
+ color: var(--lab-muted);
2052
+ }
2053
+ .lab-linked-stack {
2054
+ display: grid;
2055
+ gap: var(--lab-sp-14);
2056
+ }
2057
+ @container lab-activity (max-width: 38rem) {
2058
+ .lab-reps {
2059
+ grid-template-columns: minmax(0, 1fr);
2060
+ }
2061
+ }
2062
+
2063
+ /* ── Circuit editor: wiring pin affordance ─────────────────────────────────────
2064
+ Every pin is a click-to-wire point; make that obvious. The dot grows + glows on
2065
+ hover with a crosshair cursor and a tooltip; the armed pin pulses; while a wire
2066
+ is pending the other pins read as connect targets. */
2067
+ .lab-pin {
2068
+ cursor: crosshair;
2069
+ }
2070
+ .lab-pin-dot {
2071
+ r: 5.5;
2072
+ transition:
2073
+ r var(--lab-dur-fast) var(--lab-ease),
2074
+ stroke-width var(--lab-dur-fast) var(--lab-ease),
2075
+ filter var(--lab-dur-fast) var(--lab-ease);
2076
+ }
2077
+ .lab-pin:hover .lab-pin-dot {
2078
+ r: 8.5;
2079
+ stroke-width: 3;
2080
+ filter: drop-shadow(0 0 4px color-mix(in oklab, var(--stage-accent, #3b82f6) 75%, transparent));
2081
+ }
2082
+ .lab-pin:focus-visible {
2083
+ outline: none;
2084
+ }
2085
+ .lab-pin:focus-visible .lab-pin-dot {
2086
+ r: 8.5;
2087
+ stroke-width: 3;
2088
+ filter: drop-shadow(0 0 4px color-mix(in oklab, var(--stage-accent, #3b82f6) 75%, transparent));
2089
+ }
2090
+ .lab-pin[data-target] .lab-pin-dot {
2091
+ r: 6.5;
2092
+ stroke-width: 2.5;
2093
+ }
2094
+ .lab-pin[data-armed] .lab-pin-dot {
2095
+ r: 7.5;
2096
+ animation: lab-pin-pulse 1.1s var(--lab-ease-in-out) infinite;
2097
+ }
2098
+ @keyframes lab-pin-pulse {
2099
+ 0%,
2100
+ 100% {
2101
+ stroke-width: 2.5;
2102
+ }
2103
+ 50% {
2104
+ stroke-width: 5;
2105
+ }
2106
+ }
2107
+ @media (prefers-reduced-motion: reduce) {
2108
+ /* the armed pin cannot pulse, so it is simply heavier */
2109
+ .lab-pin[data-armed] .lab-pin-dot {
2110
+ stroke-width: 4;
2111
+ }
2112
+ }
2113
+ .lab-control-expr {
2114
+ grid-column: 1 / -1;
2115
+ display: flex;
2116
+ align-items: center;
2117
+ flex-wrap: wrap;
2118
+ gap: var(--lab-sp-8);
2119
+ font-weight: var(--lab-w-medium);
2120
+ }
2121
+
2122
+ /* a labelled control: small caps label, then control + value on one row */
2123
+ .lab-field {
2124
+ display: flex;
2125
+ flex-direction: column;
2126
+ gap: var(--lab-sp-4);
2127
+ min-width: 0;
2128
+ }
2129
+ .lab-field-row {
2130
+ display: inline-flex;
2131
+ align-items: center;
2132
+ gap: var(--lab-sp-8);
2133
+ flex-wrap: wrap;
2134
+ }
2135
+ .lab-field > .lab-field-row {
2136
+ display: flex;
2137
+ width: 100%;
2138
+ }
2139
+ .lab-field-val {
2140
+ font-size: var(--lab-t-body);
2141
+ font-weight: var(--lab-w-bold);
2142
+ font-variant-numeric: tabular-nums;
2143
+ min-width: 3.4em;
2144
+ text-align: end;
2145
+ }
2146
+ .lab-field > .lab-field-row > .lab-field-val {
2147
+ margin-inline-start: auto;
2148
+ }
2149
+ .lab-field .lab-slider {
2150
+ flex: 1 1 auto;
2151
+ width: auto;
2152
+ min-width: 60px;
2153
+ }
2154
+ /* A slider must read as a TRACK even at its minimum. shadcn paints the track `bg-muted`, which is
2155
+ the same tone as the controls dock it sits on, so a slider at value 0 (a scrubber before Play,
2156
+ most obviously) showed only its thumb: a stray dot with no control around it. */
2157
+ .lab-slider [data-slot="slider-track"] {
2158
+ background: color-mix(in oklab, var(--stage-fg) 15%, transparent);
2159
+ }
2160
+ .lab-locked-wrap {
2161
+ display: contents;
2162
+ }
2163
+ .lab-field[data-locked="true"] .lab-field-row {
2164
+ opacity: 0.62;
2165
+ }
2166
+ .lab-field-lock {
2167
+ display: inline-block;
2168
+ width: 0.82em;
2169
+ height: 0.82em;
2170
+ margin-inline-start: 0.3em;
2171
+ vertical-align: -0.05em;
2172
+ opacity: 0.7;
2173
+ }
2174
+
2175
+ /* ── Play-gate for hand-driven sim labs ────────────────────────────────────── */
2176
+ .lab-playwrap {
2177
+ position: relative;
2178
+ }
2179
+ .lab-play-toggle {
2180
+ position: absolute;
2181
+ inset-block-start: var(--lab-sp-10);
2182
+ inset-inline-end: var(--lab-sp-10);
2183
+ z-index: var(--lab-z-raised);
2184
+ display: inline-flex;
2185
+ align-items: center;
2186
+ gap: var(--lab-sp-6);
2187
+ min-width: 34px;
2188
+ height: 32px;
2189
+ padding: 0 var(--lab-sp-12);
2190
+ border-radius: var(--lab-r-pill);
2191
+ border: 1px solid var(--lab-border-strong);
2192
+ background: color-mix(in oklab, var(--lab-surface) 88%, transparent);
2193
+ color: var(--lab-fg);
2194
+ cursor: pointer;
2195
+ font-size: var(--lab-t-sm);
2196
+ font-weight: var(--lab-w-semibold);
2197
+ box-shadow: var(--lab-shadow-sm);
2198
+ transition:
2199
+ filter var(--lab-dur-fast),
2200
+ transform var(--lab-dur-fast);
2201
+ }
2202
+ .lab-play-toggle:hover {
2203
+ filter: brightness(1.05);
2204
+ }
2205
+ .lab-play-toggle:active {
2206
+ transform: translateY(1px);
2207
+ }
2208
+ .lab-play-toggle[data-playing="false"] {
2209
+ background: var(--lab-accent);
2210
+ color: var(--lab-accent-fg);
2211
+ border-color: transparent;
2212
+ }
2213
+
2214
+ /* ── In-lab stepper (teach one idea at a time) ─────────────────────────────── */
2215
+ .lab-stepnav {
2216
+ display: flex;
2217
+ align-items: center;
2218
+ gap: var(--lab-sp-14);
2219
+ }
2220
+ .lab-dots {
2221
+ display: inline-flex;
2222
+ gap: var(--lab-sp-6);
2223
+ }
2224
+ .lab-dot {
2225
+ width: 8px;
2226
+ height: 8px;
2227
+ border-radius: var(--lab-r-pill);
2228
+ background: var(--lab-border-strong);
2229
+ transition: background var(--lab-dur-base);
2230
+ }
2231
+ .lab-dot[data-on="true"] {
2232
+ background: var(--lab-accent);
2233
+ }
2234
+
2235
+ :root {
2236
+ --lang-pos-noun: oklch(0.5 0.13 264);
2237
+ --lang-pos-verb: oklch(0.53 0.18 25);
2238
+ --lang-pos-article: oklch(0.52 0.12 150);
2239
+ --lang-pos-adjective: oklch(0.55 0.12 60);
2240
+ --lang-pos-preposition: oklch(0.52 0.12 235);
2241
+ --lang-pos-pronoun: oklch(0.52 0.16 300);
2242
+ --lang-pos-conjunction: oklch(0.55 0.16 350);
2243
+ --lang-pos-adverb: oklch(0.52 0.11 195);
2244
+ --lang-pos-other: oklch(0.5 0.02 260);
2245
+ }
2246
+
2247
+ .lang-lab {
2248
+ position: relative;
2249
+ }
2250
+
2251
+ /* 600px held every language figure to well under its column on desktop. */
2252
+ .lang-lab {
2253
+ max-width: min(100%, 46rem);
2254
+ margin-inline: auto;
2255
+ }
2256
+ .lang-sentence,
2257
+ .lang-choices,
2258
+ .lang-listen-play,
2259
+ .lang-dictation-foot,
2260
+ .lang-bank,
2261
+ .lang-line {
2262
+ justify-content: center;
2263
+ }
2264
+ .lang-cloze,
2265
+ .lang-errsentence,
2266
+ .lang-why {
2267
+ text-align: center;
2268
+ }
2269
+ .lang-match {
2270
+ margin-inline: auto;
2271
+ }
2272
+ .lang-lab .lab-misconception {
2273
+ display: flex;
2274
+ width: fit-content;
2275
+ margin-inline: auto;
2276
+ }
2277
+ .lang-hint {
2278
+ font-size: var(--lab-t-sm);
2279
+ color: var(--lab-muted);
2280
+ margin: 0 0 var(--lab-sp-10);
2281
+ }
2282
+ .lang-prompt {
2283
+ font-size: var(--lab-t-lg);
2284
+ font-weight: var(--lab-w-medium);
2285
+ margin: 0 0 var(--lab-sp-12);
2286
+ color: var(--lab-fg);
2287
+ }
2288
+
2289
+ .lang-tile {
2290
+ display: inline-flex;
2291
+ flex-direction: column;
2292
+ align-items: center;
2293
+ gap: 1px;
2294
+ padding: var(--lab-sp-8) var(--lab-sp-14);
2295
+ border: 0;
2296
+ border-radius: var(--lab-r-md);
2297
+ background: var(--pos, var(--lang-pos-other));
2298
+ color: var(--lab-accent-fg);
2299
+ font-weight: var(--lab-w-semibold);
2300
+ font-size: var(--lab-t-body);
2301
+ line-height: var(--lab-lh-title);
2302
+ cursor: pointer;
2303
+ box-shadow: var(--lab-shadow-sm);
2304
+ transition:
2305
+ transform var(--lab-dur-fast),
2306
+ filter var(--lab-dur-fast),
2307
+ box-shadow var(--lab-dur-fast);
2308
+ }
2309
+ .lang-tile:hover {
2310
+ filter: brightness(1.08);
2311
+ }
2312
+ .lang-tile:active {
2313
+ transform: translateY(1px);
2314
+ }
2315
+ .lang-tile[data-sel="true"] {
2316
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--pos) 55%, transparent);
2317
+ }
2318
+ .lang-tile[data-dim="true"] {
2319
+ opacity: 0.4;
2320
+ }
2321
+ .lang-tile-text {
2322
+ font-size: var(--lab-t-body);
2323
+ }
2324
+ .lang-tile-gloss {
2325
+ font-size: var(--lab-t-eyebrow);
2326
+ font-weight: var(--lab-w-medium);
2327
+ opacity: 0.82;
2328
+ }
2329
+
2330
+ .lang-line {
2331
+ display: flex;
2332
+ flex-wrap: wrap;
2333
+ gap: var(--lab-sp-8);
2334
+ align-items: center;
2335
+ min-height: 56px;
2336
+ padding: var(--lab-sp-12);
2337
+ border-radius: var(--lab-r-lg);
2338
+ border: 2px dashed var(--lab-border-strong);
2339
+ background: var(--lab-sunken);
2340
+ transition:
2341
+ border-color var(--lab-dur-fast),
2342
+ background var(--lab-dur-fast);
2343
+ }
2344
+ .lang-line[data-state="ok"] {
2345
+ border-style: solid;
2346
+ border-color: var(--lab-good);
2347
+ background: var(--lab-good-soft);
2348
+ }
2349
+ .lang-line[data-state="no"] {
2350
+ border-color: var(--lab-danger);
2351
+ }
2352
+ .lang-line-empty {
2353
+ font-size: var(--lab-t-sm);
2354
+ color: var(--lab-muted);
2355
+ }
2356
+ .lang-bank {
2357
+ display: flex;
2358
+ flex-wrap: wrap;
2359
+ gap: var(--lab-sp-8);
2360
+ margin-top: var(--lab-sp-12);
2361
+ }
2362
+
2363
+ .lang-speak {
2364
+ display: inline-flex;
2365
+ align-items: center;
2366
+ justify-content: center;
2367
+ width: 26px;
2368
+ height: 26px;
2369
+ margin-inline-start: 2px;
2370
+ border: 0;
2371
+ border-radius: var(--lab-r-pill);
2372
+ background: color-mix(in oklab, currentColor 12%, transparent);
2373
+ color: inherit;
2374
+ font-size: var(--lab-t-sm);
2375
+ cursor: pointer;
2376
+ transition: background var(--lab-dur-fast);
2377
+ }
2378
+ .lang-speak:hover {
2379
+ background: color-mix(in oklab, var(--lab-accent) 22%, transparent);
2380
+ }
2381
+
2382
+ .lang-match {
2383
+ display: grid;
2384
+ grid-template-columns: 1fr 1fr;
2385
+ gap: var(--lab-sp-10) var(--lab-sp-24);
2386
+ max-width: 520px;
2387
+ }
2388
+ .lang-col {
2389
+ display: flex;
2390
+ flex-direction: column;
2391
+ gap: var(--lab-sp-8);
2392
+ }
2393
+ .lang-match-row {
2394
+ position: relative;
2395
+ display: flex;
2396
+ align-items: center;
2397
+ }
2398
+ .lang-match-row .lang-match-cell {
2399
+ flex: 1;
2400
+ padding-inline-end: 40px;
2401
+ }
2402
+ .lang-match-row .lang-speak {
2403
+ position: absolute;
2404
+ inset-block-start: 50%;
2405
+ inset-inline-end: var(--lab-sp-8);
2406
+ transform: translateY(-50%);
2407
+ margin: 0;
2408
+ }
2409
+ .lang-cell-sub {
2410
+ font-size: var(--lab-t-eyebrow);
2411
+ color: var(--lab-muted);
2412
+ font-weight: var(--lab-w-regular);
2413
+ }
2414
+ .lang-cell-icon {
2415
+ font-size: 36px;
2416
+ line-height: var(--lab-lh-tight);
2417
+ }
2418
+ .lang-icon-image {
2419
+ object-fit: contain;
2420
+ }
2421
+ .lang-icon-svg {
2422
+ display: inline-flex;
2423
+ }
2424
+ @keyframes lang-shake {
2425
+ 0%,
2426
+ 100% {
2427
+ transform: translateX(0);
2428
+ }
2429
+ 25% {
2430
+ transform: translateX(-4px);
2431
+ }
2432
+ 75% {
2433
+ transform: translateX(4px);
2434
+ }
2435
+ }
2436
+
2437
+ /* Language activities share the same responsive anatomy while keeping their
2438
+ domain-specific tiles, passages, audio, and grammar scenes. */
2439
+ .language-activity .lab-activity-status {
2440
+ justify-content: flex-start;
2441
+ }
2442
+ .language-activity .lab-activity-workspace {
2443
+ padding: clamp(0.75rem, 2.2vw, 1.25rem);
2444
+ }
2445
+ .language-activity .lab-activity-canvas {
2446
+ align-content: start;
2447
+ }
2448
+ .language-activity-support {
2449
+ padding: 0 var(--lab-sp-16) var(--lab-sp-14);
2450
+ }
2451
+ .language-activity-support > .lab-challenge {
2452
+ margin: 0;
2453
+ }
2454
+ .language-activity .lab-activity-transport {
2455
+ display: flex;
2456
+ flex-wrap: wrap;
2457
+ justify-content: center;
2458
+ min-height: 4rem;
2459
+ }
2460
+ .language-activity .lab-activity-transport .lab-btn,
2461
+ .language-activity .lang-audio-action {
2462
+ border-radius: var(--lab-r-md);
2463
+ }
2464
+ .lang-audio-action {
2465
+ display: inline-flex;
2466
+ align-items: center;
2467
+ justify-content: center;
2468
+ gap: var(--lab-sp-8);
2469
+ min-height: var(--lab-target);
2470
+ padding-inline: var(--lab-sp-16);
2471
+ }
2472
+ .lang-listen-play {
2473
+ display: flex;
2474
+ justify-content: center;
2475
+ margin: 0 0 var(--lab-sp-16);
2476
+ }
2477
+ .lang-listen-play .lang-audio-action {
2478
+ min-width: 8.5rem;
2479
+ }
2480
+
2481
+ .lang-listening-choices .lab-choices {
2482
+ justify-content: center;
2483
+ }
2484
+
2485
+ .lang-listening-choices[data-layout="picture"] .lab-choice {
2486
+ min-width: 5rem;
2487
+ min-height: 4.5rem;
2488
+ }
2489
+
2490
+ @container lab-activity (max-width: 42.5rem) {
2491
+ .language-activity .lab-activity-workspace {
2492
+ padding: var(--lab-sp-12);
2493
+ }
2494
+ .language-activity-support {
2495
+ padding-inline: var(--lab-sp-12);
2496
+ }
2497
+ .language-activity .lang-choices,
2498
+ .language-activity .lang-match {
2499
+ gap: var(--lab-sp-8);
2500
+ }
2501
+ .language-activity .lang-choice {
2502
+ padding-inline: var(--lab-sp-14);
2503
+ }
2504
+ }
2505
+
2506
+ .lang-sentence {
2507
+ display: flex;
2508
+ flex-wrap: wrap;
2509
+ align-items: center;
2510
+ gap: var(--lab-sp-8);
2511
+ font-size: var(--lab-t-title);
2512
+ font-weight: var(--lab-w-medium);
2513
+ color: var(--lab-fg);
2514
+ margin: var(--lab-sp-6) 0 var(--lab-sp-16);
2515
+ }
2516
+ .lang-cloze {
2517
+ font-size: var(--lab-t-lg);
2518
+ line-height: 2.4;
2519
+ font-weight: var(--lab-w-medium);
2520
+ color: var(--lab-fg);
2521
+ margin: var(--lab-sp-6) 0 var(--lab-sp-16);
2522
+ }
2523
+ .lang-cloze .lang-speak {
2524
+ vertical-align: middle;
2525
+ }
2526
+ .lang-dictation-foot {
2527
+ display: flex;
2528
+ flex-wrap: wrap;
2529
+ align-items: center;
2530
+ justify-content: flex-end;
2531
+ gap: var(--lab-sp-12);
2532
+ margin-top: var(--lab-sp-12);
2533
+ }
2534
+ .lang-dictation-card {
2535
+ width: min(100%, 32rem);
2536
+ margin-inline: auto;
2537
+ overflow: hidden;
2538
+ border: 1px solid var(--lab-border);
2539
+ border-radius: var(--lab-r-lg);
2540
+ background: var(--lab-surface);
2541
+ box-shadow: var(--lab-shadow-sm);
2542
+ }
2543
+ .lang-dictation-toolbar {
2544
+ display: flex;
2545
+ align-items: center;
2546
+ gap: var(--lab-sp-12);
2547
+ padding: var(--lab-sp-12);
2548
+ border-bottom: 1px solid var(--lab-border);
2549
+ background: var(--lab-sunken);
2550
+ }
2551
+ .lang-dictation-toolbar > span {
2552
+ color: var(--lab-muted);
2553
+ font-size: var(--lab-t-sm);
2554
+ }
2555
+ .lang-dictation-toolbar .lang-audio-action {
2556
+ flex: none;
2557
+ min-height: var(--lab-target);
2558
+ border: 1px solid var(--lab-accent-edge);
2559
+ background: var(--lab-surface);
2560
+ color: var(--lab-accent);
2561
+ box-shadow: none;
2562
+ }
2563
+ .lang-dictation-answer {
2564
+ display: grid;
2565
+ gap: var(--lab-sp-6);
2566
+ padding: var(--lab-sp-16) var(--lab-sp-16) 0;
2567
+ }
2568
+ .lang-dictation-answer > label {
2569
+ color: var(--lab-muted);
2570
+ font-size: var(--lab-t-eyebrow);
2571
+ font-weight: var(--lab-w-semibold);
2572
+ letter-spacing: var(--lab-ls-caps);
2573
+ text-transform: uppercase;
2574
+ }
2575
+ .lang-dictation-input-row {
2576
+ display: grid;
2577
+ grid-template-columns: minmax(0, 1fr) auto;
2578
+ gap: var(--lab-sp-8);
2579
+ }
2580
+ .lang-dictation-input-row .lab-input {
2581
+ width: 100%;
2582
+ min-height: var(--lab-target);
2583
+ }
2584
+ .lang-dictation-input-row .lab-btn {
2585
+ min-width: 5.5rem;
2586
+ border-radius: var(--lab-r-md);
2587
+ }
2588
+ .lang-dictation-card .lang-dictation-foot {
2589
+ padding: 0 var(--lab-sp-16) var(--lab-sp-16);
2590
+ }
2591
+ @container lab-activity (max-width: 32rem) {
2592
+ .lang-dictation-toolbar > span {
2593
+ display: none;
2594
+ }
2595
+ .lang-dictation-toolbar .lang-audio-action {
2596
+ width: 100%;
2597
+ }
2598
+ .lang-dictation-input-row {
2599
+ grid-template-columns: 1fr;
2600
+ }
2601
+ .lang-dictation-input-row .lab-btn {
2602
+ width: 100%;
2603
+ }
2604
+ }
2605
+ .lang-reveal {
2606
+ font-size: var(--lab-t-lg);
2607
+ font-weight: var(--lab-w-bold);
2608
+ letter-spacing: var(--lab-ls-caps);
2609
+ color: var(--lab-fg);
2610
+ font-variant-numeric: tabular-nums;
2611
+ }
2612
+ .lang-errsentence {
2613
+ font-size: var(--lab-t-title);
2614
+ line-height: 2;
2615
+ font-weight: var(--lab-w-medium);
2616
+ color: var(--lab-fg);
2617
+ margin: var(--lab-sp-6) 0 var(--lab-sp-12);
2618
+ }
2619
+ .lang-word {
2620
+ border: 0;
2621
+ background: transparent;
2622
+ color: inherit;
2623
+ font: inherit;
2624
+ padding: 2px var(--lab-sp-2);
2625
+ border-radius: var(--lab-r-sm);
2626
+ cursor: pointer;
2627
+ transition:
2628
+ background var(--lab-dur-fast),
2629
+ color var(--lab-dur-fast),
2630
+ transform var(--lab-dur-fast);
2631
+ }
2632
+ .lang-word:hover:not(:disabled) {
2633
+ background: var(--lab-accent-soft);
2634
+ }
2635
+ .lang-word[data-state="no"] {
2636
+ color: var(--lab-danger);
2637
+ background: var(--lab-danger-soft);
2638
+ animation: lang-shake 0.42s;
2639
+ }
2640
+ .lang-word:disabled {
2641
+ cursor: default;
2642
+ }
2643
+ .lang-fix {
2644
+ padding: 2px var(--lab-sp-8);
2645
+ border-radius: var(--lab-r-sm);
2646
+ font-weight: var(--lab-w-bold);
2647
+ color: var(--lab-good);
2648
+ background: var(--lab-good-soft);
2649
+ }
2650
+ .lang-reading {
2651
+ display: grid;
2652
+ gap: var(--lab-sp-12);
2653
+ }
2654
+ .lang-passage {
2655
+ padding: var(--lab-sp-16) var(--lab-sp-16);
2656
+ border-radius: var(--lab-r-lg);
2657
+ background: var(--lab-sunken);
2658
+ font-size: var(--lab-t-body);
2659
+ line-height: var(--lab-lh-prose);
2660
+ color: var(--lab-fg);
2661
+ max-width: 68ch;
2662
+ }
2663
+ .lang-passage p {
2664
+ margin: 0 0 var(--lab-sp-10);
2665
+ }
2666
+ .lang-passage p:last-child {
2667
+ margin-bottom: 0;
2668
+ }
2669
+ .lang-gloss {
2670
+ display: flex;
2671
+ flex-wrap: wrap;
2672
+ gap: var(--lab-sp-6) var(--lab-sp-16);
2673
+ font-size: var(--lab-t-sm);
2674
+ color: var(--lab-muted);
2675
+ }
2676
+ .lang-gloss-row b {
2677
+ color: var(--lab-fg);
2678
+ font-weight: var(--lab-w-semibold);
2679
+ }
2680
+ .lang-blank {
2681
+ display: inline-flex;
2682
+ align-items: center;
2683
+ justify-content: center;
2684
+ min-width: 52px;
2685
+ padding: 2px var(--lab-sp-12);
2686
+ border-radius: var(--lab-r-sm);
2687
+ border: 2px dashed var(--lab-border-strong);
2688
+ background: var(--lab-sunken);
2689
+ font-weight: var(--lab-w-bold);
2690
+ }
2691
+ .lang-blank[data-state="ok"] {
2692
+ border-style: solid;
2693
+ border-color: var(--lab-good);
2694
+ color: var(--lab-good);
2695
+ background: var(--lab-good-soft);
2696
+ }
2697
+ .lang-blank[data-state="no"] {
2698
+ border-style: solid;
2699
+ border-color: var(--lab-danger);
2700
+ color: var(--lab-danger);
2701
+ }
2702
+ .lang-noun,
2703
+ .lang-subject {
2704
+ font-weight: var(--lab-w-semibold);
2705
+ }
2706
+ .lang-subject[data-ok="true"] {
2707
+ color: var(--lang-pos-pronoun);
2708
+ }
2709
+ .lang-link {
2710
+ color: var(--lab-good);
2711
+ font-weight: var(--lab-w-bold);
2712
+ }
2713
+ .lang-choices {
2714
+ display: flex;
2715
+ flex-wrap: wrap;
2716
+ gap: var(--lab-sp-10);
2717
+ }
2718
+ .lang-why {
2719
+ font-size: var(--lab-t-body);
2720
+ font-weight: var(--lab-w-medium);
2721
+ margin: var(--lab-sp-12) 0 0;
2722
+ }
2723
+ .lang-why[data-state="ok"] {
2724
+ color: var(--lab-good);
2725
+ }
2726
+ .lang-why[data-state="no"] {
2727
+ color: var(--lab-muted);
2728
+ }
2729
+
2730
+ .lang-from {
2731
+ display: flex;
2732
+ flex-wrap: wrap;
2733
+ gap: var(--lab-sp-8);
2734
+ align-items: center;
2735
+ opacity: 0.85;
2736
+ }
2737
+ .lang-from .lang-tile {
2738
+ filter: saturate(0.7);
2739
+ cursor: default;
2740
+ }
2741
+ .lang-arrow {
2742
+ font-size: var(--lab-t-title);
2743
+ font-weight: var(--lab-w-bold);
2744
+ color: var(--lab-muted);
2745
+ margin: var(--lab-sp-4) 0;
2746
+ text-align: center;
2747
+ width: 100%;
2748
+ }
2749
+
2750
+ .lang-scene {
2751
+ display: flex;
2752
+ justify-content: center;
2753
+ padding: var(--lab-sp-4) 0 var(--lab-sp-10);
2754
+ }
2755
+ .lang-prepscene {
2756
+ position: relative;
2757
+ width: 240px;
2758
+ height: 172px;
2759
+ overflow: hidden;
2760
+ border-radius: var(--lab-r-md);
2761
+ border: 1px solid var(--lab-border);
2762
+ background: color-mix(in oklab, currentColor 3%, transparent);
2763
+ }
2764
+ .lang-preplandmark {
2765
+ position: absolute;
2766
+ left: var(--landmark-x, 50%);
2767
+ top: 56%;
2768
+ transform: translate(-50%, -50%);
2769
+ font-size: 62px;
2770
+ line-height: var(--lab-lh-tight);
2771
+ }
2772
+ .lang-prepfig {
2773
+ position: absolute;
2774
+ font-size: 38px;
2775
+ line-height: var(--lab-lh-tight);
2776
+ filter: drop-shadow(0 1px 1.5px color-mix(in oklab, currentColor 30%, transparent));
2777
+ }
2778
+ .lang-backdrop {
2779
+ position: absolute;
2780
+ inset: 0;
2781
+ overflow: hidden;
2782
+ }
2783
+ .lang-backdrop[data-kind="sky"] {
2784
+ background:
2785
+ radial-gradient(
2786
+ circle at 78% 18%,
2787
+ color-mix(in oklab, var(--stage-warn) 38%, transparent) 0 8%,
2788
+ transparent 9%
2789
+ ),
2790
+ linear-gradient(
2791
+ 180deg,
2792
+ color-mix(in oklab, var(--stage-accent) 24%, var(--stage-bg)),
2793
+ var(--stage-bg)
2794
+ );
2795
+ }
2796
+ .lang-backdrop[data-kind="water"] {
2797
+ top: 48%;
2798
+ border-radius: var(--lab-r-lg) var(--lab-r-lg) 0 0 / var(--lab-r-md) var(--lab-r-md) 0 0;
2799
+ background:
2800
+ repeating-linear-gradient(
2801
+ 170deg,
2802
+ transparent 0 0.8rem,
2803
+ color-mix(in oklab, white 22%, transparent) 0.85rem 0.95rem
2804
+ ),
2805
+ linear-gradient(
2806
+ 180deg,
2807
+ color-mix(in oklab, var(--stage-accent) 65%, #7fc8ff),
2808
+ color-mix(in oklab, var(--stage-accent) 80%, #174f92)
2809
+ );
2810
+ }
2811
+ .lang-backdrop[data-kind="ground"] {
2812
+ top: 68%;
2813
+ background:
2814
+ radial-gradient(
2815
+ ellipse at 20% 0,
2816
+ color-mix(in oklab, var(--stage-good) 40%, transparent) 0 28%,
2817
+ transparent 30%
2818
+ ),
2819
+ linear-gradient(
2820
+ 180deg,
2821
+ color-mix(in oklab, var(--stage-good) 58%, #9bd178),
2822
+ color-mix(in oklab, var(--stage-good) 75%, #4d7b36)
2823
+ );
2824
+ }
2825
+ .lang-backdrop[data-kind="room"] {
2826
+ background:
2827
+ linear-gradient(
2828
+ 90deg,
2829
+ transparent 49.5%,
2830
+ color-mix(in oklab, var(--stage-grid) 65%, transparent) 50%,
2831
+ transparent 50.5%
2832
+ ),
2833
+ linear-gradient(
2834
+ 180deg,
2835
+ color-mix(in oklab, var(--stage-warn) 8%, var(--stage-bg)) 0 62%,
2836
+ color-mix(in oklab, var(--stage-warn) 22%, var(--stage-bg)) 62%
2837
+ );
2838
+ }
2839
+ .lang-backdrop-sun {
2840
+ position: absolute;
2841
+ inset-block-start: var(--lab-sp-10);
2842
+ inset-inline-end: var(--lab-sp-14);
2843
+ width: 1.5rem;
2844
+ height: 1.5rem;
2845
+ color: var(--stage-warn);
2846
+ }
2847
+ .lang-feedback {
2848
+ margin-top: var(--lab-sp-12);
2849
+ }
2850
+ .lang-match[data-layout="picture"] {
2851
+ grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
2852
+ }
2853
+
2854
+ .lang-typegrid {
2855
+ display: grid;
2856
+ grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
2857
+ gap: var(--lab-sp-12);
2858
+ }
2859
+ .lang-typecard {
2860
+ border: 1px solid var(--lab-border);
2861
+ border-radius: var(--lab-r-md);
2862
+ padding: var(--lab-sp-6) var(--lab-sp-8) var(--lab-sp-10);
2863
+ background: var(--lab-surface);
2864
+ min-width: 0;
2865
+ }
2866
+ .lang-typecard svg {
2867
+ width: 100%;
2868
+ height: auto;
2869
+ max-width: 100%;
2870
+ }
2871
+ .lang-typename {
2872
+ font-weight: var(--lab-w-semibold);
2873
+ font-size: var(--lab-t-body);
2874
+ margin: var(--lab-sp-4) 0 0;
2875
+ color: var(--lab-fg);
2876
+ }
2877
+ .lang-typecap {
2878
+ font-size: var(--lab-t-eyebrow);
2879
+ color: var(--lab-muted);
2880
+ margin: 1px 0 0;
2881
+ }
2882
+
2883
+ /* ═══════════════════════════════════════════════════════════════════════════
2884
+ ANIMATIONS
2885
+ ═══════════════════════════════════════════════════════════════════════════ */
2886
+ /* river current — wave streaks drift downstream */
2887
+ .lab-river-wave {
2888
+ animation-name: stage-river-drift;
2889
+ animation-timing-function: linear;
2890
+ animation-iteration-count: infinite;
2891
+ will-change: transform;
2892
+ }
2893
+ @keyframes stage-river-drift {
2894
+ from {
2895
+ transform: translateX(0);
2896
+ }
2897
+ to {
2898
+ transform: translateX(28px);
2899
+ }
2900
+ }
2901
+ /* annotation kit — a Spotlight ring pulses outward to draw the eye */
2902
+ .lab-pulse {
2903
+ animation: lab-pulse 1.5s var(--lab-ease) infinite;
2904
+ }
2905
+ @keyframes lab-pulse {
2906
+ 0% {
2907
+ transform: scale(0.55);
2908
+ opacity: 0.75;
2909
+ }
2910
+ 100% {
2911
+ transform: scale(1.9);
2912
+ opacity: 0;
2913
+ }
2914
+ }
2915
+ /* ═════════════════════════════════════════════════════════════════════════
2916
+ CELEBRATION + PREDICT-GATE + LESSON PROGRESS (engagement kit)
2917
+ ═════════════════════════════════════════════════════════════════════════ */
2918
+ /* celebrate — one-shot confetti burst anchored to the success pill */
2919
+ .lab-celebrate {
2920
+ position: relative;
2921
+ display: inline-flex;
2922
+ }
2923
+ .lab-confetti {
2924
+ position: absolute;
2925
+ left: 50%;
2926
+ top: 50%;
2927
+ width: 0;
2928
+ height: 0;
2929
+ pointer-events: none;
2930
+ z-index: var(--lab-z-overlay);
2931
+ }
2932
+ .lab-confetti span {
2933
+ position: absolute;
2934
+ left: -3px;
2935
+ top: -3px;
2936
+ width: 7px;
2937
+ height: 7px;
2938
+ border-radius: 2px;
2939
+ background: var(--c, var(--lab-accent));
2940
+ opacity: 0;
2941
+ animation: lab-confetti-fly 0.8s var(--lab-ease) forwards;
2942
+ will-change: transform, opacity;
2943
+ }
2944
+ @keyframes lab-confetti-fly {
2945
+ 0% {
2946
+ opacity: 1;
2947
+ transform: translate(0, 0) rotate(0) scale(1);
2948
+ }
2949
+ 70% {
2950
+ opacity: 1;
2951
+ }
2952
+ 100% {
2953
+ opacity: 0;
2954
+ transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.6);
2955
+ }
2956
+ }
2957
+ .lab-pop {
2958
+ animation: lab-pop var(--lab-dur-slow) var(--lab-ease-spring);
2959
+ }
2960
+ @keyframes lab-pop {
2961
+ 0% {
2962
+ transform: scale(0.82);
2963
+ }
2964
+ 60% {
2965
+ transform: scale(1.08);
2966
+ }
2967
+ 100% {
2968
+ transform: scale(1);
2969
+ }
2970
+ }
2971
+ /* value flash — a readout/stat value pops accent when it changes, so the
2972
+ learner SEES which number their drag is driving (cause → effect) */
2973
+ .lab-val-flash {
2974
+ animation: lab-val-flash 0.5s var(--lab-ease);
2975
+ }
2976
+ @keyframes lab-val-flash {
2977
+ 0% {
2978
+ color: var(--lab-accent);
2979
+ }
2980
+ 100% {
2981
+ color: inherit;
2982
+ }
2983
+ }
2984
+ /* predict-gate — show an intentional preview state without mounting or leaking
2985
+ the model that the prediction is meant to precede. */
2986
+ .lab-predict-gate {
2987
+ display: flex;
2988
+ flex-direction: column;
2989
+ gap: var(--lab-sp-12);
2990
+ }
2991
+ .lab-predict-body {
2992
+ min-width: 0;
2993
+ }
2994
+ .lab-predict-lock {
2995
+ display: grid;
2996
+ grid-template-columns: auto 1fr;
2997
+ align-items: center;
2998
+ justify-content: center;
2999
+ gap: 2px var(--lab-sp-14);
3000
+ min-height: clamp(8rem, 24cqw, 13rem);
3001
+ padding: calc(var(--lab-sp-16) + var(--lab-sp-6));
3002
+ border: 1px dashed var(--lab-border-strong);
3003
+ border-radius: var(--lab-r-lg);
3004
+ color: var(--lab-fg);
3005
+ background: color-mix(in oklab, var(--lab-muted) 4%, var(--lab-surface));
3006
+ }
3007
+ .lab-predict-lock-mark {
3008
+ grid-row: 1 / span 2;
3009
+ display: inline-grid;
3010
+ place-items: center;
3011
+ width: 2.25rem;
3012
+ height: 2.25rem;
3013
+ border-radius: var(--lab-r-pill);
3014
+ color: var(--lab-accent);
3015
+ background: var(--lab-accent-soft);
3016
+ font-weight: var(--lab-w-bold);
3017
+ }
3018
+ .lab-predict-lock strong {
3019
+ align-self: end;
3020
+ font-size: var(--lab-t-body);
3021
+ }
3022
+ .lab-predict-lock > span:last-child {
3023
+ align-self: start;
3024
+ color: var(--lab-muted);
3025
+ font-size: var(--lab-t-sm);
3026
+ line-height: var(--lab-lh-ui);
3027
+ }
3028
+ /* ── Networking: vendor-neutral topology, packet layers, and accessible transcript ── */
3029
+ .lab-activity {
3030
+ display: flex;
3031
+ flex-direction: column;
3032
+ container: lab-activity / inline-size;
3033
+ overflow: hidden;
3034
+ border: 1px solid var(--border, var(--stage-grid));
3035
+ border-radius: var(--lab-r-lg);
3036
+ background: var(--background, var(--stage-bg));
3037
+ color: var(--foreground, var(--stage-fg));
3038
+ box-shadow:
3039
+ 0 1px 2px color-mix(in oklab, currentColor 5%, transparent),
3040
+ 0 8px 24px color-mix(in oklab, currentColor 3%, transparent);
3041
+ }
3042
+ .lab-activity[data-focus] {
3043
+ box-sizing: border-box;
3044
+ width: 100%;
3045
+ max-width: 100dvw;
3046
+ overflow: auto;
3047
+ overflow-x: hidden;
3048
+ min-height: 100dvh;
3049
+ border: 0;
3050
+ border-radius: 0;
3051
+ padding: clamp(0.75rem, 2vw, 1.5rem);
3052
+ background: var(--background, var(--stage-bg));
3053
+ }
3054
+ .lab-activity[data-focus]:not(:fullscreen) {
3055
+ position: fixed;
3056
+ inset: 0;
3057
+ z-index: var(--lab-z-top);
3058
+ }
3059
+ .lab-activity[data-focus] > *,
3060
+ .lab-activity[data-focus] .lab-activity-workspace,
3061
+ .lab-activity[data-focus] .lab-activity-canvas {
3062
+ min-width: 0;
3063
+ max-width: 100%;
3064
+ }
3065
+ .lab-activity[data-focus] > * {
3066
+ width: min(100%, 100rem);
3067
+ margin-inline: auto;
3068
+ }
3069
+ .lab-activity[data-focus][data-focus-layout="compact"] > * {
3070
+ width: min(100%, 68rem);
3071
+ }
3072
+ .lab-activity[data-focus][data-focus-layout="immersive"] .lab-scene-viewport {
3073
+ height: clamp(22rem, 58dvh, 42rem);
3074
+ }
3075
+ @media (min-width: 64rem) {
3076
+ .lab-activity[data-focus][data-focus-layout="compact"]
3077
+ .lab-activity-workspace:has(> .lab-activity-inspector) {
3078
+ grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
3079
+ align-items: stretch;
3080
+ }
3081
+ .lab-activity[data-focus][data-focus-layout="compact"]
3082
+ .lab-activity-workspace
3083
+ > .lab-activity-inspector {
3084
+ min-width: 0;
3085
+ border-inline-start: 1px solid var(--border, var(--stage-grid));
3086
+ }
3087
+ }
3088
+ @media (max-width: 48rem) {
3089
+ .lab-activity[data-focus] {
3090
+ padding: 0;
3091
+ }
3092
+ .lab-activity[data-focus][data-focus-layout="immersive"] .lab-scene-viewport,
3093
+ .lab-activity[data-focus][data-focus-layout="immersive"] .lab-scene-viewport[data-size] {
3094
+ height: clamp(15rem, 72vw, 22rem);
3095
+ }
3096
+ }
3097
+ .lab-activity-header {
3098
+ display: flex;
3099
+ align-items: flex-start;
3100
+ justify-content: space-between;
3101
+ gap: var(--lab-sp-16);
3102
+ padding: var(--lab-sp-16) var(--lab-sp-16) var(--lab-sp-14);
3103
+ }
3104
+ .lab-activity-heading {
3105
+ min-width: 0;
3106
+ }
3107
+ .lab-activity-eyebrow {
3108
+ display: block;
3109
+ margin-bottom: var(--lab-sp-4);
3110
+ color: var(--primary, var(--stage-accent));
3111
+ font-size: var(--lab-t-eyebrow);
3112
+ font-weight: var(--lab-w-bold);
3113
+ letter-spacing: var(--lab-ls-caps);
3114
+ text-transform: uppercase;
3115
+ }
3116
+ .lab-activity-heading h3 {
3117
+ margin: 0;
3118
+ font-size: clamp(1rem, 2.5vw, 1.25rem);
3119
+ line-height: var(--lab-lh-title);
3120
+ text-wrap: balance;
3121
+ }
3122
+ .lab-activity-description {
3123
+ margin: var(--lab-sp-4) 0 0;
3124
+ max-width: 42rem;
3125
+ color: var(--muted-foreground, var(--stage-muted));
3126
+ font-size: var(--lab-t-sm);
3127
+ line-height: var(--lab-lh-ui);
3128
+ text-wrap: pretty;
3129
+ }
3130
+ .lab-activity-focus {
3131
+ display: inline-flex;
3132
+ flex: none;
3133
+ align-items: center;
3134
+ gap: var(--lab-sp-6);
3135
+ min-width: var(--lab-target);
3136
+ min-height: var(--lab-target);
3137
+ padding: var(--lab-sp-6) var(--lab-sp-10);
3138
+ border: 1px solid var(--border, var(--stage-grid));
3139
+ border-radius: var(--lab-r-sm);
3140
+ background: var(--background, var(--stage-bg));
3141
+ color: var(--foreground, var(--stage-fg));
3142
+ font: inherit;
3143
+ font-size: var(--lab-t-eyebrow);
3144
+ font-weight: var(--lab-w-semibold);
3145
+ cursor: pointer;
3146
+ }
3147
+ .lab-activity-focus:hover {
3148
+ background: var(--accent, color-mix(in oklab, currentColor 6%, transparent));
3149
+ }
3150
+ .lab-activity-focus svg {
3151
+ width: 1rem;
3152
+ height: 1rem;
3153
+ fill: none;
3154
+ stroke: currentColor;
3155
+ stroke-width: 1.8;
3156
+ stroke-linecap: round;
3157
+ stroke-linejoin: round;
3158
+ }
3159
+ .lab-activity-status {
3160
+ display: flex;
3161
+ align-items: center;
3162
+ gap: var(--lab-sp-10);
3163
+ min-width: 0;
3164
+ padding: var(--lab-sp-10) var(--lab-sp-16);
3165
+ border-block: 1px solid var(--border, var(--stage-grid));
3166
+ background: color-mix(
3167
+ in oklab,
3168
+ var(--muted, currentColor) 52%,
3169
+ var(--background, var(--stage-bg))
3170
+ );
3171
+ font-size: var(--lab-t-eyebrow);
3172
+ }
3173
+ .lab-activity-status > * + * {
3174
+ padding-inline-start: var(--lab-sp-10);
3175
+ border-inline-start: 1px solid var(--border, var(--stage-grid));
3176
+ }
3177
+ .network-route-path {
3178
+ min-width: 0;
3179
+ flex: 1;
3180
+ overflow: hidden;
3181
+ color: var(--muted-foreground, var(--stage-muted));
3182
+ text-align: center;
3183
+ text-overflow: ellipsis;
3184
+ white-space: nowrap;
3185
+ }
3186
+ .network-delivery {
3187
+ flex: none;
3188
+ color: var(--destructive, var(--stage-danger));
3189
+ font-weight: var(--lab-w-semibold);
3190
+ }
3191
+ .network-delivery[data-delivered] {
3192
+ color: var(--lab-good);
3193
+ }
3194
+ .lab-activity-workspace {
3195
+ display: grid;
3196
+ gap: var(--lab-sp-12);
3197
+ padding: var(--lab-sp-12);
3198
+ }
3199
+ .lab-activity[data-inspector-layout="stacked"] .lab-activity-workspace {
3200
+ grid-template-columns: minmax(0, 1fr);
3201
+ }
3202
+ .lab-activity[data-inspector-layout="stacked"] .lab-activity-workspace > .lab-activity-inspector {
3203
+ border: 1px solid var(--border, var(--stage-grid));
3204
+ border-radius: var(--lab-r-md);
3205
+ background: var(--card, var(--stage-bg));
3206
+ }
3207
+ .lab-activity-canvas {
3208
+ display: grid;
3209
+ gap: var(--lab-sp-10);
3210
+ min-width: 0;
3211
+ align-content: start;
3212
+ isolation: isolate;
3213
+ /* Keep touch-sized wide figures reachable on narrow screens. */
3214
+ overflow-x: auto;
3215
+ overscroll-behavior-x: contain;
3216
+ }
3217
+ .lab-activity-dock {
3218
+ min-width: 0;
3219
+ }
3220
+ .network-scene {
3221
+ overflow: hidden;
3222
+ border: 1px solid var(--border, var(--stage-grid));
3223
+ border-radius: var(--lab-r-md);
3224
+ background:
3225
+ radial-gradient(
3226
+ circle at 1px 1px,
3227
+ color-mix(in oklab, currentColor 11%, transparent) 1px,
3228
+ transparent 0
3229
+ )
3230
+ 0 0 / 20px 20px,
3231
+ var(--card, var(--stage-bg));
3232
+ }
3233
+ .network-scene svg {
3234
+ display: block;
3235
+ width: 100%;
3236
+ height: clamp(190px, 30vw, 300px);
3237
+ }
3238
+ .network-link {
3239
+ stroke: var(--border, var(--stage-grid));
3240
+ stroke-width: 4;
3241
+ stroke-linecap: round;
3242
+ transition:
3243
+ stroke var(--lab-dur-base) var(--lab-ease),
3244
+ stroke-width var(--lab-dur-base) var(--lab-ease);
3245
+ }
3246
+ .network-link[data-active] {
3247
+ stroke: var(--primary, var(--stage-accent));
3248
+ stroke-width: 7;
3249
+ }
3250
+ .network-link[data-down] {
3251
+ stroke: var(--destructive, var(--stage-danger));
3252
+ stroke-dasharray: 8 7;
3253
+ }
3254
+ .network-link-label {
3255
+ fill: var(--muted-foreground, var(--stage-muted));
3256
+ font-size: var(--lab-t-micro);
3257
+ font-weight: var(--lab-w-semibold);
3258
+ paint-order: stroke;
3259
+ stroke: var(--card, var(--stage-bg));
3260
+ stroke-width: 4px;
3261
+ }
3262
+ .network-device {
3263
+ color: var(--foreground, var(--stage-fg));
3264
+ outline: none;
3265
+ }
3266
+ .network-device-surface {
3267
+ fill: var(--card, var(--stage-bg));
3268
+ stroke: var(--border, var(--stage-grid));
3269
+ stroke-width: 1.5;
3270
+ }
3271
+ .network-device-symbol {
3272
+ color: var(--muted-foreground, var(--stage-muted));
3273
+ }
3274
+ .network-device-label {
3275
+ fill: var(--foreground, var(--stage-fg));
3276
+ font-size: var(--lab-t-micro);
3277
+ font-weight: var(--lab-w-semibold);
3278
+ }
3279
+ .network-device[data-active] .network-device-surface {
3280
+ fill: color-mix(in oklab, var(--primary, var(--stage-accent)) 12%, var(--card, var(--stage-bg)));
3281
+ stroke: var(--primary, var(--stage-accent));
3282
+ stroke-width: 3;
3283
+ }
3284
+ .network-device[data-active] .network-device-symbol {
3285
+ color: var(--primary, var(--stage-accent));
3286
+ }
3287
+ .network-device:focus-visible .network-device-surface,
3288
+ .network-device[data-selected] .network-device-surface {
3289
+ stroke: var(--ring, var(--stage-accent));
3290
+ stroke-width: 3;
3291
+ stroke-dasharray: 5 3;
3292
+ }
3293
+ .lab-activity-feedback {
3294
+ display: grid;
3295
+ /* minmax(0, 1fr), not 1fr: a grid track is at least min-content wide by default, so the longest
3296
+ word in the sentence set a floor the callout could not go below and it overhung the card on a
3297
+ phone. Below 22rem the label stops sharing the row with the sentence. */
3298
+ grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr);
3299
+ align-items: baseline;
3300
+ gap: var(--lab-sp-10);
3301
+ margin: 0 var(--lab-sp-12) var(--lab-sp-12);
3302
+ /* The callout is inset from a full-bleed column, so it stretches to the column and its own
3303
+ margins then hang over the edge. Cap it at the room its margins leave. */
3304
+ max-width: calc(100% - 2 * var(--lab-sp-12));
3305
+ padding: var(--lab-sp-10) var(--lab-sp-12);
3306
+ border: 0;
3307
+ border-inline-start: 3px solid var(--primary, var(--stage-accent));
3308
+ border-start-start-radius: 0.2rem;
3309
+ border-end-start-radius: 0.2rem;
3310
+ border-start-end-radius: 0.65rem;
3311
+ border-end-end-radius: 0.65rem;
3312
+ background: color-mix(
3313
+ in oklab,
3314
+ var(--primary, var(--stage-accent)) 2.5%,
3315
+ var(--card, var(--stage-bg))
3316
+ );
3317
+ }
3318
+ /* The step's task sits in the flow above the figure — no second tinted bar under the
3319
+ status strip. The lead IS the question the learner is answering, so it reads as body
3320
+ text in the foreground colour, not as muted fine print. */
3321
+ .lab-authored-task {
3322
+ display: grid;
3323
+ gap: var(--lab-sp-10);
3324
+ padding: var(--lab-sp-14) var(--lab-sp-16);
3325
+ border-top: 1px solid var(--border, var(--stage-grid));
3326
+ }
3327
+ /* An authored question is already a semantic section of Activity. Its challenge
3328
+ must not draw a second card inside that section: one boundary, one prompt,
3329
+ one response row. Standalone ChallengeCard instances retain their card. */
3330
+ .lab-authored-task > .lab-challenge {
3331
+ padding: 0;
3332
+ border: 0;
3333
+ border-radius: 0;
3334
+ box-shadow: none;
3335
+ background: transparent;
3336
+ }
3337
+ .lab-authored-task-lead {
3338
+ margin: 0;
3339
+ max-width: 62ch;
3340
+ color: var(--foreground, var(--stage-fg));
3341
+ font-size: var(--lab-t-sm);
3342
+ font-weight: var(--lab-w-medium);
3343
+ line-height: var(--lab-lh-ui);
3344
+ text-wrap: pretty;
3345
+ }
3346
+ @container lab-activity (max-width: 22rem) {
3347
+ .lab-activity-feedback {
3348
+ grid-template-columns: minmax(0, 1fr);
3349
+ }
3350
+ }
3351
+ .lab-activity-feedback > span:first-child {
3352
+ color: var(--primary, var(--stage-accent));
3353
+ font-size: var(--lab-t-eyebrow);
3354
+ font-weight: var(--lab-w-bold);
3355
+ letter-spacing: var(--lab-ls-caps);
3356
+ text-transform: uppercase;
3357
+ }
3358
+ .lab-activity-feedback p {
3359
+ margin: 0;
3360
+ font-size: var(--lab-t-sm);
3361
+ line-height: var(--lab-lh-ui);
3362
+ }
3363
+ .lab-activity-inspector {
3364
+ overflow: hidden;
3365
+ border: 1px solid var(--border, var(--stage-grid));
3366
+ border-radius: var(--lab-r-md);
3367
+ background: var(--card, var(--stage-bg));
3368
+ }
3369
+ .lab-activity-inspector > summary {
3370
+ display: none;
3371
+ cursor: pointer;
3372
+ padding: var(--lab-sp-12) var(--lab-sp-12);
3373
+ min-height: var(--lab-target);
3374
+ font-size: var(--lab-t-sm);
3375
+ font-weight: var(--lab-w-semibold);
3376
+ }
3377
+ .lab-activity-inspector-body {
3378
+ min-width: 0;
3379
+ }
3380
+ .lab-activity-inspector-section {
3381
+ display: grid;
3382
+ gap: var(--lab-sp-16);
3383
+ padding: var(--lab-sp-16);
3384
+ }
3385
+ .lab-activity-fields {
3386
+ display: flex;
3387
+ flex-wrap: wrap;
3388
+ align-items: end;
3389
+ gap: var(--lab-sp-10);
3390
+ }
3391
+ /* Every control gets a real basis. Without one a Field falls back to its content width, and a
3392
+ Field holding a Slider has almost no content width (the Slider is a div, not an input), so a
3393
+ chip group beside it took the whole row and squeezed the slider to its 60px floor. `:has` also
3394
+ covers labs that wrap their Fields in a plain <div>, which a `>` selector would miss. */
3395
+ .lab-activity-fields:not(.lab-authored-controls) > :is(.lab-field, :has(> .lab-field)) {
3396
+ flex: 1 1 15rem;
3397
+ /* `fit-content`, not 0: a field never shrinks below what it actually has to draw. A segmented
3398
+ track used to overflow its share and run under the next control's label, and the slider
3399
+ beside it collapsed to a ~40px stub. Now the row wraps instead, which it already allows.
3400
+ (This cannot be scoped to chip rows with `:has`: CSS forbids `:has()` inside `:has()`, so
3401
+ such a rule is invalid and silently dropped.) */
3402
+ min-width: fit-content;
3403
+ }
3404
+ @media (max-width: 30rem) {
3405
+ /* One control per line at phone widths: let them shrink again rather than scroll the page. */
3406
+ .lab-activity-fields > :is(.lab-field, :has(> .lab-field)) {
3407
+ min-width: 0;
3408
+ }
3409
+ }
3410
+ /* ── Authored lesson shell ──────────────────────────────────────────────────────
3411
+ One scene-first container. The model is the hero, its controls form a compact dock,
3412
+ and explanatory evidence stays contextual until the learner asks for it. */
3413
+ .lab-authored-activity[data-inspector-layout="stacked"] .lab-activity-workspace {
3414
+ gap: 0;
3415
+ padding: var(--lab-sp-12) 0 0;
3416
+ }
3417
+ .lab-authored-activity[data-inspector-layout="stacked"] .lab-activity-canvas {
3418
+ padding: 0 var(--lab-sp-12) var(--lab-sp-12);
3419
+ }
3420
+ .lab-authored-activity .lab-activity-dock {
3421
+ border-top: 1px solid color-mix(in oklab, var(--border, var(--stage-grid)) 70%, transparent);
3422
+ background: color-mix(
3423
+ in oklab,
3424
+ var(--muted, currentColor) 28%,
3425
+ var(--background, var(--stage-bg))
3426
+ );
3427
+ }
3428
+ .lab-authored-activity[data-inspector-layout="stacked"]
3429
+ .lab-activity-workspace
3430
+ > .lab-activity-inspector {
3431
+ border: 0;
3432
+ border-top: 1px solid var(--border, var(--stage-grid));
3433
+ border-radius: 0;
3434
+ background: transparent;
3435
+ }
3436
+ .lab-authored-activity .lab-activity-inspector > summary {
3437
+ display: list-item;
3438
+ padding-inline: var(--lab-sp-16);
3439
+ color: var(--muted-foreground, var(--stage-muted));
3440
+ }
3441
+ .lab-authored-activity .lab-activity-inspector[open] > summary {
3442
+ border-bottom: 1px solid color-mix(in oklab, var(--border, var(--stage-grid)) 70%, transparent);
3443
+ color: var(--foreground, var(--stage-fg));
3444
+ }
3445
+ .lab-authored-evidence {
3446
+ display: grid;
3447
+ gap: var(--lab-sp-10) var(--lab-sp-24);
3448
+ padding: var(--lab-sp-14) var(--lab-sp-16);
3449
+ }
3450
+ .lab-authored-evidence > .lab-evidence-surface,
3451
+ .lab-authored-evidence > .lab-metric-list {
3452
+ padding: 0;
3453
+ border: 0;
3454
+ border-radius: 0;
3455
+ box-shadow: none;
3456
+ background: transparent;
3457
+ }
3458
+ .lab-authored-evidence > .lab-metric-list > div {
3459
+ padding-inline: 0;
3460
+ }
3461
+ .lab-authored-evidence .lab-readout-val {
3462
+ font-size: clamp(1.4rem, 2.6cqi, 1.75rem);
3463
+ }
3464
+ .lab-authored-evidence > p {
3465
+ grid-column: 1 / -1;
3466
+ margin: 0;
3467
+ max-width: 62ch;
3468
+ color: var(--muted-foreground, var(--stage-muted));
3469
+ font-size: var(--lab-t-eyebrow);
3470
+ line-height: var(--lab-lh-prose);
3471
+ }
3472
+ .lab-authored-controls {
3473
+ display: grid;
3474
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
3475
+ align-items: end;
3476
+ gap: var(--lab-sp-14) var(--lab-sp-20);
3477
+ padding: var(--lab-sp-12) var(--lab-sp-16);
3478
+ }
3479
+ .lab-authored-controls > .lab-field {
3480
+ width: 100%;
3481
+ }
3482
+ /* The dock is a GRID, so an item wider than its column does not wrap, it runs over the next
3483
+ column: a four-option segmented track printed its last option under the control beside it.
3484
+ Grid items default to min-width: auto, so they must be told they may shrink; a segmented track
3485
+ scrolls in the space it gets (see .lab-segmented) rather than overflowing. The fit-content rule
3486
+ above stays for the FLEX row, where an oversized control wraps to the next line instead. */
3487
+ .lab-authored-controls > * {
3488
+ min-width: 0;
3489
+ }
3490
+ .lab-authored-controls > .physics-simulation-actions {
3491
+ grid-column: 1 / -1;
3492
+ }
3493
+ @container lab-activity (min-width: 46rem) {
3494
+ .lab-authored-evidence:has(> .lab-evidence-surface + .lab-evidence-surface),
3495
+ .lab-authored-evidence:has(> .lab-evidence-surface + .lab-metric-list) {
3496
+ grid-template-columns: minmax(13rem, 2fr) minmax(0, 3fr);
3497
+ align-items: start;
3498
+ }
3499
+ .lab-authored-evidence > .lab-evidence-surface + .lab-evidence-surface,
3500
+ .lab-authored-evidence > .lab-evidence-surface + .lab-metric-list {
3501
+ padding-inline-start: var(--lab-sp-24);
3502
+ border-inline-start: 1px solid
3503
+ color-mix(in oklab, var(--border, var(--stage-grid)) 70%, transparent);
3504
+ }
3505
+ }
3506
+ .lab-authored-transcript + .lab-authored-support {
3507
+ margin-top: var(--lab-sp-12);
3508
+ padding-top: var(--lab-sp-12);
3509
+ border-top: 1px solid color-mix(in oklab, var(--border, var(--stage-grid)) 70%, transparent);
3510
+ }
3511
+ /* Segmented control: a labelled row of mutually-exclusive options as ONE compact control (an
3512
+ iOS-style track), not a column of full-width buttons. Reusable for any 2–4 option mode toggle. */
3513
+ .lab-segmented-field {
3514
+ display: grid;
3515
+ gap: var(--lab-sp-4);
3516
+ }
3517
+ .lab-segmented-field > .lab-field-label {
3518
+ font-size: var(--lab-t-eyebrow, 0.68rem);
3519
+ font-weight: var(--lab-w-semibold);
3520
+ letter-spacing: var(--lab-ls-caps);
3521
+ text-transform: uppercase;
3522
+ color: var(--muted-foreground, var(--stage-muted));
3523
+ }
3524
+ .lab-segmented {
3525
+ display: inline-flex;
3526
+ /* WRAP, do not hide. A four-option track in a narrow dock used to scroll, which
3527
+ left the last mode off-screen with no affordance saying it existed: the
3528
+ learner cannot choose what they cannot see. Wrapping keeps every mode
3529
+ visible; the scroll below is the last resort for one option too wide to fit. */
3530
+ flex-wrap: wrap;
3531
+ gap: var(--lab-sp-4);
3532
+ padding: var(--lab-sp-4);
3533
+ border-radius: var(--lab-r-pill, 999px);
3534
+ background: color-mix(in oklab, var(--stage-fg) 7%, transparent);
3535
+ width: fit-content;
3536
+ max-width: 100%;
3537
+ /* The phone rule above lets a field shrink to avoid scrolling the page, but a segmented track
3538
+ cannot shrink: its options are `nowrap` and `flex: 0 0 auto`. Measured on a 360px screen the
3539
+ track held 813px of options inside a 6px box, so every mode but the first was unreachable and
3540
+ the lab could not be operated at all. Scrolling the track is the standard behaviour for this
3541
+ control and keeps the page itself still. */
3542
+ overflow-x: auto;
3543
+ overscroll-behavior-x: contain;
3544
+ scrollbar-width: thin;
3545
+ }
3546
+ .lab-segmented > * {
3547
+ flex: 0 0 auto;
3548
+ white-space: nowrap;
3549
+ }
3550
+ .lab-activity-select-field {
3551
+ display: grid;
3552
+ min-width: min(100%, 15rem);
3553
+ gap: var(--lab-sp-4);
3554
+ }
3555
+ .lab-activity-select-field > .lab-field-label {
3556
+ color: var(--muted-foreground, var(--stage-muted));
3557
+ font-size: var(--lab-t-eyebrow, 0.68rem);
3558
+ font-weight: var(--lab-w-semibold);
3559
+ letter-spacing: var(--lab-ls-caps);
3560
+ text-transform: uppercase;
3561
+ }
3562
+ .lab-activity-select {
3563
+ width: 100%;
3564
+ min-width: 0;
3565
+ }
3566
+ /* One option inside the track, rendered by `Segmented` on the host's ToggleGroup. A track stays
3567
+ on one line; the field's `min-width: fit-content` keeps room for it, so a cramped row wraps the
3568
+ whole field onto the next line rather than clipping a label. */
3569
+ .lab-segment {
3570
+ flex: 0 0 auto;
3571
+ min-height: var(--lab-target-compact);
3572
+ padding: var(--lab-sp-4) var(--lab-sp-12);
3573
+ border: 1px solid transparent;
3574
+ border-radius: var(--lab-r-pill, 999px);
3575
+ background: transparent;
3576
+ box-shadow: none;
3577
+ color: var(--lab-muted);
3578
+ font-size: var(--lab-t-sm, 0.8125rem);
3579
+ font-weight: var(--lab-w-medium);
3580
+ white-space: nowrap;
3581
+ }
3582
+ .lab-segment:hover:not([data-sel="true"]) {
3583
+ background: color-mix(in oklab, var(--stage-fg) 6%, transparent);
3584
+ color: var(--lab-fg);
3585
+ }
3586
+ .lab-segment[data-sel="true"] {
3587
+ background: var(--lab-surface);
3588
+ color: var(--lab-fg);
3589
+ box-shadow: var(--lab-shadow-sm);
3590
+ font-weight: var(--lab-w-semibold);
3591
+ }
3592
+ .lab-segment:disabled {
3593
+ opacity: 0.45;
3594
+ pointer-events: none;
3595
+ }
3596
+ .network-inspector-heading {
3597
+ display: flex;
3598
+ align-items: center;
3599
+ justify-content: space-between;
3600
+ gap: var(--lab-sp-12);
3601
+ padding: var(--lab-sp-12) var(--lab-sp-12);
3602
+ border-bottom: 1px solid var(--border, var(--stage-grid));
3603
+ }
3604
+ .network-inspector-heading div {
3605
+ display: flex;
3606
+ align-items: baseline;
3607
+ gap: var(--lab-sp-6);
3608
+ }
3609
+ .network-inspector-heading span {
3610
+ color: var(--muted-foreground, var(--stage-muted));
3611
+ font-size: var(--lab-t-micro);
3612
+ font-weight: var(--lab-w-semibold);
3613
+ letter-spacing: var(--lab-ls-caps);
3614
+ text-transform: uppercase;
3615
+ }
3616
+ .network-inspector-heading strong {
3617
+ font-size: var(--lab-t-eyebrow);
3618
+ }
3619
+ .network-packet {
3620
+ overflow: hidden;
3621
+ border: 1px solid var(--border, var(--stage-grid));
3622
+ border-radius: var(--lab-r-md);
3623
+ background: var(--card, var(--stage-bg));
3624
+ }
3625
+ .network-inspector .network-packet {
3626
+ border: 0;
3627
+ border-radius: 0;
3628
+ }
3629
+ .network-packet-head {
3630
+ display: flex;
3631
+ justify-content: space-between;
3632
+ padding: var(--lab-sp-8) var(--lab-sp-12);
3633
+ border-bottom: 1px solid var(--border, var(--stage-grid));
3634
+ font-size: var(--lab-t-eyebrow);
3635
+ }
3636
+ .network-packet-head span {
3637
+ color: var(--muted-foreground, var(--stage-muted));
3638
+ font-variant-numeric: tabular-nums;
3639
+ }
3640
+ .network-layer-list {
3641
+ display: grid;
3642
+ gap: 1px;
3643
+ margin: 0;
3644
+ padding: 0;
3645
+ list-style: none;
3646
+ background: var(--border, var(--stage-grid));
3647
+ }
3648
+ .network-layer {
3649
+ display: grid;
3650
+ grid-template-columns: 4.8rem 3.5rem 1fr;
3651
+ gap: var(--lab-sp-6);
3652
+ padding: var(--lab-sp-8) var(--lab-sp-10);
3653
+ background: var(--card, var(--stage-bg));
3654
+ font-size: var(--lab-t-micro);
3655
+ line-height: var(--lab-lh-ui);
3656
+ }
3657
+ .network-layer-name {
3658
+ color: var(--muted-foreground, var(--stage-muted));
3659
+ text-transform: uppercase;
3660
+ letter-spacing: var(--lab-ls-caps);
3661
+ }
3662
+ .network-layer strong {
3663
+ color: var(--primary, var(--stage-accent));
3664
+ }
3665
+ .lab-activity-transport {
3666
+ display: grid;
3667
+ /* The middle column must be able to SHRINK: with an 8rem floor the three columns could not fit
3668
+ a 360px phone, so the transport pushed its own row wider than the card. Its content is a short
3669
+ status line, which wraps. */
3670
+ grid-template-columns: auto minmax(0, 18rem) auto;
3671
+ align-items: center;
3672
+ justify-content: center;
3673
+ gap: var(--lab-sp-12);
3674
+ padding: var(--lab-sp-12) var(--lab-sp-16);
3675
+ border-top: 1px solid var(--border, var(--stage-grid));
3676
+ background: var(--card, var(--stage-bg));
3677
+ }
3678
+ /* The transport's middle slot. This is shell, not a subject: it lived in the maths sheet, so every
3679
+ other subject rendered it unstyled, and a long status word ("Photosynthesising") could not shrink
3680
+ inside its flex row and pushed the transport past the card. */
3681
+ .lab-transport-state {
3682
+ display: flex;
3683
+ flex-wrap: wrap;
3684
+ min-width: 0;
3685
+ align-items: baseline;
3686
+ justify-content: center;
3687
+ gap: var(--lab-sp-8);
3688
+ font-size: var(--lab-t-eyebrow);
3689
+ font-variant-numeric: tabular-nums;
3690
+ overflow-wrap: anywhere;
3691
+ }
3692
+ .lab-transport-state > * {
3693
+ min-width: 0;
3694
+ }
3695
+ .lab-transport-state span {
3696
+ color: var(--lab-muted);
3697
+ }
3698
+ .lab-activity-transport > button {
3699
+ min-height: var(--lab-target);
3700
+ }
3701
+ /* The transport has three slots (back · progress · primary). A lab with a fourth
3702
+ action used to drop it into an implicit column and leave it hanging under the
3703
+ left edge; give any extra action a centred row of its own instead. */
3704
+ .lab-activity-transport > :nth-child(n + 4) {
3705
+ grid-column: 1 / -1;
3706
+ justify-self: center;
3707
+ }
3708
+ .lab-activity-transport:has(> .lab-guide-nav) {
3709
+ grid-template-columns: minmax(0, 1fr);
3710
+ }
3711
+ .lab-activity-transport:has(> .lab-sequence) {
3712
+ grid-template-columns: minmax(0, 1fr);
3713
+ }
3714
+ .lab-guide-nav {
3715
+ display: grid;
3716
+ grid-template-columns: minmax(0, 1fr) auto;
3717
+ align-items: center;
3718
+ gap: var(--lab-sp-12);
3719
+ width: 100%;
3720
+ }
3721
+ .lab-guide-nav > p {
3722
+ margin: 0;
3723
+ font-weight: var(--lab-w-medium);
3724
+ text-align: center;
3725
+ }
3726
+ .lab-guide-nav > .lab-stepnav,
3727
+ .lab-guide-nav > .lab-pill {
3728
+ grid-column: 2;
3729
+ }
3730
+ .lab-activity-progress {
3731
+ display: grid;
3732
+ gap: var(--lab-sp-4);
3733
+ width: 100%;
3734
+ min-width: 0;
3735
+ overflow: hidden;
3736
+ }
3737
+ .lab-activity-progress div {
3738
+ display: flex;
3739
+ width: 100%;
3740
+ min-width: 0;
3741
+ overflow: hidden;
3742
+ justify-content: center;
3743
+ gap: var(--lab-sp-4);
3744
+ color: var(--muted-foreground, var(--stage-muted));
3745
+ font-size: var(--lab-t-sm);
3746
+ font-variant-numeric: tabular-nums;
3747
+ }
3748
+ .lab-activity-progress strong {
3749
+ color: var(--foreground, var(--stage-fg));
3750
+ }
3751
+ .lab-activity-progress progress {
3752
+ width: 100%;
3753
+ height: 0.28rem;
3754
+ overflow: hidden;
3755
+ border: 0;
3756
+ border-radius: var(--lab-r-pill);
3757
+ background: var(--muted, var(--stage-grid));
3758
+ }
3759
+ .lab-activity-progress progress::-webkit-progress-bar {
3760
+ background: var(--muted, var(--stage-grid));
3761
+ }
3762
+ .lab-activity-progress progress::-webkit-progress-value {
3763
+ border-radius: var(--lab-r-pill);
3764
+ background: var(--primary, var(--stage-accent));
3765
+ }
3766
+ .lab-activity-progress progress::-moz-progress-bar {
3767
+ border-radius: var(--lab-r-pill);
3768
+ background: var(--primary, var(--stage-accent));
3769
+ }
3770
+ .lab-activity-progress input[type="range"] {
3771
+ width: 100%;
3772
+ height: 1rem;
3773
+ margin: 0;
3774
+ accent-color: var(--primary, var(--stage-accent));
3775
+ cursor: pointer;
3776
+ }
3777
+ .lab-activity-transcript {
3778
+ margin: 0;
3779
+ padding: var(--lab-sp-10) var(--lab-sp-16);
3780
+ border-top: 1px solid var(--border, var(--stage-grid));
3781
+ color: var(--muted-foreground, var(--stage-muted));
3782
+ font-size: var(--lab-t-sm);
3783
+ }
3784
+ .lab-activity-transcript summary {
3785
+ cursor: pointer;
3786
+ font-weight: var(--lab-w-semibold);
3787
+ }
3788
+ .lab-activity-transcript ol {
3789
+ margin: var(--lab-sp-8) 0 0;
3790
+ padding-inline-start: var(--lab-sp-24);
3791
+ }
3792
+ .lab-activity-transcript li {
3793
+ padding: var(--lab-sp-2) var(--lab-sp-4);
3794
+ }
3795
+ .lab-activity-transcript li[data-current] {
3796
+ border-radius: var(--lab-r-xs);
3797
+ background: color-mix(in oklab, var(--primary, var(--stage-accent)) 12%, transparent);
3798
+ color: var(--foreground, var(--stage-fg));
3799
+ }
3800
+ @container lab-activity (min-width: 60rem) {
3801
+ .lab-authored-activity[data-inspector-layout="side"]
3802
+ .lab-activity-workspace:has(> .lab-activity-inspector) {
3803
+ grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
3804
+ grid-template-rows: auto auto;
3805
+ gap: 0;
3806
+ padding: var(--lab-sp-12) 0 var(--lab-sp-12) var(--lab-sp-12);
3807
+ }
3808
+ .lab-authored-activity[data-inspector-layout="side"] .lab-activity-canvas {
3809
+ grid-column: 1;
3810
+ grid-row: 1;
3811
+ padding: 0 var(--lab-sp-12) var(--lab-sp-12) 0;
3812
+ }
3813
+ .lab-authored-activity[data-inspector-layout="side"] .lab-activity-dock {
3814
+ grid-column: 1;
3815
+ grid-row: 2;
3816
+ }
3817
+ .lab-authored-activity[data-inspector-layout="side"]
3818
+ .lab-activity-workspace
3819
+ > .lab-activity-inspector {
3820
+ grid-column: 2;
3821
+ grid-row: 1 / span 2;
3822
+ }
3823
+ .lab-activity[data-inspector-layout="side"]
3824
+ .lab-activity-workspace:has(> .lab-activity-inspector) {
3825
+ grid-template-columns: minmax(0, 1fr) 19rem;
3826
+ align-items: start;
3827
+ }
3828
+ .lab-activity[data-focus][data-inspector-layout="side"]
3829
+ .lab-activity-workspace:has(> .lab-activity-inspector) {
3830
+ grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
3831
+ }
3832
+ .lab-activity[data-inspector-layout="side"] .lab-activity-workspace > .lab-activity-inspector {
3833
+ border: 0;
3834
+ border-inline-start: 1px solid var(--border, var(--stage-grid));
3835
+ border-radius: 0;
3836
+ background: transparent;
3837
+ }
3838
+ .lab-activity[data-inspector-layout="side"]
3839
+ .lab-activity-workspace
3840
+ > :where(.lab-activity-inspector)
3841
+ :where(.lab-activity-inspector-section) {
3842
+ padding: var(--lab-sp-16);
3843
+ }
3844
+ .lab-activity[data-focus] .network-scene svg {
3845
+ height: clamp(350px, 58vh, 680px);
3846
+ }
3847
+ }
3848
+ @container lab-activity (max-width: 59.99rem) {
3849
+ .lab-activity-inspector > summary {
3850
+ display: list-item;
3851
+ }
3852
+ .lab-activity-inspector[open] > summary {
3853
+ border-bottom: 1px solid var(--border, var(--stage-grid));
3854
+ }
3855
+ }
3856
+ @container lab-activity (max-width: 42.5rem) {
3857
+ .lab-activity-header {
3858
+ padding: var(--lab-sp-12);
3859
+ }
3860
+ .lab-activity-description {
3861
+ font-size: var(--lab-t-sm);
3862
+ }
3863
+ .lab-activity-focus {
3864
+ font-size: var(--lab-t-sm);
3865
+ padding-inline: var(--lab-sp-8);
3866
+ }
3867
+ .lab-activity-focus span {
3868
+ display: none;
3869
+ }
3870
+ .lab-activity-status {
3871
+ padding-inline: var(--lab-sp-12);
3872
+ flex-wrap: wrap;
3873
+ row-gap: var(--lab-sp-6);
3874
+ }
3875
+ .network-route-path {
3876
+ display: none;
3877
+ }
3878
+ .network-delivery {
3879
+ margin-inline-start: auto;
3880
+ }
3881
+ .network-scene svg {
3882
+ height: 180px;
3883
+ }
3884
+ .lab-activity-feedback {
3885
+ grid-template-columns: 1fr;
3886
+ gap: var(--lab-sp-4);
3887
+ }
3888
+ .lab-activity-transport {
3889
+ position: sticky;
3890
+ inset-block-end: 0;
3891
+ z-index: var(--lab-z-overlay);
3892
+ grid-template-columns: auto 1fr auto;
3893
+ gap: var(--lab-sp-8);
3894
+ padding-inline: var(--lab-sp-10);
3895
+ padding-block-end: max(0.75rem, env(safe-area-inset-bottom));
3896
+ box-shadow: 0 -8px 20px color-mix(in oklab, var(--foreground, var(--stage-fg)) 8%, transparent);
3897
+ }
3898
+ .lab-activity-transport .lab-chip {
3899
+ padding-inline: var(--lab-sp-12);
3900
+ }
3901
+ .lab-guide-nav {
3902
+ grid-template-columns: minmax(0, 1fr);
3903
+ }
3904
+ .lab-guide-nav > .lab-stepnav,
3905
+ .lab-guide-nav > .lab-pill {
3906
+ grid-column: 1;
3907
+ justify-self: center;
3908
+ }
3909
+ .network-layer {
3910
+ grid-template-columns: 4.4rem 3.2rem 1fr;
3911
+ font-size: var(--lab-t-micro);
3912
+ }
3913
+ }
3914
+ /* Authorable predict → act → observe → explain → transfer sequence. */
3915
+ .lab-sequence {
3916
+ display: grid;
3917
+ justify-items: center;
3918
+ gap: var(--lab-sp-6);
3919
+ width: 100%;
3920
+ color: var(--foreground, var(--stage-fg));
3921
+ }
3922
+ .lab-sequence-actions {
3923
+ display: flex;
3924
+ align-items: center;
3925
+ justify-content: center;
3926
+ gap: var(--lab-sp-12);
3927
+ }
3928
+ .lab-sequence-gate,
3929
+ .lab-sequence-count {
3930
+ color: var(--muted-foreground, var(--stage-muted));
3931
+ font-size: var(--lab-t-eyebrow);
3932
+ }
3933
+ .lab-sequence-gate {
3934
+ margin: 0;
3935
+ text-align: center;
3936
+ }
3937
+ @media (max-width: 40rem) {
3938
+ .lab-sequence-actions {
3939
+ width: 100%;
3940
+ }
3941
+ }
3942
+
3943
+ /* Scannable rule reference list. */
3944
+ .rule-card-patterns {
3945
+ display: grid;
3946
+ gap: var(--lab-sp-8);
3947
+ padding: var(--lab-sp-14) var(--lab-sp-16);
3948
+ border-top: 1px solid var(--border, var(--stage-grid));
3949
+ }
3950
+ .rule-card-patterns h4 {
3951
+ margin: 0;
3952
+ color: var(--muted-foreground, var(--stage-muted));
3953
+ font-size: var(--lab-t-eyebrow, 0.68rem);
3954
+ letter-spacing: var(--lab-ls-caps);
3955
+ text-transform: uppercase;
3956
+ }
3957
+ .rule-card-patterns ul {
3958
+ display: grid;
3959
+ gap: var(--lab-sp-8);
3960
+ margin: 0;
3961
+ padding: 0;
3962
+ max-width: 46rem;
3963
+ list-style: none;
3964
+ }
3965
+ .rule-card-patterns li {
3966
+ position: relative;
3967
+ padding-inline-start: var(--lab-sp-16);
3968
+ font-size: var(--lab-t-sm);
3969
+ line-height: var(--lab-lh-ui);
3970
+ }
3971
+ .rule-card-patterns li::before {
3972
+ position: absolute;
3973
+ inset-inline-start: 0;
3974
+ color: var(--primary, var(--stage-accent));
3975
+ content: "\203A";
3976
+ font-weight: var(--lab-w-semibold);
3977
+ }
3978
+
3979
+ /* Bound responsive SVGs to their activity container. */
3980
+ .lab-activity svg {
3981
+ max-width: 100%;
3982
+ }
3983
+ .network-scene-target[data-interactive="true"] {
3984
+ cursor: pointer;
3985
+ }
3986
+
3987
+ .lab-config-options {
3988
+ display: inline-flex;
3989
+ flex-wrap: wrap;
3990
+ gap: var(--lab-sp-6);
3991
+ }