@codepulse-oss/web 0.0.0-stage → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/__tests__/github-app.test.d.ts +2 -0
  2. package/dist/__tests__/github-app.test.d.ts.map +1 -0
  3. package/dist/__tests__/github-app.test.js +91 -0
  4. package/dist/__tests__/github-app.test.js.map +1 -0
  5. package/dist/__tests__/i18n.test.d.ts +2 -0
  6. package/dist/__tests__/i18n.test.d.ts.map +1 -0
  7. package/dist/__tests__/i18n.test.js +76 -0
  8. package/dist/__tests__/i18n.test.js.map +1 -0
  9. package/dist/__tests__/onboarding-apis.test.d.ts +2 -0
  10. package/dist/__tests__/onboarding-apis.test.d.ts.map +1 -0
  11. package/dist/__tests__/onboarding-apis.test.js +152 -0
  12. package/dist/__tests__/onboarding-apis.test.js.map +1 -0
  13. package/dist/__tests__/phase5-web.test.d.ts +2 -0
  14. package/dist/__tests__/phase5-web.test.d.ts.map +1 -0
  15. package/dist/__tests__/phase5-web.test.js +72 -0
  16. package/dist/__tests__/phase5-web.test.js.map +1 -0
  17. package/dist/__tests__/poller-vault.test.d.ts +2 -0
  18. package/dist/__tests__/poller-vault.test.d.ts.map +1 -0
  19. package/dist/__tests__/poller-vault.test.js +150 -0
  20. package/dist/__tests__/poller-vault.test.js.map +1 -0
  21. package/dist/__tests__/v1-routes.test.d.ts +2 -0
  22. package/dist/__tests__/v1-routes.test.d.ts.map +1 -0
  23. package/dist/__tests__/v1-routes.test.js +133 -0
  24. package/dist/__tests__/v1-routes.test.js.map +1 -0
  25. package/dist/__tests__/v1.1-settings-telemetry.test.d.ts +2 -0
  26. package/dist/__tests__/v1.1-settings-telemetry.test.d.ts.map +1 -0
  27. package/dist/__tests__/v1.1-settings-telemetry.test.js +95 -0
  28. package/dist/__tests__/v1.1-settings-telemetry.test.js.map +1 -0
  29. package/dist/__tests__/v2-routes.test.d.ts +2 -0
  30. package/dist/__tests__/v2-routes.test.d.ts.map +1 -0
  31. package/dist/__tests__/v2-routes.test.js +61 -0
  32. package/dist/__tests__/v2-routes.test.js.map +1 -0
  33. package/dist/index.d.ts +2 -0
  34. package/dist/index.d.ts.map +1 -0
  35. package/dist/index.js +2 -0
  36. package/dist/index.js.map +1 -0
  37. package/dist/server.d.ts +84 -0
  38. package/dist/server.d.ts.map +1 -0
  39. package/dist/server.js +1804 -0
  40. package/dist/server.js.map +1 -0
  41. package/package.json +44 -4
  42. package/public/app.js +2087 -0
  43. package/public/fonts/cairo-arabic-400-normal.woff2 +0 -0
  44. package/public/fonts/cairo-arabic-500-normal.woff2 +0 -0
  45. package/public/fonts/cairo-arabic-600-normal.woff2 +0 -0
  46. package/public/fonts/cairo-arabic-700-normal.woff2 +0 -0
  47. package/public/fonts/cairo-latin-400-normal.woff2 +0 -0
  48. package/public/fonts/cairo-latin-500-normal.woff2 +0 -0
  49. package/public/fonts/cairo-latin-600-normal.woff2 +0 -0
  50. package/public/fonts/cairo-latin-700-normal.woff2 +0 -0
  51. package/public/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
  52. package/public/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
  53. package/public/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
  54. package/public/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
  55. package/public/fonts/plus-jakarta-sans-latin-400-normal.woff2 +0 -0
  56. package/public/fonts/plus-jakarta-sans-latin-500-normal.woff2 +0 -0
  57. package/public/fonts/plus-jakarta-sans-latin-600-normal.woff2 +0 -0
  58. package/public/fonts/plus-jakarta-sans-latin-700-normal.woff2 +0 -0
  59. package/public/fonts/plus-jakarta-sans-latin-ext-400-normal.woff2 +0 -0
  60. package/public/fonts/plus-jakarta-sans-latin-ext-500-normal.woff2 +0 -0
  61. package/public/fonts/plus-jakarta-sans-latin-ext-600-normal.woff2 +0 -0
  62. package/public/fonts/plus-jakarta-sans-latin-ext-700-normal.woff2 +0 -0
  63. package/public/i18n.js +882 -0
  64. package/public/index.html +775 -0
  65. package/public/styles.css +848 -0
  66. package/public/vendor/mermaid.min.js +4329 -0
  67. package/README.md +0 -3
@@ -0,0 +1,848 @@
1
+ /* Bundled Offline Typography: Cairo (Arabic + Latin), Plus Jakarta Sans, JetBrains Mono */
2
+ @font-face {
3
+ font-family: 'Cairo';
4
+ font-style: normal;
5
+ font-weight: 400;
6
+ font-display: swap;
7
+ src: url('/fonts/cairo-arabic-400-normal.woff2') format('woff2');
8
+ }
9
+ @font-face {
10
+ font-family: 'Cairo';
11
+ font-style: normal;
12
+ font-weight: 500;
13
+ font-display: swap;
14
+ src: url('/fonts/cairo-arabic-500-normal.woff2') format('woff2');
15
+ }
16
+ @font-face {
17
+ font-family: 'Cairo';
18
+ font-style: normal;
19
+ font-weight: 600;
20
+ font-display: swap;
21
+ src: url('/fonts/cairo-arabic-600-normal.woff2') format('woff2');
22
+ }
23
+ @font-face {
24
+ font-family: 'Cairo';
25
+ font-style: normal;
26
+ font-weight: 700;
27
+ font-display: swap;
28
+ src: url('/fonts/cairo-arabic-700-normal.woff2') format('woff2');
29
+ }
30
+ @font-face {
31
+ font-family: 'Cairo';
32
+ font-style: normal;
33
+ font-weight: 400;
34
+ font-display: swap;
35
+ src: url('/fonts/cairo-latin-400-normal.woff2') format('woff2');
36
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
37
+ }
38
+ @font-face {
39
+ font-family: 'Cairo';
40
+ font-style: normal;
41
+ font-weight: 600;
42
+ font-display: swap;
43
+ src: url('/fonts/cairo-latin-600-normal.woff2') format('woff2');
44
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
45
+ }
46
+
47
+ @font-face {
48
+ font-family: 'Plus Jakarta Sans';
49
+ font-style: normal;
50
+ font-weight: 400;
51
+ font-display: swap;
52
+ src: url('/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
53
+ }
54
+ @font-face {
55
+ font-family: 'Plus Jakarta Sans';
56
+ font-style: normal;
57
+ font-weight: 500;
58
+ font-display: swap;
59
+ src: url('/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
60
+ }
61
+ @font-face {
62
+ font-family: 'Plus Jakarta Sans';
63
+ font-style: normal;
64
+ font-weight: 600;
65
+ font-display: swap;
66
+ src: url('/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
67
+ }
68
+ @font-face {
69
+ font-family: 'Plus Jakarta Sans';
70
+ font-style: normal;
71
+ font-weight: 700;
72
+ font-display: swap;
73
+ src: url('/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
74
+ }
75
+
76
+ @font-face {
77
+ font-family: 'JetBrains Mono';
78
+ font-style: normal;
79
+ font-weight: 400;
80
+ font-display: swap;
81
+ src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
82
+ }
83
+ @font-face {
84
+ font-family: 'JetBrains Mono';
85
+ font-style: normal;
86
+ font-weight: 500;
87
+ font-display: swap;
88
+ src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
89
+ }
90
+ @font-face {
91
+ font-family: 'JetBrains Mono';
92
+ font-style: normal;
93
+ font-weight: 600;
94
+ font-display: swap;
95
+ src: url('/fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2');
96
+ }
97
+
98
+ :root, [data-theme="obsidian"] {
99
+ --bg: #0b0d11;
100
+ --surface: #11141a;
101
+ --surface-2: #171b23;
102
+ --surface-3: #080a0d;
103
+ --border: rgba(255, 255, 255, 0.08);
104
+ --border-strong: rgba(255, 255, 255, 0.14);
105
+ --text: #eceff4;
106
+ --muted: #8b95a5;
107
+ --accent: #5e6ad2;
108
+ --accent-hover: #707ce0;
109
+ --accent-soft: rgba(94, 106, 210, 0.14);
110
+ --green: #2ea043;
111
+ --amber: #d29922;
112
+ --red: #f85149;
113
+ --radius: 8px;
114
+ --font-sans: 'Plus Jakarta Sans', 'Cairo', system-ui, -apple-system, sans-serif;
115
+ --font-ar: 'Cairo', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
116
+ --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
117
+ }
118
+
119
+ [data-theme="slate"] {
120
+ --bg: #10151e;
121
+ --surface: #161d29;
122
+ --surface-2: #1d2636;
123
+ --surface-3: #0c1017;
124
+ --border: rgba(203, 213, 225, 0.1);
125
+ --border-strong: rgba(203, 213, 225, 0.18);
126
+ --text: #eef2f6;
127
+ --muted: #94a3b8;
128
+ --accent: #3b82f6;
129
+ --accent-hover: #60a5fa;
130
+ --accent-soft: rgba(59, 130, 246, 0.15);
131
+ --green: #3fb950;
132
+ --amber: #d29922;
133
+ --red: #f85149;
134
+ }
135
+
136
+ [data-theme="nord"] {
137
+ --bg: #2e3440;
138
+ --surface: #3b4252;
139
+ --surface-2: #434c5e;
140
+ --surface-3: #242933;
141
+ --border: rgba(216, 222, 233, 0.12);
142
+ --border-strong: rgba(216, 222, 233, 0.2);
143
+ --text: #eceff4;
144
+ --muted: #b0bac9;
145
+ --accent: #88c0d0;
146
+ --accent-hover: #8fbcbb;
147
+ --accent-soft: rgba(136, 192, 208, 0.16);
148
+ --green: #a3be8c;
149
+ --amber: #ebcb8b;
150
+ --red: #bf616a;
151
+ }
152
+
153
+ [data-theme="tokyo"] {
154
+ --bg: #1a1b26;
155
+ --surface: #1f2335;
156
+ --surface-2: #292e42;
157
+ --surface-3: #15161e;
158
+ --border: rgba(169, 177, 214, 0.12);
159
+ --border-strong: rgba(169, 177, 214, 0.22);
160
+ --text: #c0caf5;
161
+ --muted: #8b95c9;
162
+ --accent: #7aa2f7;
163
+ --accent-hover: #89b4fa;
164
+ --accent-soft: rgba(122, 162, 247, 0.16);
165
+ --green: #9ece6a;
166
+ --amber: #e0af68;
167
+ --red: #f7768e;
168
+ }
169
+
170
+ [data-theme="emerald"] {
171
+ --bg: #07130f;
172
+ --surface: #0b1c16;
173
+ --surface-2: #122921;
174
+ --surface-3: #040c09;
175
+ --border: rgba(167, 243, 208, 0.1);
176
+ --border-strong: rgba(167, 243, 208, 0.2);
177
+ --text: #ecfdf5;
178
+ --muted: #86b3a1;
179
+ --accent: #10b981;
180
+ --accent-hover: #34d399;
181
+ --accent-soft: rgba(16, 185, 129, 0.16);
182
+ --green: #34d399;
183
+ --amber: #fbbf24;
184
+ --red: #fb7185;
185
+ }
186
+
187
+ [data-theme="rose"] {
188
+ --bg: #191724;
189
+ --surface: #1f1d2e;
190
+ --surface-2: #26233a;
191
+ --surface-3: #14121d;
192
+ --border: rgba(235, 188, 186, 0.12);
193
+ --border-strong: rgba(235, 188, 186, 0.22);
194
+ --text: #e0def4;
195
+ --muted: #9893b0;
196
+ --accent: #ebbcba;
197
+ --accent-hover: #f2cdcd;
198
+ --accent-soft: rgba(235, 188, 186, 0.16);
199
+ --green: #9ccfd8;
200
+ --amber: #f6c177;
201
+ --red: #eb6f92;
202
+ }
203
+
204
+ [data-theme="dracula"] {
205
+ --bg: #1e1f29;
206
+ --surface: #282a36;
207
+ --surface-2: #343746;
208
+ --surface-3: #16171f;
209
+ --border: rgba(189, 147, 249, 0.14);
210
+ --border-strong: rgba(189, 147, 249, 0.26);
211
+ --text: #f8f8f2;
212
+ --muted: #9ea8c7;
213
+ --accent: #bd93f9;
214
+ --accent-hover: #caa9fa;
215
+ --accent-soft: rgba(189, 147, 249, 0.18);
216
+ --green: #50fa7b;
217
+ --amber: #f1fa8c;
218
+ --red: #ff5555;
219
+ }
220
+
221
+ [data-theme="amber"] {
222
+ --bg: #16110b;
223
+ --surface: #1f1810;
224
+ --surface-2: #2a2117;
225
+ --surface-3: #0f0b07;
226
+ --border: rgba(245, 158, 11, 0.14);
227
+ --border-strong: rgba(245, 158, 11, 0.26);
228
+ --text: #fef3c7;
229
+ --muted: #b69b74;
230
+ --accent: #f59e0b;
231
+ --accent-hover: #fbbf24;
232
+ --accent-soft: rgba(245, 158, 11, 0.18);
233
+ --green: #4ade80;
234
+ --amber: #fbbf24;
235
+ --red: #f87171;
236
+ }
237
+
238
+ [data-theme="light"] {
239
+ --bg: #f8f9fb;
240
+ --surface: #ffffff;
241
+ --surface-2: #f1f3f7;
242
+ --surface-3: #eceff4;
243
+ --border: #e2e6ee;
244
+ --border-strong: #cdd4e0;
245
+ --text: #161922;
246
+ --muted: #606a7a;
247
+ --accent: #4f46e5;
248
+ --accent-hover: #4338ca;
249
+ --accent-soft: rgba(79, 70, 229, 0.1);
250
+ --green: #1a7f37;
251
+ --amber: #9a6700;
252
+ --red: #cf222e;
253
+ }
254
+
255
+ [data-theme="paper"] {
256
+ --bg: #f7f4ec;
257
+ --surface: #fffdf8;
258
+ --surface-2: #efeae0;
259
+ --surface-3: #e7e1d4;
260
+ --border: #ddd5c5;
261
+ --border-strong: #c8beaa;
262
+ --text: #2c251d;
263
+ --muted: #6f6558;
264
+ --accent: #b45309;
265
+ --accent-hover: #92400e;
266
+ --accent-soft: rgba(180, 83, 9, 0.11);
267
+ --green: #15803d;
268
+ --amber: #b45309;
269
+ --red: #b91c1c;
270
+ }
271
+
272
+ * { box-sizing: border-box; }
273
+
274
+ body {
275
+ margin: 0;
276
+ font-family: var(--font-sans);
277
+ background: var(--bg);
278
+ color: var(--text);
279
+ height: 100vh;
280
+ display: flex;
281
+ flex-direction: column;
282
+ -webkit-font-smoothing: antialiased;
283
+ font-size: 13px;
284
+ line-height: 1.5;
285
+ }
286
+
287
+ [dir="rtl"] body,
288
+ html[lang="ar"] body {
289
+ font-family: var(--font-ar);
290
+ line-height: 1.65;
291
+ }
292
+
293
+ .hidden { display: none !important; }
294
+ .clickable { cursor: pointer; }
295
+ .row-gap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
296
+ .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
297
+
298
+ /* Minimal Topbar */
299
+ .topbar {
300
+ display: flex;
301
+ justify-content: space-between;
302
+ align-items: center;
303
+ padding: 10px 18px;
304
+ background: var(--surface);
305
+ border-bottom: 1px solid var(--border);
306
+ gap: 12px;
307
+ }
308
+
309
+ .brand { display: flex; align-items: center; gap: 11px; }
310
+ .brand-mark {
311
+ width: 28px;
312
+ height: 28px;
313
+ display: inline-flex;
314
+ align-items: center;
315
+ justify-content: center;
316
+ border-radius: 7px;
317
+ background: var(--surface-2);
318
+ border: 1px solid var(--border-strong);
319
+ color: var(--accent);
320
+ flex-shrink: 0;
321
+ }
322
+ .brand-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; display: block; line-height: 1.2; }
323
+ .subtitle { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
324
+ .topbar-actions { display: flex; align-items: center; gap: 8px; }
325
+
326
+ .update-banner,
327
+ .notice-banner {
328
+ display: flex;
329
+ justify-content: space-between;
330
+ align-items: center;
331
+ padding: 9px 18px;
332
+ background: var(--accent-soft);
333
+ border-bottom: 1px solid var(--accent);
334
+ font-size: 12.5px;
335
+ gap: 12px;
336
+ }
337
+ .notice-banner {
338
+ background: rgba(210, 153, 34, 0.12);
339
+ border-bottom-color: rgba(210, 153, 34, 0.45);
340
+ }
341
+
342
+ /* Main 3-Zone Workspace */
343
+ .cockpit-grid {
344
+ flex: 1;
345
+ display: grid;
346
+ grid-template-columns: 284px 1fr 312px;
347
+ gap: 12px;
348
+ padding: 12px 16px;
349
+ min-height: 0;
350
+ }
351
+
352
+ .panel {
353
+ display: flex;
354
+ flex-direction: column;
355
+ gap: 12px;
356
+ min-height: 0;
357
+ overflow-y: auto;
358
+ }
359
+
360
+ .card {
361
+ background: var(--surface);
362
+ border: 1px solid var(--border);
363
+ border-radius: var(--radius);
364
+ padding: 14px;
365
+ }
366
+ .card.grow { flex: 1; display: flex; flex-direction: column; min-height: 190px; }
367
+ .card-header {
368
+ display: flex;
369
+ justify-content: space-between;
370
+ align-items: center;
371
+ margin-bottom: 10px;
372
+ gap: 8px;
373
+ }
374
+ .card-header h3 {
375
+ margin: 0;
376
+ font-size: 11px;
377
+ font-weight: 600;
378
+ text-transform: uppercase;
379
+ letter-spacing: 0.06em;
380
+ color: var(--muted);
381
+ }
382
+
383
+ /* Unified Button Hierarchy */
384
+ .btn {
385
+ border: 1px solid var(--border-strong);
386
+ background: var(--surface-2);
387
+ color: var(--text);
388
+ padding: 6px 11px;
389
+ border-radius: 6px;
390
+ cursor: pointer;
391
+ font-family: inherit;
392
+ font-size: 12px;
393
+ font-weight: 500;
394
+ text-decoration: none;
395
+ display: inline-flex;
396
+ align-items: center;
397
+ justify-content: center;
398
+ gap: 6px;
399
+ transition: border-color 0.15s, background 0.15s, opacity 0.15s;
400
+ }
401
+ .btn:hover:not(:disabled) { border-color: var(--accent); background: var(--surface-2); }
402
+ .btn:disabled { opacity: 0.55; cursor: wait; }
403
+ .btn-primary { background: var(--accent); border-color: var(--accent); color: #ffffff; }
404
+ .btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
405
+ .btn-secondary { background: var(--surface-2); }
406
+ .btn-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
407
+ .btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); }
408
+ .btn-danger { background: rgba(248, 81, 73, 0.12); border-color: rgba(248, 81, 73, 0.45); color: var(--red); }
409
+ .btn-sm { padding: 4px 9px; font-size: 11px; }
410
+ .btn-xs { padding: 2px 7px; font-size: 10.5px; }
411
+ .full-span { grid-column: span 2; }
412
+
413
+ .pill {
414
+ padding: 3px 9px;
415
+ border-radius: 999px;
416
+ font-size: 11px;
417
+ font-weight: 600;
418
+ border: 1px solid var(--border);
419
+ font-family: var(--mono);
420
+ font-variant-numeric: tabular-nums;
421
+ white-space: nowrap;
422
+ }
423
+ .pill-accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(94, 106, 210, 0.35); }
424
+ .pill-muted { background: var(--surface-2); color: var(--muted); }
425
+ .pill-ok { background: rgba(46, 160, 67, 0.13); color: var(--green); border-color: rgba(46, 160, 67, 0.35); }
426
+ .pill-warn { background: rgba(210, 153, 34, 0.13); color: var(--amber); border-color: rgba(210, 153, 34, 0.38); }
427
+ .pill-danger { background: rgba(248, 81, 73, 0.13); color: var(--red); border-color: rgba(248, 81, 73, 0.38); }
428
+
429
+ .kbd-hint {
430
+ background: var(--surface-3);
431
+ border: 1px solid var(--border-strong);
432
+ border-radius: 4px;
433
+ padding: 1px 5px;
434
+ font-size: 10px;
435
+ font-family: var(--mono);
436
+ color: var(--muted);
437
+ }
438
+
439
+ .launcher-card { display: flex; flex-direction: column; gap: 12px; }
440
+ .launcher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
441
+ .launcher-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
442
+ .estimate-strip {
443
+ display: flex;
444
+ justify-content: space-between;
445
+ align-items: center;
446
+ flex-wrap: wrap;
447
+ gap: 8px;
448
+ padding: 8px 11px;
449
+ border-radius: 6px;
450
+ background: var(--surface-3);
451
+ border: 1px solid var(--border);
452
+ font-size: 11.5px;
453
+ font-family: var(--mono);
454
+ color: var(--muted);
455
+ }
456
+
457
+ .action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
458
+ .list { display: flex; flex-direction: column; gap: 7px; overflow-y: auto; }
459
+ .list-item {
460
+ padding: 9px 11px;
461
+ border-radius: 6px;
462
+ background: var(--surface-2);
463
+ border: 1px solid var(--border);
464
+ cursor: pointer;
465
+ font-size: 12px;
466
+ transition: border-color 0.15s;
467
+ }
468
+ .list-item.active, .list-item:hover { border-color: var(--accent); }
469
+ .progress-bar { height: 3px; background: var(--surface-3); border-radius: 3px; margin-top: 7px; overflow: hidden; }
470
+ .progress-fill { height: 100%; background: var(--accent); transition: width 0.25s; }
471
+
472
+ /* Underline Tabs */
473
+ .tabs {
474
+ display: flex;
475
+ gap: 4px;
476
+ flex-wrap: wrap;
477
+ border-bottom: 1px solid var(--border);
478
+ padding-inline: 2px;
479
+ }
480
+ .tab {
481
+ background: transparent;
482
+ border: none;
483
+ border-bottom: 2px solid transparent;
484
+ color: var(--muted);
485
+ padding: 8px 12px;
486
+ cursor: pointer;
487
+ font-family: inherit;
488
+ font-size: 12px;
489
+ font-weight: 500;
490
+ }
491
+ .tab:hover { color: var(--text); }
492
+ .tab.active {
493
+ background: transparent;
494
+ color: var(--text);
495
+ border-bottom-color: var(--accent);
496
+ }
497
+ .tab-content { display: none; flex: 1; overflow-y: auto; flex-direction: column; gap: 12px; }
498
+ .tab-content.active { display: flex; }
499
+
500
+ .banner {
501
+ padding: 13px;
502
+ border-radius: var(--radius);
503
+ background: var(--surface);
504
+ border: 1px solid var(--border);
505
+ font-size: 12.5px;
506
+ }
507
+ .findings-list { display: flex; flex-direction: column; gap: 10px; }
508
+
509
+ /* Hierarchical Collapsible Category Groups & Accordion Rows */
510
+ .cat-group {
511
+ border: 1px solid var(--border);
512
+ border-radius: var(--radius);
513
+ background: var(--surface);
514
+ overflow: hidden;
515
+ }
516
+ .cat-summary {
517
+ display: flex;
518
+ justify-content: space-between;
519
+ align-items: center;
520
+ gap: 10px;
521
+ padding: 10px 14px;
522
+ background: var(--surface-2);
523
+ cursor: pointer;
524
+ list-style: none;
525
+ font-size: 12px;
526
+ font-weight: 600;
527
+ border-bottom: 1px solid transparent;
528
+ }
529
+ .cat-group[open] > .cat-summary { border-bottom-color: var(--border); }
530
+ .cat-summary::-webkit-details-marker { display: none; }
531
+ .cat-items { display: flex; flex-direction: column; }
532
+
533
+ .finding-acc {
534
+ border-bottom: 1px solid var(--border);
535
+ border-inline-start: 3px solid var(--accent);
536
+ }
537
+ .finding-acc:last-child { border-bottom: none; }
538
+ .finding-acc.sev-critical { border-inline-start-color: var(--red); }
539
+ .finding-acc.sev-high { border-inline-start-color: var(--amber); }
540
+ .finding-acc.sev-medium { border-inline-start-color: var(--accent); }
541
+ .finding-acc.sev-low { border-inline-start-color: var(--muted); }
542
+
543
+ .finding-row {
544
+ display: grid;
545
+ grid-template-columns: auto minmax(140px, 230px) 1fr auto;
546
+ align-items: center;
547
+ gap: 10px;
548
+ padding: 9px 13px;
549
+ cursor: pointer;
550
+ list-style: none;
551
+ font-size: 12px;
552
+ }
553
+ .finding-row:hover { background: var(--surface-2); }
554
+ .finding-row::-webkit-details-marker { display: none; }
555
+ .finding-row-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
556
+ .finding-row-loc { font-family: var(--mono); font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
557
+ .finding-detail {
558
+ padding: 13px 15px;
559
+ background: var(--surface-3);
560
+ border-top: 1px solid var(--border);
561
+ font-size: 12.5px;
562
+ }
563
+ .finding-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
564
+ .finding-meta { font-size: 11px; color: var(--muted); margin: 6px 0; font-family: var(--mono); }
565
+ .finding-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
566
+
567
+ /* Colorized Diff & Debate Proof Viewer */
568
+ .diff-panel {
569
+ margin-top: 8px; border: 1px solid var(--border); border-radius: 6px;
570
+ background: var(--surface-3); overflow-x: auto; font-family: var(--mono); font-size: 12px;
571
+ }
572
+ .diff-split-grid { display: grid; grid-template-columns: 1fr 1fr; }
573
+ .diff-col { min-width: 0; overflow-x: auto; border-inline-end: 1px solid var(--border); }
574
+ .diff-col:last-child { border-inline-end: none; }
575
+ .diff-row { display: grid; grid-template-columns: 44px 1fr; padding: 2px 8px; line-height: 1.5; white-space: pre; }
576
+ .diff-ln { color: var(--muted); opacity: 0.7; user-select: none; text-align: end; padding-inline-end: 8px; }
577
+ .diff-line-add { background: rgba(46, 160, 67, 0.16); }
578
+ .diff-line-del { background: rgba(248, 81, 73, 0.16); }
579
+ .diff-line-hl { background: rgba(210, 153, 34, 0.16); border-inline-start: 2px solid var(--amber); }
580
+
581
+ details.debate-proof {
582
+ margin-top: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 8px 11px;
583
+ }
584
+ details.debate-proof summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--accent); }
585
+ .debate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }
586
+ .debate-cell { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 9px; font-size: 12px; }
587
+
588
+ pre.code-block {
589
+ background: var(--surface-3); padding: 11px; border-radius: 6px; overflow-x: auto;
590
+ font-size: 12px; font-family: var(--mono); border: 1px solid var(--border); margin: 8px 0 0;
591
+ }
592
+
593
+ /* Interactive Blast-Radius SVG Graph */
594
+ .graph-split { display: grid; grid-template-columns: 1fr 270px; gap: 10px; flex: 1; min-height: 440px; }
595
+ .graph-canvas-wrap {
596
+ position: relative; border: 1px solid var(--border); border-radius: var(--radius);
597
+ background: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0 / 20px 20px var(--surface-3);
598
+ overflow: hidden; min-height: 420px; cursor: grab;
599
+ }
600
+ .graph-canvas-wrap svg { width: 100%; height: 100%; display: block; }
601
+ .graph-node { cursor: pointer; }
602
+ .graph-node rect { rx: 6px; ry: 6px; stroke-width: 1.5; }
603
+ .graph-node text { fill: var(--text); font-family: var(--mono); font-size: 11px; pointer-events: none; }
604
+
605
+ /* Project Pulse Health & Mermaid Diagram Container */
606
+ .pulse-grid { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; }
607
+ .pulse-score-big { font-size: 40px; font-weight: 700; font-family: var(--mono); line-height: 1; }
608
+ .mermaid-box {
609
+ background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px;
610
+ padding: 12px; overflow-x: auto; margin-top: 8px; text-align: center;
611
+ }
612
+
613
+ /* Spacious Desktop Preferences Modal & Styled Pill Toggles */
614
+ .settings-header {
615
+ display: flex;
616
+ justify-content: space-between;
617
+ align-items: center;
618
+ padding: 16px 22px;
619
+ border-bottom: 1px solid var(--border);
620
+ flex-shrink: 0;
621
+ }
622
+ .settings-header h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
623
+ .settings-shell {
624
+ display: grid;
625
+ grid-template-columns: 236px minmax(0, 1fr);
626
+ flex: 1;
627
+ min-height: 0;
628
+ }
629
+ .settings-nav {
630
+ background: var(--surface-3);
631
+ border-inline-end: 1px solid var(--border);
632
+ padding: 16px 12px;
633
+ display: flex;
634
+ flex-direction: column;
635
+ gap: 5px;
636
+ overflow-y: auto;
637
+ }
638
+ .settings-nav-btn {
639
+ background: transparent;
640
+ border: 1px solid transparent;
641
+ color: var(--muted);
642
+ text-align: start;
643
+ padding: 10px 12px;
644
+ border-radius: 6px;
645
+ cursor: pointer;
646
+ font-family: inherit;
647
+ font-size: 12.5px;
648
+ font-weight: 500;
649
+ }
650
+ .settings-nav-btn:hover { color: var(--text); background: var(--surface-2); }
651
+ .settings-nav-btn.active { color: var(--text); background: var(--accent-soft); border-color: rgba(94, 106, 210, 0.35); }
652
+ .settings-body { padding: 24px 30px; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 16px; }
653
+ .settings-pane.hidden { display: none; }
654
+ .setting-section {
655
+ background: var(--surface-2);
656
+ border: 1px solid var(--border);
657
+ border-radius: var(--radius);
658
+ padding: 14px 16px;
659
+ display: flex;
660
+ flex-direction: column;
661
+ gap: 12px;
662
+ }
663
+ .setting-section-title {
664
+ font-size: 11px;
665
+ font-weight: 600;
666
+ text-transform: uppercase;
667
+ letter-spacing: 0.06em;
668
+ color: var(--muted);
669
+ margin: 0;
670
+ }
671
+
672
+ .switch-row {
673
+ display: flex;
674
+ flex-direction: row;
675
+ justify-content: space-between;
676
+ align-items: center;
677
+ gap: 16px;
678
+ color: var(--text);
679
+ font-size: 12.5px;
680
+ cursor: pointer;
681
+ }
682
+ .switch-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.45; }
683
+ .switch-title { font-weight: 500; color: var(--text); }
684
+ .switch-desc { font-size: 11.5px; color: var(--muted); }
685
+ .switch-control { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
686
+ .switch-control input {
687
+ opacity: 0;
688
+ width: 38px;
689
+ height: 22px;
690
+ margin: 0;
691
+ cursor: pointer;
692
+ position: relative;
693
+ z-index: 2;
694
+ }
695
+ .switch-slider {
696
+ position: absolute;
697
+ inset: 0;
698
+ background: var(--surface-3);
699
+ border: 1px solid var(--border-strong);
700
+ border-radius: 999px;
701
+ transition: background 0.18s, border-color 0.18s;
702
+ pointer-events: none;
703
+ }
704
+ .switch-slider::before {
705
+ content: '';
706
+ position: absolute;
707
+ width: 16px;
708
+ height: 16px;
709
+ inset-inline-start: 2px;
710
+ top: 2px;
711
+ border-radius: 50%;
712
+ background: var(--muted);
713
+ transition: transform 0.18s, background 0.18s;
714
+ }
715
+ .switch-control input:checked + .switch-slider {
716
+ background: var(--accent);
717
+ border-color: var(--accent);
718
+ }
719
+ .switch-control input:checked + .switch-slider::before {
720
+ transform: translateX(16px);
721
+ background: #ffffff;
722
+ }
723
+ [dir="rtl"] .switch-control input:checked + .switch-slider::before {
724
+ transform: translateX(-16px);
725
+ }
726
+
727
+ /* Quiet Status Footer Bar */
728
+ .status-bar {
729
+ display: flex;
730
+ justify-content: space-between;
731
+ align-items: center;
732
+ gap: 12px;
733
+ padding: 6px 18px;
734
+ background: var(--surface);
735
+ border-top: 1px solid var(--border);
736
+ font-size: 11px;
737
+ color: var(--muted);
738
+ flex-wrap: wrap;
739
+ }
740
+ .status-bar-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
741
+ .status-item {
742
+ background: transparent;
743
+ border: none;
744
+ padding: 2px 4px;
745
+ color: var(--muted);
746
+ font-family: var(--mono);
747
+ font-size: 11px;
748
+ cursor: pointer;
749
+ text-decoration: none;
750
+ display: inline-flex;
751
+ align-items: center;
752
+ gap: 5px;
753
+ }
754
+ .status-item:hover { color: var(--text); }
755
+ .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; }
756
+ .status-dot.ok { background: var(--green); }
757
+ .status-dot.warn { background: var(--amber); }
758
+
759
+ /* Toast Notification Stack */
760
+ .toast-stack {
761
+ position: fixed; bottom: 38px; inset-inline-end: 16px; z-index: 9999;
762
+ display: flex; flex-direction: column; gap: 8px; max-width: 360px; pointer-events: none;
763
+ }
764
+ .toast {
765
+ pointer-events: auto;
766
+ display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
767
+ padding: 10px 12px; border-radius: 7px; font-size: 12px; line-height: 1.4;
768
+ background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
769
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
770
+ }
771
+ .toast-ok { border-inline-start: 4px solid var(--green); }
772
+ .toast-err { border-inline-start: 4px solid var(--red); }
773
+ .toast-info { border-inline-start: 4px solid var(--accent); }
774
+ .toast-loading { border-inline-start: 4px solid var(--amber); }
775
+
776
+ .spin {
777
+ width: 12px; height: 12px; border: 2px solid var(--border-strong);
778
+ border-top-color: var(--accent); border-radius: 50%; display: inline-block;
779
+ animation: cp-spin 0.7s linear infinite;
780
+ }
781
+ @keyframes cp-spin { to { transform: rotate(360deg); } }
782
+
783
+ .dials-grid, .form-stack { display: flex; flex-direction: column; gap: 10px; }
784
+ .dial-row, label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
785
+ input[type="text"], input[type="password"], input[type="number"], select {
786
+ background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
787
+ padding: 7px 9px; border-radius: 6px; font-family: inherit; font-size: 12px;
788
+ }
789
+ .checkbox-row { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
790
+ .pill-toggles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
791
+ .toggle-pill {
792
+ flex-direction: row; align-items: center; gap: 5px;
793
+ background: var(--surface-2); border: 1px solid var(--border);
794
+ padding: 3px 9px; border-radius: 999px; font-size: 11px; color: var(--text);
795
+ }
796
+
797
+ .chat-card { display: flex; flex-direction: column; }
798
+ .chat-history { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; min-height: 180px; }
799
+ .chat-msg { padding: 9px 11px; border-radius: 6px; font-size: 12px; line-height: 1.5; }
800
+ .chat-msg.user { background: var(--accent-soft); align-self: flex-end; max-width: 90%; }
801
+ .chat-msg.bot { background: var(--surface-2); align-self: flex-start; max-width: 95%; }
802
+ .chat-input-row { display: flex; gap: 6px; }
803
+ .chat-input-row input { flex: 1; }
804
+
805
+ .bridge-grid, .slices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
806
+ .toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
807
+ .muted { color: var(--muted); font-size: 12px; }
808
+ .modal { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; padding: 18px; width: 490px; max-width: 95vw; }
809
+ .modal-lg { width: 700px; }
810
+ dialog.modal.settings-modal { width: min(980px, 94vw); max-width: 94vw; padding: 0; border-radius: 12px; overflow: hidden; }
811
+ dialog.modal.settings-modal[open] { display: flex; flex-direction: column; height: min(680px, 85vh); }
812
+ .modal::backdrop { background: rgba(0, 0, 0, 0.72); }
813
+ .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
814
+ .wizard-steps { display: flex; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 6px; flex-wrap: wrap; }
815
+ .device-code-big { font-size: 22px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); margin: 6px 0; font-family: var(--mono); }
816
+
817
+ /* 10-Theme Visual Swatch Picker */
818
+ .theme-swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; margin-top: 6px; }
819
+ .theme-swatch-card {
820
+ display: flex; flex-direction: column; gap: 6px; padding: 10px 11px;
821
+ border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface-2);
822
+ color: var(--text); cursor: pointer; text-align: start; font-size: 11px; font-weight: 600;
823
+ transition: transform 0.12s ease, border-color 0.12s ease;
824
+ }
825
+ .theme-swatch-card:hover { transform: translateY(-1px); border-color: var(--accent); }
826
+ .theme-swatch-card.active { border: 2px solid var(--accent); background: var(--accent-soft); }
827
+ .theme-swatch-dots { display: flex; align-items: center; gap: 5px; }
828
+ .theme-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(128,128,128,0.35); display: inline-block; }
829
+
830
+ .compliance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
831
+ .star-card {
832
+ display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
833
+ padding: 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--accent-soft);
834
+ }
835
+ .reach-pill { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--border-strong); }
836
+ .reach-external { background: rgba(248, 81, 73, 0.16); color: var(--red); border-color: rgba(248, 81, 73, 0.4); }
837
+ .reach-internal { background: rgba(210, 153, 34, 0.16); color: var(--amber); border-color: rgba(210, 153, 34, 0.4); }
838
+ .reach-isolated { background: var(--surface-3); color: var(--muted); }
839
+
840
+ @media (max-width: 1100px) {
841
+ .cockpit-grid { grid-template-columns: 1fr; }
842
+ .launcher-grid, .graph-split, .diff-split-grid, .pulse-grid { grid-template-columns: 1fr; }
843
+ .finding-row { grid-template-columns: auto 1fr; }
844
+ }
845
+ @media (max-width: 760px) {
846
+ .settings-shell { grid-template-columns: 1fr; }
847
+ .settings-nav { border-inline-end: none; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; }
848
+ }