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