synabun 2.2.2 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +1 -1
  3. package/docs/whatsapp.md +52 -20
  4. package/lib/mcp-build.js +519 -0
  5. package/lib/mcp-dist.js +10 -4
  6. package/lib/server-supervisor.js +7 -1
  7. package/lib/virustotal.mjs +4 -2
  8. package/mcp-server/dist/http.d.ts +38 -0
  9. package/mcp-server/dist/http.d.ts.map +1 -1
  10. package/mcp-server/dist/http.js +75 -7
  11. package/mcp-server/dist/http.js.map +1 -1
  12. package/mcp-server/dist/services/browser-route-flow.d.ts +3 -2
  13. package/mcp-server/dist/services/browser-route-flow.d.ts.map +1 -1
  14. package/mcp-server/dist/services/browser-route-flow.js +4 -3
  15. package/mcp-server/dist/services/browser-route-flow.js.map +1 -1
  16. package/mcp-server/dist/services/embedding-service.d.ts.map +1 -1
  17. package/mcp-server/dist/services/embedding-service.js +2 -1
  18. package/mcp-server/dist/services/embedding-service.js.map +1 -1
  19. package/mcp-server/dist/services/neural-interface.d.ts +21 -0
  20. package/mcp-server/dist/services/neural-interface.d.ts.map +1 -1
  21. package/mcp-server/dist/services/neural-interface.js +76 -4
  22. package/mcp-server/dist/services/neural-interface.js.map +1 -1
  23. package/mcp-server/dist/services/tool-catalog.js +2 -2
  24. package/mcp-server/dist/services/tool-catalog.js.map +1 -1
  25. package/mcp-server/dist/tools/agents.d.ts +3 -2
  26. package/mcp-server/dist/tools/agents.d.ts.map +1 -1
  27. package/mcp-server/dist/tools/agents.js +6 -4
  28. package/mcp-server/dist/tools/agents.js.map +1 -1
  29. package/mcp-server/dist/tools/browser-advanced.d.ts +3 -1
  30. package/mcp-server/dist/tools/browser-advanced.d.ts.map +1 -1
  31. package/mcp-server/dist/tools/browser-advanced.js +30 -8
  32. package/mcp-server/dist/tools/browser-advanced.js.map +1 -1
  33. package/mcp-server/dist/tools/browser-navigate.d.ts +3 -3
  34. package/mcp-server/dist/tools/browser-navigate.d.ts.map +1 -1
  35. package/mcp-server/dist/tools/browser-navigate.js +19 -16
  36. package/mcp-server/dist/tools/browser-navigate.js.map +1 -1
  37. package/mcp-server/dist/tools/browser-observe.d.ts +2 -1
  38. package/mcp-server/dist/tools/browser-observe.d.ts.map +1 -1
  39. package/mcp-server/dist/tools/browser-observe.js +61 -20
  40. package/mcp-server/dist/tools/browser-observe.js.map +1 -1
  41. package/mcp-server/dist/tools/morelogin.d.ts +13 -3
  42. package/mcp-server/dist/tools/morelogin.d.ts.map +1 -1
  43. package/mcp-server/dist/tools/morelogin.js +81 -20
  44. package/mcp-server/dist/tools/morelogin.js.map +1 -1
  45. package/mcp-server/dist/tools/youtube/upload.d.ts.map +1 -1
  46. package/mcp-server/dist/tools/youtube/upload.js +225 -88
  47. package/mcp-server/dist/tools/youtube/upload.js.map +1 -1
  48. package/mcp-server/package-lock.json +2 -2
  49. package/mcp-server/package.json +1 -1
  50. package/mcp-server/src/http.ts +79 -7
  51. package/mcp-server/src/services/browser-route-flow.ts +4 -3
  52. package/mcp-server/src/services/embedding-service.ts +2 -1
  53. package/mcp-server/src/services/neural-interface.ts +77 -4
  54. package/mcp-server/src/services/tool-catalog.ts +2 -2
  55. package/mcp-server/src/tools/agents.ts +8 -4
  56. package/mcp-server/src/tools/browser-advanced.ts +29 -8
  57. package/mcp-server/src/tools/browser-navigate.ts +19 -16
  58. package/mcp-server/src/tools/browser-observe.ts +62 -20
  59. package/mcp-server/src/tools/morelogin.ts +81 -20
  60. package/mcp-server/src/tools/youtube/upload.ts +218 -99
  61. package/neural-interface/i18n/en.json +631 -123
  62. package/neural-interface/i18n/pt-BR.json +518 -10
  63. package/neural-interface/lib/assistant-api.js +26 -0
  64. package/neural-interface/lib/assistant-brains/claude.js +5 -0
  65. package/neural-interface/lib/assistant-catalog.js +114 -1
  66. package/neural-interface/lib/assistant-dispatch.js +71 -1
  67. package/neural-interface/lib/assistant-persona.js +14 -7
  68. package/neural-interface/lib/assistant-router.js +6 -4
  69. package/neural-interface/lib/assistant-runtime.js +3 -0
  70. package/neural-interface/lib/assistant-task-prompt.js +5 -0
  71. package/neural-interface/lib/automation-approval.js +249 -0
  72. package/neural-interface/lib/automation-browser-owner-access.js +82 -0
  73. package/neural-interface/lib/backup-service.js +16 -1
  74. package/neural-interface/lib/browser-background-tab.js +72 -3
  75. package/neural-interface/lib/browser-extraction.js +106 -45
  76. package/neural-interface/lib/browser-profile-choices.js +143 -0
  77. package/neural-interface/lib/browser-profiles.js +142 -0
  78. package/neural-interface/lib/browser-tab-recovery.js +153 -0
  79. package/neural-interface/lib/browser-tool-policy.js +2 -0
  80. package/neural-interface/lib/chromium-on-device-model.js +67 -0
  81. package/neural-interface/lib/claude-agent-bridge.js +7 -4
  82. package/neural-interface/lib/claude-model-catalog.js +12 -0
  83. package/neural-interface/lib/effort-levels.js +28 -2
  84. package/neural-interface/lib/local-profile-proxy.js +362 -0
  85. package/neural-interface/lib/local-profiles.js +929 -0
  86. package/neural-interface/lib/loop-logger.js +25 -4
  87. package/neural-interface/lib/maritaca/api.js +179 -0
  88. package/neural-interface/lib/maritaca/attachments.js +44 -0
  89. package/neural-interface/lib/maritaca/client.js +362 -0
  90. package/neural-interface/lib/maritaca/key-store.js +122 -0
  91. package/neural-interface/lib/maritaca/models.js +181 -0
  92. package/neural-interface/lib/maritaca/modes.js +39 -0
  93. package/neural-interface/lib/maritaca/opencode-proxy.js +236 -0
  94. package/neural-interface/lib/maritaca/opencode-stream.js +345 -0
  95. package/neural-interface/lib/maritaca/opencode.js +218 -0
  96. package/neural-interface/lib/maritaca/panel-bridge.js +273 -0
  97. package/neural-interface/lib/maritaca/sessions.js +198 -0
  98. package/neural-interface/lib/morelogin-agent-profiles.js +149 -0
  99. package/neural-interface/lib/morelogin.js +278 -14
  100. package/neural-interface/lib/native-loop-providers.js +3 -1
  101. package/neural-interface/lib/owner-authority.js +30 -12
  102. package/neural-interface/lib/page-session.js +43 -17
  103. package/neural-interface/lib/request-gate.js +2 -0
  104. package/neural-interface/lib/system-activity.js +1 -1
  105. package/neural-interface/lib/terminal-tokens.js +82 -5
  106. package/neural-interface/package-lock.json +3 -2
  107. package/neural-interface/package.json +2 -1
  108. package/neural-interface/public/assets/mascot/README.md +11 -0
  109. package/neural-interface/public/assets/mascot/ask.gif +0 -0
  110. package/neural-interface/public/assets/mascot/ask.png +0 -0
  111. package/neural-interface/public/assets/mascot/blocked.gif +0 -0
  112. package/neural-interface/public/assets/mascot/blocked.png +0 -0
  113. package/neural-interface/public/assets/mascot/budget.gif +0 -0
  114. package/neural-interface/public/assets/mascot/budget.png +0 -0
  115. package/neural-interface/public/assets/mascot/computer.gif +0 -0
  116. package/neural-interface/public/assets/mascot/computer.png +0 -0
  117. package/neural-interface/public/assets/mascot/edit.gif +0 -0
  118. package/neural-interface/public/assets/mascot/edit.png +0 -0
  119. package/neural-interface/public/assets/mascot/error.gif +0 -0
  120. package/neural-interface/public/assets/mascot/error.png +0 -0
  121. package/neural-interface/public/assets/mascot/hover-attention.gif +0 -0
  122. package/neural-interface/public/assets/mascot/hover-attention.png +0 -0
  123. package/neural-interface/public/assets/mascot/idle-hero.gif +0 -0
  124. package/neural-interface/public/assets/mascot/idle-hero.png +0 -0
  125. package/neural-interface/public/assets/mascot/idle.gif +0 -0
  126. package/neural-interface/public/assets/mascot/idle.png +0 -0
  127. package/neural-interface/public/assets/mascot/manifest.json +254 -0
  128. package/neural-interface/public/assets/mascot/mcp.gif +0 -0
  129. package/neural-interface/public/assets/mascot/mcp.png +0 -0
  130. package/neural-interface/public/assets/mascot/memory.gif +0 -0
  131. package/neural-interface/public/assets/mascot/memory.png +0 -0
  132. package/neural-interface/public/assets/mascot/offline.gif +0 -0
  133. package/neural-interface/public/assets/mascot/offline.png +0 -0
  134. package/neural-interface/public/assets/mascot/pick.gif +0 -0
  135. package/neural-interface/public/assets/mascot/pick.png +0 -0
  136. package/neural-interface/public/assets/mascot/plan.gif +0 -0
  137. package/neural-interface/public/assets/mascot/plan.png +0 -0
  138. package/neural-interface/public/assets/mascot/present.gif +0 -0
  139. package/neural-interface/public/assets/mascot/present.png +0 -0
  140. package/neural-interface/public/assets/mascot/project.gif +0 -0
  141. package/neural-interface/public/assets/mascot/project.png +0 -0
  142. package/neural-interface/public/assets/mascot/read.gif +0 -0
  143. package/neural-interface/public/assets/mascot/read.png +0 -0
  144. package/neural-interface/public/assets/mascot/runs.gif +0 -0
  145. package/neural-interface/public/assets/mascot/runs.png +0 -0
  146. package/neural-interface/public/assets/mascot/scenes/automation.gif +0 -0
  147. package/neural-interface/public/assets/mascot/scenes/automation.png +0 -0
  148. package/neural-interface/public/assets/mascot/scenes/browser.gif +0 -0
  149. package/neural-interface/public/assets/mascot/scenes/browser.png +0 -0
  150. package/neural-interface/public/assets/mascot/scenes/code.gif +0 -0
  151. package/neural-interface/public/assets/mascot/scenes/code.png +0 -0
  152. package/neural-interface/public/assets/mascot/scenes/complex.gif +0 -0
  153. package/neural-interface/public/assets/mascot/scenes/complex.png +0 -0
  154. package/neural-interface/public/assets/mascot/scenes/computer.gif +0 -0
  155. package/neural-interface/public/assets/mascot/scenes/computer.png +0 -0
  156. package/neural-interface/public/assets/mascot/scenes/design.gif +0 -0
  157. package/neural-interface/public/assets/mascot/scenes/design.png +0 -0
  158. package/neural-interface/public/assets/mascot/scenes/edit.gif +0 -0
  159. package/neural-interface/public/assets/mascot/scenes/edit.png +0 -0
  160. package/neural-interface/public/assets/mascot/scenes/generic.gif +0 -0
  161. package/neural-interface/public/assets/mascot/scenes/generic.png +0 -0
  162. package/neural-interface/public/assets/mascot/scenes/image_gen.gif +0 -0
  163. package/neural-interface/public/assets/mascot/scenes/image_gen.png +0 -0
  164. package/neural-interface/public/assets/mascot/scenes/manifest.json +173 -0
  165. package/neural-interface/public/assets/mascot/scenes/memory.gif +0 -0
  166. package/neural-interface/public/assets/mascot/scenes/memory.png +0 -0
  167. package/neural-interface/public/assets/mascot/scenes/quick.gif +0 -0
  168. package/neural-interface/public/assets/mascot/scenes/quick.png +0 -0
  169. package/neural-interface/public/assets/mascot/scenes/read.gif +0 -0
  170. package/neural-interface/public/assets/mascot/scenes/read.png +0 -0
  171. package/neural-interface/public/assets/mascot/scenes/research.gif +0 -0
  172. package/neural-interface/public/assets/mascot/scenes/research.png +0 -0
  173. package/neural-interface/public/assets/mascot/scenes/review.gif +0 -0
  174. package/neural-interface/public/assets/mascot/scenes/review.png +0 -0
  175. package/neural-interface/public/assets/mascot/scenes/search.gif +0 -0
  176. package/neural-interface/public/assets/mascot/scenes/search.png +0 -0
  177. package/neural-interface/public/assets/mascot/scenes/shell.gif +0 -0
  178. package/neural-interface/public/assets/mascot/scenes/shell.png +0 -0
  179. package/neural-interface/public/assets/mascot/scenes/thinking.gif +0 -0
  180. package/neural-interface/public/assets/mascot/scenes/thinking.png +0 -0
  181. package/neural-interface/public/assets/mascot/scenes/video_gen.gif +0 -0
  182. package/neural-interface/public/assets/mascot/scenes/video_gen.png +0 -0
  183. package/neural-interface/public/assets/mascot/scenes/web.gif +0 -0
  184. package/neural-interface/public/assets/mascot/scenes/web.png +0 -0
  185. package/neural-interface/public/assets/mascot/search.gif +0 -0
  186. package/neural-interface/public/assets/mascot/search.png +0 -0
  187. package/neural-interface/public/assets/mascot/shell.gif +0 -0
  188. package/neural-interface/public/assets/mascot/shell.png +0 -0
  189. package/neural-interface/public/assets/mascot/skill.gif +0 -0
  190. package/neural-interface/public/assets/mascot/skill.png +0 -0
  191. package/neural-interface/public/assets/mascot/sleep.gif +0 -0
  192. package/neural-interface/public/assets/mascot/sleep.png +0 -0
  193. package/neural-interface/public/assets/mascot/subagent.gif +0 -0
  194. package/neural-interface/public/assets/mascot/subagent.png +0 -0
  195. package/neural-interface/public/assets/mascot/success.gif +0 -0
  196. package/neural-interface/public/assets/mascot/success.png +0 -0
  197. package/neural-interface/public/assets/mascot/think.gif +0 -0
  198. package/neural-interface/public/assets/mascot/think.png +0 -0
  199. package/neural-interface/public/assets/mascot/wait.gif +0 -0
  200. package/neural-interface/public/assets/mascot/wait.png +0 -0
  201. package/neural-interface/public/assets/mascot/watch.gif +0 -0
  202. package/neural-interface/public/assets/mascot/watch.png +0 -0
  203. package/neural-interface/public/assets/mascot/web.gif +0 -0
  204. package/neural-interface/public/assets/mascot/web.png +0 -0
  205. package/neural-interface/public/onboarding.html +14 -1
  206. package/neural-interface/public/shared/agent-runtime-options.js +49 -8
  207. package/neural-interface/public/shared/agy/agy-panel.js +2 -2
  208. package/neural-interface/public/shared/api.js +4 -4
  209. package/neural-interface/public/shared/assistant/asst-ask-styles.js +8 -8
  210. package/neural-interface/public/shared/assistant/asst-ask.js +1 -1
  211. package/neural-interface/public/shared/assistant/asst-brain-picker.js +99 -9
  212. package/neural-interface/public/shared/assistant/asst-control.js +1 -1
  213. package/neural-interface/public/shared/assistant/asst-limit-wait.js +4 -4
  214. package/neural-interface/public/shared/assistant/asst-panel.js +6 -2
  215. package/neural-interface/public/shared/assistant/asst-rack-styles.js +4 -4
  216. package/neural-interface/public/shared/assistant/asst-render.js +6 -6
  217. package/neural-interface/public/shared/assistant/asst-route-models.js +64 -4
  218. package/neural-interface/public/shared/assistant/asst-route.js +24 -7
  219. package/neural-interface/public/shared/assistant/asst-routes-editor.js +154 -39
  220. package/neural-interface/public/shared/assistant/asst-run-stage.js +3 -3
  221. package/neural-interface/public/shared/assistant/asst-scene-styles.js +8 -111
  222. package/neural-interface/public/shared/assistant/asst-scenes.js +46 -318
  223. package/neural-interface/public/shared/assistant/asst-sidepanel.js +2 -2
  224. package/neural-interface/public/shared/assistant/asst-state.js +72 -2
  225. package/neural-interface/public/shared/assistant/asst-styles.js +58 -14
  226. package/neural-interface/public/shared/automation-approval-view.js +75 -0
  227. package/neural-interface/public/shared/cdx/cdx-panel.js +2 -2
  228. package/neural-interface/public/shared/context-menu-model.js +2 -0
  229. package/neural-interface/public/shared/editor/editor-panel-logic.js +10 -0
  230. package/neural-interface/public/shared/editor/editor-panel.js +10 -2
  231. package/neural-interface/public/shared/html-shell.js +30 -22
  232. package/neural-interface/public/shared/morelogin-profile-choices.js +107 -0
  233. package/neural-interface/public/shared/morelogin-profile-field.js +186 -0
  234. package/neural-interface/public/shared/mtc/mtc-client.js +181 -0
  235. package/neural-interface/public/shared/mtc/mtc-compose.js +40 -0
  236. package/neural-interface/public/shared/mtc/mtc-copy.js +253 -0
  237. package/neural-interface/public/shared/mtc/mtc-logic.js +478 -0
  238. package/neural-interface/public/shared/mtc/mtc-panel.js +1354 -0
  239. package/neural-interface/public/shared/mtc/mtc-render.js +172 -0
  240. package/neural-interface/public/shared/mtc/mtc-styles.js +437 -0
  241. package/neural-interface/public/shared/ocp-v2/ocp-v2-panel.js +6 -2
  242. package/neural-interface/public/shared/provider-icons.js +3 -0
  243. package/neural-interface/public/shared/schedules-view.js +7 -0
  244. package/neural-interface/public/shared/server-back.js +50 -0
  245. package/neural-interface/public/shared/settings/settings-browser-owner-access.js +72 -0
  246. package/neural-interface/public/shared/settings/settings-data.js +1 -0
  247. package/neural-interface/public/shared/settings/settings-ia.js +3 -1
  248. package/neural-interface/public/shared/settings/settings-local-profiles.js +153 -0
  249. package/neural-interface/public/shared/settings/settings-maritaca-opencode.js +105 -0
  250. package/neural-interface/public/shared/sidepanel-session-status.js +16 -2
  251. package/neural-interface/public/shared/state.js +1 -1
  252. package/neural-interface/public/shared/styles.css +356 -157
  253. package/neural-interface/public/shared/synabun-mascot-assets.js +67 -0
  254. package/neural-interface/public/shared/synabun-mascot.js +136 -12
  255. package/neural-interface/public/shared/synabun-ticker.js +3 -0
  256. package/neural-interface/public/shared/topright-overflow-logic.js +1 -0
  257. package/neural-interface/public/shared/ui-automation-approval.js +188 -0
  258. package/neural-interface/public/shared/ui-automation-studio.js +130 -90
  259. package/neural-interface/public/shared/ui-claude-panel.js +50 -2
  260. package/neural-interface/public/shared/ui-maritaca-panel.js +15 -0
  261. package/neural-interface/public/shared/ui-navbar.js +17 -0
  262. package/neural-interface/public/shared/ui-panels.js +3 -1
  263. package/neural-interface/public/shared/ui-schedules-studio.js +118 -17
  264. package/neural-interface/public/shared/ui-scroll-follow.js +3 -0
  265. package/neural-interface/public/shared/ui-settings.js +590 -27
  266. package/neural-interface/public/shared/ui-sidepanel-session-entry.js +8 -2
  267. package/neural-interface/public/shared/ui-sidepanel-sessions.js +3 -3
  268. package/neural-interface/public/shared/ui-sidepanel-tray.js +24 -0
  269. package/neural-interface/public/shared/ui-sidepanel-windows.js +1 -1
  270. package/neural-interface/scripts/build-mascot-assets.mjs +30 -0
  271. package/neural-interface/server.js +1784 -195
  272. package/npm-shrinkwrap.json +5 -17
  273. package/package.json +5 -6
  274. package/postinstall.js +38 -39
  275. package/setup.js +33 -31
  276. package/skills/synabun/modules/changelog.md +14 -0
@@ -0,0 +1,437 @@
1
+ // SynaBun — Maritaca Panel: Styles
2
+ //
3
+ // The Codex / Antigravity panels' visual language (DESIGN.md → Codex sidepanel `panel-codex`): the same shell,
4
+ // surfaces, edges, text levels, radii, type sizes and motion, under the panel's own --mtc-* names with the same
5
+ // values. The one colour of its own is the provider's (provider-icons.js PROVIDER_META.maritaca, Maritaca's green):
6
+ // its mark and nothing else. Every rule below uses a token; add a value to the block first.
7
+
8
+ export function injectMaritacaStyles() {
9
+ if (document.getElementById('maritaca-panel-styles')) return;
10
+ const style = document.createElement('style');
11
+ style.id = 'maritaca-panel-styles';
12
+ style.textContent = `
13
+ .mtc-panel, .mtc-session-pill, .mtc-pop {
14
+ --mtc-shell: rgba(16, 18, 22, 0.92);
15
+ --mtc-shell-border: rgba(255,255,255,0.08);
16
+ --mtc-pop-bg: rgb(22, 22, 26);
17
+ --mtc-surface-1: var(--s-subtle);
18
+ --mtc-surface-2: var(--s-hover);
19
+ --mtc-surface-3: var(--s-active);
20
+ --mtc-border: var(--b-light);
21
+ --mtc-border-strong: var(--b-visible);
22
+ --mtc-border-input: rgba(255,255,255,0.36);
23
+ --mtc-text: var(--t-bright);
24
+ --mtc-text-2: var(--t-primary);
25
+ --mtc-text-3: var(--t-secondary);
26
+ --mtc-text-off: var(--t-muted);
27
+ --mtc-solid: #ededed;
28
+ --mtc-solid-hover: #ffffff;
29
+ --mtc-on-solid: #171717;
30
+ --mtc-running: #0ea5e9;
31
+ --mtc-success: #22c55e;
32
+ --mtc-warning: #f59e0b;
33
+ --mtc-danger: #ef4444;
34
+ --mtc-link: var(--accent-blue);
35
+ --mtc-focus: var(--t-primary);
36
+ --mtc-brand: #70d44b;
37
+ --mtc-radius-sm: 4px;
38
+ --mtc-radius-md: var(--r-card);
39
+ --mtc-radius-lg: 12px;
40
+ --mtc-radius-pill: 999px;
41
+ --mtc-radius-shell: 16px;
42
+ --mtc-space-1: 4px;
43
+ --mtc-space-2: 8px;
44
+ --mtc-space-3: 12px;
45
+ --mtc-space-4: 16px;
46
+ --mtc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
47
+ --mtc-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
48
+ --mtc-fs-xs: calc(10px * var(--font-scale, 1));
49
+ --mtc-fs-sm: calc(11px * var(--font-scale, 1));
50
+ --mtc-fs-md: calc(12px * var(--font-scale, 1));
51
+ --mtc-fs-lg: calc(13px * var(--font-scale, 1));
52
+ --mtc-lh-tight: 1.35;
53
+ --mtc-lh: 1.6;
54
+ --mtc-dur: 0.25s;
55
+ --mtc-dur-fast: 150ms;
56
+ --mtc-ease: cubic-bezier(0.2, 0, 0, 1);
57
+ --mtc-shadow-pop: 0 8px 24px rgba(0,0,0,0.35);
58
+ /* The sibling panels' values: the cards of the header and the composer (the Claude panel's), the context
59
+ pressure of the cog's dot and the meter (Claude / Codex / OpenCode), the dialog's scrim (Codex). */
60
+ --mtc-card-bg: rgba(22, 22, 26, 0.95);
61
+ --mtc-card-ring: 0 0 0 1px rgba(255,255,255,0.06);
62
+ --mtc-radius-card: 10px;
63
+ --mtc-pressure-high: #d4a848;
64
+ --mtc-pressure-critical: #ef7070;
65
+ --mtc-scrim: rgba(0,0,0,0.55);
66
+ --mtc-space-5: 24px;
67
+ }
68
+ .mtc-panel {
69
+ position: fixed; top: calc(var(--navbar-height, 48px) + 20px); right: 20px; width: 22%; min-width: 320px; max-width: 700px; bottom: 20px; z-index: 205;
70
+ display: flex; flex-direction: column; background: var(--mtc-shell); backdrop-filter: blur(28px) saturate(1.45); -webkit-backdrop-filter: blur(28px) saturate(1.45);
71
+ border: 0.5px solid var(--mtc-shell-border); border-radius: var(--mtc-radius-shell);
72
+ box-shadow: 0 0 0 0.5px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.12), 0 12px 24px rgba(0,0,0,0.14), 0 32px 64px rgba(0,0,0,0.18);
73
+ overflow: hidden; transform: translateX(calc(100% + 20px)); opacity: 0; transition: transform var(--mtc-dur) var(--mtc-ease), opacity var(--mtc-dur) ease;
74
+ font-family: var(--mtc-font); font-size: var(--mtc-fs-md); color: var(--mtc-text);
75
+ }
76
+ .mtc-panel.open { transform: translateX(0); opacity: 1; overflow: visible; }
77
+ html.platform-win32 .mtc-panel, html.desktop-titlebar--win32 .mtc-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
78
+ .mtc-panel:has(.cc-dropdown.open) { z-index: 99999; }
79
+ .mtc-panel :is(a, button, input, textarea, summary, [tabindex]):focus-visible, .mtc-pop :is(a, button, input, textarea, summary, [tabindex]):focus-visible, .mtc-session-pill:focus-visible { outline: 2px solid var(--mtc-focus); outline-offset: 2px; }
80
+ .mtc-panel input::placeholder, .mtc-panel textarea::placeholder, .mtc-pop input::placeholder, .mtc-pop textarea::placeholder { color: var(--mtc-text-3); opacity: 1; }
81
+ .mtc-panel [hidden], .mtc-pop [hidden] { display: none !important; }
82
+ .mtc-resize-handle { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 2; }
83
+
84
+ /* The header and the composer are the Claude panel's two cards: one dark fill, a hairline ring, the small shadow. */
85
+ .mtc-header { position: relative; display: flex; align-items: center; flex-shrink: 0; margin: 8px 8px 0; padding: 10px 10px 10px 14px; border-radius: var(--mtc-radius-card); background: var(--mtc-card-bg); box-shadow: var(--shadow-sm), var(--mtc-card-ring); z-index: 3; container: mtc-header / inline-size; }
86
+ .mtc-session-btn { display: flex; align-items: center; gap: 6px; min-width: 32px; flex: 1 0 88px; max-width: max-content; overflow: hidden; padding: 5px 10px; border: none; border-radius: var(--mtc-radius-md) 0 0 var(--mtc-radius-md); background: var(--mtc-surface-1); color: var(--mtc-text-2); font: 400 var(--mtc-fs-sm)/1.2 var(--mtc-font); cursor: pointer; transition: background var(--mtc-dur-fast), color var(--mtc-dur-fast); }
87
+ .mtc-session-btn:hover, .mtc-session-btn[aria-expanded="true"] { background: var(--mtc-surface-2); color: var(--mtc-text); }
88
+ .mtc-session-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
89
+ .mtc-session-label input { width: 100%; min-width: 0; border: none; outline: none; background: transparent; color: var(--mtc-text); font: inherit; padding: 0; }
90
+ .mtc-dd-arrow { font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); flex-shrink: 0; }
91
+ .mtc-mark { width: 14px; height: 14px; flex: 0 0 auto; display: inline-flex; color: var(--mtc-brand); }
92
+ .mtc-mark svg { width: 14px; height: 14px; }
93
+ .mtc-header-rename { display: inline-flex; align-items: center; justify-content: center; width: 24px; align-self: stretch; flex-shrink: 0; margin-right: 3px; border: none; border-left: 1px solid var(--mtc-border); border-radius: 0 var(--mtc-radius-md) var(--mtc-radius-md) 0; background: var(--mtc-surface-1); color: var(--mtc-text-3); cursor: pointer; }
94
+ .mtc-header-rename:hover:not(:disabled) { color: var(--mtc-text); background: var(--mtc-surface-2); }
95
+ .mtc-header-rename:disabled { opacity: 0.4; cursor: not-allowed; }
96
+ .mtc-header-rename svg { width: 12px; height: 12px; }
97
+ .mtc-actions { display: flex; align-items: center; gap: 3px; margin-left: auto; flex-shrink: 0; }
98
+ .mtc-btn { position: relative; width: 24px; height: 24px; padding: 0; border: none; border-radius: var(--mtc-radius-md); display: inline-flex; align-items: center; justify-content: center; background: var(--mtc-surface-1); color: var(--mtc-text-3); cursor: pointer; transition: background var(--mtc-dur-fast), color var(--mtc-dur-fast); }
99
+ .mtc-btn:hover:not(:disabled) { background: var(--mtc-surface-2); color: var(--mtc-text); }
100
+ .mtc-btn:disabled { opacity: 0.45; cursor: not-allowed; }
101
+ .mtc-btn svg { width: 12px; height: 12px; }
102
+ .mtc-btn-danger:hover:not(:disabled) { color: var(--mtc-danger); }
103
+ /* The cog: Context settings (the context window, the conversation, the connection; Settings from there). Its one
104
+ decoration is a dot: context pressure from 80% / 90% of the window, or the warning colour while no key is set. */
105
+ .mtc-btn.mtc-cog svg { width: 14px; height: 14px; }
106
+ .mtc-btn.mtc-cog[aria-expanded="true"] { background: var(--mtc-surface-2); color: var(--mtc-text); }
107
+ .mtc-cog-dot { position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: var(--mtc-radius-pill); background: var(--mtc-pressure-high); pointer-events: none; }
108
+ .mtc-cog-dot-critical { background: var(--mtc-pressure-critical); }
109
+ .mtc-cog-dot-nokey { background: var(--mtc-warning); }
110
+
111
+ .mtc-tabs { display: flex; gap: 4px; padding: 6px 12px 0; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
112
+ .mtc-tabs:empty { display: none; }
113
+ .mtc-tab { display: inline-flex; align-items: center; gap: 6px; max-width: 180px; padding: 3px 6px 3px 8px; flex-shrink: 0; border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-md); background: transparent; color: var(--mtc-text-3); font: var(--mtc-fs-sm)/1.35 var(--mtc-font); cursor: pointer; }
114
+ .mtc-tab:hover { background: var(--mtc-surface-1); color: var(--mtc-text-2); }
115
+ .mtc-tab[aria-selected="true"] { background: var(--mtc-surface-2); color: var(--mtc-text); border-color: var(--mtc-border-strong); }
116
+ .mtc-tab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
117
+ .mtc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mtc-text-off); flex: 0 0 auto; }
118
+ .mtc-tab.running .mtc-dot { background: var(--mtc-running); animation: mtc-working 1.6s ease-in-out infinite; }
119
+ .mtc-tab-close { border: 0; background: none; color: var(--mtc-text-3); cursor: pointer; padding: 0 2px; font-size: var(--mtc-fs-lg); line-height: 1; border-radius: var(--mtc-radius-sm); }
120
+ .mtc-tab-close:hover { color: var(--mtc-text); background: var(--mtc-surface-2); }
121
+ @keyframes mtc-working { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
122
+
123
+ .mtc-messages-container { position: relative; flex: 1; min-height: 0; overflow: hidden; margin: 6px 8px; }
124
+ .mtc-transcript { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; padding: 12px 0 8px; display: flex; flex-direction: column; font-size: var(--mtc-fs-md); line-height: var(--mtc-lh); scrollbar-width: thin; scrollbar-color: var(--mtc-border-strong) transparent; }
125
+ .mtc-transcript::before { content: ''; margin-top: auto; }
126
+ .mtc-jump { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 4; padding: 4px 10px; border: 1px solid var(--mtc-border-strong); border-radius: var(--mtc-radius-pill); background: var(--mtc-pop-bg); color: var(--mtc-text-2); font: 500 var(--mtc-fs-sm)/1.2 var(--mtc-font); cursor: pointer; box-shadow: var(--mtc-shadow-pop); }
127
+ .mtc-empty { margin: auto 0; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px 18px; text-align: center; color: var(--mtc-text-3); }
128
+ .mtc-empty-mark { display: flex; color: var(--mtc-brand); opacity: 0.7; }
129
+ .mtc-empty-mark svg { width: 32px; height: 36px; }
130
+ .mtc-empty-name { font-size: var(--mtc-fs-lg); font-weight: 500; color: var(--mtc-text-3); }
131
+ .mtc-empty-status { font-size: var(--mtc-fs-sm); line-height: 1.5; max-width: 320px; }
132
+ .mtc-empty-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }
133
+ .mtc-link { color: var(--mtc-link); font-size: var(--mtc-fs-sm); text-decoration: none; }
134
+ .mtc-link:hover { text-decoration: underline; }
135
+
136
+ .mtc-system { align-self: center; box-sizing: border-box; max-width: calc(100% - 32px); margin: 4px 16px; padding: 4px 0; font-size: var(--mtc-fs-sm); line-height: 1.45; color: var(--mtc-text-3); text-align: center; overflow-wrap: anywhere; white-space: pre-wrap; flex-shrink: 0; }
137
+ .mtc-system.error { color: var(--mtc-danger); }
138
+ .mtc-system.warning { color: var(--mtc-warning); }
139
+ .mtc-system.working { color: var(--mtc-running); align-self: flex-start; margin-left: var(--mtc-space-2); }
140
+ .mtc-system.working::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: mtc-working 1.6s ease-in-out infinite; }
141
+ .mtc-msg { display: flex; padding: var(--mtc-space-2); flex-shrink: 0; min-width: 0; }
142
+ .mtc-msg-user { justify-content: flex-end; padding: var(--mtc-space-3) var(--mtc-space-2) var(--mtc-space-1); }
143
+ .mtc-msg-user .mtc-msg-card { max-width: 85%; border-radius: var(--mtc-radius-lg); background: var(--mtc-surface-2); padding: var(--mtc-space-2) var(--mtc-space-3); }
144
+ .mtc-msg-text { white-space: pre-wrap; word-break: break-word; font-size: var(--mtc-fs-md); line-height: var(--mtc-lh); }
145
+ .mtc-msg-agent { flex-direction: column; color: var(--mtc-text); word-break: break-word; gap: 4px; }
146
+ .mtc-md { font-size: var(--mtc-fs-md); line-height: var(--mtc-lh); color: var(--mtc-text); min-width: 0; overflow-wrap: anywhere; }
147
+ .mtc-md > :first-child { margin-top: 0; } .mtc-md > :last-child { margin-bottom: 0; }
148
+ .mtc-md :is(p, ul, ol, pre, blockquote, table) { margin: 0 0 8px; }
149
+ .mtc-md :is(h1, h2, h3, h4) { margin: 12px 0 6px; font-size: var(--mtc-fs-lg); font-weight: 600; line-height: var(--mtc-lh-tight); }
150
+ .mtc-md :is(ul, ol) { padding-left: 18px; }
151
+ .mtc-md a { color: var(--mtc-link); }
152
+ .mtc-md code { font-family: var(--mtc-mono); font-size: 0.92em; background: var(--mtc-surface-2); padding: 1px 4px; border-radius: var(--mtc-radius-sm); }
153
+ .mtc-md pre { background: var(--mtc-surface-1); border-radius: var(--mtc-radius-md); padding: 8px 10px; overflow-x: auto; font: var(--mtc-fs-sm)/1.55 var(--mtc-mono); }
154
+ .mtc-md pre code { background: none; padding: 0; }
155
+ .mtc-md blockquote { border-left: 2px solid var(--mtc-border-strong); padding-left: 10px; color: var(--mtc-text-2); }
156
+ .mtc-md table { border-collapse: collapse; display: block; overflow-x: auto; }
157
+ .mtc-md :is(th, td) { border: 1px solid var(--mtc-border); padding: 3px 8px; text-align: left; }
158
+ .mtc-thought { margin: 2px 0; font-size: var(--mtc-fs-sm); color: var(--mtc-text-3); flex-shrink: 0; }
159
+ .mtc-thought summary { cursor: pointer; list-style: none; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; }
160
+ .mtc-thought summary::-webkit-details-marker { display: none; }
161
+ .mtc-thought summary::before { content: '\\25B8'; font-size: var(--mtc-fs-xs); transition: transform var(--mtc-dur-fast); }
162
+ .mtc-thought[open] summary::before { transform: rotate(90deg); }
163
+ .mtc-thought-body { white-space: pre-wrap; padding: 4px 0 6px 10px; border-left: 1px solid var(--mtc-border); line-height: 1.55; max-height: 240px; overflow: auto; }
164
+ .mtc-turn-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); }
165
+ .mtc-turn-meta { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
166
+ .mtc-turn-actions { display: flex; gap: 2px; flex-shrink: 0; opacity: 0; transition: opacity var(--mtc-dur-fast); }
167
+ .mtc-msg-agent:hover .mtc-turn-actions, .mtc-msg-agent:focus-within .mtc-turn-actions { opacity: 1; }
168
+ .mtc-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: none; border-radius: var(--mtc-radius-sm); background: none; color: var(--mtc-text-3); cursor: pointer; }
169
+ .mtc-icon-btn:hover { color: var(--mtc-text); background: var(--mtc-surface-2); }
170
+ .mtc-icon-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
171
+
172
+ .mtc-bottom { position: relative; z-index: 10; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; margin: 0 8px 8px; padding: 6px 0 4px; border-radius: var(--mtc-radius-card); background: var(--mtc-card-bg); box-shadow: var(--shadow-sm), var(--mtc-card-ring); }
173
+ .mtc-bottom > :is(.mtc-banner, .mtc-edit-notice, .mtc-staged, .mtc-hints) { margin: 0 8px; }
174
+ .mtc-bottom > .mtc-projectbar { padding: 0 8px; }
175
+ .mtc-banner { padding: 6px 10px; border-radius: var(--mtc-radius-md); background: var(--mtc-surface-1); color: var(--mtc-text-2); font-size: var(--mtc-fs-sm); line-height: 1.45; }
176
+ .mtc-banner.error { color: var(--mtc-danger); }
177
+ .mtc-banner button { margin-left: 8px; border: none; background: none; color: var(--mtc-link); font: inherit; cursor: pointer; padding: 0; }
178
+ .mtc-projectbar { display: flex; align-items: center; gap: 6px; min-width: 0; }
179
+ .mtc-projectbar .cc-dropdown { flex: 1 1 0; min-width: 0; }
180
+ .mtc-projectbar .mtc-branch-dd { flex: 0 1 38%; }
181
+ .mtc-projectbar .cc-dropdown[hidden] { display: none; }
182
+ .mtc-composer { display: flex; flex-direction: column; gap: 6px; }
183
+ .mtc-input-shell { display: flex; align-items: flex-end; gap: 4px; padding: 5px 5px 5px 14px; border: 1px solid var(--mtc-border-input); border-radius: var(--mtc-radius-lg); background: var(--mtc-surface-1); transition: border-color var(--mtc-dur-fast); }
184
+ .mtc-input-shell:focus-within { border-color: var(--mtc-focus); }
185
+ .mtc-input { flex: 1; min-width: 0; min-height: 22px; max-height: 180px; resize: none; border: none; outline: none; background: transparent; color: var(--mtc-text); font: var(--mtc-fs-lg)/1.5 var(--mtc-font); padding: 4px 0; overflow-wrap: break-word; scrollbar-width: thin; scrollbar-color: var(--mtc-border-strong) transparent; }
186
+ /* Send: the panel's one solid control while there is something to send; Stop is a red outline (the Codex panel's). */
187
+ .mtc-send { width: 28px; height: 28px; flex-shrink: 0; border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-md); background: transparent; color: var(--mtc-text-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; align-self: flex-end; transition: background var(--mtc-dur-fast), color var(--mtc-dur-fast), border-color var(--mtc-dur-fast), opacity var(--mtc-dur-fast); }
188
+ .mtc-send:not(:disabled) { background: var(--mtc-solid); border-color: transparent; color: var(--mtc-on-solid); }
189
+ .mtc-send:hover:not(:disabled) { background: var(--mtc-solid-hover); }
190
+ .mtc-send:disabled { opacity: 0.5; cursor: default; }
191
+ .mtc-send[data-mode="stop"], .mtc-send[data-mode="stop"]:not(:disabled) { background: transparent; border-color: var(--mtc-danger); color: var(--mtc-danger); }
192
+ .mtc-send[data-mode="stop"]:hover:not(:disabled) { background: var(--mtc-surface-1); }
193
+ .mtc-send svg { width: 12px; height: 12px; }
194
+ .mtc-footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; padding: 2px 10px 0; container: mtc-footer / inline-size; }
195
+ /* The controls on the right keep their size; the status line on the left gives way first (an ellipsis). */
196
+ .mtc-footer-left { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 0; }
197
+ .mtc-footer-left .mtc-status-line { flex: 1 1 auto; min-width: 0; }
198
+ .mtc-footer-right { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; min-width: 0; }
199
+ .mtc-footer .cc-dropdown { max-width: 160px; min-width: 0; }
200
+ .mtc-footer .cc-dropdown-trigger { width: 100%; box-sizing: border-box; min-width: 0; max-width: 160px; border-color: transparent; background: transparent; }
201
+ .mtc-footer .cc-dropdown-trigger:hover, .mtc-footer .cc-dropdown.open .cc-dropdown-trigger { background: var(--mtc-surface-2); border-color: var(--mtc-border); }
202
+ .mtc-footer .cc-dropdown-menu { top: auto; bottom: calc(100% + 6px); left: auto; right: 0; min-width: 240px; max-height: 320px; overflow-y: auto; }
203
+ .mtc-brand-link { display: inline-flex; color: var(--mtc-brand); opacity: 0.8; }
204
+ .mtc-brand-link svg { width: 14px; height: 16px; }
205
+ .mtc-brand-link:hover { opacity: 1; }
206
+ .mtc-status-line { font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
207
+
208
+ .mtc-action { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border: 1px solid var(--mtc-border-strong); border-radius: var(--mtc-radius-md); background: transparent; color: var(--mtc-text); font: 500 var(--mtc-fs-md)/1 var(--mtc-font); text-decoration: none; cursor: pointer; user-select: none; transition: background var(--mtc-dur-fast), border-color var(--mtc-dur-fast); }
209
+ .mtc-action:hover:not(:disabled) { background: var(--mtc-surface-2); }
210
+ .mtc-action:disabled { opacity: 0.5; cursor: default; }
211
+ .mtc-action.mtc-btn-primary { background: var(--mtc-solid); border-color: var(--mtc-solid); color: var(--mtc-on-solid); }
212
+ .mtc-action.mtc-btn-primary:hover:not(:disabled) { background: var(--mtc-solid-hover); border-color: var(--mtc-solid-hover); }
213
+ .mtc-action.mtc-btn-deny { color: var(--mtc-danger); }
214
+
215
+ .mtc-pop { position: fixed; z-index: 100000; width: 340px; max-width: calc(100vw - 24px); max-height: min(70vh, 560px); overflow: auto; padding: 12px; border: 1px solid var(--mtc-border-strong); border-radius: var(--mtc-radius-lg); background: var(--mtc-pop-bg); color: var(--mtc-text); box-shadow: var(--mtc-shadow-pop); font-family: var(--mtc-font); font-size: var(--mtc-fs-md); display: flex; flex-direction: column; gap: 10px; }
216
+ .mtc-pop-title { font-size: var(--mtc-fs-lg); font-weight: 600; }
217
+ .mtc-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--mtc-fs-sm); color: var(--mtc-text-2); }
218
+ .mtc-field > span:first-child { font-weight: 500; }
219
+ .mtc-field input[type="password"], .mtc-field input[type="number"], .mtc-field textarea, .mtc-session-search { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--mtc-border-input); border-radius: var(--mtc-radius-md); background: var(--mtc-surface-1); color: var(--mtc-text); font: var(--mtc-fs-md)/1.4 var(--mtc-font); outline: none; }
220
+ .mtc-field input:focus, .mtc-field textarea:focus, .mtc-session-search:focus { border-color: var(--mtc-focus); }
221
+ .mtc-field textarea { resize: vertical; min-height: 56px; }
222
+ .mtc-field-row input[type="number"] { width: 90px; }
223
+ .mtc-field-note { font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); }
224
+ .mtc-pop-actions { display: flex; flex-wrap: wrap; gap: 6px; }
225
+ .mtc-pop-note { font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); line-height: 1.45; min-height: 0; }
226
+ .mtc-pop-note.error, .mtc-settings-notice.error { color: var(--mtc-danger); }
227
+ .mtc-settings-notice.ok { color: var(--mtc-success); }
228
+ .mtc-settings-notice:empty { display: none; }
229
+ .mtc-pop-links { display: flex; flex-direction: column; gap: 4px; }
230
+ .mtc-session-list { display: flex; flex-direction: column; gap: 2px; }
231
+ .mtc-session-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--mtc-radius-md); cursor: pointer; }
232
+ .mtc-session-row:hover, .mtc-session-row.active { background: var(--mtc-surface-2); }
233
+ .mtc-session-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
234
+ .mtc-session-meta { font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); white-space: nowrap; }
235
+ .mtc-session-delete { font-size: var(--mtc-fs-lg); }
236
+
237
+ .mtc-session-pill .term-minimized-pill-icon { color: var(--mtc-brand); display: inline-flex; }
238
+ .mtc-session-pill .term-minimized-pill-icon svg { width: 12px; height: 13px; }
239
+ .mtc-session-pill.mtc-pill-running .term-minimized-pill-icon { animation: mtc-working 1.6s ease-in-out infinite; }
240
+
241
+ /* Parity states use the existing shell, tray geometry and semantic palette. */
242
+ .mtc-panel .mtc-input:focus-visible { outline: none; }
243
+ .mtc-panel :is(button, summary), .mtc-pop button { transition: background var(--mtc-dur-fast), color var(--mtc-dur-fast), opacity var(--mtc-dur-fast), transform var(--mtc-dur-fast); }
244
+ .mtc-panel button:active:not(:disabled), .mtc-pop button:active:not(:disabled) { transform: translateY(1px); }
245
+ .mtc-icon-btn:disabled { opacity: .4; cursor: default; }
246
+ .mtc-messages-container::before, .mtc-messages-container::after { content: ''; position: absolute; left: 0; right: 0; height: 16px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity var(--mtc-dur-fast); }
247
+ .mtc-messages-container::before { top: 0; background: linear-gradient(var(--mtc-shell), transparent); }
248
+ .mtc-messages-container::after { bottom: 0; background: linear-gradient(transparent, var(--mtc-shell)); }
249
+ .mtc-messages-container.mtc-scroll-top::before, .mtc-messages-container.mtc-scroll-bottom::after { opacity: 1; }
250
+ .mtc-stream-cursor { display: inline-block; width: 2px; height: 1em; background: var(--mtc-text-2); animation: mtc-working 1s ease-in-out infinite; }
251
+ .mtc-thought.thinking summary { color: var(--mtc-text-2); text-shadow: 0 0 12px var(--mtc-text-off); animation: mtc-working 1.6s ease-in-out infinite; }
252
+ .mtc-thought.thinking { border-left: 1px solid var(--mtc-border-strong); padding-left: var(--mtc-space-2); }
253
+ .mtc-msg-user:hover .mtc-turn-actions, .mtc-msg-user:focus-within .mtc-turn-actions { opacity: 1; }
254
+ .mtc-msg-user .mtc-turn-actions { justify-content: flex-end; }
255
+ .mtc-usage-chip, .mtc-cost-pill { display: inline-flex; align-items: center; padding: 1px 5px; border-radius: var(--mtc-radius-sm); background: var(--mtc-surface-1); color: var(--mtc-text-3); font: var(--mtc-fs-xs)/1.5 var(--mtc-mono); }
256
+ .mtc-cost-pill { color: var(--mtc-text-2); border: 1px solid var(--mtc-border); }
257
+ .mtc-system.error { align-self: stretch; max-width: none; margin: var(--mtc-space-1) 0; padding: var(--mtc-space-2); border: 1px solid color-mix(in srgb, var(--mtc-danger) 35%, transparent); border-radius: var(--mtc-radius-md); background: color-mix(in srgb, var(--mtc-danger) 6%, transparent); text-align: left; }
258
+ .mtc-banner { display: flex; gap: var(--mtc-space-2); align-items: flex-start; white-space: pre-wrap; }
259
+ .mtc-banner > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
260
+ .mtc-banner.error { box-shadow: inset 2px 0 0 var(--mtc-danger); }
261
+ .mtc-banner.ok { color: var(--mtc-success); }
262
+ .mtc-input-wrap { position: relative; margin: 2px 8px; border-radius: var(--mtc-radius-lg); padding: 1px; background: var(--mtc-border-input); min-width: 0; transition: background var(--mtc-dur-fast), box-shadow var(--mtc-dur-fast); }
263
+ .mtc-input-shell { position: relative; border: none; border-radius: calc(var(--mtc-radius-lg) - 1px); background: var(--mtc-pop-bg); }
264
+ .mtc-input-wrap:focus-within { background: var(--mtc-focus); box-shadow: 0 0 0 1px var(--mtc-focus); }
265
+ .mtc-staged { display: flex; flex-wrap: wrap; gap: var(--mtc-space-1); max-height: 96px; overflow-y: auto; }
266
+ .mtc-attachment { display: inline-flex; align-items: center; gap: var(--mtc-space-1); max-width: 100%; min-width: 0; padding: 2px 6px; background: var(--mtc-surface-2); border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-md); font-size: var(--mtc-fs-sm); }
267
+ .mtc-attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
268
+ .mtc-attachment-size { color: var(--mtc-text-3); white-space: nowrap; font-family: var(--mtc-mono); }
269
+ .mtc-attach svg { width: 16px; height: 16px; }
270
+ .mtc-composer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--mtc-space-2); padding: 0 10px 2px; color: var(--mtc-text-3); font-size: var(--mtc-fs-xs); }
271
+ .mtc-edit-notice { display: flex; align-items: center; gap: var(--mtc-space-2); color: var(--mtc-text-2); font-size: var(--mtc-fs-sm); }
272
+ .mtc-edit-notice > span { flex: 1; }
273
+ .mtc-hints { max-height: 180px; overflow-y: auto; padding: var(--mtc-space-1); border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-md); background: var(--mtc-pop-bg); }
274
+ .mtc-hint { display: flex; align-items: baseline; gap: var(--mtc-space-2); width: 100%; padding: 5px 8px; border: none; border-radius: var(--mtc-radius-sm); color: var(--mtc-text-2); background: transparent; font: var(--mtc-fs-sm)/1.4 var(--mtc-font); text-align: left; cursor: pointer; }
275
+ .mtc-hint > span:first-child { font-family: var(--mtc-mono); color: var(--mtc-text); }
276
+ .mtc-hint.active, .mtc-hint:hover { background: var(--mtc-surface-2); }
277
+ .mtc-session-filter { display: flex; align-items: center; gap: var(--mtc-space-1); color: var(--mtc-text-2); font-size: var(--mtc-fs-sm); }
278
+ .mtc-session-row { grid-template-columns: minmax(0, 1fr) auto; }
279
+ .mtc-session-title { grid-column: 1; }
280
+ .mtc-session-meta { grid-column: 1; grid-row: 2; overflow: hidden; text-overflow: ellipsis; }
281
+ .mtc-session-delete { grid-column: 2; grid-row: 1 / 3; }
282
+ .mtc-delete-confirm { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: var(--mtc-space-1); color: var(--mtc-text-2); font-size: var(--mtc-fs-sm); }
283
+ .mtc-dragging .mtc-input-wrap { outline: 2px solid var(--mtc-focus); outline-offset: 2px; }
284
+ .mtc-dragging .mtc-input-wrap::after { content: attr(data-drop-label); position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; border-radius: inherit; background: var(--mtc-pop-bg); color: var(--mtc-text); font-size: var(--mtc-fs-md); }
285
+
286
+ /* OpenCode's compositor ring pattern: rotate a square under a masked hairline. */
287
+ .mtc-pill-ring, .mtc-composer-ring { position: absolute; inset: 0; display: none; border-radius: inherit; padding: 1px; overflow: hidden; pointer-events: none; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
288
+ .mtc-pill-ring > i, .mtc-composer-ring > i { position: absolute; left: 50%; top: 50%; width: calc(100% + 64px); aspect-ratio: 1; translate: -50% -50%; background: conic-gradient(transparent, var(--mtc-text-2), var(--mtc-text-off), var(--mtc-text-2), transparent); animation: mtc-ring-turn 2.4s linear infinite; }
289
+ .mtc-session-pill { position: relative; overflow: hidden; }
290
+ .mtc-session-pill.mtc-pill-running { border-color: var(--mtc-border-strong); }
291
+ .mtc-pill-running .mtc-pill-ring { display: block; }
292
+ /* The composer's ring in Sabiá green (--mtc-brand), as the Claude panel's gold .cp-spin-ring and the
293
+ Assistant's: a size container whose square (142cqmax + 4px) covers the box's diagonal at any shape,
294
+ faded in on focus (slow turn) and while a reply streams (faster, brighter). Reduced motion (below)
295
+ stops the turn; the ring stays as a still hairline. */
296
+ .mtc-composer-ring { z-index: 1; display: block; container-type: size; opacity: 0; transition: opacity 0.4s; }
297
+ .mtc-composer-ring > i { width: calc(142cqmax + 4px); animation: none; background: conic-gradient(transparent 0%, color-mix(in srgb, var(--mtc-brand) 38%, transparent) 25%, color-mix(in srgb, var(--mtc-brand) 10%, transparent) 50%, color-mix(in srgb, var(--mtc-brand) 38%, transparent) 75%, transparent 100%); }
298
+ .mtc-input-wrap:focus-within > .mtc-composer-ring, .mtc-streaming .mtc-composer-ring { opacity: 1; }
299
+ .mtc-input-wrap:focus-within > .mtc-composer-ring > i { animation: mtc-ring-turn 3s linear infinite; }
300
+ .mtc-streaming .mtc-composer-ring > i { animation: mtc-ring-turn 1.8s linear infinite; background: conic-gradient(transparent 0%, color-mix(in srgb, var(--mtc-brand) 75%, transparent) 25%, color-mix(in srgb, var(--mtc-brand) 15%, transparent) 50%, color-mix(in srgb, var(--mtc-brand) 75%, transparent) 75%, transparent 100%); }
301
+ @keyframes mtc-ring-turn { to { rotate: 360deg; } }
302
+
303
+
304
+ /* ── Footer toggles (the Codex panel's): flat uppercase labels, an underline when on ── */
305
+ .mtc-toolbar-toggle { position: relative; display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; padding: 4px 6px 6px; border: none; background: transparent; color: var(--mtc-text-3); font: 600 var(--mtc-fs-xs)/1 var(--mtc-font); text-transform: uppercase; cursor: pointer; transition: color var(--mtc-dur-fast); }
306
+ .mtc-toolbar-toggle > svg { width: var(--mtc-space-3); height: var(--mtc-space-3); flex-shrink: 0; }
307
+ .mtc-toolbar-toggle::after { content: ''; position: absolute; bottom: 0; left: 25%; right: 25%; height: 1.5px; background: var(--mtc-text-3); transform: scaleX(0); transition: transform var(--mtc-dur) var(--mtc-ease), background var(--mtc-dur-fast); }
308
+ .mtc-toolbar-toggle:hover:not(:disabled) { color: var(--mtc-text-2); }
309
+ .mtc-toolbar-toggle:hover:not(:disabled)::after { transform: scaleX(1); }
310
+ .mtc-toolbar-toggle:disabled { opacity: 0.4; cursor: not-allowed; }
311
+ .mtc-toolbar-toggle:disabled::after { transform: scaleX(0); }
312
+ .mtc-toolbar-toggle .mtc-btn-label { font-size: var(--mtc-fs-xs); }
313
+ .mtc-plan-toggle.active { color: var(--mtc-text); }
314
+ .mtc-plan-toggle.active::after { transform: scaleX(1); background: var(--mtc-text); }
315
+ /* Effort: the level reads from the lit dots and the underline's length (Off, Low, Medium, High). */
316
+ .mtc-effort-wrap { position: relative; display: flex; align-items: center; }
317
+ .mtc-effort-dots { display: flex; align-items: center; gap: 2px; margin-left: 2px; }
318
+ .mtc-effort-dots i { display: block; width: 3px; height: 3px; border-radius: var(--mtc-radius-pill); background: currentColor; opacity: 0.25; transition: opacity var(--mtc-dur); }
319
+ .mtc-effort-dots i.lit { opacity: 1; }
320
+ .mtc-effort-toggle[data-effort="unsupported"] .mtc-effort-dots { display: none; }
321
+ .mtc-effort-toggle[data-effort="low"]::after { transform: scaleX(0.4); }
322
+ .mtc-effort-toggle[data-effort="medium"] { color: var(--mtc-text-2); }
323
+ .mtc-effort-toggle[data-effort="medium"]::after { transform: scaleX(0.7); }
324
+ .mtc-effort-toggle[data-effort="high"] { color: var(--mtc-text); }
325
+ .mtc-effort-toggle[data-effort="high"]::after { transform: scaleX(1); background: var(--mtc-text-2); }
326
+ .mtc-effort-toggle[aria-expanded="true"] { color: var(--mtc-text); }
327
+ .mtc-effort-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 45; width: 240px; max-height: 300px; overflow-y: auto; padding: 5px; border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-md); background: var(--mtc-pop-bg); box-shadow: var(--mtc-shadow-pop); }
328
+ .mtc-effort-menu-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 7px 8px; border: 0; border-radius: var(--mtc-radius-sm); background: transparent; color: var(--mtc-text-2); font-family: var(--mtc-font); text-align: left; cursor: pointer; }
329
+ .mtc-effort-menu-item:hover, .mtc-effort-menu-item:focus-visible { background: var(--mtc-surface-1); }
330
+ .mtc-effort-menu-item.selected { background: var(--mtc-surface-2); color: var(--mtc-text); }
331
+ .mtc-effort-menu-label { font-size: var(--mtc-fs-sm); font-weight: 600; }
332
+ .mtc-effort-menu-desc { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--mtc-fs-xs); color: var(--mtc-text-3); }
333
+ .mtc-effort-menu-empty { padding: 7px 8px; font-size: var(--mtc-fs-sm); color: var(--mtc-text-3); }
334
+ /* A narrow footer keeps the icons and the dots; the words go first. */
335
+ @container mtc-footer (width < 340px) {
336
+ .mtc-toolbar-toggle .mtc-btn-label, .mtc-status-line { display: none; }
337
+ .mtc-footer .cc-dropdown, .mtc-footer .cc-dropdown-trigger { max-width: 120px; }
338
+ }
339
+
340
+ /* ── Context settings popover (the sibling panels' grammar: 28px heads and rows, hairlines between sections) ── */
341
+ .mtc-pop.mtc-ctxpop { display: block; gap: 0; width: 300px; padding: 12px; border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-md); font: 400 var(--mtc-fs-sm)/16px var(--mtc-font); font-variant-numeric: tabular-nums; outline: none; }
342
+ .mtc-ctxpop-section + .mtc-ctxpop-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--mtc-border); }
343
+ .mtc-ctxpop-head, .mtc-ctxpop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 28px; }
344
+ .mtc-ctxpop-head { margin-bottom: 4px; }
345
+ .mtc-ctxpop-title { flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 var(--mtc-fs-sm)/16px var(--mtc-font); color: var(--mtc-text); }
346
+ .mtc-ctxpop-bar { height: 4px; margin: 8px 0; overflow: hidden; border-radius: var(--mtc-radius-sm); background: var(--mtc-surface-2); }
347
+ .mtc-ctxpop-fill { height: 100%; border-radius: var(--mtc-radius-sm); background: var(--mtc-text-3); transition: width var(--mtc-dur) var(--mtc-ease); }
348
+ .mtc-ctxpop-fill.mtc-ctxpop-high { background: var(--mtc-pressure-high); }
349
+ .mtc-ctxpop-fill.mtc-ctxpop-critical { background: var(--mtc-pressure-critical); }
350
+ .mtc-ctxpop-usage { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 20px; margin-bottom: 4px; }
351
+ .mtc-ctxpop-used { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
352
+ .mtc-ctxpop-share { flex-shrink: 0; }
353
+ .mtc-ctxpop-k { flex: 0 0 auto; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mtc-text-2); }
354
+ .mtc-ctxpop-v { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; color: var(--mtc-text); }
355
+ .mtc-ctxpop-muted { color: var(--mtc-text-3); }
356
+ .mtc-ctxpop-status { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
357
+ .mtc-ctxpop-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: var(--mtc-radius-pill); background: var(--mtc-text-off); }
358
+ .mtc-ctxpop-dot-ok { background: var(--mtc-success); }
359
+ .mtc-ctxpop-dot-warn { background: var(--mtc-warning); }
360
+ .mtc-ctxpop-dot-err { background: var(--mtc-danger); }
361
+ .mtc-ctxpop-link, .mtc-ctxpop-copy { height: 20px; padding: 0; border: none; background: none; font: 400 var(--mtc-fs-sm)/20px var(--mtc-font); text-decoration: none; cursor: pointer; }
362
+ .mtc-ctxpop-link { flex: 0 0 auto; color: var(--mtc-link); }
363
+ .mtc-ctxpop-link:hover { filter: brightness(1.2); }
364
+ .mtc-ctxpop-copy { color: var(--mtc-text); font-family: var(--mtc-mono); }
365
+ .mtc-ctxpop-copy:hover, .mtc-ctxpop-copy.mtc-ctxpop-copied { color: var(--mtc-link); }
366
+
367
+ /* ── Plan mode: the chip on plan replies and the review card (the Codex panel's post-plan card) ── */
368
+ .mtc-plan-chip { display: inline-flex; align-items: center; padding: 1px 5px; border: 1px solid var(--mtc-border-strong); border-radius: var(--mtc-radius-sm); color: var(--mtc-text-2); font: 600 var(--mtc-fs-xs)/1.5 var(--mtc-font); text-transform: uppercase; }
369
+ .mtc-plan-msg { flex-shrink: 0; padding: 0 var(--mtc-space-2) var(--mtc-space-3); }
370
+ .mtc-plan-card { display: grid; gap: var(--mtc-space-4); min-width: 0; padding: var(--mtc-space-3) var(--mtc-space-4); border: 1px solid var(--mtc-border-strong); border-radius: var(--mtc-radius-md); transition: opacity var(--mtc-dur-fast) ease; }
371
+ .mtc-plan-card.is-busy { opacity: 0.72; }
372
+ .mtc-plan-header { font-size: var(--mtc-fs-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mtc-text-3); }
373
+ .mtc-plan-note { margin-top: calc(var(--mtc-space-3) * -1); font-size: var(--mtc-fs-md); line-height: 1.5; color: var(--mtc-text-2); }
374
+ .mtc-plan-decision { display: grid; }
375
+ .mtc-plan-decision .mtc-request-btn { width: 100%; min-height: 36px; justify-content: center; }
376
+ .mtc-plan-feedback-group { display: grid; gap: var(--mtc-space-2); min-width: 0; }
377
+ .mtc-plan-feedback-label { color: var(--mtc-text-2); font: 500 var(--mtc-fs-md)/1.5 var(--mtc-font); }
378
+ .mtc-plan-feedback { width: 100%; min-height: 56px; max-height: 132px; box-sizing: border-box; resize: none; overflow-y: auto; padding: var(--mtc-space-2) var(--mtc-space-3); border: 1px solid var(--mtc-border-input); border-radius: var(--mtc-radius-sm); background: transparent; color: var(--mtc-text); font: 400 var(--mtc-fs-md)/1.5 var(--mtc-font); transition: border-color var(--mtc-dur-fast) ease; }
379
+ .mtc-plan-feedback:hover:not(:disabled), .mtc-plan-feedback:focus-visible { border-color: var(--mtc-text-3); }
380
+ .mtc-plan-feedback:disabled { opacity: 0.6; }
381
+ .mtc-plan-feedback-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--mtc-space-2); }
382
+ .mtc-plan-feedback-hint { min-width: 0; color: var(--mtc-text-3); font: 400 var(--mtc-fs-sm)/1.5 var(--mtc-font); }
383
+ .mtc-plan-utilities { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--mtc-space-2); }
384
+ .mtc-plan-utilities .mtc-request-btn.secondary { border-color: transparent; color: var(--mtc-text-2); font-weight: 500; }
385
+ .mtc-plan-utilities .mtc-request-btn.secondary:hover:not(:disabled) { border-color: transparent; background: var(--mtc-surface-2); color: var(--mtc-text); }
386
+
387
+ /* ── Buttons of the dialog and the plan card: solid for the one primary action, hairline for the rest ── */
388
+ .mtc-request-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 30px; padding: 5px var(--mtc-space-3); border: 1px solid transparent; border-radius: var(--mtc-radius-md); background: var(--mtc-solid); color: var(--mtc-on-solid); font: 600 var(--mtc-fs-md)/1.5 var(--mtc-font); cursor: pointer; transition: background var(--mtc-dur-fast), border-color var(--mtc-dur-fast), color var(--mtc-dur-fast); }
389
+ .mtc-request-btn:hover:not(:disabled) { background: var(--mtc-solid-hover); }
390
+ .mtc-request-btn.secondary, .mtc-request-btn.danger { border-color: var(--mtc-border-strong); background: transparent; color: var(--mtc-text); }
391
+ .mtc-request-btn.danger { color: var(--mtc-danger); }
392
+ .mtc-request-btn.secondary:hover:not(:disabled), .mtc-request-btn.danger:hover:not(:disabled) { background: var(--mtc-surface-1); border-color: var(--mtc-border-input); }
393
+ .mtc-request-btn:disabled { opacity: 0.45; cursor: not-allowed; }
394
+
395
+ /* ── Settings: a dialog inside the panel (the Codex panel's settings overlay) ── */
396
+ .mtc-settings-overlay { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding-top: var(--mtc-space-5); border-radius: var(--mtc-radius-shell); background: var(--mtc-scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: mtc-fade-in var(--mtc-dur-fast) ease; }
397
+ @keyframes mtc-fade-in { from { opacity: 0; } to { opacity: 1; } }
398
+ .mtc-settings-panel { display: flex; flex-direction: column; width: 92%; max-height: calc(100% - 48px); overflow: hidden; border: 1px solid var(--mtc-border); border-radius: var(--mtc-radius-lg); background: var(--mtc-pop-bg); box-shadow: var(--mtc-shadow-pop); color: var(--mtc-text); font-family: var(--mtc-font); }
399
+ .mtc-settings-header { display: flex; align-items: center; justify-content: space-between; gap: var(--mtc-space-2); padding: 14px 16px 12px; border-bottom: 1px solid var(--mtc-border); font-size: var(--mtc-fs-lg); font-weight: 600; }
400
+ .mtc-settings-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
401
+ .mtc-settings-close { min-width: 24px; min-height: 24px; padding: 2px 4px; border: none; border-radius: var(--mtc-radius-sm); background: none; color: var(--mtc-text-3); font-size: var(--mtc-fs-lg); line-height: 1; cursor: pointer; }
402
+ .mtc-settings-close:hover { color: var(--mtc-text); background: var(--mtc-surface-2); }
403
+ .mtc-settings-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 16px 8px; scrollbar-width: thin; scrollbar-color: var(--mtc-border-strong) transparent; }
404
+ .mtc-settings-section { display: grid; gap: var(--mtc-space-2); padding: 12px 0; border-bottom: 1px solid var(--mtc-border); }
405
+ .mtc-settings-section:last-child { border-bottom: none; }
406
+ .mtc-settings-section-title { margin: 0; font-size: var(--mtc-fs-xs); font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--mtc-text-3); }
407
+ .mtc-settings-status { display: flex; align-items: center; gap: 6px; font-size: var(--mtc-fs-sm); color: var(--mtc-text-2); }
408
+ .mtc-settings-actions { display: flex; flex-wrap: wrap; gap: var(--mtc-space-2); }
409
+ .mtc-settings-hint { font-size: var(--mtc-fs-xs); line-height: 1.5; color: var(--mtc-text-3); overflow-wrap: anywhere; }
410
+ .mtc-settings-links { display: flex; flex-wrap: wrap; gap: var(--mtc-space-3); }
411
+ .mtc-settings-notice:empty, .mtc-settings-result:empty { display: none; }
412
+ .mtc-settings-notice, .mtc-settings-result { font-size: var(--mtc-fs-sm); line-height: 1.45; color: var(--mtc-text-2); }
413
+ .mtc-settings-notice[data-tone="ok"], .mtc-settings-result[data-tone="ok"] { color: var(--mtc-success); }
414
+ .mtc-settings-notice[data-tone="error"], .mtc-settings-result[data-tone="error"] { color: var(--mtc-danger); }
415
+ .mtc-settings-footer { display: flex; align-items: center; justify-content: flex-end; gap: var(--mtc-space-2); padding: 10px 16px 12px; border-top: 1px solid var(--mtc-border); }
416
+ .mtc-settings-footer .mtc-settings-result { flex: 1 1 auto; min-width: 0; margin-right: auto; }
417
+ .mtc-config-row { display: flex; align-items: center; gap: var(--mtc-space-3); min-height: 30px; }
418
+ .mtc-config-stack { display: grid; gap: 6px; }
419
+ .mtc-config-label { flex: 0 0 104px; font-size: var(--mtc-fs-sm); color: var(--mtc-text-2); }
420
+ .mtc-config-control { flex: 1 1 auto; min-width: 0; }
421
+ .mtc-config-control .cc-dropdown, .mtc-config-control .cc-dropdown-trigger { width: 100%; max-width: none; box-sizing: border-box; }
422
+ .mtc-config-control .cc-dropdown-trigger { min-height: 28px; font-size: var(--mtc-fs-sm); }
423
+ .mtc-config-control .cc-dropdown-menu { max-height: 260px; overflow-y: auto; }
424
+ .mtc-config-input { width: 100%; box-sizing: border-box; min-height: 28px; padding: 5px 8px; border: 1px solid var(--mtc-border-input); border-radius: var(--mtc-radius-sm); background: transparent; color: var(--mtc-text); font: 400 var(--mtc-fs-md)/1.45 var(--mtc-font); outline: none; transition: border-color var(--mtc-dur-fast); }
425
+ .mtc-config-input:hover { border-color: var(--mtc-text-3); }
426
+ .mtc-config-input:focus-visible { border-color: var(--mtc-text-2); outline: 2px solid var(--mtc-focus); outline-offset: 1px; }
427
+ textarea.mtc-config-input { min-height: 84px; resize: vertical; }
428
+ input.mtc-config-input[type="number"] { max-width: 120px; }
429
+ @container mtc-header (width < 300px) { .mtc-header-rename { display: none; } }
430
+ body.ui-interacting :is(.mtc-thought.thinking summary, .mtc-stream-cursor, .mtc-dot, .mtc-pill-ring > i, .mtc-composer-ring > i, .mtc-pill-running .term-minimized-pill-icon) { animation-play-state: paused !important; }
431
+ html.sp-resizing .mtc-panel { backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
432
+ @media (prefers-reduced-motion: reduce) {
433
+ .mtc-panel, .mtc-panel *, .mtc-panel *::before, .mtc-panel *::after, .mtc-session-pill, .mtc-session-pill *, .mtc-pop, .mtc-pop * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
434
+ }
435
+ `;
436
+ document.head.appendChild(style);
437
+ }
@@ -35,6 +35,7 @@ import { setSelectOptions, projectOptionRows } from './ocp-v2-select.js';
35
35
  import { replyFailed, replyError } from './ocp-v2-caps.js';
36
36
  import { rehydratePanelSession, recoveredErrorSweep } from './ocp-v2-rehydrate.js';
37
37
  import { headerStatus } from './ocp-v2-render-logic.js';
38
+ import { runTurnLive } from '../sidepanel-session-status.js';
38
39
  import {
39
40
  getState, subscribe, setSession, setServerStatus, setCwd, clearMessages, pushError, clearErrors, setHealing,
40
41
  addAttachedImage, getDefaultStore, setRunning,
@@ -2542,6 +2543,7 @@ export async function attachOpenCodeAutomation(run, { focus = !!run?.focus, isCa
2542
2543
  const previousRunId = _automationRunIds.get(sessionId);
2543
2544
  const restart = workerRestart(run);
2544
2545
  const running = restart.active;
2546
+ const turnLive = runTurnLive(run);
2545
2547
  _workerRestarts.set(sessionId, restart);
2546
2548
  // The user continued this run's session by hand after the run ended: the tab stays theirs.
2547
2549
  const released = !running && previousRunId === run.runId
@@ -2594,10 +2596,12 @@ export async function attachOpenCodeAutomation(run, { focus = !!run?.focus, isCa
2594
2596
  if (!_visible) await showPrimaryOpencodePanel();
2595
2597
  await switchToSession(sessionId, info, { nav });
2596
2598
  } else if (getState().sessionId === sessionId) {
2597
- setRunning(running && !restart.suspended);
2599
+ setRunning(turnLive);
2598
2600
  await rehydrateActiveSession().catch(() => {});
2599
2601
  }
2600
- if (getState().sessionId === sessionId) setRunning(running && !restart.suspended);
2602
+ // The store's `running` (the composer's stop button, the thinking row) follows the run's turn, not the run: a
2603
+ // warm worker between turns rests (its pill says idle: tabPillState), and a run that ended works no more.
2604
+ if (getState().sessionId === sessionId) setRunning(turnLive);
2601
2605
  _renderer?.render();
2602
2606
  // (A dispatched worker's failure, with its reason, is on its end card.)
2603
2607
  if (run.status === 'failed' && run.error && !isDispatchedRun(run) && getState().sessionId === sessionId
@@ -7,6 +7,8 @@ const SVG_OPENAI = '<svg viewBox="0 0 24 24" fill="currentColor"><path d="M9.205
7
7
  // A line drawing: its paths carry fill="none" themselves, because some places fill every icon they hold
8
8
  // (`.resume-provider-icon svg { fill: currentColor }`), which would turn the strokes into a solid triangle.
9
9
  const SVG_ANTIGRAVITY = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.5 20 12 4l7.5 16" fill="none"/><path d="M8.2 20a3.8 3.8 0 0 1 7.6 0" fill="none"/></svg>';
10
+ // Maritaca AI's mark (maritaca.ai favicon.svg, the bird), in currentColor.
11
+ const SVG_MARITACA = '<svg viewBox="0 0 12.48 13.73" fill="currentColor"><path d="M10.11 11.01h1.9S7.21 5.97 5.72 4.4a.62.62 0 0 0-.93.04c-.48.59-.76 1.33-.81 2.1-.06 1.04.32 2.06 1.04 2.8l4.35 4.4h3.1l-2.37-2.72Z"/><path d="M5.69 11 4.52 9.82c-.86-.89-1.31-2.1-1.24-3.33s.67-2.38 1.62-3.16c.35.06.71-.02 1.01-.24-.07-.24-.16-.55-.22-.75-.02-.07.06-.13.12-.09l1.16.77c.3-.61.22-1.37-.26-1.9.1-.18.06-.44-.15-.57C6.07.26 5.36 0 4.41 0 2.76 0 0 1.5 0 5.18c0 2.12 1.36 4.57 3.86 5.47l-1.43 3.08h1.05L4.8 10.9c.29.05.58.09.89.1l-1.27 2.73h1.05l.94-2.01L5.7 11ZM4.84.67c.23 0 .42.19.42.42s-.19.42-.42.42-.42-.19-.42-.42.19-.42.42-.42"/></svg>';
10
12
  const SVG_OPENCODE = '<svg viewBox="0 0 240 300" fill="currentColor"><path fill-rule="evenodd" d="M0 0h240v300H0V0zm60 60v180h120V60H60z"/><rect x="60" y="120" width="120" height="120" opacity=".45"/></svg>';
11
13
  const SVG_SHELL = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>';
12
14
  const SVG_BROWSER = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>';
@@ -18,6 +20,7 @@ const PROVIDER_META = {
18
20
  codex: { id: 'codex', label: 'Codex', shortLabel: 'Codex', icon: SVG_OPENAI, color: '#74C7A5' },
19
21
  opencode: { id: 'opencode', label: 'OpenCode', shortLabel: 'OpenCode', icon: SVG_OPENCODE, color: '#E8E0DC' },
20
22
  antigravity: { id: 'antigravity', label: 'Antigravity', shortLabel: 'Antigravity', icon: SVG_ANTIGRAVITY, color: '#669DF6' },
23
+ maritaca: { id: 'maritaca', label: 'Maritaca', shortLabel: 'Maritaca', icon: SVG_MARITACA, color: '#70d44b' },
21
24
  synabun: { id: 'synabun', label: 'SynaBun', shortLabel: 'SynaBun', icon: SVG_SYNABUN, color: '#FFD23C' },
22
25
  shell: { id: 'shell', label: 'Shell', shortLabel: 'Shell', icon: SVG_SHELL, color: '#AAAAAA' },
23
26
  browser: { id: 'browser', label: 'Browser', shortLabel: 'Browser', icon: SVG_BROWSER, color: '#4FC3F7' },
@@ -73,6 +73,7 @@ export const SCHEDULES_VIEW_COPY = Object.freeze({
73
73
  factMcp: 'Tools and MCP servers',
74
74
  factAccount: 'OpenAI account',
75
75
  factBrowser: 'Browser',
76
+ factMoreLogin: 'MoreLogin profile',
76
77
  valueDefault: 'Default',
77
78
  valueOn: 'On',
78
79
  valueOff: 'Off',
@@ -448,5 +449,11 @@ export function launchFacts(schedule, { group = null, template = null, profiles
448
449
  }
449
450
  const browser = pick('usesBrowser');
450
451
  facts.push({ key: 'usesBrowser', label: scheduleWord('factBrowser'), value: scheduleWord(browser.value === true ? 'valueOn' : 'valueOff'), source: browser.source });
452
+ // The MoreLogin profile the run opens: the schedule's own, else its group's (none: the default of Settings →
453
+ // Browser, which the list does not repeat). An automation has none.
454
+ const moreLoginOwner = schedule?.moreloginEnvId ? schedule : (group?.moreloginEnvId ? group : null);
455
+ if (moreLoginOwner) {
456
+ facts.push({ key: 'moreloginEnvId', label: scheduleWord('factMoreLogin'), value: moreLoginOwner.moreloginEnvName || String(moreLoginOwner.moreloginEnvId), source: moreLoginOwner === schedule ? 'schedule' : 'group' });
457
+ }
451
458
  return facts;
452
459
  }
@@ -0,0 +1,50 @@
1
+ // Waiting for SynaBun's server to come back after a restart it announced (an MCP build in the onboarding wizard, a
2
+ // restore in Settings). DOM-free: the page hands in fetch, the clock and what to do; tests run it under Node.
3
+
4
+ /**
5
+ * "Back" is /api/health answering with another bootId than the one the restart named (or, for a server that sends
6
+ * none, an answer after it was seen gone), never just an answer, because the old server keeps answering while it
7
+ * shuts down. Bounded: true when it came back, false when it did not in time.
8
+ */
9
+ export async function waitForServerBack(oldBootId, {
10
+ timeoutMs = 90_000, everyMs = 1000,
11
+ fetchFn = (...a) => fetch(...a), sleep = (ms) => new Promise(r => setTimeout(r, ms)), now = () => Date.now(),
12
+ } = {}) {
13
+ const until = now() + timeoutMs;
14
+ let seenGone = false;
15
+ while (now() < until) {
16
+ await sleep(everyMs);
17
+ try {
18
+ const res = await fetchFn('/api/health', { cache: 'no-store' });
19
+ if (!res.ok) { seenGone = true; continue; }
20
+ const health = await res.json();
21
+ if (health.restarting) { seenGone = true; continue; }
22
+ if (health.bootId ? health.bootId !== oldBootId : seenGone) return true;
23
+ } catch {
24
+ seenGone = true;
25
+ }
26
+ }
27
+ return false;
28
+ }
29
+
30
+ /**
31
+ * After POST /api/system/restore answered: reload the page. Without a restart, after `delayMs` as always; with one
32
+ * (the restore built a new MCP server and the server restarts to load it), only once a new server answers, since a
33
+ * reload during the restart lands on a server that is going away. Returns 'reloaded' or 'not-back' (then
34
+ * `onNotBack` ran and nothing reloads: the page says so instead).
35
+ */
36
+ export async function reloadAfterRestore(result, {
37
+ reload, onRestarting = () => {}, onNotBack = () => {}, delayMs = 2500,
38
+ wait = waitForServerBack, sleep = (ms) => new Promise(r => setTimeout(r, ms)),
39
+ } = {}) {
40
+ if (!result?.restart) {
41
+ await sleep(delayMs);
42
+ reload();
43
+ return 'reloaded';
44
+ }
45
+ onRestarting();
46
+ const back = await wait(typeof result.bootId === 'string' ? result.bootId : '');
47
+ if (!back) { onNotBack(); return 'not-back'; }
48
+ reload();
49
+ return 'reloaded';
50
+ }