visual-regression-ci 0.0.0-stage → 0.9.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.
Files changed (48) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +953 -2
  3. package/package.json +76 -4
  4. package/src/ci/actionReport.js +340 -0
  5. package/src/ci/prComment.js +420 -0
  6. package/src/cli/capture.js +243 -0
  7. package/src/cli/compare.js +190 -0
  8. package/src/cli/config.js +287 -0
  9. package/src/cli/database.js +69 -0
  10. package/src/cli/display.js +119 -0
  11. package/src/cli/errors.js +17 -0
  12. package/src/cli/index.js +577 -0
  13. package/src/cli/installBrowsers.js +59 -0
  14. package/src/cli/invocation.js +66 -0
  15. package/src/cli/jsonTarget.js +100 -0
  16. package/src/cli/logger.js +15 -0
  17. package/src/cli/manifest.js +139 -0
  18. package/src/cli/naming.js +60 -0
  19. package/src/cli/reporter.js +172 -0
  20. package/src/cli/result.js +225 -0
  21. package/src/cli/serve.js +64 -0
  22. package/src/server/app.js +135 -0
  23. package/src/server/db.js +691 -0
  24. package/src/server/importRuns.js +837 -0
  25. package/src/server/paths.js +107 -0
  26. package/src/server/public/css/styles.css +2362 -0
  27. package/src/server/public/js/common.js +32 -0
  28. package/src/server/public/js/dashboard.js +140 -0
  29. package/src/server/public/js/import-upload.js +169 -0
  30. package/src/server/public/js/review-actions.js +379 -0
  31. package/src/server/public/js/shortcuts.js +242 -0
  32. package/src/server/public/js/slider.js +104 -0
  33. package/src/server/public/js/tabs.js +85 -0
  34. package/src/server/public/js/theme.js +83 -0
  35. package/src/server/routes/api.js +141 -0
  36. package/src/server/routes/views.js +68 -0
  37. package/src/server/security.js +79 -0
  38. package/src/server/uploadImport.js +227 -0
  39. package/src/server/urls.js +31 -0
  40. package/src/server/viewModels.js +366 -0
  41. package/src/server/views/history.ejs +111 -0
  42. package/src/server/views/index.ejs +283 -0
  43. package/src/server/views/layout.ejs +11 -0
  44. package/src/server/views/partials/footer.ejs +11 -0
  45. package/src/server/views/partials/header.ejs +93 -0
  46. package/src/server/views/run-detail.ejs +295 -0
  47. package/src/shared/packageSpec.js +49 -0
  48. package/src/shared/text.js +59 -0
@@ -0,0 +1,2362 @@
1
+ /* ==========================================================================
2
+ Visual CI - Premium Dark Developer Theme
3
+ Exact Recreation: Rich Card Gradients, Large Circular Icons & Subtle Curves
4
+ ========================================================================== */
5
+
6
+ /* Google Fonts fallback for offline/isolated CI environments */
7
+ /* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap'); */
8
+
9
+ :root {
10
+ /* Dark theme (the default, and what you get without JavaScript). The light theme
11
+ overrides every colour token in :root[data-theme="light"] at the end of this file. */
12
+ color-scheme: dark;
13
+
14
+ /* Surfaces */
15
+ --bg-main: #0B1020;
16
+ --bg-secondary: #111827;
17
+ --bg-surface: #151F33;
18
+ --bg-card: #151F33;
19
+ --bg-table: #111A2B;
20
+ --border-color: #26344D;
21
+ /* Boundary of form controls (search box, theme toggle): >= 3:1 against the page */
22
+ --control-border: #64779A;
23
+
24
+ /* Brand Accents */
25
+ --primary-blue: #2997FF;
26
+ --bright-cyan: #38BDF8;
27
+ --success-green: #10B981;
28
+ --approved-purple: #8B5CF6;
29
+ /* M6 contrast fix: was #F43F5E (4.2:1 on the failed-pill tint) */
30
+ --error-red: #F9657C;
31
+
32
+ /* Text */
33
+ --text-primary: #F8FAFC;
34
+ --text-secondary: #A5B4CF;
35
+ /* M6 contrast fix: was #64748B (4.0:1 on --bg-main, 3.5:1 on --bg-card) */
36
+ --text-muted: #8391A7;
37
+ /* Text on a solid accent fill (hovered Approve / Reject / Inspect, slider handle) */
38
+ --on-accent: #0B1020;
39
+
40
+ /* Card Specific Palette */
41
+ --kpi-blue-start: #142C55;
42
+ --kpi-blue-end: #0756A5;
43
+ --kpi-blue-border: #285DA0;
44
+
45
+ --kpi-green-start: #103D36;
46
+ --kpi-green-end: #065F46;
47
+ --kpi-green-border: #167A62;
48
+
49
+ --kpi-red-start: #351B30;
50
+ --kpi-red-end: #4C1932;
51
+ --kpi-red-border: #79334B;
52
+
53
+ /* M6 contrast fix: KPI labels used --text-secondary (3.5:1 on the blue card) */
54
+ --kpi-label: #CBD5E6;
55
+ --kpi-value: #FFFFFF;
56
+ --kpi-value-green: #34D399;
57
+ --kpi-value-red: #FDA4AF;
58
+ --kpi-blue-icon: #FFFFFF;
59
+ --kpi-green-icon: #A7F3D0;
60
+ --kpi-red-icon: #FDA4AF;
61
+ --kpi-blue-icon-bg: rgba(41, 151, 255, 0.22);
62
+ --kpi-blue-icon-border: rgba(41, 151, 255, 0.42);
63
+ --kpi-blue-icon-shadow: rgba(7, 86, 165, 0.4);
64
+ --kpi-green-icon-bg: rgba(16, 185, 129, 0.22);
65
+ --kpi-green-icon-border: rgba(16, 185, 129, 0.42);
66
+ --kpi-green-icon-shadow: rgba(6, 95, 70, 0.4);
67
+ --kpi-red-icon-bg: rgba(244, 63, 94, 0.22);
68
+ --kpi-red-icon-border: rgba(244, 63, 94, 0.42);
69
+ --kpi-red-icon-shadow: rgba(76, 25, 50, 0.4);
70
+ /* Decorative curves (drawn at 28% / 14% opacity) */
71
+ --kpi-blue-curve: #FFFFFF;
72
+ --kpi-green-curve: #A7F3D0;
73
+ --kpi-red-curve: #FDA4AF;
74
+
75
+ /* Page heading icon and navbar brand */
76
+ --hero-gradient-start: #2563EB;
77
+ --hero-gradient-end: #7C3AED;
78
+ --hero-icon: #FFFFFF;
79
+ --hero-shadow: rgba(37, 99, 235, 0.35);
80
+ --brand-icon-bg-start: rgba(41, 151, 255, 0.25);
81
+ --brand-icon-bg-end: rgba(56, 189, 248, 0.08);
82
+ --brand-icon-border: rgba(41, 151, 255, 0.45);
83
+
84
+ /* Tints and overlays */
85
+ --hover-overlay: rgba(255, 255, 255, 0.05);
86
+ --row-hover: rgba(255, 255, 255, 0.035);
87
+ --subtle-fill: rgba(255, 255, 255, 0.06);
88
+ --badge-bg: rgba(17, 24, 39, 0.85);
89
+ --tab-active-bg: var(--bg-secondary);
90
+ --primary-tint-bg: rgba(41, 151, 255, 0.16);
91
+ --primary-on-tint: #4DA8FF; /* blue text on a blue tint: AA on any surface */
92
+ --primary-tint-border: rgba(41, 151, 255, 0.4);
93
+ --primary-glow: rgba(41, 151, 255, 0.35);
94
+ --focus-ring: rgba(41, 151, 255, 0.25);
95
+ --success-tint-bg: rgba(16, 185, 129, 0.16);
96
+ --success-tint-border: rgba(16, 185, 129, 0.45);
97
+ --success-glow: rgba(16, 185, 129, 0.6);
98
+ --danger-tint-bg: rgba(244, 63, 94, 0.16);
99
+ --danger-tint-border: rgba(244, 63, 94, 0.45);
100
+
101
+ /* Shadows */
102
+ --shadow-tab: 0 2px 4px rgba(0, 0, 0, 0.3);
103
+ --shadow-kpi: 0 6px 24px rgba(0, 0, 0, 0.28);
104
+ --shadow-kpi-hover: 0 8px 28px rgba(0, 0, 0, 0.36);
105
+ --shadow-table: 0 6px 24px rgba(0, 0, 0, 0.3);
106
+ --shadow-snapshot: 0 4px 20px rgba(0, 0, 0, 0.25);
107
+ --shadow-handle: 0 4px 14px rgba(0, 0, 0, 0.7);
108
+ --shadow-dialog: 0 20px 60px rgba(0, 0, 0, 0.6);
109
+ --dialog-backdrop: rgba(0, 0, 0, 0.6);
110
+
111
+ /* Backward Compatibility Aliases */
112
+ --bg-primary: var(--bg-main);
113
+ --accent-blue: var(--bright-cyan);
114
+ /* Status pill text: used for text, so each one meets 4.5:1 on its tint */
115
+ --status-passed-text: var(--success-green);
116
+ --status-failed-text: var(--error-red);
117
+ /* M6 contrast fix: --approved-purple is 3.5:1 on its tint; it stays for strokes */
118
+ --status-approved-text: #A78BFA;
119
+
120
+ /* Status Colors with Clean Alpha Tints */
121
+ --status-passed-bg: rgba(16, 185, 129, 0.14);
122
+ --status-passed-border: rgba(16, 185, 129, 0.4);
123
+ --status-approved-bg: rgba(139, 92, 246, 0.14);
124
+ --status-approved-border: rgba(139, 92, 246, 0.4);
125
+ --status-failed-bg: rgba(244, 63, 94, 0.14);
126
+ --status-failed-border: rgba(244, 63, 94, 0.4);
127
+ --status-rejected-bg: rgba(244, 63, 94, 0.14);
128
+ --status-rejected-border: rgba(244, 63, 94, 0.4);
129
+ --status-new-bg: rgba(56, 189, 248, 0.14);
130
+ --status-new-border: rgba(56, 189, 248, 0.4);
131
+ --status-new-text: var(--bright-cyan);
132
+ /* Page dimmed behind the "drop to import" hint */
133
+ --overlay-backdrop: rgba(11, 16, 32, 0.82);
134
+
135
+ /* Typography */
136
+ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
137
+ --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
138
+
139
+ --radius-sm: 6px;
140
+ --radius-md: 10px;
141
+ --radius-card: 14px;
142
+ --transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
143
+ }
144
+
145
+ /* Base Reset & Typography */
146
+ * {
147
+ box-sizing: border-box;
148
+ margin: 0;
149
+ padding: 0;
150
+ }
151
+
152
+ body {
153
+ font-family: var(--font-sans);
154
+ background-color: var(--bg-main);
155
+ color: var(--text-primary);
156
+ line-height: 1.5;
157
+ min-height: 100vh;
158
+ -webkit-font-smoothing: antialiased;
159
+ -moz-osx-font-smoothing: grayscale;
160
+ }
161
+
162
+ a {
163
+ color: var(--primary-blue);
164
+ text-decoration: none;
165
+ transition: var(--transition);
166
+ }
167
+
168
+ a:hover {
169
+ color: var(--bright-cyan);
170
+ }
171
+
172
+ /* Top Navigation Bar */
173
+ .navbar {
174
+ background-color: var(--bg-secondary);
175
+ border-bottom: 1px solid var(--border-color);
176
+ height: 60px;
177
+ position: sticky;
178
+ top: 0;
179
+ z-index: 50;
180
+ width: 100%;
181
+ }
182
+
183
+ .navbar-inner {
184
+ width: 92%;
185
+ max-width: 1600px;
186
+ margin: 0 auto;
187
+ height: 100%;
188
+ display: flex;
189
+ align-items: center;
190
+ justify-content: space-between;
191
+ }
192
+
193
+ .navbar-left {
194
+ display: flex;
195
+ align-items: center;
196
+ gap: 16px;
197
+ }
198
+
199
+ .navbar-brand {
200
+ display: flex;
201
+ align-items: center;
202
+ gap: 10px;
203
+ font-size: 16px;
204
+ font-weight: 700;
205
+ color: var(--text-primary);
206
+ text-decoration: none;
207
+ letter-spacing: -0.01em;
208
+ }
209
+
210
+ .navbar-brand-icon {
211
+ width: 30px;
212
+ height: 30px;
213
+ border-radius: var(--radius-sm);
214
+ background: linear-gradient(135deg, var(--brand-icon-bg-start) 0%, var(--brand-icon-bg-end) 100%);
215
+ border: 1px solid var(--brand-icon-border);
216
+ display: flex;
217
+ align-items: center;
218
+ justify-content: center;
219
+ color: var(--primary-blue);
220
+ }
221
+
222
+ .breadcrumb-separator {
223
+ color: var(--border-color);
224
+ font-size: 15px;
225
+ }
226
+
227
+ .breadcrumb-current {
228
+ color: var(--text-secondary);
229
+ font-size: 14px;
230
+ font-weight: 500;
231
+ }
232
+
233
+ .navbar-right {
234
+ display: flex;
235
+ align-items: center;
236
+ gap: 16px;
237
+ }
238
+
239
+ .navbar-link {
240
+ color: var(--text-secondary);
241
+ font-size: 14px;
242
+ font-weight: 500;
243
+ display: inline-flex;
244
+ align-items: center;
245
+ gap: 6px;
246
+ padding: 6px 12px;
247
+ border-radius: var(--radius-sm);
248
+ transition: var(--transition);
249
+ }
250
+
251
+ .navbar-link:hover {
252
+ color: var(--text-primary);
253
+ background-color: var(--hover-overlay);
254
+ }
255
+
256
+ /* Static demo (GitHub Pages build): banner under the navbar + note after a simulated action */
257
+ .demo-banner {
258
+ background-color: var(--status-new-bg);
259
+ border-bottom: 1px solid var(--status-new-border);
260
+ }
261
+
262
+ .demo-banner-inner {
263
+ width: 92%;
264
+ max-width: 1600px;
265
+ margin: 0 auto;
266
+ padding: 10px 0;
267
+ display: flex;
268
+ align-items: center;
269
+ gap: 12px;
270
+ }
271
+
272
+ .demo-banner-tag {
273
+ flex-shrink: 0;
274
+ font-size: 11px;
275
+ font-weight: 700;
276
+ letter-spacing: 0.06em;
277
+ text-transform: uppercase;
278
+ color: var(--status-new-text);
279
+ border: 1px solid var(--status-new-border);
280
+ border-radius: var(--radius-sm);
281
+ padding: 2px 8px;
282
+ }
283
+
284
+ .demo-banner-text {
285
+ font-size: 13px;
286
+ color: var(--text-secondary);
287
+ }
288
+
289
+ .demo-banner-link {
290
+ color: var(--bright-cyan);
291
+ font-weight: 600;
292
+ text-decoration: underline;
293
+ text-underline-offset: 2px;
294
+ white-space: nowrap;
295
+ }
296
+
297
+ .demo-banner-link:hover {
298
+ color: var(--text-primary);
299
+ }
300
+
301
+ .demo-banner-link:focus-visible {
302
+ outline: 2px solid var(--bright-cyan);
303
+ outline-offset: 2px;
304
+ border-radius: 2px;
305
+ }
306
+
307
+ .demo-note {
308
+ font-size: 12px;
309
+ color: var(--text-secondary);
310
+ }
311
+
312
+ /* Main Spacious Container: 92% viewport, max 1600px */
313
+ .container {
314
+ width: 92%;
315
+ max-width: 1600px;
316
+ margin: 0 auto;
317
+ padding: 36px 0 64px 0;
318
+ }
319
+
320
+ /* ─────────────────────────────────────────────────────────────
321
+ 1. Page Heading Section
322
+ ───────────────────────────────────────────────────────────── */
323
+ .page-heading {
324
+ display: flex;
325
+ justify-content: space-between;
326
+ align-items: center;
327
+ margin-bottom: 32px;
328
+ flex-wrap: wrap;
329
+ gap: 20px;
330
+ }
331
+
332
+ .page-heading-left {
333
+ display: flex;
334
+ align-items: center;
335
+ gap: 18px;
336
+ }
337
+
338
+ /* Square rounded icon container with blue/purple gradient */
339
+ .heading-icon-container {
340
+ width: 56px;
341
+ height: 56px;
342
+ border-radius: 14px;
343
+ background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
344
+ display: flex;
345
+ align-items: center;
346
+ justify-content: center;
347
+ box-shadow: 0 4px 18px var(--hero-shadow);
348
+ flex-shrink: 0;
349
+ }
350
+
351
+ .heading-icon-container svg {
352
+ color: var(--hero-icon);
353
+ }
354
+
355
+ .heading-text-group {
356
+ display: flex;
357
+ flex-direction: column;
358
+ justify-content: center;
359
+ }
360
+
361
+ .page-title {
362
+ font-size: 32px;
363
+ font-weight: 700;
364
+ color: var(--text-primary);
365
+ letter-spacing: -0.025em;
366
+ line-height: 1.2;
367
+ }
368
+
369
+ .page-subtitle {
370
+ font-size: 15px;
371
+ color: var(--text-secondary);
372
+ margin-top: 4px;
373
+ line-height: 1.5;
374
+ }
375
+
376
+ .page-heading-actions {
377
+ display: flex;
378
+ align-items: center;
379
+ gap: 12px;
380
+ }
381
+
382
+ .action-pill {
383
+ display: inline-flex;
384
+ align-items: center;
385
+ gap: 10px;
386
+ background-color: var(--bg-surface);
387
+ border: 1px solid var(--border-color);
388
+ color: var(--text-secondary);
389
+ font-size: 14px;
390
+ font-weight: 500;
391
+ padding: 8px 16px;
392
+ border-radius: var(--radius-md);
393
+ }
394
+
395
+ .action-pill-dot {
396
+ width: 8px;
397
+ height: 8px;
398
+ border-radius: 50%;
399
+ background-color: var(--success-green);
400
+ box-shadow: 0 0 10px var(--success-glow);
401
+ }
402
+
403
+ /* ─────────────────────────────────────────────────────────────
404
+ 2. KPI Statistics Cards (Exactly 3, 125-140px tall, circular icons)
405
+ ───────────────────────────────────────────────────────────── */
406
+ .kpi-grid {
407
+ display: grid;
408
+ grid-template-columns: repeat(3, 1fr);
409
+ gap: 24px;
410
+ margin-bottom: 32px;
411
+ }
412
+
413
+ .kpi-card {
414
+ position: relative;
415
+ overflow: hidden;
416
+ border-radius: var(--radius-card);
417
+ height: 132px;
418
+ padding: 0 28px;
419
+ display: flex;
420
+ align-items: center;
421
+ gap: 20px;
422
+ box-shadow: var(--shadow-kpi);
423
+ transition: var(--transition);
424
+ }
425
+
426
+ .kpi-card:hover {
427
+ transform: translateY(-2px);
428
+ box-shadow: var(--shadow-kpi-hover);
429
+ }
430
+
431
+ /* Blue Card: #142C55 to #0756A5, border #285DA0 */
432
+ .kpi-card-blue {
433
+ background: linear-gradient(115deg, var(--kpi-blue-start) 0%, var(--kpi-blue-end) 100%);
434
+ border: 1px solid var(--kpi-blue-border);
435
+ }
436
+
437
+ /* Green Card: #103D36 to #065F46, border #167A62 */
438
+ .kpi-card-green {
439
+ background: linear-gradient(115deg, var(--kpi-green-start) 0%, var(--kpi-green-end) 100%);
440
+ border: 1px solid var(--kpi-green-border);
441
+ }
442
+
443
+ /* Red Card: #351B30 to #4C1932, border #79334B */
444
+ .kpi-card-red {
445
+ background: linear-gradient(115deg, var(--kpi-red-start) 0%, var(--kpi-red-end) 100%);
446
+ border: 1px solid var(--kpi-red-border);
447
+ }
448
+
449
+ /* Large circular icon background on the left (64-70px) */
450
+ .kpi-icon-circle {
451
+ width: 68px;
452
+ height: 68px;
453
+ border-radius: 50%;
454
+ display: flex;
455
+ align-items: center;
456
+ justify-content: center;
457
+ flex-shrink: 0;
458
+ backdrop-filter: blur(8px);
459
+ }
460
+
461
+ .kpi-card-blue .kpi-icon-circle {
462
+ background: var(--kpi-blue-icon-bg);
463
+ border: 1px solid var(--kpi-blue-icon-border);
464
+ box-shadow: 0 4px 14px var(--kpi-blue-icon-shadow);
465
+ }
466
+
467
+ .kpi-card-green .kpi-icon-circle {
468
+ background: var(--kpi-green-icon-bg);
469
+ border: 1px solid var(--kpi-green-icon-border);
470
+ box-shadow: 0 4px 14px var(--kpi-green-icon-shadow);
471
+ }
472
+
473
+ .kpi-card-red .kpi-icon-circle {
474
+ background: var(--kpi-red-icon-bg);
475
+ border: 1px solid var(--kpi-red-icon-border);
476
+ box-shadow: 0 4px 14px var(--kpi-red-icon-shadow);
477
+ }
478
+
479
+ .kpi-icon-circle svg {
480
+ color: var(--kpi-blue-icon);
481
+ }
482
+
483
+ .kpi-card-green .kpi-icon-circle svg {
484
+ color: var(--kpi-green-icon);
485
+ }
486
+
487
+ .kpi-card-red .kpi-icon-circle svg {
488
+ color: var(--kpi-red-icon);
489
+ }
490
+
491
+ .kpi-content {
492
+ display: flex;
493
+ flex-direction: column;
494
+ justify-content: center;
495
+ z-index: 2;
496
+ }
497
+
498
+ .kpi-label {
499
+ font-size: 15px;
500
+ font-weight: 500;
501
+ color: var(--kpi-label);
502
+ margin-bottom: 4px;
503
+ letter-spacing: -0.01em;
504
+ }
505
+
506
+ .kpi-value {
507
+ font-size: 36px;
508
+ font-weight: 700;
509
+ line-height: 1;
510
+ letter-spacing: -0.02em;
511
+ font-variant-numeric: tabular-nums;
512
+ color: var(--kpi-value);
513
+ }
514
+
515
+ .kpi-value-green {
516
+ color: var(--kpi-value-green);
517
+ }
518
+
519
+ .kpi-value-red {
520
+ color: var(--kpi-value-red);
521
+ }
522
+
523
+ /* Decorative subtle curved SVG line along bottom-right */
524
+ .kpi-curve {
525
+ position: absolute;
526
+ right: 0;
527
+ bottom: 0;
528
+ width: 170px;
529
+ height: 85px;
530
+ pointer-events: none;
531
+ opacity: 0.8;
532
+ z-index: 1;
533
+ }
534
+
535
+ /* ─────────────────────────────────────────────────────────────
536
+ 3. Table Toolbar & Search
537
+ ───────────────────────────────────────────────────────────── */
538
+ .table-toolbar {
539
+ display: flex;
540
+ justify-content: space-between;
541
+ align-items: center;
542
+ margin-bottom: 18px;
543
+ gap: 16px;
544
+ flex-wrap: wrap;
545
+ }
546
+
547
+ .filter-tabs {
548
+ display: inline-flex;
549
+ background-color: var(--bg-surface);
550
+ border: 1px solid var(--border-color);
551
+ border-radius: var(--radius-md);
552
+ padding: 4px;
553
+ gap: 4px;
554
+ }
555
+
556
+ .filter-tab {
557
+ background: none;
558
+ border: none;
559
+ color: var(--text-secondary);
560
+ font-size: 13px;
561
+ font-weight: 600;
562
+ padding: 7px 16px;
563
+ border-radius: var(--radius-sm);
564
+ cursor: pointer;
565
+ transition: var(--transition);
566
+ }
567
+
568
+ .filter-tab:hover {
569
+ color: var(--text-primary);
570
+ }
571
+
572
+ .filter-tab.active {
573
+ background-color: var(--tab-active-bg);
574
+ color: var(--text-primary);
575
+ box-shadow: var(--shadow-tab);
576
+ }
577
+
578
+ .search-input-wrapper {
579
+ position: relative;
580
+ display: flex;
581
+ align-items: center;
582
+ }
583
+
584
+ .search-input-icon {
585
+ position: absolute;
586
+ left: 14px;
587
+ color: var(--text-muted);
588
+ pointer-events: none;
589
+ }
590
+
591
+ .search-input {
592
+ background-color: var(--bg-surface);
593
+ border: 1px solid var(--control-border);
594
+ color: var(--text-primary);
595
+ font-size: 13px;
596
+ padding: 9px 14px 9px 38px;
597
+ border-radius: var(--radius-md);
598
+ outline: none;
599
+ width: 280px;
600
+ transition: var(--transition);
601
+ }
602
+
603
+ .search-input:focus {
604
+ border-color: var(--primary-blue);
605
+ box-shadow: 0 0 0 2px var(--focus-ring);
606
+ }
607
+
608
+ .search-input::placeholder {
609
+ color: var(--text-muted);
610
+ }
611
+
612
+ /* ─────────────────────────────────────────────────────────────
613
+ 4. Test Runs Table
614
+ ───────────────────────────────────────────────────────────── */
615
+ .table-card {
616
+ background-color: var(--bg-table);
617
+ border: 1px solid var(--border-color);
618
+ border-radius: var(--radius-card);
619
+ overflow: hidden;
620
+ box-shadow: var(--shadow-table);
621
+ }
622
+
623
+ .table-responsive {
624
+ width: 100%;
625
+ overflow-x: auto;
626
+ /* Positioned, so absolutely positioned descendants (e.g. visually hidden text in
627
+ the Inspect buttons) are clipped here instead of widening the whole page */
628
+ position: relative;
629
+ }
630
+
631
+ table {
632
+ width: 100%;
633
+ border-collapse: collapse;
634
+ text-align: left;
635
+ }
636
+
637
+ thead th {
638
+ background-color: var(--bg-secondary);
639
+ color: var(--text-secondary);
640
+ font-size: 13px;
641
+ font-weight: 600;
642
+ text-transform: uppercase;
643
+ letter-spacing: 0.05em;
644
+ padding: 16px 24px;
645
+ border-bottom: 1px solid var(--border-color);
646
+ white-space: nowrap;
647
+ }
648
+
649
+ /* 58px row height */
650
+ tbody td {
651
+ padding: 18px 24px;
652
+ border-bottom: 1px solid var(--border-color);
653
+ font-size: 14px;
654
+ vertical-align: middle;
655
+ }
656
+
657
+ tbody tr:last-child td {
658
+ border-bottom: none;
659
+ }
660
+
661
+ tbody tr {
662
+ transition: background-color 0.15s ease;
663
+ }
664
+
665
+ tbody tr:hover {
666
+ background-color: var(--row-hover);
667
+ }
668
+
669
+ /* Status Pills */
670
+ .status-pill {
671
+ display: inline-flex;
672
+ align-items: center;
673
+ gap: 7px;
674
+ padding: 6px 12px;
675
+ border-radius: 9999px;
676
+ font-size: 12px;
677
+ font-weight: 700;
678
+ letter-spacing: 0.03em;
679
+ border: 1px solid transparent;
680
+ white-space: nowrap;
681
+ }
682
+
683
+ .status-pill-passed {
684
+ background-color: var(--status-passed-bg);
685
+ color: var(--status-passed-text);
686
+ border-color: var(--status-passed-border);
687
+ }
688
+
689
+ .status-pill-approved {
690
+ background-color: var(--status-approved-bg);
691
+ color: var(--status-approved-text);
692
+ border-color: var(--status-approved-border);
693
+ }
694
+
695
+ .status-pill-failed {
696
+ background-color: var(--status-failed-bg);
697
+ color: var(--status-failed-text);
698
+ border-color: var(--status-failed-border);
699
+ }
700
+
701
+ .status-pill-rejected {
702
+ background-color: var(--status-rejected-bg);
703
+ color: var(--status-failed-text);
704
+ border-color: var(--status-rejected-border);
705
+ }
706
+
707
+ .status-pill-new {
708
+ background-color: var(--status-new-bg);
709
+ color: var(--status-new-text);
710
+ border-color: var(--status-new-border);
711
+ }
712
+
713
+ /* Run ID Link */
714
+ .run-id-link {
715
+ font-family: var(--font-mono);
716
+ font-size: 14px;
717
+ font-weight: 600;
718
+ color: var(--bright-cyan);
719
+ text-decoration: none;
720
+ transition: var(--transition);
721
+ }
722
+
723
+ .run-id-link:hover {
724
+ color: var(--primary-blue);
725
+ text-decoration: underline;
726
+ }
727
+
728
+ /* Git Context Badges */
729
+ .git-context {
730
+ display: inline-flex;
731
+ align-items: center;
732
+ gap: 8px;
733
+ flex-wrap: wrap;
734
+ }
735
+
736
+ .git-badge {
737
+ display: inline-flex;
738
+ align-items: center;
739
+ gap: 6px;
740
+ background-color: var(--badge-bg);
741
+ border: 1px solid var(--border-color);
742
+ padding: 4px 10px;
743
+ border-radius: var(--radius-sm);
744
+ font-size: 13px;
745
+ font-family: var(--font-mono);
746
+ color: var(--text-primary);
747
+ }
748
+
749
+ .git-icon {
750
+ color: var(--success-green);
751
+ flex-shrink: 0;
752
+ }
753
+
754
+ .git-commit {
755
+ color: var(--text-secondary);
756
+ }
757
+
758
+ /* Snapshots Column */
759
+ .snapshots-summary {
760
+ display: flex;
761
+ align-items: center;
762
+ gap: 10px;
763
+ }
764
+
765
+ .snapshots-count {
766
+ font-weight: 600;
767
+ color: var(--text-primary);
768
+ font-size: 14px;
769
+ }
770
+
771
+ .snapshots-sub {
772
+ font-size: 13px;
773
+ display: inline-flex;
774
+ align-items: center;
775
+ gap: 6px;
776
+ }
777
+
778
+ .match-count {
779
+ color: var(--success-green);
780
+ font-weight: 600;
781
+ }
782
+
783
+ .diff-count {
784
+ color: var(--error-red);
785
+ font-weight: 600;
786
+ }
787
+
788
+ /* Created Timestamp */
789
+ .timestamp-text {
790
+ color: var(--text-secondary);
791
+ font-size: 13px;
792
+ font-variant-numeric: tabular-nums;
793
+ white-space: nowrap;
794
+ }
795
+
796
+ /* Action Buttons */
797
+ .btn-inspect {
798
+ display: inline-flex;
799
+ align-items: center;
800
+ gap: 6px;
801
+ background-color: var(--primary-tint-bg);
802
+ color: var(--primary-on-tint);
803
+ border: 1px solid var(--primary-tint-border);
804
+ padding: 7px 16px;
805
+ border-radius: var(--radius-sm);
806
+ font-size: 13px;
807
+ font-weight: 600;
808
+ text-decoration: none;
809
+ transition: var(--transition);
810
+ cursor: pointer;
811
+ }
812
+
813
+ .btn-inspect:hover {
814
+ background-color: var(--primary-blue);
815
+ color: var(--on-accent);
816
+ border-color: var(--primary-blue);
817
+ box-shadow: 0 2px 10px var(--primary-glow);
818
+ text-decoration: none;
819
+ }
820
+
821
+ /* Pagination Bar */
822
+ .pagination-bar {
823
+ display: flex;
824
+ justify-content: space-between;
825
+ align-items: center;
826
+ padding: 18px 24px;
827
+ background-color: var(--bg-secondary);
828
+ border-top: 1px solid var(--border-color);
829
+ font-size: 13px;
830
+ color: var(--text-secondary);
831
+ }
832
+
833
+ .pagination-controls {
834
+ display: flex;
835
+ align-items: center;
836
+ gap: 10px;
837
+ }
838
+
839
+ .pagination-btn {
840
+ background-color: var(--bg-surface);
841
+ border: 1px solid var(--border-color);
842
+ color: var(--text-primary);
843
+ padding: 6px 14px;
844
+ border-radius: var(--radius-sm);
845
+ font-size: 13px;
846
+ font-weight: 500;
847
+ cursor: pointer;
848
+ transition: var(--transition);
849
+ }
850
+
851
+ .pagination-btn:hover:not(:disabled) {
852
+ background-color: var(--border-color);
853
+ }
854
+
855
+ .pagination-btn:disabled {
856
+ opacity: 0.4;
857
+ cursor: not-allowed;
858
+ }
859
+
860
+ /* ==========================================================================
861
+ Run Detail Page Styling
862
+ ========================================================================== */
863
+
864
+ .detail-header-card {
865
+ background-color: var(--bg-surface);
866
+ border: 1px solid var(--border-color);
867
+ border-radius: var(--radius-card);
868
+ padding: 28px 32px;
869
+ margin-bottom: 28px;
870
+ }
871
+
872
+ .detail-title-row {
873
+ display: flex;
874
+ align-items: center;
875
+ justify-content: space-between;
876
+ gap: 16px;
877
+ flex-wrap: wrap;
878
+ margin-bottom: 14px;
879
+ }
880
+
881
+ .detail-run-id {
882
+ font-family: var(--font-mono);
883
+ font-size: 24px;
884
+ font-weight: 700;
885
+ color: var(--bright-cyan);
886
+ }
887
+
888
+ .detail-meta-row {
889
+ display: flex;
890
+ align-items: center;
891
+ gap: 16px;
892
+ flex-wrap: wrap;
893
+ font-size: 14px;
894
+ color: var(--text-secondary);
895
+ }
896
+
897
+ .snapshot-card {
898
+ background-color: var(--bg-surface);
899
+ border: 1px solid var(--border-color);
900
+ border-radius: var(--radius-card);
901
+ margin-bottom: 28px;
902
+ overflow: hidden;
903
+ box-shadow: var(--shadow-snapshot);
904
+ }
905
+
906
+ .snapshot-header {
907
+ padding: 18px 24px;
908
+ background-color: var(--bg-secondary);
909
+ border-bottom: 1px solid var(--border-color);
910
+ display: flex;
911
+ justify-content: space-between;
912
+ align-items: center;
913
+ flex-wrap: wrap;
914
+ gap: 12px;
915
+ }
916
+
917
+ .snapshot-title {
918
+ display: flex;
919
+ align-items: center;
920
+ gap: 12px;
921
+ font-size: 16px;
922
+ font-weight: 600;
923
+ }
924
+
925
+ .route-pill {
926
+ font-family: var(--font-mono);
927
+ background-color: var(--bg-table);
928
+ border: 1px solid var(--border-color);
929
+ color: var(--bright-cyan);
930
+ padding: 4px 10px;
931
+ border-radius: var(--radius-sm);
932
+ font-size: 14px;
933
+ }
934
+
935
+ .viewport-badge {
936
+ background-color: var(--subtle-fill);
937
+ border: 1px solid var(--border-color);
938
+ color: var(--text-secondary);
939
+ padding: 4px 10px;
940
+ border-radius: var(--radius-sm);
941
+ font-size: 13px;
942
+ font-family: var(--font-mono);
943
+ }
944
+
945
+ .snapshot-actions {
946
+ display: flex;
947
+ gap: 12px;
948
+ align-items: center;
949
+ }
950
+
951
+ .btn-approve {
952
+ display: inline-flex;
953
+ align-items: center;
954
+ gap: 8px;
955
+ background-color: var(--success-tint-bg);
956
+ color: var(--success-green);
957
+ border: 1px solid var(--success-tint-border);
958
+ padding: 8px 16px;
959
+ font-size: 13px;
960
+ font-weight: 600;
961
+ border-radius: var(--radius-sm);
962
+ cursor: pointer;
963
+ transition: var(--transition);
964
+ }
965
+
966
+ .btn-approve:hover {
967
+ background-color: var(--success-green);
968
+ color: var(--on-accent);
969
+ }
970
+
971
+ .btn-reject {
972
+ display: inline-flex;
973
+ align-items: center;
974
+ gap: 8px;
975
+ background-color: var(--danger-tint-bg);
976
+ color: var(--error-red);
977
+ border: 1px solid var(--danger-tint-border);
978
+ padding: 8px 16px;
979
+ font-size: 13px;
980
+ font-weight: 600;
981
+ border-radius: var(--radius-sm);
982
+ cursor: pointer;
983
+ transition: var(--transition);
984
+ }
985
+
986
+ .btn-reject:hover {
987
+ background-color: var(--error-red);
988
+ color: var(--on-accent);
989
+ }
990
+
991
+ /* Tabs Navigation */
992
+ .tabs-nav {
993
+ display: flex;
994
+ background-color: var(--bg-table);
995
+ border-bottom: 1px solid var(--border-color);
996
+ padding: 0 20px;
997
+ gap: 6px;
998
+ }
999
+
1000
+ .tab-btn {
1001
+ background: none;
1002
+ border: none;
1003
+ color: var(--text-secondary);
1004
+ padding: 14px 18px;
1005
+ font-size: 14px;
1006
+ font-weight: 600;
1007
+ cursor: pointer;
1008
+ border-bottom: 2px solid transparent;
1009
+ transition: var(--transition);
1010
+ }
1011
+
1012
+ .tab-btn:hover {
1013
+ color: var(--text-primary);
1014
+ }
1015
+
1016
+ .tab-btn.active {
1017
+ color: var(--primary-blue);
1018
+ border-bottom-color: var(--primary-blue);
1019
+ }
1020
+
1021
+ .tab-panel {
1022
+ display: none;
1023
+ padding: 28px;
1024
+ }
1025
+
1026
+ .tab-panel.active {
1027
+ display: block;
1028
+ }
1029
+
1030
+ /* Side-by-Side */
1031
+ .side-by-side {
1032
+ display: grid;
1033
+ grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
1034
+ gap: 28px;
1035
+ }
1036
+
1037
+ .image-preview-container {
1038
+ display: flex;
1039
+ flex-direction: column;
1040
+ gap: 10px;
1041
+ }
1042
+
1043
+ .image-preview-label {
1044
+ font-size: 13px;
1045
+ font-weight: 600;
1046
+ color: var(--text-secondary);
1047
+ text-transform: uppercase;
1048
+ letter-spacing: 0.05em;
1049
+ }
1050
+
1051
+ .image-frame {
1052
+ background-color: var(--bg-main);
1053
+ border: 1px solid var(--border-color);
1054
+ border-radius: var(--radius-md);
1055
+ overflow: hidden;
1056
+ max-height: 800px;
1057
+ overflow-y: auto;
1058
+ }
1059
+
1060
+ .image-frame img {
1061
+ width: 100%;
1062
+ height: auto;
1063
+ display: block;
1064
+ }
1065
+
1066
+ /* Draggable Split Slider */
1067
+ .slider-view-container {
1068
+ position: relative;
1069
+ width: 100%;
1070
+ max-width: 1400px;
1071
+ margin: 0 auto;
1072
+ background-color: var(--bg-main);
1073
+ border: 1px solid var(--border-color);
1074
+ border-radius: var(--radius-md);
1075
+ overflow: hidden;
1076
+ max-height: 800px;
1077
+ overflow-y: auto;
1078
+ user-select: none;
1079
+ }
1080
+
1081
+ .slider-wrapper {
1082
+ position: relative;
1083
+ width: 100%;
1084
+ }
1085
+
1086
+ .slider-img-under {
1087
+ display: block;
1088
+ width: 100%;
1089
+ height: auto;
1090
+ }
1091
+
1092
+ .slider-img-over-wrapper {
1093
+ position: absolute;
1094
+ top: 0;
1095
+ left: 0;
1096
+ width: 50%;
1097
+ height: 100%;
1098
+ overflow: hidden;
1099
+ border-right: 2px solid var(--primary-blue);
1100
+ }
1101
+
1102
+ .slider-img-over {
1103
+ position: absolute;
1104
+ top: 0;
1105
+ left: 0;
1106
+ width: 100%;
1107
+ height: 100%;
1108
+ object-fit: cover;
1109
+ object-position: left top;
1110
+ }
1111
+
1112
+ .slider-divider {
1113
+ position: absolute;
1114
+ top: 0;
1115
+ bottom: 0;
1116
+ left: 50%;
1117
+ width: 2px;
1118
+ background-color: var(--primary-blue);
1119
+ cursor: ew-resize;
1120
+ transform: translateX(-50%);
1121
+ display: flex;
1122
+ align-items: center;
1123
+ justify-content: center;
1124
+ z-index: 10;
1125
+ }
1126
+
1127
+ .slider-handle-pill {
1128
+ width: 36px;
1129
+ height: 36px;
1130
+ background-color: var(--primary-blue);
1131
+ border: 2px solid var(--bg-main);
1132
+ border-radius: 50%;
1133
+ display: flex;
1134
+ align-items: center;
1135
+ justify-content: center;
1136
+ box-shadow: var(--shadow-handle);
1137
+ color: var(--on-accent);
1138
+ font-size: 15px;
1139
+ font-weight: 700;
1140
+ }
1141
+
1142
+ /* Empty State */
1143
+ .empty-state {
1144
+ text-align: center;
1145
+ padding: 72px 24px;
1146
+ color: var(--text-secondary);
1147
+ }
1148
+
1149
+ .empty-state-icon {
1150
+ width: 52px;
1151
+ height: 52px;
1152
+ margin: 0 auto 16px auto;
1153
+ color: var(--text-muted);
1154
+ }
1155
+
1156
+ .empty-state-title {
1157
+ font-size: 17px;
1158
+ font-weight: 600;
1159
+ color: var(--text-primary);
1160
+ margin-bottom: 8px;
1161
+ }
1162
+
1163
+ .empty-state-desc {
1164
+ font-size: 14px;
1165
+ color: var(--text-muted);
1166
+ max-width: 460px;
1167
+ margin: 0 auto;
1168
+ line-height: 1.5;
1169
+ }
1170
+
1171
+ /* Responsive Media Queries */
1172
+ @media (max-width: 1200px) {
1173
+ .side-by-side {
1174
+ grid-template-columns: 1fr;
1175
+ }
1176
+ }
1177
+
1178
+ @media (max-width: 992px) {
1179
+ .kpi-grid {
1180
+ grid-template-columns: repeat(2, 1fr);
1181
+ }
1182
+ }
1183
+
1184
+ @media (max-width: 680px) {
1185
+ .container {
1186
+ width: 95%;
1187
+ padding: 24px 0;
1188
+ }
1189
+ .navbar-inner {
1190
+ width: 95%;
1191
+ }
1192
+ .demo-banner-inner {
1193
+ width: 95%;
1194
+ align-items: flex-start;
1195
+ }
1196
+ .kpi-grid {
1197
+ grid-template-columns: 1fr;
1198
+ }
1199
+ .page-heading {
1200
+ flex-direction: column;
1201
+ align-items: flex-start;
1202
+ }
1203
+ }
1204
+
1205
+ /* Screen-reader-only content (e.g. the #live-region status announcer) */
1206
+ .visually-hidden {
1207
+ position: absolute !important;
1208
+ width: 1px !important;
1209
+ height: 1px !important;
1210
+ padding: 0 !important;
1211
+ margin: -1px !important;
1212
+ overflow: hidden !important;
1213
+ clip: rect(0, 0, 0, 0) !important;
1214
+ white-space: nowrap !important;
1215
+ border: 0 !important;
1216
+ }
1217
+
1218
+ /* ==========================================================================
1219
+ Approve all pending (run detail header) - M3
1220
+ Same look as .btn-approve (green tint), sized for the run header.
1221
+ ========================================================================== */
1222
+
1223
+ .run-status-container {
1224
+ display: inline-flex;
1225
+ align-items: center;
1226
+ }
1227
+
1228
+ .btn-approve-all {
1229
+ display: inline-flex;
1230
+ align-items: center;
1231
+ gap: 8px;
1232
+ background-color: var(--success-tint-bg);
1233
+ color: var(--success-green);
1234
+ border: 1px solid var(--success-tint-border);
1235
+ padding: 8px 16px;
1236
+ font-family: inherit;
1237
+ font-size: 13px;
1238
+ font-weight: 600;
1239
+ border-radius: var(--radius-sm);
1240
+ cursor: pointer;
1241
+ transition: var(--transition);
1242
+ }
1243
+
1244
+ .btn-approve-all:hover:not(:disabled) {
1245
+ background-color: var(--success-green);
1246
+ color: var(--on-accent);
1247
+ }
1248
+
1249
+ .btn-approve-all:focus-visible {
1250
+ outline: 2px solid var(--bright-cyan);
1251
+ outline-offset: 2px;
1252
+ }
1253
+
1254
+ .btn-approve-all:disabled {
1255
+ cursor: progress;
1256
+ opacity: 0.7;
1257
+ }
1258
+
1259
+ /* display: inline-flex above would otherwise override the hidden attribute */
1260
+ .btn-approve-all[hidden] {
1261
+ display: none;
1262
+ }
1263
+
1264
+ /* ==========================================================================
1265
+ History page (GET /history/:slug/:viewport) and run-detail "History" links
1266
+ ========================================================================== */
1267
+ .history-link {
1268
+ font-size: 13px;
1269
+ font-weight: 600;
1270
+ color: var(--primary-blue);
1271
+ padding: 4px 10px;
1272
+ border: 1px solid var(--primary-tint-border);
1273
+ border-radius: var(--radius-sm);
1274
+ text-decoration: none;
1275
+ transition: var(--transition);
1276
+ }
1277
+
1278
+ .history-link:hover,
1279
+ .history-link:focus-visible {
1280
+ background-color: var(--primary-tint-bg);
1281
+ text-decoration: none;
1282
+ }
1283
+
1284
+ .history-title {
1285
+ display: flex;
1286
+ align-items: center;
1287
+ gap: 12px;
1288
+ flex-wrap: wrap;
1289
+ }
1290
+
1291
+ .history-chart-card {
1292
+ background-color: var(--bg-surface);
1293
+ border: 1px solid var(--border-color);
1294
+ border-radius: var(--radius-card);
1295
+ padding: 20px 24px;
1296
+ margin-bottom: 28px;
1297
+ }
1298
+
1299
+ .history-chart-head {
1300
+ display: flex;
1301
+ justify-content: space-between;
1302
+ align-items: baseline;
1303
+ flex-wrap: wrap;
1304
+ gap: 12px;
1305
+ margin-bottom: 12px;
1306
+ }
1307
+
1308
+ .history-chart-title {
1309
+ font-size: 15px;
1310
+ font-weight: 600;
1311
+ color: var(--text-primary);
1312
+ }
1313
+
1314
+ .history-chart-sub {
1315
+ font-weight: 500;
1316
+ color: var(--text-muted);
1317
+ font-size: 13px;
1318
+ }
1319
+
1320
+ .history-chart-stats {
1321
+ display: flex;
1322
+ gap: 20px;
1323
+ font-size: 13px;
1324
+ }
1325
+
1326
+ .history-chart-stats div {
1327
+ display: flex;
1328
+ gap: 6px;
1329
+ }
1330
+
1331
+ .history-chart-stats dt {
1332
+ color: var(--text-muted);
1333
+ }
1334
+
1335
+ .history-chart-stats dd {
1336
+ color: var(--text-primary);
1337
+ font-weight: 600;
1338
+ font-variant-numeric: tabular-nums;
1339
+ }
1340
+
1341
+ .history-sparkline {
1342
+ display: block;
1343
+ width: 100%;
1344
+ height: auto;
1345
+ overflow: visible;
1346
+ }
1347
+
1348
+ .history-sparkline-axis {
1349
+ stroke: var(--border-color);
1350
+ stroke-width: 1;
1351
+ }
1352
+
1353
+ .history-sparkline-line {
1354
+ fill: none;
1355
+ stroke: var(--bright-cyan);
1356
+ stroke-width: 2;
1357
+ stroke-linejoin: round;
1358
+ stroke-linecap: round;
1359
+ vector-effect: non-scaling-stroke;
1360
+ }
1361
+
1362
+ .history-sparkline-dot {
1363
+ fill: var(--bright-cyan);
1364
+ }
1365
+
1366
+ .history-sparkline-dot.is-latest {
1367
+ fill: var(--bg-surface);
1368
+ stroke: var(--bright-cyan);
1369
+ stroke-width: 2;
1370
+ }
1371
+
1372
+ .history-sparkline-change {
1373
+ stroke: var(--approved-purple);
1374
+ stroke-width: 1.5;
1375
+ stroke-dasharray: 4 4;
1376
+ }
1377
+
1378
+ .history-chart-legend {
1379
+ margin-top: 10px;
1380
+ font-size: 12px;
1381
+ color: var(--text-muted);
1382
+ display: flex;
1383
+ align-items: center;
1384
+ gap: 8px;
1385
+ }
1386
+
1387
+ .history-legend-swatch {
1388
+ display: inline-block;
1389
+ width: 18px;
1390
+ border-top: 2px dashed var(--approved-purple);
1391
+ }
1392
+
1393
+ .history-table td {
1394
+ vertical-align: top;
1395
+ }
1396
+
1397
+ .history-time {
1398
+ margin-top: 4px;
1399
+ }
1400
+
1401
+ .history-mismatch {
1402
+ font-variant-numeric: tabular-nums;
1403
+ font-weight: 600;
1404
+ white-space: nowrap;
1405
+ }
1406
+
1407
+ .history-baseline-marker {
1408
+ display: inline-flex;
1409
+ align-items: center;
1410
+ gap: 5px;
1411
+ margin-top: 8px;
1412
+ padding: 3px 8px;
1413
+ border-radius: 9999px;
1414
+ font-size: 11px;
1415
+ font-weight: 700;
1416
+ letter-spacing: 0.03em;
1417
+ color: var(--status-approved-text);
1418
+ background-color: var(--status-approved-bg);
1419
+ border: 1px dashed var(--status-approved-border);
1420
+ }
1421
+
1422
+ .history-row-baseline-changed td:first-child {
1423
+ box-shadow: inset 3px 0 0 var(--approved-purple);
1424
+ }
1425
+
1426
+ .history-thumb-link {
1427
+ display: inline-block;
1428
+ border-radius: var(--radius-sm);
1429
+ }
1430
+
1431
+ .history-thumb {
1432
+ display: block;
1433
+ width: 160px;
1434
+ height: 100px;
1435
+ object-fit: cover;
1436
+ object-position: top;
1437
+ background-color: var(--bg-main);
1438
+ border: 1px solid var(--border-color);
1439
+ border-radius: var(--radius-sm);
1440
+ }
1441
+
1442
+ .history-thumb-link:hover .history-thumb,
1443
+ .history-thumb-link:focus-visible .history-thumb {
1444
+ border-color: var(--primary-blue);
1445
+ }
1446
+
1447
+ /* The History link makes snapshot titles longer: let them wrap instead of overflowing */
1448
+ .snapshot-title {
1449
+ flex-wrap: wrap;
1450
+ }
1451
+
1452
+ /* Phones: long breadcrumbs (history pages, run ids) pushed the navbar wider than the
1453
+ screen. Keep the brand and the CURRENT page, hide the middle crumbs, make the right-hand
1454
+ link icon-only (its text stays available to screen readers), and let the current page
1455
+ name truncate with an ellipsis. */
1456
+ @media (max-width: 680px) {
1457
+ .navbar-left {
1458
+ min-width: 0;
1459
+ flex: 1 1 auto;
1460
+ gap: 8px;
1461
+ overflow: hidden;
1462
+ }
1463
+ .navbar-left > .crumb-middle {
1464
+ display: none;
1465
+ }
1466
+ .navbar-left > * {
1467
+ white-space: nowrap;
1468
+ flex-shrink: 0;
1469
+ }
1470
+ .navbar-left > :last-child:not(.navbar-brand) {
1471
+ display: block;
1472
+ flex-shrink: 1;
1473
+ min-width: 0;
1474
+ overflow: hidden;
1475
+ text-overflow: ellipsis;
1476
+ }
1477
+ .navbar-right {
1478
+ flex-shrink: 0;
1479
+ }
1480
+ .navbar-right .navbar-link-text {
1481
+ position: absolute;
1482
+ width: 1px;
1483
+ height: 1px;
1484
+ padding: 0;
1485
+ margin: -1px;
1486
+ overflow: hidden;
1487
+ clip: rect(0, 0, 0, 0);
1488
+ white-space: nowrap;
1489
+ border: 0;
1490
+ }
1491
+ }
1492
+
1493
+ /* ==========================================================================
1494
+ M6: light theme, theme toggle, snapshot counts and phone layout
1495
+ ========================================================================== */
1496
+
1497
+ /* Light theme. Set on <html> by the inline script in partials/header.ejs (stored
1498
+ 'vrt-theme', else prefers-color-scheme) and by js/theme.js. Overrides every colour
1499
+ token from :root; screenshots and diff images keep their own colours. */
1500
+ :root[data-theme="light"] {
1501
+ color-scheme: light;
1502
+
1503
+ --bg-main: #EEF2F8;
1504
+ --bg-secondary: #F6F8FC;
1505
+ --bg-surface: #FFFFFF;
1506
+ --bg-card: #FFFFFF;
1507
+ --bg-table: #FFFFFF;
1508
+ --border-color: #D8DFEA;
1509
+ --control-border: #76869D;
1510
+
1511
+ --primary-blue: #0A66C2;
1512
+ --bright-cyan: #0C6B85;
1513
+ --success-green: #047857;
1514
+ --approved-purple: #7C3AED;
1515
+ --error-red: #BE123C;
1516
+
1517
+ --text-primary: #0F172A;
1518
+ --text-secondary: #475569;
1519
+ --text-muted: #5A6A80;
1520
+ --on-accent: #FFFFFF;
1521
+
1522
+ --kpi-blue-start: #EEF5FF;
1523
+ --kpi-blue-end: #D3E4FB;
1524
+ --kpi-blue-border: #B4CDEE;
1525
+ --kpi-green-start: #EDF9F3;
1526
+ --kpi-green-end: #CFEEDF;
1527
+ --kpi-green-border: #A6D9C2;
1528
+ --kpi-red-start: #FEF1F4;
1529
+ --kpi-red-end: #F9DAE3;
1530
+ --kpi-red-border: #EDB4C4;
1531
+
1532
+ --kpi-label: #334155;
1533
+ --kpi-value: #0B3F7A;
1534
+ --kpi-value-green: #065F46;
1535
+ --kpi-value-red: #9F1239;
1536
+ --kpi-blue-icon: #0A66C2;
1537
+ --kpi-green-icon: #047857;
1538
+ --kpi-red-icon: #BE123C;
1539
+ --kpi-blue-icon-bg: rgba(255, 255, 255, 0.7);
1540
+ --kpi-blue-icon-border: rgba(10, 102, 194, 0.3);
1541
+ --kpi-blue-icon-shadow: rgba(10, 102, 194, 0.12);
1542
+ --kpi-green-icon-bg: rgba(255, 255, 255, 0.7);
1543
+ --kpi-green-icon-border: rgba(4, 120, 87, 0.3);
1544
+ --kpi-green-icon-shadow: rgba(4, 120, 87, 0.12);
1545
+ --kpi-red-icon-bg: rgba(255, 255, 255, 0.7);
1546
+ --kpi-red-icon-border: rgba(190, 18, 60, 0.3);
1547
+ --kpi-red-icon-shadow: rgba(190, 18, 60, 0.12);
1548
+ --kpi-blue-curve: #0A66C2;
1549
+ --kpi-green-curve: #047857;
1550
+ --kpi-red-curve: #BE123C;
1551
+
1552
+ --hero-gradient-start: #2563EB;
1553
+ --hero-gradient-end: #7C3AED;
1554
+ --hero-icon: #FFFFFF;
1555
+ --hero-shadow: rgba(37, 99, 235, 0.25);
1556
+ --brand-icon-bg-start: rgba(10, 102, 194, 0.14);
1557
+ --brand-icon-bg-end: rgba(12, 107, 133, 0.04);
1558
+ --brand-icon-border: rgba(10, 102, 194, 0.35);
1559
+
1560
+ --hover-overlay: rgba(15, 23, 42, 0.05);
1561
+ --row-hover: rgba(15, 23, 42, 0.03);
1562
+ --subtle-fill: rgba(15, 23, 42, 0.04);
1563
+ --badge-bg: #F1F5F9;
1564
+ --tab-active-bg: #E2EAF6;
1565
+ --primary-tint-bg: rgba(10, 102, 194, 0.08);
1566
+ --primary-on-tint: #0A66C2;
1567
+ --primary-tint-border: rgba(10, 102, 194, 0.35);
1568
+ --primary-glow: rgba(10, 102, 194, 0.25);
1569
+ --focus-ring: rgba(10, 102, 194, 0.25);
1570
+ --success-tint-bg: rgba(4, 120, 87, 0.07);
1571
+ --success-tint-border: rgba(4, 120, 87, 0.4);
1572
+ --success-glow: rgba(4, 120, 87, 0.35);
1573
+ --danger-tint-bg: rgba(190, 18, 60, 0.06);
1574
+ --danger-tint-border: rgba(190, 18, 60, 0.4);
1575
+
1576
+ --shadow-tab: 0 1px 2px rgba(15, 23, 42, 0.12);
1577
+ --shadow-kpi: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 18px rgba(15, 23, 42, 0.06);
1578
+ --shadow-kpi-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 10px 24px rgba(15, 23, 42, 0.1);
1579
+ --shadow-table: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 18px rgba(15, 23, 42, 0.05);
1580
+ --shadow-snapshot: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 18px rgba(15, 23, 42, 0.05);
1581
+ --shadow-handle: 0 2px 8px rgba(15, 23, 42, 0.35);
1582
+ --shadow-dialog: 0 20px 50px rgba(15, 23, 42, 0.18);
1583
+ --dialog-backdrop: rgba(15, 23, 42, 0.45);
1584
+
1585
+ --status-approved-text: #6D28D9;
1586
+ --status-passed-bg: rgba(4, 120, 87, 0.08);
1587
+ --status-passed-border: rgba(4, 120, 87, 0.35);
1588
+ --status-approved-bg: rgba(124, 58, 237, 0.08);
1589
+ --status-approved-border: rgba(124, 58, 237, 0.35);
1590
+ --status-failed-bg: rgba(190, 18, 60, 0.07);
1591
+ --status-failed-border: rgba(190, 18, 60, 0.35);
1592
+ --status-rejected-bg: rgba(190, 18, 60, 0.07);
1593
+ --status-rejected-border: rgba(190, 18, 60, 0.35);
1594
+ --status-new-bg: rgba(12, 107, 133, 0.08);
1595
+ --status-new-border: rgba(12, 107, 133, 0.35);
1596
+ --overlay-backdrop: rgba(241, 245, 249, 0.88);
1597
+ }
1598
+
1599
+ /* Theme toggle (navbar). Needs JS, so it stays hidden until the head script has run. */
1600
+ .theme-toggle {
1601
+ display: inline-flex;
1602
+ align-items: center;
1603
+ justify-content: center;
1604
+ flex-shrink: 0;
1605
+ width: 40px;
1606
+ height: 40px;
1607
+ padding: 0;
1608
+ border: 1px solid var(--control-border);
1609
+ border-radius: var(--radius-sm);
1610
+ background-color: transparent;
1611
+ color: var(--text-secondary);
1612
+ cursor: pointer;
1613
+ transition: var(--transition);
1614
+ }
1615
+
1616
+ .theme-toggle:hover {
1617
+ color: var(--text-primary);
1618
+ background-color: var(--hover-overlay);
1619
+ }
1620
+
1621
+ :root:not([data-theme]) .theme-toggle,
1622
+ .theme-icon-sun,
1623
+ :root[data-theme="light"] .theme-icon-moon {
1624
+ display: none;
1625
+ }
1626
+
1627
+ :root[data-theme="light"] .theme-icon-sun {
1628
+ display: block;
1629
+ }
1630
+
1631
+ /* KPI curves are drawn in currentColor (index.ejs) */
1632
+ .kpi-card-blue .kpi-curve { color: var(--kpi-blue-curve); }
1633
+ .kpi-card-green .kpi-curve { color: var(--kpi-green-curve); }
1634
+ .kpi-card-red .kpi-curve { color: var(--kpi-red-curve); }
1635
+
1636
+ /* Snapshots column: total on top, then one coloured count per status in the run */
1637
+ .snapshots-summary {
1638
+ flex-direction: column;
1639
+ align-items: flex-start;
1640
+ gap: 2px;
1641
+ }
1642
+
1643
+ .snapshots-sub {
1644
+ flex-wrap: wrap;
1645
+ }
1646
+
1647
+ .snapshots-sub {
1648
+ column-gap: 8px;
1649
+ row-gap: 2px;
1650
+ }
1651
+
1652
+ .new-count {
1653
+ color: var(--status-new-text);
1654
+ font-weight: 600;
1655
+ }
1656
+
1657
+ .approved-count {
1658
+ color: var(--status-approved-text);
1659
+ font-weight: 600;
1660
+ }
1661
+
1662
+ .rejected-count {
1663
+ color: var(--error-red);
1664
+ font-weight: 600;
1665
+ }
1666
+
1667
+ /* Slider: touches that start on the divider drag it instead of scrolling the page,
1668
+ and the divider is easier to grab than its 2px line. */
1669
+ .slider-divider {
1670
+ touch-action: none;
1671
+ }
1672
+
1673
+ .slider-handle-pill {
1674
+ flex-shrink: 0; /* it sits in the 2px-wide divider and was squeezed into an oval */
1675
+ }
1676
+
1677
+ .slider-divider::before {
1678
+ content: '';
1679
+ position: absolute;
1680
+ top: 0;
1681
+ bottom: 0;
1682
+ left: -14px;
1683
+ right: -14px;
1684
+ }
1685
+
1686
+ /* Long branch names truncate (full name in the title attribute) */
1687
+ .git-badge {
1688
+ min-width: 0;
1689
+ max-width: 100%;
1690
+ }
1691
+
1692
+ .git-badge > span,
1693
+ .git-badge-text {
1694
+ min-width: 0;
1695
+ overflow: hidden;
1696
+ text-overflow: ellipsis;
1697
+ white-space: nowrap;
1698
+ }
1699
+
1700
+ .git-badge-text {
1701
+ display: inline-block;
1702
+ }
1703
+
1704
+ .git-context {
1705
+ max-width: 100%;
1706
+ }
1707
+
1708
+ /* Tables size columns by content, so give the badge a hard cap there */
1709
+ #test-runs-table .git-badge,
1710
+ .history-table .git-badge {
1711
+ max-width: 240px;
1712
+ }
1713
+
1714
+ /* Tablets / small laptops (until the phone card layout takes over): the cap alone
1715
+ still pushed the history table past its container, so shorten it further */
1716
+ @media (min-width: 681px) and (max-width: 1200px) {
1717
+ #test-runs-table .git-badge,
1718
+ .history-table .git-badge {
1719
+ max-width: 150px;
1720
+ }
1721
+ }
1722
+
1723
+ .error-container {
1724
+ overflow-wrap: anywhere;
1725
+ }
1726
+
1727
+ /* Phones (360-680px) */
1728
+ @media (max-width: 680px) {
1729
+ .navbar-right {
1730
+ gap: 4px;
1731
+ }
1732
+ .theme-toggle {
1733
+ width: 44px;
1734
+ height: 44px;
1735
+ }
1736
+
1737
+ /* Toolbar: 2x2 filter tabs, full-width search */
1738
+ .table-toolbar {
1739
+ flex-direction: column;
1740
+ align-items: stretch;
1741
+ }
1742
+ .filter-tabs {
1743
+ display: grid;
1744
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1745
+ width: 100%;
1746
+ }
1747
+ .filter-tab {
1748
+ min-height: 44px;
1749
+ padding: 8px 6px;
1750
+ }
1751
+ .search-input-wrapper,
1752
+ .search-input {
1753
+ width: 100%;
1754
+ }
1755
+ .search-input {
1756
+ min-height: 44px;
1757
+ }
1758
+
1759
+ /* Runs table and history table -> stacked cards; labels come from data-label */
1760
+ #test-runs-table thead,
1761
+ .history-table thead {
1762
+ position: absolute;
1763
+ width: 1px;
1764
+ height: 1px;
1765
+ margin: -1px;
1766
+ overflow: hidden;
1767
+ clip: rect(0, 0, 0, 0);
1768
+ white-space: nowrap;
1769
+ }
1770
+ #test-runs-table,
1771
+ #test-runs-table tbody,
1772
+ .history-table,
1773
+ .history-table tbody {
1774
+ display: block;
1775
+ width: 100%;
1776
+ }
1777
+ #test-runs-table tbody tr,
1778
+ .history-table tbody tr {
1779
+ display: flex;
1780
+ flex-direction: column;
1781
+ gap: 10px;
1782
+ padding: 16px;
1783
+ border-bottom: 1px solid var(--border-color);
1784
+ }
1785
+ #test-runs-table tbody tr:last-child,
1786
+ .history-table tbody tr:last-child {
1787
+ border-bottom: none;
1788
+ }
1789
+ #test-runs-table tbody td,
1790
+ .history-table tbody td {
1791
+ display: flex;
1792
+ align-items: center;
1793
+ justify-content: space-between;
1794
+ gap: 12px;
1795
+ min-width: 0;
1796
+ padding: 0;
1797
+ border-bottom: none;
1798
+ text-align: right;
1799
+ }
1800
+ #test-runs-table tbody td[colspan] {
1801
+ display: block;
1802
+ }
1803
+ #test-runs-table tbody td[data-label]::before,
1804
+ .history-table tbody td[data-label]::before {
1805
+ content: attr(data-label);
1806
+ /* Empty alt text: screen readers already get the column header from <thead> */
1807
+ content: attr(data-label) / "";
1808
+ flex-shrink: 0;
1809
+ font-size: 11px;
1810
+ font-weight: 600;
1811
+ letter-spacing: 0.05em;
1812
+ text-transform: uppercase;
1813
+ color: var(--text-muted);
1814
+ text-align: left;
1815
+ }
1816
+ #test-runs-table .run-id-link,
1817
+ .history-table .run-id-link {
1818
+ display: block;
1819
+ min-width: 0;
1820
+ overflow: hidden;
1821
+ text-overflow: ellipsis;
1822
+ white-space: nowrap;
1823
+ }
1824
+ .git-context {
1825
+ justify-content: flex-end;
1826
+ min-width: 0;
1827
+ max-width: 100%;
1828
+ }
1829
+ #test-runs-table .git-badge,
1830
+ .history-table .git-badge {
1831
+ max-width: 100%;
1832
+ }
1833
+ .history-table .git-badge {
1834
+ display: block;
1835
+ }
1836
+ .snapshots-summary {
1837
+ align-items: flex-end;
1838
+ }
1839
+ .snapshots-sub {
1840
+ justify-content: flex-end;
1841
+ }
1842
+ #test-runs-table td.run-actions-cell {
1843
+ text-align: left !important;
1844
+ }
1845
+ #test-runs-table td.run-actions-cell .btn-inspect {
1846
+ width: 100%;
1847
+ min-height: 44px;
1848
+ justify-content: center;
1849
+ }
1850
+
1851
+ /* History cards: thumbnail on top, run link + time full width */
1852
+ .history-table tbody td.history-thumb-cell {
1853
+ order: -1;
1854
+ display: block;
1855
+ }
1856
+ .history-thumb-link {
1857
+ display: block;
1858
+ }
1859
+ .history-thumb {
1860
+ width: 100%;
1861
+ height: 160px;
1862
+ }
1863
+ .history-table tbody td.history-run-cell {
1864
+ display: block;
1865
+ text-align: left;
1866
+ }
1867
+ .history-row-baseline-changed td:first-child {
1868
+ box-shadow: none;
1869
+ }
1870
+ .history-table tbody tr.history-row-baseline-changed {
1871
+ box-shadow: inset 3px 0 0 var(--approved-purple);
1872
+ }
1873
+
1874
+ .pagination-bar {
1875
+ flex-direction: column;
1876
+ align-items: stretch;
1877
+ gap: 12px;
1878
+ padding: 14px 16px;
1879
+ text-align: center;
1880
+ }
1881
+ .pagination-controls {
1882
+ justify-content: space-between;
1883
+ }
1884
+ .pagination-btn {
1885
+ min-height: 44px;
1886
+ }
1887
+
1888
+ /* Run detail */
1889
+ .detail-header-card,
1890
+ .history-chart-card {
1891
+ padding: 18px 16px;
1892
+ }
1893
+ .detail-run-id {
1894
+ font-size: 19px;
1895
+ overflow-wrap: anywhere;
1896
+ min-width: 0;
1897
+ }
1898
+ .detail-title-row > * {
1899
+ min-width: 0;
1900
+ }
1901
+ .btn-approve-all {
1902
+ width: 100%;
1903
+ min-height: 44px;
1904
+ justify-content: center;
1905
+ }
1906
+ .detail-meta-row {
1907
+ gap: 6px 12px;
1908
+ font-size: 13px;
1909
+ }
1910
+ .snapshot-header {
1911
+ flex-direction: column;
1912
+ align-items: stretch;
1913
+ padding: 14px 16px;
1914
+ }
1915
+ .snapshot-title {
1916
+ min-width: 0;
1917
+ gap: 8px;
1918
+ }
1919
+ .route-pill {
1920
+ min-width: 0;
1921
+ overflow-wrap: anywhere;
1922
+ }
1923
+ .snapshot-actions {
1924
+ flex-direction: column;
1925
+ align-items: stretch;
1926
+ gap: 10px;
1927
+ }
1928
+ .btn-approve,
1929
+ .btn-reject {
1930
+ width: 100%;
1931
+ min-height: 44px;
1932
+ justify-content: center;
1933
+ }
1934
+ .tabs-nav {
1935
+ padding: 0 8px;
1936
+ gap: 0;
1937
+ overflow-x: auto;
1938
+ }
1939
+ .tab-btn {
1940
+ flex: 1 1 auto;
1941
+ min-height: 44px;
1942
+ padding: 10px 8px;
1943
+ font-size: 13px;
1944
+ }
1945
+ .tab-panel {
1946
+ padding: 14px;
1947
+ }
1948
+ .side-by-side {
1949
+ grid-template-columns: minmax(0, 1fr);
1950
+ gap: 18px;
1951
+ }
1952
+ .slider-handle-pill {
1953
+ width: 48px;
1954
+ height: 48px;
1955
+ font-size: 20px;
1956
+ }
1957
+ }
1958
+
1959
+ /* ==========================================================================
1960
+ Accessibility & keyboard shortcuts - M5
1961
+ Skip link, focus rings, slider/tab focus, action error regions, the run page's
1962
+ shortcut hint and help dialog. Uses existing colour tokens only (contrast and
1963
+ theming are handled separately).
1964
+ ========================================================================== */
1965
+
1966
+ /* Skip link: off-screen until focused (first Tab stop on every page) */
1967
+ .skip-link {
1968
+ position: absolute;
1969
+ left: 16px;
1970
+ top: 8px;
1971
+ z-index: 1000;
1972
+ transform: translateY(-200%);
1973
+ padding: 10px 16px;
1974
+ background-color: var(--bg-surface);
1975
+ color: var(--text-primary);
1976
+ border: 2px solid var(--bright-cyan);
1977
+ border-radius: var(--radius-sm);
1978
+ font-size: 14px;
1979
+ font-weight: 600;
1980
+ text-decoration: none;
1981
+ }
1982
+
1983
+ .skip-link:focus {
1984
+ transform: none;
1985
+ }
1986
+
1987
+ /* One visible focus ring for every keyboard-focusable element */
1988
+ :focus-visible {
1989
+ outline: 2px solid var(--bright-cyan);
1990
+ outline-offset: 2px;
1991
+ }
1992
+
1993
+ /* Programmatic focus targets (skip link destination, j/k cards) need no ring of their own;
1994
+ the current card is marked by .is-current below. */
1995
+ #main:focus,
1996
+ .snapshot-card:focus {
1997
+ outline: none;
1998
+ }
1999
+
2000
+ /* j/k: the current snapshot card. scroll-margin keeps it clear of the sticky navbar. */
2001
+ .snapshot-card {
2002
+ scroll-margin-top: 76px;
2003
+ }
2004
+
2005
+ .snapshot-card.is-current {
2006
+ border-color: var(--primary-blue);
2007
+ box-shadow: 0 0 0 1px var(--primary-blue), var(--shadow-snapshot);
2008
+ }
2009
+
2010
+ /* Slider: horizontal drags move the divider, vertical swipes still scroll the page */
2011
+ .slider-view-container {
2012
+ touch-action: pan-y;
2013
+ }
2014
+
2015
+ /* The handle sits in the 2px-wide divider and used to shrink to ~19px: keep its full
2016
+ 36px (pointer target size, and room for the focus ring) */
2017
+ .slider-handle-pill {
2018
+ flex-shrink: 0;
2019
+ }
2020
+
2021
+ .slider-divider:focus-visible {
2022
+ outline: none;
2023
+ }
2024
+
2025
+ .slider-divider:focus-visible .slider-handle-pill {
2026
+ outline: 2px solid var(--bright-cyan);
2027
+ outline-offset: 3px;
2028
+ }
2029
+
2030
+ /* Inactive tab panels carry the hidden attribute (tabs.js) */
2031
+ .tab-panel[hidden] {
2032
+ display: none;
2033
+ }
2034
+
2035
+ /* Error page heading (was an h2 before the page got its h1) */
2036
+ .error-container h1 {
2037
+ font-size: 1.5em;
2038
+ }
2039
+
2040
+ /* Approve/reject errors (role="alert"); takes no space while empty */
2041
+ .action-error:not(:empty) {
2042
+ margin: 0 24px 16px;
2043
+ padding: 10px 14px;
2044
+ background-color: var(--status-failed-bg);
2045
+ border: 1px solid var(--status-failed-border);
2046
+ border-radius: var(--radius-sm);
2047
+ color: var(--text-primary);
2048
+ font-size: 13px;
2049
+ }
2050
+
2051
+ .detail-header-card .action-error:not(:empty) {
2052
+ margin: 14px 0 0;
2053
+ }
2054
+
2055
+ .action-error p {
2056
+ margin: 0;
2057
+ }
2058
+
2059
+ .action-error-button {
2060
+ margin-left: 6px;
2061
+ padding: 4px 10px;
2062
+ background: none;
2063
+ border: 1px solid var(--border-color);
2064
+ border-radius: var(--radius-sm);
2065
+ color: var(--text-primary);
2066
+ font: inherit;
2067
+ font-weight: 600;
2068
+ cursor: pointer;
2069
+ }
2070
+
2071
+ /* "Press ? for keyboard shortcuts" (run detail header) */
2072
+ .shortcuts-hint {
2073
+ background: none;
2074
+ border: none;
2075
+ padding: 0;
2076
+ margin-left: auto;
2077
+ color: var(--text-secondary);
2078
+ font: inherit;
2079
+ cursor: pointer;
2080
+ }
2081
+
2082
+ .shortcuts-hint:hover {
2083
+ color: var(--text-primary);
2084
+ }
2085
+
2086
+ kbd {
2087
+ display: inline-block;
2088
+ min-width: 1.6em;
2089
+ padding: 1px 6px;
2090
+ background-color: var(--bg-secondary);
2091
+ border: 1px solid var(--border-color);
2092
+ border-bottom-width: 2px;
2093
+ border-radius: 4px;
2094
+ color: var(--text-primary);
2095
+ font-family: var(--font-mono);
2096
+ font-size: 0.9em;
2097
+ line-height: 1.4;
2098
+ text-align: center;
2099
+ }
2100
+
2101
+ /* Keyboard shortcuts help (native <dialog>) */
2102
+ .shortcuts-dialog {
2103
+ margin: auto; /* centred (the global reset removes the browser's own margin) */
2104
+ width: min(480px, calc(100vw - 32px));
2105
+ max-height: calc(100vh - 32px);
2106
+ padding: 22px 24px;
2107
+ background-color: var(--bg-surface);
2108
+ color: var(--text-primary);
2109
+ border: 1px solid var(--border-color);
2110
+ border-radius: var(--radius-card);
2111
+ box-shadow: var(--shadow-dialog);
2112
+ }
2113
+
2114
+ .shortcuts-dialog::backdrop {
2115
+ background-color: var(--dialog-backdrop);
2116
+ }
2117
+
2118
+ .shortcuts-dialog-header {
2119
+ display: flex;
2120
+ align-items: center;
2121
+ justify-content: space-between;
2122
+ gap: 12px;
2123
+ margin-bottom: 14px;
2124
+ }
2125
+
2126
+ .shortcuts-dialog-header h2 {
2127
+ margin: 0;
2128
+ font-size: 18px;
2129
+ }
2130
+
2131
+ .shortcuts-dialog-close {
2132
+ width: 32px;
2133
+ height: 32px;
2134
+ background: none;
2135
+ border: 1px solid var(--border-color);
2136
+ border-radius: var(--radius-sm);
2137
+ color: var(--text-secondary);
2138
+ font-size: 14px;
2139
+ cursor: pointer;
2140
+ }
2141
+
2142
+ .shortcuts-dialog-close:hover {
2143
+ color: var(--text-primary);
2144
+ }
2145
+
2146
+ .shortcuts-list {
2147
+ margin: 0 0 14px;
2148
+ }
2149
+
2150
+ .shortcuts-list > div {
2151
+ display: grid;
2152
+ grid-template-columns: 96px 1fr;
2153
+ gap: 12px;
2154
+ align-items: baseline;
2155
+ padding: 7px 0;
2156
+ border-bottom: 1px solid var(--border-color);
2157
+ }
2158
+
2159
+ .shortcuts-list dt {
2160
+ white-space: nowrap;
2161
+ }
2162
+
2163
+ .shortcuts-list dd {
2164
+ margin: 0;
2165
+ color: var(--text-secondary);
2166
+ font-size: 14px;
2167
+ }
2168
+
2169
+ .shortcuts-note {
2170
+ margin: 0 0 12px;
2171
+ color: var(--text-secondary);
2172
+ font-size: 13px;
2173
+ }
2174
+
2175
+ .shortcuts-toggle {
2176
+ display: flex;
2177
+ align-items: center;
2178
+ gap: 10px;
2179
+ margin-bottom: 6px;
2180
+ font-weight: 600;
2181
+ }
2182
+
2183
+ .shortcuts-toggle input {
2184
+ width: 18px;
2185
+ height: 18px;
2186
+ accent-color: var(--primary-blue);
2187
+ }
2188
+
2189
+ /* ==========================================================================
2190
+ Imported runs (visual-ci import) - M2
2191
+ ========================================================================== */
2192
+
2193
+ /* "Imported" badge: dashboard row and run header */
2194
+ .imported-badge {
2195
+ display: inline-flex;
2196
+ align-items: center;
2197
+ padding: 2px 8px;
2198
+ margin-left: 6px;
2199
+ background-color: var(--primary-tint-bg);
2200
+ color: var(--primary-on-tint);
2201
+ border: 1px solid var(--primary-tint-border);
2202
+ border-radius: var(--radius-sm);
2203
+ font-size: 11px;
2204
+ font-weight: 700;
2205
+ letter-spacing: 0.04em;
2206
+ text-transform: uppercase;
2207
+ vertical-align: middle;
2208
+ white-space: nowrap;
2209
+ }
2210
+
2211
+ .detail-title-row .imported-badge {
2212
+ margin-left: 0;
2213
+ }
2214
+
2215
+ /* The local baseline is not the one CI compared against: approval would be refused */
2216
+ .baseline-stale-note {
2217
+ margin: 0 24px 16px;
2218
+ padding: 10px 14px;
2219
+ background-color: var(--status-new-bg);
2220
+ border: 1px solid var(--status-new-border);
2221
+ border-radius: var(--radius-sm);
2222
+ color: var(--text-primary);
2223
+ font-size: 13px;
2224
+ }
2225
+
2226
+ .detail-header-card .baseline-stale-note {
2227
+ margin: 14px 0 0;
2228
+ }
2229
+
2230
+ .baseline-stale-note[hidden] {
2231
+ display: none;
2232
+ }
2233
+
2234
+ /* Approve buttons disabled because of a stale baseline (not "busy") */
2235
+ .btn-approve.is-blocked,
2236
+ .btn-approve-all.is-blocked:disabled {
2237
+ opacity: 0.6;
2238
+ cursor: not-allowed;
2239
+ }
2240
+
2241
+ .btn-approve.is-blocked:hover {
2242
+ background-color: var(--success-tint-bg);
2243
+ color: var(--success-green);
2244
+ }
2245
+
2246
+ /* ==========================================================================
2247
+ Import a CI run (dashboard, live mode only) - M8
2248
+ ========================================================================== */
2249
+
2250
+ .import-control {
2251
+ display: flex;
2252
+ flex-direction: column;
2253
+ align-items: flex-end;
2254
+ gap: 4px;
2255
+ }
2256
+
2257
+ .btn-import {
2258
+ display: inline-flex;
2259
+ align-items: center;
2260
+ gap: 8px;
2261
+ background-color: var(--primary-tint-bg);
2262
+ color: var(--primary-on-tint);
2263
+ border: 1px solid var(--primary-tint-border);
2264
+ padding: 8px 16px;
2265
+ font-family: inherit;
2266
+ font-size: 13px;
2267
+ font-weight: 600;
2268
+ border-radius: var(--radius-sm);
2269
+ cursor: pointer;
2270
+ transition: var(--transition);
2271
+ }
2272
+
2273
+ .btn-import:hover:not(:disabled) {
2274
+ background-color: var(--primary-blue);
2275
+ color: var(--on-accent);
2276
+ }
2277
+
2278
+ .btn-import:focus-visible {
2279
+ outline: 2px solid var(--bright-cyan);
2280
+ outline-offset: 2px;
2281
+ }
2282
+
2283
+ .btn-import:disabled {
2284
+ cursor: progress;
2285
+ opacity: 0.7;
2286
+ }
2287
+
2288
+ .import-hint {
2289
+ margin: 0;
2290
+ font-size: 12px;
2291
+ color: var(--text-secondary);
2292
+ }
2293
+
2294
+ /* Progress / result of an import (role="status"). Takes no space while empty but stays
2295
+ rendered: display: none would drop the live region, and "Importing..." might not be
2296
+ announced. */
2297
+ .import-status {
2298
+ margin: 0;
2299
+ font-size: 13px;
2300
+ color: var(--text-primary);
2301
+ }
2302
+
2303
+ .import-status:not(:empty) {
2304
+ margin: 0 0 16px;
2305
+ }
2306
+
2307
+ .import-status ul {
2308
+ margin: 6px 0 0;
2309
+ padding-left: 20px;
2310
+ }
2311
+
2312
+ .import-status a {
2313
+ color: var(--bright-cyan);
2314
+ }
2315
+
2316
+ .import-feedback .action-error:not(:empty) {
2317
+ margin: 0 0 16px;
2318
+ }
2319
+
2320
+ /* Shown while a file is dragged over the page */
2321
+ .drop-overlay {
2322
+ position: fixed;
2323
+ inset: 0;
2324
+ z-index: 1000;
2325
+ display: flex;
2326
+ align-items: center;
2327
+ justify-content: center;
2328
+ padding: 24px;
2329
+ background-color: var(--overlay-backdrop);
2330
+ pointer-events: none;
2331
+ }
2332
+
2333
+ .drop-overlay[hidden] {
2334
+ display: none;
2335
+ }
2336
+
2337
+ .drop-overlay-inner {
2338
+ max-width: 520px;
2339
+ padding: 40px 32px;
2340
+ border: 2px dashed var(--primary-blue);
2341
+ border-radius: var(--radius-card);
2342
+ background-color: var(--bg-surface);
2343
+ color: var(--text-primary);
2344
+ font-size: 16px;
2345
+ font-weight: 600;
2346
+ text-align: center;
2347
+ }
2348
+
2349
+ @media (max-width: 680px) {
2350
+ .page-heading-actions {
2351
+ flex-wrap: wrap;
2352
+ width: 100%;
2353
+ }
2354
+ .import-control {
2355
+ align-items: stretch;
2356
+ width: 100%;
2357
+ }
2358
+ .btn-import {
2359
+ min-height: 44px;
2360
+ justify-content: center;
2361
+ }
2362
+ }