@clagentic/console 1.0.0-beta.1

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 (221) hide show
  1. package/CREDITS.md +3 -0
  2. package/LICENSE +21 -0
  3. package/README.md +250 -0
  4. package/bin/cli.js +2812 -0
  5. package/lib/agents-favorites.js +164 -0
  6. package/lib/agents.js +282 -0
  7. package/lib/ask-user-mcp-server.js +120 -0
  8. package/lib/browser-mcp-server.js +484 -0
  9. package/lib/build-user-env.js +63 -0
  10. package/lib/certs/fullchain.pem +47 -0
  11. package/lib/certs/privkey.pem +5 -0
  12. package/lib/cli-sessions.js +265 -0
  13. package/lib/codex-defaults.js +18 -0
  14. package/lib/config.js +332 -0
  15. package/lib/crisis-safety.js +60 -0
  16. package/lib/daemon-projects.js +164 -0
  17. package/lib/daemon.js +1602 -0
  18. package/lib/dm.js +128 -0
  19. package/lib/ipc.js +125 -0
  20. package/lib/ipv4-only.js +39 -0
  21. package/lib/mcp-local.js +385 -0
  22. package/lib/notes.js +141 -0
  23. package/lib/os-users.js +529 -0
  24. package/lib/pages.js +1325 -0
  25. package/lib/project-connection.js +302 -0
  26. package/lib/project-external-trigger.js +236 -0
  27. package/lib/project-file-watch.js +120 -0
  28. package/lib/project-filesystem.js +528 -0
  29. package/lib/project-http.js +753 -0
  30. package/lib/project-image.js +95 -0
  31. package/lib/project-knowledge.js +88 -0
  32. package/lib/project-loop.js +1304 -0
  33. package/lib/project-mcp.js +374 -0
  34. package/lib/project-memory.js +39 -0
  35. package/lib/project-notifications.js +262 -0
  36. package/lib/project-sessions.js +1581 -0
  37. package/lib/project-user-mention.js +193 -0
  38. package/lib/project-user-message.js +628 -0
  39. package/lib/project.js +1303 -0
  40. package/lib/public/app.js +1031 -0
  41. package/lib/public/apple-touch-icon.png +0 -0
  42. package/lib/public/claude-code-avatar.png +0 -0
  43. package/lib/public/codex-avatar.png +0 -0
  44. package/lib/public/console-icon.png +0 -0
  45. package/lib/public/css/admin.css +736 -0
  46. package/lib/public/css/agent-picker.css +119 -0
  47. package/lib/public/css/base.css +235 -0
  48. package/lib/public/css/channel-layout.css +441 -0
  49. package/lib/public/css/command-palette.css +559 -0
  50. package/lib/public/css/debate.css +1609 -0
  51. package/lib/public/css/diff.css +139 -0
  52. package/lib/public/css/filebrowser.css +1976 -0
  53. package/lib/public/css/highlight.css +144 -0
  54. package/lib/public/css/home-hub.css +545 -0
  55. package/lib/public/css/icon-strip.css +1856 -0
  56. package/lib/public/css/input.css +1349 -0
  57. package/lib/public/css/loop.css +1248 -0
  58. package/lib/public/css/mention.css +317 -0
  59. package/lib/public/css/menus.css +857 -0
  60. package/lib/public/css/messages.css +1833 -0
  61. package/lib/public/css/mobile-nav.css +1332 -0
  62. package/lib/public/css/notifications-center.css +296 -0
  63. package/lib/public/css/overlays.css +1273 -0
  64. package/lib/public/css/playbook.css +264 -0
  65. package/lib/public/css/profile.css +397 -0
  66. package/lib/public/css/rewind.css +671 -0
  67. package/lib/public/css/scheduler-modal.css +1495 -0
  68. package/lib/public/css/scheduler.css +1420 -0
  69. package/lib/public/css/server-settings.css +909 -0
  70. package/lib/public/css/session-search.css +159 -0
  71. package/lib/public/css/sidebar.css +2012 -0
  72. package/lib/public/css/skills.css +789 -0
  73. package/lib/public/css/sticky-notes.css +854 -0
  74. package/lib/public/css/stt.css +155 -0
  75. package/lib/public/css/title-bar.css +674 -0
  76. package/lib/public/css/tooltip.css +67 -0
  77. package/lib/public/css/user-settings.css +702 -0
  78. package/lib/public/emoji-data.json +1 -0
  79. package/lib/public/favicon-banded-32.png +0 -0
  80. package/lib/public/favicon-banded.png +0 -0
  81. package/lib/public/favicon-dark.svg +32 -0
  82. package/lib/public/favicon.svg +32 -0
  83. package/lib/public/icon-192.png +0 -0
  84. package/lib/public/icon-512.png +0 -0
  85. package/lib/public/icon-banded-76.png +0 -0
  86. package/lib/public/icon-banded-96.png +0 -0
  87. package/lib/public/icon-mono.svg +25 -0
  88. package/lib/public/icons/email/gmail.svg +7 -0
  89. package/lib/public/icons/email/outlook.svg +35 -0
  90. package/lib/public/icons/email/yahoo.svg +1 -0
  91. package/lib/public/index.html +1946 -0
  92. package/lib/public/manifest.json +27 -0
  93. package/lib/public/markdown-worker.js +43 -0
  94. package/lib/public/marked.min.js +6 -0
  95. package/lib/public/modules/admin.js +954 -0
  96. package/lib/public/modules/agent-picker.js +429 -0
  97. package/lib/public/modules/app-connection.js +216 -0
  98. package/lib/public/modules/app-cursors.js +492 -0
  99. package/lib/public/modules/app-dm.js +265 -0
  100. package/lib/public/modules/app-favicon.js +231 -0
  101. package/lib/public/modules/app-header.js +242 -0
  102. package/lib/public/modules/app-home-hub.js +432 -0
  103. package/lib/public/modules/app-loop-ui.js +691 -0
  104. package/lib/public/modules/app-loop-wizard.js +439 -0
  105. package/lib/public/modules/app-messages.js +1415 -0
  106. package/lib/public/modules/app-misc.js +463 -0
  107. package/lib/public/modules/app-notifications.js +651 -0
  108. package/lib/public/modules/app-panels.js +1061 -0
  109. package/lib/public/modules/app-projects.js +875 -0
  110. package/lib/public/modules/app-rate-limit.js +529 -0
  111. package/lib/public/modules/app-rendering.js +739 -0
  112. package/lib/public/modules/app-skills-install.js +285 -0
  113. package/lib/public/modules/avatar.js +36 -0
  114. package/lib/public/modules/command-palette.js +491 -0
  115. package/lib/public/modules/console-logo.js +162 -0
  116. package/lib/public/modules/context-sources.js +365 -0
  117. package/lib/public/modules/diff.js +412 -0
  118. package/lib/public/modules/dom-refs.js +21 -0
  119. package/lib/public/modules/emoji-picker.js +222 -0
  120. package/lib/public/modules/events.js +21 -0
  121. package/lib/public/modules/filebrowser.js +1966 -0
  122. package/lib/public/modules/fileicons.js +172 -0
  123. package/lib/public/modules/icons.js +80 -0
  124. package/lib/public/modules/input.js +1102 -0
  125. package/lib/public/modules/longpress.js +74 -0
  126. package/lib/public/modules/markdown.js +486 -0
  127. package/lib/public/modules/mcp-ui.js +295 -0
  128. package/lib/public/modules/mention.js +1093 -0
  129. package/lib/public/modules/notifications.js +613 -0
  130. package/lib/public/modules/playbook.js +578 -0
  131. package/lib/public/modules/profile.js +594 -0
  132. package/lib/public/modules/project-settings.js +849 -0
  133. package/lib/public/modules/project-switcher.js +375 -0
  134. package/lib/public/modules/qrcode.js +87 -0
  135. package/lib/public/modules/rewind.js +381 -0
  136. package/lib/public/modules/scheduler-config.js +1611 -0
  137. package/lib/public/modules/scheduler-history.js +131 -0
  138. package/lib/public/modules/scheduler.js +1689 -0
  139. package/lib/public/modules/server-settings.js +842 -0
  140. package/lib/public/modules/session-search.js +456 -0
  141. package/lib/public/modules/settings-defaults.js +253 -0
  142. package/lib/public/modules/sidebar-mobile.js +1425 -0
  143. package/lib/public/modules/sidebar-projects.js +2022 -0
  144. package/lib/public/modules/sidebar-sessions.js +1548 -0
  145. package/lib/public/modules/sidebar-users.js +449 -0
  146. package/lib/public/modules/sidebar.js +348 -0
  147. package/lib/public/modules/skills.js +793 -0
  148. package/lib/public/modules/state.js +3 -0
  149. package/lib/public/modules/sticky-notes.js +1221 -0
  150. package/lib/public/modules/store.js +34 -0
  151. package/lib/public/modules/stt.js +266 -0
  152. package/lib/public/modules/terminal.js +987 -0
  153. package/lib/public/modules/theme.js +812 -0
  154. package/lib/public/modules/tool-palette.js +562 -0
  155. package/lib/public/modules/tools.js +2285 -0
  156. package/lib/public/modules/tooltip.js +150 -0
  157. package/lib/public/modules/user-settings.js +544 -0
  158. package/lib/public/modules/utils.js +56 -0
  159. package/lib/public/modules/ws-ref.js +26 -0
  160. package/lib/public/style.css +34 -0
  161. package/lib/public/sw.js +159 -0
  162. package/lib/push.js +149 -0
  163. package/lib/scheduler.js +471 -0
  164. package/lib/sdk-bridge.js +1792 -0
  165. package/lib/sdk-message-processor.js +740 -0
  166. package/lib/sdk-message-queue.js +42 -0
  167. package/lib/sdk-skill-discovery.js +131 -0
  168. package/lib/sdk-worker.js +677 -0
  169. package/lib/server-admin.js +712 -0
  170. package/lib/server-auth.js +737 -0
  171. package/lib/server-dm.js +170 -0
  172. package/lib/server-palette.js +104 -0
  173. package/lib/server-settings.js +553 -0
  174. package/lib/server-skills.js +280 -0
  175. package/lib/server.js +1390 -0
  176. package/lib/session-search.js +693 -0
  177. package/lib/sessions.js +946 -0
  178. package/lib/smtp.js +221 -0
  179. package/lib/terminal-manager.js +219 -0
  180. package/lib/terminal.js +39 -0
  181. package/lib/themes/ayu-light.json +9 -0
  182. package/lib/themes/catppuccin-latte.json +9 -0
  183. package/lib/themes/catppuccin-mocha.json +9 -0
  184. package/lib/themes/clagentic-dark.json +10 -0
  185. package/lib/themes/clagentic-light.json +10 -0
  186. package/lib/themes/dracula.json +9 -0
  187. package/lib/themes/everforest-light.json +9 -0
  188. package/lib/themes/everforest.json +9 -0
  189. package/lib/themes/github-light.json +9 -0
  190. package/lib/themes/gruvbox-dark.json +9 -0
  191. package/lib/themes/gruvbox-light.json +9 -0
  192. package/lib/themes/monokai.json +9 -0
  193. package/lib/themes/nord-light.json +9 -0
  194. package/lib/themes/nord.json +9 -0
  195. package/lib/themes/one-dark.json +9 -0
  196. package/lib/themes/one-light.json +9 -0
  197. package/lib/themes/rose-pine-dawn.json +9 -0
  198. package/lib/themes/rose-pine.json +9 -0
  199. package/lib/themes/solarized-dark.json +9 -0
  200. package/lib/themes/solarized-light.json +9 -0
  201. package/lib/themes/tokyo-night-light.json +9 -0
  202. package/lib/themes/tokyo-night.json +9 -0
  203. package/lib/updater.js +124 -0
  204. package/lib/user-presence.js +92 -0
  205. package/lib/users-auth.js +146 -0
  206. package/lib/users-permissions.js +118 -0
  207. package/lib/users-preferences.js +254 -0
  208. package/lib/users.js +465 -0
  209. package/lib/utils.js +64 -0
  210. package/lib/worktree.js +134 -0
  211. package/lib/ws-schema.js +464 -0
  212. package/lib/yoke/adapters/claude-worker.js +759 -0
  213. package/lib/yoke/adapters/claude.js +1599 -0
  214. package/lib/yoke/adapters/codex.js +1559 -0
  215. package/lib/yoke/codex-app-server.js +352 -0
  216. package/lib/yoke/index.js +319 -0
  217. package/lib/yoke/instructions.js +61 -0
  218. package/lib/yoke/interface.js +98 -0
  219. package/lib/yoke/mcp-bridge-server.js +302 -0
  220. package/lib/yoke/package.json +7 -0
  221. package/package.json +72 -0
@@ -0,0 +1,1976 @@
1
+ /* ==========================================================================
2
+ File Browser
3
+ ========================================================================== */
4
+
5
+ /* --- Session actions ---
6
+ Compact icon+caption grid. Tile styles come from .palette-tile in
7
+ sidebar.css so the same tiles render correctly in both the active
8
+ grid here and the hidden-grid when edit-mode moves them. */
9
+ #session-actions {
10
+ display: grid;
11
+ grid-template-columns: repeat(4, 1fr);
12
+ gap: 4px;
13
+ padding: 0 8px 4px;
14
+ }
15
+
16
+ /* Badge becomes a small corner indicator in icon-only grid */
17
+ .sidebar-badge {
18
+ position: absolute;
19
+ top: 4px;
20
+ right: 4px;
21
+ background: rgba(var(--overlay-rgb), 0.15);
22
+ color: var(--text-dimmer);
23
+ font-size: 9px;
24
+ font-weight: 700;
25
+ min-width: 14px;
26
+ height: 14px;
27
+ border-radius: 7px;
28
+ display: inline-flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ padding: 0 3px;
32
+ line-height: 1;
33
+ pointer-events: none;
34
+ }
35
+ .sidebar-badge.hidden { display: none; }
36
+
37
+ /* Sticky-notes badge stays clickable in the icon grid — it toggles the
38
+ archive panel. The old inline "Open Archive" expand label doesn't fit
39
+ a corner dot, so it's gone; the cursor and hover color still signal
40
+ that the badge itself is interactive. */
41
+ #sticky-notes-sidebar-count {
42
+ cursor: pointer;
43
+ pointer-events: auto;
44
+ transition: background 0.15s ease, color 0.15s ease;
45
+ }
46
+ #sticky-notes-sidebar-count:hover {
47
+ background: var(--accent);
48
+ color: #fff;
49
+ }
50
+
51
+ /* --- Panels --- */
52
+ .sidebar-panel { flex: 1; overflow-y: auto; min-height: 0; }
53
+ .sidebar-panel.hidden { display: none; }
54
+
55
+ /* --- File browser header --- */
56
+ #sessions-header-content.hidden,
57
+ #files-header-content.hidden {
58
+ display: none;
59
+ }
60
+
61
+ #file-panel-refresh.spinning,
62
+ #file-viewer-refresh.spinning { animation: spin-once 0.5s ease; }
63
+ @keyframes spin-once { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
64
+
65
+ /* --- File browser panel background --- */
66
+ #sidebar-panel-files {
67
+ background: var(--filebrowser-bg);
68
+ border: 1px solid var(--filebrowser-border);
69
+ border-radius: 8px;
70
+ margin: 6px 6px 12px;
71
+ display: flex;
72
+ flex-direction: column;
73
+ /* Own the scroll: inner file-tree scrolls, titlebar/search/hint stay
74
+ anchored. Without this the whole panel (inherited overflow-y:auto
75
+ from .sidebar-panel) scrolled past the search bar. */
76
+ overflow: hidden;
77
+ }
78
+ #sidebar-panel-files.hidden { display: none; }
79
+ #sidebar-panel-files #file-tree {
80
+ flex: 1;
81
+ min-height: 0;
82
+ overflow-y: auto;
83
+ }
84
+
85
+ /* Keyboard hint footer — pinned below the tree, always visible. */
86
+ .fb-kb-hint {
87
+ flex-shrink: 0;
88
+ display: flex;
89
+ align-items: center;
90
+ justify-content: center;
91
+ gap: 6px;
92
+ padding: 6px 8px;
93
+ border-top: 1px solid var(--border-subtle);
94
+ font-size: 10px;
95
+ font-weight: 500;
96
+ color: var(--text-dimmer);
97
+ }
98
+ .fb-kb-hint kbd {
99
+ display: inline-block;
100
+ padding: 1px 5px;
101
+ margin: 0 1px;
102
+ background: var(--bg-alt);
103
+ border: 1px solid var(--border-subtle);
104
+ border-radius: 4px;
105
+ font-size: 10px;
106
+ font-family: inherit;
107
+ color: var(--text-muted);
108
+ }
109
+ .fb-kb-hint span {
110
+ opacity: 0.9;
111
+ }
112
+
113
+ /* --- File browser titlebar --- */
114
+ .fb-titlebar {
115
+ display: flex;
116
+ align-items: center;
117
+ justify-content: space-between;
118
+ padding: 6px 6px;
119
+ border-bottom: 1px solid var(--filebrowser-border);
120
+ flex-shrink: 0;
121
+ user-select: none;
122
+ }
123
+ .fb-titlebar-title {
124
+ font-size: 12px;
125
+ font-weight: 600;
126
+ color: var(--text-secondary);
127
+ flex: 1;
128
+ text-align: center;
129
+ pointer-events: none;
130
+ }
131
+ .fb-titlebar button {
132
+ display: flex;
133
+ align-items: center;
134
+ justify-content: center;
135
+ width: 24px;
136
+ height: 24px;
137
+ border-radius: 6px;
138
+ border: none;
139
+ background: transparent;
140
+ color: var(--text-dimmer);
141
+ cursor: pointer;
142
+ padding: 0;
143
+ transition: color 0.15s, background 0.15s;
144
+ }
145
+ .fb-titlebar button .lucide { width: 13px; height: 13px; }
146
+ .fb-titlebar button:hover { color: var(--text); background: var(--sidebar-hover); }
147
+
148
+ /* --- File search bar (always visible) --- */
149
+ .fb-search-bar {
150
+ display: flex;
151
+ align-items: center;
152
+ padding: 4px 6px 6px;
153
+ position: relative;
154
+ flex-shrink: 0;
155
+ }
156
+ .fb-search-icon {
157
+ position: absolute;
158
+ left: 14px;
159
+ width: 13px;
160
+ height: 13px;
161
+ color: var(--text-dimmer);
162
+ pointer-events: none;
163
+ }
164
+ #fb-search-input {
165
+ width: 100%;
166
+ height: 28px;
167
+ padding: 0 8px 0 28px;
168
+ border: 1px solid var(--border);
169
+ border-radius: 6px;
170
+ background: var(--bg);
171
+ color: var(--text);
172
+ font-family: inherit;
173
+ font-size: 12px;
174
+ outline: none;
175
+ transition: border-color 0.15s;
176
+ }
177
+ #fb-search-input:focus { border-color: var(--accent); }
178
+ #fb-search-input::placeholder { color: var(--text-dimmer); }
179
+
180
+ /* Search match highlight */
181
+ .file-tree-name mark {
182
+ background: color-mix(in srgb, var(--accent) 30%, transparent);
183
+ color: inherit;
184
+ border-radius: 2px;
185
+ padding: 0 1px;
186
+ }
187
+ .fb-search-empty {
188
+ padding: 16px 12px;
189
+ font-size: 12px;
190
+ color: var(--text-dimmer);
191
+ text-align: center;
192
+ }
193
+
194
+ #file-tree {
195
+ flex: 1;
196
+ overflow-y: auto;
197
+ min-height: 0;
198
+ }
199
+
200
+ #sidebar-panel-files.fb-enter { animation: fb-in 0.2s ease-out both; }
201
+ #sidebar-panel-files.fb-exit { animation: fb-out 0.15s ease-in both; }
202
+
203
+ @keyframes fb-in {
204
+ from { opacity: 0; transform: translateY(6px); }
205
+ to { opacity: 1; transform: translateY(0); }
206
+ }
207
+ @keyframes fb-out {
208
+ from { opacity: 1; transform: translateY(0); }
209
+ to { opacity: 0; transform: translateY(6px); }
210
+ }
211
+
212
+ /* --- Drag-and-drop file path into input --- */
213
+ .file-tree-item[draggable="true"] { cursor: grab; }
214
+ .file-tree-item[draggable="true"]:active { cursor: grabbing; }
215
+
216
+ #input.drop-target {
217
+ outline: 2px solid var(--accent);
218
+ outline-offset: -2px;
219
+ background: var(--accent-8);
220
+ }
221
+
222
+ .fb-drop-hint {
223
+ position: absolute;
224
+ top: -32px;
225
+ left: 50%;
226
+ transform: translateX(-50%) translateY(4px);
227
+ background: var(--accent);
228
+ color: var(--bg);
229
+ font-size: 11px;
230
+ font-weight: 600;
231
+ padding: 5px 12px;
232
+ border-radius: 6px;
233
+ white-space: nowrap;
234
+ pointer-events: none;
235
+ opacity: 0;
236
+ box-shadow: 0 2px 8px rgba(var(--shadow-rgb), 0.25);
237
+ transition: opacity 0.15s, transform 0.15s;
238
+ }
239
+ .fb-drop-hint.visible {
240
+ opacity: 1;
241
+ transform: translateX(-50%) translateY(0);
242
+ }
243
+
244
+ /* --- File tree --- */
245
+ #file-tree { padding: 4px 8px; }
246
+
247
+ .file-tree-item {
248
+ display: flex;
249
+ align-items: center;
250
+ gap: 6px;
251
+ padding: 5px 8px;
252
+ border-radius: 8px;
253
+ cursor: pointer;
254
+ font-size: 13px;
255
+ color: var(--text-secondary);
256
+ transition: background 0.15s, color 0.15s;
257
+ user-select: none;
258
+ }
259
+
260
+ .file-tree-item:hover { background: var(--sidebar-hover); color: var(--text); }
261
+ .file-tree-item.active { background: var(--sidebar-active); color: var(--text); }
262
+ /* Keyboard focus ring (arrow-key navigation) — separate from .active
263
+ so the currently-opened file stays visually marked even while the
264
+ user is exploring elsewhere with the arrows. */
265
+ .file-tree-item.fb-kb-focus {
266
+ background: var(--sidebar-hover);
267
+ color: var(--text);
268
+ box-shadow: inset 0 0 0 1px var(--accent);
269
+ }
270
+ #file-tree:focus { outline: none; }
271
+ #file-tree:focus .file-tree-item.fb-kb-focus {
272
+ background: var(--sidebar-active);
273
+ }
274
+ .file-tree-item .lucide { width: 14px; height: 14px; flex-shrink: 0; }
275
+
276
+ .file-tree-name {
277
+ flex: 1;
278
+ overflow: hidden;
279
+ text-overflow: ellipsis;
280
+ white-space: nowrap;
281
+ min-width: 0;
282
+ }
283
+
284
+ .file-tree-icon {
285
+ display: inline-flex;
286
+ align-items: center;
287
+ justify-content: center;
288
+ width: 16px;
289
+ height: 16px;
290
+ flex-shrink: 0;
291
+ line-height: 0;
292
+ }
293
+
294
+ .file-tree-icon svg {
295
+ width: 16px;
296
+ height: 16px;
297
+ }
298
+
299
+ .file-tree-chevron {
300
+ display: inline-flex;
301
+ color: var(--text-dimmer);
302
+ transition: transform 0.15s;
303
+ flex-shrink: 0;
304
+ }
305
+
306
+ .file-tree-chevron .lucide { width: 12px; height: 12px; }
307
+ .file-tree-item.expanded > .file-tree-chevron { transform: rotate(90deg); }
308
+
309
+ .file-tree-spacer { width: 12px; flex-shrink: 0; }
310
+
311
+ .file-tree-children.hidden { display: none; }
312
+
313
+ .file-tree-loading,
314
+ .file-tree-empty {
315
+ padding: 12px 16px;
316
+ font-size: 12px;
317
+ color: var(--text-dimmer);
318
+ font-style: italic;
319
+ }
320
+
321
+ .file-tree-error {
322
+ padding: 12px 16px;
323
+ font-size: 12px;
324
+ color: var(--error);
325
+ }
326
+
327
+ /* --- Panel fullscreen --- */
328
+ @media (min-width: 1024px) {
329
+ #main-column:has(.panel-fullscreen:not(.hidden)) > .title-bar-content { display: none; }
330
+ #main-panels:has(.panel-fullscreen:not(.hidden)) > #app { display: none; }
331
+ }
332
+ @media (max-width: 1023px) {
333
+ #file-viewer-fullscreen,
334
+ #terminal-fullscreen { display: none; }
335
+ }
336
+
337
+ /* --- Project settings --- */
338
+ #project-settings {
339
+ width: 100%;
340
+ max-width: none;
341
+ min-width: 0;
342
+ display: flex;
343
+ overflow: hidden;
344
+ border-left: 1px solid var(--border-subtle);
345
+ }
346
+ #project-settings.hidden { display: none; }
347
+
348
+ .project-settings-layout {
349
+ width: 100%;
350
+ height: 100%;
351
+ display: flex;
352
+ justify-content: center;
353
+ background: var(--sidebar-bg);
354
+ position: relative;
355
+ }
356
+
357
+ .project-settings-layout::after {
358
+ content: "";
359
+ position: absolute;
360
+ top: 0;
361
+ bottom: 0;
362
+ right: 0;
363
+ width: 50%;
364
+ background: var(--bg);
365
+ z-index: 0;
366
+ pointer-events: none;
367
+ }
368
+
369
+ .project-settings-layout > * {
370
+ position: relative;
371
+ z-index: 1;
372
+ }
373
+
374
+ .project-settings-nav {
375
+ width: 232px;
376
+ flex-shrink: 0;
377
+ background: var(--sidebar-bg);
378
+ overflow-y: auto;
379
+ overflow-x: hidden;
380
+ display: flex;
381
+ justify-content: flex-end;
382
+ }
383
+
384
+ .project-settings-nav-inner {
385
+ width: 200px;
386
+ flex-shrink: 0;
387
+ padding: 60px 6px 40px 0;
388
+ }
389
+
390
+ .project-settings-content {
391
+ flex: 1 1 auto;
392
+ min-width: 0;
393
+ max-width: 740px;
394
+ background: var(--bg);
395
+ overflow-y: auto;
396
+ overflow-x: hidden;
397
+ }
398
+
399
+ .project-settings-content-inner {
400
+ padding: 60px 40px 60px 40px;
401
+ }
402
+
403
+ .project-settings-close-col {
404
+ position: absolute;
405
+ top: 60px;
406
+ right: 20px;
407
+ z-index: 5;
408
+ }
409
+
410
+ /* Project settings sections */
411
+ .ps-section { display: none; }
412
+ .ps-section.active { display: block; }
413
+ .ps-section h2 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
414
+
415
+ .ps-section-desc {
416
+ font-size: 13px;
417
+ color: var(--text-muted);
418
+ line-height: 1.5;
419
+ margin: -8px 0 20px;
420
+ }
421
+
422
+ /* MCP Servers Modal */
423
+ #mcp-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
424
+ #mcp-modal.hidden { display: none; }
425
+ .mcp-dialog {
426
+ width: 480px;
427
+ max-width: 94vw;
428
+ max-height: 70vh;
429
+ display: flex;
430
+ flex-direction: column;
431
+ padding: 0;
432
+ overflow: hidden;
433
+ }
434
+ .mcp-header {
435
+ display: flex;
436
+ align-items: center;
437
+ justify-content: space-between;
438
+ padding: 16px 20px;
439
+ border-bottom: 1px solid var(--border);
440
+ }
441
+ .mcp-title {
442
+ display: flex;
443
+ align-items: center;
444
+ gap: 8px;
445
+ font-size: 16px;
446
+ font-weight: 700;
447
+ color: var(--text);
448
+ }
449
+ .mcp-title .lucide { width: 18px; height: 18px; }
450
+ .mcp-content {
451
+ padding: 16px 20px;
452
+ overflow-y: auto;
453
+ flex: 1;
454
+ }
455
+ .mcp-desc {
456
+ font-size: 13px;
457
+ color: var(--text-muted);
458
+ margin: 0 0 16px;
459
+ line-height: 1.5;
460
+ }
461
+ .mcp-empty {
462
+ text-align: center;
463
+ padding: 32px 16px;
464
+ color: var(--text-muted);
465
+ }
466
+ .mcp-empty .lucide { width: 32px; height: 32px; margin-bottom: 12px; opacity: 0.4; }
467
+ .mcp-empty-title {
468
+ font-size: 15px;
469
+ font-weight: 600;
470
+ color: var(--text-secondary);
471
+ margin: 0 0 6px;
472
+ }
473
+ .mcp-empty-desc {
474
+ font-size: 13px;
475
+ color: var(--text-muted);
476
+ margin: 0;
477
+ line-height: 1.5;
478
+ }
479
+ .mcp-ext-setup-btn {
480
+ display: inline-flex;
481
+ align-items: center;
482
+ gap: 6px;
483
+ padding: 7px 14px;
484
+ margin-top: 14px;
485
+ font-size: 13px;
486
+ font-weight: 500;
487
+ color: var(--text);
488
+ background: var(--bg-hover, rgba(255,255,255,0.06));
489
+ border: 1px solid var(--border);
490
+ border-radius: 8px;
491
+ cursor: pointer;
492
+ transition: background 0.15s;
493
+ }
494
+ .mcp-ext-setup-btn:hover {
495
+ background: var(--bg-active, rgba(255,255,255,0.1));
496
+ }
497
+ .mcp-ext-setup-btn .lucide {
498
+ width: 14px;
499
+ height: 14px;
500
+ }
501
+ .mcp-install-cmd-row {
502
+ display: flex;
503
+ align-items: center;
504
+ gap: 6px;
505
+ margin-top: 12px;
506
+ max-width: 100%;
507
+ }
508
+ .mcp-install-cmd {
509
+ flex: 1;
510
+ padding: 8px 10px;
511
+ background: var(--bg-deep, rgba(0,0,0,0.25));
512
+ border: 1px solid var(--border);
513
+ border-radius: 6px;
514
+ font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
515
+ font-size: 12px;
516
+ color: var(--text);
517
+ overflow-x: auto;
518
+ white-space: nowrap;
519
+ line-height: 1.4;
520
+ }
521
+ .mcp-install-copy-btn {
522
+ flex-shrink: 0;
523
+ padding: 6px 8px;
524
+ background: var(--bg-hover, rgba(255,255,255,0.06));
525
+ border: 1px solid var(--border);
526
+ border-radius: 6px;
527
+ color: var(--text-muted);
528
+ cursor: pointer;
529
+ transition: background 0.15s;
530
+ }
531
+ .mcp-install-copy-btn:hover {
532
+ background: var(--bg-active, rgba(255,255,255,0.1));
533
+ }
534
+ .mcp-install-copy-btn .lucide {
535
+ width: 14px;
536
+ height: 14px;
537
+ }
538
+ .mcp-steps {
539
+ display: flex;
540
+ flex-direction: column;
541
+ gap: 2px;
542
+ }
543
+ .mcp-step {
544
+ display: flex;
545
+ gap: 12px;
546
+ padding: 12px 14px;
547
+ border-radius: 8px;
548
+ transition: opacity 0.15s;
549
+ }
550
+ .mcp-step.disabled {
551
+ opacity: 0.4;
552
+ pointer-events: none;
553
+ }
554
+ .mcp-step-icon {
555
+ flex-shrink: 0;
556
+ width: 22px;
557
+ height: 22px;
558
+ margin-top: 1px;
559
+ color: var(--text-muted);
560
+ }
561
+ .mcp-step-icon.done {
562
+ color: var(--green, #2ecc71);
563
+ }
564
+ .mcp-step-icon .lucide {
565
+ width: 20px;
566
+ height: 20px;
567
+ }
568
+ .mcp-step-body {
569
+ flex: 1;
570
+ min-width: 0;
571
+ }
572
+ .mcp-step-title {
573
+ font-size: 13px;
574
+ font-weight: 600;
575
+ color: var(--text);
576
+ margin-bottom: 2px;
577
+ }
578
+ .mcp-step-desc {
579
+ font-size: 12px;
580
+ color: var(--text-muted);
581
+ line-height: 1.4;
582
+ }
583
+ .mcp-step.done .mcp-step-desc {
584
+ color: var(--green, #2ecc71);
585
+ }
586
+ .mcp-divider {
587
+ height: 1px;
588
+ background: var(--border);
589
+ margin: 12px 0;
590
+ }
591
+ .mcp-server-row {
592
+ display: flex;
593
+ align-items: center;
594
+ gap: 12px;
595
+ padding: 10px 0;
596
+ border-bottom: 1px solid var(--border);
597
+ cursor: pointer;
598
+ transition: background 0.1s;
599
+ }
600
+ .mcp-server-row:last-child { border-bottom: none; }
601
+ .mcp-server-row:hover { background: var(--bg-dim); margin: 0 -20px; padding: 10px 20px; }
602
+ .mcp-server-row input[type="checkbox"] {
603
+ width: 16px;
604
+ height: 16px;
605
+ margin: 0;
606
+ cursor: pointer;
607
+ flex-shrink: 0;
608
+ }
609
+ .mcp-server-info {
610
+ display: flex;
611
+ flex-direction: column;
612
+ gap: 2px;
613
+ flex: 1;
614
+ min-width: 0;
615
+ }
616
+ .mcp-server-name {
617
+ font-size: 14px;
618
+ font-weight: 500;
619
+ color: var(--text);
620
+ }
621
+ .mcp-server-meta {
622
+ font-size: 12px;
623
+ color: var(--text-muted);
624
+ }
625
+
626
+ /* Beta toggle row inside settings card */
627
+ .ps-beta-toggle-row,
628
+ .ss-beta-toggle-row {
629
+ margin-top: 8px;
630
+ padding: 0;
631
+ cursor: pointer;
632
+ }
633
+
634
+ /* Profile: name row */
635
+ .ps-name-row {
636
+ display: flex;
637
+ align-items: center;
638
+ gap: 8px;
639
+ }
640
+
641
+ .ps-rename-form {
642
+ display: flex;
643
+ flex-direction: column;
644
+ gap: 8px;
645
+ margin-top: 8px;
646
+ }
647
+ .ps-rename-form.hidden { display: none; }
648
+
649
+ .ps-rename-actions {
650
+ display: flex;
651
+ gap: 6px;
652
+ }
653
+
654
+ .ps-text-input {
655
+ width: 100%;
656
+ padding: 8px 12px;
657
+ border: 1px solid var(--border);
658
+ border-radius: 6px;
659
+ background: var(--bg);
660
+ color: var(--text);
661
+ font-family: inherit;
662
+ font-size: 14px;
663
+ outline: none;
664
+ transition: border-color 0.15s;
665
+ }
666
+ .ps-text-input:focus { border-color: var(--accent); }
667
+
668
+ /* Profile: owner row */
669
+ .ps-owner-row {
670
+ display: flex;
671
+ align-items: center;
672
+ gap: 8px;
673
+ flex-wrap: wrap;
674
+ }
675
+ .ps-owner-locked-hint {
676
+ font-size: 12px;
677
+ color: var(--text-muted);
678
+ width: 100%;
679
+ }
680
+ .ps-owner-locked-hint.hidden { display: none; }
681
+
682
+ .ps-transfer-form {
683
+ margin-top: 8px;
684
+ }
685
+
686
+ .ps-select {
687
+ width: 100%;
688
+ padding: 6px 10px;
689
+ border: 1px solid var(--border);
690
+ border-radius: 6px;
691
+ background: var(--bg);
692
+ color: var(--text);
693
+ font-size: 13px;
694
+ margin-bottom: 8px;
695
+ }
696
+
697
+ /* Profile: icon row */
698
+ .ps-icon-row {
699
+ display: flex;
700
+ align-items: center;
701
+ gap: 10px;
702
+ }
703
+
704
+ .ps-icon-preview {
705
+ font-size: 32px;
706
+ line-height: 1;
707
+ min-width: 40px;
708
+ text-align: center;
709
+ }
710
+
711
+ .ps-icon-preview:empty::after {
712
+ content: "—";
713
+ font-size: 14px;
714
+ color: var(--text-dimmer);
715
+ }
716
+
717
+ /* Textarea */
718
+ .ps-textarea {
719
+ width: 100%;
720
+ min-height: 200px;
721
+ padding: 12px;
722
+ border: 1px solid var(--border);
723
+ border-radius: 6px;
724
+ background: var(--bg);
725
+ color: var(--text);
726
+ font-family: inherit;
727
+ font-size: 13px;
728
+ line-height: 1.6;
729
+ outline: none;
730
+ resize: vertical;
731
+ transition: border-color 0.15s;
732
+ }
733
+ .ps-textarea:focus { border-color: var(--accent); }
734
+ .ps-textarea-mono { font-family: "Roboto Mono", monospace; font-size: 12px; }
735
+
736
+ .ps-textarea-actions {
737
+ display: flex;
738
+ align-items: center;
739
+ gap: 8px;
740
+ margin-top: 8px;
741
+ }
742
+
743
+ .ps-save-status {
744
+ font-size: 12px;
745
+ color: var(--text-dimmer);
746
+ }
747
+
748
+ /* Environment notice */
749
+ .ps-env-notice {
750
+ display: flex;
751
+ align-items: flex-start;
752
+ gap: 6px;
753
+ padding: 10px 14px;
754
+ border-radius: 8px;
755
+ background: rgba(var(--overlay-rgb), 0.04);
756
+ border: 1px solid var(--border-subtle);
757
+ margin-bottom: 16px;
758
+ font-size: 12px;
759
+ color: var(--text-muted);
760
+ line-height: 1.5;
761
+ }
762
+ .ps-env-notice.hidden { display: none; }
763
+ .ps-env-notice .lucide { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
764
+
765
+ /* Environment key-value list */
766
+ .ps-env-header {
767
+ display: flex;
768
+ align-items: center;
769
+ gap: 10px;
770
+ margin-bottom: 12px;
771
+ }
772
+
773
+ .ps-env-header .settings-btn-sm {
774
+ display: inline-flex;
775
+ align-items: center;
776
+ gap: 4px;
777
+ }
778
+ .ps-env-header .settings-btn-sm .lucide { width: 14px; height: 14px; }
779
+
780
+ .ps-env-list {
781
+ display: flex;
782
+ flex-direction: column;
783
+ gap: 6px;
784
+ }
785
+
786
+ .ps-env-row {
787
+ display: flex;
788
+ align-items: center;
789
+ gap: 8px;
790
+ }
791
+
792
+ .ps-env-key {
793
+ flex: 0 0 40%;
794
+ min-width: 0;
795
+ padding: 8px 12px;
796
+ border: 1px solid var(--border);
797
+ border-radius: 6px;
798
+ background: var(--bg);
799
+ color: var(--text);
800
+ font-family: "Roboto Mono", monospace;
801
+ font-size: 13px;
802
+ outline: none;
803
+ transition: border-color 0.15s;
804
+ }
805
+ .ps-env-key:focus { border-color: var(--accent); }
806
+ .ps-env-key::placeholder { color: var(--text-dimmer); }
807
+
808
+ .ps-env-val {
809
+ flex: 1;
810
+ min-width: 0;
811
+ padding: 8px 12px;
812
+ border: 1px solid var(--border);
813
+ border-radius: 6px;
814
+ background: var(--bg);
815
+ color: var(--text);
816
+ font-family: "Roboto Mono", monospace;
817
+ font-size: 13px;
818
+ outline: none;
819
+ transition: border-color 0.15s;
820
+ }
821
+ .ps-env-val:focus { border-color: var(--accent); }
822
+ .ps-env-val::placeholder { color: var(--text-dimmer); }
823
+
824
+ .ps-env-del {
825
+ flex-shrink: 0;
826
+ display: flex;
827
+ align-items: center;
828
+ justify-content: center;
829
+ width: 32px;
830
+ height: 32px;
831
+ border: none;
832
+ border-radius: 6px;
833
+ background: transparent;
834
+ color: var(--text-dimmer);
835
+ cursor: pointer;
836
+ transition: background 0.15s, color 0.15s;
837
+ }
838
+ .ps-env-del:hover { background: var(--error-12); color: var(--error); }
839
+ .ps-env-del .lucide { width: 16px; height: 16px; }
840
+
841
+ /* Environment tabs (Project / Shared) */
842
+ .ps-env-tabs {
843
+ display: flex;
844
+ gap: 0;
845
+ border-bottom: 1px solid var(--border-subtle);
846
+ margin-bottom: 16px;
847
+ }
848
+
849
+ .ps-env-tab {
850
+ padding: 8px 16px;
851
+ border: none;
852
+ background: none;
853
+ color: var(--text-muted);
854
+ font-family: inherit;
855
+ font-size: 14px;
856
+ font-weight: 500;
857
+ cursor: pointer;
858
+ border-bottom: 2px solid transparent;
859
+ transition: color 0.15s, border-color 0.15s;
860
+ margin-bottom: -1px;
861
+ }
862
+
863
+ .ps-env-tab:hover {
864
+ color: var(--text-secondary);
865
+ }
866
+
867
+ .ps-env-tab.active {
868
+ color: var(--text);
869
+ border-bottom-color: var(--accent);
870
+ }
871
+
872
+ .ps-env-tab-content {
873
+ display: none;
874
+ }
875
+
876
+ .ps-env-tab-content.active {
877
+ display: block;
878
+ }
879
+
880
+ @media (max-width: 1023px) {
881
+ #project-settings {
882
+ position: fixed;
883
+ inset: 0;
884
+ z-index: 300;
885
+ border-left: none;
886
+ }
887
+ }
888
+
889
+ @media (max-width: 768px) {
890
+ .project-settings-layout {
891
+ flex-direction: column;
892
+ background: var(--sidebar-bg);
893
+ }
894
+
895
+ .project-settings-layout::after {
896
+ display: none;
897
+ }
898
+
899
+ .project-settings-nav {
900
+ width: 100%;
901
+ flex-shrink: 0;
902
+ justify-content: flex-start;
903
+ overflow-y: visible;
904
+ border-bottom: 1px solid var(--border-subtle);
905
+ }
906
+
907
+ .project-settings-nav-inner {
908
+ width: 100%;
909
+ padding: var(--safe-top) 0 0;
910
+ display: flex;
911
+ flex-direction: column;
912
+ gap: 0;
913
+ }
914
+
915
+ /* Hide desktop nav items on mobile, show dropdown instead */
916
+ .project-settings-nav .server-settings-nav-items {
917
+ display: none;
918
+ }
919
+
920
+ .project-settings-nav .settings-nav-dropdown {
921
+ display: block;
922
+ width: calc(100% - 32px);
923
+ margin: 0 16px 12px;
924
+ }
925
+
926
+ .project-settings-content {
927
+ flex: 1 1 auto;
928
+ max-width: none;
929
+ background: var(--bg);
930
+ }
931
+
932
+ .project-settings-content-inner {
933
+ padding: 24px 16px;
934
+ }
935
+
936
+ .project-settings-close-col {
937
+ position: absolute;
938
+ top: calc(var(--safe-top) + 8px);
939
+ right: 12px;
940
+ z-index: 10;
941
+ }
942
+
943
+ .project-settings-close-col .server-settings-close-btn {
944
+ width: 36px;
945
+ height: 36px;
946
+ background: none;
947
+ border: none;
948
+ }
949
+
950
+ .project-settings-close-col .server-settings-close-btn span {
951
+ display: none;
952
+ }
953
+ }
954
+
955
+ /* --- File viewer --- */
956
+
957
+ /* Wide screens: split panel beside #app */
958
+ @media (min-width: 1024px) {
959
+ #file-viewer {
960
+ width: 50%;
961
+ max-width: 720px;
962
+ min-width: 360px;
963
+ border-left: 1px solid var(--border);
964
+ background: var(--bg);
965
+ display: flex;
966
+ flex-direction: column;
967
+ overflow: hidden;
968
+ flex-shrink: 0;
969
+ transition: max-width 0.2s ease, width 0.2s ease;
970
+ }
971
+ #file-viewer.hidden { display: none; }
972
+ #file-viewer.file-viewer-wide {
973
+ width: 70%;
974
+ max-width: 1200px;
975
+ }
976
+ #file-viewer.panel-fullscreen {
977
+ width: 100%;
978
+ max-width: none;
979
+ min-width: 0;
980
+ }
981
+ }
982
+
983
+ /* Narrow screens: full overlay */
984
+ @media (max-width: 1023px) {
985
+ #file-viewer {
986
+ position: fixed;
987
+ inset: 0;
988
+ background: var(--bg);
989
+ z-index: 300;
990
+ display: flex;
991
+ flex-direction: column;
992
+ overflow: hidden;
993
+ }
994
+ #file-viewer.hidden { display: none; }
995
+ }
996
+
997
+ .file-viewer-header {
998
+ display: flex;
999
+ align-items: center;
1000
+ gap: 8px;
1001
+ padding: 10px 16px;
1002
+ border-bottom: 1px solid var(--border-subtle);
1003
+ flex-shrink: 0;
1004
+ min-height: 44px;
1005
+ }
1006
+
1007
+ .file-viewer-path {
1008
+ flex: 1;
1009
+ font-family: "Roboto Mono", monospace;
1010
+ font-size: 13px;
1011
+ color: var(--text-secondary);
1012
+ overflow: hidden;
1013
+ text-overflow: ellipsis;
1014
+ white-space: nowrap;
1015
+ direction: rtl;
1016
+ text-align: left;
1017
+ }
1018
+
1019
+ .file-viewer-btn {
1020
+ display: flex;
1021
+ align-items: center;
1022
+ justify-content: center;
1023
+ width: 28px;
1024
+ height: 28px;
1025
+ border-radius: 6px;
1026
+ border: none;
1027
+ background: transparent;
1028
+ color: var(--text-muted);
1029
+ cursor: pointer;
1030
+ flex-shrink: 0;
1031
+ transition: background 0.15s, color 0.15s;
1032
+ }
1033
+
1034
+ .file-viewer-btn:hover { background: var(--sidebar-hover); color: var(--text); }
1035
+ .file-viewer-btn.active { background: var(--accent-bg); color: var(--accent); }
1036
+ .file-viewer-btn.hidden { display: none; }
1037
+ .file-viewer-btn .lucide { width: 16px; height: 16px; }
1038
+
1039
+ /* --- Markdown rendered view --- */
1040
+ .file-viewer-markdown {
1041
+ padding: 20px 24px;
1042
+ font-size: 14px;
1043
+ line-height: 1.7;
1044
+ color: var(--text);
1045
+ }
1046
+
1047
+ .file-viewer-markdown h1,
1048
+ .file-viewer-markdown h2,
1049
+ .file-viewer-markdown h3,
1050
+ .file-viewer-markdown h4 { color: var(--text); margin: 1.2em 0 0.5em; }
1051
+ .file-viewer-markdown h1 { font-size: 1.6em; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.3em; }
1052
+ .file-viewer-markdown h2 { font-size: 1.3em; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.3em; }
1053
+ .file-viewer-markdown h3 { font-size: 1.1em; }
1054
+
1055
+ .file-viewer-markdown p { margin: 0.6em 0; }
1056
+ .file-viewer-markdown a { color: var(--accent); text-decoration: none; }
1057
+ .file-viewer-markdown a:hover { text-decoration: underline; }
1058
+
1059
+ .file-viewer-markdown ul,
1060
+ .file-viewer-markdown ol { padding-left: 1.5em; margin: 0.5em 0; }
1061
+ .file-viewer-markdown li { margin: 0.25em 0; }
1062
+
1063
+ .file-viewer-markdown code {
1064
+ background: var(--code-bg);
1065
+ padding: 2px 5px;
1066
+ border-radius: 4px;
1067
+ font-size: 0.9em;
1068
+ }
1069
+
1070
+ .file-viewer-markdown pre {
1071
+ background: var(--code-bg);
1072
+ border-radius: 8px;
1073
+ padding: 12px 16px;
1074
+ overflow-x: auto;
1075
+ margin: 0.8em 0;
1076
+ }
1077
+
1078
+ .file-viewer-markdown pre code {
1079
+ background: none;
1080
+ padding: 0;
1081
+ font-size: 13px;
1082
+ line-height: 1.5;
1083
+ }
1084
+
1085
+ .file-viewer-markdown blockquote {
1086
+ border-left: 3px solid var(--accent);
1087
+ padding-left: 12px;
1088
+ margin: 0.8em 0;
1089
+ color: var(--text-secondary);
1090
+ }
1091
+
1092
+ .file-viewer-markdown table {
1093
+ border-collapse: collapse;
1094
+ margin: 0.8em 0;
1095
+ width: 100%;
1096
+ }
1097
+
1098
+ .file-viewer-markdown th,
1099
+ .file-viewer-markdown td {
1100
+ border: 1px solid var(--border);
1101
+ padding: 6px 12px;
1102
+ text-align: left;
1103
+ font-size: 13px;
1104
+ }
1105
+
1106
+ .file-viewer-markdown th { background: var(--bg-alt); font-weight: 600; }
1107
+
1108
+ .file-viewer-markdown hr {
1109
+ border: none;
1110
+ border-top: 1px solid var(--border-subtle);
1111
+ margin: 1.5em 0;
1112
+ }
1113
+
1114
+ .file-viewer-markdown img { max-width: 100%; border-radius: 8px; }
1115
+
1116
+ .file-viewer-body {
1117
+ flex: 1;
1118
+ overflow: auto;
1119
+ padding: 0;
1120
+ }
1121
+
1122
+ .file-viewer-body pre {
1123
+ margin: 0;
1124
+ padding: 16px 20px;
1125
+ font-family: "Roboto Mono", monospace;
1126
+ font-size: 13px;
1127
+ line-height: 1.55;
1128
+ color: var(--text);
1129
+ white-space: pre-wrap;
1130
+ word-break: break-word;
1131
+ tab-size: 2;
1132
+ }
1133
+
1134
+ .file-viewer-body pre code {
1135
+ background: none;
1136
+ padding: 0;
1137
+ border-radius: 0;
1138
+ font-size: inherit;
1139
+ line-height: inherit;
1140
+ }
1141
+
1142
+ /* Code with line numbers */
1143
+ .file-viewer-code {
1144
+ display: flex;
1145
+ min-height: 0;
1146
+ }
1147
+
1148
+ .file-viewer-code pre {
1149
+ margin: 0;
1150
+ font-family: "Roboto Mono", monospace;
1151
+ font-size: 13px;
1152
+ line-height: 1.55;
1153
+ white-space: pre;
1154
+ word-break: normal;
1155
+ tab-size: 2;
1156
+ }
1157
+
1158
+ .file-viewer-gutter {
1159
+ flex-shrink: 0;
1160
+ padding: 12px 10px 12px 14px;
1161
+ text-align: right;
1162
+ color: var(--text-dimmer);
1163
+ opacity: 0.5;
1164
+ user-select: none;
1165
+ -webkit-user-select: none;
1166
+ border-right: 1px solid var(--border-subtle);
1167
+ min-width: 44px;
1168
+ position: sticky;
1169
+ left: 0;
1170
+ background: var(--bg);
1171
+ z-index: 1;
1172
+ }
1173
+
1174
+ .file-viewer-code-content {
1175
+ flex: 1;
1176
+ padding: 12px 14px;
1177
+ min-width: 0;
1178
+ }
1179
+
1180
+ .file-viewer-code-content code {
1181
+ font-family: inherit;
1182
+ font-size: inherit;
1183
+ line-height: inherit;
1184
+ background: none;
1185
+ padding: 0;
1186
+ border-radius: 0;
1187
+ }
1188
+
1189
+ .file-viewer-code-content .hljs {
1190
+ background: transparent;
1191
+ padding: 0;
1192
+ }
1193
+
1194
+ .file-viewer-binary {
1195
+ display: flex;
1196
+ align-items: center;
1197
+ justify-content: center;
1198
+ height: 100%;
1199
+ color: var(--text-dimmer);
1200
+ font-size: 14px;
1201
+ }
1202
+
1203
+ .file-viewer-image {
1204
+ display: flex;
1205
+ align-items: center;
1206
+ justify-content: center;
1207
+ padding: 20px;
1208
+ }
1209
+
1210
+ .file-viewer-image img {
1211
+ max-width: 100%;
1212
+ max-height: 80vh;
1213
+ border-radius: 8px;
1214
+ border: 1px solid var(--border-subtle);
1215
+ }
1216
+
1217
+ /* --- Web Terminal --- */
1218
+
1219
+ /* Terminal header with tabs */
1220
+ .terminal-header {
1221
+ display: flex;
1222
+ align-items: center;
1223
+ border-bottom: 1px solid var(--border-subtle);
1224
+ flex-shrink: 0;
1225
+ min-height: 40px;
1226
+ background: var(--bg);
1227
+ }
1228
+
1229
+ .terminal-tabs {
1230
+ display: flex;
1231
+ overflow-x: auto;
1232
+ -webkit-overflow-scrolling: touch;
1233
+ gap: 0;
1234
+ min-width: 0;
1235
+ padding-left: 4px;
1236
+ }
1237
+
1238
+ .terminal-tabs::-webkit-scrollbar { display: none; }
1239
+
1240
+ .terminal-new-tab-btn {
1241
+ display: flex;
1242
+ align-items: center;
1243
+ justify-content: center;
1244
+ width: 28px;
1245
+ height: 28px;
1246
+ flex-shrink: 0;
1247
+ border: none;
1248
+ background: transparent;
1249
+ color: var(--text-muted);
1250
+ cursor: pointer;
1251
+ border-radius: 6px;
1252
+ padding: 0;
1253
+ margin: 4px 2px;
1254
+ transition: background 0.15s, color 0.15s;
1255
+ }
1256
+ .terminal-new-tab-btn:hover { background: rgba(var(--overlay-rgb),0.08); color: var(--text); }
1257
+ .terminal-new-tab-btn .lucide { width: 14px; height: 14px; }
1258
+
1259
+ .terminal-tab {
1260
+ display: flex;
1261
+ align-items: center;
1262
+ gap: 4px;
1263
+ padding: 8px 10px;
1264
+ font-size: 12px;
1265
+ font-family: "Pretendard", sans-serif;
1266
+ color: var(--text-muted);
1267
+ cursor: pointer;
1268
+ white-space: nowrap;
1269
+ border-bottom: 2px solid transparent;
1270
+ transition: color 0.15s, border-color 0.15s;
1271
+ flex-shrink: 0;
1272
+ user-select: none;
1273
+ }
1274
+
1275
+ .terminal-tab:hover { color: var(--text-secondary); }
1276
+ .terminal-tab.active { color: var(--text); border-color: var(--accent); }
1277
+ .terminal-tab.exited { opacity: 0.5; }
1278
+
1279
+
1280
+ .terminal-tab-more {
1281
+ display: none;
1282
+ align-items: center;
1283
+ justify-content: center;
1284
+ width: 16px;
1285
+ height: 16px;
1286
+ border-radius: 3px;
1287
+ border: none;
1288
+ background: transparent;
1289
+ color: var(--text-dimmer);
1290
+ cursor: pointer;
1291
+ padding: 0;
1292
+ line-height: 1;
1293
+ }
1294
+
1295
+ .terminal-tab:hover .terminal-tab-more,
1296
+ .terminal-tab.active .terminal-tab-more { display: flex; }
1297
+ .terminal-tab-more:hover { background: rgba(var(--overlay-rgb),0.1); color: var(--text); }
1298
+
1299
+ .terminal-tab-ctx {
1300
+ position: fixed;
1301
+ z-index: 9999;
1302
+ min-width: 120px;
1303
+ background: var(--bg-elevated, var(--bg));
1304
+ border: 1px solid var(--border);
1305
+ border-radius: 6px;
1306
+ padding: 4px;
1307
+ box-shadow: 0 4px 12px rgba(0,0,0,0.15);
1308
+ }
1309
+
1310
+ .terminal-tab-ctx-item {
1311
+ display: flex;
1312
+ align-items: center;
1313
+ gap: 8px;
1314
+ width: 100%;
1315
+ padding: 6px 10px;
1316
+ border: none;
1317
+ border-radius: 4px;
1318
+ background: transparent;
1319
+ color: var(--text-secondary);
1320
+ font-size: 12px;
1321
+ cursor: pointer;
1322
+ white-space: nowrap;
1323
+ }
1324
+
1325
+ .terminal-tab-ctx-item:hover {
1326
+ background: rgba(var(--overlay-rgb),0.08);
1327
+ color: var(--text);
1328
+ }
1329
+
1330
+ .terminal-tab-ctx-danger:hover {
1331
+ color: #e74c3c;
1332
+ }
1333
+
1334
+ .terminal-tab-label { cursor: default; }
1335
+
1336
+ .terminal-tab-rename {
1337
+ background: var(--bg);
1338
+ border: 1px solid var(--accent);
1339
+ border-radius: 3px;
1340
+ color: var(--text);
1341
+ font-size: 12px;
1342
+ font-family: "Roboto Mono", monospace;
1343
+ padding: 1px 4px;
1344
+ outline: none;
1345
+ width: 100px;
1346
+ }
1347
+
1348
+ .terminal-header-actions {
1349
+ display: flex;
1350
+ align-items: center;
1351
+ gap: 2px;
1352
+ padding: 0 8px;
1353
+ flex-shrink: 0;
1354
+ margin-left: auto;
1355
+ }
1356
+
1357
+ /* Wide screens: split panel beside #app */
1358
+ @media (min-width: 1024px) {
1359
+ #terminal-container {
1360
+ width: 50%;
1361
+ max-width: 720px;
1362
+ min-width: 360px;
1363
+ min-height: 0;
1364
+ border-left: 1px solid var(--border);
1365
+ background: var(--bg);
1366
+ display: flex;
1367
+ flex-direction: column;
1368
+ overflow: hidden;
1369
+ flex-shrink: 0;
1370
+ }
1371
+ #terminal-container.hidden { display: none; }
1372
+ #terminal-container.panel-fullscreen {
1373
+ width: 100%;
1374
+ max-width: none;
1375
+ min-width: 0;
1376
+ }
1377
+ }
1378
+
1379
+ /* Narrow screens: full overlay */
1380
+ @media (max-width: 1023px) {
1381
+ #terminal-container {
1382
+ position: fixed;
1383
+ top: 0;
1384
+ left: 0;
1385
+ right: 0;
1386
+ bottom: 0;
1387
+ padding-top: var(--safe-top);
1388
+ padding-bottom: var(--safe-bottom);
1389
+ background: var(--bg);
1390
+ z-index: 300;
1391
+ display: flex;
1392
+ flex-direction: column;
1393
+ overflow: hidden;
1394
+ }
1395
+ #terminal-container.hidden { display: none; }
1396
+ }
1397
+
1398
+ #terminal-body {
1399
+ flex: 1;
1400
+ min-height: 0;
1401
+ overflow: hidden;
1402
+ position: relative;
1403
+ }
1404
+
1405
+ .terminal-tab-body {
1406
+ position: absolute;
1407
+ inset: 0;
1408
+ padding: 4px 0 0 4px;
1409
+ }
1410
+
1411
+ .terminal-tab-body .xterm {
1412
+ height: 100%;
1413
+ overflow: hidden;
1414
+ }
1415
+
1416
+ /* --- Terminal key toolbar (mobile) --- */
1417
+ #terminal-toolbar {
1418
+ display: flex;
1419
+ align-items: center;
1420
+ gap: 6px;
1421
+ padding: 6px 8px;
1422
+ background: #252525;
1423
+ border-bottom: 1px solid #333;
1424
+ flex-shrink: 0;
1425
+ overflow-x: auto;
1426
+ -webkit-overflow-scrolling: touch;
1427
+ }
1428
+
1429
+ #terminal-toolbar.hidden { display: none; }
1430
+
1431
+ .term-key {
1432
+ display: flex;
1433
+ align-items: center;
1434
+ justify-content: center;
1435
+ height: 36px;
1436
+ min-width: 40px;
1437
+ padding: 0 10px;
1438
+ border-radius: 6px;
1439
+ border: 1px solid #444;
1440
+ background: #333;
1441
+ color: #d4d4d4;
1442
+ font-family: "Roboto Mono", monospace;
1443
+ font-size: 12px;
1444
+ font-weight: 500;
1445
+ cursor: pointer;
1446
+ flex-shrink: 0;
1447
+ -webkit-tap-highlight-color: transparent;
1448
+ user-select: none;
1449
+ transition: background 0.1s, border-color 0.1s;
1450
+ }
1451
+
1452
+ .term-key:active {
1453
+ background: #555;
1454
+ border-color: #666;
1455
+ }
1456
+
1457
+ .term-key-toggle.active {
1458
+ background: var(--accent);
1459
+ border-color: var(--accent);
1460
+ color: #fff;
1461
+ }
1462
+
1463
+ .term-key-arrow {
1464
+ min-width: 34px;
1465
+ padding: 0 6px;
1466
+ font-size: 10px;
1467
+ }
1468
+
1469
+ .term-key-spacer {
1470
+ flex: 1;
1471
+ min-width: 4px;
1472
+ }
1473
+
1474
+ .terminal-hint {
1475
+ padding: 16px;
1476
+ font-size: 13px;
1477
+ color: var(--text-dimmer);
1478
+ font-style: italic;
1479
+ }
1480
+
1481
+ /* --- Terminal context menu --- */
1482
+ .term-ctx-menu {
1483
+ position: fixed;
1484
+ background: var(--bg-alt);
1485
+ border: 1px solid var(--border);
1486
+ border-radius: 10px;
1487
+ padding: 4px 0;
1488
+ min-width: 160px;
1489
+ box-shadow: 0 4px 16px rgba(var(--shadow-rgb), 0.4);
1490
+ z-index: 500;
1491
+ }
1492
+
1493
+ .term-ctx-item {
1494
+ display: flex;
1495
+ align-items: center;
1496
+ gap: 8px;
1497
+ width: 100%;
1498
+ padding: 8px 12px;
1499
+ font-size: 13px;
1500
+ color: var(--text-secondary);
1501
+ background: none;
1502
+ border: none;
1503
+ font-family: inherit;
1504
+ cursor: pointer;
1505
+ transition: background 0.15s;
1506
+ }
1507
+
1508
+ .term-ctx-item .lucide { width: 14px; height: 14px; flex-shrink: 0; }
1509
+ .term-ctx-item:hover { background: rgba(var(--overlay-rgb), 0.05); }
1510
+
1511
+ /* --- File Edit History --- */
1512
+
1513
+ .file-history-panel {
1514
+ padding: 16px 20px;
1515
+ height: 100%;
1516
+ overflow-y: auto;
1517
+ }
1518
+
1519
+ .file-history-header {
1520
+ display: flex;
1521
+ align-items: center;
1522
+ justify-content: space-between;
1523
+ font-size: 13px;
1524
+ font-weight: 600;
1525
+ color: var(--text-secondary);
1526
+ margin-bottom: 12px;
1527
+ padding-bottom: 8px;
1528
+ border-bottom: 1px solid var(--border-subtle);
1529
+ }
1530
+
1531
+ .file-history-list {
1532
+ display: flex;
1533
+ flex-direction: column;
1534
+ gap: 10px;
1535
+ }
1536
+
1537
+ .file-history-entry {
1538
+ background: var(--bg-alt);
1539
+ border: 1px solid var(--border);
1540
+ border-radius: 10px;
1541
+ padding: 10px 12px;
1542
+ cursor: pointer;
1543
+ transition: border-color 0.15s, background 0.15s;
1544
+ position: relative;
1545
+ }
1546
+
1547
+ .file-history-entry:hover { border-color: var(--accent); }
1548
+ .file-history-entry.no-navigate { cursor: default; opacity: 0.7; }
1549
+ .file-history-entry.no-navigate:hover { border-color: var(--border); }
1550
+
1551
+ .file-history-entry.selected {
1552
+ border-color: var(--accent);
1553
+ background: var(--accent-bg);
1554
+ }
1555
+
1556
+ .file-history-entry.selected::before {
1557
+ content: attr(data-select-num);
1558
+ position: absolute;
1559
+ top: -6px;
1560
+ left: -6px;
1561
+ width: 18px;
1562
+ height: 18px;
1563
+ border-radius: 50%;
1564
+ background: var(--accent);
1565
+ color: #fff;
1566
+ font-size: 11px;
1567
+ font-weight: 600;
1568
+ display: flex;
1569
+ align-items: center;
1570
+ justify-content: center;
1571
+ }
1572
+
1573
+ .file-history-entry.git-entry {
1574
+ border-left: 3px solid var(--text-dimmer);
1575
+ }
1576
+
1577
+ .file-history-entry.git-entry.selected {
1578
+ border-left-color: var(--accent);
1579
+ }
1580
+
1581
+ .file-history-entry-header {
1582
+ display: flex;
1583
+ justify-content: space-between;
1584
+ align-items: center;
1585
+ gap: 8px;
1586
+ }
1587
+
1588
+ .file-history-title {
1589
+ font-size: 13px;
1590
+ font-weight: 500;
1591
+ color: var(--text);
1592
+ overflow: hidden;
1593
+ text-overflow: ellipsis;
1594
+ white-space: nowrap;
1595
+ min-width: 0;
1596
+ flex: 1;
1597
+ }
1598
+
1599
+ .file-history-badge {
1600
+ font-size: 11px;
1601
+ font-weight: 500;
1602
+ padding: 2px 8px;
1603
+ border-radius: 10px;
1604
+ background: var(--accent2-bg);
1605
+ color: var(--accent2);
1606
+ flex-shrink: 0;
1607
+ }
1608
+
1609
+ .file-history-badge.badge-commit {
1610
+ background: rgba(var(--overlay-rgb),0.06);
1611
+ color: var(--text-muted);
1612
+ }
1613
+
1614
+ .file-history-code-subtitle {
1615
+ font-family: "Roboto Mono", monospace;
1616
+ font-size: 11px;
1617
+ color: var(--text-muted);
1618
+ margin-top: 4px;
1619
+ padding: 2px 6px;
1620
+ background: rgba(var(--overlay-rgb), 0.04);
1621
+ border-radius: 3px;
1622
+ overflow: hidden;
1623
+ text-overflow: ellipsis;
1624
+ white-space: nowrap;
1625
+ }
1626
+
1627
+ .file-history-meta {
1628
+ font-size: 11px;
1629
+ color: var(--text-dimmer);
1630
+ margin-top: 4px;
1631
+ overflow: hidden;
1632
+ text-overflow: ellipsis;
1633
+ white-space: nowrap;
1634
+ }
1635
+
1636
+ /* Inline diff preview */
1637
+ .file-history-diff {
1638
+ max-height: 200px;
1639
+ overflow: auto;
1640
+ border-radius: 6px;
1641
+ background: var(--code-bg);
1642
+ margin-top: 8px;
1643
+ }
1644
+
1645
+ .file-history-write-badge {
1646
+ padding: 8px 10px;
1647
+ font-size: 12px;
1648
+ color: var(--text-muted);
1649
+ font-style: italic;
1650
+ text-align: center;
1651
+ }
1652
+
1653
+ /* Action buttons row */
1654
+ .file-history-actions {
1655
+ display: flex;
1656
+ gap: 6px;
1657
+ margin-top: 8px;
1658
+ }
1659
+
1660
+ .file-history-action-btn {
1661
+ padding: 3px 8px;
1662
+ border-radius: 4px;
1663
+ border: 1px solid var(--border);
1664
+ background: transparent;
1665
+ color: var(--text-muted);
1666
+ font-size: 11px;
1667
+ font-family: inherit;
1668
+ cursor: pointer;
1669
+ transition: background 0.15s, color 0.15s, border-color 0.15s;
1670
+ }
1671
+
1672
+ .file-history-action-btn:hover {
1673
+ background: var(--sidebar-hover);
1674
+ color: var(--text);
1675
+ border-color: var(--text-dimmer);
1676
+ }
1677
+
1678
+ .file-history-nav-btn {
1679
+ color: var(--accent);
1680
+ border-color: transparent;
1681
+ }
1682
+
1683
+ .file-history-nav-btn:hover {
1684
+ background: var(--accent-bg);
1685
+ color: var(--accent);
1686
+ border-color: var(--accent);
1687
+ }
1688
+
1689
+ /* Compare bar */
1690
+ .file-history-compare-bar-slots {
1691
+ padding: 10px 12px;
1692
+ margin-bottom: 8px;
1693
+ border-radius: 8px;
1694
+ background: rgba(var(--overlay-rgb), 0.04);
1695
+ border: 1px solid var(--border);
1696
+ }
1697
+
1698
+ .compare-bar-label {
1699
+ display: flex;
1700
+ align-items: center;
1701
+ gap: 5px;
1702
+ font-size: 11px;
1703
+ font-weight: 600;
1704
+ color: var(--text-secondary);
1705
+ margin-bottom: 8px;
1706
+ text-transform: uppercase;
1707
+ letter-spacing: 0.5px;
1708
+ }
1709
+
1710
+ .compare-bar-label svg {
1711
+ width: 13px;
1712
+ height: 13px;
1713
+ opacity: 0.7;
1714
+ }
1715
+
1716
+ .compare-slots-row {
1717
+ display: flex;
1718
+ align-items: center;
1719
+ gap: 8px;
1720
+ }
1721
+
1722
+ .file-history-compare-slot {
1723
+ display: flex;
1724
+ align-items: center;
1725
+ gap: 6px;
1726
+ flex: 1;
1727
+ min-width: 0;
1728
+ padding: 7px 10px;
1729
+ border: 1.5px dashed rgba(var(--overlay-rgb), 0.15);
1730
+ border-radius: 6px;
1731
+ font-size: 11px;
1732
+ color: var(--text-muted);
1733
+ background: rgba(var(--overlay-rgb), 0.02);
1734
+ transition: border-color 0.15s, background 0.15s;
1735
+ }
1736
+
1737
+ .file-history-compare-slot.filled {
1738
+ border-style: solid;
1739
+ border-color: var(--accent);
1740
+ background: var(--accent-bg);
1741
+ color: var(--text-secondary);
1742
+ }
1743
+
1744
+ .compare-slot-num {
1745
+ display: flex;
1746
+ align-items: center;
1747
+ justify-content: center;
1748
+ width: 18px;
1749
+ height: 18px;
1750
+ border-radius: 4px;
1751
+ font-size: 10px;
1752
+ font-weight: 700;
1753
+ flex-shrink: 0;
1754
+ background: rgba(var(--overlay-rgb), 0.1);
1755
+ color: var(--text-muted);
1756
+ }
1757
+
1758
+ .file-history-compare-slot.filled .compare-slot-num {
1759
+ background: var(--accent);
1760
+ color: #fff;
1761
+ }
1762
+
1763
+ .compare-slot-text {
1764
+ flex: 1;
1765
+ min-width: 0;
1766
+ overflow: hidden;
1767
+ text-overflow: ellipsis;
1768
+ white-space: nowrap;
1769
+ font-family: "Roboto Mono", monospace;
1770
+ font-size: 11px;
1771
+ }
1772
+
1773
+ .compare-slot-placeholder {
1774
+ font-style: italic;
1775
+ opacity: 0.6;
1776
+ }
1777
+
1778
+ .compare-slot-clear {
1779
+ flex-shrink: 0;
1780
+ border: none;
1781
+ background: none;
1782
+ color: var(--text-dimmer);
1783
+ font-size: 14px;
1784
+ cursor: pointer;
1785
+ padding: 0 2px;
1786
+ line-height: 1;
1787
+ }
1788
+ .compare-slot-clear:hover { color: var(--text); }
1789
+
1790
+ .compare-slot-arrow {
1791
+ flex-shrink: 0;
1792
+ color: var(--text-dimmer);
1793
+ opacity: 0.5;
1794
+ }
1795
+
1796
+ .compare-slot-arrow svg {
1797
+ width: 14px;
1798
+ height: 14px;
1799
+ }
1800
+
1801
+ /* Compare button */
1802
+ .file-history-compare-btn {
1803
+ display: flex;
1804
+ align-items: center;
1805
+ gap: 5px;
1806
+ padding: 7px 14px;
1807
+ border-radius: 6px;
1808
+ border: none;
1809
+ background: var(--accent);
1810
+ color: #fff;
1811
+ font-size: 12px;
1812
+ font-weight: 500;
1813
+ cursor: pointer;
1814
+ font-family: inherit;
1815
+ flex-shrink: 0;
1816
+ transition: opacity 0.15s;
1817
+ }
1818
+
1819
+ .file-history-compare-btn svg {
1820
+ width: 13px;
1821
+ height: 13px;
1822
+ }
1823
+
1824
+ .file-history-compare-btn:hover { opacity: 0.85; }
1825
+
1826
+ /* Compare view */
1827
+ .file-history-compare-bar {
1828
+ margin-bottom: 12px;
1829
+ }
1830
+
1831
+ .file-history-compare-back {
1832
+ padding: 6px 12px;
1833
+ border-radius: 6px;
1834
+ border: 1px solid var(--border);
1835
+ background: transparent;
1836
+ color: var(--text-secondary);
1837
+ font-size: 12px;
1838
+ cursor: pointer;
1839
+ font-family: inherit;
1840
+ transition: background 0.15s, color 0.15s;
1841
+ }
1842
+
1843
+ .file-history-compare-back:hover { background: var(--sidebar-hover); color: var(--text); }
1844
+
1845
+ /* View file bar (back + toggle) */
1846
+ .file-history-view-bar {
1847
+ display: flex;
1848
+ align-items: center;
1849
+ justify-content: space-between;
1850
+ padding: 10px 16px;
1851
+ flex-shrink: 0;
1852
+ position: sticky;
1853
+ top: 0;
1854
+ z-index: 10;
1855
+ background: var(--bg);
1856
+ border-bottom: 1px solid var(--border);
1857
+ }
1858
+
1859
+ .file-history-view-toggle {
1860
+ display: flex;
1861
+ border: 1px solid var(--border);
1862
+ border-radius: 6px;
1863
+ overflow: hidden;
1864
+ }
1865
+
1866
+ .file-history-toggle-btn {
1867
+ padding: 4px 10px;
1868
+ border: none;
1869
+ background: transparent;
1870
+ color: var(--text-muted);
1871
+ font-size: 11px;
1872
+ font-family: inherit;
1873
+ cursor: pointer;
1874
+ transition: background 0.15s, color 0.15s;
1875
+ }
1876
+
1877
+ .file-history-toggle-btn + .file-history-toggle-btn {
1878
+ border-left: 1px solid var(--border);
1879
+ }
1880
+
1881
+ .file-history-toggle-btn:hover {
1882
+ background: var(--sidebar-hover);
1883
+ color: var(--text);
1884
+ }
1885
+
1886
+ .file-history-toggle-btn.active {
1887
+ background: var(--accent-bg);
1888
+ color: var(--accent);
1889
+ }
1890
+
1891
+ /* Full-size diff container (View diff mode) */
1892
+ .file-history-diff-full {
1893
+ flex: 1;
1894
+ overflow: auto;
1895
+ background: var(--code-bg);
1896
+ border-top: 1px solid var(--border-subtle);
1897
+ }
1898
+
1899
+ /* Split view */
1900
+ .file-history-compare-view {
1901
+ display: flex;
1902
+ flex-direction: column;
1903
+ height: 100%;
1904
+ }
1905
+
1906
+ .file-history-compare-view .file-history-compare-bar {
1907
+ padding: 10px 16px;
1908
+ flex-shrink: 0;
1909
+ }
1910
+
1911
+ .file-history-compare-content {
1912
+ display: flex;
1913
+ flex-direction: column;
1914
+ flex: 1;
1915
+ min-height: 0;
1916
+ }
1917
+
1918
+ .file-history-split {
1919
+ display: flex;
1920
+ flex: 1;
1921
+ min-height: 0;
1922
+ border-top: 1px solid var(--border-subtle);
1923
+ }
1924
+
1925
+ .file-history-split-pane {
1926
+ flex: 1;
1927
+ min-width: 0;
1928
+ display: flex;
1929
+ flex-direction: column;
1930
+ }
1931
+
1932
+ .file-history-split-pane + .file-history-split-pane {
1933
+ border-left: 1px solid var(--border-subtle);
1934
+ }
1935
+
1936
+ .file-history-split-label {
1937
+ padding: 6px 12px;
1938
+ font-size: 11px;
1939
+ font-weight: 600;
1940
+ color: var(--text-muted);
1941
+ background: var(--bg-alt);
1942
+ border-bottom: 1px solid var(--border-subtle);
1943
+ overflow: hidden;
1944
+ text-overflow: ellipsis;
1945
+ white-space: nowrap;
1946
+ flex-shrink: 0;
1947
+ }
1948
+
1949
+ .file-history-split-code {
1950
+ flex: 1;
1951
+ overflow: auto;
1952
+ background: var(--code-bg);
1953
+ }
1954
+
1955
+ .file-history-split-code pre {
1956
+ margin: 0;
1957
+ padding: 8px 12px;
1958
+ font-size: 12px;
1959
+ line-height: 1.5;
1960
+ tab-size: 2;
1961
+ }
1962
+
1963
+ .file-history-split-code code {
1964
+ font-family: "Roboto Mono", monospace;
1965
+ }
1966
+
1967
+ /* --- Message blink animation --- */
1968
+ @keyframes message-blink {
1969
+ 0%, 100% { background: transparent; }
1970
+ 50% { background: var(--accent-bg); }
1971
+ }
1972
+
1973
+ .message-blink {
1974
+ animation: message-blink 0.5s ease 3;
1975
+ border-radius: 12px;
1976
+ }