my-durable 0.0.0-stage → 0.0.2

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 (259) hide show
  1. package/.env.example +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +328 -2
  4. package/ai_docs/durable_pi/announcement.md +860 -0
  5. package/ai_docs/durable_pi/changelog.md +51 -0
  6. package/ai_docs/durable_pi/chord-delta-findings.md +362 -0
  7. package/ai_docs/durable_pi/coding-agent-integration.md +70 -0
  8. package/ai_docs/durable_pi/pico-v5-chord-usage.md +391 -0
  9. package/ai_docs/durable_pi/pico-v5-handoff.md +921 -0
  10. package/ai_docs/durable_pi/readme.md +617 -0
  11. package/ai_docs/durable_pi/sources.md +22 -0
  12. package/ai_docs/durable_pi/spec.md +4696 -0
  13. package/ai_docs/durable_pi/vacation-planner.md +57 -0
  14. package/ai_docs/pi/chord.md +268 -0
  15. package/ai_docs/pi/cli-integration.md +110 -0
  16. package/ai_docs/pi/cli.md +325 -0
  17. package/ai_docs/pi/codemode.md +211 -0
  18. package/ai_docs/pi/compaction.md +467 -0
  19. package/ai_docs/pi/configuration.md +51 -0
  20. package/ai_docs/pi/containerization.md +187 -0
  21. package/ai_docs/pi/custom-provider.md +177 -0
  22. package/ai_docs/pi/environment-variables.md +102 -0
  23. package/ai_docs/pi/extensions.md +278 -0
  24. package/ai_docs/pi/how-pi-works.md +53 -0
  25. package/ai_docs/pi/index.md +43 -0
  26. package/ai_docs/pi/json.md +230 -0
  27. package/ai_docs/pi/keybindings.md +198 -0
  28. package/ai_docs/pi/llama-cpp.md +118 -0
  29. package/ai_docs/pi/mcp.md +274 -0
  30. package/ai_docs/pi/message-types.md +265 -0
  31. package/ai_docs/pi/models.md +209 -0
  32. package/ai_docs/pi/overview.md +166 -0
  33. package/ai_docs/pi/packages.md +133 -0
  34. package/ai_docs/pi/pi-agent-core.md +568 -0
  35. package/ai_docs/pi/pi-ai.md +1942 -0
  36. package/ai_docs/pi/prompt-templates.md +63 -0
  37. package/ai_docs/pi/providers.md +204 -0
  38. package/ai_docs/pi/quickstart.md +140 -0
  39. package/ai_docs/pi/readme.md +99 -0
  40. package/ai_docs/pi/rpc-commands.md +864 -0
  41. package/ai_docs/pi/rpc-extension-ui.md +204 -0
  42. package/ai_docs/pi/rpc.md +197 -0
  43. package/ai_docs/pi/sdk.md +151 -0
  44. package/ai_docs/pi/security.md +103 -0
  45. package/ai_docs/pi/session-format.md +297 -0
  46. package/ai_docs/pi/sessions.md +70 -0
  47. package/ai_docs/pi/settings.md +173 -0
  48. package/ai_docs/pi/shell-aliases.md +97 -0
  49. package/ai_docs/pi/skills.md +97 -0
  50. package/ai_docs/pi/slash-commands.md +64 -0
  51. package/ai_docs/pi/sources.md +57 -0
  52. package/ai_docs/pi/terminal-setup.md +223 -0
  53. package/ai_docs/pi/termux.md +121 -0
  54. package/ai_docs/pi/themes.md +140 -0
  55. package/ai_docs/pi/tmux.md +59 -0
  56. package/ai_docs/pi/toolkit.md +168 -0
  57. package/ai_docs/pi/tui.md +129 -0
  58. package/ai_docs/pi/usage.md +98 -0
  59. package/ai_docs/pi/virtual-models.md +118 -0
  60. package/ai_docs/pi/windows.md +71 -0
  61. package/apps/dpi-backend/.nvmrc +1 -0
  62. package/apps/dpi-backend/API.md +99 -0
  63. package/apps/dpi-backend/README.md +119 -0
  64. package/apps/dpi-backend/deploy/backend.env.example +9 -0
  65. package/apps/dpi-backend/deploy/dpi-backend.plist +26 -0
  66. package/apps/dpi-backend/deploy/dpi-backend.service +22 -0
  67. package/apps/dpi-backend/package.json +33 -0
  68. package/apps/dpi-backend/prompts/one_sentence.md +3 -0
  69. package/apps/dpi-backend/prompts/smart_ass_opus_fix.md +169 -0
  70. package/apps/dpi-backend/scripts/check-contract.mjs +151 -0
  71. package/apps/dpi-backend/scripts/migrate-playground.ts +66 -0
  72. package/apps/dpi-backend/scripts/record-nested-fixture.mts +154 -0
  73. package/apps/dpi-backend/scripts/token.ts +57 -0
  74. package/apps/dpi-backend/src/addons.ts +139 -0
  75. package/apps/dpi-backend/src/auth.ts +20 -0
  76. package/apps/dpi-backend/src/config.ts +54 -0
  77. package/apps/dpi-backend/src/contract-check.ts +118 -0
  78. package/apps/dpi-backend/src/errors.ts +50 -0
  79. package/apps/dpi-backend/src/extensions.ts +510 -0
  80. package/apps/dpi-backend/src/faux.ts +80 -0
  81. package/apps/dpi-backend/src/history.ts +165 -0
  82. package/apps/dpi-backend/src/idempotency.ts +20 -0
  83. package/apps/dpi-backend/src/jev.ts +43 -0
  84. package/apps/dpi-backend/src/jobs.ts +790 -0
  85. package/apps/dpi-backend/src/main.ts +76 -0
  86. package/apps/dpi-backend/src/model-catalog.ts +180 -0
  87. package/apps/dpi-backend/src/pairing-files.ts +142 -0
  88. package/apps/dpi-backend/src/pairing.ts +459 -0
  89. package/apps/dpi-backend/src/routes.ts +217 -0
  90. package/apps/dpi-backend/src/shared-state.ts +85 -0
  91. package/apps/dpi-backend/src/store.ts +1240 -0
  92. package/apps/dpi-backend/src/streams.ts +256 -0
  93. package/apps/dpi-backend/src/tunnel.ts +955 -0
  94. package/apps/dpi-backend/tsconfig.json +13 -0
  95. package/apps/dpi-playground/README.md +83 -0
  96. package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/index-CFGc7lHT.js +77 -0
  97. package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/index-DFdKpwm_.css +1 -0
  98. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/anthropic.png +0 -0
  99. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/deepseek.png +0 -0
  100. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/durable-pi.svg +14 -0
  101. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/gemini.png +0 -0
  102. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/grok.png +0 -0
  103. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/kimi.png +0 -0
  104. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/lab.png +0 -0
  105. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/meta.png +0 -0
  106. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/minimax.png +0 -0
  107. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/openai.png +0 -0
  108. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/qwen.png +0 -0
  109. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/xiaomi.png +0 -0
  110. package/apps/dpi-playground/apps/dpi-playground-fe/dist/icons/zai.png +0 -0
  111. package/apps/dpi-playground/apps/dpi-playground-fe/dist/index.html +16 -0
  112. package/apps/dpi-playground/apps/dpi-playground-fe/index.html +15 -0
  113. package/apps/dpi-playground/apps/dpi-playground-fe/package.json +5 -0
  114. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/anthropic.png +0 -0
  115. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/deepseek.png +0 -0
  116. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/durable-pi.svg +14 -0
  117. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/gemini.png +0 -0
  118. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/grok.png +0 -0
  119. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/kimi.png +0 -0
  120. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/lab.png +0 -0
  121. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/meta.png +0 -0
  122. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/minimax.png +0 -0
  123. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/openai.png +0 -0
  124. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/qwen.png +0 -0
  125. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/xiaomi.png +0 -0
  126. package/apps/dpi-playground/apps/dpi-playground-fe/public/icons/zai.png +0 -0
  127. package/apps/dpi-playground/apps/dpi-playground-fe/src/App.vue +180 -0
  128. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/commands.ts +119 -0
  129. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/composables.ts +129 -0
  130. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/hub.ts +40 -0
  131. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/icon-path.ts +7 -0
  132. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/ids.ts +2 -0
  133. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/jobs.ts +80 -0
  134. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/link-policy.ts +16 -0
  135. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/markdown-policy.ts +115 -0
  136. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/markdown.ts +60 -0
  137. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/pair-close.ts +23 -0
  138. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/pair-handoff.ts +56 -0
  139. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/pair.ts +166 -0
  140. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/qrcode.ts +323 -0
  141. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/signature.ts +146 -0
  142. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/store.ts +373 -0
  143. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/stream.ts +183 -0
  144. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/AgentView.vue +342 -0
  145. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/Composer.vue +198 -0
  146. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/ContextBar.vue +254 -0
  147. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/DeviceCredentialsDialog.vue +40 -0
  148. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/DeviceIcon.vue +56 -0
  149. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/DirBrowser.vue +95 -0
  150. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/ExtensionsPanel.vue +96 -0
  151. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/HelpDialog.vue +69 -0
  152. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/Inspector.vue +425 -0
  153. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/JobCard.vue +221 -0
  154. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/MobileNav.vue +39 -0
  155. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/ModelPicker.vue +71 -0
  156. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/NetworkSidebar.vue +236 -0
  157. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/NewSessionDialog.vue +114 -0
  158. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/OfflinePanel.vue +128 -0
  159. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/PairDeviceWizard.vue +433 -0
  160. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/PromptDialog.vue +89 -0
  161. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/StateEditor.vue +179 -0
  162. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TasksPanel.vue +280 -0
  163. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/Toast.vue +11 -0
  164. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TokenManager.vue +175 -0
  165. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TopBar.vue +114 -0
  166. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TranscriptItem.vue +152 -0
  167. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TreeRow.vue +195 -0
  168. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TunnelStatusBar.vue +107 -0
  169. package/apps/dpi-playground/apps/dpi-playground-fe/src/extensions.css +105 -0
  170. package/apps/dpi-playground/apps/dpi-playground-fe/src/jobs.css +655 -0
  171. package/apps/dpi-playground/apps/dpi-playground-fe/src/main.ts +22 -0
  172. package/apps/dpi-playground/apps/dpi-playground-fe/src/network.css +675 -0
  173. package/apps/dpi-playground/apps/dpi-playground-fe/src/style.css +3203 -0
  174. package/apps/dpi-playground/apps/dpi-playground-fe/tsconfig.json +16 -0
  175. package/apps/dpi-playground/apps/dpi-playground-fe/vite.config.ts +14 -0
  176. package/apps/dpi-playground/apps/dpi-playground-hub/package.json +5 -0
  177. package/apps/dpi-playground/apps/dpi-playground-hub/src/audit.ts +406 -0
  178. package/apps/dpi-playground/apps/dpi-playground-hub/src/client-ip.ts +72 -0
  179. package/apps/dpi-playground/apps/dpi-playground-hub/src/credentials.ts +265 -0
  180. package/apps/dpi-playground/apps/dpi-playground-hub/src/guard.ts +43 -0
  181. package/apps/dpi-playground/apps/dpi-playground-hub/src/http-errors.ts +156 -0
  182. package/apps/dpi-playground/apps/dpi-playground-hub/src/identity.ts +60 -0
  183. package/apps/dpi-playground/apps/dpi-playground-hub/src/limiter.ts +165 -0
  184. package/apps/dpi-playground/apps/dpi-playground-hub/src/main.ts +460 -0
  185. package/apps/dpi-playground/apps/dpi-playground-hub/src/monitor.ts +320 -0
  186. package/apps/dpi-playground/apps/dpi-playground-hub/src/mux.ts +277 -0
  187. package/apps/dpi-playground/apps/dpi-playground-hub/src/pairing.ts +816 -0
  188. package/apps/dpi-playground/apps/dpi-playground-hub/src/proxy.ts +128 -0
  189. package/apps/dpi-playground/apps/dpi-playground-hub/src/rotation.ts +583 -0
  190. package/apps/dpi-playground/apps/dpi-playground-hub/src/seed.ts +11 -0
  191. package/apps/dpi-playground/apps/dpi-playground-hub/src/transport.ts +108 -0
  192. package/apps/dpi-playground/apps/dpi-playground-hub/src/tunnel-token.ts +11 -0
  193. package/apps/dpi-playground/apps/dpi-playground-hub/src/tunnel-transport.ts +560 -0
  194. package/apps/dpi-playground/apps/dpi-playground-hub/src/tunnel.ts +873 -0
  195. package/apps/dpi-playground/apps/dpi-playground-hub/tsconfig.json +13 -0
  196. package/apps/dpi-playground/package.json +37 -0
  197. package/apps/dpi-sdk/README.md +74 -0
  198. package/apps/dpi-sdk/package.json +20 -0
  199. package/apps/dpi-sdk/scripts/net.ts +73 -0
  200. package/apps/dpi-sdk/src/api.ts +631 -0
  201. package/apps/dpi-sdk/src/app-state.ts +111 -0
  202. package/apps/dpi-sdk/src/client.ts +330 -0
  203. package/apps/dpi-sdk/src/errors.ts +16 -0
  204. package/apps/dpi-sdk/src/jobs.ts +99 -0
  205. package/apps/dpi-sdk/src/models.ts +472 -0
  206. package/apps/dpi-sdk/src/node/chunk.ts +488 -0
  207. package/apps/dpi-sdk/src/node/config.ts +175 -0
  208. package/apps/dpi-sdk/src/node/drivers.ts +402 -0
  209. package/apps/dpi-sdk/src/node/ops.ts +114 -0
  210. package/apps/dpi-sdk/src/node/private-dir.ts +48 -0
  211. package/apps/dpi-sdk/src/node/registry-migration.ts +549 -0
  212. package/apps/dpi-sdk/src/node/registry.ts +390 -0
  213. package/apps/dpi-sdk/src/node/sse-writer.ts +151 -0
  214. package/apps/dpi-sdk/src/protocol/backoff.ts +31 -0
  215. package/apps/dpi-sdk/src/protocol/limits.ts +199 -0
  216. package/apps/dpi-sdk/src/protocol/pairing.ts +311 -0
  217. package/apps/dpi-sdk/src/protocol/rest-routes.ts +105 -0
  218. package/apps/dpi-sdk/src/protocol/tunnel.ts +331 -0
  219. package/apps/dpi-sdk/src/sse.ts +117 -0
  220. package/apps/dpi-sdk/src/transcript.ts +291 -0
  221. package/apps/dpi-sdk/tsconfig.json +13 -0
  222. package/apps/dpi-sdk/w +20 -0
  223. package/apps/dpi-tui/README.md +54 -0
  224. package/apps/dpi-tui/bin/dpi-tui.mjs +5 -0
  225. package/apps/dpi-tui/package.json +20 -0
  226. package/apps/dpi-tui/src/app.ts +433 -0
  227. package/apps/dpi-tui/src/commands.ts +151 -0
  228. package/apps/dpi-tui/src/main.ts +122 -0
  229. package/apps/dpi-tui/src/pairing.ts +287 -0
  230. package/apps/dpi-tui/src/pickers.ts +238 -0
  231. package/apps/dpi-tui/src/render.ts +164 -0
  232. package/apps/dpi-tui/src/theme.ts +57 -0
  233. package/apps/dpi-tui/tsconfig.json +14 -0
  234. package/bin/device.mjs +5 -0
  235. package/bin/hub.mjs +5 -0
  236. package/bin/tui.mjs +5 -0
  237. package/deploy/Caddyfile +120 -0
  238. package/docs/verification.md +102 -0
  239. package/dpi-network.example.yaml +62 -0
  240. package/images/01_durable_agent_network.svg +185 -0
  241. package/images/02_pi_made_durable.svg +204 -0
  242. package/images/03_restart_mid_tool.svg +168 -0
  243. package/images/07_one_api_every_client.svg +123 -0
  244. package/images/08_device_session_agent.svg +123 -0
  245. package/images/09_compact_keep_history.svg +143 -0
  246. package/images/10_shared_app_state.svg +177 -0
  247. package/images/11_durable_jobs_wait.svg +141 -0
  248. package/images/12_tools_change_mid_run.svg +231 -0
  249. package/images/13_hook_blocks_tool.svg +122 -0
  250. package/images/14_fork_at_any_entry.svg +119 -0
  251. package/images/15_web_client.png +0 -0
  252. package/images/16_terminal_client.svg +43 -0
  253. package/images/17_devices_are_data.svg +182 -0
  254. package/images/18_should_every_agent_be_durable.svg +118 -0
  255. package/images/19_sqlite_on_every_device.svg +155 -0
  256. package/images/20_admission_and_effects.svg +134 -0
  257. package/justfile +33 -0
  258. package/package.json +41 -4
  259. package/scripts/verify.mjs +210 -0
@@ -0,0 +1,3203 @@
1
+ @import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&family=IBM+Plex+Mono:wght@400;500&display=swap");
2
+ :root {
3
+ font-family: var(--font-body);
4
+ color: var(--fg);
5
+ background: var(--bg);
6
+ font-synthesis: none;
7
+ font-size: 16px;
8
+ /* Brand design tokens (presentation layer).
9
+ Palette per the UI brand spec — NEVER self-referential
10
+ (a token defined in terms of itself is a cycle that collapses to unset;
11
+ guarded by fe-shell-empty.test.ts).
12
+ Additive: existing --secondary/--muted/--line/--accent/--surface/--font-title stay. */
13
+ --bg: #151010;
14
+ --tree: #181213;
15
+ --chat: #161011;
16
+ --panel: #1c1516;
17
+ --card: #251a1b;
18
+ --line-soft: #2a2021;
19
+ --fg: #f2eeee;
20
+ --faint: #8d7778;
21
+ --primary: #b9283c;
22
+ --primary-line: #df5363;
23
+ --primary-hover: #cf354a;
24
+ --on-primary: #ffffff;
25
+ --ok: #6fcf97;
26
+ --warn: #f2c94c;
27
+ --err: #ff6b6b;
28
+ --offline: #5a4a4b;
29
+ /* Fonts: the three brand families, via the Google Fonts @import above with
30
+ system fallbacks. Webfont files are not bundled locally. */
31
+ --font-body: "DM Sans", "Segoe UI", sans-serif;
32
+ --font-display: "Manrope", "Segoe UI", sans-serif;
33
+ --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
34
+ --topbar-h: 65px;
35
+ --tree-w: 300px;
36
+ --insp-w: 450px;
37
+ --radius: 10px;
38
+ --radius-sm: 6px;
39
+ --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
40
+ --secondary: #c9a87c;
41
+ --muted: var(--secondary);
42
+ --line: #332829;
43
+ --accent: #ff8997;
44
+ --surface: #1e1718;
45
+ --font-title: var(--font-display);
46
+ }
47
+ * {
48
+ box-sizing: border-box;
49
+ }
50
+ body {
51
+ margin: 0;
52
+ }
53
+ button,
54
+ input,
55
+ textarea,
56
+ select {
57
+ font: inherit;
58
+ }
59
+ button {
60
+ cursor: pointer;
61
+ }
62
+ button,
63
+ a,
64
+ input,
65
+ textarea,
66
+ select {
67
+ -webkit-tap-highlight-color: transparent;
68
+ }
69
+ button {
70
+ display: inline-flex;
71
+ align-items: center;
72
+ justify-content: center;
73
+ gap: 7px;
74
+ background: none;
75
+ color: inherit;
76
+ border: 0;
77
+ }
78
+ button:disabled {
79
+ opacity: 0.8;
80
+ cursor: not-allowed;
81
+ }
82
+ button:not(:disabled):hover {
83
+ filter: brightness(1.13);
84
+ }
85
+ button:focus-visible,
86
+ summary:focus-visible {
87
+ outline: 2px solid var(--accent);
88
+ outline-offset: 3px;
89
+ }
90
+ input,
91
+ textarea,
92
+ select {
93
+ color: inherit;
94
+ background: var(--chat);
95
+ border: 1px solid var(--line);
96
+ border-radius: 7px;
97
+ padding: 10px 12px;
98
+ outline: none;
99
+ min-width: 0;
100
+ }
101
+ input:focus,
102
+ textarea:focus,
103
+ select:focus {
104
+ border-color: #856669;
105
+ box-shadow: 0 0 0 2px #cdadb00c;
106
+ }
107
+ input::placeholder,
108
+ textarea::placeholder {
109
+ color: var(--fg);
110
+ }
111
+ textarea {
112
+ resize: vertical;
113
+ line-height: 1.6;
114
+ }
115
+ select {
116
+ color-scheme: dark;
117
+ cursor: pointer;
118
+ }
119
+ h1,
120
+ h2,
121
+ h3,
122
+ p {
123
+ margin: 0;
124
+ }
125
+ h1,
126
+ h2,
127
+ h3 {
128
+ font-family: var(--font-title);
129
+ }
130
+ h2 {
131
+ font-size: 16px;
132
+ font-weight: 650;
133
+ }
134
+ pre,
135
+ code {
136
+ font-family: var(--font-mono);
137
+ }
138
+ pre {
139
+ font-size: 16px;
140
+ line-height: 1.7;
141
+ white-space: pre-wrap;
142
+ overflow-wrap: anywhere;
143
+ }
144
+ small {
145
+ font-size: 16px;
146
+ }
147
+ svg {
148
+ flex-shrink: 0;
149
+ }
150
+ .shell {
151
+ height: 100dvh;
152
+ display: flex;
153
+ flex-direction: column;
154
+ overflow: hidden;
155
+ }
156
+ .topbar {
157
+ height: var(--topbar-h);
158
+ min-height: var(--topbar-h);
159
+ border-bottom: 1px solid var(--line);
160
+ display: flex;
161
+ align-items: center;
162
+ justify-content: space-between;
163
+ padding: 0 26px 0 17px;
164
+ background: var(--panel);
165
+ z-index: 10;
166
+ }
167
+ .brand,
168
+ .top-actions {
169
+ display: flex;
170
+ align-items: center;
171
+ gap: 14px;
172
+ }
173
+ .brand strong {
174
+ font-size: 16px;
175
+ letter-spacing: -0.5px;
176
+ font-family: var(--font-title);
177
+ font-weight: 750;
178
+ }
179
+ .brandmark {
180
+ display: block;
181
+ width: 45px;
182
+ height: 25px;
183
+ flex-shrink: 0;
184
+ margin-left: 3px;
185
+ }
186
+ .brand-separator {
187
+ color: var(--fg);
188
+ font-weight: 400;
189
+ margin: 0 2px;
190
+ }
191
+ .muted {
192
+ color: var(--muted);
193
+ }
194
+ .icon-button {
195
+ width: 29px;
196
+ height: 29px;
197
+ padding: 4px;
198
+ color: var(--muted);
199
+ border-radius: 5px;
200
+ }
201
+ .icon-button:hover {
202
+ background: #ffffff08;
203
+ color: var(--fg);
204
+ }
205
+ .primary {
206
+ padding: 12px 18px;
207
+ background: var(--accent);
208
+ color: var(--fg);
209
+ border: 1px solid var(--accent);
210
+ font-weight: 650;
211
+ border-radius: 7px;
212
+ box-shadow: 0 1px 2px #0002;
213
+ white-space: nowrap;
214
+ }
215
+ .primary.small {
216
+ padding: 8px 12px;
217
+ font-size: 16px;
218
+ }
219
+ .secondary {
220
+ border: 1px solid #443738;
221
+ background: #2b2021;
222
+ padding: 8px 12px;
223
+ border-radius: 6px;
224
+ font-size: 16px;
225
+ font-weight: 500;
226
+ }
227
+ .connection {
228
+ display: flex;
229
+ align-items: center;
230
+ gap: 7px;
231
+ color: var(--muted);
232
+ font-size: 16px;
233
+ }
234
+ .connection i,
235
+ .live-dot {
236
+ width: 5px;
237
+ height: 5px;
238
+ border-radius: 100%;
239
+ background: #756062;
240
+ display: inline-block;
241
+ flex-shrink: 0;
242
+ }
243
+ .connection .online,
244
+ .live-dot {
245
+ background: var(--accent);
246
+ box-shadow: 0 0 7px #cdadb018;
247
+ }
248
+ .version {
249
+ font-family: var(--font-mono);
250
+ color: var(--fg);
251
+ font-size: 16px;
252
+ border: 1px solid #3b3031;
253
+ border-radius: 4px;
254
+ padding: 4px 6px;
255
+ }
256
+ .workspace {
257
+ display: grid;
258
+ grid-template-columns: minmax(340px, 34%) minmax(0, 1fr);
259
+ flex: 1;
260
+ min-height: 0;
261
+ }
262
+ .inspector {
263
+ border-right: 1px solid var(--line);
264
+ display: flex;
265
+ flex-direction: column;
266
+ min-height: 0;
267
+ background: var(--panel);
268
+ }
269
+ .session-heading {
270
+ padding: 25px 26px 21px;
271
+ }
272
+ .eyebrow {
273
+ font-size: 16px;
274
+ letter-spacing: 1.8px;
275
+ font-weight: 600;
276
+ color: var(--fg);
277
+ }
278
+ .session-heading h1 {
279
+ font-size: 16px;
280
+ color: var(--fg);
281
+ font-weight: 650;
282
+ letter-spacing: -0.7px;
283
+ display: flex;
284
+ align-items: center;
285
+ justify-content: space-between;
286
+ gap: 10px;
287
+ margin: 0 0 10px;
288
+ overflow-wrap: anywhere;
289
+ }
290
+ .path {
291
+ font-family: var(--font-mono);
292
+ color: var(--fg);
293
+ font-size: 16px;
294
+ display: flex;
295
+ align-items: center;
296
+ gap: 7px;
297
+ overflow-wrap: anywhere;
298
+ }
299
+ .session-status {
300
+ display: flex;
301
+ gap: 9px;
302
+ align-items: center;
303
+ margin-top: 19px;
304
+ }
305
+ .status-pill {
306
+ background: #352728;
307
+ color: var(--fg);
308
+ display: flex;
309
+ align-items: center;
310
+ gap: 6px;
311
+ border-radius: 4px;
312
+ padding: 4px 8px;
313
+ font-size: 16px;
314
+ line-height: 1.3;
315
+ }
316
+ .status-pill i {
317
+ width: 4px;
318
+ height: 4px;
319
+ border-radius: 50%;
320
+ background: currentColor;
321
+ }
322
+ .status-pill.working {
323
+ color: var(--accent);
324
+ background: #412b2d;
325
+ }
326
+ .working i {
327
+ animation: pulse 1.5s infinite;
328
+ }
329
+ .saved {
330
+ margin-left: auto;
331
+ display: flex;
332
+ gap: 5px;
333
+ align-items: center;
334
+ font-size: 16px;
335
+ color: var(--fg);
336
+ }
337
+ .background-pill {
338
+ font-size: 16px;
339
+ color: var(--fg);
340
+ }
341
+ .model-section {
342
+ padding: 18px 26px 22px;
343
+ border-top: 1px solid var(--line);
344
+ }
345
+ .section-label {
346
+ display: flex;
347
+ justify-content: space-between;
348
+ font-size: 16px;
349
+ letter-spacing: 1.3px;
350
+ color: var(--fg);
351
+ margin-bottom: 13px;
352
+ }
353
+ .section-label span + span {
354
+ letter-spacing: 0;
355
+ color: var(--fg);
356
+ }
357
+ .model-button {
358
+ width: 100%;
359
+ background: #251c1d;
360
+ border: 1px solid #423435;
361
+ padding: 11px 13px;
362
+ border-radius: 8px;
363
+ text-align: left;
364
+ }
365
+ .model-button img,
366
+ .model-list img {
367
+ width: 29px;
368
+ height: 29px;
369
+ object-fit: contain;
370
+ border-radius: 6px;
371
+ background: #f0e8e9;
372
+ padding: 3px;
373
+ }
374
+ .model-button > div {
375
+ display: flex;
376
+ flex-direction: column;
377
+ gap: 3px;
378
+ flex: 1;
379
+ min-width: 0;
380
+ }
381
+ .model-button strong {
382
+ font-size: 16px;
383
+ overflow: hidden;
384
+ text-overflow: ellipsis;
385
+ white-space: nowrap;
386
+ }
387
+ .model-button small {
388
+ color: var(--muted);
389
+ font-size: 16px;
390
+ }
391
+ .thinking-row {
392
+ display: flex;
393
+ align-items: center;
394
+ justify-content: space-between;
395
+ margin-top: 10px;
396
+ font-size: 16px;
397
+ color: var(--fg);
398
+ }
399
+ .thinking-row select {
400
+ border: 0;
401
+ background: none;
402
+ padding: 4px 2px;
403
+ font-size: 16px;
404
+ color: var(--fg);
405
+ }
406
+ .metrics {
407
+ display: grid;
408
+ grid-template-columns: 1fr 1.3fr 0.5fr;
409
+ margin-top: 21px;
410
+ }
411
+ .metrics > div {
412
+ display: flex;
413
+ flex-direction: column;
414
+ gap: 5px;
415
+ }
416
+ .metrics span {
417
+ font-family: var(--font-title);
418
+ font-size: 19px;
419
+ letter-spacing: -0.5px;
420
+ font-weight: 500;
421
+ }
422
+ .metrics small {
423
+ color: var(--fg);
424
+ font-size: 16px;
425
+ }
426
+ .stats-section {
427
+ margin-top: 24px;
428
+ }
429
+ .stats-section .metrics {
430
+ margin-top: 14px;
431
+ }
432
+ .usage-breakdown {
433
+ width: 100%;
434
+ border-collapse: collapse;
435
+ margin-top: 22px;
436
+ font-size: 16px;
437
+ font-variant-numeric: tabular-nums;
438
+ }
439
+ .usage-breakdown th,
440
+ .usage-breakdown td {
441
+ padding: 10px 0;
442
+ text-align: right;
443
+ border-bottom: 1px solid var(--line);
444
+ font-weight: 400;
445
+ }
446
+ .usage-breakdown th {
447
+ color: var(--secondary);
448
+ }
449
+ .usage-breakdown th:first-child {
450
+ text-align: left;
451
+ }
452
+ .usage-breakdown td {
453
+ color: var(--fg);
454
+ }
455
+ .inspector-tabs {
456
+ display: flex;
457
+ border-top: 1px solid var(--line);
458
+ border-bottom: 1px solid var(--line);
459
+ padding: 0 16px;
460
+ background: var(--tree);
461
+ }
462
+ .inspector-tabs button {
463
+ color: var(--fg);
464
+ font-size: 16px;
465
+ flex: 1;
466
+ padding: 15px 3px 13px;
467
+ gap: 6px;
468
+ border-bottom: 2px solid transparent;
469
+ }
470
+ .inspector-tabs button.active {
471
+ color: var(--accent);
472
+ border-bottom-color: var(--accent);
473
+ }
474
+ .count {
475
+ font-size: 16px;
476
+ padding: 1px 4px;
477
+ background: #462f31;
478
+ border-radius: 4px;
479
+ }
480
+ .inspector-body {
481
+ flex: 1;
482
+ overflow: auto;
483
+ padding: 23px 26px 32px;
484
+ scrollbar-width: thin;
485
+ scrollbar-color: var(--line) transparent;
486
+ }
487
+ .panel-heading {
488
+ display: flex;
489
+ justify-content: space-between;
490
+ align-items: center;
491
+ gap: 9px;
492
+ }
493
+ .panel-heading svg {
494
+ color: var(--fg);
495
+ }
496
+ .tag {
497
+ font-size: 16px;
498
+ background: #302526;
499
+ color: var(--fg);
500
+ border: 1px solid #403536;
501
+ border-radius: 4px;
502
+ padding: 3px 5px;
503
+ white-space: nowrap;
504
+ }
505
+ .tag.completed {
506
+ color: var(--accent);
507
+ }
508
+ .tag.waiting {
509
+ color: var(--fg);
510
+ }
511
+ .tag.aborted,
512
+ .tag.rejected {
513
+ color: var(--fg);
514
+ }
515
+ .hint {
516
+ font-size: 16px;
517
+ line-height: 1.65;
518
+ color: var(--fg);
519
+ margin: 8px 0 18px;
520
+ }
521
+ .field-label {
522
+ display: block;
523
+ font-size: 16px;
524
+ letter-spacing: 1px;
525
+ color: var(--fg);
526
+ margin-bottom: 8px;
527
+ }
528
+ .inline-input {
529
+ display: flex;
530
+ align-items: center;
531
+ background: #181112;
532
+ border: 1px solid #3a2d2e;
533
+ border-radius: 7px;
534
+ overflow: hidden;
535
+ }
536
+ .inline-input input {
537
+ border: 0;
538
+ background: none;
539
+ width: 100%;
540
+ box-shadow: none;
541
+ padding: 10px;
542
+ font-size: 16px;
543
+ }
544
+ .inline-input .icon-button {
545
+ margin-right: 4px;
546
+ }
547
+ .counter-card {
548
+ display: flex;
549
+ justify-content: space-between;
550
+ align-items: center;
551
+ background: #261b1c;
552
+ border: 1px solid #403031;
553
+ border-radius: 8px;
554
+ padding: 17px 15px;
555
+ margin: 16px 0;
556
+ }
557
+ .app-state-json {
558
+ margin: 16px 0 24px;
559
+ padding: 16px;
560
+ max-height: 300px;
561
+ overflow: auto;
562
+ white-space: pre-wrap;
563
+ overflow-wrap: anywhere;
564
+ border: 1px solid var(--line);
565
+ border-radius: 8px;
566
+ background: #140e10;
567
+ font-size: 16px;
568
+ line-height: 1.6;
569
+ }
570
+ .state-field {
571
+ min-width: 0;
572
+ }
573
+ .state-field:not(.state-root) {
574
+ border: 1px solid var(--line);
575
+ border-radius: 8px;
576
+ padding: 12px;
577
+ margin: 10px 0;
578
+ }
579
+ .state-field .state-field {
580
+ background: #25191c40;
581
+ }
582
+ .state-field-heading {
583
+ display: flex;
584
+ align-items: center;
585
+ gap: 8px;
586
+ margin-bottom: 12px;
587
+ }
588
+ .state-field-heading strong {
589
+ flex: 1;
590
+ min-width: 0;
591
+ overflow-wrap: anywhere;
592
+ font-size: 16px;
593
+ }
594
+ .state-field-heading select {
595
+ width: auto;
596
+ max-width: 120px;
597
+ padding: 5px;
598
+ color: var(--secondary);
599
+ }
600
+ .state-field-heading .icon-button {
601
+ flex-shrink: 0;
602
+ }
603
+ .state-field textarea,
604
+ .state-field input {
605
+ width: 100%;
606
+ min-width: 0;
607
+ font-size: 16px;
608
+ }
609
+ .state-number {
610
+ display: flex;
611
+ align-items: center;
612
+ gap: 8px;
613
+ }
614
+ .state-number input {
615
+ text-align: center;
616
+ appearance: textfield;
617
+ }
618
+ .state-number input::-webkit-inner-spin-button,
619
+ .state-number input::-webkit-outer-spin-button {
620
+ appearance: none;
621
+ }
622
+ .state-number button {
623
+ padding: 10px;
624
+ flex-shrink: 0;
625
+ }
626
+ .state-boolean {
627
+ display: flex;
628
+ align-items: center;
629
+ gap: 12px;
630
+ }
631
+ .state-boolean > span {
632
+ color: var(--secondary);
633
+ }
634
+ .state-add {
635
+ display: flex;
636
+ flex-wrap: wrap;
637
+ gap: 8px;
638
+ margin-top: 12px;
639
+ }
640
+ .state-add input {
641
+ flex-basis: 100%;
642
+ }
643
+ .state-add select {
644
+ width: auto;
645
+ flex: 1;
646
+ }
647
+ .state-add-button {
648
+ margin-top: 8px;
649
+ }
650
+ .counter-card .field-label {
651
+ font-size: 16px;
652
+ margin: 0;
653
+ }
654
+ .counter-card strong {
655
+ display: block;
656
+ font-family: var(--font-title);
657
+ color: var(--accent);
658
+ font-size: 32px;
659
+ font-weight: 500;
660
+ margin-top: 4px;
661
+ line-height: 1.1;
662
+ }
663
+ .counter-card .secondary {
664
+ background: #392a2b;
665
+ color: var(--fg);
666
+ border-color: #5a3c3f;
667
+ font-size: 16px;
668
+ padding: 7px 9px;
669
+ }
670
+ .note {
671
+ display: flex;
672
+ align-items: flex-start;
673
+ gap: 8px;
674
+ font-size: 16px;
675
+ line-height: 1.6;
676
+ margin: 0 0 10px;
677
+ color: var(--fg);
678
+ overflow-wrap: anywhere;
679
+ }
680
+ .note > span {
681
+ width: 4px;
682
+ height: 4px;
683
+ background: #836669;
684
+ border-radius: 50%;
685
+ margin-top: 7px;
686
+ flex-shrink: 0;
687
+ }
688
+ .notes {
689
+ margin-bottom: 14px;
690
+ }
691
+ .raw {
692
+ margin-top: 16px;
693
+ border-top: 1px solid var(--line);
694
+ padding-top: 12px;
695
+ }
696
+ .raw summary {
697
+ display: flex;
698
+ align-items: center;
699
+ gap: 7px;
700
+ list-style: none;
701
+ cursor: pointer;
702
+ color: var(--fg);
703
+ font-family: var(--font-mono);
704
+ font-size: 16px;
705
+ }
706
+ .raw summary:after {
707
+ content: "+";
708
+ margin-left: auto;
709
+ color: var(--fg);
710
+ }
711
+ .raw[open] summary:after {
712
+ content: "−";
713
+ }
714
+ .raw summary span {
715
+ font-size: 16px;
716
+ color: var(--fg);
717
+ margin-left: auto;
718
+ }
719
+ .raw pre {
720
+ background: var(--chat);
721
+ padding: 11px;
722
+ border: 1px solid #35292a;
723
+ border-radius: 6px;
724
+ color: var(--fg);
725
+ max-height: 340px;
726
+ overflow: auto;
727
+ }
728
+ .raw textarea {
729
+ width: 100%;
730
+ font-size: 16px;
731
+ }
732
+ .raw button {
733
+ margin-top: 8px;
734
+ }
735
+ .section-divider {
736
+ border-top: 1px solid var(--line);
737
+ margin: 25px 0 22px;
738
+ }
739
+ .demo-action {
740
+ display: flex;
741
+ align-items: center;
742
+ width: 100%;
743
+ text-align: left;
744
+ padding: 12px 0;
745
+ border-bottom: 1px solid #362829;
746
+ gap: 11px;
747
+ }
748
+ .demo-action > span:nth-child(2) {
749
+ display: flex;
750
+ flex: 1;
751
+ flex-direction: column;
752
+ gap: 4px;
753
+ }
754
+ .demo-action strong {
755
+ font-size: 16px;
756
+ font-weight: 500;
757
+ }
758
+ .demo-action small {
759
+ font-size: 16px;
760
+ color: var(--fg);
761
+ }
762
+ .demo-action > svg {
763
+ color: var(--fg);
764
+ }
765
+ .demo-icon {
766
+ width: 32px;
767
+ height: 32px;
768
+ background: #3b292b;
769
+ color: var(--accent);
770
+ border-radius: 7px;
771
+ display: flex;
772
+ align-items: center;
773
+ justify-content: center;
774
+ }
775
+ .demo-icon.lavender {
776
+ background: #3b292b;
777
+ color: var(--fg);
778
+ }
779
+ .job-card {
780
+ margin-top: 16px;
781
+ border: 1px solid #453536;
782
+ background: #26191a;
783
+ border-radius: 7px;
784
+ padding: 13px;
785
+ }
786
+ .job-title {
787
+ display: flex;
788
+ align-items: center;
789
+ justify-content: space-between;
790
+ gap: 5px;
791
+ }
792
+ .job-title strong {
793
+ font-size: 16px;
794
+ font-weight: 500;
795
+ }
796
+ .progress {
797
+ height: 3px;
798
+ background: #403031;
799
+ border-radius: 4px;
800
+ overflow: hidden;
801
+ margin: 14px 0 8px;
802
+ }
803
+ .progress > div {
804
+ height: 100%;
805
+ background: var(--accent);
806
+ transition: width 0.3s;
807
+ }
808
+ .job-meta {
809
+ display: flex;
810
+ justify-content: space-between;
811
+ font-family: var(--font-mono);
812
+ font-size: 16px;
813
+ color: var(--fg);
814
+ gap: 6px;
815
+ }
816
+ .approval {
817
+ display: flex;
818
+ flex-wrap: wrap;
819
+ gap: 7px;
820
+ margin-top: 15px;
821
+ }
822
+ .approval > span {
823
+ width: 100%;
824
+ font-size: 16px;
825
+ color: var(--fg);
826
+ margin-bottom: 3px;
827
+ }
828
+ .approval button {
829
+ font-size: 16px;
830
+ padding: 6px 10px;
831
+ }
832
+ .text-button {
833
+ color: var(--accent);
834
+ font-size: 16px;
835
+ margin-top: 12px;
836
+ padding: 0;
837
+ }
838
+ .danger {
839
+ color: var(--fg);
840
+ }
841
+ .inspector-footer {
842
+ height: 39px;
843
+ min-height: 39px;
844
+ border-top: 1px solid #372728;
845
+ display: flex;
846
+ align-items: center;
847
+ gap: 8px;
848
+ padding: 0 22px;
849
+ font-size: 16px;
850
+ color: var(--fg);
851
+ }
852
+ .inspector-footer .icon-button {
853
+ margin-left: auto;
854
+ }
855
+ .chat-panel {
856
+ display: flex;
857
+ flex-direction: column;
858
+ min-height: 0;
859
+ background: var(--chat);
860
+ position: relative;
861
+ }
862
+ .agent-stream-status {
863
+ display: flex;
864
+ flex-wrap: wrap;
865
+ align-items: center;
866
+ gap: 12px;
867
+ padding: 12px 24px;
868
+ border-bottom: 1px solid var(--warn);
869
+ color: var(--warn);
870
+ }
871
+ .agent-stream-status > div {
872
+ flex: 1 1 220px;
873
+ min-width: 0;
874
+ overflow-wrap: anywhere;
875
+ }
876
+ .agent-stream-status p {
877
+ margin: 4px 0 0;
878
+ font-size: 13px;
879
+ }
880
+ .chat-header {
881
+ display: flex;
882
+ align-items: center;
883
+ justify-content: space-between;
884
+ padding: 0 25px;
885
+ border-bottom: 1px solid var(--line);
886
+ min-height: 63px;
887
+ background: #1c1415;
888
+ }
889
+ .conversation-select {
890
+ display: flex;
891
+ align-items: center;
892
+ gap: 9px;
893
+ color: var(--fg);
894
+ min-width: 0;
895
+ }
896
+ .conversation-select select {
897
+ background: none;
898
+ border: 0;
899
+ box-shadow: none;
900
+ color: var(--fg);
901
+ font-size: 16px;
902
+ padding: 8px 3px;
903
+ max-width: 230px;
904
+ }
905
+ .fork-label {
906
+ display: flex;
907
+ align-items: center;
908
+ gap: 3px;
909
+ font-size: 16px;
910
+ white-space: nowrap;
911
+ color: var(--fg);
912
+ }
913
+ .chat-header-actions {
914
+ display: flex;
915
+ align-items: center;
916
+ gap: 8px;
917
+ }
918
+ .relative {
919
+ position: relative;
920
+ }
921
+ .dropdown {
922
+ position: absolute;
923
+ right: 0;
924
+ top: 36px;
925
+ z-index: 20;
926
+ border: 1px solid #4b3b3c;
927
+ background: var(--line-soft);
928
+ border-radius: 8px;
929
+ box-shadow: 0 10px 35px #0005;
930
+ padding: 6px;
931
+ min-width: 205px;
932
+ }
933
+ .dropdown button {
934
+ display: flex;
935
+ width: 100%;
936
+ justify-content: flex-start;
937
+ padding: 10px 9px;
938
+ border-radius: 5px;
939
+ color: var(--fg);
940
+ font-size: 16px;
941
+ }
942
+ .dropdown button:hover {
943
+ background: #3c2d2e;
944
+ }
945
+ .chat-scroll {
946
+ flex: 1;
947
+ overflow: auto;
948
+ padding: 32px clamp(24px, 5vw, 88px) 20px;
949
+ scrollbar-width: thin;
950
+ scrollbar-color: var(--line) transparent;
951
+ scroll-behavior: smooth;
952
+ }
953
+ .chat-empty {
954
+ display: flex;
955
+ flex-direction: column;
956
+ align-items: center;
957
+ justify-content: center;
958
+ min-height: 100%;
959
+ text-align: center;
960
+ padding: 30px 0 48px;
961
+ }
962
+ .agent-orb {
963
+ position: relative;
964
+ width: 58px;
965
+ height: 58px;
966
+ border: 1px solid #503a3c;
967
+ background: radial-gradient(ellipse at top, #492d2f, #281a1b);
968
+ border-radius: 17px;
969
+ display: flex;
970
+ align-items: center;
971
+ justify-content: center;
972
+ margin-bottom: 26px;
973
+ box-shadow: 0 10px 50px #b07d820c;
974
+ }
975
+ .agent-orb > img {
976
+ width: 45px;
977
+ height: 25px;
978
+ }
979
+ .agent-orb > i {
980
+ position: absolute;
981
+ right: -2px;
982
+ bottom: -1px;
983
+ width: 11px;
984
+ height: 11px;
985
+ border: 3px solid var(--chat);
986
+ background: var(--accent);
987
+ border-radius: 50%;
988
+ }
989
+ .chat-empty .eyebrow {
990
+ font-size: 16px;
991
+ letter-spacing: 2.1px;
992
+ }
993
+ .chat-empty h2 {
994
+ font-size: 27px;
995
+ font-weight: 500;
996
+ letter-spacing: -0.8px;
997
+ margin: 11px 0;
998
+ }
999
+ .chat-empty p {
1000
+ font-size: 16px;
1001
+ line-height: 1.7;
1002
+ color: var(--fg);
1003
+ }
1004
+ .starter-grid {
1005
+ display: grid;
1006
+ grid-template-columns: 1fr 1fr;
1007
+ gap: 13px;
1008
+ margin-top: 34px;
1009
+ width: 100%;
1010
+ max-width: 470px;
1011
+ }
1012
+ .starter-grid button {
1013
+ position: relative;
1014
+ display: flex;
1015
+ flex-direction: column;
1016
+ align-items: flex-start;
1017
+ text-align: left;
1018
+ padding: 18px;
1019
+ border: 1px solid #3c2c2d;
1020
+ border-radius: 8px;
1021
+ background: var(--tree);
1022
+ gap: 6px;
1023
+ }
1024
+ .starter-grid button > svg:first-child {
1025
+ color: var(--fg);
1026
+ margin-bottom: 13px;
1027
+ }
1028
+ .starter-grid strong {
1029
+ font-size: 16px;
1030
+ font-weight: 500;
1031
+ }
1032
+ .starter-grid span {
1033
+ font-size: 16px;
1034
+ color: var(--fg);
1035
+ }
1036
+ .starter-grid button > svg:last-child {
1037
+ position: absolute;
1038
+ right: 13px;
1039
+ top: 16px;
1040
+ color: var(--fg);
1041
+ }
1042
+ .composer-region {
1043
+ padding: 18px clamp(20px, 3vw, 46px) 16px;
1044
+ background: linear-gradient(transparent, var(--chat) 15%);
1045
+ }
1046
+ .composer {
1047
+ background: #281c1d;
1048
+ border: 1px solid #513d3f;
1049
+ border-radius: 11px;
1050
+ box-shadow: 0 6px 30px #0002;
1051
+ }
1052
+ .composer textarea {
1053
+ width: 100%;
1054
+ display: block;
1055
+ resize: none;
1056
+ min-height: 80px;
1057
+ max-height: 220px;
1058
+ border: 0;
1059
+ box-shadow: none;
1060
+ background: none;
1061
+ padding: 18px 20px 9px;
1062
+ font-size: 16px;
1063
+ }
1064
+ .composer-toolbar {
1065
+ display: flex;
1066
+ align-items: center;
1067
+ justify-content: space-between;
1068
+ padding: 9px 11px 12px 17px;
1069
+ gap: 7px;
1070
+ }
1071
+ .composer-left,
1072
+ .composer-right {
1073
+ display: flex;
1074
+ align-items: center;
1075
+ gap: 12px;
1076
+ }
1077
+ .context-indicator {
1078
+ display: flex;
1079
+ align-items: center;
1080
+ gap: 5px;
1081
+ font-size: 16px;
1082
+ color: var(--fg);
1083
+ }
1084
+ .composer-left select {
1085
+ font-size: 16px;
1086
+ border: 0;
1087
+ background: none;
1088
+ color: var(--fg);
1089
+ padding: 4px;
1090
+ }
1091
+ .interrupt {
1092
+ color: var(--fg);
1093
+ font-size: 16px;
1094
+ padding: 6px 8px;
1095
+ border-radius: 5px;
1096
+ border: 1px solid #66414460;
1097
+ background: #452b2d24;
1098
+ }
1099
+ .send {
1100
+ width: 33px;
1101
+ height: 33px;
1102
+ background: var(--accent);
1103
+ color: var(--fg);
1104
+ border-radius: 7px;
1105
+ }
1106
+ .composer-footnote {
1107
+ display: flex;
1108
+ align-items: center;
1109
+ justify-content: space-between;
1110
+ margin-top: 11px;
1111
+ gap: 12px;
1112
+ font-size: 16px;
1113
+ color: var(--fg);
1114
+ }
1115
+ .composer-footnote > span:first-child {
1116
+ display: flex;
1117
+ align-items: center;
1118
+ gap: 6px;
1119
+ }
1120
+ .composer-footnote .live-dot {
1121
+ height: 4px;
1122
+ width: 4px;
1123
+ }
1124
+ .entry {
1125
+ margin-bottom: 26px;
1126
+ position: relative;
1127
+ }
1128
+ .message-label {
1129
+ display: flex;
1130
+ gap: 8px;
1131
+ align-items: center;
1132
+ color: var(--fg);
1133
+ font-size: 16px;
1134
+ letter-spacing: 1.3px;
1135
+ margin-bottom: 10px;
1136
+ }
1137
+ .message-label > span:not(.mini-pi):not(.streaming) {
1138
+ font-family: var(--font-mono);
1139
+ letter-spacing: 0;
1140
+ color: var(--fg);
1141
+ font-size: 16px;
1142
+ }
1143
+ .user-message {
1144
+ font-size: 16px;
1145
+ line-height: 1.8;
1146
+ white-space: pre-wrap;
1147
+ color: var(--fg);
1148
+ }
1149
+ .pi-user {
1150
+ padding-bottom: 20px;
1151
+ border-bottom: 1px solid #392628;
1152
+ }
1153
+ .mini-pi {
1154
+ width: 36px;
1155
+ height: 20px;
1156
+ flex-shrink: 0;
1157
+ }
1158
+ .markdown {
1159
+ font-size: 16px;
1160
+ line-height: 1.85;
1161
+ color: var(--fg);
1162
+ overflow-wrap: anywhere;
1163
+ }
1164
+ .markdown p {
1165
+ margin: 0 0 14px;
1166
+ }
1167
+ .markdown p:last-child {
1168
+ margin-bottom: 0;
1169
+ }
1170
+ .markdown h1,
1171
+ .markdown h2,
1172
+ .markdown h3 {
1173
+ color: var(--fg);
1174
+ font-size: 16px;
1175
+ margin: 22px 0 12px;
1176
+ }
1177
+ .markdown ul,
1178
+ .markdown ol {
1179
+ padding-left: 23px;
1180
+ margin: 12px 0;
1181
+ }
1182
+ .markdown li {
1183
+ margin: 6px 0;
1184
+ }
1185
+ .markdown strong {
1186
+ color: var(--fg);
1187
+ font-weight: 600;
1188
+ }
1189
+ .markdown code {
1190
+ font-size: 16px;
1191
+ background: #3a2628;
1192
+ padding: 2px 5px;
1193
+ border-radius: 4px;
1194
+ color: var(--fg);
1195
+ }
1196
+ .markdown pre {
1197
+ padding: 16px;
1198
+ background: #251819;
1199
+ border: 1px solid #3d2b2d;
1200
+ border-radius: 7px;
1201
+ margin: 14px 0;
1202
+ overflow: auto;
1203
+ white-space: pre;
1204
+ }
1205
+ .markdown pre code {
1206
+ padding: 0;
1207
+ background: none;
1208
+ }
1209
+ .markdown a {
1210
+ color: var(--accent);
1211
+ }
1212
+ .markdown table {
1213
+ border-collapse: collapse;
1214
+ width: 100%;
1215
+ }
1216
+ .markdown td,
1217
+ .markdown th {
1218
+ border: 1px solid var(--line);
1219
+ padding: 8px;
1220
+ text-align: left;
1221
+ }
1222
+ .fork-button {
1223
+ display: inline-flex;
1224
+ color: var(--fg);
1225
+ font-size: 16px;
1226
+ letter-spacing: 0;
1227
+ margin-left: auto;
1228
+ opacity: 1;
1229
+ padding: 3px 5px;
1230
+ white-space: nowrap;
1231
+ }
1232
+ .entry:hover .fork-button,
1233
+ .fork-button:focus-visible {
1234
+ opacity: 1;
1235
+ }
1236
+ .event-line {
1237
+ display: flex;
1238
+ align-items: center;
1239
+ gap: 7px;
1240
+ font-size: 16px;
1241
+ color: var(--fg);
1242
+ padding: 8px 0;
1243
+ }
1244
+ .event-line > span {
1245
+ flex: 1;
1246
+ }
1247
+ .pi-tool-result {
1248
+ margin-top: -17px;
1249
+ margin-bottom: 20px;
1250
+ }
1251
+ .tool-call,
1252
+ .tool-result {
1253
+ border: 1px solid #453032;
1254
+ border-radius: 6px;
1255
+ background: #251819;
1256
+ margin: 10px 0;
1257
+ color: var(--fg);
1258
+ font-size: 16px;
1259
+ overflow: hidden;
1260
+ }
1261
+ .tool-call summary,
1262
+ .tool-result summary {
1263
+ display: flex;
1264
+ gap: 9px;
1265
+ align-items: center;
1266
+ list-style: none;
1267
+ padding: 10px 12px;
1268
+ cursor: pointer;
1269
+ }
1270
+ .tool-call summary:after,
1271
+ .tool-result summary:after {
1272
+ content: "⌄";
1273
+ margin-left: auto;
1274
+ color: var(--fg);
1275
+ }
1276
+ .tool-call summary code {
1277
+ overflow: hidden;
1278
+ white-space: nowrap;
1279
+ text-overflow: ellipsis;
1280
+ color: var(--fg);
1281
+ font-size: 16px;
1282
+ }
1283
+ .tool-call pre,
1284
+ .tool-result pre {
1285
+ padding: 11px;
1286
+ margin: 0;
1287
+ border-top: 1px solid #412b2d;
1288
+ color: var(--fg);
1289
+ max-height: 340px;
1290
+ overflow: auto;
1291
+ }
1292
+ .tool-result {
1293
+ border-color: #3b2b2c;
1294
+ background: #201415;
1295
+ }
1296
+ .tool-result summary > span {
1297
+ font-size: 16px;
1298
+ color: var(--fg);
1299
+ }
1300
+ .tool-result.failed {
1301
+ border-color: #673f43;
1302
+ color: var(--fg);
1303
+ }
1304
+ .tool-call.failed {
1305
+ border-color: #a44c58;
1306
+ }
1307
+ .tool-status {
1308
+ color: var(--secondary);
1309
+ margin-left: auto;
1310
+ }
1311
+ .tool-section-label {
1312
+ display: flex;
1313
+ align-items: center;
1314
+ gap: 12px;
1315
+ padding: 10px 12px;
1316
+ border-top: 1px solid #412b2d;
1317
+ color: var(--secondary);
1318
+ }
1319
+ .tool-section-label .fork-button {
1320
+ margin-left: auto;
1321
+ }
1322
+ .thinking {
1323
+ font-size: 16px;
1324
+ color: var(--fg);
1325
+ margin: 8px 0 16px;
1326
+ }
1327
+ .thinking summary {
1328
+ cursor: pointer;
1329
+ }
1330
+ .thinking div {
1331
+ white-space: pre-wrap;
1332
+ font-size: 16px;
1333
+ line-height: 1.8;
1334
+ margin-top: 12px;
1335
+ padding-left: 12px;
1336
+ border-left: 1px solid #5a3a3d;
1337
+ color: var(--fg);
1338
+ }
1339
+ .message-error {
1340
+ font-size: 16px;
1341
+ line-height: 1.7;
1342
+ color: var(--fg);
1343
+ border: 1px solid #6b4245;
1344
+ background: #39232550;
1345
+ padding: 10px;
1346
+ border-radius: 6px;
1347
+ margin-top: 10px;
1348
+ overflow-wrap: anywhere;
1349
+ }
1350
+ .streaming {
1351
+ letter-spacing: 0;
1352
+ font-size: 16px;
1353
+ color: var(--accent);
1354
+ margin-left: auto;
1355
+ }
1356
+ .typing {
1357
+ display: flex;
1358
+ gap: 5px;
1359
+ padding: 12px 0;
1360
+ }
1361
+ .typing i {
1362
+ height: 5px;
1363
+ width: 5px;
1364
+ background: #af7c81;
1365
+ border-radius: 50%;
1366
+ animation: pulse 1.2s infinite;
1367
+ }
1368
+ .typing i:nth-child(2) {
1369
+ animation-delay: 0.2s;
1370
+ }
1371
+ .typing i:nth-child(3) {
1372
+ animation-delay: 0.4s;
1373
+ }
1374
+ .live-tool {
1375
+ border: 1px solid #624346;
1376
+ background: #2c1d1e;
1377
+ border-radius: 6px;
1378
+ padding: 11px;
1379
+ margin: 10px 0;
1380
+ }
1381
+ .live-tool > div {
1382
+ display: flex;
1383
+ align-items: center;
1384
+ gap: 8px;
1385
+ font-size: 16px;
1386
+ color: var(--fg);
1387
+ }
1388
+ .live-tool > div > span {
1389
+ margin-left: auto;
1390
+ color: var(--fg);
1391
+ font-size: 16px;
1392
+ }
1393
+ .live-tool pre {
1394
+ max-height: 150px;
1395
+ overflow: auto;
1396
+ color: var(--fg);
1397
+ }
1398
+ .queue {
1399
+ margin-bottom: 10px;
1400
+ border: 1px solid #4a3537;
1401
+ background: #2e1f20;
1402
+ border-radius: 7px;
1403
+ padding: 5px 10px;
1404
+ }
1405
+ .queue > div {
1406
+ display: flex;
1407
+ align-items: center;
1408
+ gap: 7px;
1409
+ font-size: 16px;
1410
+ color: var(--fg);
1411
+ }
1412
+ .queue span {
1413
+ flex: 1;
1414
+ white-space: nowrap;
1415
+ text-overflow: ellipsis;
1416
+ overflow: hidden;
1417
+ }
1418
+ .history-banner {
1419
+ display: flex;
1420
+ gap: 7px;
1421
+ align-items: center;
1422
+ padding: 8px 26px;
1423
+ background: #33292a33;
1424
+ color: var(--fg);
1425
+ font-size: 16px;
1426
+ }
1427
+ .empty-panel {
1428
+ padding: 30px 0;
1429
+ display: flex;
1430
+ align-items: center;
1431
+ flex-direction: column;
1432
+ gap: 12px;
1433
+ color: var(--fg);
1434
+ font-size: 16px;
1435
+ }
1436
+ .empty-panel strong {
1437
+ color: var(--fg);
1438
+ font-weight: 500;
1439
+ }
1440
+ .task-card {
1441
+ padding: 13px;
1442
+ border: 1px solid #4d3537;
1443
+ border-radius: 7px;
1444
+ background: #2a1b1c;
1445
+ margin: 10px 0;
1446
+ }
1447
+ .task-card.child {
1448
+ margin-left: 14px;
1449
+ border-left: 2px solid #84595d;
1450
+ }
1451
+ .task-card > div:first-child {
1452
+ display: flex;
1453
+ align-items: center;
1454
+ justify-content: space-between;
1455
+ gap: 6px;
1456
+ }
1457
+ .task-card strong {
1458
+ font-family: var(--font-mono);
1459
+ font-size: 16px;
1460
+ font-weight: 400;
1461
+ overflow-wrap: anywhere;
1462
+ }
1463
+ .task-card p {
1464
+ font-size: 16px;
1465
+ color: var(--fg);
1466
+ margin: 8px 0 11px;
1467
+ }
1468
+ .hook-card {
1469
+ padding: 14px;
1470
+ background: #2a2525;
1471
+ border: 1px solid #483c3d;
1472
+ border-radius: 7px;
1473
+ margin-bottom: 20px;
1474
+ }
1475
+ .hook-card > div {
1476
+ display: flex;
1477
+ align-items: center;
1478
+ gap: 8px;
1479
+ color: var(--fg);
1480
+ }
1481
+ .hook-card strong {
1482
+ font-size: 16px;
1483
+ font-weight: 500;
1484
+ }
1485
+ .hook-card p {
1486
+ font-size: 16px;
1487
+ line-height: 1.6;
1488
+ color: var(--fg);
1489
+ margin-top: 10px;
1490
+ }
1491
+ .switch {
1492
+ margin-left: auto;
1493
+ width: 29px;
1494
+ height: 17px;
1495
+ background: #544b4c;
1496
+ border-radius: 12px;
1497
+ padding: 2px;
1498
+ justify-content: flex-start;
1499
+ }
1500
+ .switch > span {
1501
+ height: 13px;
1502
+ width: 13px;
1503
+ background: #dbcccd;
1504
+ border-radius: 50%;
1505
+ }
1506
+ .switch.on {
1507
+ background: var(--primary);
1508
+ justify-content: flex-end;
1509
+ }
1510
+ .tool-row {
1511
+ border-bottom: 1px solid #3a2a2b;
1512
+ padding: 12px 0;
1513
+ }
1514
+ .tool-row summary {
1515
+ cursor: pointer;
1516
+ list-style: none;
1517
+ display: flex;
1518
+ align-items: center;
1519
+ gap: 7px;
1520
+ color: var(--fg);
1521
+ }
1522
+ .tool-row strong {
1523
+ font-family: var(--font-mono);
1524
+ font-size: 16px;
1525
+ font-weight: 500;
1526
+ }
1527
+ .tool-row .tag {
1528
+ margin-left: auto;
1529
+ font-size: 16px;
1530
+ }
1531
+ .tool-row p {
1532
+ font-size: 16px;
1533
+ color: var(--fg);
1534
+ line-height: 1.75;
1535
+ margin: 12px 0;
1536
+ white-space: pre-wrap;
1537
+ }
1538
+ .tool-row small {
1539
+ color: var(--fg);
1540
+ line-height: 1.6;
1541
+ }
1542
+ .tool-signature {
1543
+ margin: 0 0 12px;
1544
+ padding: 12px 14px;
1545
+ background: #120d0e;
1546
+ border: 1px solid var(--line);
1547
+ border-radius: 8px;
1548
+ font-family: var(--font-mono);
1549
+ font-size: 14px;
1550
+ line-height: 1.6;
1551
+ white-space: pre-wrap;
1552
+ overflow-wrap: anywhere;
1553
+ color: var(--fg);
1554
+ }
1555
+ .tk-keyword {
1556
+ color: var(--accent);
1557
+ }
1558
+ .tk-function {
1559
+ color: #ffd38a;
1560
+ }
1561
+ .tk-property {
1562
+ color: #9ed8cf;
1563
+ }
1564
+ .tk-type {
1565
+ color: #8fb6ff;
1566
+ }
1567
+ .tk-string {
1568
+ color: #e6b98f;
1569
+ }
1570
+ .tk-number {
1571
+ color: #d4a5ff;
1572
+ }
1573
+ .tk-comment {
1574
+ color: var(--faint);
1575
+ font-style: italic;
1576
+ }
1577
+ .tk-punct {
1578
+ color: #b8a6a7;
1579
+ }
1580
+ .prompt-chip {
1581
+ display: flex;
1582
+ width: 100%;
1583
+ justify-content: space-between;
1584
+ color: var(--fg);
1585
+ font-size: 16px;
1586
+ text-align: left;
1587
+ border-bottom: 1px solid var(--line);
1588
+ padding: 14px 0;
1589
+ }
1590
+ .drawer-backdrop {
1591
+ position: fixed;
1592
+ inset: 65px 0 0;
1593
+ z-index: 40;
1594
+ background: #0007;
1595
+ backdrop-filter: blur(3px);
1596
+ }
1597
+ .sessions-drawer {
1598
+ width: 326px;
1599
+ max-width: 90vw;
1600
+ height: 100%;
1601
+ background: var(--card);
1602
+ border-right: 1px solid #513d3f;
1603
+ box-shadow: 20px 0 70px #0004;
1604
+ display: flex;
1605
+ flex-direction: column;
1606
+ padding: 24px 18px;
1607
+ }
1608
+ .sessions-drawer header {
1609
+ display: flex;
1610
+ align-items: center;
1611
+ justify-content: space-between;
1612
+ margin-bottom: 22px;
1613
+ padding: 0 7px;
1614
+ }
1615
+ .sessions-drawer h2 {
1616
+ font-size: 17px;
1617
+ font-weight: 550;
1618
+ }
1619
+ .sessions-drawer h2 span {
1620
+ font-size: 16px;
1621
+ color: var(--fg);
1622
+ margin-left: 6px;
1623
+ }
1624
+ .sessions-drawer > .primary {
1625
+ margin: 0 6px 22px;
1626
+ }
1627
+ .session-list {
1628
+ flex: 1;
1629
+ overflow: auto;
1630
+ }
1631
+ .session-item {
1632
+ display: flex;
1633
+ flex-direction: column;
1634
+ align-items: stretch;
1635
+ text-align: left;
1636
+ gap: 10px;
1637
+ padding: 15px;
1638
+ width: 100%;
1639
+ border: 1px solid transparent;
1640
+ border-radius: 7px;
1641
+ margin-bottom: 7px;
1642
+ }
1643
+ .session-item.active {
1644
+ background: #362527;
1645
+ border-color: #5e3e41;
1646
+ }
1647
+ .session-item:hover {
1648
+ background: #312324;
1649
+ }
1650
+ .session-item strong {
1651
+ font-size: 16px;
1652
+ font-weight: 550;
1653
+ display: flex;
1654
+ align-items: center;
1655
+ justify-content: space-between;
1656
+ }
1657
+ .session-item .path {
1658
+ font-size: 16px;
1659
+ }
1660
+ .session-model {
1661
+ display: flex;
1662
+ align-items: center;
1663
+ gap: 6px;
1664
+ color: var(--fg);
1665
+ font-size: 16px;
1666
+ overflow-wrap: anywhere;
1667
+ }
1668
+ .session-model img {
1669
+ width: 15px;
1670
+ height: 15px;
1671
+ border-radius: 3px;
1672
+ background: #ecdfe0;
1673
+ padding: 1px;
1674
+ }
1675
+ .active-dot {
1676
+ background: var(--accent);
1677
+ width: 5px;
1678
+ height: 5px;
1679
+ border-radius: 50%;
1680
+ }
1681
+ .sessions-drawer footer {
1682
+ display: flex;
1683
+ gap: 8px;
1684
+ align-items: center;
1685
+ padding: 18px 8px 0;
1686
+ font-size: 16px;
1687
+ color: var(--fg);
1688
+ }
1689
+ .modal-backdrop {
1690
+ position: fixed;
1691
+ inset: 0;
1692
+ z-index: 80;
1693
+ background: #0d0808bd;
1694
+ backdrop-filter: blur(7px);
1695
+ display: flex;
1696
+ align-items: center;
1697
+ justify-content: center;
1698
+ padding: 24px;
1699
+ }
1700
+ .modal {
1701
+ background: var(--panel);
1702
+ border: 1px solid var(--line);
1703
+ border-radius: 12px;
1704
+ box-shadow: 0 24px 70px rgb(0 0 0 / 55%);
1705
+ padding: 28px;
1706
+ width: 460px;
1707
+ max-width: 100%;
1708
+ max-height: 90dvh;
1709
+ overflow: auto;
1710
+ }
1711
+ .modal header {
1712
+ display: flex;
1713
+ align-items: flex-start;
1714
+ justify-content: space-between;
1715
+ margin-bottom: 27px;
1716
+ gap: 12px;
1717
+ }
1718
+ .modal header h2 {
1719
+ font-size: 22px;
1720
+ letter-spacing: -0.5px;
1721
+ margin-top: 7px;
1722
+ font-weight: 550;
1723
+ }
1724
+ .modal label {
1725
+ display: flex;
1726
+ flex-direction: column;
1727
+ gap: 9px;
1728
+ margin-top: 20px;
1729
+ font-size: 16px;
1730
+ color: var(--fg);
1731
+ }
1732
+ .modal input,
1733
+ .modal select {
1734
+ width: 100%;
1735
+ font-size: 16px;
1736
+ padding: 12px;
1737
+ }
1738
+ .modal small.path {
1739
+ font-size: 16px;
1740
+ line-height: 1.6;
1741
+ color: var(--fg);
1742
+ margin-top: -1px;
1743
+ }
1744
+ .modal footer {
1745
+ display: flex;
1746
+ justify-content: flex-end;
1747
+ gap: 10px;
1748
+ margin-top: 26px;
1749
+ }
1750
+ .model-modal {
1751
+ width: 500px;
1752
+ display: flex;
1753
+ flex-direction: column;
1754
+ overflow: hidden;
1755
+ }
1756
+ .model-list {
1757
+ overflow: auto;
1758
+ margin-top: 12px;
1759
+ max-height: 50vh;
1760
+ }
1761
+ .model-list button {
1762
+ width: 100%;
1763
+ display: flex;
1764
+ text-align: left;
1765
+ justify-content: flex-start;
1766
+ padding: 12px 10px;
1767
+ border-radius: 6px;
1768
+ gap: 12px;
1769
+ }
1770
+ .model-list button.selected,
1771
+ .model-list button:hover {
1772
+ background: #402b2d;
1773
+ }
1774
+ .model-list button > div {
1775
+ display: flex;
1776
+ flex-direction: column;
1777
+ gap: 5px;
1778
+ flex: 1;
1779
+ }
1780
+ .model-list strong {
1781
+ font-size: 16px;
1782
+ font-weight: 500;
1783
+ }
1784
+ .model-list small {
1785
+ font-size: 16px;
1786
+ color: var(--fg);
1787
+ }
1788
+ .model-modal .hint {
1789
+ margin: 14px 0 0;
1790
+ }
1791
+ .learning-list {
1792
+ padding: 0;
1793
+ list-style: none;
1794
+ display: flex;
1795
+ flex-direction: column;
1796
+ gap: 23px;
1797
+ }
1798
+ .learning-list li {
1799
+ display: flex;
1800
+ gap: 17px;
1801
+ }
1802
+ .learning-list li > span {
1803
+ font-family: var(--font-mono);
1804
+ font-size: 16px;
1805
+ color: var(--fg);
1806
+ border: 1px solid #5a383b;
1807
+ border-radius: 5px;
1808
+ width: 28px;
1809
+ height: 27px;
1810
+ display: flex;
1811
+ align-items: center;
1812
+ justify-content: center;
1813
+ flex-shrink: 0;
1814
+ }
1815
+ .learning-list strong {
1816
+ font-size: 16px;
1817
+ color: var(--fg);
1818
+ font-weight: 500;
1819
+ }
1820
+ .learning-list p {
1821
+ font-size: 16px;
1822
+ color: var(--fg);
1823
+ line-height: 1.8;
1824
+ margin-top: 5px;
1825
+ }
1826
+ .help-modal {
1827
+ width: 530px;
1828
+ }
1829
+ .toast {
1830
+ position: fixed;
1831
+ bottom: 28px;
1832
+ left: 50%;
1833
+ transform: translateX(-50%);
1834
+ z-index: 100;
1835
+ background: var(--card);
1836
+ color: var(--on-primary);
1837
+ box-shadow: 0 10px 30px rgb(0 0 0 / 45%);
1838
+ border: 1px solid var(--line);
1839
+ border-radius: 999px;
1840
+ display: flex;
1841
+ align-items: center;
1842
+ gap: 10px;
1843
+ padding: 13px 19px;
1844
+ max-width: 90%;
1845
+ font-size: 16px;
1846
+ font-weight: 600;
1847
+ line-height: 1.5;
1848
+ }
1849
+ .toast svg {
1850
+ color: var(--accent);
1851
+ flex-shrink: 0;
1852
+ }
1853
+ .pi-user .message-label {
1854
+ justify-content: flex-end;
1855
+ }
1856
+ .pi-user .user-message {
1857
+ text-align: right;
1858
+ }
1859
+ .state-json-actions {
1860
+ display: flex;
1861
+ justify-content: flex-end;
1862
+ gap: 10px;
1863
+ flex-wrap: wrap;
1864
+ margin-bottom: 20px;
1865
+ }
1866
+ .state-json-actions .hint {
1867
+ flex-basis: 100%;
1868
+ margin: 0;
1869
+ }
1870
+ textarea.app-state-json {
1871
+ width: 100%;
1872
+ max-height: none;
1873
+ min-height: 280px;
1874
+ resize: vertical;
1875
+ margin-bottom: 10px;
1876
+ font-family: var(--font-mono);
1877
+ color: var(--fg);
1878
+ }
1879
+ .toast-enter-active,
1880
+ .toast-leave-active {
1881
+ transition: opacity 0.2s;
1882
+ }
1883
+ .toast-enter-from,
1884
+ .toast-leave-to {
1885
+ opacity: 0;
1886
+ }
1887
+ .error-banner {
1888
+ display: flex;
1889
+ align-items: center;
1890
+ gap: 10px;
1891
+ background: #462b2d;
1892
+ color: var(--fg);
1893
+ padding: 10px 25px;
1894
+ font-size: 16px;
1895
+ z-index: 90;
1896
+ }
1897
+ .error-banner span {
1898
+ flex: 1;
1899
+ }
1900
+ .welcome {
1901
+ display: flex;
1902
+ flex-direction: column;
1903
+ align-items: center;
1904
+ justify-content: center;
1905
+ flex: 1;
1906
+ text-align: center;
1907
+ padding: 35px;
1908
+ background: radial-gradient(ellipse at center, #39232533, transparent 65%);
1909
+ }
1910
+ .welcome-symbol {
1911
+ width: 126px;
1912
+ height: 70px;
1913
+ margin-bottom: 33px;
1914
+ position: relative;
1915
+ }
1916
+ .welcome .eyebrow {
1917
+ font-size: 16px;
1918
+ color: var(--fg);
1919
+ letter-spacing: 2.6px;
1920
+ }
1921
+ .welcome h1 {
1922
+ font-size: clamp(36px, 4.6vw, 64px);
1923
+ font-weight: 500;
1924
+ line-height: 1.15;
1925
+ letter-spacing: -2.5px;
1926
+ margin: 20px 0;
1927
+ color: var(--fg);
1928
+ }
1929
+ .welcome p {
1930
+ font-size: 16px;
1931
+ color: var(--fg);
1932
+ margin: 4px 0 30px;
1933
+ }
1934
+ .welcome-features {
1935
+ display: flex;
1936
+ gap: 33px;
1937
+ margin-top: 70px;
1938
+ color: var(--fg);
1939
+ font-size: 16px;
1940
+ }
1941
+ .welcome-features > span {
1942
+ display: flex;
1943
+ gap: 8px;
1944
+ align-items: center;
1945
+ }
1946
+ .selected {
1947
+ color: var(--accent);
1948
+ }
1949
+ @keyframes pulse {
1950
+ 0%,
1951
+ 100% {
1952
+ opacity: 0.45;
1953
+ }
1954
+ 50% {
1955
+ opacity: 1;
1956
+ }
1957
+ }
1958
+ @media (min-width: 1600px) {
1959
+ .workspace {
1960
+ grid-template-columns: 440px minmax(0, 1fr);
1961
+ }
1962
+ .chat-scroll {
1963
+ padding-left: max(70px, calc((100% - 770px)/2));
1964
+ padding-right: max(70px, calc((100% - 770px)/2));
1965
+ }
1966
+ .composer-region {
1967
+ padding-left: max(46px, calc((100% - 830px)/2));
1968
+ padding-right: max(46px, calc((100% - 830px)/2));
1969
+ }
1970
+ }
1971
+ @media (max-width: 1050px) {
1972
+ .workspace {
1973
+ grid-template-columns: 330px minmax(0, 1fr);
1974
+ }
1975
+ .session-heading,
1976
+ .model-section {
1977
+ padding-left: 20px;
1978
+ padding-right: 20px;
1979
+ }
1980
+ .inspector-body {
1981
+ padding-left: 20px;
1982
+ padding-right: 20px;
1983
+ }
1984
+ .chat-empty h2 {
1985
+ font-size: 23px;
1986
+ }
1987
+ .composer-footnote > span:last-child {
1988
+ display: none;
1989
+ }
1990
+ .starter-grid {
1991
+ grid-template-columns: 1fr;
1992
+ max-width: 300px;
1993
+ }
1994
+ .starter-grid button {
1995
+ padding: 13px;
1996
+ }
1997
+ .starter-grid button > svg:first-child {
1998
+ margin-bottom: 3px;
1999
+ }
2000
+ .topbar {
2001
+ padding-right: 16px;
2002
+ }
2003
+ }
2004
+ @media (max-width: 740px) {
2005
+ .shell {
2006
+ height: auto;
2007
+ min-height: 100dvh;
2008
+ overflow: visible;
2009
+ }
2010
+ .topbar {
2011
+ position: sticky;
2012
+ top: 0;
2013
+ padding: 0 12px;
2014
+ height: 58px;
2015
+ min-height: 58px;
2016
+ }
2017
+ .brand {
2018
+ gap: 8px;
2019
+ }
2020
+ .brand strong {
2021
+ font-size: 16px;
2022
+ }
2023
+ .brand-separator,
2024
+ .brand > .muted,
2025
+ .version,
2026
+ .connection {
2027
+ display: none;
2028
+ }
2029
+ .top-actions {
2030
+ gap: 5px;
2031
+ }
2032
+ .workspace {
2033
+ display: flex;
2034
+ flex-direction: column;
2035
+ }
2036
+ .inspector {
2037
+ border-right: 0;
2038
+ border-bottom: 1px solid var(--line);
2039
+ max-height: 55vh;
2040
+ min-height: 310px;
2041
+ }
2042
+ .session-heading {
2043
+ padding: 17px 20px 10px;
2044
+ }
2045
+ .session-heading h1 {
2046
+ font-size: 19px;
2047
+ margin: 5px 0;
2048
+ }
2049
+ .session-heading > .eyebrow,
2050
+ .session-status,
2051
+ .model-section,
2052
+ .inspector-footer {
2053
+ display: none;
2054
+ }
2055
+ .inspector-tabs {
2056
+ padding: 0 13px;
2057
+ }
2058
+ .inspector-tabs button {
2059
+ padding: 11px 3px;
2060
+ }
2061
+ .inspector-body {
2062
+ padding: 17px 20px;
2063
+ min-height: 150px;
2064
+ }
2065
+ .chat-panel {
2066
+ height: 85dvh;
2067
+ min-height: 500px;
2068
+ }
2069
+ .chat-header {
2070
+ padding: 0 13px;
2071
+ min-height: 55px;
2072
+ }
2073
+ .chat-scroll {
2074
+ padding: 24px 22px;
2075
+ }
2076
+ .chat-empty h2 {
2077
+ font-size: 22px;
2078
+ }
2079
+ .composer-region {
2080
+ padding: 12px;
2081
+ }
2082
+ .composer-left {
2083
+ gap: 3px;
2084
+ }
2085
+ .composer-left .context-indicator {
2086
+ display: none;
2087
+ }
2088
+ .composer-right {
2089
+ gap: 8px;
2090
+ }
2091
+ .modal {
2092
+ padding: 22px;
2093
+ }
2094
+ .welcome {
2095
+ min-height: 90dvh;
2096
+ }
2097
+ .welcome-features {
2098
+ flex-direction: column;
2099
+ gap: 20px;
2100
+ align-items: center;
2101
+ margin-top: 40px;
2102
+ }
2103
+ .drawer-backdrop {
2104
+ top: 58px;
2105
+ }
2106
+ .toast {
2107
+ bottom: 15px;
2108
+ width: max-content;
2109
+ max-width: 90%;
2110
+ font-size: 16px;
2111
+ }
2112
+ .fork-label {
2113
+ display: none;
2114
+ }
2115
+ }
2116
+ @media (prefers-reduced-motion: reduce) {
2117
+ * {
2118
+ animation: none !important;
2119
+ transition: none !important;
2120
+ scroll-behavior: auto !important;
2121
+ }
2122
+ }
2123
+ @media (max-width: 740px) {
2124
+ .model-section {
2125
+ display: block;
2126
+ padding: 9px 20px;
2127
+ }
2128
+ .model-section .section-label,
2129
+ .model-section .thinking-row,
2130
+ .model-section .metrics {
2131
+ display: none;
2132
+ }
2133
+ .model-button {
2134
+ padding: 7px 10px;
2135
+ }
2136
+ .model-button img {
2137
+ width: 24px;
2138
+ height: 24px;
2139
+ }
2140
+ .model-button small {
2141
+ display: none;
2142
+ }
2143
+ }
2144
+
2145
+ /* Accessible red theme: 16px minimum type and high-contrast provider marks. */
2146
+ .primary,
2147
+ .send {
2148
+ background: var(--primary);
2149
+ border-color: var(--primary-line);
2150
+ color: #fff;
2151
+ }
2152
+ .primary:hover,
2153
+ .send:hover {
2154
+ background: var(--primary-hover);
2155
+ }
2156
+ .model-button img,
2157
+ .model-list img {
2158
+ width: 42px;
2159
+ height: 42px;
2160
+ padding: 5px;
2161
+ background: #fff;
2162
+ border: 1px solid #67575c;
2163
+ flex-shrink: 0;
2164
+ }
2165
+ .session-model img {
2166
+ width: 32px;
2167
+ height: 32px;
2168
+ padding: 3px;
2169
+ background: #fff;
2170
+ flex-shrink: 0;
2171
+ }
2172
+ img[src$="openai.png"] {
2173
+ background: #242024;
2174
+ padding: 3px;
2175
+ border-color: #81747a;
2176
+ }
2177
+ button:disabled {
2178
+ opacity: 1;
2179
+ color: #d4c7ca;
2180
+ background-color: #33272b;
2181
+ border-color: #554249;
2182
+ }
2183
+ .icon-button {
2184
+ width: 36px;
2185
+ height: 36px;
2186
+ color: var(--fg);
2187
+ }
2188
+ .inspector-tabs {
2189
+ padding: 0 10px;
2190
+ }
2191
+ .inspector-tabs button {
2192
+ min-width: 0;
2193
+ padding: 15px 7px 13px;
2194
+ }
2195
+ .session-heading h1 {
2196
+ line-height: 1.4;
2197
+ }
2198
+ .session-status,
2199
+ .section-label,
2200
+ .panel-heading,
2201
+ .job-title,
2202
+ .job-meta,
2203
+ .composer-footnote,
2204
+ .composer-toolbar {
2205
+ flex-wrap: wrap;
2206
+ }
2207
+ .metrics {
2208
+ grid-template-columns: 1fr 1.4fr 0.6fr;
2209
+ gap: 12px;
2210
+ }
2211
+ .metrics small {
2212
+ line-height: 1.5;
2213
+ }
2214
+ .model-button {
2215
+ min-height: 70px;
2216
+ }
2217
+ .model-button small {
2218
+ line-height: 1.5;
2219
+ }
2220
+ .model-button strong {
2221
+ white-space: normal;
2222
+ }
2223
+ .inspector-footer {
2224
+ min-height: 52px;
2225
+ height: auto;
2226
+ padding: 8px 20px;
2227
+ }
2228
+ .counter-card {
2229
+ gap: 12px;
2230
+ flex-wrap: wrap;
2231
+ }
2232
+ .counter-card .field-label {
2233
+ max-width: 180px;
2234
+ line-height: 1.5;
2235
+ }
2236
+ .raw summary {
2237
+ line-height: 1.6;
2238
+ flex-wrap: wrap;
2239
+ }
2240
+ .raw summary span {
2241
+ color: var(--fg);
2242
+ }
2243
+ .tool-row summary {
2244
+ flex-wrap: wrap;
2245
+ }
2246
+ .tool-row .tag {
2247
+ margin-left: auto;
2248
+ }
2249
+ .tool-call summary {
2250
+ flex-wrap: wrap;
2251
+ }
2252
+ .tool-call summary code {
2253
+ max-width: 100%;
2254
+ }
2255
+ .fork-button {
2256
+ opacity: 1;
2257
+ color: #ffd3da;
2258
+ }
2259
+ .session-item .path {
2260
+ line-height: 1.6;
2261
+ }
2262
+ .sessions-drawer {
2263
+ width: 420px;
2264
+ }
2265
+ .modal {
2266
+ width: 560px;
2267
+ }
2268
+ .model-modal {
2269
+ width: 650px;
2270
+ }
2271
+ .model-list button {
2272
+ min-height: 78px;
2273
+ }
2274
+ .model-list small {
2275
+ line-height: 1.5;
2276
+ }
2277
+ .task-card > div:first-child {
2278
+ flex-wrap: wrap;
2279
+ }
2280
+ .composer-footnote {
2281
+ line-height: 1.6;
2282
+ }
2283
+ .composer-left,
2284
+ .composer-right {
2285
+ flex-wrap: wrap;
2286
+ gap: 8px;
2287
+ }
2288
+ .send {
2289
+ width: 40px;
2290
+ height: 40px;
2291
+ }
2292
+ .interrupt {
2293
+ min-height: 40px;
2294
+ }
2295
+ .tag {
2296
+ line-height: 1.4;
2297
+ }
2298
+ .brand {
2299
+ gap: 10px;
2300
+ }
2301
+ .welcome-features {
2302
+ flex-wrap: wrap;
2303
+ justify-content: center;
2304
+ }
2305
+ @media (min-width: 741px) and (max-width: 1599px) {
2306
+ .workspace {
2307
+ grid-template-columns: minmax(410px, 36%) minmax(0, 1fr);
2308
+ }
2309
+ .chat-scroll {
2310
+ padding-left: 30px;
2311
+ padding-right: 30px;
2312
+ }
2313
+ .composer-footnote > span:last-child {
2314
+ display: none;
2315
+ }
2316
+ .chat-header {
2317
+ gap: 10px;
2318
+ flex-wrap: wrap;
2319
+ padding: 10px 18px;
2320
+ }
2321
+ }
2322
+ @media (max-width: 1100px) and (min-width: 741px) {
2323
+ .brand > .muted,
2324
+ .brand-separator,
2325
+ .version {
2326
+ display: none;
2327
+ }
2328
+ .starter-grid {
2329
+ grid-template-columns: 1fr;
2330
+ }
2331
+ .composer-left .context-indicator {
2332
+ display: none;
2333
+ }
2334
+ .conversation-select select {
2335
+ max-width: 205px;
2336
+ }
2337
+ }
2338
+ @media (max-width: 740px) {
2339
+ .inspector {
2340
+ max-height: 60vh;
2341
+ }
2342
+ .topbar {
2343
+ min-height: 68px;
2344
+ height: 68px;
2345
+ }
2346
+ .top-actions .icon-button {
2347
+ display: none;
2348
+ }
2349
+ .brand strong {
2350
+ font-size: 16px;
2351
+ }
2352
+ .model-button img {
2353
+ width: 40px;
2354
+ height: 40px;
2355
+ }
2356
+ .model-button small {
2357
+ display: block;
2358
+ }
2359
+ .model-button {
2360
+ min-height: 64px;
2361
+ }
2362
+ .inspector-tabs {
2363
+ padding: 0 4px;
2364
+ }
2365
+ .inspector-tabs button {
2366
+ gap: 4px;
2367
+ padding: 12px 4px;
2368
+ }
2369
+ .inspector-body {
2370
+ padding: 18px 16px;
2371
+ }
2372
+ .conversation-select {
2373
+ max-width: calc(100% - 94px);
2374
+ gap: 6px;
2375
+ }
2376
+ .conversation-select select {
2377
+ max-width: 180px;
2378
+ width: 100%;
2379
+ }
2380
+ .chat-header-actions {
2381
+ gap: 0;
2382
+ }
2383
+ .chat-header-actions .icon-button {
2384
+ width: 30px;
2385
+ }
2386
+ .chat-header {
2387
+ padding: 0 10px;
2388
+ }
2389
+ .drawer-backdrop {
2390
+ top: 68px;
2391
+ }
2392
+ .composer-toolbar {
2393
+ padding-left: 9px;
2394
+ }
2395
+ .composer-left select {
2396
+ max-width: 120px;
2397
+ padding-left: 0;
2398
+ }
2399
+ .composer-footnote {
2400
+ align-items: flex-start;
2401
+ }
2402
+ .composer-footnote > span:first-child {
2403
+ align-items: baseline;
2404
+ }
2405
+ .starter-grid strong,
2406
+ .starter-grid span {
2407
+ line-height: 1.5;
2408
+ }
2409
+ .chat-empty {
2410
+ padding: 24px 0;
2411
+ }
2412
+ .chat-panel {
2413
+ min-height: 760px;
2414
+ }
2415
+ .modal {
2416
+ padding: 20px;
2417
+ }
2418
+ .top-actions .primary {
2419
+ padding: 8px;
2420
+ }
2421
+ }
2422
+ .session-heading .cwd-button {
2423
+ display: flex;
2424
+ width: 100%;
2425
+ min-width: 0;
2426
+ text-align: left;
2427
+ }
2428
+ .cwd-button:hover {
2429
+ color: var(--fg);
2430
+ }
2431
+ .cwd-button svg {
2432
+ flex-shrink: 0;
2433
+ }
2434
+ .cwd-trail {
2435
+ min-width: 0;
2436
+ flex: 1;
2437
+ white-space: nowrap;
2438
+ overflow: hidden;
2439
+ text-overflow: ellipsis;
2440
+ }
2441
+ .full-directory {
2442
+ display: block;
2443
+ font-size: 16px;
2444
+ line-height: 1.6;
2445
+ white-space: pre-wrap;
2446
+ overflow-wrap: anywhere;
2447
+ user-select: text;
2448
+ }
2449
+ .modal.path-modal {
2450
+ width: max-content;
2451
+ min-width: min(960px, 100%);
2452
+ }
2453
+ .markdown :is(h4, h5, h6, small, sub, sup) {
2454
+ font-size: 16px;
2455
+ }
2456
+
2457
+ /* Keep navigation fixed above the currently selected inspector panel. */
2458
+ .inspector > .inspector-tabs {
2459
+ flex-shrink: 0;
2460
+ min-height: 74px;
2461
+ border-top: 0;
2462
+ padding: 0 8px;
2463
+ }
2464
+ .inspector > .inspector-tabs button {
2465
+ position: relative;
2466
+ flex-direction: column;
2467
+ gap: 5px;
2468
+ padding: 10px 4px;
2469
+ line-height: 1.4;
2470
+ }
2471
+ .inspector-tabs .count {
2472
+ position: absolute;
2473
+ top: 4px;
2474
+ right: 4px;
2475
+ }
2476
+ .inspector-body.session-panel {
2477
+ padding: 0 0 24px;
2478
+ }
2479
+ .session-panel .session-heading {
2480
+ padding: 24px 26px;
2481
+ }
2482
+ .session-panel .model-section {
2483
+ padding: 22px 26px;
2484
+ }
2485
+ @media (max-width: 740px) {
2486
+ .inspector > .inspector-tabs {
2487
+ padding: 0 4px;
2488
+ }
2489
+ .session-panel .session-heading,
2490
+ .session-panel .model-section {
2491
+ padding: 20px 16px;
2492
+ }
2493
+ .session-panel .session-heading > .eyebrow {
2494
+ display: block;
2495
+ }
2496
+ .session-panel .session-status,
2497
+ .session-panel .section-label,
2498
+ .session-panel .thinking-row {
2499
+ display: flex;
2500
+ }
2501
+ .session-panel .metrics {
2502
+ display: grid;
2503
+ }
2504
+ }
2505
+
2506
+ /* Warm secondary text separates supporting details from primary content. */
2507
+ .hint,
2508
+ .path,
2509
+ .eyebrow,
2510
+ .section-label,
2511
+ .section-label span + span,
2512
+ .field-label,
2513
+ .counter-card .field-label,
2514
+ .model-button small,
2515
+ .model-list small,
2516
+ .metrics small,
2517
+ .thinking-row > span,
2518
+ .saved,
2519
+ .job-meta,
2520
+ .demo-action small,
2521
+ .task-card p,
2522
+ .tool-row p,
2523
+ .tool-row small,
2524
+ .tool-call summary code,
2525
+ .tool-result summary > span,
2526
+ .thinking,
2527
+ .thinking div,
2528
+ .raw summary,
2529
+ .raw summary span,
2530
+ .message-label > span:not(.mini-pi):not(.streaming),
2531
+ .composer-footnote,
2532
+ .context-indicator,
2533
+ .composer-left select,
2534
+ .version,
2535
+ .session-model,
2536
+ .sessions-drawer footer,
2537
+ .inspector-footer,
2538
+ .starter-grid span,
2539
+ .chat-empty p,
2540
+ .welcome p,
2541
+ .welcome-features,
2542
+ .learning-list p {
2543
+ color: var(--secondary);
2544
+ }
2545
+ input::placeholder,
2546
+ textarea::placeholder {
2547
+ color: var(--secondary);
2548
+ opacity: 1;
2549
+ }
2550
+ /* Root-to-fork navigation stays visible even when the picker is closed. */
2551
+ .chat-header {
2552
+ flex-wrap: nowrap;
2553
+ gap: 14px;
2554
+ }
2555
+ .chat-header-actions {
2556
+ flex-shrink: 0;
2557
+ }
2558
+ .lineage-picker {
2559
+ position: relative;
2560
+ flex: 1;
2561
+ min-width: 0;
2562
+ padding: 8px 0;
2563
+ }
2564
+ .lineage-toolbar {
2565
+ display: flex;
2566
+ align-items: center;
2567
+ gap: 4px;
2568
+ min-width: 0;
2569
+ }
2570
+ .conversation-lineage {
2571
+ display: flex;
2572
+ align-items: center;
2573
+ gap: 4px;
2574
+ min-width: 0;
2575
+ overflow-x: auto;
2576
+ scrollbar-width: thin;
2577
+ scrollbar-color: var(--line) transparent;
2578
+ }
2579
+ .lineage-crumb {
2580
+ flex-shrink: 0;
2581
+ padding: 7px 9px;
2582
+ border-radius: 6px;
2583
+ color: var(--secondary);
2584
+ white-space: nowrap;
2585
+ font-size: 16px;
2586
+ }
2587
+ .lineage-crumb:hover {
2588
+ background: #342328;
2589
+ }
2590
+ .lineage-crumb.current {
2591
+ background: #392328;
2592
+ color: var(--accent);
2593
+ }
2594
+ .lineage-separator {
2595
+ color: var(--secondary);
2596
+ }
2597
+ .conversation-menu-toggle {
2598
+ flex-shrink: 0;
2599
+ }
2600
+ .lineage-source {
2601
+ margin: 4px 9px 0;
2602
+ color: var(--secondary);
2603
+ font-size: 16px;
2604
+ line-height: 1.5;
2605
+ }
2606
+ .conversation-menu-dismiss {
2607
+ position: fixed;
2608
+ inset: 0;
2609
+ z-index: 25;
2610
+ cursor: default;
2611
+ }
2612
+ .conversation-picker {
2613
+ position: absolute;
2614
+ top: 100%;
2615
+ left: 0;
2616
+ z-index: 30;
2617
+ width: min(540px, calc(100vw - 48px));
2618
+ max-height: min(65vh, 620px);
2619
+ overflow-y: auto;
2620
+ background: #251b1e;
2621
+ border: 1px solid #68474e;
2622
+ border-radius: 9px;
2623
+ padding: 8px;
2624
+ box-shadow: 0 16px 48px #0007;
2625
+ }
2626
+ .conversation-picker-heading {
2627
+ color: var(--secondary);
2628
+ font-size: 16px;
2629
+ padding: 10px 12px 14px;
2630
+ }
2631
+ .conversation-choice {
2632
+ display: flex;
2633
+ align-items: center;
2634
+ justify-content: space-between;
2635
+ width: 100%;
2636
+ gap: 14px;
2637
+ padding: 12px;
2638
+ border-radius: 6px;
2639
+ text-align: left;
2640
+ }
2641
+ .conversation-choice:hover,
2642
+ .conversation-choice.selected {
2643
+ background: #3b272d;
2644
+ }
2645
+ .conversation-choice-content {
2646
+ min-width: 0;
2647
+ display: flex;
2648
+ flex-direction: column;
2649
+ gap: 6px;
2650
+ }
2651
+ .choice-lineage {
2652
+ display: flex;
2653
+ flex-wrap: wrap;
2654
+ align-items: center;
2655
+ gap: 5px;
2656
+ color: var(--fg);
2657
+ font-size: 16px;
2658
+ line-height: 1.5;
2659
+ }
2660
+ .choice-lineage > span {
2661
+ white-space: nowrap;
2662
+ }
2663
+ .choice-lineage .choice-ancestor,
2664
+ .choice-lineage > svg,
2665
+ .choice-source {
2666
+ color: var(--secondary);
2667
+ }
2668
+ .choice-source {
2669
+ font-size: 16px;
2670
+ line-height: 1.5;
2671
+ }
2672
+ .conversation-choice.selected .choice-lineage > span:last-child {
2673
+ color: var(--accent);
2674
+ }
2675
+ @media (max-width: 740px) {
2676
+ .chat-header {
2677
+ flex-wrap: wrap;
2678
+ padding: 8px 10px;
2679
+ gap: 4px;
2680
+ }
2681
+ .lineage-picker {
2682
+ flex-basis: 100%;
2683
+ width: 100%;
2684
+ }
2685
+ .chat-header-actions {
2686
+ margin-left: auto;
2687
+ }
2688
+ .conversation-picker {
2689
+ width: min(540px, calc(100vw - 20px));
2690
+ }
2691
+ .lineage-crumb {
2692
+ padding: 7px;
2693
+ }
2694
+ }
2695
+
2696
+ .queue-mode {
2697
+ position: relative;
2698
+ min-width: 150px;
2699
+ }
2700
+ .composer-left .queue-mode select {
2701
+ appearance: none;
2702
+ width: 100%;
2703
+ max-width: none;
2704
+ min-height: 40px;
2705
+ padding: 7px 36px 7px 12px;
2706
+ border: 1px solid #77515a;
2707
+ border-radius: 8px;
2708
+ background: #342329;
2709
+ color: #f8eeee;
2710
+ font-size: 16px;
2711
+ font-weight: 600;
2712
+ cursor: pointer;
2713
+ }
2714
+ .queue-mode > svg {
2715
+ position: absolute;
2716
+ right: 10px;
2717
+ top: 50%;
2718
+ transform: translateY(-50%);
2719
+ pointer-events: none;
2720
+ color: var(--secondary);
2721
+ }
2722
+ .interrupt .stop-sign {
2723
+ color: #ff647a;
2724
+ stroke: #ffb5c0;
2725
+ flex-shrink: 0;
2726
+ }
2727
+ .switch {
2728
+ width: 58px;
2729
+ height: 34px;
2730
+ border-radius: 20px;
2731
+ padding: 4px;
2732
+ flex-shrink: 0;
2733
+ }
2734
+ .switch > span {
2735
+ width: 26px;
2736
+ height: 26px;
2737
+ }
2738
+ .state-boolean .switch {
2739
+ margin-left: 0;
2740
+ }
2741
+ .task-section {
2742
+ margin-top: 24px;
2743
+ padding-top: 20px;
2744
+ border-top: 1px solid var(--line);
2745
+ }
2746
+ .task-section h3,
2747
+ .task-example h4 {
2748
+ display: flex;
2749
+ align-items: center;
2750
+ gap: 8px;
2751
+ margin: 0 0 10px;
2752
+ font-size: 16px;
2753
+ font-weight: 650;
2754
+ }
2755
+ .task-example {
2756
+ padding: 16px;
2757
+ margin-top: 12px;
2758
+ border: 1px solid var(--line);
2759
+ border-radius: 8px;
2760
+ background: #25191c;
2761
+ }
2762
+ .task-example p,
2763
+ .task-explanation p,
2764
+ .task-empty {
2765
+ color: var(--secondary);
2766
+ font-size: 16px;
2767
+ line-height: 1.6;
2768
+ margin: 8px 0 14px;
2769
+ }
2770
+ .task-decision-buttons {
2771
+ display: flex;
2772
+ flex-wrap: wrap;
2773
+ gap: 8px;
2774
+ margin: 16px 0;
2775
+ }
2776
+ .approval-card {
2777
+ border-color: #c68957;
2778
+ }
2779
+ .tasks-panel .task-note {
2780
+ margin-bottom: 0;
2781
+ }
2782
+ .tasks-panel .task-card .raw {
2783
+ margin-top: 12px;
2784
+ }
2785
+ .chat-header-actions {
2786
+ display: flex;
2787
+ flex-wrap: wrap;
2788
+ gap: 8px;
2789
+ justify-content: flex-end;
2790
+ }
2791
+ .chat-header {
2792
+ flex-wrap: wrap;
2793
+ }
2794
+ .chat-header-actions .secondary {
2795
+ min-height: 38px;
2796
+ }
2797
+ @media (max-width: 740px) {
2798
+ .topbar {
2799
+ height: auto;
2800
+ flex-wrap: wrap;
2801
+ gap: 12px;
2802
+ padding: 12px 16px;
2803
+ }
2804
+ .top-actions {
2805
+ margin-left: auto;
2806
+ flex-wrap: wrap;
2807
+ gap: 8px;
2808
+ }
2809
+ .chat-header-actions {
2810
+ width: 100%;
2811
+ justify-content: flex-start;
2812
+ }
2813
+ }
2814
+
2815
+ /* ------------------------------------------------------------------ brand presentation layer
2816
+ Layout/theme only — no client logic. Fonts stay on the Google Fonts @import
2817
+ with system fallbacks. */
2818
+
2819
+ /* Slim scrollbars in the brand line color. */
2820
+ ::-webkit-scrollbar {
2821
+ width: 10px;
2822
+ height: 10px;
2823
+ }
2824
+ ::-webkit-scrollbar-track {
2825
+ background: transparent;
2826
+ }
2827
+ ::-webkit-scrollbar-thumb {
2828
+ background: var(--line);
2829
+ border-radius: 10px;
2830
+ border: 2px solid transparent;
2831
+ background-clip: padding-box;
2832
+ }
2833
+ ::-webkit-scrollbar-thumb:hover {
2834
+ background: var(--faint);
2835
+ background-clip: padding-box;
2836
+ }
2837
+
2838
+ /* eyebrow label: display face, tracked uppercase. */
2839
+ .label {
2840
+ font-family: var(--font-display);
2841
+ font-size: 14px;
2842
+ letter-spacing: 0.14em;
2843
+ text-transform: uppercase;
2844
+ font-weight: 700;
2845
+ color: var(--faint);
2846
+ }
2847
+
2848
+ /* TopBar stats row: real numbers from the client store, daemon-strip look. */
2849
+ .topbar-sep {
2850
+ width: 1px;
2851
+ height: 22px;
2852
+ background: var(--line);
2853
+ flex-shrink: 0;
2854
+ }
2855
+ .daemon {
2856
+ display: flex;
2857
+ align-items: center;
2858
+ gap: 8px;
2859
+ font-size: 15px;
2860
+ color: var(--faint);
2861
+ min-width: 0;
2862
+ flex-wrap: wrap;
2863
+ }
2864
+ .daemon b {
2865
+ color: var(--fg);
2866
+ font-weight: 500;
2867
+ font-family: var(--font-mono);
2868
+ }
2869
+ .daemon .sep {
2870
+ color: var(--offline);
2871
+ flex-shrink: 0;
2872
+ }
2873
+ .dot {
2874
+ width: 8px;
2875
+ height: 8px;
2876
+ border-radius: 50%;
2877
+ display: inline-block;
2878
+ flex: 0 0 8px;
2879
+ background: var(--ok);
2880
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 16%, transparent);
2881
+ }
2882
+ .dot.off {
2883
+ background: var(--offline);
2884
+ box-shadow: none;
2885
+ }
2886
+
2887
+ /* chip: pill status. */
2888
+ .chip {
2889
+ display: inline-flex;
2890
+ align-items: center;
2891
+ gap: 6px;
2892
+ height: 28px;
2893
+ padding: 0 12px;
2894
+ border: 1px solid var(--line);
2895
+ border-radius: 999px;
2896
+ font-family: var(--font-mono);
2897
+ font-size: 13px;
2898
+ color: var(--faint);
2899
+ background: var(--bg);
2900
+ white-space: nowrap;
2901
+ }
2902
+ .chip b {
2903
+ color: var(--fg);
2904
+ font-weight: 500;
2905
+ }
2906
+ .chip.accent {
2907
+ border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
2908
+ color: var(--accent);
2909
+ }
2910
+ .chip .dot {
2911
+ width: 7px;
2912
+ height: 7px;
2913
+ flex: 0 0 7px;
2914
+ box-shadow: none;
2915
+ }
2916
+
2917
+ /* button refinements on the existing FE button classes. */
2918
+ .secondary {
2919
+ border: 1px solid var(--line);
2920
+ background: var(--card);
2921
+ transition:
2922
+ background 120ms var(--ease),
2923
+ border-color 120ms var(--ease);
2924
+ }
2925
+ .secondary:not(:disabled):hover {
2926
+ border-color: var(--faint);
2927
+ }
2928
+
2929
+ /* scrim + dialog (HelpDialog). */
2930
+ .scrim {
2931
+ position: fixed;
2932
+ inset: 0;
2933
+ background: rgb(10 6 7 / 68%);
2934
+ z-index: 80;
2935
+ display: grid;
2936
+ place-items: center;
2937
+ padding: 20px;
2938
+ }
2939
+ .dialog {
2940
+ width: min(560px, 100%);
2941
+ max-height: calc(100dvh - 40px);
2942
+ overflow-y: auto;
2943
+ border: 1px solid var(--line);
2944
+ border-radius: 12px;
2945
+ background: var(--panel);
2946
+ box-shadow: 0 24px 70px rgb(0 0 0 / 55%);
2947
+ }
2948
+ .dialog-head {
2949
+ padding: 18px 20px 0;
2950
+ display: flex;
2951
+ align-items: flex-start;
2952
+ justify-content: space-between;
2953
+ gap: 12px;
2954
+ }
2955
+ .dialog-eyebrow {
2956
+ font-family: var(--font-display);
2957
+ font-size: 14px;
2958
+ font-weight: 700;
2959
+ letter-spacing: 0.14em;
2960
+ text-transform: uppercase;
2961
+ color: var(--accent);
2962
+ }
2963
+ .dialog h3 {
2964
+ margin: 5px 0 0;
2965
+ font-family: var(--font-display);
2966
+ font-size: 20px;
2967
+ font-weight: 700;
2968
+ letter-spacing: -0.01em;
2969
+ }
2970
+ .dialog-body {
2971
+ padding: 16px 20px;
2972
+ display: flex;
2973
+ flex-direction: column;
2974
+ gap: 12px;
2975
+ }
2976
+ .help-step {
2977
+ display: grid;
2978
+ grid-template-columns: 26px minmax(0, 1fr);
2979
+ gap: 10px;
2980
+ padding: 7px 0;
2981
+ border-bottom: 1px solid var(--line-soft);
2982
+ font-size: 16px;
2983
+ }
2984
+ .help-step:last-of-type {
2985
+ border-bottom: 0;
2986
+ }
2987
+ .help-step .n {
2988
+ font-family: var(--font-mono);
2989
+ color: var(--accent);
2990
+ }
2991
+ .help-step b {
2992
+ font-weight: 600;
2993
+ }
2994
+ .help-step .body {
2995
+ color: var(--muted);
2996
+ margin-top: 2px;
2997
+ line-height: 1.6;
2998
+ }
2999
+ .help-callout {
3000
+ margin-top: 4px;
3001
+ padding: 10px 12px;
3002
+ border-radius: var(--radius-sm);
3003
+ border: 1px solid var(--line);
3004
+ background: var(--chat);
3005
+ font-size: 16px;
3006
+ color: var(--muted);
3007
+ display: flex;
3008
+ gap: 10px;
3009
+ align-items: flex-start;
3010
+ }
3011
+ .help-callout svg {
3012
+ flex-shrink: 0;
3013
+ margin-top: 2px;
3014
+ }
3015
+ .dialog-foot {
3016
+ display: flex;
3017
+ align-items: center;
3018
+ gap: 8px;
3019
+ padding: 0 20px 18px;
3020
+ }
3021
+ .dialog-foot .right {
3022
+ margin-left: auto;
3023
+ display: flex;
3024
+ gap: 8px;
3025
+ }
3026
+
3027
+ /* mobile nav: one of three views visible at phone width. Hidden otherwise. */
3028
+ .mnav {
3029
+ display: none;
3030
+ }
3031
+ @media (max-width: 760px) {
3032
+ .daemon,
3033
+ .topbar-sep {
3034
+ display: none;
3035
+ }
3036
+ .mnav {
3037
+ display: grid;
3038
+ grid-template-columns: repeat(3, 1fr);
3039
+ gap: 2px;
3040
+ padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
3041
+ border-top: 1px solid var(--line);
3042
+ background: var(--panel);
3043
+ }
3044
+ .mnav button {
3045
+ position: relative;
3046
+ display: flex;
3047
+ flex-direction: column;
3048
+ align-items: center;
3049
+ justify-content: center;
3050
+ gap: 2px;
3051
+ min-height: 48px;
3052
+ border: 0;
3053
+ border-radius: 8px;
3054
+ background: transparent;
3055
+ color: var(--faint);
3056
+ font-size: 12px;
3057
+ }
3058
+ .mnav button.is-on {
3059
+ color: var(--accent);
3060
+ background: color-mix(in oklab, var(--accent) 9%, transparent);
3061
+ }
3062
+ .mnav .badge {
3063
+ position: absolute;
3064
+ top: 5px;
3065
+ right: calc(50% - 22px);
3066
+ min-width: 16px;
3067
+ height: 16px;
3068
+ padding: 0 4px;
3069
+ border-radius: 999px;
3070
+ background: var(--primary);
3071
+ color: var(--on-primary);
3072
+ font-family: var(--font-mono);
3073
+ font-size: 11px;
3074
+ line-height: 16px;
3075
+ }
3076
+ }
3077
+
3078
+ /* ------------------------------------------------------------------ component restyle
3079
+ Visual language only (colors, pills, focus rings, radius); every component keeps its
3080
+ existing classes, script logic and client-store bindings. */
3081
+
3082
+ /* Composer: focus-within ring. */
3083
+ .composer:focus-within {
3084
+ border-color: color-mix(in oklab, var(--accent) 55%, var(--line));
3085
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 10%, transparent);
3086
+ }
3087
+ .send {
3088
+ border: 1px solid var(--primary-line);
3089
+ border-radius: 8px;
3090
+ transition: background 120ms var(--ease);
3091
+ }
3092
+
3093
+ /* Chat entries: user turns become right-aligned card bubble. */
3094
+ .pi-user {
3095
+ border-bottom: 0;
3096
+ padding-bottom: 12px;
3097
+ align-items: flex-end;
3098
+ display: flex;
3099
+ flex-direction: column;
3100
+ gap: 8px;
3101
+ }
3102
+ .pi-user .user-message {
3103
+ background: var(--card);
3104
+ border: 1px solid var(--line);
3105
+ border-radius: var(--radius);
3106
+ padding: 10px 14px;
3107
+ max-width: 78%;
3108
+ }
3109
+
3110
+ /* Inspector tabs: five-slot icon+label strip. */
3111
+ .inspector-tabs {
3112
+ background: var(--tree);
3113
+ }
3114
+ .inspector-tabs button {
3115
+ color: var(--muted);
3116
+ }
3117
+ .inspector-tabs button:hover {
3118
+ color: var(--fg);
3119
+ }
3120
+ .inspector-tabs button.active {
3121
+ color: var(--accent);
3122
+ }
3123
+ .insp-tab-active-line {
3124
+ border-bottom: 2px solid var(--accent);
3125
+ }
3126
+
3127
+ /* Switch: on-state in the primary brand red. */
3128
+ .switch {
3129
+ background: var(--offline);
3130
+ }
3131
+ .switch.on {
3132
+ background: var(--primary);
3133
+ }
3134
+ .switch.on > span {
3135
+ background: var(--on-primary);
3136
+ }
3137
+
3138
+ /* Tool call / result cards: card-on-panel separation. */
3139
+ .tool-call {
3140
+ background: var(--card);
3141
+ border-color: var(--line);
3142
+ }
3143
+ .tool-result {
3144
+ background: var(--chat);
3145
+ }
3146
+ .tool-result.failed,
3147
+ .tool-call.failed {
3148
+ border-color: color-mix(in oklab, var(--err) 45%, var(--line));
3149
+ }
3150
+
3151
+ /* Inspector blocks: bordered stat-grid look for the session metrics. */
3152
+ .metrics {
3153
+ border: 1px solid var(--line);
3154
+ border-radius: var(--radius);
3155
+ overflow: hidden;
3156
+ background: var(--line);
3157
+ gap: 1px;
3158
+ }
3159
+ .metrics > div {
3160
+ background: var(--chat);
3161
+ padding: 9px 12px;
3162
+ }
3163
+ .metrics span {
3164
+ font-family: var(--font-mono);
3165
+ font-weight: 500;
3166
+ }
3167
+
3168
+ /* Model button: field card. */
3169
+ .model-button {
3170
+ background: var(--chat);
3171
+ border: 1px solid var(--line);
3172
+ border-radius: var(--radius);
3173
+ }
3174
+ .model-button:hover {
3175
+ border-color: var(--faint);
3176
+ }
3177
+
3178
+ /* Inputs: brand radius + focus accent. */
3179
+ input,
3180
+ textarea,
3181
+ select {
3182
+ border-radius: var(--radius-sm);
3183
+ }
3184
+ input:focus,
3185
+ textarea:focus,
3186
+ select:focus {
3187
+ border-color: var(--accent);
3188
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 10%, transparent);
3189
+ }
3190
+
3191
+ /* Chat panel + inspector: token-driven panel surfaces. */
3192
+ .chat-panel {
3193
+ background: var(--chat);
3194
+ }
3195
+ .chat-header {
3196
+ background: var(--panel);
3197
+ }
3198
+ .inspector {
3199
+ background: var(--panel);
3200
+ }
3201
+ .network-sidebar {
3202
+ background: var(--tree);
3203
+ }