@oaksecurity/aitm 0.0.0-stage → 2.3.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 (63) hide show
  1. package/.env.example +11 -0
  2. package/CHANGELOG.md +100 -0
  3. package/LICENSE +21 -0
  4. package/README.md +229 -2
  5. package/SECURITY.md +49 -0
  6. package/SPEC.md +304 -0
  7. package/docs/api.md +332 -0
  8. package/docs/inputs-and-limits.md +78 -0
  9. package/docs/usage.md +351 -0
  10. package/examples/custody-architecture.md +27 -0
  11. package/package.json +67 -4
  12. package/src/api/server.js +591 -0
  13. package/src/api/web.js +38 -0
  14. package/src/application.js +32 -0
  15. package/src/assessments.js +37 -0
  16. package/src/assets/BDOGrotesk-Bold.ttf +0 -0
  17. package/src/assets/BDOGrotesk-Regular.ttf +0 -0
  18. package/src/assets/OFL.txt +93 -0
  19. package/src/assets/README.md +10 -0
  20. package/src/cli.js +224 -0
  21. package/src/client.js +88 -0
  22. package/src/config.js +105 -0
  23. package/src/doctor.js +128 -0
  24. package/src/engine/credentials.js +31 -0
  25. package/src/engine/download.js +135 -0
  26. package/src/engine/engine.js +783 -0
  27. package/src/engine/errors.js +23 -0
  28. package/src/engine/generation.js +121 -0
  29. package/src/engine/ingest.js +444 -0
  30. package/src/engine/pdf-layout.js +204 -0
  31. package/src/engine/pdf-report.js +573 -0
  32. package/src/engine/prompts.js +82 -0
  33. package/src/engine/providers.js +476 -0
  34. package/src/engine/references.js +112 -0
  35. package/src/engine/report.js +200 -0
  36. package/src/engine/schema.js +267 -0
  37. package/src/engine/store.js +115 -0
  38. package/src/engine/validate.js +397 -0
  39. package/src/engine/zip.js +70 -0
  40. package/src/index.js +5 -0
  41. package/src/source-input.js +32 -0
  42. package/src/token.js +59 -0
  43. package/src/tui/app.js +694 -0
  44. package/src/tui/editor.js +34 -0
  45. package/src/tui/file-picker.js +111 -0
  46. package/src/tui/logo.js +8 -0
  47. package/src/tui/progress.js +90 -0
  48. package/src/tui/report-reader.js +105 -0
  49. package/src/tui/select.js +63 -0
  50. package/src/tui/workbench.js +377 -0
  51. package/src/version.js +5 -0
  52. package/src/web/app.js +729 -0
  53. package/src/web/assets/BDOGrotesk-Bold.woff2 +0 -0
  54. package/src/web/assets/BDOGrotesk-Medium.woff2 +0 -0
  55. package/src/web/assets/BDOGrotesk-Regular.woff2 +0 -0
  56. package/src/web/assets/README.md +5 -0
  57. package/src/web/assets/aitm-mark.svg +12 -0
  58. package/src/web/assets/oak-white.svg +166 -0
  59. package/src/web/html.js +32 -0
  60. package/src/web/index.html +26 -0
  61. package/src/web/markdown.js +48 -0
  62. package/src/web/styles.css +1450 -0
  63. package/src/web/views.js +254 -0
@@ -0,0 +1,1450 @@
1
+ @font-face {
2
+ font-family: BDO;
3
+ src: url('/ui/assets/BDOGrotesk-Regular.woff2') format('woff2');
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ }
7
+ @font-face {
8
+ font-family: BDO;
9
+ src: url('/ui/assets/BDOGrotesk-Medium.woff2') format('woff2');
10
+ font-weight: 500;
11
+ font-display: swap;
12
+ }
13
+ @font-face {
14
+ font-family: BDO;
15
+ src: url('/ui/assets/BDOGrotesk-Bold.woff2') format('woff2');
16
+ font-weight: 700;
17
+ font-display: swap;
18
+ }
19
+ :root {
20
+ --ink: #111;
21
+ --paper: #f7f6f5;
22
+ --gold: #ffc965;
23
+ --magenta: #9c0069;
24
+ --line: #deddd9;
25
+ --muted: #646871;
26
+ --soft: #f0efed;
27
+ --gradient: linear-gradient(90deg, #ffc965, #9c0069);
28
+ font-family: BDO, Arial, sans-serif;
29
+ color: var(--ink);
30
+ background: var(--paper);
31
+ color-scheme: light;
32
+ font-synthesis: none;
33
+ }
34
+ * {
35
+ box-sizing: border-box;
36
+ }
37
+ body {
38
+ margin: 0;
39
+ font-size: 14px;
40
+ line-height: 1.55;
41
+ }
42
+ button,
43
+ input,
44
+ select,
45
+ textarea {
46
+ font: inherit;
47
+ }
48
+ button,
49
+ a,
50
+ input,
51
+ select,
52
+ summary {
53
+ touch-action: manipulation;
54
+ }
55
+ button,
56
+ a,
57
+ summary {
58
+ cursor: pointer;
59
+ }
60
+ button {
61
+ color: inherit;
62
+ }
63
+ a {
64
+ color: inherit;
65
+ text-underline-offset: 4px;
66
+ }
67
+ a:hover {
68
+ color: var(--magenta);
69
+ }
70
+ button:disabled {
71
+ opacity: 0.45;
72
+ cursor: not-allowed;
73
+ }
74
+ button:focus-visible,
75
+ a:focus-visible,
76
+ input:focus-visible,
77
+ select:focus-visible,
78
+ textarea:focus-visible,
79
+ summary:focus-visible {
80
+ outline: 3px solid var(--gold);
81
+ outline-offset: 3px;
82
+ }
83
+ [hidden] {
84
+ display: none !important;
85
+ }
86
+ h1,
87
+ h2,
88
+ h3,
89
+ h4,
90
+ p {
91
+ margin: 0 0 12px;
92
+ }
93
+ h1 {
94
+ font-size: 32px;
95
+ line-height: 1.2;
96
+ letter-spacing: -1.1px;
97
+ font-weight: 700;
98
+ }
99
+ h2 {
100
+ font-size: 20px;
101
+ line-height: 1.35;
102
+ letter-spacing: -0.4px;
103
+ }
104
+ h3 {
105
+ font-size: 16px;
106
+ }
107
+ h4 {
108
+ font-size: 14px;
109
+ }
110
+ ul {
111
+ padding-left: 22px;
112
+ }
113
+ li {
114
+ margin: 5px 0;
115
+ }
116
+ code,
117
+ .code,
118
+ pre {
119
+ font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
120
+ font-size: 12px;
121
+ overflow-wrap: anywhere;
122
+ }
123
+ pre {
124
+ white-space: pre-wrap;
125
+ margin: 0;
126
+ }
127
+ .preserve {
128
+ white-space: pre-wrap;
129
+ }
130
+ .muted,
131
+ .hint {
132
+ color: var(--muted);
133
+ }
134
+ .hint {
135
+ font-size: 12px;
136
+ }
137
+ .hint:last-child,
138
+ p:last-child {
139
+ margin-bottom: 0;
140
+ }
141
+ .eyebrow {
142
+ font-size: 10px;
143
+ font-weight: 700;
144
+ letter-spacing: 1.5px;
145
+ color: var(--muted);
146
+ margin-bottom: 10px;
147
+ }
148
+ .lede {
149
+ font-size: 15px;
150
+ color: var(--muted);
151
+ max-width: 740px;
152
+ line-height: 1.7;
153
+ }
154
+ .row,
155
+ .spread {
156
+ display: flex;
157
+ align-items: center;
158
+ gap: 10px;
159
+ flex-wrap: wrap;
160
+ }
161
+ .spread {
162
+ justify-content: space-between;
163
+ }
164
+ .stack {
165
+ display: flex;
166
+ flex-direction: column;
167
+ gap: 10px;
168
+ }
169
+ .grid-2,
170
+ .object-grid {
171
+ display: grid;
172
+ grid-template-columns: repeat(2, minmax(0, 1fr));
173
+ gap: 18px;
174
+ }
175
+ .grid-2 > .card {
176
+ margin: 0;
177
+ }
178
+ .grid-2 {
179
+ margin-bottom: 20px;
180
+ }
181
+ .grid-2:last-child {
182
+ margin-bottom: 0;
183
+ }
184
+ .shell {
185
+ height: 100dvh;
186
+ display: grid;
187
+ grid-template-columns: 258px minmax(0, 1fr);
188
+ grid-template-rows: minmax(0, 1fr) 44px;
189
+ overflow: hidden;
190
+ }
191
+ #sidebar {
192
+ background: #080808;
193
+ color: #fff;
194
+ display: flex;
195
+ flex-direction: column;
196
+ padding: 30px 17px 22px;
197
+ overflow-y: auto;
198
+ min-height: 0;
199
+ }
200
+ .brand {
201
+ display: flex;
202
+ align-items: center;
203
+ gap: 12px;
204
+ margin: 0 5px 33px;
205
+ }
206
+ .brand > img {
207
+ width: 39px;
208
+ height: 42px;
209
+ }
210
+ .brand > div {
211
+ font-weight: 700;
212
+ font-size: 24px;
213
+ line-height: 1;
214
+ }
215
+ .brand > div > span {
216
+ font-size: 10px;
217
+ display: block;
218
+ color: #c5c4c1;
219
+ font-weight: 400;
220
+ margin-top: 8px;
221
+ letter-spacing: 0.3px;
222
+ }
223
+ .version {
224
+ margin-left: auto;
225
+ font-size: 10px;
226
+ color: #adada7;
227
+ border: 1px solid #444;
228
+ border-radius: 4px;
229
+ padding: 2px 5px;
230
+ }
231
+ .project-picker {
232
+ margin: 0 5px 27px;
233
+ }
234
+ .project-picker > label {
235
+ font-size: 9px;
236
+ letter-spacing: 1.7px;
237
+ color: #969694;
238
+ display: block;
239
+ margin-bottom: 8px;
240
+ }
241
+ .project-picker select {
242
+ background: #202020;
243
+ color: #fff;
244
+ border-color: #464646;
245
+ font-size: 12px;
246
+ width: 100%;
247
+ margin-bottom: 10px;
248
+ }
249
+ .project-picker .row {
250
+ gap: 7px;
251
+ flex-wrap: nowrap;
252
+ }
253
+ .btn.side {
254
+ background: #191919;
255
+ color: #ddd;
256
+ border-color: #333;
257
+ font-size: 11px;
258
+ flex: 1;
259
+ padding: 6px;
260
+ }
261
+ .btn.side:hover {
262
+ background: #333;
263
+ color: #fff;
264
+ }
265
+ #sidebar nav {
266
+ display: grid;
267
+ gap: 5px;
268
+ }
269
+ #sidebar nav a,
270
+ #sidebar .sidebar-bottom > a {
271
+ color: #bbb;
272
+ text-decoration: none;
273
+ padding: 11px 12px;
274
+ border-radius: 7px;
275
+ display: flex;
276
+ align-items: center;
277
+ gap: 10px;
278
+ font-size: 12px;
279
+ font-weight: 500;
280
+ min-height: 43px;
281
+ }
282
+ #sidebar nav a:hover,
283
+ #sidebar .sidebar-bottom > a:hover {
284
+ background: #252525;
285
+ color: #fff;
286
+ }
287
+ #sidebar nav a[aria-current],
288
+ #sidebar .sidebar-bottom > a[aria-current] {
289
+ background: #f7f6f5;
290
+ color: #111;
291
+ }
292
+ .nav-number {
293
+ font-size: 10px;
294
+ min-width: 22px;
295
+ color: #92928d;
296
+ }
297
+ .phase-dot {
298
+ width: 6px;
299
+ height: 6px;
300
+ border-radius: 50%;
301
+ background: #777;
302
+ display: inline-block;
303
+ flex-shrink: 0;
304
+ }
305
+ .phase-dot.draft {
306
+ background: var(--gold);
307
+ }
308
+ .phase-dot.approved {
309
+ background: #65a488;
310
+ }
311
+ nav .phase-dot {
312
+ margin-left: auto;
313
+ }
314
+ .sidebar-bottom {
315
+ margin-top: auto;
316
+ padding-top: 30px;
317
+ }
318
+ .key-status {
319
+ font-size: 10px;
320
+ color: #b6b6af;
321
+ margin: 13px 12px 24px;
322
+ display: flex;
323
+ align-items: center;
324
+ gap: 8px;
325
+ }
326
+ .byline {
327
+ margin: 0 12px;
328
+ display: flex;
329
+ align-items: center;
330
+ gap: 10px;
331
+ color: #aaa;
332
+ font-size: 10px;
333
+ }
334
+ .byline img {
335
+ width: 94px;
336
+ max-height: 27px;
337
+ }
338
+ .side-hint {
339
+ color: #aaa;
340
+ font-size: 12px;
341
+ padding: 12px;
342
+ }
343
+ .workspace-shell {
344
+ display: flex;
345
+ flex-direction: column;
346
+ min-width: 0;
347
+ min-height: 0;
348
+ }
349
+ #topbar {
350
+ height: 71px;
351
+ flex-shrink: 0;
352
+ border-bottom: 1px solid var(--line);
353
+ display: flex;
354
+ align-items: center;
355
+ justify-content: space-between;
356
+ padding: 0 36px;
357
+ gap: 15px;
358
+ background: var(--paper);
359
+ }
360
+ .breadcrumb {
361
+ font-size: 11px;
362
+ color: var(--muted);
363
+ overflow: hidden;
364
+ white-space: nowrap;
365
+ text-overflow: ellipsis;
366
+ }
367
+ .breadcrumb span {
368
+ margin: 0 12px;
369
+ color: #999;
370
+ }
371
+ #topbar .btn {
372
+ font-size: 11px;
373
+ padding: 6px 10px;
374
+ }
375
+ #topbar > .row {
376
+ flex-shrink: 0;
377
+ }
378
+ #workspace {
379
+ overflow: auto;
380
+ overscroll-behavior: contain;
381
+ flex: 1;
382
+ min-height: 0;
383
+ outline: none;
384
+ scroll-padding: 28px;
385
+ }
386
+ .view {
387
+ max-width: 1220px;
388
+ padding: 34px 36px 65px;
389
+ margin: auto;
390
+ }
391
+ .view-heading {
392
+ margin-bottom: 28px;
393
+ }
394
+ .view > h2,
395
+ .view > section > h2 {
396
+ margin-top: 30px;
397
+ margin-bottom: 18px;
398
+ }
399
+ .view > h2:after,
400
+ .view > section > h2:after {
401
+ content: '';
402
+ display: block;
403
+ width: 39px;
404
+ height: 3px;
405
+ background: var(--gradient);
406
+ margin-top: 10px;
407
+ }
408
+ .card {
409
+ background: #fff;
410
+ border: 1px solid var(--line);
411
+ border-radius: 8px;
412
+ padding: 22px;
413
+ margin-bottom: 20px;
414
+ min-width: 0;
415
+ overflow-wrap: anywhere;
416
+ }
417
+ .card.flush {
418
+ padding: 0;
419
+ overflow: hidden;
420
+ }
421
+ .card h2 {
422
+ font-size: 18px;
423
+ }
424
+ .card > h2:not(:first-child),
425
+ .card > h3:not(:first-child) {
426
+ margin-top: 22px;
427
+ }
428
+ .card p {
429
+ line-height: 1.7;
430
+ }
431
+ .pipeline-card {
432
+ display: flex;
433
+ gap: 30px;
434
+ justify-content: space-between;
435
+ border-top: 3px solid #111;
436
+ padding: 27px;
437
+ }
438
+ .pipeline-card > div:first-child {
439
+ max-width: 630px;
440
+ }
441
+ .pipeline-card .stack {
442
+ min-width: 180px;
443
+ justify-content: center;
444
+ }
445
+ .pipeline-card h2 {
446
+ font-size: 22px;
447
+ }
448
+ .pipeline-card p {
449
+ font-size: 13px;
450
+ }
451
+ .pipeline-card .eyebrow {
452
+ display: block;
453
+ }
454
+ .btn {
455
+ display: inline-flex;
456
+ align-items: center;
457
+ justify-content: center;
458
+ gap: 7px;
459
+ border: 1px solid var(--line);
460
+ padding: 9px 13px;
461
+ border-radius: 6px;
462
+ text-decoration: none;
463
+ font-size: 12px;
464
+ font-weight: 500;
465
+ background: transparent;
466
+ line-height: 1.45;
467
+ white-space: normal;
468
+ text-align: center;
469
+ }
470
+ .btn.primary {
471
+ background: #111;
472
+ border-color: #111;
473
+ color: #fff;
474
+ }
475
+ .btn.primary:hover {
476
+ background: var(--gradient);
477
+ color: #111;
478
+ border-color: transparent;
479
+ }
480
+ .btn.secondary {
481
+ background: #fff;
482
+ color: #222;
483
+ }
484
+ .btn:hover {
485
+ border-color: #aaa;
486
+ background: var(--soft);
487
+ }
488
+ .btn.danger {
489
+ color: var(--magenta);
490
+ border-color: #ddbed2;
491
+ background: #fff;
492
+ }
493
+ .btn.danger:hover {
494
+ background: #f9edf5;
495
+ }
496
+ .btn.small {
497
+ padding: 5px 9px;
498
+ font-size: 11px;
499
+ }
500
+ .btn.icon {
501
+ font-size: 24px;
502
+ border: 0;
503
+ padding: 0 8px;
504
+ }
505
+ .btn[aria-pressed='true'] {
506
+ background: #111;
507
+ color: #fff;
508
+ border-color: #111;
509
+ }
510
+ .pill {
511
+ display: inline-flex;
512
+ border: 1px solid var(--line);
513
+ background: #f6f5f3;
514
+ color: #555;
515
+ padding: 3px 8px;
516
+ border-radius: 5px;
517
+ font-size: 10px;
518
+ font-weight: 500;
519
+ white-space: nowrap;
520
+ }
521
+ .pill.gold {
522
+ color: #694504;
523
+ background: #fff3da;
524
+ border-color: #edcf96;
525
+ }
526
+ .pill.approved {
527
+ background: #edf8f0;
528
+ color: #296046;
529
+ border-color: #b7d8c1;
530
+ }
531
+ .pill.risk-high {
532
+ background: #f6e8f2;
533
+ color: #8b005e;
534
+ border-color: #deb8d3;
535
+ }
536
+ .count {
537
+ color: #777;
538
+ font-size: 13px;
539
+ margin-left: 8px;
540
+ }
541
+ .stats {
542
+ display: grid;
543
+ grid-template-columns: repeat(4, minmax(0, 1fr));
544
+ gap: 13px;
545
+ margin-bottom: 22px;
546
+ }
547
+ .stat {
548
+ position: relative;
549
+ display: flex;
550
+ flex-direction: column;
551
+ text-decoration: none;
552
+ background: #fff;
553
+ border: 1px solid var(--line);
554
+ border-radius: 8px;
555
+ padding: 18px 20px;
556
+ gap: 8px;
557
+ }
558
+ .stat > span:first-child {
559
+ color: var(--muted);
560
+ font-size: 11px;
561
+ }
562
+ .stat strong {
563
+ font-size: 32px;
564
+ line-height: 1.1;
565
+ letter-spacing: -1px;
566
+ }
567
+ .stat-arrow {
568
+ position: absolute;
569
+ right: 16px;
570
+ bottom: 20px;
571
+ color: #9d9b94;
572
+ }
573
+ .phase-list {
574
+ list-style: none;
575
+ padding: 0;
576
+ margin: 0;
577
+ }
578
+ .phase-list li {
579
+ margin: 0;
580
+ border-bottom: 1px solid #eeede9;
581
+ }
582
+ .phase-list li:last-child {
583
+ border: 0;
584
+ }
585
+ .phase-list a {
586
+ display: flex;
587
+ align-items: center;
588
+ padding: 15px 20px;
589
+ gap: 15px;
590
+ text-decoration: none;
591
+ font-size: 12px;
592
+ }
593
+ .phase-list a:hover {
594
+ background: #faf9f6;
595
+ }
596
+ .phase-list .pill {
597
+ margin-left: auto;
598
+ }
599
+ .phase-index {
600
+ font-size: 11px;
601
+ color: #888;
602
+ width: 15px;
603
+ }
604
+ .maintenance {
605
+ font-size: 12px;
606
+ color: var(--muted);
607
+ margin-top: 30px;
608
+ }
609
+ .maintenance .row {
610
+ margin-top: 14px;
611
+ }
612
+ .field {
613
+ display: flex;
614
+ flex-direction: column;
615
+ gap: 7px;
616
+ min-width: 0;
617
+ margin-bottom: 17px;
618
+ }
619
+ .field > span {
620
+ font-size: 12px;
621
+ font-weight: 500;
622
+ }
623
+ .field:last-child {
624
+ margin-bottom: 0;
625
+ }
626
+ input,
627
+ select,
628
+ textarea {
629
+ color: #111;
630
+ width: 100%;
631
+ border: 1px solid #ccc;
632
+ border-radius: 5px;
633
+ background: #fff;
634
+ padding: 10px 11px;
635
+ outline: none;
636
+ font-size: 13px;
637
+ min-width: 0;
638
+ }
639
+ textarea {
640
+ resize: vertical;
641
+ min-height: 110px;
642
+ line-height: 1.6;
643
+ }
644
+ textarea.code {
645
+ min-height: 45vh;
646
+ tab-size: 2;
647
+ }
648
+ .field input:focus,
649
+ .field select:focus,
650
+ .field textarea:focus {
651
+ border-color: #9c0069;
652
+ }
653
+ .file-button {
654
+ position: relative;
655
+ overflow: hidden;
656
+ }
657
+ .file-button input {
658
+ position: absolute;
659
+ inset: 0;
660
+ opacity: 0;
661
+ cursor: pointer;
662
+ width: 100%;
663
+ }
664
+ .file-button:focus-within {
665
+ outline: 3px solid var(--gold);
666
+ outline-offset: 3px;
667
+ }
668
+ .file-list {
669
+ max-height: 350px;
670
+ overflow: auto;
671
+ margin-top: 12px;
672
+ }
673
+ .btn.file-row {
674
+ display: flex;
675
+ width: 100%;
676
+ border: 0;
677
+ border-bottom: 1px solid #eee;
678
+ text-align: left;
679
+ justify-content: space-between;
680
+ border-radius: 0;
681
+ padding: 10px 5px;
682
+ font-family: monospace;
683
+ overflow-wrap: anywhere;
684
+ font-size: 11px;
685
+ }
686
+ .file-row span {
687
+ color: var(--muted);
688
+ flex-shrink: 0;
689
+ margin-left: 10px;
690
+ }
691
+ .notice {
692
+ background: #f1f0ed;
693
+ border: 1px solid #dedcd5;
694
+ border-left: 3px solid var(--gold);
695
+ border-radius: 5px;
696
+ padding: 16px 18px;
697
+ margin: 16px 0;
698
+ font-size: 12px;
699
+ overflow-wrap: anywhere;
700
+ }
701
+ .notice.warn {
702
+ background: #fff9ee;
703
+ border-color: #e8cc99;
704
+ border-left: 3px solid var(--gold);
705
+ }
706
+ #error {
707
+ background: #fff1f8;
708
+ border-bottom: 1px solid #d6b2ca;
709
+ padding: 12px 36px;
710
+ font-size: 13px;
711
+ flex-shrink: 0;
712
+ color: #8b005e;
713
+ }
714
+ .review-bar {
715
+ display: flex;
716
+ justify-content: space-between;
717
+ align-items: center;
718
+ gap: 16px;
719
+ padding: 16px 20px;
720
+ background: #fbfaf8;
721
+ }
722
+ .review-bar .hint {
723
+ max-width: 520px;
724
+ }
725
+ .review-bar .row {
726
+ justify-content: flex-end;
727
+ }
728
+ .review-bar > div:first-child {
729
+ min-width: 140px;
730
+ }
731
+ .object-card {
732
+ margin-bottom: 0;
733
+ display: flex;
734
+ flex-direction: column;
735
+ padding: 18px;
736
+ }
737
+ .object-card h3 {
738
+ margin-top: 14px;
739
+ }
740
+ .object-card p {
741
+ font-size: 13px;
742
+ }
743
+ .object-grid {
744
+ margin-bottom: 25px;
745
+ }
746
+ .evidence {
747
+ margin-top: 12px;
748
+ }
749
+ .object-card > .evidence {
750
+ margin-top: auto;
751
+ padding-top: 12px;
752
+ }
753
+ .btn.citation {
754
+ display: inline-block;
755
+ max-width: 100%;
756
+ overflow-wrap: anywhere;
757
+ font-family: monospace;
758
+ border: 0;
759
+ background: var(--soft);
760
+ color: #666;
761
+ padding: 5px 7px;
762
+ font-size: 10px;
763
+ margin: 3px 4px 3px 0;
764
+ text-align: left;
765
+ }
766
+ .assumption {
767
+ font-size: 11px;
768
+ color: #765c28;
769
+ }
770
+ .edge {
771
+ border-left: 2px solid var(--gold);
772
+ padding: 7px 10px;
773
+ background: #faf9f7;
774
+ font-family: monospace;
775
+ font-size: 11px;
776
+ }
777
+ .edge span {
778
+ margin: 0 8px;
779
+ }
780
+ .filter-row {
781
+ display: grid;
782
+ grid-template-columns: 1fr 1fr;
783
+ gap: 20px;
784
+ }
785
+ .filter-row .field {
786
+ margin: 0;
787
+ }
788
+ .threat-card h2 {
789
+ margin-top: 18px;
790
+ }
791
+ .threat-card[hidden] {
792
+ display: none;
793
+ }
794
+ .threat-card > p {
795
+ font-size: 13px;
796
+ }
797
+ details > summary {
798
+ font-size: 12px;
799
+ font-weight: 500;
800
+ }
801
+ details[open] > summary {
802
+ margin-bottom: 15px;
803
+ }
804
+ details > summary:hover {
805
+ color: var(--magenta);
806
+ }
807
+ dl {
808
+ display: grid;
809
+ grid-template-columns: 150px minmax(0, 1fr);
810
+ gap: 10px 20px;
811
+ font-size: 12px;
812
+ margin: 18px 0;
813
+ }
814
+ dt {
815
+ color: var(--muted);
816
+ }
817
+ dd {
818
+ margin: 0;
819
+ white-space: pre-wrap;
820
+ }
821
+ .tree {
822
+ overflow: auto;
823
+ margin-top: 20px;
824
+ }
825
+ .tree ul {
826
+ list-style: none;
827
+ padding-left: 26px;
828
+ margin: 0;
829
+ }
830
+ .tree > ul {
831
+ padding-left: 0;
832
+ }
833
+ .tree li {
834
+ border-left: 1px solid #ccc;
835
+ margin: 0;
836
+ padding: 0 0 20px 18px;
837
+ position: relative;
838
+ min-width: 220px;
839
+ }
840
+ .tree li:before {
841
+ content: '';
842
+ position: absolute;
843
+ left: 0;
844
+ top: 18px;
845
+ width: 17px;
846
+ height: 1px;
847
+ background: #ccc;
848
+ }
849
+ .tree li:last-child {
850
+ padding-bottom: 0;
851
+ }
852
+ .tree-node {
853
+ border: 1px solid var(--line);
854
+ background: #fafaf8;
855
+ border-radius: 6px;
856
+ padding: 12px 14px;
857
+ margin-bottom: 16px;
858
+ }
859
+ .tree-node strong {
860
+ font-size: 12px;
861
+ }
862
+ .tree-node details {
863
+ margin-top: 10px;
864
+ }
865
+ .tree-node li {
866
+ border: 0;
867
+ padding: 0;
868
+ min-width: 0;
869
+ }
870
+ .tree-node li:before {
871
+ display: none;
872
+ }
873
+ .tree-node ul {
874
+ list-style: disc;
875
+ padding-left: 20px;
876
+ }
877
+ .report-tools {
878
+ display: flex;
879
+ justify-content: space-between;
880
+ gap: 12px;
881
+ flex-wrap: wrap;
882
+ padding: 14px 17px;
883
+ }
884
+ .report-layout {
885
+ display: grid;
886
+ grid-template-columns: 155px minmax(0, 1fr);
887
+ gap: 20px;
888
+ align-items: start;
889
+ }
890
+ .report-contents {
891
+ position: sticky;
892
+ top: 20px;
893
+ max-height: calc(100dvh - 180px);
894
+ overflow-y: auto;
895
+ padding-right: 8px;
896
+ }
897
+ .report-contents summary {
898
+ font-size: 9px;
899
+ letter-spacing: 1px;
900
+ color: #777;
901
+ }
902
+ .report-contents nav {
903
+ display: grid;
904
+ gap: 8px;
905
+ }
906
+ .report-contents a {
907
+ font-size: 10px;
908
+ line-height: 1.4;
909
+ text-decoration: none;
910
+ color: #666;
911
+ border-left: 2px solid #d6d4cb;
912
+ padding: 3px 0 3px 9px;
913
+ }
914
+ .report-contents a:hover {
915
+ color: #111;
916
+ border-color: var(--magenta);
917
+ }
918
+ .report-paper {
919
+ background: #fff;
920
+ border: 1px solid var(--line);
921
+ border-radius: 7px;
922
+ padding: 30px;
923
+ min-width: 0;
924
+ }
925
+ .markdown {
926
+ font-size: 13px;
927
+ line-height: 1.7;
928
+ overflow-wrap: anywhere;
929
+ }
930
+ .markdown h1 {
931
+ font-size: 27px;
932
+ letter-spacing: -0.6px;
933
+ margin: 0 0 20px;
934
+ }
935
+ .markdown h2 {
936
+ font-size: 21px;
937
+ margin: 32px 0 17px;
938
+ scroll-margin-top: 25px;
939
+ }
940
+ .markdown h2:after {
941
+ content: '';
942
+ display: block;
943
+ width: 35px;
944
+ height: 3px;
945
+ background: var(--gradient);
946
+ margin-top: 8px;
947
+ }
948
+ .markdown h3 {
949
+ font-size: 15px;
950
+ margin-top: 22px;
951
+ scroll-margin-top: 25px;
952
+ }
953
+ .markdown p {
954
+ white-space: pre-wrap;
955
+ }
956
+ .markdown pre {
957
+ padding: 15px;
958
+ background: var(--soft);
959
+ overflow: auto;
960
+ }
961
+ .markdown code {
962
+ background: var(--soft);
963
+ border-radius: 3px;
964
+ padding: 1px 3px;
965
+ }
966
+ .table-wrap {
967
+ overflow-x: auto;
968
+ width: 100%;
969
+ margin: 17px 0;
970
+ }
971
+ table {
972
+ border-collapse: collapse;
973
+ min-width: 100%;
974
+ font-size: 11px;
975
+ }
976
+ th,
977
+ td {
978
+ text-align: left;
979
+ vertical-align: top;
980
+ padding: 10px 12px;
981
+ border: 1px solid #e3e0da;
982
+ min-width: 90px;
983
+ max-width: 400px;
984
+ overflow-wrap: anywhere;
985
+ }
986
+ th {
987
+ background: #f3f1ec;
988
+ font-weight: 500;
989
+ }
990
+ tbody tr:nth-child(even) {
991
+ background: #fcfbf9;
992
+ }
993
+ .raw-report {
994
+ font-size: 12px;
995
+ line-height: 1.7;
996
+ overflow-wrap: anywhere;
997
+ white-space: pre-wrap;
998
+ }
999
+ .event-log {
1000
+ font-size: 11px;
1001
+ max-height: 500px;
1002
+ overflow: auto;
1003
+ line-height: 1.65;
1004
+ }
1005
+ .event-log > div {
1006
+ display: grid;
1007
+ grid-template-columns: 65px 85px 90px 1fr;
1008
+ gap: 10px;
1009
+ padding: 9px 0;
1010
+ border-bottom: 1px solid #eee;
1011
+ }
1012
+ .event-log time {
1013
+ font-family: monospace;
1014
+ color: var(--muted);
1015
+ }
1016
+ .event-log strong {
1017
+ font-weight: 500;
1018
+ }
1019
+ .event-log > div > span:last-child {
1020
+ overflow-wrap: anywhere;
1021
+ }
1022
+ #activity {
1023
+ grid-column: 1/-1;
1024
+ border-top: 1px solid #deddd7;
1025
+ display: flex;
1026
+ align-items: center;
1027
+ gap: 13px;
1028
+ padding: 0 20px;
1029
+ background: #fff;
1030
+ font-size: 11px;
1031
+ min-width: 0;
1032
+ z-index: 4;
1033
+ }
1034
+ #activity strong {
1035
+ white-space: nowrap;
1036
+ font-weight: 500;
1037
+ }
1038
+ #activity a {
1039
+ flex-shrink: 0;
1040
+ }
1041
+ .activity-message {
1042
+ white-space: nowrap;
1043
+ overflow: hidden;
1044
+ text-overflow: ellipsis;
1045
+ }
1046
+ .activity-metrics {
1047
+ margin-left: auto;
1048
+ white-space: nowrap;
1049
+ max-width: 40%;
1050
+ overflow: hidden;
1051
+ text-overflow: ellipsis;
1052
+ color: #777;
1053
+ font-variant-numeric: tabular-nums;
1054
+ }
1055
+ .status-dot {
1056
+ width: 6px;
1057
+ height: 6px;
1058
+ background: #689875;
1059
+ border-radius: 50%;
1060
+ flex-shrink: 0;
1061
+ }
1062
+ .spinner {
1063
+ width: 13px;
1064
+ height: 13px;
1065
+ border: 2px solid #dedbcf;
1066
+ border-top-color: var(--magenta);
1067
+ border-radius: 50%;
1068
+ display: inline-block;
1069
+ animation: spin 1s linear infinite;
1070
+ flex-shrink: 0;
1071
+ }
1072
+ @keyframes spin {
1073
+ to {
1074
+ transform: rotate(360deg);
1075
+ }
1076
+ }
1077
+ #toast {
1078
+ position: fixed;
1079
+ right: 24px;
1080
+ bottom: 65px;
1081
+ border: 1px solid #43413c;
1082
+ border-radius: 7px;
1083
+ background: #161615;
1084
+ color: #fff;
1085
+ padding: 13px 18px;
1086
+ font-size: 12px;
1087
+ max-width: min(500px, 90vw);
1088
+ z-index: 7;
1089
+ box-shadow: 0 8px 25px #0002;
1090
+ }
1091
+ dialog {
1092
+ border: 1px solid var(--line);
1093
+ border-radius: 10px;
1094
+ padding: 26px;
1095
+ width: min(850px, calc(100vw - 30px));
1096
+ max-height: calc(100dvh - 45px);
1097
+ overflow: auto;
1098
+ background: var(--paper);
1099
+ box-shadow: 0 20px 90px #0004;
1100
+ }
1101
+ dialog::backdrop {
1102
+ background: #0007;
1103
+ backdrop-filter: blur(2px);
1104
+ }
1105
+ .dialog-heading {
1106
+ display: flex;
1107
+ align-items: center;
1108
+ justify-content: space-between;
1109
+ gap: 15px;
1110
+ margin-bottom: 20px;
1111
+ }
1112
+ .dialog-heading h2 {
1113
+ margin: 0;
1114
+ }
1115
+ .source-code {
1116
+ max-height: 65vh;
1117
+ overflow: auto;
1118
+ border: 1px solid var(--line);
1119
+ border-radius: 5px;
1120
+ background: white;
1121
+ margin: 15px 0;
1122
+ white-space: pre;
1123
+ font-size: 11px;
1124
+ }
1125
+ .source-line {
1126
+ display: block;
1127
+ min-height: 1.6em;
1128
+ min-width: max-content;
1129
+ padding-right: 15px;
1130
+ }
1131
+ .source-line > b {
1132
+ display: inline-block;
1133
+ width: 55px;
1134
+ padding-right: 12px;
1135
+ text-align: right;
1136
+ margin-right: 14px;
1137
+ color: #999;
1138
+ background: #f4f3ef;
1139
+ font-weight: 400;
1140
+ user-select: none;
1141
+ }
1142
+ .source-line.selected {
1143
+ background: #fff1d7;
1144
+ }
1145
+ .source-line.selected > b {
1146
+ background: #ffe6b1;
1147
+ color: #694504;
1148
+ }
1149
+ .empty {
1150
+ text-align: center;
1151
+ padding: 40px 25px;
1152
+ }
1153
+ .empty .empty-mark {
1154
+ display: block;
1155
+ font-size: 32px;
1156
+ color: #9c0069;
1157
+ margin-bottom: 10px;
1158
+ }
1159
+ .empty p {
1160
+ font-size: 13px;
1161
+ color: var(--muted);
1162
+ max-width: 500px;
1163
+ margin: auto;
1164
+ }
1165
+ .loading {
1166
+ padding: 40px;
1167
+ color: var(--muted);
1168
+ }
1169
+ .welcome-art {
1170
+ display: flex;
1171
+ align-items: center;
1172
+ justify-content: space-between;
1173
+ gap: 12px;
1174
+ background: #111;
1175
+ color: #ddd;
1176
+ border-radius: 8px;
1177
+ padding: 40px 25px;
1178
+ margin-bottom: 25px;
1179
+ font-size: 11px;
1180
+ }
1181
+ .welcome-art strong {
1182
+ color: var(--gold);
1183
+ }
1184
+ .welcome-art i {
1185
+ font-style: normal;
1186
+ color: #ffc965;
1187
+ font-size: 20px;
1188
+ }
1189
+ .skip {
1190
+ position: fixed;
1191
+ left: 15px;
1192
+ top: -100px;
1193
+ background: var(--gold);
1194
+ color: #111;
1195
+ padding: 8px;
1196
+ z-index: 100;
1197
+ }
1198
+ .skip:focus {
1199
+ top: 10px;
1200
+ }
1201
+ .mobile-menu {
1202
+ display: none;
1203
+ }
1204
+ @media (min-width: 1650px) {
1205
+ .view {
1206
+ padding-top: 45px;
1207
+ }
1208
+ .shell {
1209
+ grid-template-columns: 272px minmax(0, 1fr);
1210
+ }
1211
+ }
1212
+ @media (max-width: 1150px) {
1213
+ .shell {
1214
+ grid-template-columns: 225px minmax(0, 1fr);
1215
+ }
1216
+ #sidebar {
1217
+ padding-left: 12px;
1218
+ padding-right: 12px;
1219
+ }
1220
+ .view {
1221
+ padding: 28px 24px 55px;
1222
+ }
1223
+ #topbar {
1224
+ padding: 0 24px;
1225
+ }
1226
+ .pipeline-card {
1227
+ display: block;
1228
+ }
1229
+ .pipeline-card .stack {
1230
+ flex-direction: row;
1231
+ flex-wrap: wrap;
1232
+ justify-content: flex-start;
1233
+ margin-top: 20px;
1234
+ }
1235
+ .report-layout {
1236
+ grid-template-columns: 1fr;
1237
+ }
1238
+ .report-contents {
1239
+ position: static;
1240
+ max-height: 180px;
1241
+ padding: 15px;
1242
+ background: #efede7;
1243
+ border-radius: 6px;
1244
+ }
1245
+ .report-contents nav {
1246
+ grid-template-columns: repeat(3, 1fr);
1247
+ }
1248
+ .report-paper {
1249
+ padding: 25px;
1250
+ }
1251
+ .stats {
1252
+ gap: 9px;
1253
+ }
1254
+ .stat {
1255
+ padding: 16px 12px;
1256
+ }
1257
+ .stat-arrow {
1258
+ right: 10px;
1259
+ }
1260
+ .review-bar {
1261
+ flex-wrap: wrap;
1262
+ }
1263
+ }
1264
+ @media (max-width: 780px) {
1265
+ .shell {
1266
+ grid-template-columns: minmax(0, 1fr);
1267
+ grid-template-rows: minmax(0, 1fr) 48px;
1268
+ }
1269
+ #sidebar {
1270
+ position: fixed;
1271
+ left: 0;
1272
+ top: 60px;
1273
+ bottom: 48px;
1274
+ width: 255px;
1275
+ z-index: 5;
1276
+ box-shadow: 10px 0 35px #0003;
1277
+ display: none;
1278
+ }
1279
+ #sidebar.open {
1280
+ display: flex;
1281
+ }
1282
+ .brand {
1283
+ margin-bottom: 24px;
1284
+ }
1285
+ .mobile-menu {
1286
+ display: inline-flex;
1287
+ border: 0;
1288
+ font-size: 20px;
1289
+ padding: 0 5px;
1290
+ }
1291
+ #topbar {
1292
+ height: 60px;
1293
+ padding: 0 16px;
1294
+ gap: 10px;
1295
+ }
1296
+ .breadcrumb {
1297
+ flex: 1;
1298
+ }
1299
+ #topbar > .row .pill {
1300
+ display: none;
1301
+ }
1302
+ #topbar [data-action='export-project'] {
1303
+ display: none;
1304
+ }
1305
+ .view {
1306
+ padding: 25px 18px 45px;
1307
+ }
1308
+ h1 {
1309
+ font-size: 27px;
1310
+ }
1311
+ .grid-2,
1312
+ .object-grid {
1313
+ grid-template-columns: 1fr;
1314
+ }
1315
+ .stats {
1316
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1317
+ }
1318
+ .pipeline-card {
1319
+ padding: 22px;
1320
+ }
1321
+ .pipeline-card .stack {
1322
+ display: grid;
1323
+ grid-template-columns: 1fr;
1324
+ width: 100%;
1325
+ }
1326
+ .report-contents nav {
1327
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1328
+ }
1329
+ .report-paper {
1330
+ padding: 19px;
1331
+ }
1332
+ .report-tools {
1333
+ align-items: stretch;
1334
+ }
1335
+ .report-tools > .row {
1336
+ display: grid;
1337
+ grid-template-columns: 1fr 1fr;
1338
+ width: 100%;
1339
+ }
1340
+ .review-bar .row {
1341
+ justify-content: flex-start;
1342
+ }
1343
+ .filter-row {
1344
+ grid-template-columns: 1fr;
1345
+ }
1346
+ .activity-message {
1347
+ display: none;
1348
+ }
1349
+ .activity-metrics {
1350
+ font-size: 10px;
1351
+ }
1352
+ #activity {
1353
+ gap: 8px;
1354
+ padding: 0 12px;
1355
+ font-size: 10px;
1356
+ }
1357
+ #activity > .muted {
1358
+ overflow: hidden;
1359
+ white-space: nowrap;
1360
+ text-overflow: ellipsis;
1361
+ }
1362
+ .welcome-art {
1363
+ flex-wrap: wrap;
1364
+ justify-content: center;
1365
+ gap: 18px;
1366
+ padding: 25px;
1367
+ }
1368
+ .card {
1369
+ padding: 19px;
1370
+ }
1371
+ .card.flush {
1372
+ padding: 0;
1373
+ }
1374
+ #error {
1375
+ padding: 12px 18px;
1376
+ }
1377
+ .event-log > div {
1378
+ grid-template-columns: 60px 80px 1fr;
1379
+ }
1380
+ .event-log > div > span:last-child {
1381
+ grid-column: 1/-1;
1382
+ }
1383
+ dl {
1384
+ grid-template-columns: 110px minmax(0, 1fr);
1385
+ gap: 8px;
1386
+ }
1387
+ .file-row span {
1388
+ display: none;
1389
+ }
1390
+ .tree ul {
1391
+ padding-left: 10px;
1392
+ }
1393
+ .tree li {
1394
+ padding-left: 12px;
1395
+ min-width: 0;
1396
+ }
1397
+ .tree li:before {
1398
+ width: 11px;
1399
+ }
1400
+ dialog {
1401
+ padding: 20px;
1402
+ }
1403
+ .source-code {
1404
+ font-size: 10px;
1405
+ }
1406
+ }
1407
+ @media (prefers-reduced-motion: reduce) {
1408
+ * {
1409
+ scroll-behavior: auto !important;
1410
+ animation-duration: 0s !important;
1411
+ }
1412
+ .spinner {
1413
+ border-color: var(--magenta);
1414
+ }
1415
+ }
1416
+ @media print {
1417
+ body,
1418
+ .shell,
1419
+ .workspace-shell,
1420
+ #workspace {
1421
+ display: block;
1422
+ height: auto;
1423
+ overflow: visible;
1424
+ }
1425
+ #sidebar,
1426
+ #topbar,
1427
+ #activity,
1428
+ .review-bar,
1429
+ .report-tools,
1430
+ .report-contents,
1431
+ .view-heading,
1432
+ .skip,
1433
+ #toast {
1434
+ display: none !important;
1435
+ }
1436
+ .view,
1437
+ .report-paper {
1438
+ padding: 0;
1439
+ border: 0;
1440
+ }
1441
+ .report-layout {
1442
+ display: block;
1443
+ }
1444
+ .table-wrap {
1445
+ overflow: visible;
1446
+ }
1447
+ table {
1448
+ font-size: 9px;
1449
+ }
1450
+ }