@causyne/agent 1.20.124 → 1.20.127

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 (235) hide show
  1. package/bin/causyne.js +1 -1
  2. package/package.json +4 -4
  3. package/src/acp/protocol.ts +19 -1
  4. package/src/acp/server.js +282 -8
  5. package/src/acp/server.ts +284 -8
  6. package/src/agent/abortableDelay.js +2 -2
  7. package/src/agent/abortableDelay.ts +2 -2
  8. package/src/agent/errorClassifier.js +9 -1
  9. package/src/agent/errorClassifier.ts +8 -1
  10. package/src/agentLoop.js +83 -27
  11. package/src/agentLoop.ts +92 -26
  12. package/src/approvalPolicy.js +34 -10
  13. package/src/approvalPolicy.ts +42 -11
  14. package/src/browser/causyneBrowser.js +30 -3
  15. package/src/browser/causyneBrowser.ts +33 -3
  16. package/src/browser/urlPolicy.js +14 -1
  17. package/src/browser/urlPolicy.ts +12 -1
  18. package/src/cliMode.js +21 -9
  19. package/src/cliMode.ts +20 -8
  20. package/src/commands.js +188 -32
  21. package/src/commands.ts +209 -32
  22. package/src/config.js +19 -4
  23. package/src/config.ts +18 -4
  24. package/src/core/contextCompactor.js +54 -7
  25. package/src/core/contextCompactor.ts +63 -7
  26. package/src/core/goalLoop.js +257 -0
  27. package/src/core/goalLoop.ts +310 -0
  28. package/src/entrypoint.js +135 -3
  29. package/src/entrypoint.ts +136 -3
  30. package/src/game/causyneCoreBridge.js +686 -0
  31. package/src/game/causyneCoreBridge.ts +702 -0
  32. package/src/game/gameLauncher.js +287 -0
  33. package/src/game/gameLauncher.ts +352 -0
  34. package/src/game/gameProvisioner.js +425 -0
  35. package/src/game/gameProvisioner.ts +488 -0
  36. package/src/headlessCli.js +19 -12
  37. package/src/headlessCli.ts +22 -8
  38. package/src/infra/atomicWriter.js +40 -4
  39. package/src/infra/atomicWriter.ts +36 -4
  40. package/src/launchIntent.js +73 -3
  41. package/src/launchIntent.ts +76 -3
  42. package/src/lsp/lspClient.js +83 -12
  43. package/src/lsp/lspClient.ts +75 -12
  44. package/src/mcp/mcpRegistry.js +75 -8
  45. package/src/mcp/mcpRegistry.ts +70 -7
  46. package/src/memory/contextBudget.js +2 -0
  47. package/src/memory/contextBudget.ts +1 -0
  48. package/src/modelVariants.js +45 -0
  49. package/src/modelVariants.ts +54 -0
  50. package/src/outputRecovery.js +3 -2
  51. package/src/outputRecovery.ts +4 -2
  52. package/src/permissionPresets.js +327 -0
  53. package/src/permissionPresets.ts +361 -0
  54. package/src/providers/antigravity.js +62 -9
  55. package/src/providers/antigravity.ts +73 -9
  56. package/src/providers/byokHttp.js +7 -1
  57. package/src/providers/byokHttp.ts +6 -1
  58. package/src/providers/byokStream.js +21 -8
  59. package/src/providers/byokStream.ts +17 -7
  60. package/src/providers/dashscope-byok.js +21 -5
  61. package/src/providers/dashscope-byok.ts +29 -11
  62. package/src/providers/moonshot.js +26 -7
  63. package/src/providers/moonshot.ts +34 -13
  64. package/src/providers/muse.js +6 -0
  65. package/src/providers/muse.ts +8 -0
  66. package/src/providers/ollama.js +39 -7
  67. package/src/providers/ollama.ts +36 -7
  68. package/src/providers/openai-compatible.js +16 -3
  69. package/src/providers/openai-compatible.ts +13 -3
  70. package/src/providers/openai.js +62 -4
  71. package/src/providers/openai.ts +50 -4
  72. package/src/providers/openrouter.js +19 -4
  73. package/src/providers/openrouter.ts +21 -4
  74. package/src/providers/qwen-byok.js +21 -5
  75. package/src/providers/qwen-byok.ts +29 -11
  76. package/src/providers/xai.js +26 -10
  77. package/src/providers/xai.ts +34 -16
  78. package/src/reporting.js +4 -2
  79. package/src/reporting.ts +4 -2
  80. package/src/sandbox.js +34 -0
  81. package/src/sandbox.ts +43 -0
  82. package/src/scheduler/scheduler.js +372 -0
  83. package/src/scheduler/scheduler.ts +433 -0
  84. package/src/sessionSearchIndex.js +267 -0
  85. package/src/sessionSearchIndex.ts +311 -0
  86. package/src/skillsManager.js +2 -3
  87. package/src/skillsManager.ts +2 -3
  88. package/src/toolPacks.js +6 -0
  89. package/src/toolPacks.ts +6 -0
  90. package/src/tools/applyPatch.js +1 -1
  91. package/src/tools/applyPatch.ts +1 -1
  92. package/src/tools/generateMediaViaApi.js +4 -3
  93. package/src/tools/generateMediaViaApi.ts +4 -3
  94. package/src/tools/nativeEngine.js +2 -2
  95. package/src/tools/nativeEngine.ts +2 -2
  96. package/src/tools/openSourceToolProvisioner.js +2 -2
  97. package/src/tools/openSourceToolProvisioner.ts +2 -2
  98. package/src/tools/payloadSanitizer.js +0 -1
  99. package/src/tools/payloadSanitizer.ts +0 -1
  100. package/src/tools/pdfReader.js +122 -20
  101. package/src/tools/pdfReader.ts +111 -20
  102. package/src/tools/presentDeliverable.js +103 -0
  103. package/src/tools/presentDeliverable.ts +127 -0
  104. package/src/tools/ptcRuntime.js +444 -0
  105. package/src/tools/ptcRuntime.ts +490 -0
  106. package/src/tools/ptyTerminal.js +1096 -0
  107. package/src/tools/ptyTerminal.ts +1231 -0
  108. package/src/tools/registry.js +21 -12
  109. package/src/tools/registry.ts +21 -12
  110. package/src/tools/toolOutputStore.js +26 -4
  111. package/src/tools/toolOutputStore.ts +22 -4
  112. package/src/tools/webFetch.js +158 -11
  113. package/src/tools/webFetch.ts +145 -11
  114. package/src/tools/webSearch.js +123 -36
  115. package/src/tools/webSearch.ts +124 -33
  116. package/src/tui/banner.js +5 -1
  117. package/src/tui/banner.ts +6 -1
  118. package/src/tui/chatRenderer.js +1 -2
  119. package/src/tui/chatRenderer.ts +1 -2
  120. package/src/tui/completion.js +1 -0
  121. package/src/tui/completion.ts +1 -0
  122. package/src/tui/composerControls.js +111 -27
  123. package/src/tui/composerControls.ts +124 -28
  124. package/src/tui/dialogs.js +3 -16
  125. package/src/tui/dialogs.ts +3 -16
  126. package/src/tui/home.js +1 -0
  127. package/src/tui/home.ts +1 -0
  128. package/src/tui/invocation.js +1 -2
  129. package/src/tui/invocation.ts +1 -2
  130. package/src/tui/modelPicker.js +22 -12
  131. package/src/tui/modelPicker.ts +22 -12
  132. package/src/tui/overlay.js +2 -5
  133. package/src/tui/overlay.ts +2 -5
  134. package/src/tui/prompt.js +6 -4
  135. package/src/tui/prompt.ts +6 -4
  136. package/src/tui/selectList.js +4 -12
  137. package/src/tui/selectList.ts +4 -12
  138. package/src/tui/setup.js +22 -9
  139. package/src/tui/setup.ts +26 -9
  140. package/src/tui/statusLine.ts +2 -0
  141. package/src/web/client/browserPanel.js +702 -0
  142. package/src/web/client/browserPanel.ts +663 -0
  143. package/src/web/client/chatStream.js +309 -0
  144. package/src/web/client/chatStream.ts +289 -0
  145. package/src/web/client/cliPanel.js +165 -0
  146. package/src/web/client/cliPanel.ts +171 -0
  147. package/src/web/client/composer.js +204 -0
  148. package/src/web/client/composer.ts +209 -0
  149. package/src/web/client/diffPanel.js +176 -0
  150. package/src/web/client/diffPanel.ts +203 -0
  151. package/src/web/client/dom.js +220 -0
  152. package/src/web/client/dom.ts +221 -0
  153. package/src/web/client/filesAndCanvas.js +231 -0
  154. package/src/web/client/filesAndCanvas.ts +238 -0
  155. package/src/web/client/gameLauncherUi.js +78 -0
  156. package/src/web/client/gameLauncherUi.ts +78 -0
  157. package/src/web/client/main.js +301 -0
  158. package/src/web/client/main.ts +368 -0
  159. package/src/web/client/markdown.js +364 -0
  160. package/src/web/client/markdown.ts +373 -0
  161. package/src/web/client/modelPicker.js +455 -0
  162. package/src/web/client/modelPicker.ts +451 -0
  163. package/src/web/client/permissionPresetsUi.js +307 -0
  164. package/src/web/client/permissionPresetsUi.ts +333 -0
  165. package/src/web/client/sessions.js +353 -0
  166. package/src/web/client/sessions.ts +372 -0
  167. package/src/web/client/settingsModal.js +191 -0
  168. package/src/web/client/settingsModal.ts +176 -0
  169. package/src/web/client/state.js +250 -0
  170. package/src/web/client/state.ts +233 -0
  171. package/src/web/client/streamSmoother.js +127 -0
  172. package/src/web/client/streamSmoother.ts +119 -0
  173. package/src/web/client/studioLayout.js +54 -0
  174. package/src/web/client/studioLayout.ts +60 -0
  175. package/src/web/client/studioShell.js +327 -0
  176. package/src/web/client/studioShell.ts +340 -0
  177. package/src/web/client/studioStart.js +77 -0
  178. package/src/web/client/studioStart.ts +89 -0
  179. package/src/web/client/terminalPanel.js +357 -0
  180. package/src/web/client/terminalPanel.ts +345 -0
  181. package/src/web/client/turnView.js +934 -0
  182. package/src/web/client/turnView.ts +981 -0
  183. package/src/web/client/types.js +1 -0
  184. package/src/web/client/types.ts +319 -0
  185. package/src/web/client/validators.js +106 -0
  186. package/src/web/client/validators.ts +96 -0
  187. package/src/web/server/activeRuns.js +152 -0
  188. package/src/web/server/activeRuns.ts +171 -0
  189. package/src/web/server/routesBrowser.js +355 -0
  190. package/src/web/server/routesBrowser.ts +386 -0
  191. package/src/web/server/routesChat.js +304 -0
  192. package/src/web/server/routesChat.ts +347 -0
  193. package/src/web/server/routesCore.js +472 -0
  194. package/src/web/server/routesCore.ts +522 -0
  195. package/src/web/server/routesTerminal.js +162 -0
  196. package/src/web/server/routesTerminal.ts +182 -0
  197. package/src/web/server/routesWorkspace.js +510 -0
  198. package/src/web/server/routesWorkspace.ts +546 -0
  199. package/src/web/server/security.js +98 -0
  200. package/src/web/server/security.ts +108 -0
  201. package/src/web/server/sessionTranscript.js +586 -0
  202. package/src/web/server/sessionTranscript.ts +566 -0
  203. package/src/web/server/staticAssets.js +80 -0
  204. package/src/web/server/staticAssets.ts +91 -0
  205. package/src/web/server/types.js +1 -0
  206. package/src/web/server/types.ts +135 -0
  207. package/src/web/server/workspaceFiles.js +368 -0
  208. package/src/web/server/workspaceFiles.ts +363 -0
  209. package/src/web/skybridgeServer.js +76 -2449
  210. package/src/web/skybridgeServer.ts +118 -2600
  211. package/src/web/skybridgeUi.js +16 -450
  212. package/src/web/skybridgeUi.ts +16 -454
  213. package/src/web/styles/agent.css +380 -0
  214. package/src/web/styles/composer.css +193 -0
  215. package/src/web/styles/overlays.css +436 -0
  216. package/src/web/styles/shell.css +387 -0
  217. package/src/web/styles/studio.css +723 -0
  218. package/src/web/styles/thread.css +221 -0
  219. package/src/web/styles/tokens.css +94 -0
  220. package/src/web/ui/brandMark.js +73 -0
  221. package/src/web/ui/brandMark.ts +82 -0
  222. package/src/web/ui/modalsTemplate.js +139 -0
  223. package/src/web/ui/modalsTemplate.ts +139 -0
  224. package/src/web/ui/sidebarTemplate.js +63 -0
  225. package/src/web/ui/sidebarTemplate.ts +64 -0
  226. package/src/web/ui/studioTemplate.js +258 -0
  227. package/src/web/ui/studioTemplate.ts +258 -0
  228. package/src/web/ui/workspaceTemplate.js +72 -0
  229. package/src/web/ui/workspaceTemplate.ts +73 -0
  230. package/src/worktreeManager.js +16 -1
  231. package/src/worktreeManager.ts +22 -1
  232. package/src/web/skybridgeClientScript.js +0 -3951
  233. package/src/web/skybridgeClientScript.ts +0 -3952
  234. package/src/web/skybridgeStyles.js +0 -827
  235. package/src/web/skybridgeStyles.ts +0 -828
@@ -1,827 +0,0 @@
1
- /**
2
- * Causyne Web Interface Stylesheet
3
- *
4
- * Calm, enterprise-grade conversational workspace shell styled with Causyne's
5
- * charcoal canvas (#141714 / #0f120f) and restrained brand accent (#B5D66A),
6
- * clean sans-serif interface chrome, subtle hairline borders, and zero visual clutter.
7
- */
8
- export function getSkybridgeCss() {
9
- return [
10
- ':root {',
11
- ' --bg: #141714;',
12
- ' --sidebar-bg: #101310;',
13
- ' --surface: #1b1f1b;',
14
- ' --surface-2: #232823;',
15
- ' --surface-3: #2c322c;',
16
- ' --popover-bg: #1c201c;',
17
- ' --border: rgba(255, 255, 255, 0.08);',
18
- ' --border-strong: rgba(255, 255, 255, 0.14);',
19
- ' --text: #ecefe9;',
20
- ' --text-2: #a0a79c;',
21
- ' --text-dim: #70776c;',
22
- ' --lime: #B5D66A;',
23
- ' --lime-hover: #c5e37e;',
24
- ' --lime-ink: #12170c;',
25
- ' --lime-soft: rgba(181, 214, 106, 0.10);',
26
- ' --ok: #68c98a;',
27
- ' --warn: #e5b85c;',
28
- ' --err: #e57373;',
29
- ' --diff-add-bg: rgba(104, 201, 138, 0.11);',
30
- ' --diff-del-bg: rgba(229, 115, 115, 0.12);',
31
- ' --shadow: 0 10px 28px rgba(0, 0, 0, 0.36);',
32
- ' --font-display: "Exo 2", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;',
33
- ' --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;',
34
- ' --font-mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;',
35
- ' --sidebar-w: 256px;',
36
- ' --studio-w: 480px;',
37
- ' --thread-w: 740px;',
38
- ' --composer-w: 700px;',
39
- ' --topbar-h: 52px;',
40
- '}',
41
- ':root[data-theme="light"] {',
42
- ' --bg: #ffffff;',
43
- ' --sidebar-bg: #f6f7f5;',
44
- ' --surface: #f4f5f2;',
45
- ' --surface-2: #eaede8;',
46
- ' --surface-3: #dfe3dc;',
47
- ' --popover-bg: #ffffff;',
48
- ' --border: rgba(20, 23, 20, 0.08);',
49
- ' --border-strong: rgba(20, 23, 20, 0.15);',
50
- ' --text: #181b17;',
51
- ' --text-2: #52594f;',
52
- ' --text-dim: #7b8277;',
53
- ' --lime: #4c7417;',
54
- ' --lime-hover: #3d6011;',
55
- ' --lime-ink: #ffffff;',
56
- ' --lime-soft: rgba(76, 116, 23, 0.09);',
57
- ' --ok: #1f8a4c;',
58
- ' --warn: #b2780c;',
59
- ' --err: #c93b3b;',
60
- ' --diff-add-bg: rgba(31, 138, 76, 0.09);',
61
- ' --diff-del-bg: rgba(201, 59, 59, 0.09);',
62
- ' --shadow: 0 10px 26px rgba(18, 24, 16, 0.10);',
63
- '}',
64
- '*, *::before, *::after { box-sizing: border-box; }',
65
- 'html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--text);',
66
- ' font: 14px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; overflow: hidden; }',
67
- '::selection { background: var(--lime); color: var(--lime-ink); }',
68
- 'button, input, textarea, select { font: inherit; color: inherit; }',
69
- 'button { cursor: pointer; }',
70
- 'button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {',
71
- ' outline: 1.5px solid var(--border-strong); outline-offset: 1px; }',
72
- '* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }',
73
- '*::-webkit-scrollbar { width: 6px; height: 6px; }',
74
- '*::-webkit-scrollbar-track { background: transparent; }',
75
- '*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }',
76
- '*::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }',
77
- '.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;',
78
- ' overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }',
79
- '',
80
- '/* Application Shell */',
81
- '.app { display: flex; height: 100vh; width: 100vw; overflow: hidden; background: var(--bg); }',
82
- '.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 25; }',
83
- '',
84
- '/* Left Sidebar */',
85
- '.sidebar { width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); height: 100%;',
86
- ' background: var(--sidebar-bg); border-right: 1px solid var(--border);',
87
- ' display: flex; flex-direction: column; transition: width 0.18s ease, transform 0.18s ease;',
88
- ' overflow: hidden; z-index: 30; }',
89
- '.app.sidebar-collapsed .sidebar { width: 0; flex-basis: 0; border-right: 0 solid transparent; }',
90
- '.sidebar-head { height: var(--topbar-h); padding: 0 10px 0 12px; display: flex;',
91
- ' align-items: center; justify-content: space-between; flex-shrink: 0; }',
92
- '.brand-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent;',
93
- ' border: none; padding: 5px 6px; border-radius: 8px; color: var(--text); }',
94
- '.brand-btn:hover { background: var(--surface-2); }',
95
- '.brand-mark { width: 24px; height: 24px; display: block; flex-shrink: 0; overflow: visible; }',
96
- '.causyne-aperture { overflow: visible; }',
97
- '.causyne-aperture .causyne-rotor { transform-box: view-box; transform-origin: 627px 627px;',
98
- ' will-change: transform; }',
99
- '.causyne-aperture .causyne-outline { opacity: 0.92; transition: opacity 0.2s ease; }',
100
- ':root[data-theme="light"] .causyne-aperture .causyne-outline { opacity: 0; }',
101
- '.causyne-aperture .causyne-blade { transition: fill 0.25s ease; }',
102
- '.brand-word { font-family: var(--font-display); font-size: 13.5px; font-weight: 700;',
103
- ' letter-spacing: 0.12em; text-transform: uppercase; }',
104
- '.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: none;',
105
- ' background: transparent; color: var(--text-2); display: inline-flex;',
106
- ' align-items: center; justify-content: center; transition: background 0.14s, color 0.14s; flex-shrink: 0; }',
107
- '.icon-btn:hover { background: var(--surface-2); color: var(--text); }',
108
- '.icon-btn.active { background: var(--surface-2); color: var(--text); }',
109
- '.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none;',
110
- ' stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }',
111
- '',
112
- '.sidebar-nav { padding: 4px 8px 6px; display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; }',
113
- '.nav-row { width: 100%; height: 34px; padding: 0 10px; border: none; border-radius: 8px;',
114
- ' background: transparent; color: var(--text); display: flex; align-items: center; gap: 10px;',
115
- ' font-size: 13.5px; text-align: left; transition: background 0.12s ease; }',
116
- '.nav-row:hover { background: var(--surface-2); }',
117
- '.nav-row.active { background: var(--surface-2); font-weight: 500; }',
118
- '.nav-row svg { width: 15px; height: 15px; stroke: currentColor; fill: none;',
119
- ' stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; opacity: 0.78; }',
120
- '.nav-kbd { margin-left: auto; font-size: 11px; color: var(--text-dim); }',
121
- '',
122
- '.sidebar-search { padding: 6px 10px 8px; flex-shrink: 0; }',
123
- '.sidebar-search input { width: 100%; height: 32px; padding: 0 10px; border-radius: 8px;',
124
- ' border: 1px solid var(--border); background: var(--surface); font-size: 13px;',
125
- ' color: var(--text); }',
126
- '.sidebar-search input::placeholder { color: var(--text-dim); }',
127
- '',
128
- '.session-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 10px; }',
129
- '.session-group-label { font-size: 11.5px; font-weight: 500; color: var(--text-dim);',
130
- ' padding: 10px 10px 4px; }',
131
- '.session-item { position: relative; display: flex; align-items: center; gap: 4px;',
132
- ' width: 100%; height: 32px; padding: 0 6px 0 10px; border-radius: 8px;',
133
- ' color: var(--text-2); cursor: pointer; transition: background 0.12s ease, color 0.12s ease; }',
134
- '.session-item:hover { background: var(--surface-2); color: var(--text); }',
135
- '.session-item.active { background: var(--surface-2); color: var(--text); font-weight: 500; }',
136
- '.session-title { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap;',
137
- ' overflow: hidden; text-overflow: ellipsis; background: transparent; border: none;',
138
- ' text-align: left; padding: 0; color: inherit; }',
139
- '.session-run-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime);',
140
- ' flex-shrink: 0; margin-right: 4px; animation: dframe-dot-pulse 1.5s ease-in-out infinite; }',
141
- '.session-run-dot.awaiting { background: var(--warn); }',
142
- '.session-rename-input { flex: 1; min-width: 0; height: 24px; padding: 0 6px; border-radius: 5px;',
143
- ' border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);',
144
- ' font-size: 12.5px; outline: none; }',
145
- '.session-actions { display: none; align-items: center; gap: 2px; flex-shrink: 0; }',
146
- '.session-item:hover .session-actions, .session-item.active .session-actions { display: inline-flex; }',
147
- '.mini-icon-btn { width: 22px; height: 22px; border: none; border-radius: 5px;',
148
- ' background: transparent; color: var(--text-dim); display: inline-flex;',
149
- ' align-items: center; justify-content: center; font-size: 11px; }',
150
- '.mini-icon-btn:hover { background: var(--surface-3); color: var(--text); }',
151
- '.session-empty { padding: 12px 10px; font-size: 12.5px; color: var(--text-dim); }',
152
- '',
153
- '.sidebar-foot { border-top: 1px solid var(--border); padding: 10px 14px; flex-shrink: 0;',
154
- ' display: flex; align-items: center; justify-content: space-between; gap: 8px; }',
155
- '.ws-name { font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap;',
156
- ' overflow: hidden; text-overflow: ellipsis; min-width: 0; }',
157
- '.ws-meta { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; flex-shrink: 0; }',
158
- '',
159
- '/* Main Center Workspace */',
160
- '.workspace { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column;',
161
- ' position: relative; background: var(--bg); overflow: hidden; }',
162
- '.topbar { height: var(--topbar-h); padding: 0 14px; display: flex; align-items: center;',
163
- ' justify-content: space-between; gap: 8px; flex-shrink: 0; z-index: 15; min-width: 0; }',
164
- '.topbar-left { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }',
165
- '.topbar-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }',
166
- '.liveness-pill { display: none; align-items: center; gap: 7px; height: 28px; padding: 0 10px;',
167
- ' border-radius: 999px; background: rgba(171, 219, 95, 0.08); border: 1px solid rgba(171, 219, 95, 0.22);',
168
- ' font-size: 12.5px; color: var(--text); max-width: 240px; }',
169
- ':root[data-theme="light"] .liveness-pill { background: rgba(124, 179, 44, 0.10); border-color: rgba(124, 179, 44, 0.28); }',
170
- '.liveness-pill.active { display: inline-flex; }',
171
- '.liveness-mark { width: 16px; height: 16px; }',
172
- '.liveness-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }',
173
- '.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); flex-shrink: 0;',
174
- ' animation: pulse 1.4s ease-in-out infinite; }',
175
- '@keyframes pulse { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.25; } }',
176
- '@keyframes causyne-aperture-orbit {',
177
- ' 0% { transform: rotate(0deg) scale(0.95); }',
178
- ' 25% { transform: rotate(90deg) scale(1.03); }',
179
- ' 50% { transform: rotate(180deg) scale(0.95); }',
180
- ' 75% { transform: rotate(270deg) scale(1.03); }',
181
- ' 100% { transform: rotate(360deg) scale(0.95); }',
182
- '}',
183
- '@keyframes causyne-blade-chase {',
184
- ' 0%, 14% { fill: #ABDB5F; }',
185
- ' 22% { fill: #5A6F4A; }',
186
- ' 32%, 100% { fill: #383D45; }',
187
- '}',
188
- '.liveness-pill.active .liveness-mark .causyne-rotor,',
189
- '.turn-live-row.is-active .turn-live-mark .causyne-rotor {',
190
- ' animation: causyne-aperture-orbit 3.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;',
191
- '}',
192
- '.liveness-pill.active .liveness-mark,',
193
- '.turn-live-row.is-active .turn-live-mark .causyne-aperture {',
194
- ' filter: drop-shadow(0 0 5px rgba(171, 219, 95, 0.28));',
195
- '}',
196
- '.liveness-pill.active .liveness-mark .causyne-blade,',
197
- '.turn-live-row.is-active .turn-live-mark .causyne-blade {',
198
- ' animation: causyne-blade-chase 1.8s linear infinite;',
199
- '}',
200
- '.causyne-blade.b1 { animation-delay: 0s; }',
201
- '.causyne-blade.b2 { animation-delay: -1.5s; }',
202
- '.causyne-blade.b3 { animation-delay: -1.2s; }',
203
- '.causyne-blade.b4 { animation-delay: -0.9s; }',
204
- '.causyne-blade.b5 { animation-delay: -0.6s; }',
205
- '.causyne-blade.b6 { animation-delay: -0.3s; }',
206
- '.usage-pill { display: none; font-size: 12px; color: var(--text-dim); padding: 0 6px; }',
207
- '.usage-pill.visible { display: inline-flex; }',
208
- '#open-sidebar-btn { display: none; }',
209
- '.app.sidebar-collapsed #open-sidebar-btn { display: inline-flex; }',
210
- '.model-trigger { height: 34px; padding: 0 10px; border-radius: 8px; border: none;',
211
- ' background: transparent; color: var(--text); display: inline-flex; align-items: center;',
212
- ' gap: 6px; font-size: 14px; font-weight: 500; max-width: min(320px, 100%); min-width: 0; }',
213
- '.model-trigger:hover { background: var(--surface-2); }',
214
- '.model-trigger-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }',
215
- '.model-chevron { width: 14px; height: 14px; stroke: var(--text-dim); fill: none;',
216
- ' stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }',
217
- '.topbar-select { height: 32px; padding: 0 10px; border-radius: 8px;',
218
- ' border: none; background: transparent; color: var(--text-2);',
219
- ' font-size: 13px; cursor: pointer; }',
220
- '.topbar-select:hover { background: var(--surface-2); color: var(--text); }',
221
- '.studio-toggle { height: 32px; padding: 0 10px; border-radius: 8px;',
222
- ' border: none; background: transparent; color: var(--text-2);',
223
- ' font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }',
224
- '.studio-toggle:hover, .app.studio-open .studio-toggle { background: var(--surface-2); color: var(--text); }',
225
- '.studio-toggle svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }',
226
- '',
227
- '/* Stage: Hero -> Active Thread */',
228
- '.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }',
229
- '.stage.is-empty { justify-content: center; align-items: center; padding: 0 20px 64px; }',
230
- '.stage.is-empty .thread-wrap { display: none; }',
231
- '.stage.has-messages .hero-block { display: none; }',
232
- '.hero-block { width: 100%; max-width: var(--composer-w); text-align: center; margin-bottom: 24px;',
233
- ' display: flex; flex-direction: column; align-items: center; gap: 14px; }',
234
- '.hero-emblem { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }',
235
- '.hero-mark { width: 46px; height: 46px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28)); }',
236
- ':root[data-theme="light"] .hero-mark { filter: drop-shadow(0 4px 12px rgba(20, 23, 20, 0.12)); }',
237
- '.hero-title { margin: 0; font-family: var(--font-sans); font-size: clamp(24px, 2.8vw, 30px);',
238
- ' font-weight: 500; letter-spacing: -0.02em; color: var(--text); line-height: 1.25; }',
239
- '',
240
- '/* Conversation Thread & Motion System */',
241
- '@keyframes df-body-fade-in { 0% { opacity: 0.01; } to { opacity: 1; } }',
242
- '@keyframes cds-morph-in { 0% { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }',
243
- '@keyframes fade-in-text { 0% { opacity: 0; } to { opacity: 1; } }',
244
- '@keyframes timeline-block-enter {',
245
- ' 0% { opacity: 0; filter: blur(3px); transform: translateY(4px) scale(0.97); }',
246
- ' 100% { opacity: 1; filter: none; transform: none; }',
247
- '}',
248
- '@keyframes dframe-clay-breathe {',
249
- ' 0%, 100% { opacity: 0.55; transform: scale(0.84); }',
250
- ' 50% { opacity: 1; transform: scale(1.04); }',
251
- '}',
252
- '@keyframes dframe-dot-pulse {',
253
- ' 0%, 100% { opacity: 0.35; }',
254
- ' 45% { opacity: 1; }',
255
- '}',
256
- '@keyframes thinking-shimmer {',
257
- ' 0% { background-position: 180% 0; }',
258
- ' 100% { background-position: -180% 0; }',
259
- '}',
260
- '.thread-wrap { flex: 1; min-height: 0; width: 100%; overflow-y: auto; padding: 14px 20px 44px;',
261
- ' scroll-behavior: auto; }',
262
- '.thread { width: 100%; max-width: var(--thread-w); margin: 0 auto;',
263
- ' display: flex; flex-direction: column; gap: 24px; }',
264
- '.thread.chat-fade-in { animation: df-body-fade-in 0.22s ease-out; }',
265
- '.turn { display: flex; flex-direction: column; gap: 8px; }',
266
- '.turn.turn-enter { animation: cds-morph-in 0.22s cubic-bezier(0.19, 1, 0.22, 1) backwards; }',
267
- '.turn.user { align-items: flex-end; }',
268
- '.user-bubble { max-width: 78%; background: var(--surface-2); color: var(--text);',
269
- ' padding: 10px 16px; border-radius: 20px; white-space: pre-wrap; word-break: break-word;',
270
- ' font-size: 14.5px; line-height: 1.55; }',
271
- '.user-actions { display: flex; align-items: center; gap: 4px; opacity: 0; transition: opacity 0.14s ease; }',
272
- '.turn.user:hover .user-actions, .turn.user:focus-within .user-actions { opacity: 1; }',
273
- '.thread-spacer { width: 100%; flex-shrink: 0; pointer-events: none; transition: height 0.12s ease-out; }',
274
- '.attach-line { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }',
275
- '.attach-tag { font-size: 12px; padding: 2px 9px; border-radius: 6px;',
276
- ' background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }',
277
- '',
278
- '.assistant-row { display: flex; align-items: flex-start; gap: 14px; width: 100%; }',
279
- '.assistant-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;',
280
- ' background: transparent; border: 1px solid transparent; display: flex;',
281
- ' align-items: center; justify-content: center; margin-top: 1px;',
282
- ' transition: border-color 0.2s ease, opacity 0.2s ease; }',
283
- '.assistant-avatar svg { width: 22px; height: 22px; }',
284
- '.turn-live-row { display: none; align-items: center; gap: 9px; padding: 6px 2px 2px;',
285
- ' color: var(--text-2); font-size: 13px; line-height: 1.3; }',
286
- '.turn-live-row.is-active { display: inline-flex; animation: cds-morph-in 0.2s ease-out; }',
287
- '.turn-live-mark { width: 20px; height: 20px; display: inline-flex; align-items: center;',
288
- ' justify-content: center; flex-shrink: 0; }',
289
- '.turn-live-mark svg { width: 20px; height: 20px; }',
290
- '.turn-live-label { font-size: 13px; font-weight: 500; letter-spacing: -0.01em;',
291
- ' background: linear-gradient(90deg, var(--text-dim) 0%, var(--text) 45%, #ABDB5F 55%, var(--text-dim) 100%);',
292
- ' background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;',
293
- ' color: transparent; animation: thinking-shimmer 2.4s linear infinite; }',
294
- ':root[data-theme="light"] .turn-live-label {',
295
- ' background: linear-gradient(90deg, #646b62 0%, #141714 45%, #55821a 55%, #646b62 100%);',
296
- ' background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }',
297
- '.assistant-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }',
298
- '.assistant-col > :empty { display: none !important; }',
299
- '.assistant-prose { color: var(--text); font-size: 15px; line-height: 1.68; word-break: break-word; }',
300
- '.assistant-prose > * { contain: layout; }',
301
- '.assistant-prose > .md-table-wrap { contain: none; }',
302
- '.assistant-prose p { margin: 0 0 12px; }',
303
- '.assistant-prose p:last-child { margin-bottom: 0; }',
304
- '.assistant-prose h1, .assistant-prose h2, .assistant-prose h3, .assistant-prose h4 {',
305
- ' font-weight: 600; margin: 16px 0 8px; line-height: 1.3; color: var(--text); }',
306
- '.assistant-prose h1 { font-size: 1.32em; }',
307
- '.assistant-prose h2 { font-size: 1.18em; }',
308
- '.assistant-prose h3 { font-size: 1.06em; }',
309
- '.assistant-prose ul, .assistant-prose ol { margin: 0 0 12px; padding-left: 22px; }',
310
- '.assistant-prose li { margin: 4px 0; }',
311
- '.assistant-prose blockquote { margin: 10px 0; padding: 6px 14px; border-left: 2px solid var(--border-strong);',
312
- ' color: var(--text-2); }',
313
- '.assistant-prose hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }',
314
- '.assistant-prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }',
315
- '.assistant-prose code.inline-code { font: 0.88em var(--font-mono); padding: 2px 5px;',
316
- ' border-radius: 5px; background: var(--surface-2); }',
317
- '.md-file-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%;',
318
- ' padding: 1px 7px; margin: 0 1px; border-radius: 6px; border: 1px solid var(--border);',
319
- ' background: var(--surface); color: var(--text); font: 12.5px/1.45 var(--font-mono);',
320
- ' vertical-align: baseline; transition: background 0.14s ease, border-color 0.14s ease; }',
321
- '.md-file-chip:hover { background: var(--surface-2); border-color: var(--border-strong); }',
322
- '.md-file-chip.is-static { cursor: default; color: var(--text-2); }',
323
- '.md-file-chip svg { width: 12px; height: 12px; stroke: var(--text-dim); fill: none;',
324
- ' stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }',
325
- '.md-file-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }',
326
- '.md-file-chip-line { color: var(--text-dim); font-size: 11.5px; flex-shrink: 0; }',
327
- '.stream-fade { animation: fade-in-text 0.15s linear backwards; }',
328
- '.md-table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--border); border-radius: 8px; }',
329
- '.md-table { width: 100%; border-collapse: collapse; font-size: 13.5px; word-break: normal; }',
330
- '.md-table th, .md-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; }',
331
- '.md-table th { background: var(--surface); font-weight: 500; color: var(--text); white-space: nowrap; }',
332
- '.md-table tr:last-child td { border-bottom: none; }',
333
- '',
334
- '/* Code Block Chrome */',
335
- '.code-card { margin: 12px 0; border: 1px solid var(--border); border-radius: 10px;',
336
- ' overflow: hidden; background: #0d0f0d; }',
337
- ':root[data-theme="light"] .code-card { background: #191d18; color: #ecefe9; }',
338
- '.code-head { display: flex; align-items: center; justify-content: space-between;',
339
- ' padding: 7px 12px; background: rgba(255, 255, 255, 0.03);',
340
- ' border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 12px; color: #a0a79c; }',
341
- '.code-head-actions { display: inline-flex; gap: 4px; }',
342
- '.code-btn { border: none; background: transparent; color: #c4cbc0;',
343
- ' border-radius: 6px; padding: 3px 8px; font-size: 12px; }',
344
- '.code-btn:hover { background: rgba(255, 255, 255, 0.09); color: #ffffff; }',
345
- '.code-pre { margin: 0; padding: 13px 14px; overflow-x: auto;',
346
- ' font: 12.8px/1.55 var(--font-mono); color: #e4e8e0; }',
347
- '',
348
- '/* Agent Loop Timeline, Thinking Accordion, Plan, Artifacts & Approvals */',
349
- '.collapsible-card { border-radius: 10px; }',
350
- '.collapsible-trigger { width: 100%; border: 1px solid transparent; border-radius: 9px;',
351
- ' background: transparent; color: var(--text-2); padding: 6px 10px;',
352
- ' font-size: 13px; display: flex; align-items: center; justify-content: space-between;',
353
- ' gap: 8px; text-align: left; transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease; }',
354
- '.collapsible-trigger:hover { background: var(--surface); border-color: var(--border); color: var(--text); }',
355
- '.collapsible-card.is-open > .collapsible-trigger { background: var(--surface); border-color: var(--border); }',
356
- '.collapsible-trigger-left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }',
357
- '.collapsible-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 450; }',
358
- '.collapsible-card.is-active .collapsible-label {',
359
- ' background: linear-gradient(90deg, var(--text-2) 0%, var(--text) 45%, var(--text-2) 100%);',
360
- ' background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;',
361
- ' color: transparent; animation: thinking-shimmer 2.2s linear infinite; }',
362
- '.collapsible-chevron { width: 14px; height: 14px; stroke: var(--text-dim); fill: none;',
363
- ' stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;',
364
- ' transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1); }',
365
- '.collapsible-card.is-open > .collapsible-trigger .collapsible-chevron { transform: rotate(90deg); }',
366
- '.collapsible-body { display: grid; grid-template-rows: 0fr; opacity: 0;',
367
- ' transition: grid-template-rows 0.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.16s ease-out; }',
368
- '.collapsible-card.is-open > .collapsible-body { grid-template-rows: 1fr; opacity: 1; }',
369
- '.collapsible-inner { overflow: hidden; min-height: 0; }',
370
- '.reason-body { margin: 6px 0 2px 10px; padding: 6px 12px; font-size: 13px; line-height: 1.6;',
371
- ' color: var(--text-dim); white-space: pre-wrap; border-left: 2px solid var(--border);',
372
- ' max-height: 240px; overflow-y: auto; }',
373
- '.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; }',
374
- '.status-dot.running { background: var(--lime); animation: dframe-dot-pulse 1.5s ease-in-out infinite; }',
375
- '.status-dot.done { background: var(--ok); }',
376
- '.status-dot.failed { background: var(--err); }',
377
- '.status-dot.thinking { background: var(--text-2); animation: dframe-clay-breathe 2.4s ease-in-out infinite; }',
378
- '.plan-card { border: 1px solid var(--border); border-radius: 10px; background: var(--surface);',
379
- ' padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;',
380
- ' animation: timeline-block-enter 0.3s cubic-bezier(0.22, 1, 0.36, 1) backwards; }',
381
- '.plan-head { font-size: 12px; font-weight: 500; color: var(--text-dim);',
382
- ' display: flex; justify-content: space-between; }',
383
- '.plan-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }',
384
- '.plan-step.done { color: var(--text-dim); text-decoration: line-through; }',
385
- '.plan-step.active { color: var(--text); font-weight: 500; }',
386
- '.step-icon { width: 14px; text-align: center; font-size: 12px; color: var(--text-2); }',
387
- '.timeline-steps { margin: 6px 0 2px 10px; padding: 2px 0 2px 12px;',
388
- ' border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }',
389
- '.tool-card { border: 1px solid var(--border); border-radius: 8px; background: var(--surface);',
390
- ' padding: 7px 10px; font-size: 12.5px; color: var(--text-2);',
391
- ' animation: timeline-block-enter 0.32s cubic-bezier(0.22, 1, 0.36, 1) backwards; }',
392
- '.tool-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }',
393
- '.tool-head-left { display: inline-flex; align-items: center; gap: 7px; min-width: 0; flex: 1; }',
394
- '.tool-badge { font-family: var(--font-mono); font-size: 12px; color: var(--text); font-weight: 500; flex-shrink: 0; }',
395
- '.tool-target { font-family: var(--font-mono); font-size: 12px; color: var(--text-2);',
396
- ' overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }',
397
- '.tool-state { font-size: 11.5px; color: var(--text-dim); flex-shrink: 0; }',
398
- '.tool-out { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border);',
399
- ' max-height: 150px; overflow: auto; white-space: pre-wrap; color: var(--text-dim);',
400
- ' font: 12px/1.45 var(--font-mono); }',
401
- '.artifact-card { border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface);',
402
- ' padding: 10px 12px; display: flex; flex-direction: column; gap: 8px;',
403
- ' transition: border-color 0.14s ease; }',
404
- '.artifact-card:hover { border-color: var(--text-dim); }',
405
- '.artifact-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }',
406
- '.artifact-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }',
407
- '.artifact-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2);',
408
- ' color: var(--text-2); display: inline-flex; align-items: center; justify-content: center;',
409
- ' font: 600 11px var(--font-mono); flex-shrink: 0; }',
410
- '.artifact-title { font-size: 13.5px; font-weight: 500; color: var(--text);',
411
- ' overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }',
412
- '.artifact-sub { font-size: 12px; color: var(--text-dim); }',
413
- '.artifact-btns { display: inline-flex; gap: 6px; flex-shrink: 0; }',
414
- '.artifact-stream-pre { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--bg);',
415
- ' border: 1px solid var(--border); font: 12px/1.45 var(--font-mono); color: var(--text-2);',
416
- ' max-height: 140px; overflow: auto; white-space: pre; }',
417
- '.approval-card { border: 1px solid var(--border-strong); background: var(--surface);',
418
- ' border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }',
419
- '.approval-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }',
420
- '.approval-text { font-size: 13.5px; font-weight: 500; color: var(--text); }',
421
- '.approval-args { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--bg);',
422
- ' border: 1px solid var(--border); font: 12px/1.45 var(--font-mono); color: var(--text-2);',
423
- ' max-height: 120px; overflow: auto; white-space: pre-wrap; }',
424
- '.approval-actions { display: flex; gap: 6px; flex-wrap: wrap; }',
425
- '.preview-url-bar { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }',
426
- '.preview-url-btn { border: 1px solid var(--border-strong); background: var(--surface);',
427
- ' color: var(--text); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; }',
428
- '.preview-url-btn:hover { background: var(--surface-2); }',
429
- '.btn-lime { background: var(--lime); color: var(--lime-ink); border: none;',
430
- ' border-radius: 8px; padding: 6px 13px; font-weight: 500; font-size: 13px; }',
431
- '.btn-lime:hover { background: var(--lime-hover); }',
432
- '.btn-primary { background: var(--text); color: var(--bg); border: none;',
433
- ' border-radius: 8px; padding: 6px 13px; font-weight: 500; font-size: 13px; }',
434
- '.btn-primary:hover { opacity: 0.9; }',
435
- '.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border);',
436
- ' border-radius: 8px; padding: 5px 11px; font-size: 13px; }',
437
- '.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }',
438
- '.btn-danger { background: transparent; color: var(--err); border: 1px solid rgba(229, 115, 115, 0.35);',
439
- ' border-radius: 8px; padding: 5px 11px; font-weight: 500; font-size: 13px; }',
440
- '.btn-danger:hover { background: rgba(229, 115, 115, 0.12); }',
441
- '.btn-lime:disabled, .btn-primary:disabled, .btn-ghost:disabled, .btn-danger:disabled {',
442
- ' opacity: 0.45; cursor: not-allowed; }',
443
- '.msg-error { border: 1px solid rgba(229, 115, 115, 0.35); background: rgba(229, 115, 115, 0.08);',
444
- ' color: var(--err); border-radius: 10px; padding: 10px 13px; font-size: 13.5px;',
445
- ' display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }',
446
- '.msg-interrupted { border: 1px solid var(--border); background: var(--surface);',
447
- ' color: var(--text-2); border-radius: 10px; padding: 10px 13px; font-size: 13px;',
448
- ' display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;',
449
- ' animation: cds-morph-in 0.18s cubic-bezier(0.19, 1, 0.22, 1) backwards; }',
450
- '.msg-interrupted-actions { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }',
451
- '.decision-card { border: 1px solid var(--border-strong); background: var(--surface);',
452
- ' border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;',
453
- ' animation: timeline-block-enter 0.28s cubic-bezier(0.22, 1, 0.36, 1) backwards; }',
454
- '.decision-q { font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.45; }',
455
- '.decision-options { display: flex; flex-direction: column; gap: 6px; }',
456
- '.decision-opt-btn { width: 100%; text-align: left; padding: 8px 11px; border-radius: 8px;',
457
- ' border: 1px solid var(--border); background: var(--bg); color: var(--text);',
458
- ' display: flex; flex-direction: column; gap: 2px; transition: border-color 0.14s, background 0.14s; }',
459
- '.decision-opt-btn:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-2); }',
460
- '.decision-opt-btn:disabled { opacity: 0.55; cursor: default; }',
461
- '.decision-opt-label { font-size: 13px; font-weight: 500; }',
462
- '.decision-opt-desc { font-size: 12px; color: var(--text-dim); }',
463
- '.decision-custom-row { display: flex; gap: 6px; }',
464
- '.decision-custom-input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border-radius: 8px;',
465
- ' border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 13px; }',
466
- '.msg-actions { display: flex; align-items: center; gap: 4px; opacity: 0.7; transition: opacity 0.14s; }',
467
- '.assistant-row:hover .msg-actions { opacity: 1; }',
468
- '.msg-action-btn { border: none; background: transparent; color: var(--text-dim);',
469
- ' font-size: 12px; padding: 4px 8px; border-radius: 6px; }',
470
- '.msg-action-btn:hover { background: var(--surface-2); color: var(--text); }',
471
- '.streaming-cursor { display: inline-block; width: 7px; height: 7px; margin-left: 5px;',
472
- ' vertical-align: 1px; background: var(--text-2); border-radius: 50%;',
473
- ' animation: dframe-clay-breathe 1.8s ease-in-out infinite; }',
474
- '',
475
- '/* Scroll-to-Bottom Button (anchored cleanly above composer, never overlaps prose) */',
476
- '.scroll-bottom-btn { position: absolute; left: 50%; bottom: calc(100% + 10px);',
477
- ' transform: translate(-50%, 6px) scale(0.92); opacity: 0; pointer-events: none;',
478
- ' width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong);',
479
- ' background: var(--popover-bg); color: var(--text); box-shadow: var(--shadow);',
480
- ' display: inline-flex; align-items: center; justify-content: center; z-index: 12;',
481
- ' transition: opacity 0.16s ease-out, transform 0.18s cubic-bezier(0.19, 1, 0.22, 1), background 0.14s ease; }',
482
- '.scroll-bottom-btn:hover { background: var(--surface-2); }',
483
- '.scroll-bottom-btn.visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }',
484
- '.stage.is-empty .scroll-bottom-btn { display: none; }',
485
- '@media (prefers-reduced-motion: reduce) {',
486
- ' .thread.chat-fade-in, .turn.turn-enter, .tool-card, .plan-card, .stream-fade,',
487
- ' .streaming-cursor, .status-dot.running, .status-dot.thinking,',
488
- ' .assistant-row.is-streaming .assistant-avatar .causyne-rotor,',
489
- ' .liveness-pill.active .liveness-mark .causyne-rotor,',
490
- ' .app.is-processing #causyne-mark-svg .causyne-rotor,',
491
- ' .turn-live-row.is-active .turn-live-mark .causyne-rotor,',
492
- ' .causyne-blade, .turn-live-label, .collapsible-card.is-active .collapsible-label {',
493
- ' animation: none !important; }',
494
- ' .collapsible-body, .collapsible-chevron, .scroll-bottom-btn { transition: none !important; }',
495
- '}',
496
- '',
497
- '/* Composer */',
498
- '.composer-dock { width: 100%; max-width: var(--composer-w); margin: 0 auto;',
499
- ' padding: 0 16px 14px; flex-shrink: 0; position: relative; }',
500
- '.stage.is-empty .composer-dock { padding: 0; }',
501
- '.composer-pill { background: var(--surface); border: 1px solid var(--border-strong);',
502
- ' border-radius: 26px; padding: 8px 10px 8px 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);',
503
- ' display: flex; flex-direction: column; gap: 6px; transition: border-color 0.15s ease; }',
504
- '.composer-pill:focus-within { border-color: rgba(255, 255, 255, 0.28); }',
505
- ':root[data-theme="light"] .composer-pill:focus-within { border-color: rgba(20, 23, 20, 0.30); }',
506
- '.composer-chips { display: none; flex-wrap: wrap; gap: 6px; padding: 2px 4px 0; }',
507
- '.composer-chips.has-items { display: flex; }',
508
- '.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px;',
509
- ' border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border);',
510
- ' font-size: 12px; color: var(--text-2); }',
511
- '.chip button { border: none; background: transparent; color: var(--text-dim); padding: 0 2px; }',
512
- '.chip button:hover { color: var(--text); }',
513
- '.composer-row { display: flex; align-items: flex-end; gap: 8px; }',
514
- '.plus-btn { width: 34px; height: 34px; border-radius: 50%; border: none;',
515
- ' background: transparent; color: var(--text-2); font-size: 20px; line-height: 1;',
516
- ' display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }',
517
- '.plus-btn:hover { background: var(--surface-2); color: var(--text); }',
518
- '.composer-input { flex: 1; min-width: 0; border: none; background: transparent; resize: none;',
519
- ' outline: none !important; color: var(--text); font-size: 15px; line-height: 1.5;',
520
- ' min-height: 26px; max-height: 200px; padding: 4px 0; }',
521
- '.composer-input::placeholder { color: var(--text-dim); }',
522
- '.send-btn { width: 34px; height: 34px; border-radius: 50%; border: none;',
523
- ' background: var(--surface-3); color: var(--text-dim); display: inline-flex;',
524
- ' align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.14s ease; }',
525
- '.send-btn.ready { background: var(--lime); color: var(--lime-ink); }',
526
- '.send-btn.ready:hover { background: var(--lime-hover); }',
527
- '.send-btn.stopping { background: var(--text); color: var(--bg); }',
528
- '.send-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none;',
529
- ' stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }',
530
- '.hero-helper { margin-top: 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }',
531
- '.stage.has-messages .hero-helper { display: none; }',
532
- '.helper-pill { height: 34px; padding: 0 15px; border-radius: 999px;',
533
- ' border: 1px solid var(--border); background: transparent; color: var(--text-2);',
534
- ' font-size: 13px; transition: border-color 0.14s, color 0.14s, background 0.14s; }',
535
- '.helper-pill:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface); }',
536
- '.stage-footer { text-align: center; font-size: 11.5px; color: var(--text-dim);',
537
- ' padding: 0 16px 10px; flex-shrink: 0; }',
538
- '.stage.is-empty .stage-footer { position: absolute; left: 0; right: 0; bottom: 0; }',
539
- '',
540
- '/* Resizable Splitter & Right Panel */',
541
- '.studio-resizer { position: relative; width: 0; flex: 0 0 0; cursor: col-resize;',
542
- ' background: transparent; transition: background 0.14s ease; z-index: 29; }',
543
- '.studio-resizer::before { content: ""; position: absolute; top: 0; bottom: 0; left: -4px; right: -4px; }',
544
- '.app.studio-open .studio-resizer { width: 4px; flex: 0 0 4px; }',
545
- '.app.studio-open.studio-expanded .studio-resizer { width: 0; flex: 0 0 0; pointer-events: none; }',
546
- '.app.studio-open .studio-resizer:hover, .studio-resizer.dragging { background: var(--border-strong); }',
547
- '.studio-resizer.snap-close { background: var(--err); }',
548
- '.studio { width: 0; flex: 0 0 0; min-width: 0; height: 100%; background: var(--sidebar-bg);',
549
- ' border-left: 0 solid transparent; display: flex; flex-direction: column;',
550
- ' overflow: hidden; transition: width 0.18s ease, flex-basis 0.18s ease; z-index: 28; }',
551
- '.app.studio-open .studio { width: var(--studio-w); flex: 0 0 var(--studio-w);',
552
- ' border-left: 1px solid var(--border); }',
553
- '.app.studio-open.studio-expanded .studio { width: var(--studio-expanded-w, 720px); flex: 0 0 var(--studio-expanded-w, 720px); }',
554
- '.app.studio-resizing { user-select: none; cursor: col-resize; }',
555
- '.app.studio-resizing .studio { transition: none; }',
556
- '.app.studio-resizing iframe, .app.studio-resizing .live-browser-img { pointer-events: none !important; }',
557
- '.seg-group { display: inline-flex; padding: 2px; border-radius: 8px;',
558
- ' background: var(--surface); border: 1px solid var(--border); }',
559
- '.seg-btn { border: none; background: transparent; color: var(--text-2);',
560
- ' border-radius: 6px; padding: 4px 9px; font-size: 12px; font-weight: 500; }',
561
- '.seg-btn.active { background: var(--surface-3); color: var(--text); }',
562
- '.canvas-iframe { flex: 1; min-height: 0; width: 100%; border: none; background: #ffffff; display: none; }',
563
- '',
564
- '/* Clean Minimal Browser Chrome (2-Row Native Geometry) */',
565
- '.browser-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 6px;',
566
- ' height: 36px; padding: 0 8px; border-bottom: 1px solid var(--border);',
567
- ' background: var(--sidebar-bg); flex-shrink: 0; }',
568
- '.browser-tabs { display: flex; align-items: center; gap: 3px; flex: 1; min-width: 0;',
569
- ' overflow-x: auto; scrollbar-width: none; }',
570
- '.browser-tabs::-webkit-scrollbar { display: none; }',
571
- '.browser-tab-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }',
572
- '.btab { display: inline-flex; align-items: center; gap: 6px; max-width: 170px; height: 26px;',
573
- ' padding: 0 8px; border-radius: 6px; border: none; background: transparent;',
574
- ' font-size: 12px; color: var(--text-2); flex-shrink: 0; }',
575
- '.btab:hover { background: var(--surface); color: var(--text); }',
576
- '.btab.active { background: var(--surface-2); color: var(--text); font-weight: 500; }',
577
- '.btab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: none;',
578
- ' background: transparent; color: inherit; padding: 0; text-align: left; }',
579
- '.btab-close { border: none; background: transparent; color: var(--text-dim); padding: 0 2px; font-size: 11px; }',
580
- '.btab-close:hover { color: var(--text); }',
581
- '.browser-bar { height: 40px; padding: 0 8px; border-bottom: 1px solid var(--border);',
582
- ' display: flex; align-items: center; gap: 4px; flex-shrink: 0; background: var(--bg); }',
583
- '.browser-url-input { flex: 1; min-width: 0; height: 28px; padding: 0 11px; border-radius: 7px;',
584
- ' border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; color: var(--text); }',
585
- '.browser-url-input:focus { border-color: var(--border-strong); outline: none; }',
586
- '.browser-url-input::placeholder { color: var(--text-dim); }',
587
- '.browser-stage { flex: 1; min-height: 0; overflow: auto; background: var(--bg);',
588
- ' display: flex; flex-direction: column; align-items: center; position: relative; }',
589
- '.live-viewport-wrap { position: relative; width: 100%; flex: 1; display: flex;',
590
- ' align-items: flex-start; justify-content: center; outline: none; }',
591
- '.live-browser-img { width: 100%; max-width: 100%; height: auto; user-select: none;',
592
- ' cursor: default; display: none; background: #ffffff; border-bottom: 1px solid var(--border); }',
593
- '.live-viewport-wrap.agent-active .live-browser-img { opacity: 0.98; }',
594
- '.agent-browser-banner { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);',
595
- ' display: none; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-radius: 999px;',
596
- ' background: var(--popover-bg); border: 1px solid var(--border-strong);',
597
- ' color: var(--text); font-size: 12.5px; z-index: 6; box-shadow: var(--shadow); }',
598
- '.agent-browser-banner.visible { display: inline-flex; }',
599
- '.agent-browser-banner button { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 999px; }',
600
- '.browser-empty { margin: auto; max-width: 300px; text-align: center; color: var(--text-2);',
601
- ' padding: 24px 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }',
602
- '.browser-empty-title { font-size: 15px; font-weight: 500; color: var(--text); }',
603
- '.browser-empty-sub { font-size: 13px; color: var(--text-dim); line-height: 1.5; }',
604
- '.browser-frame { width: 100%; height: 100%; min-height: 420px; border: none;',
605
- ' background: #ffffff; transition: width 0.16s ease; }',
606
- '.browser-frame.vp-tablet { width: 768px; max-width: 100%; border-left: 1px solid var(--border);',
607
- ' border-right: 1px solid var(--border); }',
608
- '.browser-frame.vp-mobile { width: 390px; max-width: 100%; border-left: 1px solid var(--border);',
609
- ' border-right: 1px solid var(--border); }',
610
- '.sync-drawer { border-bottom: 1px solid var(--border); background: var(--surface); padding: 12px;',
611
- ' display: none; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; flex-shrink: 0; }',
612
- '.sync-drawer.open { display: flex; }',
613
- '.sync-drawer button { white-space: nowrap; flex-shrink: 0; }',
614
- '.sync-row { display: flex; align-items: center; justify-content: space-between; gap: 8px;',
615
- ' padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }',
616
- '.sync-tab-title { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden;',
617
- ' text-overflow: ellipsis; white-space: nowrap; }',
618
- '.sync-textarea { width: 100%; min-height: 54px; padding: 8px 10px; border-radius: 8px;',
619
- ' border: 1px solid var(--border); background: var(--bg); font: 12px var(--font-mono); resize: vertical; }',
620
- '',
621
- '/* Commands & Workspace Tabs */',
622
- '.cli-stats { padding: 8px 12px; border-bottom: 1px solid var(--border);',
623
- ' font-size: 12px; color: var(--text-dim); flex-shrink: 0; }',
624
- '.cli-grid { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px;',
625
- ' border-bottom: 1px solid var(--border); flex-shrink: 0; }',
626
- '.cli-chip { border: none; background: transparent; color: var(--text-2);',
627
- ' border-radius: 6px; padding: 4px 8px; font: 12px var(--font-mono); }',
628
- '.cli-chip:hover { background: var(--surface-2); color: var(--text); }',
629
- '.cli-console { flex: 1; min-height: 0; margin: 0; padding: 12px; overflow: auto;',
630
- ' background: var(--bg); font: 12px/1.55 var(--font-mono); color: var(--text-2); white-space: pre-wrap; }',
631
- '.cli-turn-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden;',
632
- ' background: var(--surface); }',
633
- '.cli-turn-head { padding: 7px 12px; border-bottom: 1px solid var(--border);',
634
- ' display: flex; align-items: center; justify-content: space-between; font: 500 12px var(--font-mono); color: var(--text); }',
635
- '.cli-turn-body { margin: 0; padding: 10px 12px; max-height: 360px; overflow: auto;',
636
- ' font: 12px/1.5 var(--font-mono); color: var(--text-2); white-space: pre-wrap; }',
637
- '.vault-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }',
638
- '.vault-row select, .vault-row input { height: 32px; padding: 0 9px; border-radius: 8px;',
639
- ' border: 1px solid var(--border); background: var(--bg); font-size: 13px; }',
640
- '.vault-row input { flex: 1; min-width: 160px; }',
641
- '.mention-popover { position: absolute; left: 16px; bottom: calc(100% + 6px); width: min(380px, 92%);',
642
- ' max-height: 220px; overflow-y: auto; background: var(--popover-bg);',
643
- ' border: 1px solid var(--border-strong); border-radius: 10px; padding: 5px;',
644
- ' box-shadow: var(--shadow); display: none; z-index: 50; }',
645
- '.mention-popover.open { display: block; }',
646
- '.mention-item { width: 100%; border: none; background: transparent; color: var(--text-2);',
647
- ' border-radius: 7px; padding: 6px 9px; text-align: left; font-size: 13px;',
648
- ' white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }',
649
- '.mention-item:hover, .mention-item.selected { background: var(--surface-2); color: var(--text); }',
650
- '.studio-head { height: var(--topbar-h); padding: 0 8px 0 10px; border-bottom: 1px solid var(--border);',
651
- ' display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-shrink: 0; }',
652
- '.studio-tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }',
653
- '.studio-tabs::-webkit-scrollbar { display: none; }',
654
- '.studio-head-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }',
655
- '.studio-tab { height: 30px; padding: 0 9px; border-radius: 7px; border: none; flex-shrink: 0;',
656
- ' background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 500; }',
657
- '.studio-tab:hover { background: var(--surface-2); color: var(--text); }',
658
- '.studio-tab.active { background: var(--surface-2); color: var(--text); }',
659
- '.studio-pane { flex: 1; min-height: 0; display: none; flex-direction: column; overflow: hidden; }',
660
- '.studio-pane.active { display: flex; }',
661
- '.studio-bar { padding: 8px 10px; border-bottom: 1px solid var(--border);',
662
- ' display: flex; align-items: center; gap: 6px; flex-shrink: 0; }',
663
- '.studio-bar input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border-radius: 8px;',
664
- ' border: 1px solid var(--border); background: var(--surface); font-size: 13px; }',
665
- '.studio-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 8px; }',
666
- '.file-row { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 7px; }',
667
- '.file-row:hover { background: var(--surface-2); }',
668
- '.file-open-btn { flex: 1; min-width: 0; border: none; background: transparent; text-align: left;',
669
- ' color: var(--text); font: 12.5px var(--font-mono); white-space: nowrap;',
670
- ' overflow: hidden; text-overflow: ellipsis; padding: 2px 0; }',
671
- '.file-attach-btn { border: none; background: transparent;',
672
- ' color: var(--text-dim); border-radius: 6px; padding: 2px 7px; font-size: 12px; }',
673
- '.file-attach-btn:hover { background: var(--surface-3); color: var(--text); }',
674
- '.canvas-editor { flex: 1; min-height: 0; width: 100%; border: none; resize: none;',
675
- ' background: var(--bg); color: var(--text); padding: 14px;',
676
- ' font: 13px/1.6 var(--font-mono); outline: none; }',
677
- '.canvas-preview { flex: 1; min-height: 0; overflow-y: auto; padding: 16px;',
678
- ' background: var(--bg); display: none; }',
679
- '.canvas-foot { padding: 8px 12px; border-top: 1px solid var(--border);',
680
- ' display: flex; align-items: center; justify-content: space-between; gap: 8px;',
681
- ' font-size: 12px; color: var(--text-dim); flex-shrink: 0; }',
682
- '.diff-file { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px;',
683
- ' overflow: hidden; background: var(--surface); }',
684
- '.diff-file-head { list-style: none; cursor: pointer; padding: 7px 10px;',
685
- ' display: flex; align-items: center; justify-content: space-between; gap: 8px;',
686
- ' font: 12px var(--font-mono); }',
687
- '.diff-file[open] .diff-file-head { border-bottom: 1px solid var(--border); }',
688
- '.diff-file-head::-webkit-details-marker { display: none; }',
689
- '.diff-file-path { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }',
690
- '.diff-file-right { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }',
691
- '.diff-open-btn { border: 1px solid var(--border); background: transparent; color: var(--text-2);',
692
- ' border-radius: 5px; padding: 1px 7px; font: 500 11px var(--font-sans); }',
693
- '.diff-open-btn:hover { background: var(--surface-2); color: var(--text); }',
694
- '.diff-note { padding: 8px 10px; font-size: 12px; color: var(--text-dim); }',
695
- '.diff-empty-box { padding: 18px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;',
696
- ' font-size: 12.5px; color: var(--text-dim); }',
697
- '.diff-add { color: var(--ok); }',
698
- '.diff-del { color: var(--err); }',
699
- '.diff-lines { margin: 0; padding: 6px 0; overflow-x: auto; font: 12px/1.45 var(--font-mono); }',
700
- '.diff-line { padding: 0 10px; white-space: pre; }',
701
- '.diff-line.plus { background: var(--diff-add-bg); color: var(--ok); }',
702
- '.diff-line.minus { background: var(--diff-del-bg); color: var(--err); }',
703
- '.diff-line.hunk { color: var(--text-dim); padding-top: 4px; }',
704
- '',
705
- '/* Popovers & Modals */',
706
- '.popover { position: fixed; z-index: 60; min-width: 240px; max-width: 340px; max-height: 70vh;',
707
- ' overflow-y: auto; background: var(--popover-bg); border: 1px solid var(--border-strong);',
708
- ' border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: none; }',
709
- '.popover.open { display: block; }',
710
- '.pop-section { padding: 6px 8px 4px; font-size: 11px; font-weight: 500;',
711
- ' color: var(--text-dim); }',
712
- '.pop-divider { height: 1px; background: var(--border); margin: 5px 4px; }',
713
- '.pop-item { width: 100%; border: none; background: transparent; color: var(--text);',
714
- ' border-radius: 7px; padding: 7px 9px; text-align: left; display: flex;',
715
- ' align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }',
716
- '.pop-item:hover { background: var(--surface-2); }',
717
- '.pop-item.active { background: var(--surface-2); font-weight: 500; }',
718
- '.pop-sub { font-size: 12px; color: var(--text-dim); }',
719
- '.pop-row { padding: 6px 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px;',
720
- ' font-size: 13px; color: var(--text); }',
721
- '.pop-select { height: 28px; padding: 0 8px; border-radius: 6px;',
722
- ' border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12.5px; }',
723
- '.model-popover { width: min(440px, calc(100vw - 24px)); min-width: 320px; max-width: 440px;',
724
- ' max-height: min(540px, 76vh); padding: 0; overflow: hidden;',
725
- ' flex-direction: column; }',
726
- '.model-popover.open { display: flex; }',
727
- '.mp-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--border);',
728
- ' display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; background: var(--popover-bg); }',
729
- '.mp-top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }',
730
- '.mp-tabs { display: inline-flex; padding: 2px; border-radius: 8px;',
731
- ' background: var(--surface); border: 1px solid var(--border); gap: 2px; }',
732
- '.mp-tab { border: none; background: transparent; color: var(--text-2); border-radius: 6px;',
733
- ' padding: 4px 11px; font-size: 12px; font-weight: 500; display: inline-flex;',
734
- ' align-items: center; gap: 5px; }',
735
- '.mp-tab:hover { color: var(--text); }',
736
- '.mp-tab.active { background: var(--surface-3); color: var(--text); }',
737
- '.mp-tab-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }',
738
- '.mp-refresh-btn { height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--border);',
739
- ' background: transparent; color: var(--text-2); font-size: 11.5px; font-weight: 500; }',
740
- '.mp-refresh-btn:hover { background: var(--surface-2); color: var(--text); }',
741
- '.mp-refresh-btn:disabled { opacity: 0.55; cursor: default; }',
742
- '.mp-search { width: 100%; height: 32px; padding: 0 10px; border-radius: 8px;',
743
- ' border: 1px solid var(--border); background: var(--surface); color: var(--text);',
744
- ' font-size: 13px; outline: none; }',
745
- '.mp-search:focus { border-color: var(--border-strong); }',
746
- '.mp-search::placeholder { color: var(--text-dim); }',
747
- '.mp-note { padding: 7px 10px; font-size: 12px; line-height: 1.45; color: var(--text-2);',
748
- ' background: var(--surface); border-bottom: 1px solid var(--border); flex-shrink: 0; }',
749
- '.mp-list { flex: 1; min-height: 120px; overflow-y: auto; padding: 6px; }',
750
- '.mp-cat { padding: 8px 8px 4px; font-size: 11px; font-weight: 600; color: var(--text-dim);',
751
- ' letter-spacing: 0.01em; display: flex; align-items: center; justify-content: space-between; }',
752
- '.mp-cat:first-child { padding-top: 3px; }',
753
- '.mp-row { width: 100%; border: none; background: transparent; color: var(--text);',
754
- ' border-radius: 7px; padding: 6px 9px; text-align: left; display: flex;',
755
- ' align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }',
756
- '.mp-row:hover, .mp-row.focused { background: var(--surface-2); }',
757
- '.mp-row.current { background: var(--surface-2); font-weight: 500; }',
758
- '.mp-row.muted { color: var(--text-2); }',
759
- '.mp-row.toggle { color: var(--text-2); font-size: 12px; }',
760
- '.mp-row.danger { color: var(--err); }',
761
- '.mp-row-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis;',
762
- ' white-space: nowrap; font-family: var(--font-mono); font-size: 12.5px; }',
763
- '.mp-row.toggle .mp-row-label, .mp-row.muted .mp-row-label, .mp-row.danger .mp-row-label {',
764
- ' font-family: var(--font-sans); font-size: 12.5px; }',
765
- '.mp-row-status { flex-shrink: 0; font-size: 11.5px; color: var(--text-dim); white-space: nowrap; }',
766
- '.mp-row-status.is-active { color: var(--lime); font-weight: 500; }',
767
- ':root[data-theme="light"] .mp-row-status.is-active { color: #2d6a1e; }',
768
- '.mp-row-status.is-ready { color: var(--text-2); }',
769
- '.mp-empty { padding: 24px 12px; text-align: center; font-size: 12.5px; color: var(--text-dim); }',
770
- '.mp-foot { padding: 7px 10px; border-top: 1px solid var(--border); font-size: 11px;',
771
- ' color: var(--text-dim); display: flex; align-items: center; justify-content: space-between;',
772
- ' flex-shrink: 0; background: var(--popover-bg); }',
773
- '.modal-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.56);',
774
- ' display: none; align-items: center; justify-content: center; padding: 20px; }',
775
- '.modal-backdrop.open { display: flex; }',
776
- '.modal-card { width: 100%; max-width: 520px; max-height: 82vh; overflow-y: auto;',
777
- ' background: var(--popover-bg); border: 1px solid var(--border-strong);',
778
- ' border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow);',
779
- ' display: flex; flex-direction: column; gap: 14px; }',
780
- '.modal-head { display: flex; align-items: center; justify-content: space-between; }',
781
- '.modal-title { margin: 0; font-size: 16px; font-weight: 600; }',
782
- '.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;',
783
- ' padding: 10px 0; border-bottom: 1px solid var(--border); }',
784
- '.setting-label { font-size: 13.5px; font-weight: 500; }',
785
- '.setting-desc { font-size: 12px; color: var(--text-dim); }',
786
- '.license-section { display: flex; flex-direction: column; gap: 9px; padding: 12px 0;',
787
- ' border-bottom: 1px solid var(--border); }',
788
- '.license-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }',
789
- '.license-badge { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;',
790
- ' border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); white-space: nowrap; }',
791
- '.license-badge.is-pro { border-color: rgba(181, 214, 106, 0.55); background: rgba(181, 214, 106, 0.14); color: var(--lime); }',
792
- '.license-meter { width: 100%; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }',
793
- '.license-meter-fill { height: 100%; width: 100%; background: var(--lime); border-radius: 999px; transition: width 0.2s ease; }',
794
- '.license-support-note { font-size: 12px; line-height: 1.5; color: var(--text-2);',
795
- ' padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }',
796
- '.msg-upgrade { font-size: 13.5px; line-height: 1.6; color: var(--text);',
797
- ' background: var(--surface); border: 1px solid rgba(181, 214, 106, 0.42);',
798
- ' border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }',
799
- '.msg-upgrade-actions { display: flex; align-items: center; gap: 8px; }',
800
- '.doctor-pre { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bg);',
801
- ' border: 1px solid var(--border); font: 11.5px/1.5 var(--font-mono); color: var(--text-2);',
802
- ' max-height: 200px; overflow: auto; white-space: pre-wrap; }',
803
- '',
804
- '/* Responsive Breakpoints */',
805
- '@media (max-width: 960px) {',
806
- ' .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px;',
807
- ' transform: translateX(0); box-shadow: var(--shadow); }',
808
- ' .app.sidebar-collapsed .sidebar { width: 272px; transform: translateX(-100%); }',
809
- ' .app:not(.sidebar-collapsed) .sidebar-backdrop { display: block; }',
810
- ' .app.studio-open .sidebar-backdrop { display: block; }',
811
- ' .studio-resizer { display: none !important; }',
812
- ' .app.studio-open .studio, .app.studio-open.studio-expanded .studio { position: fixed; right: 0; top: 0; bottom: 0;',
813
- ' width: min(100vw, 460px); flex: 0 0 min(100vw, 460px); box-shadow: var(--shadow); z-index: 32; }',
814
- ' #open-sidebar-btn { display: inline-flex; }',
815
- '}',
816
- '@media (max-width: 600px) {',
817
- ' .topbar { padding: 0 10px; gap: 6px; }',
818
- ' .model-trigger { padding: 0 6px; font-size: 13px; }',
819
- ' .topbar-select { font-size: 12px; padding: 0 6px; height: 30px; }',
820
- ' .studio-toggle { padding: 0 8px; height: 30px; }',
821
- ' .studio-toggle span { display: none; }',
822
- '}',
823
- '@media (prefers-reduced-motion: reduce) {',
824
- ' *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }',
825
- '}'
826
- ].join('\n');
827
- }