mdx-artifacts 0.1.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 (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +234 -0
  3. package/README.zh-CN.md +129 -0
  4. package/agents/AGENTS.snippet.md +13 -0
  5. package/artifact-docs/examples/commentable-feedback.mdx +126 -0
  6. package/artifact-docs/examples/decision-matrix.mdx +80 -0
  7. package/artifact-docs/examples/layout-composition.mdx +216 -0
  8. package/artifact-docs/examples/streamlit-style-mixed.mdx +183 -0
  9. package/dist/lib/cli/artifact-state.d.ts +27 -0
  10. package/dist/lib/cli/artifact-state.js +115 -0
  11. package/dist/lib/cli/build.d.ts +1 -0
  12. package/dist/lib/cli/build.js +25 -0
  13. package/dist/lib/cli/components.d.ts +3 -0
  14. package/dist/lib/cli/components.js +58 -0
  15. package/dist/lib/cli/config.d.ts +2 -0
  16. package/dist/lib/cli/config.js +36 -0
  17. package/dist/lib/cli/dev.d.ts +1 -0
  18. package/dist/lib/cli/dev.js +24 -0
  19. package/dist/lib/cli/index.d.ts +2 -0
  20. package/dist/lib/cli/index.js +69 -0
  21. package/dist/lib/cli/review.d.ts +33 -0
  22. package/dist/lib/cli/review.js +390 -0
  23. package/dist/lib/cli/scaffold.d.ts +1 -0
  24. package/dist/lib/cli/scaffold.js +56 -0
  25. package/dist/lib/cli/types.d.ts +7 -0
  26. package/dist/lib/cli/types.js +1 -0
  27. package/dist/lib/cli/validate.d.ts +6 -0
  28. package/dist/lib/cli/validate.js +79 -0
  29. package/dist/lib/cli/vite-artifact.d.ts +13 -0
  30. package/dist/lib/cli/vite-artifact.js +213 -0
  31. package/dist/lib/react/components/AnnotatedCode.d.ts +19 -0
  32. package/dist/lib/react/components/AnnotatedCode.js +30 -0
  33. package/dist/lib/react/components/ArtifactState.d.ts +68 -0
  34. package/dist/lib/react/components/ArtifactState.js +286 -0
  35. package/dist/lib/react/components/Callout.d.ts +9 -0
  36. package/dist/lib/react/components/Callout.js +21 -0
  37. package/dist/lib/react/components/CodeBlock.d.ts +10 -0
  38. package/dist/lib/react/components/CodeBlock.js +28 -0
  39. package/dist/lib/react/components/Comments.d.ts +53 -0
  40. package/dist/lib/react/components/Comments.js +613 -0
  41. package/dist/lib/react/components/ComparisonSet.d.ts +24 -0
  42. package/dist/lib/react/components/ComparisonSet.js +30 -0
  43. package/dist/lib/react/components/DecisionMatrix.d.ts +16 -0
  44. package/dist/lib/react/components/DecisionMatrix.js +27 -0
  45. package/dist/lib/react/components/DiffBlock.d.ts +15 -0
  46. package/dist/lib/react/components/DiffBlock.js +24 -0
  47. package/dist/lib/react/components/ExportPanel.d.ts +7 -0
  48. package/dist/lib/react/components/ExportPanel.js +84 -0
  49. package/dist/lib/react/components/InlineText.d.ts +9 -0
  50. package/dist/lib/react/components/InlineText.js +18 -0
  51. package/dist/lib/react/components/Layout.d.ts +44 -0
  52. package/dist/lib/react/components/Layout.js +28 -0
  53. package/dist/lib/react/components/MarkdownBody.d.ts +7 -0
  54. package/dist/lib/react/components/MarkdownBody.js +36 -0
  55. package/dist/lib/react/components/OptionGrid.d.ts +13 -0
  56. package/dist/lib/react/components/OptionGrid.js +21 -0
  57. package/dist/lib/react/components/Section.d.ts +7 -0
  58. package/dist/lib/react/components/Section.js +41 -0
  59. package/dist/lib/react/components/SeverityBadge.d.ts +7 -0
  60. package/dist/lib/react/components/SeverityBadge.js +14 -0
  61. package/dist/lib/react/index.d.ts +33 -0
  62. package/dist/lib/react/index.js +16 -0
  63. package/dist/lib/react/registry.d.ts +24 -0
  64. package/dist/lib/react/registry.js +1002 -0
  65. package/dist/lib/react/styles.css +1417 -0
  66. package/docs/component-protocol.md +273 -0
  67. package/docs/component-taxonomy.md +273 -0
  68. package/docs/design.md +239 -0
  69. package/docs/design.zh-CN.md +217 -0
  70. package/docs/naming.md +123 -0
  71. package/docs/testing.md +138 -0
  72. package/package.json +90 -0
@@ -0,0 +1,1417 @@
1
+ @import "tailwindcss";
2
+ @source "./components/**/*.{ts,tsx}";
3
+ @source "../../artifact-docs/**/*.{mdx}";
4
+
5
+ :root {
6
+ color-scheme: light;
7
+ --ak-bg: oklch(0.985 0 0);
8
+ --ak-surface: oklch(1 0 0);
9
+ --ak-surface-subtle: oklch(0.97 0 0);
10
+ --ak-text: oklch(0.145 0 0);
11
+ --ak-muted: oklch(0.556 0 0);
12
+ --ak-border: oklch(0.922 0 0);
13
+ --ak-primary: oklch(0.205 0 0);
14
+ --ak-primary-dark: oklch(0.205 0 0);
15
+ --ak-primary-foreground: oklch(0.985 0 0);
16
+ --ak-primary-subtle: oklch(0.97 0 0);
17
+ --ak-good: oklch(0.45 0.12 165);
18
+ --ak-good-subtle: oklch(0.96 0.03 165);
19
+ --ak-warn: oklch(0.55 0.12 85);
20
+ --ak-warn-subtle: oklch(0.97 0.04 85);
21
+ --ak-risk: oklch(0.577 0.245 27.325);
22
+ --ak-risk-subtle: oklch(0.971 0.013 17.38);
23
+ --ak-code-bg: oklch(0.97 0 0);
24
+ --ak-code-text: oklch(0.269 0 0);
25
+ --ak-code-highlight-bg: oklch(0.91 0.055 85);
26
+ --ak-code-add-bg: oklch(0.91 0.06 155);
27
+ --ak-code-remove-bg: oklch(0.93 0.055 25);
28
+ --ak-output-bg: oklch(0.145 0 0);
29
+ --ak-output-text: oklch(0.985 0 0);
30
+ --ak-comment-accent: oklch(0.55 0.17 245);
31
+ --ak-comment-accent-subtle: oklch(0.96 0.035 245);
32
+ --ak-review-content-width: 1120px;
33
+ --ak-review-gap: 18px;
34
+ --ak-review-gap-total: 36px;
35
+ --ak-review-page-gutter-total: 32px;
36
+ --ak-review-rail-width: clamp(
37
+ 180px,
38
+ calc((100vw - var(--ak-review-content-width) - var(--ak-review-gap-total) - var(--ak-review-page-gutter-total)) / 2),
39
+ 360px
40
+ );
41
+ --ak-shadow: 0 1px 2px rgb(0 0 0 / 4%);
42
+ font-family:
43
+ Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
44
+ }
45
+
46
+ :root[data-theme="light"] {
47
+ color-scheme: light;
48
+ }
49
+
50
+ :root[data-theme="dark"] {
51
+ color-scheme: dark;
52
+ --ak-bg: oklch(0.145 0 0);
53
+ --ak-surface: oklch(0.205 0 0);
54
+ --ak-surface-subtle: oklch(0.269 0 0);
55
+ --ak-text: oklch(0.985 0 0);
56
+ --ak-muted: oklch(0.708 0 0);
57
+ --ak-border: oklch(1 0 0 / 10%);
58
+ --ak-primary: oklch(0.922 0 0);
59
+ --ak-primary-dark: oklch(0.985 0 0);
60
+ --ak-primary-foreground: oklch(0.145 0 0);
61
+ --ak-primary-subtle: oklch(1 0 0 / 10%);
62
+ --ak-good: oklch(0.78 0.12 165);
63
+ --ak-good-subtle: oklch(0.32 0.06 165);
64
+ --ak-warn: oklch(0.82 0.12 85);
65
+ --ak-warn-subtle: oklch(0.34 0.06 85);
66
+ --ak-risk: oklch(0.704 0.191 22.216);
67
+ --ak-risk-subtle: oklch(0.31 0.08 22);
68
+ --ak-code-bg: oklch(1 0 0 / 8%);
69
+ --ak-code-text: oklch(0.922 0 0);
70
+ --ak-code-highlight-bg: oklch(0.34 0.06 85);
71
+ --ak-code-add-bg: oklch(0.28 0.055 155);
72
+ --ak-code-remove-bg: oklch(0.3 0.06 25);
73
+ --ak-output-bg: oklch(0.12 0 0);
74
+ --ak-output-text: oklch(0.985 0 0);
75
+ --ak-comment-accent: oklch(0.75 0.13 245);
76
+ --ak-comment-accent-subtle: oklch(0.32 0.055 245);
77
+ --ak-shadow: 0 1px 2px rgb(0 0 0 / 28%);
78
+ }
79
+
80
+ @media (prefers-color-scheme: dark) {
81
+ :root:not([data-theme]) {
82
+ color-scheme: dark;
83
+ --ak-bg: oklch(0.145 0 0);
84
+ --ak-surface: oklch(0.205 0 0);
85
+ --ak-surface-subtle: oklch(0.269 0 0);
86
+ --ak-text: oklch(0.985 0 0);
87
+ --ak-muted: oklch(0.708 0 0);
88
+ --ak-border: oklch(1 0 0 / 10%);
89
+ --ak-primary: oklch(0.922 0 0);
90
+ --ak-primary-dark: oklch(0.985 0 0);
91
+ --ak-primary-foreground: oklch(0.145 0 0);
92
+ --ak-primary-subtle: oklch(1 0 0 / 10%);
93
+ --ak-good: oklch(0.78 0.12 165);
94
+ --ak-good-subtle: oklch(0.32 0.06 165);
95
+ --ak-warn: oklch(0.82 0.12 85);
96
+ --ak-warn-subtle: oklch(0.34 0.06 85);
97
+ --ak-risk: oklch(0.704 0.191 22.216);
98
+ --ak-risk-subtle: oklch(0.31 0.08 22);
99
+ --ak-code-bg: oklch(1 0 0 / 8%);
100
+ --ak-code-text: oklch(0.922 0 0);
101
+ --ak-code-highlight-bg: oklch(0.34 0.06 85);
102
+ --ak-code-add-bg: oklch(0.28 0.055 155);
103
+ --ak-code-remove-bg: oklch(0.3 0.06 25);
104
+ --ak-output-bg: oklch(0.12 0 0);
105
+ --ak-output-text: oklch(0.985 0 0);
106
+ --ak-comment-accent: oklch(0.75 0.13 245);
107
+ --ak-comment-accent-subtle: oklch(0.32 0.055 245);
108
+ --ak-shadow: 0 1px 2px rgb(0 0 0 / 28%);
109
+ }
110
+ }
111
+
112
+ * {
113
+ box-sizing: border-box;
114
+ }
115
+
116
+ body {
117
+ margin: 0;
118
+ background: var(--ak-bg);
119
+ color: var(--ak-text);
120
+ }
121
+
122
+ .ak-shell {
123
+ width: min(var(--ak-review-content-width), calc(100% - 32px));
124
+ margin: 0 auto;
125
+ padding: 36px 0 56px;
126
+ }
127
+
128
+ .ak-shell:has(.ak-review-layout-active) {
129
+ width: min(
130
+ calc(100% - 32px),
131
+ calc(var(--ak-review-content-width) + var(--ak-review-gap-total) + var(--ak-review-rail-width) + var(--ak-review-rail-width))
132
+ );
133
+ }
134
+
135
+ .ak-document {
136
+ display: grid;
137
+ gap: 24px;
138
+ }
139
+
140
+ .ak-review-layout {
141
+ display: grid;
142
+ grid-template-columns: var(--ak-review-rail-width) minmax(0, var(--ak-review-content-width)) var(--ak-review-rail-width);
143
+ gap: var(--ak-review-gap);
144
+ align-items: start;
145
+ }
146
+
147
+ .ak-review-layout-inactive {
148
+ display: block;
149
+ }
150
+
151
+ .ak-review-content {
152
+ display: grid;
153
+ gap: 24px;
154
+ min-width: 0;
155
+ }
156
+
157
+ .ak-review-layout-inactive > .ak-review-rail {
158
+ display: none;
159
+ }
160
+
161
+ .ak-review-rail {
162
+ position: relative;
163
+ min-height: 1px;
164
+ }
165
+
166
+ .ak-document > h1,
167
+ .ak-document > h2,
168
+ .ak-document > h3,
169
+ .ak-document > h4,
170
+ .ak-document > h5,
171
+ .ak-document > h6,
172
+ .ak-document > p,
173
+ .ak-document > ul,
174
+ .ak-document > ol,
175
+ .ak-document > blockquote,
176
+ .ak-review-content > h1,
177
+ .ak-review-content > h2,
178
+ .ak-review-content > h3,
179
+ .ak-review-content > h4,
180
+ .ak-review-content > h5,
181
+ .ak-review-content > h6,
182
+ .ak-review-content > p,
183
+ .ak-review-content > ul,
184
+ .ak-review-content > ol,
185
+ .ak-review-content > blockquote,
186
+ .ak-content-section > h1,
187
+ .ak-content-section > h2,
188
+ .ak-content-section > h3,
189
+ .ak-content-section > h4,
190
+ .ak-content-section > h5,
191
+ .ak-content-section > h6,
192
+ .ak-content-section > p,
193
+ .ak-content-section > ul,
194
+ .ak-content-section > ol,
195
+ .ak-content-section > blockquote {
196
+ margin: 0;
197
+ }
198
+
199
+ .ak-document > h1,
200
+ .ak-document > h2,
201
+ .ak-document > h3,
202
+ .ak-document > h4,
203
+ .ak-document > h5,
204
+ .ak-document > h6,
205
+ .ak-review-content > h1,
206
+ .ak-review-content > h2,
207
+ .ak-review-content > h3,
208
+ .ak-review-content > h4,
209
+ .ak-review-content > h5,
210
+ .ak-review-content > h6,
211
+ .ak-content-section > h1,
212
+ .ak-content-section > h2,
213
+ .ak-content-section > h3,
214
+ .ak-content-section > h4,
215
+ .ak-content-section > h5,
216
+ .ak-content-section > h6 {
217
+ line-height: 1.25;
218
+ }
219
+
220
+ .ak-document > h1,
221
+ .ak-review-content > h1,
222
+ .ak-content-section > h1 {
223
+ margin: 0 0 4px;
224
+ font-size: 32px;
225
+ line-height: 1.15;
226
+ }
227
+
228
+ .ak-document > h2,
229
+ .ak-review-content > h2,
230
+ .ak-content-section > h2 {
231
+ font-size: 24px;
232
+ }
233
+
234
+ .ak-document > h3,
235
+ .ak-review-content > h3,
236
+ .ak-content-section > h3 {
237
+ font-size: 20px;
238
+ }
239
+
240
+ .ak-document > h4,
241
+ .ak-review-content > h4,
242
+ .ak-content-section > h4 {
243
+ font-size: 17px;
244
+ }
245
+
246
+ .ak-document > h5,
247
+ .ak-document > h6,
248
+ .ak-review-content > h5,
249
+ .ak-review-content > h6,
250
+ .ak-content-section > h5,
251
+ .ak-content-section > h6 {
252
+ color: var(--ak-muted);
253
+ font-size: 15px;
254
+ }
255
+
256
+ .ak-document > p,
257
+ .ak-document > blockquote,
258
+ .ak-review-content > p,
259
+ .ak-review-content > blockquote,
260
+ .ak-content-section > p,
261
+ .ak-content-section > blockquote,
262
+ .ak-document li,
263
+ .ak-review-content li,
264
+ .ak-content-section li {
265
+ line-height: 1.65;
266
+ }
267
+
268
+ .ak-document > ul,
269
+ .ak-document > ol,
270
+ .ak-review-content > ul,
271
+ .ak-review-content > ol,
272
+ .ak-content-section > ul,
273
+ .ak-content-section > ol {
274
+ display: grid;
275
+ gap: 6px;
276
+ padding-left: 22px;
277
+ }
278
+
279
+ .ak-document ul,
280
+ .ak-review-content ul,
281
+ .ak-content-section ul {
282
+ list-style: disc outside;
283
+ }
284
+
285
+ .ak-document ol,
286
+ .ak-review-content ol,
287
+ .ak-content-section ol {
288
+ list-style: decimal outside;
289
+ }
290
+
291
+ .ak-document li > ul,
292
+ .ak-document li > ol,
293
+ .ak-review-content li > ul,
294
+ .ak-review-content li > ol,
295
+ .ak-content-section li > ul,
296
+ .ak-content-section li > ol {
297
+ margin-top: 6px;
298
+ padding-left: 22px;
299
+ }
300
+
301
+ .ak-document li > ul,
302
+ .ak-review-content li > ul,
303
+ .ak-content-section li > ul {
304
+ list-style-type: circle;
305
+ }
306
+
307
+ .ak-document li > ul li > ul,
308
+ .ak-review-content li > ul li > ul,
309
+ .ak-content-section li > ul li > ul {
310
+ list-style-type: square;
311
+ }
312
+
313
+ .ak-document li > ol,
314
+ .ak-review-content li > ol,
315
+ .ak-content-section li > ol {
316
+ list-style-type: lower-alpha;
317
+ }
318
+
319
+ .ak-document li > ol li > ol,
320
+ .ak-review-content li > ol li > ol,
321
+ .ak-content-section li > ol li > ol {
322
+ list-style-type: lower-roman;
323
+ }
324
+
325
+ .ak-document > blockquote,
326
+ .ak-review-content > blockquote,
327
+ .ak-content-section > blockquote {
328
+ border-left: 3px solid var(--ak-border);
329
+ color: var(--ak-muted);
330
+ padding-left: 14px;
331
+ }
332
+
333
+ .ak-section {
334
+ display: grid;
335
+ gap: 16px;
336
+ margin: 0;
337
+ }
338
+
339
+ .ak-section-header {
340
+ display: grid;
341
+ gap: 4px;
342
+ }
343
+
344
+ .ak-section-header :where(h1, h2, h3, h4, h5, h6) {
345
+ margin: 0;
346
+ font-size: 22px;
347
+ line-height: 1.25;
348
+ }
349
+
350
+ .ak-stack,
351
+ .ak-columns,
352
+ .ak-grid,
353
+ .ak-split-pane {
354
+ min-width: 0;
355
+ }
356
+
357
+ .ak-stack {
358
+ display: grid;
359
+ }
360
+
361
+ .ak-stack-align-start {
362
+ justify-items: start;
363
+ }
364
+
365
+ .ak-stack-align-center {
366
+ justify-items: center;
367
+ }
368
+
369
+ .ak-stack-align-stretch {
370
+ justify-items: stretch;
371
+ }
372
+
373
+ .ak-columns,
374
+ .ak-grid,
375
+ .ak-split-pane {
376
+ display: grid;
377
+ grid-template-columns: var(--ak-layout-columns);
378
+ }
379
+
380
+ .ak-columns > *,
381
+ .ak-grid > *,
382
+ .ak-split-pane > * {
383
+ min-width: 0;
384
+ }
385
+
386
+ .ak-gap-sm {
387
+ gap: 10px;
388
+ }
389
+
390
+ .ak-gap-md {
391
+ gap: 16px;
392
+ }
393
+
394
+ .ak-gap-lg {
395
+ gap: 24px;
396
+ }
397
+
398
+ .ak-frame {
399
+ min-width: 0;
400
+ border-radius: 8px;
401
+ }
402
+
403
+ .ak-comparison-item {
404
+ height: 100%;
405
+ }
406
+
407
+ .ak-comparison-item-body {
408
+ display: grid;
409
+ gap: 12px;
410
+ margin-top: 10px;
411
+ }
412
+
413
+ .ak-surface-none {
414
+ border: 0;
415
+ background: transparent;
416
+ box-shadow: none;
417
+ }
418
+
419
+ .ak-surface-plain {
420
+ border: 0;
421
+ background: var(--ak-surface);
422
+ box-shadow: var(--ak-shadow);
423
+ }
424
+
425
+ .ak-surface-subtle {
426
+ border: 1px solid var(--ak-border);
427
+ background: var(--ak-surface-subtle);
428
+ }
429
+
430
+ .ak-surface-outlined {
431
+ border: 1px solid var(--ak-border);
432
+ background: var(--ak-surface);
433
+ box-shadow: var(--ak-shadow);
434
+ }
435
+
436
+ .ak-padding-none {
437
+ padding: 0;
438
+ }
439
+
440
+ .ak-padding-sm {
441
+ padding: 10px;
442
+ }
443
+
444
+ .ak-padding-md {
445
+ padding: 16px;
446
+ }
447
+
448
+ .ak-padding-lg {
449
+ padding: 24px;
450
+ }
451
+
452
+ .ak-eyebrow {
453
+ margin: 0;
454
+ color: var(--ak-primary);
455
+ font-size: 12px;
456
+ font-weight: 700;
457
+ letter-spacing: 0;
458
+ text-transform: uppercase;
459
+ }
460
+
461
+ .ak-decision-grid,
462
+ .ak-option-grid {
463
+ display: grid;
464
+ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
465
+ gap: 14px;
466
+ }
467
+
468
+ .ak-card {
469
+ min-width: 0;
470
+ border: 1px solid var(--ak-border);
471
+ border-radius: 8px;
472
+ background: var(--ak-surface);
473
+ padding: 16px;
474
+ box-shadow: var(--ak-shadow);
475
+ }
476
+
477
+ .ak-card h3 {
478
+ margin: 0;
479
+ font-size: 17px;
480
+ line-height: 1.3;
481
+ }
482
+
483
+ .ak-card p {
484
+ margin: 10px 0 0;
485
+ }
486
+
487
+ .ak-card ul {
488
+ margin: 8px 0 0;
489
+ padding-left: 18px;
490
+ }
491
+
492
+ .ak-card li {
493
+ margin: 4px 0;
494
+ }
495
+
496
+ .ak-inline-text {
497
+ min-width: 0;
498
+ }
499
+
500
+ .ak-inline-text code,
501
+ .ak-markdown-body code {
502
+ border-radius: 4px;
503
+ background: var(--ak-code-bg);
504
+ color: var(--ak-code-text);
505
+ font-family:
506
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
507
+ font-size: 0.92em;
508
+ padding: 1px 4px;
509
+ }
510
+
511
+ .ak-inline-text a,
512
+ .ak-markdown-body a {
513
+ color: var(--ak-primary-dark);
514
+ font-weight: 700;
515
+ text-decoration: underline;
516
+ text-underline-offset: 2px;
517
+ }
518
+
519
+ .ak-markdown-body {
520
+ display: grid;
521
+ gap: 10px;
522
+ line-height: 1.6;
523
+ }
524
+
525
+ .ak-markdown-body--compact {
526
+ gap: 6px;
527
+ font-size: 14px;
528
+ line-height: 1.5;
529
+ }
530
+
531
+ .ak-markdown-body > * {
532
+ margin: 0;
533
+ }
534
+
535
+ .ak-markdown-body h1,
536
+ .ak-markdown-body h2,
537
+ .ak-markdown-body h3,
538
+ .ak-markdown-body h4,
539
+ .ak-markdown-body h5,
540
+ .ak-markdown-body h6 {
541
+ font-weight: 700;
542
+ line-height: 1.3;
543
+ }
544
+
545
+ .ak-markdown-body h1 {
546
+ font-size: 1.35em;
547
+ }
548
+
549
+ .ak-markdown-body h2 {
550
+ font-size: 1.22em;
551
+ }
552
+
553
+ .ak-markdown-body h3 {
554
+ font-size: 1.12em;
555
+ }
556
+
557
+ .ak-markdown-body h4 {
558
+ font-size: 1.02em;
559
+ }
560
+
561
+ .ak-markdown-body h5,
562
+ .ak-markdown-body h6 {
563
+ color: var(--ak-muted);
564
+ font-size: 0.95em;
565
+ }
566
+
567
+ .ak-markdown-body ul,
568
+ .ak-markdown-body ol {
569
+ display: grid;
570
+ gap: 4px;
571
+ margin: 2px 0 0;
572
+ padding-left: 20px;
573
+ }
574
+
575
+ .ak-markdown-body ul {
576
+ list-style: disc outside;
577
+ }
578
+
579
+ .ak-markdown-body ol {
580
+ list-style: decimal outside;
581
+ }
582
+
583
+ .ak-markdown-body li {
584
+ margin: 4px 0;
585
+ padding-left: 2px;
586
+ }
587
+
588
+ .ak-markdown-body blockquote {
589
+ border-left: 3px solid var(--ak-border);
590
+ color: var(--ak-muted);
591
+ padding-left: 12px;
592
+ }
593
+
594
+ .ak-code-block {
595
+ overflow: hidden;
596
+ margin: 0;
597
+ border: 1px solid var(--ak-border);
598
+ border-radius: 8px;
599
+ background: var(--ak-code-bg);
600
+ color: var(--ak-code-text);
601
+ }
602
+
603
+ .ak-code-header {
604
+ display: flex;
605
+ align-items: center;
606
+ justify-content: space-between;
607
+ gap: 12px;
608
+ border-bottom: 1px solid var(--ak-border);
609
+ background: var(--ak-surface-subtle);
610
+ color: var(--ak-muted);
611
+ font-size: 12px;
612
+ font-weight: 700;
613
+ padding: 8px 12px;
614
+ }
615
+
616
+ .ak-code-filename,
617
+ .ak-code-language {
618
+ min-width: 0;
619
+ }
620
+
621
+ .ak-code-language {
622
+ flex: 0 0 auto;
623
+ text-transform: lowercase;
624
+ }
625
+
626
+ .ak-code-pre {
627
+ overflow: auto;
628
+ margin: 0;
629
+ padding: 10px 0;
630
+ font-family:
631
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
632
+ font-size: 13px;
633
+ line-height: 1.55;
634
+ }
635
+
636
+ .ak-code-pre code {
637
+ display: block;
638
+ min-width: max-content;
639
+ }
640
+
641
+ .ak-code-line,
642
+ .ak-diff-line {
643
+ min-height: 1.55em;
644
+ padding: 0 12px;
645
+ white-space: pre;
646
+ }
647
+
648
+ .ak-code-line {
649
+ display: block;
650
+ }
651
+
652
+ .ak-code-line-numbered {
653
+ display: grid;
654
+ grid-template-columns: minmax(3.5ch, auto) 1fr;
655
+ gap: 12px;
656
+ }
657
+
658
+ .ak-code-line-highlighted {
659
+ background: var(--ak-code-highlight-bg);
660
+ }
661
+
662
+ .ak-code-line-number,
663
+ .ak-diff-marker,
664
+ .ak-diff-line-number {
665
+ color: var(--ak-muted);
666
+ text-align: right;
667
+ user-select: none;
668
+ }
669
+
670
+ .ak-code-line-content,
671
+ .ak-diff-line-content {
672
+ min-width: 0;
673
+ }
674
+
675
+ .ak-diff-line {
676
+ display: grid;
677
+ grid-template-columns: minmax(3.5ch, auto) 2ch 1fr;
678
+ gap: 10px;
679
+ }
680
+
681
+ .ak-diff-line-add {
682
+ background: var(--ak-code-add-bg);
683
+ }
684
+
685
+ .ak-diff-line-add .ak-diff-marker {
686
+ color: var(--ak-good);
687
+ }
688
+
689
+ .ak-diff-line-remove {
690
+ background: var(--ak-code-remove-bg);
691
+ }
692
+
693
+ .ak-diff-line-remove .ak-diff-marker {
694
+ color: var(--ak-risk);
695
+ }
696
+
697
+ .ak-severity-badge {
698
+ display: inline-flex;
699
+ align-items: center;
700
+ width: fit-content;
701
+ border: 1px solid transparent;
702
+ border-radius: 999px;
703
+ font-size: 12px;
704
+ font-weight: 700;
705
+ line-height: 1;
706
+ padding: 4px 8px;
707
+ }
708
+
709
+ .ak-severity-badge-info {
710
+ background: var(--ak-primary-subtle);
711
+ color: var(--ak-primary-dark);
712
+ }
713
+
714
+ .ak-severity-badge-low {
715
+ background: var(--ak-good-subtle);
716
+ color: var(--ak-good);
717
+ }
718
+
719
+ .ak-severity-badge-medium {
720
+ background: var(--ak-warn-subtle);
721
+ color: var(--ak-warn);
722
+ }
723
+
724
+ .ak-severity-badge-high {
725
+ background: var(--ak-risk-subtle);
726
+ color: var(--ak-risk);
727
+ }
728
+
729
+ .ak-severity-badge-critical {
730
+ background: var(--ak-risk);
731
+ color: var(--ak-primary-foreground);
732
+ }
733
+
734
+ .ak-callout {
735
+ display: grid;
736
+ gap: 8px;
737
+ border: 1px solid var(--ak-border);
738
+ border-left-width: 4px;
739
+ border-radius: 8px;
740
+ background: var(--ak-surface);
741
+ padding: 14px 16px;
742
+ box-shadow: var(--ak-shadow);
743
+ }
744
+
745
+ .ak-callout-info {
746
+ border-left-color: var(--ak-primary);
747
+ }
748
+
749
+ .ak-callout-success {
750
+ border-left-color: var(--ak-good);
751
+ background: var(--ak-good-subtle);
752
+ }
753
+
754
+ .ak-callout-warning {
755
+ border-left-color: var(--ak-warn);
756
+ background: var(--ak-warn-subtle);
757
+ }
758
+
759
+ .ak-callout-danger {
760
+ border-left-color: var(--ak-risk);
761
+ background: var(--ak-risk-subtle);
762
+ }
763
+
764
+ .ak-comment-target-block {
765
+ position: relative;
766
+ display: grid;
767
+ gap: 10px;
768
+ min-width: 0;
769
+ border-radius: 8px;
770
+ }
771
+
772
+ .ak-comment-target-card {
773
+ height: 100%;
774
+ }
775
+
776
+ .ak-comment-target-card > .ak-comment-target-content,
777
+ .ak-comment-target-card > .ak-comment-target-content > .ak-card {
778
+ height: 100%;
779
+ }
780
+
781
+ .ak-comment-target-content {
782
+ min-width: 0;
783
+ }
784
+
785
+ .ak-comment-target-block:hover > .ak-comment-target-content,
786
+ .ak-comment-target-block:focus-within > .ak-comment-target-content,
787
+ .ak-comment-target-has-comments > .ak-comment-target-content,
788
+ .ak-comment-target-selected > .ak-comment-target-content {
789
+ border-radius: 8px;
790
+ box-shadow:
791
+ 0 0 0 2px var(--ak-comment-accent),
792
+ 0 0 0 6px var(--ak-comment-accent-subtle);
793
+ }
794
+
795
+ .ak-comment-target-block:has(.ak-comment-target-block:hover):not(.ak-comment-target-selected) > .ak-comment-target-content {
796
+ box-shadow: none;
797
+ }
798
+
799
+ .ak-comment-marker-anchor,
800
+ .ak-comment-affordance-anchor {
801
+ position: absolute;
802
+ z-index: 3;
803
+ top: 8px;
804
+ right: -14px;
805
+ display: inline-grid;
806
+ justify-items: end;
807
+ width: max-content;
808
+ }
809
+
810
+ .ak-comment-affordance-anchor {
811
+ opacity: 0;
812
+ pointer-events: none;
813
+ transform: translateY(-2px);
814
+ transition:
815
+ opacity 120ms ease,
816
+ transform 120ms ease;
817
+ }
818
+
819
+ .ak-comment-affordance,
820
+ .ak-comment-marker {
821
+ display: inline-flex;
822
+ align-items: center;
823
+ width: fit-content;
824
+ border: 1px solid var(--ak-border);
825
+ border-radius: 999px;
826
+ background: var(--ak-surface);
827
+ color: var(--ak-text);
828
+ cursor: pointer;
829
+ font: inherit;
830
+ font-size: 12px;
831
+ font-weight: 700;
832
+ line-height: 1;
833
+ padding: 6px 9px;
834
+ box-shadow: var(--ak-shadow);
835
+ }
836
+
837
+ .ak-comment-affordance {
838
+ background: var(--ak-surface);
839
+ }
840
+
841
+ .ak-comment-target-block:hover > .ak-comment-affordance-anchor,
842
+ .ak-comment-target-block:focus-within > .ak-comment-affordance-anchor,
843
+ .ak-comment-target-composer-open > .ak-comment-affordance-anchor {
844
+ opacity: 1;
845
+ pointer-events: auto;
846
+ transform: translateY(0);
847
+ }
848
+
849
+ .ak-comment-target-block:has(.ak-comment-target-block:hover):not(.ak-comment-target-selected) > .ak-comment-affordance-anchor {
850
+ opacity: 0;
851
+ pointer-events: none;
852
+ }
853
+
854
+ .ak-comment-target-block:has(.ak-comment-marker):hover > .ak-comment-affordance-anchor,
855
+ .ak-comment-target-block:has(.ak-comment-marker):focus-within > .ak-comment-affordance-anchor {
856
+ right: 58px;
857
+ }
858
+
859
+ .ak-comment-marker {
860
+ background: var(--ak-comment-accent);
861
+ border-color: var(--ak-comment-accent);
862
+ color: var(--ak-primary-foreground);
863
+ }
864
+
865
+ .ak-comment-target-popover,
866
+ .ak-comment-composer-popover {
867
+ display: none;
868
+ pointer-events: auto;
869
+ }
870
+
871
+ .ak-comment-target-label {
872
+ color: var(--ak-muted);
873
+ font-size: 12px;
874
+ font-weight: 700;
875
+ }
876
+
877
+ .ak-comment-panel {
878
+ position: absolute;
879
+ z-index: 2;
880
+ top: var(--ak-comment-panel-top, 0px);
881
+ left: 0;
882
+ display: grid;
883
+ gap: 10px;
884
+ width: 100%;
885
+ border: 1px solid var(--ak-border);
886
+ border-radius: 8px;
887
+ background: var(--ak-surface);
888
+ padding: 12px;
889
+ box-shadow: var(--ak-shadow);
890
+ }
891
+
892
+ .ak-comment-panel-active {
893
+ border-color: var(--ak-comment-accent);
894
+ }
895
+
896
+ .ak-unplaced-review-dock {
897
+ position: fixed;
898
+ z-index: 22;
899
+ right: 24px;
900
+ bottom: 78px;
901
+ display: grid;
902
+ justify-items: end;
903
+ gap: 10px;
904
+ }
905
+
906
+ .ak-unplaced-review-trigger {
907
+ border: 1px solid var(--ak-warn);
908
+ border-radius: 999px;
909
+ background: var(--ak-warn);
910
+ color: var(--ak-primary-foreground);
911
+ cursor: pointer;
912
+ font: inherit;
913
+ font-size: 12px;
914
+ font-weight: 800;
915
+ padding: 8px 12px;
916
+ box-shadow: 0 10px 30px rgb(0 0 0 / 18%);
917
+ }
918
+
919
+ .ak-unplaced-review-sheet {
920
+ position: fixed;
921
+ top: 0;
922
+ right: 0;
923
+ bottom: 0;
924
+ display: grid;
925
+ grid-template-rows: auto minmax(0, 1fr);
926
+ gap: 16px;
927
+ width: min(480px, calc(100vw - 32px));
928
+ border-left: 1px solid var(--ak-border);
929
+ background: var(--ak-surface);
930
+ padding: 20px;
931
+ box-shadow: -20px 0 60px rgb(0 0 0 / 18%);
932
+ }
933
+
934
+ .ak-unplaced-review-header {
935
+ align-items: start;
936
+ }
937
+
938
+ .ak-unplaced-review-list {
939
+ display: grid;
940
+ align-content: start;
941
+ align-items: start;
942
+ gap: 12px;
943
+ overflow: auto;
944
+ }
945
+
946
+ .ak-unplaced-review-card {
947
+ display: grid;
948
+ align-self: start;
949
+ width: 100%;
950
+ gap: 10px;
951
+ border: 1px solid var(--ak-border);
952
+ border-radius: 8px;
953
+ background: var(--ak-surface-subtle);
954
+ padding: 12px;
955
+ }
956
+
957
+ .ak-unplaced-review-anchor {
958
+ margin: 0;
959
+ color: var(--ak-muted);
960
+ font-size: 12px;
961
+ line-height: 1.4;
962
+ overflow-wrap: anywhere;
963
+ }
964
+
965
+ .ak-comment-form {
966
+ display: grid;
967
+ gap: 8px;
968
+ }
969
+
970
+ .ak-comment-form-header {
971
+ display: flex;
972
+ align-items: center;
973
+ flex-wrap: wrap;
974
+ gap: 8px;
975
+ }
976
+
977
+ .ak-comment-close-button {
978
+ margin-left: auto;
979
+ border: 0;
980
+ background: transparent;
981
+ color: var(--ak-muted);
982
+ cursor: pointer;
983
+ font: inherit;
984
+ font-size: 12px;
985
+ font-weight: 700;
986
+ padding: 0;
987
+ }
988
+
989
+ .ak-comment-close-button:hover {
990
+ color: var(--ak-text);
991
+ }
992
+
993
+ .ak-comment-input {
994
+ min-height: 92px;
995
+ width: 100%;
996
+ resize: vertical;
997
+ border: 1px solid var(--ak-border);
998
+ border-radius: 6px;
999
+ background: var(--ak-surface);
1000
+ color: var(--ak-text);
1001
+ font: inherit;
1002
+ line-height: 1.5;
1003
+ padding: 10px;
1004
+ }
1005
+
1006
+ .ak-comment-input:focus {
1007
+ border-color: var(--ak-comment-accent);
1008
+ outline: 2px solid var(--ak-comment-accent-subtle);
1009
+ }
1010
+
1011
+ .ak-comment-form-actions {
1012
+ display: flex;
1013
+ justify-content: flex-end;
1014
+ }
1015
+
1016
+ .ak-comment-list {
1017
+ display: grid;
1018
+ gap: 8px;
1019
+ margin: 0;
1020
+ padding: 0;
1021
+ list-style: none;
1022
+ }
1023
+
1024
+ .ak-comment-item {
1025
+ position: relative;
1026
+ display: grid;
1027
+ gap: 4px;
1028
+ border: 1px solid var(--ak-border);
1029
+ border-radius: 6px;
1030
+ background: var(--ak-surface-subtle);
1031
+ padding: 10px;
1032
+ }
1033
+
1034
+ .ak-comment-item-number {
1035
+ color: var(--ak-comment-accent);
1036
+ font-size: 12px;
1037
+ font-weight: 700;
1038
+ }
1039
+
1040
+ .ak-comment-role-label {
1041
+ width: max-content;
1042
+ border: 1px solid var(--ak-border);
1043
+ border-radius: 999px;
1044
+ color: var(--ak-muted);
1045
+ font-size: 11px;
1046
+ font-weight: 700;
1047
+ line-height: 1;
1048
+ padding: 3px 7px;
1049
+ }
1050
+
1051
+ .ak-comment-item-assistant {
1052
+ background: var(--ak-surface);
1053
+ }
1054
+
1055
+ .ak-comment-item-assistant .ak-comment-role-label {
1056
+ border-color: var(--ak-comment-accent-subtle);
1057
+ color: var(--ak-comment-accent);
1058
+ }
1059
+
1060
+ .ak-comment-item p {
1061
+ margin: 0;
1062
+ line-height: 1.5;
1063
+ }
1064
+
1065
+ .ak-comment-edit-form {
1066
+ display: grid;
1067
+ gap: 8px;
1068
+ }
1069
+
1070
+ .ak-comment-edit-input {
1071
+ min-height: 72px;
1072
+ }
1073
+
1074
+ .ak-comment-item-footer {
1075
+ display: flex;
1076
+ align-items: center;
1077
+ justify-content: space-between;
1078
+ gap: 8px;
1079
+ }
1080
+
1081
+ .ak-comment-item time {
1082
+ color: var(--ak-muted);
1083
+ font-size: 12px;
1084
+ }
1085
+
1086
+ .ak-comment-edit-button {
1087
+ border: 0;
1088
+ background: transparent;
1089
+ color: var(--ak-comment-accent);
1090
+ cursor: pointer;
1091
+ font: inherit;
1092
+ font-size: 12px;
1093
+ font-weight: 700;
1094
+ padding: 0;
1095
+ }
1096
+
1097
+ .ak-comment-edit-button:hover {
1098
+ text-decoration: underline;
1099
+ }
1100
+
1101
+ .ak-annotated-code {
1102
+ display: grid;
1103
+ gap: 12px;
1104
+ }
1105
+
1106
+ .ak-annotation-list {
1107
+ display: grid;
1108
+ gap: 10px;
1109
+ }
1110
+
1111
+ .ak-annotation {
1112
+ display: grid;
1113
+ gap: 8px;
1114
+ border: 1px solid var(--ak-border);
1115
+ border-radius: 8px;
1116
+ background: var(--ak-surface);
1117
+ padding: 12px;
1118
+ }
1119
+
1120
+ .ak-annotation-header {
1121
+ display: flex;
1122
+ align-items: center;
1123
+ justify-content: space-between;
1124
+ gap: 12px;
1125
+ }
1126
+
1127
+ .ak-annotation-line {
1128
+ color: var(--ak-muted);
1129
+ font-size: 12px;
1130
+ font-weight: 700;
1131
+ }
1132
+
1133
+ .ak-card-header {
1134
+ display: flex;
1135
+ align-items: flex-start;
1136
+ justify-content: space-between;
1137
+ gap: 12px;
1138
+ }
1139
+
1140
+ .ak-badge {
1141
+ flex: 0 0 auto;
1142
+ border-radius: 999px;
1143
+ padding: 3px 8px;
1144
+ font-size: 12px;
1145
+ font-weight: 700;
1146
+ }
1147
+
1148
+ .ak-badge-high {
1149
+ background: var(--ak-good-subtle);
1150
+ color: var(--ak-good);
1151
+ }
1152
+
1153
+ .ak-badge-medium {
1154
+ background: var(--ak-warn-subtle);
1155
+ color: var(--ak-warn);
1156
+ }
1157
+
1158
+ .ak-badge-low {
1159
+ background: var(--ak-risk-subtle);
1160
+ color: var(--ak-risk);
1161
+ }
1162
+
1163
+ .ak-muted {
1164
+ color: var(--ak-muted);
1165
+ }
1166
+
1167
+ .ak-list-block {
1168
+ margin-top: 12px;
1169
+ }
1170
+
1171
+ .ak-list-block h4 {
1172
+ margin: 0;
1173
+ font-size: 13px;
1174
+ }
1175
+
1176
+ .ak-verdict,
1177
+ .ak-intent {
1178
+ color: var(--ak-primary-dark);
1179
+ font-weight: 700;
1180
+ }
1181
+
1182
+ .ak-export-panel {
1183
+ border: 1px solid var(--ak-border);
1184
+ border-radius: 8px;
1185
+ background: var(--ak-surface);
1186
+ padding: 16px;
1187
+ }
1188
+
1189
+ .ak-export-dock {
1190
+ position: fixed;
1191
+ z-index: 20;
1192
+ right: 24px;
1193
+ bottom: 24px;
1194
+ display: grid;
1195
+ justify-items: end;
1196
+ gap: 10px;
1197
+ }
1198
+
1199
+ .ak-comment-export {
1200
+ right: 112px;
1201
+ }
1202
+
1203
+ .ak-export-dock-trigger {
1204
+ border: 1px solid var(--ak-primary);
1205
+ border-radius: 999px;
1206
+ background: var(--ak-primary);
1207
+ color: var(--ak-primary-foreground);
1208
+ cursor: pointer;
1209
+ font: inherit;
1210
+ font-size: 13px;
1211
+ font-weight: 800;
1212
+ padding: 10px 14px;
1213
+ box-shadow: 0 10px 30px rgb(0 0 0 / 18%);
1214
+ }
1215
+
1216
+ .ak-export-drawer {
1217
+ display: grid;
1218
+ gap: 14px;
1219
+ width: min(720px, calc(100vw - 32px));
1220
+ max-height: min(620px, calc(100vh - 112px));
1221
+ overflow: auto;
1222
+ border: 1px solid var(--ak-border);
1223
+ border-radius: 12px 12px 8px 8px;
1224
+ background: var(--ak-surface);
1225
+ padding: 16px;
1226
+ box-shadow: 0 20px 60px rgb(0 0 0 / 22%);
1227
+ }
1228
+
1229
+ .ak-export-header {
1230
+ grid-template-columns: 1fr auto;
1231
+ align-items: center;
1232
+ gap: 16px;
1233
+ }
1234
+
1235
+ .ak-export-toolbar {
1236
+ display: flex;
1237
+ align-items: center;
1238
+ flex-wrap: wrap;
1239
+ gap: 10px;
1240
+ justify-content: space-between;
1241
+ }
1242
+
1243
+ .ak-actions {
1244
+ display: flex;
1245
+ flex-wrap: wrap;
1246
+ gap: 8px;
1247
+ justify-content: flex-end;
1248
+ }
1249
+
1250
+ .ak-format-tabs {
1251
+ min-width: 0;
1252
+ }
1253
+
1254
+ .ak-format-tabs-list {
1255
+ display: flex;
1256
+ flex-wrap: wrap;
1257
+ gap: 8px;
1258
+ }
1259
+
1260
+ .ak-format-trigger {
1261
+ border: 1px solid var(--ak-border);
1262
+ border-radius: 6px;
1263
+ background: var(--ak-surface);
1264
+ color: var(--ak-text);
1265
+ cursor: pointer;
1266
+ font: inherit;
1267
+ font-size: 13px;
1268
+ font-weight: 700;
1269
+ padding: 8px 10px;
1270
+ }
1271
+
1272
+ .ak-format-trigger:hover {
1273
+ border-color: var(--ak-primary);
1274
+ }
1275
+
1276
+ .ak-format-trigger[data-state="active"] {
1277
+ background: var(--ak-primary-subtle);
1278
+ color: var(--ak-primary-dark);
1279
+ }
1280
+
1281
+ .ak-button {
1282
+ border: 1px solid var(--ak-border);
1283
+ border-radius: 6px;
1284
+ background: var(--ak-surface);
1285
+ color: var(--ak-text);
1286
+ cursor: pointer;
1287
+ font: inherit;
1288
+ font-size: 13px;
1289
+ font-weight: 700;
1290
+ padding: 8px 10px;
1291
+ }
1292
+
1293
+ .ak-button:hover {
1294
+ border-color: var(--ak-primary);
1295
+ }
1296
+
1297
+ .ak-button:disabled {
1298
+ cursor: not-allowed;
1299
+ opacity: 0.6;
1300
+ }
1301
+
1302
+ .ak-button:disabled:hover {
1303
+ border-color: var(--ak-border);
1304
+ }
1305
+
1306
+ .ak-button-active {
1307
+ background: var(--ak-primary-subtle);
1308
+ color: var(--ak-primary-dark);
1309
+ }
1310
+
1311
+ .ak-button-primary {
1312
+ background: var(--ak-primary);
1313
+ border-color: var(--ak-primary);
1314
+ color: var(--ak-primary-foreground);
1315
+ }
1316
+
1317
+ .ak-export-output {
1318
+ overflow: auto;
1319
+ max-height: 360px;
1320
+ margin: 0;
1321
+ border-radius: 8px;
1322
+ background: var(--ak-output-bg);
1323
+ color: var(--ak-output-text);
1324
+ padding: 14px;
1325
+ font-size: 13px;
1326
+ line-height: 1.55;
1327
+ white-space: pre-wrap;
1328
+ }
1329
+
1330
+ @media (max-width: 1548px) {
1331
+ .ak-shell:has(.ak-review-layout-active) {
1332
+ width: min(var(--ak-review-content-width), calc(100% - 32px));
1333
+ }
1334
+
1335
+ .ak-review-layout {
1336
+ grid-template-columns: 1fr;
1337
+ }
1338
+
1339
+ .ak-review-rail {
1340
+ display: none;
1341
+ }
1342
+
1343
+ .ak-comment-panel {
1344
+ position: static;
1345
+ width: 100%;
1346
+ }
1347
+
1348
+ .ak-comment-target-popover,
1349
+ .ak-comment-composer-popover {
1350
+ position: absolute;
1351
+ z-index: 4;
1352
+ top: calc(100% + 8px);
1353
+ right: 0;
1354
+ display: none;
1355
+ width: min(360px, calc(100vw - 48px));
1356
+ max-height: min(420px, calc(100vh - 96px));
1357
+ overflow: auto;
1358
+ border: 1px solid var(--ak-border);
1359
+ border-radius: 8px;
1360
+ background: var(--ak-surface);
1361
+ padding: 12px;
1362
+ box-shadow: 0 14px 42px rgb(0 0 0 / 16%);
1363
+ }
1364
+
1365
+ .ak-comment-target-popover-open .ak-comment-target-popover {
1366
+ display: grid;
1367
+ gap: 10px;
1368
+ }
1369
+
1370
+ .ak-comment-target-composer-open .ak-comment-composer-popover {
1371
+ display: grid;
1372
+ gap: 10px;
1373
+ }
1374
+
1375
+ .ak-collapse-lg {
1376
+ grid-template-columns: 1fr !important;
1377
+ }
1378
+ }
1379
+
1380
+ @media (max-width: 720px) {
1381
+ .ak-shell {
1382
+ width: min(100% - 20px, 1120px);
1383
+ padding-top: 20px;
1384
+ }
1385
+
1386
+ .ak-export-dock {
1387
+ right: 10px;
1388
+ bottom: 10px;
1389
+ }
1390
+
1391
+ .ak-comment-export {
1392
+ right: 96px;
1393
+ }
1394
+
1395
+ .ak-export-drawer {
1396
+ width: calc(100vw - 20px);
1397
+ max-height: calc(100vh - 86px);
1398
+ }
1399
+
1400
+ .ak-export-header {
1401
+ grid-template-columns: 1fr;
1402
+ }
1403
+
1404
+ .ak-actions {
1405
+ justify-content: flex-start;
1406
+ }
1407
+
1408
+ .ak-collapse-md {
1409
+ grid-template-columns: 1fr !important;
1410
+ }
1411
+ }
1412
+
1413
+ @media (max-width: 540px) {
1414
+ .ak-collapse-sm {
1415
+ grid-template-columns: 1fr !important;
1416
+ }
1417
+ }