@bakapiano/ccsm 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +474 -475
- package/README.md +189 -190
- package/bin/ccsm.js +194 -194
- package/lib/cliActivity.js +118 -0
- package/lib/codexSeed.js +147 -0
- package/lib/config.js +211 -188
- package/lib/folders.js +105 -105
- package/lib/localCliSessions.js +489 -489
- package/lib/persistedSessions.js +144 -142
- package/lib/webTerminal.js +224 -224
- package/lib/workspace.js +230 -230
- package/package.json +57 -57
- package/public/css/base.css +99 -99
- package/public/css/cards.css +183 -183
- package/public/css/feedback.css +303 -303
- package/public/css/forms.css +405 -405
- package/public/css/layout.css +160 -160
- package/public/css/modal.css +190 -190
- package/public/css/responsive.css +10 -10
- package/public/css/sidebar.css +613 -608
- package/public/css/terminals.css +294 -294
- package/public/css/tokens.css +81 -81
- package/public/css/wco.css +98 -98
- package/public/css/widgets.css +1628 -1628
- package/public/index.html +111 -105
- package/public/js/api.js +296 -280
- package/public/js/components/AdoptModal.js +343 -343
- package/public/js/components/App.js +35 -35
- package/public/js/components/DirectoryPicker.js +203 -203
- package/public/js/components/EntityFormModal.js +141 -141
- package/public/js/components/Modal.js +51 -51
- package/public/js/components/OfflineBanner.js +93 -93
- package/public/js/components/PageTitleBar.js +13 -13
- package/public/js/components/Picker.js +179 -179
- package/public/js/components/Popover.js +55 -55
- package/public/js/components/Sidebar.js +299 -299
- package/public/js/components/TerminalView.js +314 -314
- package/public/js/components/useDragSort.js +67 -67
- package/public/js/dialog.js +67 -67
- package/public/js/icons.js +177 -177
- package/public/js/main.js +132 -132
- package/public/js/pages/AboutPage.js +165 -165
- package/public/js/pages/ConfigurePage.js +505 -475
- package/public/js/pages/LaunchPage.js +369 -369
- package/public/js/pages/SessionsPage.js +101 -97
- package/public/js/state.js +231 -231
- package/scripts/dev.js +44 -11
- package/scripts/install.js +158 -158
- package/scripts/restart-helper.js +91 -0
- package/server.js +1278 -1254
- package/lib/cliSessionWatcher.js +0 -275
- package/public/manifest.webmanifest +0 -15
package/public/css/feedback.css
CHANGED
|
@@ -1,303 +1,303 @@
|
|
|
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
|
-
.offline-fallback {
|
|
171
|
-
margin-top: var(--s-3);
|
|
172
|
-
width: 100%;
|
|
173
|
-
text-align: left;
|
|
174
|
-
font-size: 12px;
|
|
175
|
-
color: var(--ink-mid);
|
|
176
|
-
}
|
|
177
|
-
.offline-fallback summary {
|
|
178
|
-
cursor: pointer;
|
|
179
|
-
text-align: center;
|
|
180
|
-
color: var(--ink-muted);
|
|
181
|
-
}
|
|
182
|
-
.offline-fallback-body {
|
|
183
|
-
margin-top: var(--s-3);
|
|
184
|
-
padding: var(--s-3);
|
|
185
|
-
background: var(--bg);
|
|
186
|
-
border-radius: var(--r-sm);
|
|
187
|
-
}
|
|
188
|
-
.offline-fallback-body pre {
|
|
189
|
-
margin: var(--s-2) 0;
|
|
190
|
-
padding: 8px 10px;
|
|
191
|
-
background: var(--ink);
|
|
192
|
-
color: var(--bg-elev);
|
|
193
|
-
border-radius: 4px;
|
|
194
|
-
font-family: var(--mono);
|
|
195
|
-
font-size: 12px;
|
|
196
|
-
overflow-x: auto;
|
|
197
|
-
}
|
|
198
|
-
.offline-fallback-body p { margin: 0; }
|
|
199
|
-
|
|
200
|
-
/* Legacy banner styles (unused after v1.0 redesign but kept tiny in
|
|
201
|
-
case external CSS references them). */
|
|
202
|
-
.offline-banner { display: none; }
|
|
203
|
-
|
|
204
|
-
/* Toast bottom-right — auto-hides via JS */
|
|
205
|
-
.toast {
|
|
206
|
-
position: fixed;
|
|
207
|
-
bottom: var(--s-5);
|
|
208
|
-
right: var(--s-5);
|
|
209
|
-
z-index: 100;
|
|
210
|
-
max-width: 380px;
|
|
211
|
-
padding: 11px 16px 11px 14px;
|
|
212
|
-
background: var(--ink);
|
|
213
|
-
color: var(--bg);
|
|
214
|
-
border: 0;
|
|
215
|
-
border-radius: 6px;
|
|
216
|
-
font-size: 12.5px;
|
|
217
|
-
font-weight: 400;
|
|
218
|
-
letter-spacing: -0.005em;
|
|
219
|
-
line-height: 1.45;
|
|
220
|
-
display: flex;
|
|
221
|
-
align-items: center;
|
|
222
|
-
gap: 12px;
|
|
223
|
-
opacity: 0;
|
|
224
|
-
transform: translateY(10px) scale(0.98);
|
|
225
|
-
transform-origin: bottom right;
|
|
226
|
-
transition:
|
|
227
|
-
opacity .22s cubic-bezier(.4, 0, .2, 1),
|
|
228
|
-
transform .28s cubic-bezier(.34, 1.4, .64, 1);
|
|
229
|
-
pointer-events: none;
|
|
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
|
-
}
|
|
235
|
-
.toast::before {
|
|
236
|
-
content: "OK";
|
|
237
|
-
font-family: var(--mono);
|
|
238
|
-
font-size: 9px;
|
|
239
|
-
letter-spacing: 0.14em;
|
|
240
|
-
font-weight: 500;
|
|
241
|
-
padding: 3px 6px;
|
|
242
|
-
border-radius: 4px;
|
|
243
|
-
background: rgba(255, 255, 255, 0.10);
|
|
244
|
-
color: rgba(255, 255, 255, 0.75);
|
|
245
|
-
flex-shrink: 0;
|
|
246
|
-
line-height: 1;
|
|
247
|
-
}
|
|
248
|
-
.toast.show {
|
|
249
|
-
opacity: 1;
|
|
250
|
-
transform: translateY(0) scale(1);
|
|
251
|
-
}
|
|
252
|
-
.toast.error::before {
|
|
253
|
-
content: "ERR";
|
|
254
|
-
background: rgba(183, 63, 63, 0.85);
|
|
255
|
-
color: #fff;
|
|
256
|
-
}
|
|
257
|
-
.toast.ok::before {
|
|
258
|
-
content: "OK";
|
|
259
|
-
background: rgba(74, 138, 74, 0.85);
|
|
260
|
-
color: #fff;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/* Sticky "you have unsaved changes" banner above the Configure card */
|
|
264
|
-
.dirty-banner {
|
|
265
|
-
display: flex;
|
|
266
|
-
align-items: center;
|
|
267
|
-
gap: var(--s-3);
|
|
268
|
-
padding: var(--s-3) var(--s-5);
|
|
269
|
-
background: var(--bg);
|
|
270
|
-
border: 1px solid var(--ink);
|
|
271
|
-
border-radius: var(--r-sm);
|
|
272
|
-
color: var(--ink);
|
|
273
|
-
font-size: 13px;
|
|
274
|
-
font-weight: 500;
|
|
275
|
-
position: sticky;
|
|
276
|
-
top: var(--s-3);
|
|
277
|
-
z-index: 10;
|
|
278
|
-
box-shadow: 0 3px 10px -8px rgba(26, 24, 21, 0.15);
|
|
279
|
-
animation: banner-in .25s cubic-bezier(.4, 0, .2, 1);
|
|
280
|
-
}
|
|
281
|
-
@keyframes banner-in {
|
|
282
|
-
from { opacity: 0; transform: translateY(-6px); }
|
|
283
|
-
to { opacity: 1; transform: translateY(0); }
|
|
284
|
-
}
|
|
285
|
-
.dirty-banner .dirty-dot {
|
|
286
|
-
width: 8px;
|
|
287
|
-
height: 8px;
|
|
288
|
-
border-radius: 50%;
|
|
289
|
-
background: var(--ink);
|
|
290
|
-
flex: 0 0 8px;
|
|
291
|
-
box-shadow: 0 0 0 0 rgba(26, 24, 21, 0.35);
|
|
292
|
-
animation: dirty-pulse 2s ease-in-out infinite;
|
|
293
|
-
}
|
|
294
|
-
.dirty-banner .dirty-text { flex: 1; }
|
|
295
|
-
|
|
296
|
-
/* Save button pulse — mirrors dirty banner */
|
|
297
|
-
.action.primary.is-dirty {
|
|
298
|
-
animation: save-pulse 1.6s ease-in-out infinite;
|
|
299
|
-
}
|
|
300
|
-
@keyframes save-pulse {
|
|
301
|
-
0%, 100% { box-shadow: 0 0 0 0 rgba(26, 24, 21, 0.25); }
|
|
302
|
-
50% { box-shadow: 0 0 0 4px rgba(26, 24, 21, 0); }
|
|
303
|
-
}
|
|
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
|
+
.offline-fallback {
|
|
171
|
+
margin-top: var(--s-3);
|
|
172
|
+
width: 100%;
|
|
173
|
+
text-align: left;
|
|
174
|
+
font-size: 12px;
|
|
175
|
+
color: var(--ink-mid);
|
|
176
|
+
}
|
|
177
|
+
.offline-fallback summary {
|
|
178
|
+
cursor: pointer;
|
|
179
|
+
text-align: center;
|
|
180
|
+
color: var(--ink-muted);
|
|
181
|
+
}
|
|
182
|
+
.offline-fallback-body {
|
|
183
|
+
margin-top: var(--s-3);
|
|
184
|
+
padding: var(--s-3);
|
|
185
|
+
background: var(--bg);
|
|
186
|
+
border-radius: var(--r-sm);
|
|
187
|
+
}
|
|
188
|
+
.offline-fallback-body pre {
|
|
189
|
+
margin: var(--s-2) 0;
|
|
190
|
+
padding: 8px 10px;
|
|
191
|
+
background: var(--ink);
|
|
192
|
+
color: var(--bg-elev);
|
|
193
|
+
border-radius: 4px;
|
|
194
|
+
font-family: var(--mono);
|
|
195
|
+
font-size: 12px;
|
|
196
|
+
overflow-x: auto;
|
|
197
|
+
}
|
|
198
|
+
.offline-fallback-body p { margin: 0; }
|
|
199
|
+
|
|
200
|
+
/* Legacy banner styles (unused after v1.0 redesign but kept tiny in
|
|
201
|
+
case external CSS references them). */
|
|
202
|
+
.offline-banner { display: none; }
|
|
203
|
+
|
|
204
|
+
/* Toast bottom-right — auto-hides via JS */
|
|
205
|
+
.toast {
|
|
206
|
+
position: fixed;
|
|
207
|
+
bottom: var(--s-5);
|
|
208
|
+
right: var(--s-5);
|
|
209
|
+
z-index: 100;
|
|
210
|
+
max-width: 380px;
|
|
211
|
+
padding: 11px 16px 11px 14px;
|
|
212
|
+
background: var(--ink);
|
|
213
|
+
color: var(--bg);
|
|
214
|
+
border: 0;
|
|
215
|
+
border-radius: 6px;
|
|
216
|
+
font-size: 12.5px;
|
|
217
|
+
font-weight: 400;
|
|
218
|
+
letter-spacing: -0.005em;
|
|
219
|
+
line-height: 1.45;
|
|
220
|
+
display: flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
gap: 12px;
|
|
223
|
+
opacity: 0;
|
|
224
|
+
transform: translateY(10px) scale(0.98);
|
|
225
|
+
transform-origin: bottom right;
|
|
226
|
+
transition:
|
|
227
|
+
opacity .22s cubic-bezier(.4, 0, .2, 1),
|
|
228
|
+
transform .28s cubic-bezier(.34, 1.4, .64, 1);
|
|
229
|
+
pointer-events: none;
|
|
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
|
+
}
|
|
235
|
+
.toast::before {
|
|
236
|
+
content: "OK";
|
|
237
|
+
font-family: var(--mono);
|
|
238
|
+
font-size: 9px;
|
|
239
|
+
letter-spacing: 0.14em;
|
|
240
|
+
font-weight: 500;
|
|
241
|
+
padding: 3px 6px;
|
|
242
|
+
border-radius: 4px;
|
|
243
|
+
background: rgba(255, 255, 255, 0.10);
|
|
244
|
+
color: rgba(255, 255, 255, 0.75);
|
|
245
|
+
flex-shrink: 0;
|
|
246
|
+
line-height: 1;
|
|
247
|
+
}
|
|
248
|
+
.toast.show {
|
|
249
|
+
opacity: 1;
|
|
250
|
+
transform: translateY(0) scale(1);
|
|
251
|
+
}
|
|
252
|
+
.toast.error::before {
|
|
253
|
+
content: "ERR";
|
|
254
|
+
background: rgba(183, 63, 63, 0.85);
|
|
255
|
+
color: #fff;
|
|
256
|
+
}
|
|
257
|
+
.toast.ok::before {
|
|
258
|
+
content: "OK";
|
|
259
|
+
background: rgba(74, 138, 74, 0.85);
|
|
260
|
+
color: #fff;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* Sticky "you have unsaved changes" banner above the Configure card */
|
|
264
|
+
.dirty-banner {
|
|
265
|
+
display: flex;
|
|
266
|
+
align-items: center;
|
|
267
|
+
gap: var(--s-3);
|
|
268
|
+
padding: var(--s-3) var(--s-5);
|
|
269
|
+
background: var(--bg);
|
|
270
|
+
border: 1px solid var(--ink);
|
|
271
|
+
border-radius: var(--r-sm);
|
|
272
|
+
color: var(--ink);
|
|
273
|
+
font-size: 13px;
|
|
274
|
+
font-weight: 500;
|
|
275
|
+
position: sticky;
|
|
276
|
+
top: var(--s-3);
|
|
277
|
+
z-index: 10;
|
|
278
|
+
box-shadow: 0 3px 10px -8px rgba(26, 24, 21, 0.15);
|
|
279
|
+
animation: banner-in .25s cubic-bezier(.4, 0, .2, 1);
|
|
280
|
+
}
|
|
281
|
+
@keyframes banner-in {
|
|
282
|
+
from { opacity: 0; transform: translateY(-6px); }
|
|
283
|
+
to { opacity: 1; transform: translateY(0); }
|
|
284
|
+
}
|
|
285
|
+
.dirty-banner .dirty-dot {
|
|
286
|
+
width: 8px;
|
|
287
|
+
height: 8px;
|
|
288
|
+
border-radius: 50%;
|
|
289
|
+
background: var(--ink);
|
|
290
|
+
flex: 0 0 8px;
|
|
291
|
+
box-shadow: 0 0 0 0 rgba(26, 24, 21, 0.35);
|
|
292
|
+
animation: dirty-pulse 2s ease-in-out infinite;
|
|
293
|
+
}
|
|
294
|
+
.dirty-banner .dirty-text { flex: 1; }
|
|
295
|
+
|
|
296
|
+
/* Save button pulse — mirrors dirty banner */
|
|
297
|
+
.action.primary.is-dirty {
|
|
298
|
+
animation: save-pulse 1.6s ease-in-out infinite;
|
|
299
|
+
}
|
|
300
|
+
@keyframes save-pulse {
|
|
301
|
+
0%, 100% { box-shadow: 0 0 0 0 rgba(26, 24, 21, 0.25); }
|
|
302
|
+
50% { box-shadow: 0 0 0 4px rgba(26, 24, 21, 0); }
|
|
303
|
+
}
|