@hyperframes/studio 0.8.50 → 0.8.52

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 (280) hide show
  1. package/dist/assets/{hyperframes-player-CxxDxHTW.js → hyperframes-player-I5YRzB02.js} +3 -3
  2. package/dist/assets/{index-Dt3qBI-9.js → index-BTAfgesM.js} +1 -1
  3. package/dist/assets/index-CxAu_Okg.css +1 -0
  4. package/dist/assets/index-DocJlW2v.js +376 -0
  5. package/dist/assets/{index-DUAIWxkI.js → index-Du5x7KUR.js} +1 -1
  6. package/dist/index.d.ts +419 -20
  7. package/dist/index.html +2 -2
  8. package/dist/index.js +7496 -8288
  9. package/dist/index.js.map +1 -1
  10. package/dist/styles/tailwind-preset.js.map +1 -1
  11. package/package.json +13 -12
  12. package/src/App.tsx +131 -143
  13. package/src/captions/components/CaptionAnimationPanel.tsx +4 -4
  14. package/src/captions/components/CaptionOverlay.sender.test.tsx +52 -0
  15. package/src/captions/components/CaptionOverlay.tsx +8 -4
  16. package/src/captions/components/CaptionOverlayUtils.ts +2 -3
  17. package/src/captions/components/CaptionPropertyPanel.tsx +3 -3
  18. package/src/captions/components/CaptionTimeline.tsx +1 -1
  19. package/src/captions/components/shared.tsx +2 -2
  20. package/src/components/AskAgentModal.tsx +5 -5
  21. package/src/components/EditorShell.tsx +8 -7
  22. package/src/components/ExternalFileConflictBanner.tsx +16 -16
  23. package/src/components/LintModal.tsx +6 -16
  24. package/src/components/MediaPreview.tsx +2 -2
  25. package/src/components/RightPanelTabs.test.tsx +151 -0
  26. package/src/components/RightPanelTabs.tsx +59 -0
  27. package/src/components/SaveQueuePausedBanner.tsx +2 -2
  28. package/src/components/StudioHeader.dom.test.tsx +181 -0
  29. package/src/components/StudioHeader.tsx +110 -210
  30. package/src/components/StudioLeftSidebar.tsx +7 -4
  31. package/src/components/StudioOverlays.tsx +1 -1
  32. package/src/components/StudioRightPanel.tsx +51 -39
  33. package/src/components/StudioToast.tsx +2 -2
  34. package/src/components/TimelineHistoryButtons.dom.test.tsx +117 -0
  35. package/src/components/TimelineHistoryButtons.tsx +54 -0
  36. package/src/components/TimelineToolbar.test.tsx +8 -0
  37. package/src/components/TimelineToolbar.tsx +8 -12
  38. package/src/components/dock/Dock.test.tsx +260 -0
  39. package/src/components/dock/Dock.tsx +281 -0
  40. package/src/components/dock/dock.css +28 -0
  41. package/src/components/dock/dockAccessibility.test.ts +166 -0
  42. package/src/components/dock/dockAccessibility.ts +98 -0
  43. package/src/components/dock/dockLayout.test.ts +134 -0
  44. package/src/components/dock/dockLayout.ts +105 -0
  45. package/src/components/dock/dockLayoutSchema.ts +66 -0
  46. package/src/components/dock/dockLayoutStore.ts +91 -0
  47. package/src/components/dock/dockTestHarness.ts +11 -0
  48. package/src/components/dock/panelRegistry.ts +67 -0
  49. package/src/components/editor/AnimationCard.tsx +4 -4
  50. package/src/components/editor/AnimationCardParts.tsx +6 -6
  51. package/src/components/editor/BlockParamsPanel.tsx +4 -4
  52. package/src/components/editor/BorderRadiusEditor.tsx +1 -1
  53. package/src/components/editor/CanvasContextMenu.tsx +1 -1
  54. package/src/components/editor/ComputedTweenNotice.tsx +1 -1
  55. package/src/components/editor/DomEditOverlay.tsx +1 -1
  56. package/src/components/editor/EaseCurveSection.tsx +1 -1
  57. package/src/components/editor/EaseParamFields.tsx +5 -5
  58. package/src/components/editor/FileTree.tsx +4 -4
  59. package/src/components/editor/FileTreeIcons.tsx +1 -1
  60. package/src/components/editor/FileTreeNodes.tsx +13 -13
  61. package/src/components/editor/InlineTextToolbar.tsx +1 -1
  62. package/src/components/editor/InspectorHeaderActions.tsx +3 -3
  63. package/src/components/editor/KeyframeDiamond.tsx +1 -1
  64. package/src/components/editor/KeyframeEaseList.tsx +1 -1
  65. package/src/components/editor/LayersPanel.test.ts +97 -1
  66. package/src/components/editor/LayersPanel.tsx +7 -5
  67. package/src/components/editor/MarqueeOverlay.tsx +1 -1
  68. package/src/components/editor/OffCanvasIndicators.tsx +1 -1
  69. package/src/components/editor/PreviewGuides.tsx +1 -1
  70. package/src/components/editor/PromotableControl.tsx +2 -2
  71. package/src/components/editor/PropertyPanelEmptyState.tsx +7 -7
  72. package/src/components/editor/PropertyPanelFlatHeader.tsx +2 -2
  73. package/src/components/editor/SnapToolbar.tsx +2 -2
  74. package/src/components/editor/TimelineFxPopover.tsx +1 -1
  75. package/src/components/editor/TopologyLens.test.tsx +28 -0
  76. package/src/components/editor/TopologyLens.tsx +7 -5
  77. package/src/components/editor/Transform3DCube.tsx +2 -2
  78. package/src/components/editor/audioFxRevealTarget.ts +1 -0
  79. package/src/components/editor/domEditing.test.ts +1 -1
  80. package/src/components/editor/domEditingAgentPrompt.test.ts +8 -6
  81. package/src/components/editor/domEditingAgentPrompt.ts +4 -3
  82. package/src/components/editor/propertyPanelColor.tsx +11 -11
  83. package/src/components/editor/propertyPanelColorCurveGraph.tsx +1 -1
  84. package/src/components/editor/propertyPanelColorGradingControls.tsx +7 -9
  85. package/src/components/editor/propertyPanelColorGradingSection.tsx +6 -6
  86. package/src/components/editor/propertyPanelColorGradingSlider.tsx +5 -5
  87. package/src/components/editor/propertyPanelColorWheels.tsx +1 -1
  88. package/src/components/editor/propertyPanelCommitField.tsx +1 -1
  89. package/src/components/editor/propertyPanelFill.tsx +4 -4
  90. package/src/components/editor/propertyPanelFlatColorGradingAccessory.tsx +3 -3
  91. package/src/components/editor/propertyPanelFlatColorGradingSection.tsx +7 -7
  92. package/src/components/editor/propertyPanelFlatEffectsSection.tsx +4 -4
  93. package/src/components/editor/propertyPanelFlatMediaSection.tsx +3 -3
  94. package/src/components/editor/propertyPanelFlatOverlaysSection.tsx +1 -1
  95. package/src/components/editor/propertyPanelFlatPrimitives.tsx +10 -10
  96. package/src/components/editor/propertyPanelFlatSelectRow.tsx +3 -3
  97. package/src/components/editor/propertyPanelFlatTextSection.test.tsx +8 -9
  98. package/src/components/editor/propertyPanelFlatTextSection.tsx +5 -5
  99. package/src/components/editor/propertyPanelFlatToggle.tsx +1 -1
  100. package/src/components/editor/propertyPanelFont.tsx +5 -5
  101. package/src/components/editor/propertyPanelFxCarveModule.tsx +1 -1
  102. package/src/components/editor/propertyPanelFxControls.test.tsx +1 -1
  103. package/src/components/editor/propertyPanelFxControls.tsx +6 -6
  104. package/src/components/editor/propertyPanelFxEqModule.tsx +2 -2
  105. package/src/components/editor/propertyPanelFxPresetStyle.ts +2 -2
  106. package/src/components/editor/propertyPanelGradingNumberField.tsx +1 -1
  107. package/src/components/editor/propertyPanelMediaSection.tsx +1 -1
  108. package/src/components/editor/propertyPanelPrimitives.tsx +7 -7
  109. package/src/components/editor/propertyPanelSections.tsx +8 -8
  110. package/src/components/editor/useColorGradingController.test.ts +38 -0
  111. package/src/components/editor/useColorGradingController.ts +9 -1
  112. package/src/components/editor/useColorGradingPreviews.test.ts +76 -0
  113. package/src/components/editor/useColorGradingPreviews.ts +11 -1
  114. package/src/components/editor/usePreviewCompositionRect.test.tsx +95 -0
  115. package/src/components/editor/usePreviewCompositionRect.ts +21 -0
  116. package/src/components/feedback/StudioFeedbackCard.tsx +7 -7
  117. package/src/components/feedback/feedbackTrigger.ts +0 -1
  118. package/src/components/nle/AssetPreviewOverlay.tsx +6 -2
  119. package/src/components/nle/CompositionBreadcrumb.tsx +3 -3
  120. package/src/components/nle/NLEPreview.tsx +3 -3
  121. package/src/components/nle/PreviewOverlays.tsx +6 -6
  122. package/src/components/nle/PreviewPane.tsx +3 -3
  123. package/src/components/nle/TimelinePane.tsx +3 -3
  124. package/src/components/nle/TimelineResizeDivider.tsx +2 -2
  125. package/src/components/panels/SlideshowPanel.tsx +2 -2
  126. package/src/components/panels/SlideshowSubPanels.tsx +20 -17
  127. package/src/components/panels/VariablesBindElement.tsx +2 -2
  128. package/src/components/panels/VariablesDeclarationForm.tsx +2 -2
  129. package/src/components/panels/VariablesOtherCompositions.tsx +1 -1
  130. package/src/components/panels/VariablesPanel.tsx +3 -3
  131. package/src/components/panels/VariablesValueControls.tsx +2 -2
  132. package/src/components/pointerTargetSize.test.tsx +8 -0
  133. package/src/components/renders/FfmpegRequiredNotice.tsx +5 -5
  134. package/src/components/renders/RenderQueue.test.tsx +7 -0
  135. package/src/components/renders/RenderQueue.tsx +7 -7
  136. package/src/components/renders/RenderQueueItem.tsx +6 -6
  137. package/src/components/sidebar/AssetCard.tsx +8 -8
  138. package/src/components/sidebar/AssetContextMenu.tsx +8 -8
  139. package/src/components/sidebar/AssetsTab.tsx +2 -2
  140. package/src/components/sidebar/AudioRow.tsx +6 -6
  141. package/src/components/sidebar/BlocksTab.tsx +6 -6
  142. package/src/components/sidebar/CompositionsTab.tsx +5 -5
  143. package/src/components/sidebar/GlobalAssetsView.tsx +1 -1
  144. package/src/components/sidebar/LeftSidebar.lintBadge.test.tsx +58 -0
  145. package/src/components/sidebar/LeftSidebar.tsx +19 -5
  146. package/src/components/sidebar/PromptPreviewModal.tsx +3 -3
  147. package/src/components/timelineToolbarStyles.ts +5 -0
  148. package/src/components/ui/Button.test.tsx +252 -0
  149. package/src/components/ui/Button.tsx +89 -126
  150. package/src/components/ui/IconButton.tsx +38 -0
  151. package/src/components/ui/Input.tsx +115 -0
  152. package/src/components/ui/Menu.test.tsx +374 -0
  153. package/src/components/ui/Menu.tsx +213 -0
  154. package/src/components/ui/NumberField.tsx +122 -0
  155. package/src/components/ui/Popover.tsx +74 -0
  156. package/src/components/ui/SearchInput.tsx +2 -2
  157. package/src/components/ui/Select.tsx +100 -0
  158. package/src/components/ui/Slider.tsx +153 -0
  159. package/src/components/ui/Tabs.test.tsx +98 -0
  160. package/src/components/ui/Tabs.tsx +71 -0
  161. package/src/components/ui/Toggle.tsx +63 -0
  162. package/src/components/ui/Tooltip.test.tsx +110 -0
  163. package/src/components/ui/Tooltip.tsx +38 -112
  164. package/src/components/ui/cn.test.ts +30 -0
  165. package/src/components/ui/cn.ts +25 -0
  166. package/src/components/ui/index.ts +29 -2
  167. package/src/components/ui/mountHost.testHelpers.ts +24 -0
  168. package/src/components/ui/valueControls.test.tsx +524 -0
  169. package/src/hooks/useAppHotkeys.ts +21 -80
  170. package/src/hooks/useCaptionDetection.sender.test.tsx +46 -0
  171. package/src/hooks/useCaptionDetection.ts +3 -1
  172. package/src/hooks/useEditHistoryActions.test.tsx +90 -0
  173. package/src/hooks/useEditHistoryActions.ts +106 -0
  174. package/src/hooks/useLintModal.test.tsx +65 -0
  175. package/src/hooks/useLintModal.ts +3 -0
  176. package/src/hooks/useSdkSession.lifecycle.test.tsx +49 -4
  177. package/src/hooks/useSdkSession.ts +43 -10
  178. package/src/hooks/useServerConnection.hashProject.test.tsx +94 -0
  179. package/src/hooks/useServerConnection.ts +43 -10
  180. package/src/hooks/useTimelineAssetDropOps.test.tsx +41 -1
  181. package/src/hooks/useTimelineAssetDropOps.ts +52 -11
  182. package/src/index.ts +51 -0
  183. package/src/main.tsx +9 -3
  184. package/src/player/components/AudioWaveform.tsx +1 -1
  185. package/src/player/components/AutomationSelectionMenu.tsx +3 -3
  186. package/src/player/components/ClipContextMenu.tsx +3 -3
  187. package/src/player/components/CompositionThumbnail.test.ts +0 -3
  188. package/src/player/components/CompositionThumbnail.tsx +3 -4
  189. package/src/player/components/EditModal.tsx +1 -1
  190. package/src/player/components/ImageThumbnail.tsx +1 -1
  191. package/src/player/components/KeyframeDiamondContextMenu.tsx +4 -4
  192. package/src/player/components/LayerDisclosureRow.tsx +2 -2
  193. package/src/player/components/PlayerControls.tsx +1 -1
  194. package/src/player/components/ShortcutsPanel.tsx +9 -9
  195. package/src/player/components/SpeedMenu.tsx +3 -5
  196. package/src/player/components/Timeline.tsx +2 -1
  197. package/src/player/components/TimelineCanvas.tsx +21 -14
  198. package/src/player/components/TimelineClip.tsx +0 -1
  199. package/src/player/components/TimelineDiamondConnectors.tsx +1 -1
  200. package/src/player/components/TimelineEmptyState.tsx +5 -5
  201. package/src/player/components/TimelineFxButton.tsx +6 -6
  202. package/src/player/components/TimelineGroupHeader.tsx +5 -5
  203. package/src/player/components/TimelineGroupLaneLabels.tsx +1 -1
  204. package/src/player/components/TimelineGroupRow.tsx +1 -1
  205. package/src/player/components/TimelineLanes.test.tsx +32 -0
  206. package/src/player/components/TimelineLanes.tsx +2 -5
  207. package/src/player/components/TimelineLayerGroupHeader.tsx +2 -2
  208. package/src/player/components/TimelineRuler.tsx +1 -1
  209. package/src/player/components/TimelineShortcutHint.tsx +1 -1
  210. package/src/player/components/TimelineTrackHeader.tsx +1 -1
  211. package/src/player/components/TimelineTrackPlainHeader.tsx +3 -3
  212. package/src/player/components/TimelineTypes.ts +2 -1
  213. package/src/player/components/TrackGapContextMenu.tsx +1 -1
  214. package/src/player/components/VideoThumbnail.tsx +4 -2
  215. package/src/player/components/VolumeControl.tsx +2 -2
  216. package/src/player/components/timelineCallbacks.ts +8 -8
  217. package/src/player/components/timelineClipDragPreview.ts +51 -27
  218. package/src/player/components/timelineClipDragTypes.ts +3 -0
  219. package/src/player/components/timelineDragDrop.test.tsx +61 -1
  220. package/src/player/components/timelineDragDrop.ts +57 -15
  221. package/src/player/components/timelineLaneProps.ts +3 -0
  222. package/src/player/components/timelineSnapping.test.ts +27 -0
  223. package/src/player/components/timelineSnapping.ts +14 -1
  224. package/src/player/components/trackHeaderLabelRows.tsx +4 -4
  225. package/src/player/components/useTimelineClipDrag.resize.test.tsx +136 -2
  226. package/src/player/components/useTimelineClipDrag.ts +30 -3
  227. package/src/player/lib/describeClips.ts +3 -54
  228. package/src/player/lib/playbackShortcuts.ts +2 -0
  229. package/src/player/store/previewIframeStore.notify.test.tsx +75 -0
  230. package/src/player/store/previewIframeStore.test.tsx +29 -0
  231. package/src/player/store/previewIframeStore.ts +25 -0
  232. package/src/renderQueueExports.test.tsx +58 -0
  233. package/src/styles/classCandidates.test.ts +105 -0
  234. package/src/styles/classCandidates.ts +281 -0
  235. package/src/styles/hex-baseline.json +84 -0
  236. package/src/styles/hexRatchet.test.ts +201 -0
  237. package/src/styles/iconTokens.ts +20 -0
  238. package/src/styles/palette-reset.css +6 -0
  239. package/src/styles/studio.css +24 -21
  240. package/src/styles/styleSources.test.ts +20 -0
  241. package/src/styles/styleSources.ts +47 -0
  242. package/src/styles/tailwind-preset.shared.js +3 -0
  243. package/src/styles/theme.css +243 -0
  244. package/src/styles/theme.test.ts +183 -0
  245. package/src/styles/tokenGate.test.ts +109 -0
  246. package/src/utils/sourcePatcher.ts +1 -1
  247. package/src/utils/studioHelpers.test.ts +18 -0
  248. package/src/utils/studioHelpers.ts +11 -1
  249. package/src/utils/studioUiPreferences.ts +7 -0
  250. package/src/utils/timelineDropTrackInsert.test.ts +134 -0
  251. package/src/utils/timelineDropTrackInsert.ts +83 -0
  252. package/src/utils/typingTarget.ts +4 -0
  253. package/dist/assets/index-n2ml4tUn.js +0 -442
  254. package/dist/assets/index-pO6p0H27.css +0 -1
  255. package/src/components/PanelTabButton.tsx +0 -31
  256. package/src/components/storyboard/AgentChatMessageButton.test.tsx +0 -47
  257. package/src/components/storyboard/AgentChatMessageButton.tsx +0 -45
  258. package/src/components/storyboard/FramePoster.test.tsx +0 -61
  259. package/src/components/storyboard/FramePoster.tsx +0 -86
  260. package/src/components/storyboard/StoryboardDirection.tsx +0 -45
  261. package/src/components/storyboard/StoryboardFrameFocus.tsx +0 -412
  262. package/src/components/storyboard/StoryboardFrameTile.tsx +0 -117
  263. package/src/components/storyboard/StoryboardGrid.tsx +0 -55
  264. package/src/components/storyboard/StoryboardLoaded.tsx +0 -307
  265. package/src/components/storyboard/StoryboardReviewGuide.tsx +0 -300
  266. package/src/components/storyboard/StoryboardScriptPanel.tsx +0 -26
  267. package/src/components/storyboard/StoryboardSourceEditor.tsx +0 -231
  268. package/src/components/storyboard/StoryboardStatusLegend.tsx +0 -21
  269. package/src/components/storyboard/StoryboardView.tsx +0 -169
  270. package/src/components/storyboard/StoryboardViewModeGuard.test.tsx +0 -187
  271. package/src/components/storyboard/frameComments.test.ts +0 -95
  272. package/src/components/storyboard/frameComments.ts +0 -115
  273. package/src/components/storyboard/frameStatus.ts +0 -36
  274. package/src/components/storyboard/storyboardReviewStage.test.ts +0 -40
  275. package/src/components/storyboard/storyboardReviewStage.ts +0 -45
  276. package/src/components/storyboard/useFrameComments.ts +0 -98
  277. package/src/contexts/ViewModeContext.tsx +0 -142
  278. package/src/hooks/useProjectSignaturePoll.test.tsx +0 -135
  279. package/src/hooks/useProjectSignaturePoll.ts +0 -68
  280. package/src/hooks/useStoryboard.ts +0 -99
@@ -90,11 +90,11 @@ export function SlideList({
90
90
  checked={isSlide}
91
91
  onChange={() => onToggle(scene.id)}
92
92
  onClick={(e) => e.stopPropagation()}
93
- className="accent-studio-accent flex-shrink-0"
93
+ className="accent-studio-accent shrink-0"
94
94
  />
95
95
  <span className="flex-1 truncate">{scene.label || scene.id}</span>
96
96
  {isSlide && (
97
- <span className="flex gap-0.5 flex-shrink-0">
97
+ <span className="flex gap-0.5 shrink-0">
98
98
  <button
99
99
  type="button"
100
100
  aria-label="Move slide up"
@@ -162,7 +162,7 @@ export function SlideInspector({
162
162
  <div className="flex flex-col gap-1">
163
163
  <label className="text-[11px] text-neutral-400">Notes</label>
164
164
  <textarea
165
- className="bg-neutral-800 border border-neutral-700 rounded px-2 py-1.5 text-[11px] text-white resize-none placeholder-neutral-600 focus:border-studio-accent/60 focus:outline-none"
165
+ className="bg-neutral-800 border border-neutral-700 rounded-sm px-2 py-1.5 text-[11px] text-white resize-none placeholder-neutral-600 focus:border-studio-accent/60 focus:outline-hidden"
166
166
  rows={3}
167
167
  placeholder="Speaker notes or script..."
168
168
  value={slide?.notes ?? ""}
@@ -174,7 +174,7 @@ export function SlideInspector({
174
174
  <span className="text-[11px] text-neutral-400">Fragment hold-points</span>
175
175
  <button
176
176
  type="button"
177
- className="text-[10px] px-2 py-0.5 rounded bg-neutral-700 hover:bg-neutral-600 text-neutral-200 transition-colors"
177
+ className="text-[10px] px-2 py-0.5 rounded-sm bg-neutral-700 hover:bg-neutral-600 text-neutral-200 transition-colors"
178
178
  onClick={onMarkFragment}
179
179
  title={`Mark ${currentTime.toFixed(2)}s as hold-point`}
180
180
  >
@@ -186,7 +186,7 @@ export function SlideInspector({
186
186
  {fragments.map((t, i) => (
187
187
  <span
188
188
  key={`frag-${i}`}
189
- className="inline-flex items-center gap-1 bg-neutral-700 rounded px-1.5 py-0.5 text-[10px] text-neutral-200"
189
+ className="inline-flex items-center gap-1 bg-neutral-700 rounded-sm px-1.5 py-0.5 text-[10px] text-neutral-200"
190
190
  >
191
191
  {t.toFixed(2)}s
192
192
  <button
@@ -249,7 +249,7 @@ export function BranchTree({
249
249
  <input
250
250
  id={inputId}
251
251
  type="text"
252
- className="flex-1 bg-neutral-800 border border-neutral-700 rounded px-2 py-1 text-[11px] text-white placeholder-neutral-600 focus:border-studio-accent/60 focus:outline-none"
252
+ className="flex-1 bg-neutral-800 border border-neutral-700 rounded-sm px-2 py-1 text-[11px] text-white placeholder-neutral-600 focus:border-studio-accent/60 focus:outline-hidden"
253
253
  placeholder="New branch name..."
254
254
  value={newLabel}
255
255
  onChange={(e) => setNewLabel(e.target.value)}
@@ -260,7 +260,7 @@ export function BranchTree({
260
260
  />
261
261
  <button
262
262
  type="button"
263
- className="px-2 py-1 rounded bg-neutral-700 hover:bg-neutral-600 text-[11px] text-neutral-200 transition-colors flex-shrink-0"
263
+ className="px-2 py-1 rounded-sm bg-neutral-700 hover:bg-neutral-600 text-[11px] text-neutral-200 transition-colors shrink-0"
264
264
  onClick={handleCreate}
265
265
  >
266
266
  Add
@@ -322,11 +322,11 @@ function BranchItem({
322
322
  }, [draft, onRename, seq.id, seq.label]);
323
323
 
324
324
  return (
325
- <div className="border border-neutral-700/60 rounded p-2 flex flex-col gap-2">
325
+ <div className="border border-neutral-700/60 rounded-sm p-2 flex flex-col gap-2">
326
326
  <div className="flex items-center gap-1">
327
327
  {editing ? (
328
328
  <input
329
- className="flex-1 bg-neutral-800 border border-neutral-600 rounded px-1.5 py-0.5 text-[11px] text-white focus:border-studio-accent/60 focus:outline-none"
329
+ className="flex-1 bg-neutral-800 border border-neutral-600 rounded-sm px-1.5 py-0.5 text-[11px] text-white focus:border-studio-accent/60 focus:outline-hidden"
330
330
  value={draft}
331
331
  autoFocus
332
332
  onChange={(e) => setDraft(e.target.value)}
@@ -364,7 +364,7 @@ function BranchItem({
364
364
  </button>
365
365
  </div>
366
366
  {confirmingDelete && (
367
- <div className="px-2 py-1.5 bg-red-950/30 border-l-2 border-red-500 flex flex-col gap-1 rounded-sm">
367
+ <div className="px-2 py-1.5 bg-red-950/30 border-l-2 border-red-500 flex flex-col gap-1 rounded-xs">
368
368
  <span className="text-[10px] text-red-400">
369
369
  Delete branch &ldquo;{seq.label}&rdquo;
370
370
  {seq.slides.length > 0
@@ -379,14 +379,14 @@ function BranchItem({
379
379
  setConfirmingDelete(false);
380
380
  onDelete(seq.id);
381
381
  }}
382
- className="px-2 py-0.5 text-[10px] rounded bg-red-600 text-white hover:bg-red-500 active:bg-red-700 transition-colors"
382
+ className="px-2 py-0.5 text-[10px] rounded-sm bg-red-600 text-white hover:bg-red-500 active:bg-red-700 transition-colors"
383
383
  >
384
384
  Delete
385
385
  </button>
386
386
  <button
387
387
  type="button"
388
388
  onClick={() => setConfirmingDelete(false)}
389
- className="px-2 py-0.5 text-[10px] rounded text-neutral-400 hover:text-neutral-200 transition-colors"
389
+ className="px-2 py-0.5 text-[10px] rounded-sm text-neutral-400 hover:text-neutral-200 transition-colors"
390
390
  >
391
391
  Cancel
392
392
  </button>
@@ -407,7 +407,7 @@ function BranchItem({
407
407
  aria-label={`Assign ${scene.label || scene.id} to branch ${seq.label}`}
408
408
  checked={assigned}
409
409
  onChange={(e) => onAssign(seq.id, scene.id, e.target.checked)}
410
- className="accent-studio-accent flex-shrink-0"
410
+ className="accent-studio-accent shrink-0"
411
411
  />
412
412
  {assigned ? (
413
413
  <button
@@ -497,7 +497,7 @@ export function HotspotTool({
497
497
  <label className="text-[11px] text-neutral-400">Hotspot label</label>
498
498
  <input
499
499
  type="text"
500
- className="bg-neutral-800 border border-neutral-700 rounded px-2 py-1 text-[11px] text-white placeholder-neutral-600 focus:border-studio-accent/60 focus:outline-none"
500
+ className="bg-neutral-800 border border-neutral-700 rounded-sm px-2 py-1 text-[11px] text-white placeholder-neutral-600 focus:border-studio-accent/60 focus:outline-hidden"
501
501
  placeholder="Button label..."
502
502
  value={hotspotLabel}
503
503
  onChange={(e) => setHotspotLabel(e.target.value)}
@@ -505,7 +505,7 @@ export function HotspotTool({
505
505
  />
506
506
  <label className="text-[11px] text-neutral-400">Target branch</label>
507
507
  <select
508
- className="bg-neutral-800 border border-neutral-700 rounded px-2 py-1 text-[11px] text-white focus:border-studio-accent/60 focus:outline-none"
508
+ className="bg-neutral-800 border border-neutral-700 rounded-sm px-2 py-1 text-[11px] text-white focus:border-studio-accent/60 focus:outline-hidden"
509
509
  value={targetSequenceId}
510
510
  onChange={(e) => setTargetSequenceId(e.target.value)}
511
511
  aria-label="Target branch sequence"
@@ -527,7 +527,7 @@ export function HotspotTool({
527
527
  ? "Choose a target branch first"
528
528
  : undefined
529
529
  }
530
- className="px-3 py-1.5 rounded bg-studio-accent/80 enabled:hover:bg-studio-accent enabled:active:scale-[0.98] text-white text-[11px] font-medium transition-colors disabled:opacity-40 disabled:cursor-not-allowed"
530
+ className="px-3 py-1.5 rounded-sm bg-studio-accent/80 enabled:hover:bg-studio-accent enabled:active:scale-[0.98] text-white text-[11px] font-medium transition-colors disabled:opacity-40 disabled:cursor-not-allowed"
531
531
  onClick={handleMakeHotspot}
532
532
  >
533
533
  Make hotspot
@@ -540,7 +540,10 @@ export function HotspotTool({
540
540
  {hotspots.map((h) => {
541
541
  const seqLabel = sequences.find((s) => s.id === h.target)?.label ?? h.target;
542
542
  return (
543
- <div key={h.id} className="flex items-center gap-2 bg-neutral-800 rounded px-2 py-1">
543
+ <div
544
+ key={h.id}
545
+ className="flex items-center gap-2 bg-neutral-800 rounded-sm px-2 py-1"
546
+ >
544
547
  <span className="flex-1 text-[11px] text-neutral-200 truncate">
545
548
  {h.label} → <span className="text-neutral-400">{seqLabel}</span>
546
549
  </span>
@@ -227,7 +227,7 @@ export function VariablesBindElement({
227
227
  <button
228
228
  type="button"
229
229
  onClick={() => setActiveKey(null)}
230
- className="h-6 rounded px-2 text-[10px] text-neutral-500 hover:text-neutral-300"
230
+ className="h-6 rounded-sm px-2 text-[10px] text-neutral-500 hover:text-neutral-300"
231
231
  >
232
232
  Cancel
233
233
  </button>
@@ -238,7 +238,7 @@ export function VariablesBindElement({
238
238
  setActiveKey(null);
239
239
  onBind(active, trimmedId);
240
240
  }}
241
- className="h-6 rounded bg-neutral-800 px-2 text-[10px] font-medium text-neutral-200 hover:bg-neutral-700 disabled:cursor-not-allowed disabled:opacity-40"
241
+ className="h-6 rounded-sm bg-neutral-800 px-2 text-[10px] font-medium text-neutral-200 hover:bg-neutral-700 disabled:cursor-not-allowed disabled:opacity-40"
242
242
  >
243
243
  {existingDecl ? "Bind anyway" : "Bind"}
244
244
  </button>
@@ -304,14 +304,14 @@ export function DeclarationForm({
304
304
  <button
305
305
  type="button"
306
306
  onClick={onCancel}
307
- className="h-6 rounded px-2 text-[10px] text-neutral-500 hover:text-neutral-300"
307
+ className="h-6 rounded-sm px-2 text-[10px] text-neutral-500 hover:text-neutral-300"
308
308
  >
309
309
  Cancel
310
310
  </button>
311
311
  <button
312
312
  type="button"
313
313
  onClick={submit}
314
- className="h-6 rounded bg-neutral-800 px-2 text-[10px] font-medium text-neutral-200 hover:bg-neutral-700"
314
+ className="h-6 rounded-sm bg-neutral-800 px-2 text-[10px] font-medium text-neutral-200 hover:bg-neutral-700"
315
315
  >
316
316
  {submitLabel}
317
317
  </button>
@@ -51,7 +51,7 @@ function CompositionSection({
51
51
  <span className="truncate text-[10px] font-medium text-neutral-300">
52
52
  {decl.label}
53
53
  </span>
54
- <span className="rounded bg-neutral-800 px-1 py-px font-mono text-[8px] text-neutral-500">
54
+ <span className="rounded-sm bg-neutral-800 px-1 py-px font-mono text-[8px] text-neutral-500">
55
55
  {decl.type}
56
56
  </span>
57
57
  <span className="ml-auto flex items-center gap-1">
@@ -96,12 +96,12 @@ function VariableRow({
96
96
  <div className="space-y-1.5 rounded-lg border border-neutral-800/70 p-2">
97
97
  <div className="flex items-center gap-1.5">
98
98
  <span className="truncate text-[10px] font-medium text-neutral-300">{decl.label}</span>
99
- <span className="rounded bg-neutral-800 px-1 py-px font-mono text-[8px] text-neutral-500">
99
+ <span className="rounded-sm bg-neutral-800 px-1 py-px font-mono text-[8px] text-neutral-500">
100
100
  {decl.type}
101
101
  </span>
102
102
  {unused && (
103
103
  <span
104
- className="rounded bg-amber-900/40 px-1 py-px text-[8px] text-amber-400"
104
+ className="rounded-sm bg-amber-900/40 px-1 py-px text-[8px] text-amber-400"
105
105
  title="No script reads this variable"
106
106
  >
107
107
  unused
@@ -189,7 +189,7 @@ function PreviewModeHeader({
189
189
  <button
190
190
  type="button"
191
191
  onClick={onReset}
192
- className="h-6 rounded px-2 text-[10px] text-neutral-400 hover:text-neutral-200"
192
+ className="h-6 rounded-sm px-2 text-[10px] text-neutral-400 hover:text-neutral-200"
193
193
  >
194
194
  Reset
195
195
  </button>
@@ -14,7 +14,7 @@ import type {
14
14
  } from "@hyperframes/sdk";
15
15
 
16
16
  export const VARIABLES_INPUT_CLASS =
17
- "w-full bg-neutral-900 border border-neutral-800 rounded px-2 py-1 text-[10px] text-neutral-200 focus:outline-none focus:border-neutral-700";
17
+ "w-full bg-neutral-900 border border-neutral-800 rounded-sm px-2 py-1 text-[10px] text-neutral-200 focus:outline-hidden focus:border-neutral-700";
18
18
 
19
19
  /** Text input that drafts locally and commits on blur/Enter. */
20
20
  function DraftTextInput({
@@ -106,7 +106,7 @@ function ColorControl({
106
106
  if (draft !== null && draft !== colorValue) onCommit(draft);
107
107
  setDraft(null);
108
108
  }}
109
- className="h-6 w-6 cursor-pointer rounded border border-neutral-700 bg-transparent"
109
+ className="h-6 w-6 cursor-pointer rounded-sm border border-neutral-700 bg-transparent"
110
110
  />
111
111
  <DraftTextInput
112
112
  value={colorValue}
@@ -6,6 +6,14 @@ import { afterEach, describe, expect, it, vi } from "vitest";
6
6
  import { CompositionsTab } from "./sidebar/CompositionsTab";
7
7
  import { TimelineToolbar } from "./TimelineToolbar";
8
8
 
9
+ vi.mock("../contexts/StudioContext", () => ({
10
+ useStudioShellContext: () => ({
11
+ editHistory: { canUndo: false, canRedo: false },
12
+ handleUndo: vi.fn(),
13
+ handleRedo: vi.fn(),
14
+ }),
15
+ }));
16
+
9
17
  // WCAG 2.2 (2.5.8) requires a 24x24 CSS pixel pointer target. happy-dom has no
10
18
  // CSS engine, so getBoundingClientRect() is 0x0 for everything here and the size
11
19
  // itself cannot be measured — these assert the utility classes that PRODUCE the
@@ -8,7 +8,7 @@ const CUE_MS = 1600;
8
8
  // Matches the focus treatment every other button in this panel uses. A control
9
9
  // the keyboard can reach but not see focus on is unusable without a mouse.
10
10
  const FOCUS_RING =
11
- "outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-studio-accent";
11
+ "outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-studio-accent";
12
12
 
13
13
  /**
14
14
  * Shown above Export when the dev server reports no usable FFmpeg.
@@ -81,7 +81,7 @@ export const FfmpegRequiredNotice = memo(function FfmpegRequiredNotice({
81
81
 
82
82
  {status.command ? (
83
83
  <div className="flex items-center gap-1.5">
84
- <code className="flex-1 overflow-x-auto whitespace-nowrap rounded-sm bg-black/40 px-2 py-1 text-[10px] text-panel-text-2">
84
+ <code className="flex-1 overflow-x-auto whitespace-nowrap rounded-xs bg-black/40 px-2 py-1 text-[10px] text-panel-text-2">
85
85
  {status.command}
86
86
  </code>
87
87
  {/* Fixed width so swapping the label to "Copied" cannot shift the
@@ -89,7 +89,7 @@ export const FfmpegRequiredNotice = memo(function FfmpegRequiredNotice({
89
89
  <button
90
90
  type="button"
91
91
  onClick={() => void copy(status.command ?? "")}
92
- className={`h-6 w-14 flex-shrink-0 rounded-sm border border-amber-500/30 text-[10px] font-medium text-amber-200 transition-colors hover:bg-amber-500/20 active:scale-[0.98] ${FOCUS_RING}`}
92
+ className={`h-6 w-14 shrink-0 rounded-xs border border-amber-500/30 text-[10px] font-medium text-amber-200 transition-colors hover:bg-amber-500/20 active:scale-[0.98] ${FOCUS_RING}`}
93
93
  >
94
94
  {copied ? "Copied" : "Copy"}
95
95
  </button>
@@ -107,7 +107,7 @@ export const FfmpegRequiredNotice = memo(function FfmpegRequiredNotice({
107
107
  type="button"
108
108
  onClick={onRecheck}
109
109
  disabled={checking}
110
- className={`rounded-sm py-0.5 text-[10px] font-medium text-amber-200 underline-offset-2 transition-colors hover:underline disabled:opacity-50 ${FOCUS_RING}`}
110
+ className={`rounded-xs py-0.5 text-[10px] font-medium text-amber-200 underline-offset-2 transition-colors hover:underline disabled:opacity-50 ${FOCUS_RING}`}
111
111
  >
112
112
  {checking ? "Checking…" : "Recheck"}
113
113
  </button>
@@ -115,7 +115,7 @@ export const FfmpegRequiredNotice = memo(function FfmpegRequiredNotice({
115
115
  href={DOWNLOAD_URL}
116
116
  target="_blank"
117
117
  rel="noreferrer"
118
- className={`rounded-sm py-0.5 text-[10px] text-panel-text-2 underline-offset-2 transition-colors hover:text-panel-text-0 hover:underline ${FOCUS_RING}`}
118
+ className={`rounded-xs py-0.5 text-[10px] text-panel-text-2 underline-offset-2 transition-colors hover:text-panel-text-0 hover:underline ${FOCUS_RING}`}
119
119
  >
120
120
  Other install options
121
121
  </a>
@@ -81,6 +81,13 @@ function exportButtonIn(host: HTMLElement): HTMLButtonElement {
81
81
  return button;
82
82
  }
83
83
 
84
+ describe("RenderQueue Export button", () => {
85
+ it("leaves the font size to the shared Button", () => {
86
+ const host = mountRenderQueue(vi.fn());
87
+ expect(exportButtonIn(host).className).not.toMatch(/text-\[/);
88
+ });
89
+ });
90
+
84
91
  describe("RenderQueue FFmpeg gate", () => {
85
92
  it("refuses Export and shows the install command when the server reports no FFmpeg", () => {
86
93
  ffmpegStatus = {
@@ -22,7 +22,7 @@ type StartRenderHandler = (
22
22
  fps: 24 | 30 | 60,
23
23
  ) => void | Promise<void>;
24
24
 
25
- interface RenderQueueProps {
25
+ export interface RenderQueueProps {
26
26
  jobs: RenderJob[];
27
27
  projectId: string;
28
28
  onDelete: (jobId: string) => void;
@@ -207,7 +207,7 @@ function FormatInfoTooltip({ format }: { format: "mp4" | "webm" | "mov" }) {
207
207
  onFocus={show}
208
208
  onBlur={hide}
209
209
  onClick={() => setOpen((prev) => !prev)}
210
- className="flex items-center justify-center p-0.5 -m-0.5 rounded text-panel-text-5 hover:text-panel-text-3 transition-colors cursor-help outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-studio-accent"
210
+ className="flex items-center justify-center p-0.5 -m-0.5 rounded-sm text-panel-text-5 hover:text-panel-text-3 transition-colors cursor-help outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-studio-accent"
211
211
  >
212
212
  <svg
213
213
  width="12"
@@ -232,7 +232,7 @@ function FormatInfoTooltip({ format }: { format: "mp4" | "webm" | "mov" }) {
232
232
  role="tooltip"
233
233
  onPointerEnter={show}
234
234
  onPointerLeave={hide}
235
- className="fixed w-52 p-2 rounded bg-panel-input border border-neutral-700 shadow-lg z-[200]"
235
+ className="fixed w-52 p-2 rounded-sm bg-panel-input border border-neutral-700 shadow-lg z-200"
236
236
  style={{ left: position?.left ?? -9999, top: position?.top ?? -9999 }}
237
237
  >
238
238
  <p className="text-[10px] font-semibold text-panel-text-1 mb-0.5">{info.label}</p>
@@ -303,7 +303,7 @@ function FormatExportButton({
303
303
  const showQuality = format !== "mov";
304
304
 
305
305
  const selectCls =
306
- "h-7 w-full px-2 text-[11px] bg-panel-input rounded-md text-panel-text-1 outline-none cursor-pointer disabled:opacity-50 hover:bg-panel-hover transition-colors";
306
+ "h-7 w-full px-2 text-[11px] bg-panel-input rounded-md text-panel-text-1 outline-hidden cursor-pointer disabled:opacity-50 hover:bg-panel-hover transition-colors";
307
307
 
308
308
  return (
309
309
  <div className="flex flex-col gap-3">
@@ -407,7 +407,7 @@ function FormatExportButton({
407
407
  trackStudioEvent("render_start", { format, quality, resolution: outputResolution, fps });
408
408
  void onStartRender(format, quality, outputResolution, fps);
409
409
  }}
410
- className="w-full text-[11px] font-semibold"
410
+ className="w-full font-semibold"
411
411
  >
412
412
  {isRendering ? "Rendering…" : "Export"}
413
413
  </Button>
@@ -454,7 +454,7 @@ export const RenderQueue = memo(function RenderQueue({
454
454
 
455
455
  return (
456
456
  <div className="flex flex-col h-full">
457
- <div className="px-3 py-3 border-b border-panel-border flex-shrink-0">
457
+ <div className="px-3 py-3 border-b border-panel-border shrink-0">
458
458
  <FormatExportButton
459
459
  onStartRender={onStartRender}
460
460
  isRendering={isRendering}
@@ -476,7 +476,7 @@ export const RenderQueue = memo(function RenderQueue({
476
476
  <button
477
477
  onClick={onDismissActionError}
478
478
  aria-label="Dismiss error"
479
- className="text-[10px] text-panel-text-4 hover:text-panel-text-2 flex-shrink-0"
479
+ className="text-[10px] text-panel-text-4 hover:text-panel-text-2 shrink-0"
480
480
  >
481
481
  ✕
482
482
  </button>
@@ -77,8 +77,8 @@ export const RenderQueueItem = memo(function RenderQueueItem({
77
77
  disabled={!isComplete}
78
78
  aria-label={isComplete ? `Open ${job.filename} in a new tab` : undefined}
79
79
  className={[
80
- "w-20 h-[45px] rounded-md overflow-hidden bg-panel-input flex-shrink-0 relative",
81
- "outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-studio-accent",
80
+ "w-20 h-[45px] rounded-md overflow-hidden bg-panel-input shrink-0 relative",
81
+ "outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-studio-accent",
82
82
  isComplete ? "cursor-pointer" : "cursor-default",
83
83
  ].join(" ")}
84
84
  >
@@ -130,7 +130,7 @@ export const RenderQueueItem = memo(function RenderQueueItem({
130
130
  {job.filename}
131
131
  </span>
132
132
  {job.durationMs && (
133
- <span className="text-[9px] text-panel-text-5 flex-shrink-0">
133
+ <span className="text-[9px] text-panel-text-5 shrink-0">
134
134
  {formatDuration(job.durationMs)}
135
135
  </span>
136
136
  )}
@@ -171,7 +171,7 @@ export const RenderQueueItem = memo(function RenderQueueItem({
171
171
  </div>
172
172
 
173
173
  {/* Actions — always visible to prevent layout shifts */}
174
- <div className="flex items-center gap-1.5 flex-shrink-0">
174
+ <div className="flex items-center gap-1.5 shrink-0">
175
175
  {isRendering ? (
176
176
  <Button
177
177
  size="sm"
@@ -211,7 +211,7 @@ export const RenderQueueItem = memo(function RenderQueueItem({
211
211
  <>
212
212
  <button
213
213
  onClick={isComplete ? handleDownload : undefined}
214
- className={`p-1.5 min-w-6 min-h-6 rounded transition-colors outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-studio-accent ${
214
+ className={`p-1.5 min-w-6 min-h-6 rounded transition-colors outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-studio-accent ${
215
215
  isComplete
216
216
  ? "text-panel-text-5 hover:text-panel-accent"
217
217
  : "text-panel-text-5/30 cursor-default"
@@ -240,7 +240,7 @@ export const RenderQueueItem = memo(function RenderQueueItem({
240
240
  e.stopPropagation();
241
241
  setConfirmingDelete(true);
242
242
  }}
243
- className="p-1.5 min-w-6 min-h-6 rounded text-panel-text-5 hover:text-red-400 transition-colors outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-studio-accent"
243
+ className="p-1.5 min-w-6 min-h-6 rounded-sm text-panel-text-5 hover:text-red-400 transition-colors outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-studio-accent"
244
244
  title="Delete render file"
245
245
  aria-label={`Delete ${job.filename}`}
246
246
  >
@@ -30,7 +30,7 @@ function CopyChip({ feedback, asset }: { feedback: CopyFeedback; asset: string }
30
30
  return (
31
31
  <span
32
32
  role="status"
33
- className={`flex-shrink-0 text-[9px] font-medium px-1.5 py-px rounded ${
33
+ className={`shrink-0 text-[9px] font-medium px-1.5 py-px rounded ${
34
34
  feedback.ok ? "text-panel-accent bg-panel-accent/10" : "text-red-400 bg-red-500/10"
35
35
  }`}
36
36
  >
@@ -223,12 +223,12 @@ export function AssetCard({
223
223
  onContextMenu={(e) => openAssetContextMenu(e, setContextMenu)}
224
224
  onPointerEnter={() => setHovered(true)}
225
225
  onPointerLeave={() => setHovered(false)}
226
- className={`flex flex-col gap-1 cursor-pointer rounded-md p-1 transition-colors outline-none focus-visible:bg-neutral-800/60 ${
226
+ className={`flex flex-col gap-1 cursor-pointer rounded-md p-1 transition-colors outline-hidden focus-visible:bg-neutral-800/60 ${
227
227
  isCopied ? "bg-studio-accent/10" : "hover:bg-neutral-800/40"
228
228
  }`}
229
229
  >
230
230
  {/* Thumbnail */}
231
- <div className="w-full aspect-video rounded overflow-hidden bg-neutral-900 relative">
231
+ <div className="w-full aspect-video rounded-sm overflow-hidden bg-neutral-900 relative">
232
232
  {isImage && !imgError && (
233
233
  <img
234
234
  src={serveUrl}
@@ -261,14 +261,14 @@ export function AssetCard({
261
261
 
262
262
  {/* "Added" badge — top-left */}
263
263
  {used && (
264
- <span className="absolute top-1 left-1 text-[9px] font-semibold leading-none px-1.5 py-[3px] rounded bg-neutral-950/80 text-panel-text-1">
264
+ <span className="absolute top-1 left-1 text-[9px] font-semibold leading-none px-1.5 py-[3px] rounded-sm bg-neutral-950/80 text-panel-text-1">
265
265
  Added
266
266
  </span>
267
267
  )}
268
268
 
269
269
  {/* Duration badge — top-right, media only */}
270
270
  {durationLabel && (
271
- <span className="absolute top-1 right-1 text-[9px] font-medium leading-none px-1.5 py-[3px] rounded bg-neutral-950/80 text-panel-text-2 tabular-nums">
271
+ <span className="absolute top-1 right-1 text-[9px] font-medium leading-none px-1.5 py-[3px] rounded-sm bg-neutral-950/80 text-panel-text-2 tabular-nums">
272
272
  {durationLabel}
273
273
  </span>
274
274
  )}
@@ -348,13 +348,13 @@ export function FontRow({
348
348
  }}
349
349
  onDragStart={(e) => writeAssetDragData(e, asset)}
350
350
  onContextMenu={(e) => openAssetContextMenu(e, setContextMenu)}
351
- className={`px-2.5 py-1.5 flex items-center gap-2.5 cursor-pointer transition-colors outline-none focus-visible:bg-neutral-800/60 ${
351
+ className={`px-2.5 py-1.5 flex items-center gap-2.5 cursor-pointer transition-colors outline-hidden focus-visible:bg-neutral-800/60 ${
352
352
  isCopied
353
353
  ? "bg-studio-accent/10 border-l-2 border-studio-accent"
354
354
  : "border-l-2 border-transparent hover:bg-neutral-800/50"
355
355
  }`}
356
356
  >
357
- <div className="w-[50px] h-[32px] rounded overflow-hidden bg-neutral-900 flex-shrink-0 flex items-center justify-center">
357
+ <div className="w-[50px] h-[32px] rounded-sm overflow-hidden bg-neutral-900 shrink-0 flex items-center justify-center">
358
358
  <span className="text-[9px] font-medium text-neutral-700">{extension}</span>
359
359
  </div>
360
360
  <div className="min-w-0 flex-1">
@@ -366,7 +366,7 @@ export function FontRow({
366
366
  <div className="flex items-center gap-1.5">
367
367
  <span className="text-[10px] text-neutral-600 truncate">{extension}</span>
368
368
  {used && (
369
- <span className="text-[9px] font-medium text-panel-accent bg-panel-accent/10 px-1.5 py-px rounded">
369
+ <span className="text-[9px] font-medium text-panel-accent bg-panel-accent/10 px-1.5 py-px rounded-sm">
370
370
  in use
371
371
  </span>
372
372
  )}
@@ -95,11 +95,11 @@ export function ContextMenu({
95
95
  }, [renameDraft, asset, onRename, onClose]);
96
96
 
97
97
  const itemCls =
98
- "w-full text-left px-3 py-1.5 text-neutral-300 hover:bg-neutral-800 focus-visible:bg-neutral-800 outline-none active:bg-neutral-700/70 transition-colors";
98
+ "w-full text-left px-3 py-1.5 text-neutral-300 hover:bg-neutral-800 focus-visible:bg-neutral-800 outline-hidden active:bg-neutral-700/70 transition-colors";
99
99
 
100
100
  return (
101
101
  <div
102
- className="fixed inset-0 z-[200]"
102
+ className="fixed inset-0 z-200"
103
103
  onClick={onClose}
104
104
  onContextMenu={(e) => {
105
105
  e.preventDefault();
@@ -181,19 +181,19 @@ export function ContextMenu({
181
181
  }
182
182
  }}
183
183
  aria-label={`Rename ${filename(asset)}`}
184
- className="w-full bg-neutral-800 border border-neutral-600 rounded px-1.5 py-1 text-[11px] text-white focus:border-studio-accent/60 focus:outline-none"
184
+ className="w-full bg-neutral-800 border border-neutral-600 rounded-sm px-1.5 py-1 text-[11px] text-white focus:border-studio-accent/60 focus:outline-hidden"
185
185
  />
186
186
  {renameError && <span className="text-[10px] text-red-400">{renameError}</span>}
187
187
  <div className="flex items-center justify-end gap-1">
188
188
  <button
189
189
  onClick={() => setMode("menu")}
190
- className="px-2 py-0.5 text-[10px] rounded text-neutral-400 hover:text-neutral-200 transition-colors"
190
+ className="px-2 py-0.5 text-[10px] rounded-sm text-neutral-400 hover:text-neutral-200 transition-colors"
191
191
  >
192
192
  Cancel
193
193
  </button>
194
194
  <button
195
195
  onClick={commitRename}
196
- className="px-2 py-0.5 text-[10px] rounded bg-studio-accent/80 hover:bg-studio-accent text-white transition-colors"
196
+ className="px-2 py-0.5 text-[10px] rounded-sm bg-studio-accent/80 hover:bg-studio-accent text-white transition-colors"
197
197
  >
198
198
  Rename
199
199
  </button>
@@ -217,16 +217,16 @@ function DeleteConfirm({
217
217
  return (
218
218
  <div className="px-2 py-1.5 bg-red-950/30 border-l-2 border-red-500 flex items-center justify-between gap-2">
219
219
  <span className="text-[10px] text-red-400 truncate">Delete {name}?</span>
220
- <div className="flex items-center gap-1 flex-shrink-0">
220
+ <div className="flex items-center gap-1 shrink-0">
221
221
  <button
222
222
  onClick={onConfirm}
223
- className="px-2 py-0.5 text-[10px] rounded bg-red-600 text-white hover:bg-red-500 active:bg-red-700 transition-colors"
223
+ className="px-2 py-0.5 text-[10px] rounded-sm bg-red-600 text-white hover:bg-red-500 active:bg-red-700 transition-colors"
224
224
  >
225
225
  Delete
226
226
  </button>
227
227
  <button
228
228
  onClick={onCancel}
229
- className="px-2 py-0.5 text-[10px] rounded text-neutral-400 hover:text-neutral-200 transition-colors"
229
+ className="px-2 py-0.5 text-[10px] rounded-sm text-neutral-400 hover:text-neutral-200 transition-colors"
230
230
  >
231
231
  Cancel
232
232
  </button>
@@ -331,7 +331,7 @@ export const AssetsTab = memo(function AssetsTab({
331
331
  : [activeFilter as MediaCategory].filter((c) => categorized[c].length > 0);
332
332
  return (
333
333
  <div
334
- className={`flex-1 flex flex-col min-h-0 transition-colors ${dragOver ? "bg-studio-accent/[0.05]" : ""}`}
334
+ className={`flex-1 flex flex-col min-h-0 transition-colors ${dragOver ? "bg-studio-accent/5" : ""}`}
335
335
  onDragOver={(e) => {
336
336
  e.preventDefault();
337
337
  setDragOver(true);
@@ -340,7 +340,7 @@ export const AssetsTab = memo(function AssetsTab({
340
340
  onDrop={handleDrop}
341
341
  >
342
342
  {/* Header — matches design panel Section pattern */}
343
- <div className="px-4 pt-2.5 pb-1.5 flex-shrink-0">
343
+ <div className="px-4 pt-2.5 pb-1.5 shrink-0">
344
344
  {/* Scope toggle */}
345
345
  <div className="flex gap-1 mb-2.5 p-0.5 rounded-md bg-panel-input">
346
346
  {(["local", "global"] as const).map((m) => (
@@ -227,9 +227,9 @@ export function AudioRow({
227
227
  e.preventDefault();
228
228
  setContextMenu({ x: e.clientX, y: e.clientY });
229
229
  }}
230
- className={`group w-full text-left px-4 py-1.5 flex items-center gap-2.5 transition-colors cursor-pointer outline-none focus-visible:bg-neutral-800/60 ${
230
+ className={`group w-full text-left px-4 py-1.5 flex items-center gap-2.5 transition-colors cursor-pointer outline-hidden focus-visible:bg-neutral-800/60 ${
231
231
  playing
232
- ? "bg-panel-accent/[0.06]"
232
+ ? "bg-panel-accent/6"
233
233
  : isCopied
234
234
  ? "bg-panel-accent/10"
235
235
  : "hover:bg-panel-surface-hover"
@@ -238,7 +238,7 @@ export function AudioRow({
238
238
  <button
239
239
  aria-label={playing ? `Pause preview of ${name}` : `Play preview of ${name}`}
240
240
  aria-pressed={playing}
241
- className={`w-7 h-7 rounded-md flex-shrink-0 flex items-center justify-center transition-colors active:scale-[0.95] ${
241
+ className={`w-7 h-7 rounded-md shrink-0 flex items-center justify-center transition-colors active:scale-[0.95] ${
242
242
  playing
243
243
  ? "bg-panel-accent/15 text-panel-accent"
244
244
  : "text-panel-text-5 group-hover:text-panel-text-3"
@@ -267,20 +267,20 @@ export function AudioRow({
267
267
  {name}
268
268
  </span>
269
269
  {!playing && (
270
- <span className="text-[11px] text-panel-text-5 flex-shrink-0">
270
+ <span className="text-[11px] text-panel-text-5 shrink-0">
271
271
  {meta?.duration ? `${meta.duration}s · ` : ""}
272
272
  {subtype}
273
273
  </span>
274
274
  )}
275
275
  {used && (
276
- <span className="text-[9px] font-medium text-panel-accent bg-panel-accent/10 px-1.5 py-px rounded flex-shrink-0">
276
+ <span className="text-[9px] font-medium text-panel-accent bg-panel-accent/10 px-1.5 py-px rounded-sm shrink-0">
277
277
  in use
278
278
  </span>
279
279
  )}
280
280
  {(isCopied || copyFailed) && (
281
281
  <span
282
282
  role="status"
283
- className={`flex-shrink-0 text-[9px] font-medium px-1.5 py-px rounded ${
283
+ className={`shrink-0 text-[9px] font-medium px-1.5 py-px rounded ${
284
284
  copyFailed ? "text-red-400 bg-red-500/10" : "text-panel-accent bg-panel-accent/10"
285
285
  }`}
286
286
  >