@bakapiano/ccsm 0.22.5 → 0.22.7
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/CLAUDE.md +538 -538
- package/README.md +189 -189
- package/bin/ccsm.js +235 -235
- package/lib/cliActivity.js +139 -139
- package/lib/codexSeed.js +183 -183
- package/lib/config.js +279 -274
- package/lib/devices.js +229 -229
- package/lib/folders.js +124 -124
- package/lib/localCliSessions.js +519 -519
- package/lib/persistedSessions.js +129 -129
- package/lib/tunnel.js +621 -621
- package/lib/webTerminal.js +225 -225
- package/lib/workspace.js +233 -233
- package/package.json +57 -57
- package/public/css/base.css +99 -99
- package/public/css/cards.css +183 -183
- package/public/css/feedback.css +504 -504
- package/public/css/forms.css +453 -453
- package/public/css/layout.css +177 -176
- package/public/css/modal.css +190 -190
- package/public/css/responsive.css +176 -176
- package/public/css/sidebar.css +707 -707
- package/public/css/terminals.css +547 -553
- package/public/css/tokens.css +81 -81
- package/public/css/wco.css +196 -196
- package/public/css/widgets.css +2725 -2725
- package/public/index.html +152 -152
- package/public/js/api.js +371 -371
- package/public/js/backend.js +149 -149
- package/public/js/components/App.js +73 -73
- package/public/js/components/DirectoryPicker.js +203 -203
- package/public/js/components/EntityFormModal.js +153 -153
- package/public/js/components/Modal.js +57 -57
- package/public/js/components/OfflineBanner.js +67 -67
- package/public/js/components/PageTitleBar.js +13 -13
- package/public/js/components/PendingApprovalOverlay.js +128 -128
- package/public/js/components/Picker.js +179 -179
- package/public/js/components/Popover.js +55 -55
- package/public/js/components/RestartOverlay.js +36 -36
- package/public/js/components/Sidebar.js +380 -380
- package/public/js/components/TerminalInstance.js +28 -9
- package/public/js/components/XtermTerminal.js +62 -2
- package/public/js/components/useDragSort.js +67 -67
- package/public/js/dialog.js +67 -67
- package/public/js/icons.js +212 -212
- package/public/js/main.js +296 -296
- package/public/js/pages/AboutPage.js +90 -90
- package/public/js/pages/ConfigurePage.js +728 -713
- package/public/js/pages/LaunchPage.js +421 -421
- package/public/js/pages/RemotePage.js +743 -743
- package/public/js/pages/SessionsPage.js +73 -80
- package/public/js/state.js +335 -335
- package/scripts/dev.js +149 -149
- package/scripts/install.js +153 -153
- package/scripts/restart-helper.js +96 -96
- package/scripts/upgrade-helper.js +687 -687
- package/server.js +1820 -1807
- package/public/manifest.webmanifest +0 -25
- package/public/setup/index.html +0 -567
package/public/css/feedback.css
CHANGED
|
@@ -1,504 +1,504 @@
|
|
|
1
|
-
/* Page-actions CTA banner · server-status pill · toast ·
|
|
2
|
-
dirty-banner + save-pulse for unsaved settings */
|
|
3
|
-
|
|
4
|
-
/* CTA-style banner — neutral surface, ink left bar, distinct from .card
|
|
5
|
-
so it reads as "tip / shortcut" rather than another data section */
|
|
6
|
-
.page-actions {
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: space-between;
|
|
10
|
-
gap: var(--s-4);
|
|
11
|
-
padding: var(--s-3) var(--s-5);
|
|
12
|
-
background: var(--bg);
|
|
13
|
-
border: 1px solid var(--border);
|
|
14
|
-
border-radius: var(--r-sm);
|
|
15
|
-
box-shadow: none;
|
|
16
|
-
position: relative;
|
|
17
|
-
}
|
|
18
|
-
.page-actions::before {
|
|
19
|
-
content: "";
|
|
20
|
-
position: absolute;
|
|
21
|
-
left: 0; top: 8px; bottom: 8px;
|
|
22
|
-
width: 2px;
|
|
23
|
-
background: var(--ink);
|
|
24
|
-
border-radius: 0 2px 2px 0;
|
|
25
|
-
}
|
|
26
|
-
.page-actions-hint {
|
|
27
|
-
font-size: 13px;
|
|
28
|
-
color: var(--ink-mid);
|
|
29
|
-
font-weight: 500;
|
|
30
|
-
padding-left: var(--s-2);
|
|
31
|
-
}
|
|
32
|
-
.page-actions .action svg { stroke-width: 2; }
|
|
33
|
-
|
|
34
|
-
/* "Refresh · 12s ago" timestamp inside the top-right Refresh button */
|
|
35
|
-
.refresh-ago {
|
|
36
|
-
margin-left: 6px;
|
|
37
|
-
padding-left: 7px;
|
|
38
|
-
border-left: 1px solid var(--border);
|
|
39
|
-
font-family: var(--mono);
|
|
40
|
-
font-size: 10.5px;
|
|
41
|
-
color: var(--ink-muted);
|
|
42
|
-
font-variant-numeric: tabular-nums;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* Top-right page-head-meta · server-status pill + Refresh button share
|
|
46
|
-
the same height, padding, font-size and pill shape so they read as a
|
|
47
|
-
coherent control group. Explicit min-height keeps them aligned even
|
|
48
|
-
though they use different fonts and one carries an icon. */
|
|
49
|
-
.page-head-meta { align-items: center; }
|
|
50
|
-
.page-head-meta .action.small,
|
|
51
|
-
.page-head-meta .server-status {
|
|
52
|
-
min-height: 28px;
|
|
53
|
-
border-radius: 999px;
|
|
54
|
-
box-sizing: border-box;
|
|
55
|
-
line-height: 1;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* "● online v0.5.0" pill in top-right page-head-meta */
|
|
59
|
-
.server-status {
|
|
60
|
-
display: inline-flex;
|
|
61
|
-
align-items: center;
|
|
62
|
-
gap: 6px;
|
|
63
|
-
padding: 4px 10px;
|
|
64
|
-
border-radius: 999px;
|
|
65
|
-
background: var(--bg);
|
|
66
|
-
border: 1px solid var(--border);
|
|
67
|
-
font-family: var(--mono);
|
|
68
|
-
font-size: 12px;
|
|
69
|
-
letter-spacing: 0.02em;
|
|
70
|
-
color: var(--ink-mid);
|
|
71
|
-
transition: background .15s ease, border-color .15s ease, color .15s ease;
|
|
72
|
-
cursor: default;
|
|
73
|
-
}
|
|
74
|
-
.server-status .status-pulse {
|
|
75
|
-
width: 7px;
|
|
76
|
-
height: 7px;
|
|
77
|
-
border-radius: 50%;
|
|
78
|
-
background: var(--ink-faint);
|
|
79
|
-
flex: 0 0 7px;
|
|
80
|
-
position: relative;
|
|
81
|
-
}
|
|
82
|
-
.server-status[data-state="online"] {
|
|
83
|
-
border-color: rgba(74, 138, 74, 0.35);
|
|
84
|
-
background: rgba(74, 138, 74, 0.06);
|
|
85
|
-
color: var(--green);
|
|
86
|
-
}
|
|
87
|
-
.server-status[data-state="online"] .status-pulse {
|
|
88
|
-
background: var(--green);
|
|
89
|
-
animation: server-pulse 2.2s ease-in-out infinite;
|
|
90
|
-
}
|
|
91
|
-
.server-status[data-state="offline"] {
|
|
92
|
-
border-color: rgba(183, 63, 63, 0.4);
|
|
93
|
-
background: rgba(183, 63, 63, 0.06);
|
|
94
|
-
color: var(--red);
|
|
95
|
-
}
|
|
96
|
-
.server-status[data-state="offline"] .status-pulse { background: var(--red); }
|
|
97
|
-
.server-status[data-state="connecting"] {
|
|
98
|
-
border-color: rgba(196, 137, 43, 0.4);
|
|
99
|
-
background: rgba(196, 137, 43, 0.06);
|
|
100
|
-
color: var(--yellow);
|
|
101
|
-
}
|
|
102
|
-
.server-status[data-state="connecting"] .status-pulse {
|
|
103
|
-
background: var(--yellow);
|
|
104
|
-
animation: server-pulse 1s ease-in-out infinite;
|
|
105
|
-
}
|
|
106
|
-
@keyframes server-pulse {
|
|
107
|
-
0%, 100% { box-shadow: 0 0 0 0 currentColor; }
|
|
108
|
-
50% { box-shadow: 0 0 0 4px transparent; }
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/* Offline banner · shown when /api/health is unreachable. Sticks to the
|
|
112
|
-
top of the main column above all cards. Contains a ccsm:// link that
|
|
113
|
-
asks Windows to spawn the backend. */
|
|
114
|
-
/* Offline overlay — full-screen modal that blocks all interaction
|
|
115
|
-
until the backend comes back. Z-index above dialogs / toasts. */
|
|
116
|
-
.offline-overlay {
|
|
117
|
-
position: fixed;
|
|
118
|
-
inset: 0;
|
|
119
|
-
z-index: 200;
|
|
120
|
-
background: rgba(26, 24, 21, 0.55);
|
|
121
|
-
backdrop-filter: blur(6px);
|
|
122
|
-
display: flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
justify-content: center;
|
|
125
|
-
padding: var(--s-6);
|
|
126
|
-
animation: panel-in .2s ease-out;
|
|
127
|
-
}
|
|
128
|
-
.offline-card {
|
|
129
|
-
background: var(--bg-elev);
|
|
130
|
-
border: 1px solid var(--ui-border);
|
|
131
|
-
border-radius: var(--r-lg);
|
|
132
|
-
box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4);
|
|
133
|
-
padding: var(--s-8) var(--s-8) var(--s-6);
|
|
134
|
-
max-width: 480px;
|
|
135
|
-
width: 100%;
|
|
136
|
-
text-align: center;
|
|
137
|
-
display: flex;
|
|
138
|
-
flex-direction: column;
|
|
139
|
-
align-items: center;
|
|
140
|
-
gap: var(--s-3);
|
|
141
|
-
}
|
|
142
|
-
.offline-brand {
|
|
143
|
-
width: 56px;
|
|
144
|
-
height: 56px;
|
|
145
|
-
display: inline-flex;
|
|
146
|
-
align-items: center;
|
|
147
|
-
justify-content: center;
|
|
148
|
-
}
|
|
149
|
-
.offline-brand svg { width: 100%; height: 100%; }
|
|
150
|
-
.offline-title {
|
|
151
|
-
margin: 0;
|
|
152
|
-
font-size: 22px;
|
|
153
|
-
font-weight: 600;
|
|
154
|
-
}
|
|
155
|
-
.offline-copy {
|
|
156
|
-
margin: 0;
|
|
157
|
-
color: var(--ink-mid);
|
|
158
|
-
font-size: 13.5px;
|
|
159
|
-
line-height: 1.55;
|
|
160
|
-
max-width: 380px;
|
|
161
|
-
}
|
|
162
|
-
.offline-actions {
|
|
163
|
-
margin-top: var(--s-2);
|
|
164
|
-
}
|
|
165
|
-
.offline-actions .action.big {
|
|
166
|
-
padding: 10px 22px;
|
|
167
|
-
font-size: 14px;
|
|
168
|
-
font-weight: 500;
|
|
169
|
-
}
|
|
170
|
-
/* 4-digit identification code block on the pending-approval overlay.
|
|
171
|
-
The code matches what the host operator sees in the Remote page
|
|
172
|
-
alongside this pending request — visual confirmation they're
|
|
173
|
-
approving the right device. */
|
|
174
|
-
.offline-code-block {
|
|
175
|
-
display: flex;
|
|
176
|
-
flex-direction: column;
|
|
177
|
-
align-items: center;
|
|
178
|
-
gap: 6px;
|
|
179
|
-
margin-top: var(--s-3);
|
|
180
|
-
padding: var(--s-3) var(--s-5);
|
|
181
|
-
background: var(--bg);
|
|
182
|
-
border: 1px solid var(--border);
|
|
183
|
-
border-radius: 8px;
|
|
184
|
-
}
|
|
185
|
-
.offline-code-label {
|
|
186
|
-
font-size: 10.5px;
|
|
187
|
-
letter-spacing: 0.18em;
|
|
188
|
-
text-transform: uppercase;
|
|
189
|
-
color: var(--ink-muted);
|
|
190
|
-
}
|
|
191
|
-
.offline-code {
|
|
192
|
-
font-family: var(--mono);
|
|
193
|
-
font-size: 32px;
|
|
194
|
-
font-weight: 600;
|
|
195
|
-
letter-spacing: 0.18em;
|
|
196
|
-
color: var(--ink);
|
|
197
|
-
font-variant-numeric: tabular-nums;
|
|
198
|
-
}
|
|
199
|
-
.offline-code-hint {
|
|
200
|
-
font-size: 11.5px;
|
|
201
|
-
color: var(--ink-muted);
|
|
202
|
-
text-align: center;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/* RestartOverlay — a transient pill shown while a user-initiated backend
|
|
206
|
-
restart is in flight. Styled as a toast and pinned to the same
|
|
207
|
-
bottom-right slot so every floating notification in the app lives in
|
|
208
|
-
one place and reads the same. (It only ever coexists with a real toast
|
|
209
|
-
on restart *failure*, by which point the banner has already unmounted,
|
|
210
|
-
so sharing the slot doesn't collide.) Colors track the theme via
|
|
211
|
-
var(--ink)/var(--bg) — the old hardcoded #fff text went invisible on
|
|
212
|
-
the light pill dark mode produces. */
|
|
213
|
-
.restart-banner {
|
|
214
|
-
position: fixed;
|
|
215
|
-
bottom: var(--s-5);
|
|
216
|
-
right: var(--s-5);
|
|
217
|
-
z-index: 1200;
|
|
218
|
-
display: flex;
|
|
219
|
-
align-items: center;
|
|
220
|
-
gap: 12px;
|
|
221
|
-
max-width: 380px;
|
|
222
|
-
padding: 11px 16px 11px 14px;
|
|
223
|
-
background: var(--ink);
|
|
224
|
-
color: var(--bg);
|
|
225
|
-
border-radius: 6px;
|
|
226
|
-
font-size: 12.5px;
|
|
227
|
-
font-weight: 400;
|
|
228
|
-
letter-spacing: -0.005em;
|
|
229
|
-
line-height: 1.45;
|
|
230
|
-
box-shadow:
|
|
231
|
-
0 10px 32px -8px rgba(26, 24, 21, 0.30),
|
|
232
|
-
0 2px 6px rgba(26, 24, 21, 0.12),
|
|
233
|
-
inset 0 0 0 1px rgba(255, 255, 255, 0.06);
|
|
234
|
-
animation: toast-pop-in .28s cubic-bezier(.34, 1.4, .64, 1);
|
|
235
|
-
}
|
|
236
|
-
@keyframes toast-pop-in {
|
|
237
|
-
from { opacity: 0; transform: translateY(10px) scale(0.98); }
|
|
238
|
-
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
239
|
-
}
|
|
240
|
-
.restart-banner-spinner {
|
|
241
|
-
width: 13px;
|
|
242
|
-
height: 13px;
|
|
243
|
-
flex-shrink: 0;
|
|
244
|
-
border-radius: 50%;
|
|
245
|
-
/* currentColor = the pill's text color (var(--bg)), so the spinner
|
|
246
|
-
stays legible in both themes without a hardcoded white. */
|
|
247
|
-
border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
|
|
248
|
-
border-top-color: currentColor;
|
|
249
|
-
animation: restart-spin 0.7s linear infinite;
|
|
250
|
-
}
|
|
251
|
-
.restart-banner-text { white-space: nowrap; }
|
|
252
|
-
@keyframes restart-spin { to { transform: rotate(360deg); } }
|
|
253
|
-
.offline-fallback {
|
|
254
|
-
margin-top: var(--s-3);
|
|
255
|
-
width: 100%;
|
|
256
|
-
text-align: left;
|
|
257
|
-
font-size: 12px;
|
|
258
|
-
color: var(--ink-mid);
|
|
259
|
-
}
|
|
260
|
-
.offline-fallback summary {
|
|
261
|
-
cursor: pointer;
|
|
262
|
-
text-align: center;
|
|
263
|
-
color: var(--ink-muted);
|
|
264
|
-
}
|
|
265
|
-
.offline-fallback-body {
|
|
266
|
-
margin-top: var(--s-3);
|
|
267
|
-
padding: var(--s-3);
|
|
268
|
-
background: var(--bg);
|
|
269
|
-
border-radius: var(--r-sm);
|
|
270
|
-
}
|
|
271
|
-
.offline-fallback-body pre {
|
|
272
|
-
margin: var(--s-2) 0;
|
|
273
|
-
padding: 8px 10px;
|
|
274
|
-
background: var(--ink);
|
|
275
|
-
color: var(--bg-elev);
|
|
276
|
-
border-radius: 4px;
|
|
277
|
-
font-family: var(--mono);
|
|
278
|
-
font-size: 12px;
|
|
279
|
-
overflow-x: auto;
|
|
280
|
-
}
|
|
281
|
-
.offline-fallback-body p { margin: 0; }
|
|
282
|
-
|
|
283
|
-
/* Legacy banner styles (unused after v1.0 redesign but kept tiny in
|
|
284
|
-
case external CSS references them). */
|
|
285
|
-
.offline-banner { display: none; }
|
|
286
|
-
|
|
287
|
-
/* Toast bottom-right — auto-hides via JS */
|
|
288
|
-
.toast {
|
|
289
|
-
position: fixed;
|
|
290
|
-
bottom: var(--s-5);
|
|
291
|
-
right: var(--s-5);
|
|
292
|
-
z-index: 100;
|
|
293
|
-
max-width: 380px;
|
|
294
|
-
padding: 11px 16px 11px 14px;
|
|
295
|
-
background: var(--ink);
|
|
296
|
-
color: var(--bg);
|
|
297
|
-
border: 0;
|
|
298
|
-
border-radius: 6px;
|
|
299
|
-
font-size: 12.5px;
|
|
300
|
-
font-weight: 400;
|
|
301
|
-
letter-spacing: -0.005em;
|
|
302
|
-
line-height: 1.45;
|
|
303
|
-
display: flex;
|
|
304
|
-
align-items: center;
|
|
305
|
-
gap: 12px;
|
|
306
|
-
opacity: 0;
|
|
307
|
-
transform: translateY(10px) scale(0.98);
|
|
308
|
-
transform-origin: bottom right;
|
|
309
|
-
transition:
|
|
310
|
-
opacity .22s cubic-bezier(.4, 0, .2, 1),
|
|
311
|
-
transform .28s cubic-bezier(.34, 1.4, .64, 1);
|
|
312
|
-
pointer-events: none;
|
|
313
|
-
box-shadow:
|
|
314
|
-
0 10px 32px -8px rgba(26, 24, 21, 0.30),
|
|
315
|
-
0 2px 6px rgba(26, 24, 21, 0.12),
|
|
316
|
-
inset 0 0 0 1px rgba(255, 255, 255, 0.06);
|
|
317
|
-
}
|
|
318
|
-
.toast::before {
|
|
319
|
-
content: "OK";
|
|
320
|
-
font-family: var(--mono);
|
|
321
|
-
font-size: 9px;
|
|
322
|
-
letter-spacing: 0.14em;
|
|
323
|
-
font-weight: 500;
|
|
324
|
-
padding: 3px 6px;
|
|
325
|
-
border-radius: 4px;
|
|
326
|
-
/* currentColor = the pill's text (var(--bg)), so the default chip stays
|
|
327
|
-
visible whether the pill is dark (light theme) or light (dark theme).
|
|
328
|
-
The .ok / .error variants below override with their own colored bg. */
|
|
329
|
-
background: color-mix(in srgb, currentColor 14%, transparent);
|
|
330
|
-
color: currentColor;
|
|
331
|
-
flex-shrink: 0;
|
|
332
|
-
line-height: 1;
|
|
333
|
-
}
|
|
334
|
-
.toast.show {
|
|
335
|
-
opacity: 1;
|
|
336
|
-
transform: translateY(0) scale(1);
|
|
337
|
-
}
|
|
338
|
-
.toast.error::before {
|
|
339
|
-
content: "ERR";
|
|
340
|
-
background: rgba(183, 63, 63, 0.85);
|
|
341
|
-
color: #fff;
|
|
342
|
-
}
|
|
343
|
-
.toast.ok::before {
|
|
344
|
-
content: "OK";
|
|
345
|
-
background: rgba(74, 138, 74, 0.85);
|
|
346
|
-
color: #fff;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/* Sticky "you have unsaved changes" banner above the Configure card */
|
|
350
|
-
.dirty-banner {
|
|
351
|
-
display: flex;
|
|
352
|
-
align-items: center;
|
|
353
|
-
gap: var(--s-3);
|
|
354
|
-
padding: var(--s-3) var(--s-5);
|
|
355
|
-
background: var(--bg);
|
|
356
|
-
border: 1px solid var(--ink);
|
|
357
|
-
border-radius: var(--r-sm);
|
|
358
|
-
color: var(--ink);
|
|
359
|
-
font-size: 13px;
|
|
360
|
-
font-weight: 500;
|
|
361
|
-
position: sticky;
|
|
362
|
-
top: var(--s-3);
|
|
363
|
-
z-index: 10;
|
|
364
|
-
box-shadow: 0 3px 10px -8px rgba(26, 24, 21, 0.15);
|
|
365
|
-
animation: banner-in .25s cubic-bezier(.4, 0, .2, 1);
|
|
366
|
-
}
|
|
367
|
-
@keyframes banner-in {
|
|
368
|
-
from { opacity: 0; transform: translateY(-6px); }
|
|
369
|
-
to { opacity: 1; transform: translateY(0); }
|
|
370
|
-
}
|
|
371
|
-
.dirty-banner .dirty-dot {
|
|
372
|
-
width: 8px;
|
|
373
|
-
height: 8px;
|
|
374
|
-
border-radius: 50%;
|
|
375
|
-
background: var(--ink);
|
|
376
|
-
flex: 0 0 8px;
|
|
377
|
-
box-shadow: 0 0 0 0 rgba(26, 24, 21, 0.35);
|
|
378
|
-
animation: dirty-pulse 2s ease-in-out infinite;
|
|
379
|
-
}
|
|
380
|
-
.dirty-banner .dirty-text { flex: 1; }
|
|
381
|
-
|
|
382
|
-
/* Save button pulse — mirrors dirty banner */
|
|
383
|
-
.action.primary.is-dirty {
|
|
384
|
-
animation: save-pulse 1.6s ease-in-out infinite;
|
|
385
|
-
}
|
|
386
|
-
@keyframes save-pulse {
|
|
387
|
-
0%, 100% { box-shadow: 0 0 0 0 rgba(26, 24, 21, 0.25); }
|
|
388
|
-
50% { box-shadow: 0 0 0 4px rgba(26, 24, 21, 0); }
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
/* HealthOverlay reuses .offline-overlay / .offline-card above. The
|
|
392
|
-
only extra is the spinner shown during the "Checking…" phase — sized
|
|
393
|
-
to fill the .offline-brand slot in place of the BrandMark logo. */
|
|
394
|
-
.health-spinner {
|
|
395
|
-
width: 36px;
|
|
396
|
-
height: 36px;
|
|
397
|
-
border: 3px solid var(--border);
|
|
398
|
-
border-top-color: var(--ink);
|
|
399
|
-
border-radius: 50%;
|
|
400
|
-
animation: health-spin 0.8s linear infinite;
|
|
401
|
-
}
|
|
402
|
-
@keyframes health-spin {
|
|
403
|
-
to { transform: rotate(360deg); }
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
/* ── Keybinding recorder modal ───────────────────────────────────── */
|
|
407
|
-
.kbd-recorder-overlay {
|
|
408
|
-
position: fixed;
|
|
409
|
-
inset: 0;
|
|
410
|
-
z-index: 9999;
|
|
411
|
-
background: rgba(26, 24, 21, 0.5);
|
|
412
|
-
backdrop-filter: blur(4px);
|
|
413
|
-
-webkit-backdrop-filter: blur(4px);
|
|
414
|
-
display: flex;
|
|
415
|
-
align-items: center;
|
|
416
|
-
justify-content: center;
|
|
417
|
-
animation: kbd-rec-fade-in 0.16s ease-out;
|
|
418
|
-
}
|
|
419
|
-
@keyframes kbd-rec-fade-in {
|
|
420
|
-
from { opacity: 0; }
|
|
421
|
-
to { opacity: 1; }
|
|
422
|
-
}
|
|
423
|
-
.kbd-recorder-card {
|
|
424
|
-
background: var(--bg-elev);
|
|
425
|
-
border: 1px solid var(--border);
|
|
426
|
-
border-radius: 14px;
|
|
427
|
-
padding: 32px 40px;
|
|
428
|
-
min-width: 380px;
|
|
429
|
-
max-width: 520px;
|
|
430
|
-
text-align: center;
|
|
431
|
-
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
|
|
432
|
-
font-family: var(--body);
|
|
433
|
-
}
|
|
434
|
-
.kbd-recorder-label {
|
|
435
|
-
font-size: 12.5px;
|
|
436
|
-
color: var(--ink-mid);
|
|
437
|
-
letter-spacing: 0.02em;
|
|
438
|
-
text-transform: uppercase;
|
|
439
|
-
margin-bottom: 6px;
|
|
440
|
-
}
|
|
441
|
-
.kbd-recorder-action {
|
|
442
|
-
font-size: 18px;
|
|
443
|
-
font-weight: 500;
|
|
444
|
-
letter-spacing: -0.01em;
|
|
445
|
-
color: var(--ink);
|
|
446
|
-
margin-bottom: 24px;
|
|
447
|
-
}
|
|
448
|
-
.kbd-recorder-keys {
|
|
449
|
-
display: flex;
|
|
450
|
-
align-items: center;
|
|
451
|
-
justify-content: center;
|
|
452
|
-
gap: 8px;
|
|
453
|
-
min-height: 48px;
|
|
454
|
-
margin-bottom: 20px;
|
|
455
|
-
flex-wrap: wrap;
|
|
456
|
-
}
|
|
457
|
-
.kbd-recorder-key {
|
|
458
|
-
display: inline-flex;
|
|
459
|
-
align-items: center;
|
|
460
|
-
justify-content: center;
|
|
461
|
-
min-width: 36px;
|
|
462
|
-
height: 36px;
|
|
463
|
-
padding: 0 10px;
|
|
464
|
-
background: var(--bg);
|
|
465
|
-
border: 1px solid var(--border);
|
|
466
|
-
border-bottom-width: 2px;
|
|
467
|
-
border-radius: 6px;
|
|
468
|
-
font-family: var(--mono);
|
|
469
|
-
font-size: 13px;
|
|
470
|
-
font-weight: 500;
|
|
471
|
-
color: var(--ink);
|
|
472
|
-
animation: kbd-rec-pop 0.12s ease-out;
|
|
473
|
-
}
|
|
474
|
-
@keyframes kbd-rec-pop {
|
|
475
|
-
from { transform: scale(0.85); opacity: 0.4; }
|
|
476
|
-
to { transform: scale(1); opacity: 1; }
|
|
477
|
-
}
|
|
478
|
-
.kbd-recorder-plus {
|
|
479
|
-
color: var(--ink-muted);
|
|
480
|
-
font-size: 14px;
|
|
481
|
-
font-weight: 300;
|
|
482
|
-
}
|
|
483
|
-
.kbd-recorder-placeholder {
|
|
484
|
-
color: var(--ink-muted);
|
|
485
|
-
font-size: 13px;
|
|
486
|
-
}
|
|
487
|
-
.kbd-recorder-actions {
|
|
488
|
-
display: flex;
|
|
489
|
-
justify-content: center;
|
|
490
|
-
gap: 8px;
|
|
491
|
-
margin-bottom: 14px;
|
|
492
|
-
}
|
|
493
|
-
.kbd-recorder-hint {
|
|
494
|
-
font-size: 11.5px;
|
|
495
|
-
color: var(--ink-muted);
|
|
496
|
-
}
|
|
497
|
-
.kbd-recorder-hint kbd {
|
|
498
|
-
font-family: var(--mono);
|
|
499
|
-
font-size: 11px;
|
|
500
|
-
background: var(--bg);
|
|
501
|
-
border: 1px solid var(--border);
|
|
502
|
-
border-radius: 3px;
|
|
503
|
-
padding: 1px 5px;
|
|
504
|
-
}
|
|
1
|
+
/* Page-actions CTA banner · server-status pill · toast ·
|
|
2
|
+
dirty-banner + save-pulse for unsaved settings */
|
|
3
|
+
|
|
4
|
+
/* CTA-style banner — neutral surface, ink left bar, distinct from .card
|
|
5
|
+
so it reads as "tip / shortcut" rather than another data section */
|
|
6
|
+
.page-actions {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
gap: var(--s-4);
|
|
11
|
+
padding: var(--s-3) var(--s-5);
|
|
12
|
+
background: var(--bg);
|
|
13
|
+
border: 1px solid var(--border);
|
|
14
|
+
border-radius: var(--r-sm);
|
|
15
|
+
box-shadow: none;
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
.page-actions::before {
|
|
19
|
+
content: "";
|
|
20
|
+
position: absolute;
|
|
21
|
+
left: 0; top: 8px; bottom: 8px;
|
|
22
|
+
width: 2px;
|
|
23
|
+
background: var(--ink);
|
|
24
|
+
border-radius: 0 2px 2px 0;
|
|
25
|
+
}
|
|
26
|
+
.page-actions-hint {
|
|
27
|
+
font-size: 13px;
|
|
28
|
+
color: var(--ink-mid);
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
padding-left: var(--s-2);
|
|
31
|
+
}
|
|
32
|
+
.page-actions .action svg { stroke-width: 2; }
|
|
33
|
+
|
|
34
|
+
/* "Refresh · 12s ago" timestamp inside the top-right Refresh button */
|
|
35
|
+
.refresh-ago {
|
|
36
|
+
margin-left: 6px;
|
|
37
|
+
padding-left: 7px;
|
|
38
|
+
border-left: 1px solid var(--border);
|
|
39
|
+
font-family: var(--mono);
|
|
40
|
+
font-size: 10.5px;
|
|
41
|
+
color: var(--ink-muted);
|
|
42
|
+
font-variant-numeric: tabular-nums;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Top-right page-head-meta · server-status pill + Refresh button share
|
|
46
|
+
the same height, padding, font-size and pill shape so they read as a
|
|
47
|
+
coherent control group. Explicit min-height keeps them aligned even
|
|
48
|
+
though they use different fonts and one carries an icon. */
|
|
49
|
+
.page-head-meta { align-items: center; }
|
|
50
|
+
.page-head-meta .action.small,
|
|
51
|
+
.page-head-meta .server-status {
|
|
52
|
+
min-height: 28px;
|
|
53
|
+
border-radius: 999px;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
line-height: 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* "● online v0.5.0" pill in top-right page-head-meta */
|
|
59
|
+
.server-status {
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: 6px;
|
|
63
|
+
padding: 4px 10px;
|
|
64
|
+
border-radius: 999px;
|
|
65
|
+
background: var(--bg);
|
|
66
|
+
border: 1px solid var(--border);
|
|
67
|
+
font-family: var(--mono);
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
letter-spacing: 0.02em;
|
|
70
|
+
color: var(--ink-mid);
|
|
71
|
+
transition: background .15s ease, border-color .15s ease, color .15s ease;
|
|
72
|
+
cursor: default;
|
|
73
|
+
}
|
|
74
|
+
.server-status .status-pulse {
|
|
75
|
+
width: 7px;
|
|
76
|
+
height: 7px;
|
|
77
|
+
border-radius: 50%;
|
|
78
|
+
background: var(--ink-faint);
|
|
79
|
+
flex: 0 0 7px;
|
|
80
|
+
position: relative;
|
|
81
|
+
}
|
|
82
|
+
.server-status[data-state="online"] {
|
|
83
|
+
border-color: rgba(74, 138, 74, 0.35);
|
|
84
|
+
background: rgba(74, 138, 74, 0.06);
|
|
85
|
+
color: var(--green);
|
|
86
|
+
}
|
|
87
|
+
.server-status[data-state="online"] .status-pulse {
|
|
88
|
+
background: var(--green);
|
|
89
|
+
animation: server-pulse 2.2s ease-in-out infinite;
|
|
90
|
+
}
|
|
91
|
+
.server-status[data-state="offline"] {
|
|
92
|
+
border-color: rgba(183, 63, 63, 0.4);
|
|
93
|
+
background: rgba(183, 63, 63, 0.06);
|
|
94
|
+
color: var(--red);
|
|
95
|
+
}
|
|
96
|
+
.server-status[data-state="offline"] .status-pulse { background: var(--red); }
|
|
97
|
+
.server-status[data-state="connecting"] {
|
|
98
|
+
border-color: rgba(196, 137, 43, 0.4);
|
|
99
|
+
background: rgba(196, 137, 43, 0.06);
|
|
100
|
+
color: var(--yellow);
|
|
101
|
+
}
|
|
102
|
+
.server-status[data-state="connecting"] .status-pulse {
|
|
103
|
+
background: var(--yellow);
|
|
104
|
+
animation: server-pulse 1s ease-in-out infinite;
|
|
105
|
+
}
|
|
106
|
+
@keyframes server-pulse {
|
|
107
|
+
0%, 100% { box-shadow: 0 0 0 0 currentColor; }
|
|
108
|
+
50% { box-shadow: 0 0 0 4px transparent; }
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Offline banner · shown when /api/health is unreachable. Sticks to the
|
|
112
|
+
top of the main column above all cards. Contains a ccsm:// link that
|
|
113
|
+
asks Windows to spawn the backend. */
|
|
114
|
+
/* Offline overlay — full-screen modal that blocks all interaction
|
|
115
|
+
until the backend comes back. Z-index above dialogs / toasts. */
|
|
116
|
+
.offline-overlay {
|
|
117
|
+
position: fixed;
|
|
118
|
+
inset: 0;
|
|
119
|
+
z-index: 200;
|
|
120
|
+
background: rgba(26, 24, 21, 0.55);
|
|
121
|
+
backdrop-filter: blur(6px);
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
padding: var(--s-6);
|
|
126
|
+
animation: panel-in .2s ease-out;
|
|
127
|
+
}
|
|
128
|
+
.offline-card {
|
|
129
|
+
background: var(--bg-elev);
|
|
130
|
+
border: 1px solid var(--ui-border);
|
|
131
|
+
border-radius: var(--r-lg);
|
|
132
|
+
box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4);
|
|
133
|
+
padding: var(--s-8) var(--s-8) var(--s-6);
|
|
134
|
+
max-width: 480px;
|
|
135
|
+
width: 100%;
|
|
136
|
+
text-align: center;
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
align-items: center;
|
|
140
|
+
gap: var(--s-3);
|
|
141
|
+
}
|
|
142
|
+
.offline-brand {
|
|
143
|
+
width: 56px;
|
|
144
|
+
height: 56px;
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
}
|
|
149
|
+
.offline-brand svg { width: 100%; height: 100%; }
|
|
150
|
+
.offline-title {
|
|
151
|
+
margin: 0;
|
|
152
|
+
font-size: 22px;
|
|
153
|
+
font-weight: 600;
|
|
154
|
+
}
|
|
155
|
+
.offline-copy {
|
|
156
|
+
margin: 0;
|
|
157
|
+
color: var(--ink-mid);
|
|
158
|
+
font-size: 13.5px;
|
|
159
|
+
line-height: 1.55;
|
|
160
|
+
max-width: 380px;
|
|
161
|
+
}
|
|
162
|
+
.offline-actions {
|
|
163
|
+
margin-top: var(--s-2);
|
|
164
|
+
}
|
|
165
|
+
.offline-actions .action.big {
|
|
166
|
+
padding: 10px 22px;
|
|
167
|
+
font-size: 14px;
|
|
168
|
+
font-weight: 500;
|
|
169
|
+
}
|
|
170
|
+
/* 4-digit identification code block on the pending-approval overlay.
|
|
171
|
+
The code matches what the host operator sees in the Remote page
|
|
172
|
+
alongside this pending request — visual confirmation they're
|
|
173
|
+
approving the right device. */
|
|
174
|
+
.offline-code-block {
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-direction: column;
|
|
177
|
+
align-items: center;
|
|
178
|
+
gap: 6px;
|
|
179
|
+
margin-top: var(--s-3);
|
|
180
|
+
padding: var(--s-3) var(--s-5);
|
|
181
|
+
background: var(--bg);
|
|
182
|
+
border: 1px solid var(--border);
|
|
183
|
+
border-radius: 8px;
|
|
184
|
+
}
|
|
185
|
+
.offline-code-label {
|
|
186
|
+
font-size: 10.5px;
|
|
187
|
+
letter-spacing: 0.18em;
|
|
188
|
+
text-transform: uppercase;
|
|
189
|
+
color: var(--ink-muted);
|
|
190
|
+
}
|
|
191
|
+
.offline-code {
|
|
192
|
+
font-family: var(--mono);
|
|
193
|
+
font-size: 32px;
|
|
194
|
+
font-weight: 600;
|
|
195
|
+
letter-spacing: 0.18em;
|
|
196
|
+
color: var(--ink);
|
|
197
|
+
font-variant-numeric: tabular-nums;
|
|
198
|
+
}
|
|
199
|
+
.offline-code-hint {
|
|
200
|
+
font-size: 11.5px;
|
|
201
|
+
color: var(--ink-muted);
|
|
202
|
+
text-align: center;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* RestartOverlay — a transient pill shown while a user-initiated backend
|
|
206
|
+
restart is in flight. Styled as a toast and pinned to the same
|
|
207
|
+
bottom-right slot so every floating notification in the app lives in
|
|
208
|
+
one place and reads the same. (It only ever coexists with a real toast
|
|
209
|
+
on restart *failure*, by which point the banner has already unmounted,
|
|
210
|
+
so sharing the slot doesn't collide.) Colors track the theme via
|
|
211
|
+
var(--ink)/var(--bg) — the old hardcoded #fff text went invisible on
|
|
212
|
+
the light pill dark mode produces. */
|
|
213
|
+
.restart-banner {
|
|
214
|
+
position: fixed;
|
|
215
|
+
bottom: var(--s-5);
|
|
216
|
+
right: var(--s-5);
|
|
217
|
+
z-index: 1200;
|
|
218
|
+
display: flex;
|
|
219
|
+
align-items: center;
|
|
220
|
+
gap: 12px;
|
|
221
|
+
max-width: 380px;
|
|
222
|
+
padding: 11px 16px 11px 14px;
|
|
223
|
+
background: var(--ink);
|
|
224
|
+
color: var(--bg);
|
|
225
|
+
border-radius: 6px;
|
|
226
|
+
font-size: 12.5px;
|
|
227
|
+
font-weight: 400;
|
|
228
|
+
letter-spacing: -0.005em;
|
|
229
|
+
line-height: 1.45;
|
|
230
|
+
box-shadow:
|
|
231
|
+
0 10px 32px -8px rgba(26, 24, 21, 0.30),
|
|
232
|
+
0 2px 6px rgba(26, 24, 21, 0.12),
|
|
233
|
+
inset 0 0 0 1px rgba(255, 255, 255, 0.06);
|
|
234
|
+
animation: toast-pop-in .28s cubic-bezier(.34, 1.4, .64, 1);
|
|
235
|
+
}
|
|
236
|
+
@keyframes toast-pop-in {
|
|
237
|
+
from { opacity: 0; transform: translateY(10px) scale(0.98); }
|
|
238
|
+
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
239
|
+
}
|
|
240
|
+
.restart-banner-spinner {
|
|
241
|
+
width: 13px;
|
|
242
|
+
height: 13px;
|
|
243
|
+
flex-shrink: 0;
|
|
244
|
+
border-radius: 50%;
|
|
245
|
+
/* currentColor = the pill's text color (var(--bg)), so the spinner
|
|
246
|
+
stays legible in both themes without a hardcoded white. */
|
|
247
|
+
border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
|
|
248
|
+
border-top-color: currentColor;
|
|
249
|
+
animation: restart-spin 0.7s linear infinite;
|
|
250
|
+
}
|
|
251
|
+
.restart-banner-text { white-space: nowrap; }
|
|
252
|
+
@keyframes restart-spin { to { transform: rotate(360deg); } }
|
|
253
|
+
.offline-fallback {
|
|
254
|
+
margin-top: var(--s-3);
|
|
255
|
+
width: 100%;
|
|
256
|
+
text-align: left;
|
|
257
|
+
font-size: 12px;
|
|
258
|
+
color: var(--ink-mid);
|
|
259
|
+
}
|
|
260
|
+
.offline-fallback summary {
|
|
261
|
+
cursor: pointer;
|
|
262
|
+
text-align: center;
|
|
263
|
+
color: var(--ink-muted);
|
|
264
|
+
}
|
|
265
|
+
.offline-fallback-body {
|
|
266
|
+
margin-top: var(--s-3);
|
|
267
|
+
padding: var(--s-3);
|
|
268
|
+
background: var(--bg);
|
|
269
|
+
border-radius: var(--r-sm);
|
|
270
|
+
}
|
|
271
|
+
.offline-fallback-body pre {
|
|
272
|
+
margin: var(--s-2) 0;
|
|
273
|
+
padding: 8px 10px;
|
|
274
|
+
background: var(--ink);
|
|
275
|
+
color: var(--bg-elev);
|
|
276
|
+
border-radius: 4px;
|
|
277
|
+
font-family: var(--mono);
|
|
278
|
+
font-size: 12px;
|
|
279
|
+
overflow-x: auto;
|
|
280
|
+
}
|
|
281
|
+
.offline-fallback-body p { margin: 0; }
|
|
282
|
+
|
|
283
|
+
/* Legacy banner styles (unused after v1.0 redesign but kept tiny in
|
|
284
|
+
case external CSS references them). */
|
|
285
|
+
.offline-banner { display: none; }
|
|
286
|
+
|
|
287
|
+
/* Toast bottom-right — auto-hides via JS */
|
|
288
|
+
.toast {
|
|
289
|
+
position: fixed;
|
|
290
|
+
bottom: var(--s-5);
|
|
291
|
+
right: var(--s-5);
|
|
292
|
+
z-index: 100;
|
|
293
|
+
max-width: 380px;
|
|
294
|
+
padding: 11px 16px 11px 14px;
|
|
295
|
+
background: var(--ink);
|
|
296
|
+
color: var(--bg);
|
|
297
|
+
border: 0;
|
|
298
|
+
border-radius: 6px;
|
|
299
|
+
font-size: 12.5px;
|
|
300
|
+
font-weight: 400;
|
|
301
|
+
letter-spacing: -0.005em;
|
|
302
|
+
line-height: 1.45;
|
|
303
|
+
display: flex;
|
|
304
|
+
align-items: center;
|
|
305
|
+
gap: 12px;
|
|
306
|
+
opacity: 0;
|
|
307
|
+
transform: translateY(10px) scale(0.98);
|
|
308
|
+
transform-origin: bottom right;
|
|
309
|
+
transition:
|
|
310
|
+
opacity .22s cubic-bezier(.4, 0, .2, 1),
|
|
311
|
+
transform .28s cubic-bezier(.34, 1.4, .64, 1);
|
|
312
|
+
pointer-events: none;
|
|
313
|
+
box-shadow:
|
|
314
|
+
0 10px 32px -8px rgba(26, 24, 21, 0.30),
|
|
315
|
+
0 2px 6px rgba(26, 24, 21, 0.12),
|
|
316
|
+
inset 0 0 0 1px rgba(255, 255, 255, 0.06);
|
|
317
|
+
}
|
|
318
|
+
.toast::before {
|
|
319
|
+
content: "OK";
|
|
320
|
+
font-family: var(--mono);
|
|
321
|
+
font-size: 9px;
|
|
322
|
+
letter-spacing: 0.14em;
|
|
323
|
+
font-weight: 500;
|
|
324
|
+
padding: 3px 6px;
|
|
325
|
+
border-radius: 4px;
|
|
326
|
+
/* currentColor = the pill's text (var(--bg)), so the default chip stays
|
|
327
|
+
visible whether the pill is dark (light theme) or light (dark theme).
|
|
328
|
+
The .ok / .error variants below override with their own colored bg. */
|
|
329
|
+
background: color-mix(in srgb, currentColor 14%, transparent);
|
|
330
|
+
color: currentColor;
|
|
331
|
+
flex-shrink: 0;
|
|
332
|
+
line-height: 1;
|
|
333
|
+
}
|
|
334
|
+
.toast.show {
|
|
335
|
+
opacity: 1;
|
|
336
|
+
transform: translateY(0) scale(1);
|
|
337
|
+
}
|
|
338
|
+
.toast.error::before {
|
|
339
|
+
content: "ERR";
|
|
340
|
+
background: rgba(183, 63, 63, 0.85);
|
|
341
|
+
color: #fff;
|
|
342
|
+
}
|
|
343
|
+
.toast.ok::before {
|
|
344
|
+
content: "OK";
|
|
345
|
+
background: rgba(74, 138, 74, 0.85);
|
|
346
|
+
color: #fff;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* Sticky "you have unsaved changes" banner above the Configure card */
|
|
350
|
+
.dirty-banner {
|
|
351
|
+
display: flex;
|
|
352
|
+
align-items: center;
|
|
353
|
+
gap: var(--s-3);
|
|
354
|
+
padding: var(--s-3) var(--s-5);
|
|
355
|
+
background: var(--bg);
|
|
356
|
+
border: 1px solid var(--ink);
|
|
357
|
+
border-radius: var(--r-sm);
|
|
358
|
+
color: var(--ink);
|
|
359
|
+
font-size: 13px;
|
|
360
|
+
font-weight: 500;
|
|
361
|
+
position: sticky;
|
|
362
|
+
top: var(--s-3);
|
|
363
|
+
z-index: 10;
|
|
364
|
+
box-shadow: 0 3px 10px -8px rgba(26, 24, 21, 0.15);
|
|
365
|
+
animation: banner-in .25s cubic-bezier(.4, 0, .2, 1);
|
|
366
|
+
}
|
|
367
|
+
@keyframes banner-in {
|
|
368
|
+
from { opacity: 0; transform: translateY(-6px); }
|
|
369
|
+
to { opacity: 1; transform: translateY(0); }
|
|
370
|
+
}
|
|
371
|
+
.dirty-banner .dirty-dot {
|
|
372
|
+
width: 8px;
|
|
373
|
+
height: 8px;
|
|
374
|
+
border-radius: 50%;
|
|
375
|
+
background: var(--ink);
|
|
376
|
+
flex: 0 0 8px;
|
|
377
|
+
box-shadow: 0 0 0 0 rgba(26, 24, 21, 0.35);
|
|
378
|
+
animation: dirty-pulse 2s ease-in-out infinite;
|
|
379
|
+
}
|
|
380
|
+
.dirty-banner .dirty-text { flex: 1; }
|
|
381
|
+
|
|
382
|
+
/* Save button pulse — mirrors dirty banner */
|
|
383
|
+
.action.primary.is-dirty {
|
|
384
|
+
animation: save-pulse 1.6s ease-in-out infinite;
|
|
385
|
+
}
|
|
386
|
+
@keyframes save-pulse {
|
|
387
|
+
0%, 100% { box-shadow: 0 0 0 0 rgba(26, 24, 21, 0.25); }
|
|
388
|
+
50% { box-shadow: 0 0 0 4px rgba(26, 24, 21, 0); }
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/* HealthOverlay reuses .offline-overlay / .offline-card above. The
|
|
392
|
+
only extra is the spinner shown during the "Checking…" phase — sized
|
|
393
|
+
to fill the .offline-brand slot in place of the BrandMark logo. */
|
|
394
|
+
.health-spinner {
|
|
395
|
+
width: 36px;
|
|
396
|
+
height: 36px;
|
|
397
|
+
border: 3px solid var(--border);
|
|
398
|
+
border-top-color: var(--ink);
|
|
399
|
+
border-radius: 50%;
|
|
400
|
+
animation: health-spin 0.8s linear infinite;
|
|
401
|
+
}
|
|
402
|
+
@keyframes health-spin {
|
|
403
|
+
to { transform: rotate(360deg); }
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* ── Keybinding recorder modal ───────────────────────────────────── */
|
|
407
|
+
.kbd-recorder-overlay {
|
|
408
|
+
position: fixed;
|
|
409
|
+
inset: 0;
|
|
410
|
+
z-index: 9999;
|
|
411
|
+
background: rgba(26, 24, 21, 0.5);
|
|
412
|
+
backdrop-filter: blur(4px);
|
|
413
|
+
-webkit-backdrop-filter: blur(4px);
|
|
414
|
+
display: flex;
|
|
415
|
+
align-items: center;
|
|
416
|
+
justify-content: center;
|
|
417
|
+
animation: kbd-rec-fade-in 0.16s ease-out;
|
|
418
|
+
}
|
|
419
|
+
@keyframes kbd-rec-fade-in {
|
|
420
|
+
from { opacity: 0; }
|
|
421
|
+
to { opacity: 1; }
|
|
422
|
+
}
|
|
423
|
+
.kbd-recorder-card {
|
|
424
|
+
background: var(--bg-elev);
|
|
425
|
+
border: 1px solid var(--border);
|
|
426
|
+
border-radius: 14px;
|
|
427
|
+
padding: 32px 40px;
|
|
428
|
+
min-width: 380px;
|
|
429
|
+
max-width: 520px;
|
|
430
|
+
text-align: center;
|
|
431
|
+
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
|
|
432
|
+
font-family: var(--body);
|
|
433
|
+
}
|
|
434
|
+
.kbd-recorder-label {
|
|
435
|
+
font-size: 12.5px;
|
|
436
|
+
color: var(--ink-mid);
|
|
437
|
+
letter-spacing: 0.02em;
|
|
438
|
+
text-transform: uppercase;
|
|
439
|
+
margin-bottom: 6px;
|
|
440
|
+
}
|
|
441
|
+
.kbd-recorder-action {
|
|
442
|
+
font-size: 18px;
|
|
443
|
+
font-weight: 500;
|
|
444
|
+
letter-spacing: -0.01em;
|
|
445
|
+
color: var(--ink);
|
|
446
|
+
margin-bottom: 24px;
|
|
447
|
+
}
|
|
448
|
+
.kbd-recorder-keys {
|
|
449
|
+
display: flex;
|
|
450
|
+
align-items: center;
|
|
451
|
+
justify-content: center;
|
|
452
|
+
gap: 8px;
|
|
453
|
+
min-height: 48px;
|
|
454
|
+
margin-bottom: 20px;
|
|
455
|
+
flex-wrap: wrap;
|
|
456
|
+
}
|
|
457
|
+
.kbd-recorder-key {
|
|
458
|
+
display: inline-flex;
|
|
459
|
+
align-items: center;
|
|
460
|
+
justify-content: center;
|
|
461
|
+
min-width: 36px;
|
|
462
|
+
height: 36px;
|
|
463
|
+
padding: 0 10px;
|
|
464
|
+
background: var(--bg);
|
|
465
|
+
border: 1px solid var(--border);
|
|
466
|
+
border-bottom-width: 2px;
|
|
467
|
+
border-radius: 6px;
|
|
468
|
+
font-family: var(--mono);
|
|
469
|
+
font-size: 13px;
|
|
470
|
+
font-weight: 500;
|
|
471
|
+
color: var(--ink);
|
|
472
|
+
animation: kbd-rec-pop 0.12s ease-out;
|
|
473
|
+
}
|
|
474
|
+
@keyframes kbd-rec-pop {
|
|
475
|
+
from { transform: scale(0.85); opacity: 0.4; }
|
|
476
|
+
to { transform: scale(1); opacity: 1; }
|
|
477
|
+
}
|
|
478
|
+
.kbd-recorder-plus {
|
|
479
|
+
color: var(--ink-muted);
|
|
480
|
+
font-size: 14px;
|
|
481
|
+
font-weight: 300;
|
|
482
|
+
}
|
|
483
|
+
.kbd-recorder-placeholder {
|
|
484
|
+
color: var(--ink-muted);
|
|
485
|
+
font-size: 13px;
|
|
486
|
+
}
|
|
487
|
+
.kbd-recorder-actions {
|
|
488
|
+
display: flex;
|
|
489
|
+
justify-content: center;
|
|
490
|
+
gap: 8px;
|
|
491
|
+
margin-bottom: 14px;
|
|
492
|
+
}
|
|
493
|
+
.kbd-recorder-hint {
|
|
494
|
+
font-size: 11.5px;
|
|
495
|
+
color: var(--ink-muted);
|
|
496
|
+
}
|
|
497
|
+
.kbd-recorder-hint kbd {
|
|
498
|
+
font-family: var(--mono);
|
|
499
|
+
font-size: 11px;
|
|
500
|
+
background: var(--bg);
|
|
501
|
+
border: 1px solid var(--border);
|
|
502
|
+
border-radius: 3px;
|
|
503
|
+
padding: 1px 5px;
|
|
504
|
+
}
|