@openviking/react 0.1.1 → 0.1.2

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 (164) hide show
  1. package/README.md +18 -15
  2. package/dist/3~0.js +2113 -4
  3. package/dist/ark-message-list-view~0.js +310 -0
  4. package/dist/c7~0.js +24 -0
  5. package/dist/components/agent-connect/agent-connect-copy.d.ts +34 -0
  6. package/dist/components/agent-connect/agent-connect-design.d.ts +1781 -0
  7. package/dist/components/agent-connect/agent-connect-detail.d.ts +13 -0
  8. package/dist/components/agent-connect/agent-connect-installer.d.ts +3 -0
  9. package/dist/components/agent-connect/agent-connect-instructions-view.d.ts +14 -0
  10. package/dist/components/agent-connect/agent-connect-instructions.d.ts +145 -0
  11. package/dist/components/agent-connect/agent-connect-markdown.d.ts +3 -0
  12. package/dist/components/agent-connect/agent-connect.d.ts +3 -3
  13. package/dist/components/agent-connect/content-en.d.ts +137 -0
  14. package/dist/components/agent-connect/content-zh.d.ts +137 -0
  15. package/dist/components/agent-connect/style.css +495 -6
  16. package/dist/components/agent-connect/types.d.ts +20 -166
  17. package/dist/components/file-preview/file-preview-adapters.d.ts +33 -0
  18. package/dist/components/file-preview/file-preview-body.d.ts +24 -12
  19. package/dist/components/file-preview/file-preview-breadcrumb-menu.d.ts +16 -0
  20. package/dist/components/file-preview/file-preview-breadcrumb.d.ts +21 -0
  21. package/dist/components/file-preview/file-preview-copy-path.d.ts +12 -0
  22. package/dist/components/file-preview/file-preview-editor.d.ts +22 -0
  23. package/dist/components/file-preview/file-preview-handle-adapters.d.ts +26 -0
  24. package/dist/components/file-preview/file-preview-header.d.ts +23 -14
  25. package/dist/components/file-preview/file-preview-labels.d.ts +15 -4
  26. package/dist/components/file-preview/file-preview-lazy-viewer.d.ts +3 -0
  27. package/dist/components/file-preview/file-preview-path.d.ts +30 -0
  28. package/dist/components/file-preview/file-preview-source.d.ts +24 -0
  29. package/dist/components/file-preview/file-preview-state.d.ts +28 -0
  30. package/dist/components/file-preview/file-preview-tab-row.d.ts +16 -0
  31. package/dist/components/file-preview/file-preview-viewer.d.ts +31 -0
  32. package/dist/components/file-preview/file-preview.d.ts +8 -11
  33. package/dist/components/file-preview/style.css +3984 -128
  34. package/dist/components/file-preview/types.d.ts +250 -169
  35. package/dist/components/file-preview/use-file-preview-actions-context.d.ts +23 -0
  36. package/dist/components/file-preview/use-file-preview-actions.d.ts +19 -0
  37. package/dist/components/file-preview/use-file-preview-editing.d.ts +21 -2
  38. package/dist/components/file-preview/use-file-preview-ids.d.ts +24 -0
  39. package/dist/components/file-preview.js +1 -442
  40. package/dist/components/file-tree/file-tree-body.d.ts +8 -4
  41. package/dist/components/file-tree/file-tree-entry-row.d.ts +9 -3
  42. package/dist/components/file-tree/file-tree-icons.d.ts +12 -5
  43. package/dist/components/file-tree/file-tree-info-labels.d.ts +21 -0
  44. package/dist/components/file-tree/file-tree-info-tooltip.d.ts +43 -0
  45. package/dist/components/file-tree/file-tree-info.d.ts +29 -0
  46. package/dist/components/file-tree/file-tree-keyboard.d.ts +8 -4
  47. package/dist/components/file-tree/file-tree-row-context.d.ts +31 -9
  48. package/dist/components/file-tree/file-tree-row-shared.d.ts +11 -0
  49. package/dist/components/file-tree/file-tree-spinner.d.ts +10 -0
  50. package/dist/components/file-tree/file-tree-state-row.d.ts +7 -0
  51. package/dist/components/file-tree/file-tree-tooltip-surface.d.ts +22 -0
  52. package/dist/components/file-tree/file-tree-tooltip.d.ts +9 -3
  53. package/dist/components/file-tree/file-tree.d.ts +12 -1
  54. package/dist/components/file-tree/style.css +225 -57
  55. package/dist/components/file-tree/types.d.ts +183 -0
  56. package/dist/components/file-tree/use-file-tree-actions.d.ts +7 -0
  57. package/dist/components/file-tree.js +1 -1
  58. package/dist/components/scope-switcher/scope-panel.d.ts +9 -3
  59. package/dist/components/scope-switcher/scope-selector.d.ts +1 -1
  60. package/dist/components/scope-switcher/scope-switcher.d.ts +1 -1
  61. package/dist/components/scope-switcher/style.css +282 -76
  62. package/dist/components/scope-switcher/types.d.ts +230 -108
  63. package/dist/components/style.css +13845 -372
  64. package/dist/components/tui/command-catalog.d.ts +58 -0
  65. package/dist/components/tui/command-completion.d.ts +19 -0
  66. package/dist/components/tui/command-definitions.d.ts +10 -0
  67. package/dist/components/tui/command-input.d.ts +16 -0
  68. package/dist/components/tui/style.css +1543 -5
  69. package/dist/components/tui/tui-assist.d.ts +15 -0
  70. package/dist/components/tui/tui-code-block.d.ts +8 -0
  71. package/dist/components/tui/tui-command-help.d.ts +9 -0
  72. package/dist/components/tui/tui-command-text.d.ts +6 -0
  73. package/dist/components/tui/tui-composer.d.ts +24 -0
  74. package/dist/components/tui/tui-copy-button.d.ts +9 -0
  75. package/dist/components/tui/tui-input-mirror.d.ts +14 -0
  76. package/dist/components/tui/tui-labels-zh.d.ts +2 -0
  77. package/dist/components/tui/tui-labels.d.ts +5 -0
  78. package/dist/components/tui/tui-markdown-renderers.d.ts +10 -0
  79. package/dist/components/tui/tui-markdown.d.ts +6 -0
  80. package/dist/components/tui/tui-param-hint.d.ts +7 -0
  81. package/dist/components/tui/tui-record-time.d.ts +11 -0
  82. package/dist/components/tui/tui-record.d.ts +13 -0
  83. package/dist/components/tui/tui-resource-preview.d.ts +10 -0
  84. package/dist/components/tui/tui-resource-tree.d.ts +10 -0
  85. package/dist/components/tui/tui-result-header.d.ts +7 -0
  86. package/dist/components/tui/tui-result-text.d.ts +5 -0
  87. package/dist/components/tui/tui-search-list.d.ts +8 -0
  88. package/dist/components/tui/tui-skeleton.d.ts +6 -0
  89. package/dist/components/tui/tui-status-card.d.ts +7 -0
  90. package/dist/components/tui/tui-text.d.ts +10 -0
  91. package/dist/components/tui/tui-uri-text.d.ts +19 -0
  92. package/dist/components/tui/tui-write-result.d.ts +7 -0
  93. package/dist/components/tui/tui.d.ts +10 -2
  94. package/dist/components/tui/types.d.ts +57 -15
  95. package/dist/components/tui/use-tui-assist-position.d.ts +3 -0
  96. package/dist/components/tui/use-tui-completion.d.ts +14 -0
  97. package/dist/components/tui/use-tui-composer-keyboard.d.ts +25 -0
  98. package/dist/components/viking-bot/ark-adapter.d.ts +45 -0
  99. package/dist/components/viking-bot/ark-message-body.d.ts +16 -0
  100. package/dist/components/viking-bot/ark-message-list-view.d.ts +7 -0
  101. package/dist/components/viking-bot/ark-message-row.d.ts +19 -0
  102. package/dist/components/viking-bot/index.d.ts +10 -0
  103. package/dist/components/viking-bot/interaction/ask-human-fields.d.ts +10 -0
  104. package/dist/components/viking-bot/interaction/index.d.ts +4 -0
  105. package/dist/components/viking-bot/interaction/labels.d.ts +7 -0
  106. package/dist/components/viking-bot/interaction/lazy-interaction.d.ts +3 -0
  107. package/dist/components/viking-bot/interaction/schedule-input.d.ts +13 -0
  108. package/dist/components/viking-bot/interaction/style.css +189 -0
  109. package/dist/components/viking-bot/interaction/types.d.ts +188 -0
  110. package/dist/components/viking-bot/interaction/viking-bot-interaction.d.ts +9 -0
  111. package/dist/components/viking-bot/interaction.js +2 -0
  112. package/dist/components/viking-bot/labels.d.ts +2 -0
  113. package/dist/components/viking-bot/lazy-composer.d.ts +3 -0
  114. package/dist/components/viking-bot/message-groups.d.ts +12 -0
  115. package/dist/components/viking-bot/model.d.ts +252 -0
  116. package/dist/components/viking-bot/render-part.d.ts +12 -0
  117. package/dist/components/viking-bot/style.css +7135 -0
  118. package/dist/components/viking-bot/style.js +0 -0
  119. package/dist/components/viking-bot/types.d.ts +140 -0
  120. package/dist/components/viking-bot/viking-bot-composer.d.ts +6 -0
  121. package/dist/components/viking-bot/viking-bot-message-list.d.ts +3 -0
  122. package/dist/components/viking-bot/viking-bot.d.ts +16 -0
  123. package/dist/components/viking-bot.js +4 -0
  124. package/dist/c~0.js +201 -0
  125. package/dist/file-preview-viewer~0.js +191 -0
  126. package/dist/f~0.js +149 -77
  127. package/dist/g~0.js +1207 -0
  128. package/dist/h~0.js +58 -0
  129. package/dist/icons/file-type-icon.d.ts +31 -0
  130. package/dist/icons/index.d.ts +33 -23
  131. package/dist/icons/nextjs-icon.d.ts +19 -0
  132. package/dist/icons.js +1 -25
  133. package/dist/index.d.ts +2 -2
  134. package/dist/index.js +1 -1
  135. package/dist/k~0.js +1440 -0
  136. package/dist/lk~0.js +25 -12
  137. package/dist/modules/console/style.css +83 -1
  138. package/dist/modules/file-browser/style.css +89 -6
  139. package/dist/modules/scope-cascade/style.css +282 -76
  140. package/dist/modules/style.css +533 -110
  141. package/dist/n~0.js +434 -206
  142. package/dist/shared/components/tooltip/index.d.ts +1 -0
  143. package/dist/shared/components/tooltip/tooltip.d.ts +25 -0
  144. package/dist/shared/components/tooltip/types.d.ts +42 -0
  145. package/dist/shared/components/tooltip/use-tooltip-position.d.ts +38 -0
  146. package/dist/style.css +14451 -474
  147. package/dist/u~0.js +1597 -4
  148. package/dist/viking-bot-composer~0.js +164 -0
  149. package/dist/viking-bot-interaction~0.js +284 -0
  150. package/dist/w~0.js +19 -0
  151. package/package.json +18 -10
  152. package/dist/components/file-preview/file-preview-icons.d.ts +0 -2
  153. package/dist/components/file-preview/file-preview-operations.d.ts +0 -1
  154. package/dist/components/file-tree/file-tree-dom.d.ts +0 -4
  155. package/dist/components/file-tree/file-tree-labels.d.ts +0 -5
  156. package/dist/components/file-tree/file-tree-rows.d.ts +0 -12
  157. package/dist/i~0.js +0 -21
  158. package/dist/modules/task-center/columns.d.ts +0 -129
  159. package/dist/modules/task-center/index.d.ts +0 -1
  160. package/dist/modules/task-center/style.css +0 -29
  161. package/dist/modules/task-center/task-center.d.ts +0 -4
  162. package/dist/modules/task-center/types.d.ts +0 -168
  163. package/dist/modules/task-center.js +0 -1
  164. /package/dist/{modules/task-center → components/viking-bot/interaction}/style.js +0 -0
@@ -1,6 +1,147 @@
1
+ .ov-agent-connect, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__interaction {
2
+ --ov-ui-primary-default: #5252ff;
3
+ --ov-ui-primary-hover-default: #7075ff;
4
+ --ov-ui-primary-active-default: #3833d2;
5
+ --ov-ui-primary-light-default: #f5f7ff;
6
+ --ov-ui-connect-glow-warm-default: #ff952b0a;
7
+ --ov-ui-connect-glow-pink-default: #fb4fbc0f;
8
+ --ov-ui-connect-glow-pink-soft-default: #fb4fbc0a;
9
+ --ov-ui-on-primary-default: #fff;
10
+ --ov-ui-text-1-default: #0b0b0f;
11
+ --ov-ui-text-2-default: #3f3f51;
12
+ --ov-ui-text-3-default: #6e718c;
13
+ --ov-ui-text-description-default: #0006;
14
+ --ov-ui-text-disabled-default: #a5a7bb;
15
+ --ov-ui-border-1-default: #f0f2fa;
16
+ --ov-ui-border-2-default: #e1e4f2;
17
+ --ov-ui-border-3-default: #d7daea;
18
+ --ov-ui-bg-1-default: #fff;
19
+ --ov-ui-bg-3-default: #f7f8fd;
20
+ --ov-ui-bg-4-default: #f6f7fa;
21
+ --ov-ui-bg-5-default: #f1f2f9;
22
+ --ov-ui-status-success-default: #1f9d55;
23
+ --ov-ui-shadow-default: #0f172a;
24
+ --ov-ui-focus-default: #5252ff;
25
+ --ov-ui-fill-hover-default: #f1f2f9;
26
+ --ov-ui-status-error-default: #c43838;
27
+ --ov-ui-warning-default: #b26a00;
28
+ --ov-ui-warning-light-default: #fff0b3;
29
+ --ov-ui-tooltip-bg-default: #1f2329;
30
+ --ov-ui-tooltip-text-default: #fff;
31
+ }
32
+
33
+ .dark .ov-agent-connect, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__interaction {
34
+ --ov-ui-primary-default: #5f5fff;
35
+ --ov-ui-primary-hover-default: #7075ff;
36
+ --ov-ui-primary-active-default: #4242ba;
37
+ --ov-ui-primary-light-default: #1a1632;
38
+ --ov-ui-connect-glow-warm-default: #ff952b05;
39
+ --ov-ui-connect-glow-pink-default: #fb4fbc08;
40
+ --ov-ui-connect-glow-pink-soft-default: #fb4fbc05;
41
+ --ov-ui-text-1-default: #c7ccd6;
42
+ --ov-ui-text-2-default: #9da3af;
43
+ --ov-ui-text-3-default: #737a87;
44
+ --ov-ui-text-description-default: #fff6;
45
+ --ov-ui-text-disabled-default: #42464e;
46
+ --ov-ui-border-1-default: #23252a;
47
+ --ov-ui-border-2-default: #2e3138;
48
+ --ov-ui-border-3-default: #3a3d45;
49
+ --ov-ui-bg-1-default: #131416;
50
+ --ov-ui-bg-3-default: #1b1d21;
51
+ --ov-ui-bg-4-default: #202227;
52
+ --ov-ui-bg-5-default: #23252a;
53
+ --ov-ui-focus-default: #5f5fff;
54
+ --ov-ui-fill-hover-default: #23252a;
55
+ --ov-ui-status-error-default: #ff9595;
56
+ --ov-ui-warning-default: #e0a04a;
57
+ --ov-ui-warning-light-default: #3a2f14;
58
+ --ov-ui-tooltip-bg-default: #2a2d33;
59
+ --ov-ui-tooltip-text-default: #f0f1f3;
60
+ }
61
+
62
+ .ov-agent-connect {
63
+ --ov-ui-connect-card-default: #fbfbfc;
64
+ --ov-ui-connect-tabs-default: #f7f7f9;
65
+ --ov-ui-connect-selected-default: #f3f4f7;
66
+ --ov-ui-connect-border-default: #edeef2;
67
+ --ov-ui-connect-outline-default: #e1e3ea;
68
+ --ov-ui-connect-muted-default: #787c91;
69
+ --ov-ui-connect-notice-default: #2e2984;
70
+ }
71
+
72
+ .dark .ov-agent-connect {
73
+ --ov-ui-connect-card-default: var(--ov-ui-bg-3-default);
74
+ --ov-ui-connect-tabs-default: var(--ov-ui-bg-3-default);
75
+ --ov-ui-connect-selected-default: var(--ov-ui-bg-4-default);
76
+ --ov-ui-connect-border-default: var(--ov-ui-border-1-default);
77
+ --ov-ui-connect-outline-default: var(--ov-ui-border-2-default);
78
+ --ov-ui-connect-muted-default: var(--ov-ui-text-3-default);
79
+ --ov-ui-connect-notice-default: var(--ov-ui-text-2-default);
80
+ }
81
+
82
+ .ov-tooltip {
83
+ --ov-ui-tooltip-bg: var(--ov-ui-color-tooltip-bg, var(--ov-ui-tooltip-bg-default, #1f2329));
84
+ --ov-ui-tooltip-text: var(--ov-ui-color-tooltip-text, var(--ov-ui-tooltip-text-default, #fff));
85
+ --ov-ui-tooltip-border: transparent;
86
+ --ov-ui-tooltip-radius: var(--ov-ui-radius, 6px);
87
+ --ov-ui-tooltip-offset: 6px;
88
+ z-index: 1000;
89
+ box-sizing: border-box;
90
+ border: 1px solid var(--ov-ui-tooltip-border);
91
+ border-radius: var(--ov-ui-tooltip-radius);
92
+ background: var(--ov-ui-tooltip-bg);
93
+ max-width: 320px;
94
+ color: var(--ov-ui-tooltip-text);
95
+ overflow-wrap: break-word;
96
+ padding: 6px 8px;
97
+ font-family: inherit;
98
+ font-size: 12px;
99
+ line-height: 18px;
100
+ animation: .12s ease-out ov-tooltip-enter;
101
+ position: fixed;
102
+ box-shadow: 0 4px 12px #0000001f;
103
+ }
104
+
105
+ .ov-tooltip[role="dialog"] {
106
+ --ov-ui-tooltip-bg: var(--ov-ui-color-bg-1, var(--ov-ui-bg-1-default, #fff));
107
+ --ov-ui-tooltip-text: var(--ov-ui-color-text-1, var(--ov-ui-text-1-default, #0b0b0f));
108
+ --ov-ui-tooltip-border: var(--ov-ui-color-border-2, var(--ov-ui-border-2-default, #e1e4f2));
109
+ min-width: 120px;
110
+ max-width: 360px;
111
+ padding: 4px;
112
+ box-shadow: 0 6px 16px #0000001f;
113
+ }
114
+
115
+ @keyframes ov-tooltip-enter {
116
+ from {
117
+ opacity: 0;
118
+ }
119
+
120
+ to {
121
+ opacity: 1;
122
+ }
123
+ }
124
+
125
+ @media (prefers-reduced-motion: reduce) {
126
+ .ov-tooltip {
127
+ animation: none;
128
+ }
129
+ }
130
+
1
131
  .ov-file-preview {
132
+ --ov-ui-file-preview-accent: var(--ov-ui-color-primary, var(--ov-ui-primary-default, #5252ff));
133
+ --ov-ui-file-preview-accent-hover: var(--ov-ui-color-primary-hover, var(--ov-ui-primary-hover-default, #7075ff));
134
+ --ov-ui-file-preview-border: var(--ov-ui-color-border-2, var(--ov-ui-border-2-default, #e1e4f2));
135
+ --ov-ui-file-preview-focus-ring: var(--ov-ui-color-primary, var(--ov-ui-primary-default, #5252ff));
136
+ --ov-ui-file-preview-row-hover: var(--ov-ui-color-bg-5, var(--ov-ui-bg-5-default, #f1f2f9));
137
+ --ov-ui-file-preview-surface: var(--ov-ui-color-bg-1, var(--ov-ui-bg-1-default, #fff));
138
+ --ov-ui-file-preview-text: var(--ov-ui-color-text-1, var(--ov-ui-text-1-default, #0b0b0f));
139
+ --ov-ui-file-preview-text-muted: var(--ov-ui-color-text-3, var(--ov-ui-text-3-default, #6e718c));
140
+ --ov-ui-file-preview-text-path: var(--ov-ui-color-text-3, var(--ov-ui-text-3-default, #6e718c));
2
141
  box-sizing: border-box;
142
+ width: 100%;
3
143
  min-width: 0;
144
+ height: 100%;
4
145
  min-height: 0;
5
146
  color: inherit;
6
147
  flex-direction: column;
@@ -11,274 +152,3989 @@
11
152
  }
12
153
 
13
154
  .ov-file-preview__tab-row {
14
- border-bottom: 1px solid var(--ov-ui-border, #00000014);
155
+ scrollbar-width: thin;
15
156
  flex: none;
16
- align-items: flex-end;
17
- gap: 2px;
18
157
  min-width: 0;
19
- padding: 4px 8px 0;
20
- display: flex;
21
158
  overflow-x: auto;
22
159
  }
23
160
 
161
+ .ov-file-preview__tab-track {
162
+ box-sizing: border-box;
163
+ align-items: stretch;
164
+ gap: 8px;
165
+ min-width: 100%;
166
+ height: 28px;
167
+ padding: 0 8px;
168
+ display: flex;
169
+ position: relative;
170
+ }
171
+
24
172
  .ov-file-preview__tab {
25
- border-radius: var(--ov-ui-radius, 6px) var(--ov-ui-radius, 6px) 0 0;
26
- max-width: 220px;
27
- color: var(--ov-ui-text-muted, color-mix(in srgb, currentColor 62%, transparent));
173
+ box-sizing: border-box;
174
+ max-width: 160px;
175
+ height: 28px;
176
+ color: var(--ov-ui-file-preview-text-muted);
28
177
  font: inherit;
178
+ white-space: nowrap;
29
179
  cursor: pointer;
30
180
  background: none;
31
- border: 1px solid #0000;
32
- border-bottom: none;
181
+ border: 0;
182
+ border-radius: 8px 8px 0 0;
33
183
  flex: none;
34
184
  align-items: center;
35
- gap: 6px;
36
- padding: 5px 10px;
185
+ gap: 4px;
186
+ padding: 0 12px;
187
+ font-size: 12px;
188
+ line-height: 20px;
189
+ transition: background-color .16s, color .16s;
37
190
  display: inline-flex;
191
+ position: relative;
38
192
  }
39
193
 
40
194
  .ov-file-preview__tab:hover:not(:disabled) {
41
- color: inherit;
42
- background: var(--ov-ui-row-hover, #0000000a);
195
+ background: var(--ov-ui-file-preview-row-hover);
196
+ color: var(--ov-ui-file-preview-text);
43
197
  }
44
198
 
45
- .ov-file-preview__tab[aria-selected="true"] {
46
- border-color: var(--ov-ui-border, #00000014);
47
- background: var(--ov-ui-surface, canvas);
48
- color: inherit;
199
+ .ov-file-preview__tab--active {
200
+ background: var(--ov-ui-file-preview-surface);
201
+ color: var(--ov-ui-file-preview-text);
202
+ font-weight: 500;
49
203
  }
50
204
 
51
- .ov-file-preview__tab:focus-visible {
52
- outline: 2px solid var(--ov-ui-focus-ring, #2563c5);
53
- outline-offset: -2px;
205
+ .ov-file-preview__tab-outline {
206
+ pointer-events: none;
207
+ fill: none;
208
+ width: 100%;
209
+ height: 100%;
210
+ stroke: var(--ov-ui-file-preview-border);
211
+ stroke-width: 1px;
212
+ position: absolute;
213
+ inset: 0;
214
+ overflow: visible;
54
215
  }
55
216
 
56
217
  .ov-file-preview__tab:disabled {
57
- opacity: .5;
58
218
  cursor: not-allowed;
219
+ opacity: .5;
220
+ }
221
+
222
+ .ov-file-preview__tab:focus-visible, .ov-file-preview__action:focus-visible, .ov-file-preview__button:focus-visible, .ov-file-preview__switch-item:focus-visible, .ov-file-preview__breadcrumb-link:focus-visible {
223
+ outline: 2px solid var(--ov-ui-file-preview-focus-ring);
224
+ outline-offset: 1px;
225
+ }
226
+
227
+ .ov-file-preview__tab-icon {
228
+ flex: none;
229
+ align-items: center;
230
+ display: inline-flex;
231
+ }
232
+
233
+ .ov-file-preview__tab-icon > svg {
234
+ width: 14px;
235
+ height: 14px;
236
+ display: block;
59
237
  }
60
238
 
61
239
  .ov-file-preview__tab-title {
62
240
  text-overflow: ellipsis;
63
241
  white-space: nowrap;
64
242
  min-width: 0;
243
+ color: inherit;
244
+ flex: 1;
65
245
  overflow: hidden;
66
246
  }
67
247
 
68
- .ov-file-preview__icon-slot {
69
- color: var(--ov-ui-icon, color-mix(in srgb, currentColor 62%, transparent));
70
- flex: none;
71
- align-items: center;
72
- display: inline-flex;
248
+ .ov-file-preview__panel {
249
+ flex-direction: column;
250
+ flex: auto;
251
+ min-width: 0;
252
+ min-height: 0;
253
+ display: flex;
73
254
  }
74
255
 
75
- .ov-file-preview__icon {
76
- display: block;
256
+ .ov-file-preview__panel--content {
257
+ overflow: hidden;
77
258
  }
78
259
 
79
260
  .ov-file-preview__header {
80
- border-bottom: 1px solid var(--ov-ui-border, #00000014);
81
- flex-wrap: wrap;
261
+ border-bottom: 1px solid var(--ov-ui-file-preview-border);
82
262
  flex: none;
83
263
  justify-content: space-between;
84
264
  align-items: center;
85
- gap: 12px;
86
- min-width: 0;
87
- padding: 8px 12px;
265
+ gap: 8px;
266
+ padding: 6px 10px;
88
267
  display: flex;
89
268
  }
90
269
 
91
- .ov-file-preview__path-row {
92
- flex: auto;
270
+ .ov-file-preview__path-row, .ov-file-preview__header-actions {
93
271
  align-items: center;
94
272
  gap: 6px;
95
273
  min-width: 0;
96
274
  display: flex;
97
275
  }
98
276
 
277
+ .ov-file-preview__path-row {
278
+ flex: auto;
279
+ justify-content: flex-start;
280
+ }
281
+
282
+ .ov-file-preview__header-actions {
283
+ flex: none;
284
+ }
285
+
99
286
  .ov-file-preview__breadcrumb {
100
- border-radius: var(--ov-ui-radius, 6px);
101
287
  min-width: 0;
102
- color: var(--ov-ui-accent, #2563c5);
288
+ max-width: 100%;
289
+ font-family: var(--ov-ui-font-mono, ui-monospace, monospace);
290
+ white-space: nowrap;
291
+ flex: 0 auto;
292
+ align-items: center;
293
+ gap: 0;
294
+ font-size: 14px;
295
+ line-height: 22px;
296
+ display: flex;
297
+ }
298
+
299
+ .ov-file-preview__breadcrumb-measure {
300
+ visibility: hidden;
301
+ pointer-events: none;
302
+ white-space: nowrap;
303
+ position: absolute;
304
+ }
305
+
306
+ .ov-file-preview__breadcrumb-part {
307
+ flex: none;
308
+ align-items: center;
309
+ display: inline-flex;
310
+ }
311
+
312
+ .ov-file-preview__breadcrumb-link {
313
+ max-width: 172px;
314
+ color: var(--ov-ui-file-preview-text-path);
103
315
  font: inherit;
104
- text-align: left;
105
316
  text-overflow: ellipsis;
106
317
  white-space: nowrap;
107
318
  cursor: pointer;
108
319
  background: none;
109
- border: none;
110
- padding: 2px 4px;
320
+ border: 0;
321
+ padding: 0;
111
322
  overflow: hidden;
112
323
  }
113
324
 
114
- .ov-file-preview__breadcrumb:disabled {
115
- color: inherit;
116
- cursor: default;
325
+ .ov-file-preview__breadcrumb--overflowing .ov-file-preview__breadcrumb-link {
326
+ max-width: 160px;
117
327
  }
118
328
 
119
- .ov-file-preview__breadcrumb:not(:disabled):hover {
120
- background: var(--ov-ui-row-hover, #0000000a);
329
+ .ov-file-preview__breadcrumb-link:hover:not(:disabled) {
330
+ color: var(--ov-ui-file-preview-accent-hover);
121
331
  }
122
332
 
123
- .ov-file-preview__title-extra {
333
+ .ov-file-preview__breadcrumb-link:disabled {
334
+ cursor: default;
335
+ }
336
+
337
+ .ov-file-preview__breadcrumb-separator {
338
+ width: 12px;
339
+ color: var(--ov-ui-file-preview-text-path);
340
+ text-align: center;
124
341
  flex: none;
125
- align-items: center;
126
- gap: 6px;
127
- display: inline-flex;
128
342
  }
129
343
 
130
- .ov-file-preview__header-actions {
131
- flex-wrap: wrap;
132
- flex: 0 auto;
133
- align-items: center;
134
- gap: 6px;
344
+ .ov-file-preview__breadcrumb-current {
135
345
  min-width: 0;
136
- display: flex;
346
+ max-width: 100%;
347
+ color: var(--ov-ui-file-preview-text);
348
+ text-overflow: ellipsis;
349
+ white-space: nowrap;
350
+ flex: 0 auto;
351
+ font-weight: 500;
352
+ overflow: hidden;
137
353
  }
138
354
 
139
- .ov-file-preview__action {
140
- border: 1px solid var(--ov-ui-border, #00000014);
141
- border-radius: var(--ov-ui-radius, 6px);
142
- width: 26px;
143
- height: 26px;
144
- color: inherit;
355
+ .ov-file-preview__breadcrumb-more {
356
+ width: 24px;
357
+ height: 22px;
358
+ color: var(--ov-ui-file-preview-text-path);
359
+ font: inherit;
145
360
  cursor: pointer;
146
361
  background: none;
362
+ border: 0;
363
+ flex: none;
147
364
  justify-content: center;
148
365
  align-items: center;
149
366
  padding: 0;
367
+ transition: color .16s;
150
368
  display: inline-flex;
151
369
  }
152
370
 
153
- .ov-file-preview__action:hover:not(:disabled) {
154
- background: var(--ov-ui-row-hover, #0000000a);
371
+ .ov-file-preview__breadcrumb-more:hover {
372
+ color: var(--ov-ui-file-preview-accent-hover);
155
373
  }
156
374
 
157
- .ov-file-preview__action:disabled {
158
- opacity: .4;
159
- cursor: not-allowed;
375
+ .ov-tooltip.ov-file-preview__breadcrumb-menu-surface[role="dialog"] {
376
+ min-width: 0;
160
377
  }
161
378
 
162
- .ov-file-preview__action-icon {
163
- display: block;
379
+ .ov-file-preview__breadcrumb-menu {
380
+ max-height: 320px;
381
+ margin: 0;
382
+ padding: 0;
383
+ list-style: none;
384
+ overflow-y: auto;
164
385
  }
165
386
 
166
- .ov-file-preview__button, .ov-file-preview__button--primary {
167
- border-radius: var(--ov-ui-radius, 6px);
387
+ .ov-file-preview__breadcrumb-menu button {
388
+ box-sizing: border-box;
389
+ border-radius: calc(var(--ov-ui-radius, 6px) - 2px);
390
+ max-width: 320px;
391
+ color: inherit;
168
392
  font: inherit;
393
+ text-align: left;
394
+ text-overflow: ellipsis;
395
+ white-space: nowrap;
169
396
  cursor: pointer;
170
- padding: 3px 10px;
397
+ background: none;
398
+ border: 0;
399
+ padding: 4px 6px;
400
+ display: block;
401
+ overflow: hidden;
171
402
  }
172
403
 
173
- .ov-file-preview__button {
174
- border: 1px solid var(--ov-ui-border, #00000014);
175
- color: inherit;
404
+ .ov-file-preview__breadcrumb-menu button:hover:not(:disabled) {
405
+ background: var(--ov-ui-color-bg-5, var(--ov-ui-bg-5-default, #f1f2f9));
406
+ }
407
+
408
+ .ov-file-preview__action {
409
+ box-sizing: border-box;
410
+ width: 28px;
411
+ height: 28px;
412
+ color: var(--ov-ui-file-preview-text-path);
413
+ font: inherit;
414
+ cursor: pointer;
176
415
  background: none;
416
+ border: 1px solid #0000;
417
+ border-radius: 6px;
418
+ flex: none;
419
+ justify-content: center;
420
+ align-items: center;
421
+ padding: 0;
422
+ transition: background-color .16s, border-color .16s;
423
+ display: inline-flex;
177
424
  }
178
425
 
179
- .ov-file-preview__button:hover {
180
- background: var(--ov-ui-row-hover, #0000000a);
426
+ .ov-file-preview__action:hover:not(:disabled) {
427
+ background: var(--ov-ui-file-preview-row-hover);
428
+ color: var(--ov-ui-file-preview-text);
181
429
  }
182
430
 
183
- .ov-file-preview__button--primary {
184
- background: var(--ov-ui-accent, #2563c5);
185
- color: #fff;
186
- border: 1px solid #0000;
431
+ .ov-file-preview__action--outlined {
432
+ border-color: var(--ov-ui-file-preview-border);
433
+ background: var(--ov-ui-file-preview-row-hover);
434
+ color: var(--ov-ui-file-preview-text);
435
+ }
436
+
437
+ .ov-file-preview__action--outlined:hover:not(:disabled) {
438
+ border-color: var(--ov-ui-file-preview-text-muted);
439
+ }
440
+
441
+ .ov-file-preview__action:disabled {
442
+ cursor: not-allowed;
443
+ opacity: .4;
187
444
  }
188
445
 
189
446
  .ov-file-preview__switch {
190
- border-radius: var(--ov-ui-radius, 6px);
191
- background: var(--ov-ui-row-hover, #0000000a);
447
+ box-sizing: border-box;
448
+ background: var(--ov-ui-file-preview-row-hover);
449
+ border-radius: 8px;
450
+ flex: none;
451
+ grid-auto-columns: 1fr;
452
+ grid-auto-flow: column;
453
+ gap: 0;
454
+ height: 28px;
192
455
  padding: 2px;
193
- display: inline-flex;
456
+ display: inline-grid;
194
457
  }
195
458
 
196
459
  .ov-file-preview__switch-item {
197
- border-radius: calc(var(--ov-ui-radius, 6px) - 2px);
198
- color: var(--ov-ui-text-muted, color-mix(in srgb, currentColor 62%, transparent));
460
+ box-sizing: border-box;
461
+ min-width: 50px;
462
+ height: 24px;
463
+ color: var(--ov-ui-file-preview-text-muted);
199
464
  font: inherit;
465
+ white-space: nowrap;
200
466
  cursor: pointer;
201
467
  background: none;
202
- border: none;
203
- padding: 2px 10px;
468
+ border: 0;
469
+ border-radius: 6px;
470
+ justify-content: center;
471
+ align-items: center;
472
+ margin: 0;
473
+ padding: 0 12px;
474
+ font-size: 13px;
475
+ line-height: 22px;
476
+ transition: background-color .16s, color .16s;
477
+ display: inline-flex;
478
+ }
479
+
480
+ .ov-file-preview__switch-item:hover:not([data-active]):not(:disabled) {
481
+ color: var(--ov-ui-file-preview-text);
204
482
  }
205
483
 
206
484
  .ov-file-preview__switch-item[data-active] {
207
- background: var(--ov-ui-surface, canvas);
485
+ background: var(--ov-ui-file-preview-surface);
486
+ box-shadow: 0 0 0 1px var(--ov-ui-file-preview-border);
487
+ color: var(--ov-ui-file-preview-text);
488
+ font-weight: 500;
489
+ }
490
+
491
+ .ov-file-preview__button {
492
+ border: 1px solid var(--ov-ui-file-preview-border);
493
+ border-radius: var(--ov-ui-radius, 6px);
208
494
  color: inherit;
495
+ font: inherit;
496
+ cursor: pointer;
497
+ background: none;
498
+ flex: none;
499
+ padding: 2px 10px;
209
500
  }
210
501
 
211
- .ov-file-preview__switch-item:focus-visible {
212
- outline: 2px solid var(--ov-ui-focus-ring, #2563c5);
213
- outline-offset: -2px;
502
+ .ov-file-preview__button:hover:not(:disabled) {
503
+ background: var(--ov-ui-file-preview-row-hover);
214
504
  }
215
505
 
216
- .ov-file-preview__extra-actions {
217
- align-items: center;
218
- gap: 6px;
219
- display: inline-flex;
506
+ .ov-file-preview__button--primary {
507
+ border-color: var(--ov-ui-file-preview-accent);
508
+ background: var(--ov-ui-file-preview-accent);
509
+ color: #fff;
510
+ }
511
+
512
+ .ov-file-preview__button:disabled {
513
+ cursor: not-allowed;
514
+ opacity: .5;
220
515
  }
221
516
 
222
517
  .ov-file-preview__body {
223
518
  flex: auto;
519
+ min-width: 0;
224
520
  min-height: 0;
225
- overflow: auto;
521
+ display: flex;
522
+ overflow: hidden;
226
523
  }
227
524
 
228
- .ov-file-preview__text-body {
229
- padding: 12px;
525
+ .ov-file-preview__viewer {
526
+ flex: auto;
527
+ min-width: 0;
528
+ min-height: 0;
230
529
  }
231
530
 
232
- .ov-file-preview__pre {
233
- font-family: var(--ov-ui-font-mono, ui-monospace, monospace);
234
- white-space: pre-wrap;
531
+ .ov-file-preview__state {
532
+ min-width: 0;
533
+ min-height: 120px;
534
+ color: var(--ov-ui-file-preview-text-muted);
535
+ text-align: center;
536
+ flex-direction: column;
537
+ flex: auto;
538
+ justify-content: center;
539
+ align-items: center;
540
+ gap: 8px;
541
+ padding: 24px;
542
+ display: flex;
543
+ }
544
+
545
+ .ov-file-preview__state-title {
546
+ margin: 0;
547
+ }
548
+
549
+ .ov-file-preview__state-description {
235
550
  word-break: break-word;
236
551
  margin: 0;
237
- font-size: 12px;
238
- line-height: 1.6;
239
552
  }
240
553
 
241
554
  .ov-file-preview__editor {
242
555
  flex-direction: column;
243
- height: 100%;
244
- min-height: 240px;
556
+ flex: auto;
557
+ gap: 6px;
558
+ min-width: 0;
559
+ min-height: 0;
560
+ padding: 8px;
245
561
  display: flex;
246
- }
247
-
248
- .ov-file-preview__save-error {
249
- padding: 8px 12px;
562
+ overflow: auto;
250
563
  }
251
564
 
252
565
  .ov-file-preview__textarea {
253
- box-sizing: border-box;
254
- width: 100%;
255
- min-height: 0;
566
+ border: 1px solid var(--ov-ui-file-preview-border);
567
+ border-radius: var(--ov-ui-radius, 6px);
568
+ min-width: 0;
569
+ min-height: 120px;
256
570
  color: inherit;
257
571
  font-family: var(--ov-ui-font-mono, ui-monospace, monospace);
258
572
  resize: none;
259
573
  background: none;
260
- border: none;
261
574
  flex: auto;
262
- padding: 12px;
263
- font-size: 12px;
264
- line-height: 1.6;
575
+ padding: 8px;
576
+ font-size: 13px;
577
+ line-height: 20px;
265
578
  }
266
579
 
267
- .ov-file-preview__textarea:focus-visible {
268
- outline: 2px solid var(--ov-ui-focus-ring, #2563c5);
269
- outline-offset: -2px;
580
+ .ov-file-preview__notice {
581
+ color: var(--ov-ui-file-preview-text-muted);
582
+ flex: none;
583
+ margin: 0;
584
+ padding: 4px 10px;
585
+ font-size: 12px;
270
586
  }
271
587
 
272
- .ov-file-preview__state {
273
- justify-content: center;
274
- align-items: center;
275
- min-height: 120px;
276
- padding: 24px;
277
- display: flex;
588
+ .ov-file-preview__footer {
589
+ border-top: 1px solid var(--ov-ui-file-preview-border);
590
+ color: var(--ov-ui-file-preview-text-muted);
591
+ flex: none;
592
+ padding: 4px 10px;
593
+ font-size: 12px;
278
594
  }
279
595
 
280
- .ov-file-preview__muted {
281
- color: var(--ov-ui-text-muted, color-mix(in srgb, currentColor 62%, transparent));
596
+ /*!
597
+ * Copyright (c) 2026 Bytedance, Inc. and its affiliates.
598
+ * SPDX-License-Identifier: MIT
599
+ */
600
+ /*!
601
+ * Copyright (c) 2026 Bytedance, Inc. and its affiliates.
602
+ * SPDX-License-Identifier: MIT
603
+ */
604
+ .ark-agentic-file-viewer-cad {
605
+ min-width: 0;
606
+ min-height: 0;
607
+ color: var(--color-text-1);
608
+ flex-direction: column;
609
+ flex: 1;
610
+ display: flex;
611
+ overflow: hidden;
612
+ }
613
+
614
+ .ark-agentic-file-viewer-cad__notice {
615
+ min-height: 0;
616
+ max-height: 30%;
617
+ color: var(--agentic-file-viewer-muted, var(--color-text-3));
618
+ background: var(--agentic-file-viewer-control, var(--color-bg-2));
619
+ border-top: 1px solid var(--agentic-file-viewer-border, var(--color-border-2));
620
+ flex-shrink: 1;
621
+ font-size: 11px;
622
+ overflow: auto;
623
+ }
624
+
625
+ .ark-agentic-file-viewer-cad__notice-summary {
626
+ background: var(--agentic-file-viewer-control, var(--color-bg-2));
627
+ cursor: pointer;
628
+ align-items: center;
629
+ gap: 12px;
630
+ padding: 4px 12px;
631
+ list-style: none;
632
+ display: flex;
633
+ position: sticky;
634
+ top: 0;
635
+ }
636
+
637
+ .ark-agentic-file-viewer-cad__notice-summary::-webkit-details-marker {
638
+ display: none;
639
+ }
640
+
641
+ .ark-agentic-file-viewer-cad__notice-summary:focus-visible {
642
+ outline: 2px solid rgb(var(--primary-6));
643
+ outline-offset: -2px;
644
+ }
645
+
646
+ .ark-agentic-file-viewer-cad__notice-caption {
647
+ text-overflow: ellipsis;
648
+ white-space: nowrap;
649
+ flex: 1;
650
+ min-width: 0;
651
+ overflow: hidden;
652
+ }
653
+
654
+ .ark-agentic-file-viewer-cad__notice-toggle {
655
+ flex: none;
656
+ align-items: center;
657
+ gap: 8px;
658
+ display: inline-flex;
659
+ }
660
+
661
+ .ark-agentic-file-viewer-cad__notice-toggle:after {
662
+ content: "";
663
+ border-bottom: 1px solid;
664
+ border-right: 1px solid;
665
+ width: 4px;
666
+ height: 4px;
667
+ transform: rotate(45deg);
668
+ }
669
+
670
+ details[open] .ark-agentic-file-viewer-cad__notice-toggle:after {
671
+ transform: rotate(225deg);
672
+ }
673
+
674
+ .ark-agentic-file-viewer-cad__notice-details {
675
+ overflow-wrap: anywhere;
676
+ padding: 0 12px 8px;
677
+ font-size: 12px;
678
+ }
679
+
680
+ .ark-agentic-file-viewer-cad__notice-details p {
681
+ margin: 4px 0;
682
+ }
683
+
684
+ .ark-agentic-file-viewer-cad__notice-details ul {
685
+ margin: 4px 0;
686
+ padding-inline-start: 16px;
687
+ }
688
+
689
+ .ark-agentic-file-viewer-cad__stage {
690
+ background: var(--agentic-file-viewer-surface);
691
+ flex: 1;
692
+ justify-content: center;
693
+ align-items: center;
694
+ min-width: 0;
695
+ min-height: min(96px, 40%);
696
+ display: flex;
697
+ position: relative;
698
+ overflow: hidden;
699
+ }
700
+
701
+ .ark-agentic-file-viewer-cad__stage > canvas:not(.ark-agentic-file-viewer-cad__thumbnail) {
702
+ touch-action: none;
703
+ outline-offset: -2px;
704
+ width: 100%;
705
+ height: 100%;
706
+ display: block;
707
+ }
708
+
709
+ .ark-agentic-file-viewer-cad__thumbnail {
710
+ object-fit: contain;
711
+ max-width: 100%;
712
+ max-height: 100%;
713
+ display: block;
714
+ }
715
+
716
+ .ark-agentic-file-viewer-cad__update {
717
+ inset-inline: 0;
718
+ border-top: 1px solid var(--agentic-file-viewer-border);
719
+ background: var(--agentic-file-viewer-surface);
720
+ max-height: 70%;
721
+ color: var(--color-text-2);
722
+ overflow-wrap: anywhere;
723
+ flex-direction: column;
724
+ gap: 8px;
725
+ padding: 8px 12px;
726
+ font-size: 12px;
727
+ display: flex;
728
+ position: absolute;
729
+ bottom: 0;
730
+ overflow: auto;
731
+ }
732
+
733
+ .ark-agentic-file-viewer-cad__update-actions {
734
+ flex-wrap: wrap;
735
+ gap: 8px;
736
+ display: flex;
737
+ }
738
+
739
+ .ark-agentic-file-viewer-cad__layers {
740
+ border-bottom: 1px solid var(--color-border-2);
741
+ min-height: 0;
742
+ max-height: 40%;
743
+ color: var(--color-text-2);
744
+ flex-shrink: 1;
745
+ padding: 4px 12px;
746
+ font-size: 12px;
747
+ overflow: auto;
748
+ }
749
+
750
+ .ark-agentic-file-viewer-cad__layers summary {
751
+ cursor: pointer;
752
+ }
753
+
754
+ .ark-agentic-file-viewer-cad__layer-list {
755
+ flex-wrap: wrap;
756
+ gap: 8px;
757
+ max-height: 96px;
758
+ padding-block: 8px;
759
+ display: flex;
760
+ overflow: auto;
761
+ }
762
+
763
+ .ark-agentic-file-viewer-cad__layer-count {
764
+ color: var(--agentic-file-viewer-muted);
765
+ margin-inline-start: 8px;
766
+ }
767
+
768
+ .ark-agentic-file-viewer-cad__layer-hint {
769
+ color: var(--agentic-file-viewer-muted);
770
+ margin: 4px 0 0;
771
+ }
772
+
773
+ .ark-agentic-file-viewer-cad__layer-option {
774
+ border: 1px solid var(--agentic-file-viewer-border-strong);
775
+ background: var(--agentic-file-viewer-control);
776
+ max-width: 100%;
777
+ min-height: 28px;
778
+ font-size: inherit;
779
+ border-radius: 4px;
780
+ align-items: center;
781
+ margin: 0;
782
+ padding: 4px 8px;
783
+ line-height: 1.5;
784
+ display: inline-flex;
785
+ }
786
+
787
+ .ark-agentic-file-viewer-cad__layer-option > span:first-of-type {
788
+ flex-shrink: 0;
789
+ }
790
+
791
+ .ark-agentic-file-viewer-cad__layer-option > span:last-child {
792
+ min-width: 0;
793
+ }
794
+
795
+ .ark-agentic-file-viewer-cad__layer-option[data-visible="true"] {
796
+ border-color: var(--agentic-file-viewer-accent);
797
+ background: var(--agentic-file-viewer-accent-soft);
798
+ }
799
+
800
+ .ark-agentic-file-viewer-cad__layer-option:hover:not([aria-disabled="true"]) {
801
+ border-color: var(--agentic-file-viewer-accent);
802
+ background: color-mix(in srgb, var(--agentic-file-viewer-accent) 12%, var(--agentic-file-viewer-surface));
803
+ }
804
+
805
+ .ark-agentic-file-viewer-cad__layer-option:focus-within {
806
+ outline: 2px solid var(--agentic-file-viewer-accent);
807
+ outline-offset: -2px;
808
+ }
809
+
810
+ .ark-agentic-file-viewer-cad__layer-option[aria-disabled="true"] {
811
+ border-color: var(--agentic-file-viewer-border);
812
+ background: var(--agentic-file-viewer-control);
813
+ cursor: not-allowed;
814
+ }
815
+
816
+ .ark-agentic-file-viewer-cad__layer-content {
817
+ vertical-align: middle;
818
+ align-items: center;
819
+ gap: 8px;
820
+ min-width: 0;
821
+ max-width: 100%;
822
+ display: inline-flex;
823
+ }
824
+
825
+ .ark-agentic-file-viewer-cad__layer-name {
826
+ text-overflow: ellipsis;
827
+ white-space: nowrap;
828
+ min-width: 0;
829
+ overflow: hidden;
830
+ }
831
+
832
+ .ark-agentic-file-viewer-cad__layer-state {
833
+ color: var(--agentic-file-viewer-muted);
834
+ white-space: nowrap;
835
+ flex-shrink: 0;
836
+ }
837
+
838
+ .ark-agentic-file-viewer-cad__layer-option[data-visible="true"]:not([aria-disabled="true"]) .ark-agentic-file-viewer-cad__layer-state {
839
+ color: var(--agentic-file-viewer-accent);
840
+ }
841
+
842
+ .ark-agentic-file-viewer-cad__actions {
843
+ border-top: 1px solid var(--color-border-2);
844
+ min-height: 0;
845
+ max-height: 30%;
846
+ color: var(--color-text-2);
847
+ flex-wrap: wrap;
848
+ flex-shrink: 1;
849
+ align-items: center;
850
+ gap: 8px;
851
+ padding: 4px 12px;
852
+ font-size: 12px;
853
+ display: flex;
854
+ overflow: auto;
855
+ }
856
+
857
+ .ark-agentic-file-viewer-cad__action {
858
+ border: 1px solid var(--color-border-2);
859
+ color: var(--color-text-1);
860
+ background: var(--color-bg-2);
861
+ cursor: pointer;
862
+ border-radius: 4px;
863
+ padding: 4px 8px;
864
+ }
865
+
866
+ .ark-agentic-file-viewer-cad__action:disabled {
867
+ cursor: not-allowed;
868
+ color: var(--color-text-4);
869
+ }
870
+
871
+ .ark-agentic-file-viewer-cad__action[aria-pressed="true"] {
872
+ color: rgb(var(--primary-6));
873
+ border-color: rgb(var(--primary-6));
874
+ }
875
+
876
+ .ark-agentic-file-viewer-code {
877
+ --code-bg: var(--color-bg-1);
878
+ --code-border: var(--color-border-2);
879
+ --code-gutter: var(--color-text-3);
880
+ --code-text: var(--color-text-1);
881
+ --code-comment: var(--color-text-3);
882
+ --code-punctuation: var(--color-text-2);
883
+ --code-keyword: rgb(var(--primary-6));
884
+ --code-number: rgb(var(--purple-6));
885
+ --code-string: rgb(var(--success-6));
886
+ --code-operator: var(--color-text-2);
887
+ --code-function: rgb(var(--danger-6));
888
+ min-width: 0;
889
+ min-height: 0;
890
+ color: var(--code-text);
891
+ background: var(--code-bg);
892
+ flex-direction: column;
893
+ flex: 1;
894
+ display: flex;
895
+ }
896
+
897
+ .ark-agentic-file-viewer-code .token.comment, .ark-agentic-file-viewer-code .token.prolog, .ark-agentic-file-viewer-code .token.doctype, .ark-agentic-file-viewer-code .token.cdata {
898
+ color: var(--code-comment);
899
+ font-style: italic;
900
+ }
901
+
902
+ .ark-agentic-file-viewer-code .token.punctuation {
903
+ color: var(--code-punctuation);
904
+ }
905
+
906
+ .ark-agentic-file-viewer-code .token.property, .ark-agentic-file-viewer-code .token.tag, .ark-agentic-file-viewer-code .token.constant, .ark-agentic-file-viewer-code .token.symbol, .ark-agentic-file-viewer-code .token.deleted, .ark-agentic-file-viewer-code .token.keyword {
907
+ color: var(--code-keyword);
908
+ }
909
+
910
+ .ark-agentic-file-viewer-code .token.boolean, .ark-agentic-file-viewer-code .token.number {
911
+ color: var(--code-number);
912
+ }
913
+
914
+ .ark-agentic-file-viewer-code .token.selector, .ark-agentic-file-viewer-code .token.attr-name, .ark-agentic-file-viewer-code .token.string, .ark-agentic-file-viewer-code .token.char, .ark-agentic-file-viewer-code .token.builtin, .ark-agentic-file-viewer-code .token.inserted {
915
+ color: var(--code-string);
916
+ }
917
+
918
+ .ark-agentic-file-viewer-code .token.operator, .ark-agentic-file-viewer-code .token.entity, .ark-agentic-file-viewer-code .token.url, .ark-agentic-file-viewer-code .token.variable {
919
+ color: var(--code-operator);
920
+ }
921
+
922
+ .ark-agentic-file-viewer-code .token.atrule, .ark-agentic-file-viewer-code .token.attr-value, .ark-agentic-file-viewer-code .token.function, .ark-agentic-file-viewer-code .token.class-name {
923
+ color: var(--code-function);
924
+ }
925
+
926
+ .ark-agentic-file-viewer-code__partial {
927
+ border-bottom: 1px solid var(--code-border);
928
+ padding: 8px 12px;
929
+ font-size: 12px;
930
+ }
931
+
932
+ .ark-agentic-file-viewer-code__scroll {
933
+ flex: 1;
934
+ min-width: 0;
935
+ min-height: 0;
936
+ overflow: auto;
937
+ }
938
+
939
+ .ark-agentic-file-viewer-code__lines {
940
+ width: max-content;
941
+ min-width: 100%;
942
+ padding: 8px 0;
943
+ }
944
+
945
+ .ark-agentic-file-viewer-code__line {
946
+ letter-spacing: 0;
947
+ align-items: flex-start;
948
+ min-height: 22px;
949
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
950
+ font-size: 13px;
951
+ line-height: 22px;
952
+ display: flex;
953
+ }
954
+
955
+ .ark-agentic-file-viewer-code__gutter {
956
+ z-index: 1;
957
+ width: 52px;
958
+ color: var(--code-gutter);
959
+ text-align: right;
960
+ -webkit-user-select: none;
961
+ user-select: none;
962
+ background: var(--code-bg);
963
+ border-right: 1px solid var(--code-border);
964
+ flex: 0 0 52px;
965
+ padding-right: 12px;
966
+ position: sticky;
967
+ left: 0;
968
+ }
969
+
970
+ .ark-agentic-file-viewer-code__content {
971
+ white-space: pre;
972
+ tab-size: 4;
973
+ min-width: 0;
974
+ padding: 0 16px;
975
+ }
976
+
977
+ .ark-agentic-file-viewer-code__hit {
978
+ color: inherit;
979
+ background: var(--agentic-file-viewer-search-hit-color, var(--color-border-3));
980
+ padding: 0;
981
+ }
982
+
983
+ .ark-agentic-file-viewer-code__hit.is-current {
984
+ background: var(--agentic-file-viewer-search-current-color, rgb(var(--warning-6)));
985
+ box-shadow: inset 0 -2px var(--agentic-file-viewer-search-current-border-color, rgb(var(--warning-6)));
986
+ }
987
+
988
+ .ark-agentic-file-viewer-diff {
989
+ --code-bg: var(--color-bg-1);
990
+ --code-border: var(--color-border-2);
991
+ --code-gutter: var(--color-text-3);
992
+ --code-text: var(--color-text-1);
993
+ --code-comment: var(--color-text-3);
994
+ --code-punctuation: var(--color-text-2);
995
+ --code-keyword: rgb(var(--primary-6));
996
+ --code-number: rgb(var(--purple-6));
997
+ --code-string: rgb(var(--success-6));
998
+ --code-operator: var(--color-text-2);
999
+ --code-function: rgb(var(--danger-6));
1000
+ --diff-subtle-bg: color-mix(in srgb, var(--code-text) 4%, var(--code-bg));
1001
+ --diff-hover-bg: color-mix(in srgb, var(--code-text) 7%, var(--code-bg));
1002
+ --diff-added-bg: color-mix(in srgb, rgb(var(--success-6)) 10%, var(--code-bg));
1003
+ --diff-deleted-bg: color-mix(in srgb, rgb(var(--danger-6)) 10%, var(--code-bg));
1004
+ min-width: 0;
1005
+ min-height: 0;
1006
+ color: var(--code-text);
1007
+ background: var(--code-bg);
1008
+ flex-direction: column;
1009
+ flex: 1;
1010
+ display: flex;
1011
+ container-type: inline-size;
1012
+ }
1013
+
1014
+ .ark-agentic-file-viewer-diff .token.comment, .ark-agentic-file-viewer-diff .token.prolog, .ark-agentic-file-viewer-diff .token.doctype, .ark-agentic-file-viewer-diff .token.cdata {
1015
+ color: var(--code-comment);
1016
+ font-style: italic;
1017
+ }
1018
+
1019
+ .ark-agentic-file-viewer-diff .token.punctuation {
1020
+ color: var(--code-punctuation);
1021
+ }
1022
+
1023
+ .ark-agentic-file-viewer-diff .token.property, .ark-agentic-file-viewer-diff .token.tag, .ark-agentic-file-viewer-diff .token.constant, .ark-agentic-file-viewer-diff .token.symbol, .ark-agentic-file-viewer-diff .token.deleted, .ark-agentic-file-viewer-diff .token.keyword {
1024
+ color: var(--code-keyword);
1025
+ }
1026
+
1027
+ .ark-agentic-file-viewer-diff .token.boolean, .ark-agentic-file-viewer-diff .token.number {
1028
+ color: var(--code-number);
1029
+ }
1030
+
1031
+ .ark-agentic-file-viewer-diff .token.selector, .ark-agentic-file-viewer-diff .token.attr-name, .ark-agentic-file-viewer-diff .token.string, .ark-agentic-file-viewer-diff .token.char, .ark-agentic-file-viewer-diff .token.builtin, .ark-agentic-file-viewer-diff .token.inserted {
1032
+ color: var(--code-string);
1033
+ }
1034
+
1035
+ .ark-agentic-file-viewer-diff .token.operator, .ark-agentic-file-viewer-diff .token.entity, .ark-agentic-file-viewer-diff .token.url, .ark-agentic-file-viewer-diff .token.variable {
1036
+ color: var(--code-operator);
1037
+ }
1038
+
1039
+ .ark-agentic-file-viewer-diff .token.atrule, .ark-agentic-file-viewer-diff .token.attr-value, .ark-agentic-file-viewer-diff .token.function, .ark-agentic-file-viewer-diff .token.class-name {
1040
+ color: var(--code-function);
1041
+ }
1042
+
1043
+ .ark-agentic-file-viewer-diff button {
1044
+ font: inherit;
1045
+ color: inherit;
1046
+ }
1047
+
1048
+ .ark-agentic-file-viewer-diff button:focus-visible {
1049
+ outline: 2px solid rgb(var(--primary-6));
1050
+ outline-offset: -2px;
1051
+ }
1052
+
1053
+ .ark-agentic-file-viewer-diff .is-added {
1054
+ color: rgb(var(--success-6));
1055
+ }
1056
+
1057
+ .ark-agentic-file-viewer-diff .is-deleted {
1058
+ color: rgb(var(--danger-6));
1059
+ }
1060
+
1061
+ .ark-agentic-file-viewer-diff__summary {
1062
+ border-bottom: 1px solid var(--code-border);
1063
+ color: var(--color-text-2);
1064
+ gap: 8px;
1065
+ padding: 8px 12px;
1066
+ font-size: 12px;
1067
+ display: flex;
1068
+ }
1069
+
1070
+ .ark-agentic-file-viewer-diff__layout {
1071
+ flex: 1;
1072
+ min-width: 0;
1073
+ min-height: 0;
1074
+ display: flex;
1075
+ }
1076
+
1077
+ .ark-agentic-file-viewer-diff__navigation {
1078
+ border-right: 1px solid var(--code-border);
1079
+ flex: 0 0 220px;
1080
+ width: 220px;
1081
+ min-height: 0;
1082
+ overflow: auto;
1083
+ }
1084
+
1085
+ .ark-agentic-file-viewer-diff__navigation-title, .ark-agentic-file-viewer-diff__part {
1086
+ color: var(--color-text-2);
1087
+ overflow-wrap: anywhere;
1088
+ padding: 8px 12px;
1089
+ }
1090
+
1091
+ .ark-agentic-file-viewer-diff__part {
1092
+ border-top: 1px solid var(--code-border);
1093
+ font-size: 12px;
1094
+ }
1095
+
1096
+ .ark-agentic-file-viewer-diff__file {
1097
+ text-align: left;
1098
+ cursor: pointer;
1099
+ background: none;
1100
+ border: 0;
1101
+ flex-wrap: wrap;
1102
+ gap: 8px;
1103
+ width: 100%;
1104
+ padding: 8px 12px;
1105
+ display: flex;
1106
+ }
1107
+
1108
+ .ark-agentic-file-viewer-diff__file:hover {
1109
+ background: var(--diff-subtle-bg);
1110
+ }
1111
+
1112
+ .ark-agentic-file-viewer-diff__file[aria-current="true"] {
1113
+ color: color-mix(in srgb, rgb(var(--primary-6)) 60%, var(--code-text));
1114
+ background: var(--color-primary-light-1);
1115
+ box-shadow: inset 3px 0 rgb(var(--primary-6));
1116
+ }
1117
+
1118
+ .ark-agentic-file-viewer-diff__file-path {
1119
+ overflow-wrap: anywhere;
1120
+ width: 100%;
1121
+ }
1122
+
1123
+ .ark-agentic-file-viewer-diff__file-status, .ark-agentic-file-viewer-diff__counts {
1124
+ color: var(--color-text-3);
1125
+ font-size: 12px;
1126
+ }
1127
+
1128
+ .ark-agentic-file-viewer-diff__scroll {
1129
+ flex: 1;
1130
+ min-width: 0;
1131
+ min-height: 0;
1132
+ overflow: auto;
1133
+ container-type: inline-size;
1134
+ }
1135
+
1136
+ .ark-agentic-file-viewer-diff__file-header {
1137
+ box-sizing: border-box;
1138
+ z-index: 2;
1139
+ background: var(--code-bg);
1140
+ border-bottom: 1px solid var(--code-border);
1141
+ overflow-wrap: anywhere;
1142
+ flex-wrap: wrap;
1143
+ align-items: center;
1144
+ gap: 12px;
1145
+ width: 100%;
1146
+ padding: 8px 12px;
1147
+ display: flex;
1148
+ position: sticky;
1149
+ top: 0;
1150
+ left: 0;
1151
+ }
1152
+
1153
+ .ark-agentic-file-viewer-diff__file-header > span:first-child {
1154
+ flex: 1;
1155
+ min-width: 0;
1156
+ }
1157
+
1158
+ .ark-agentic-file-viewer-diff__file-header button, .ark-agentic-file-viewer-diff__paging button {
1159
+ border: 1px solid var(--code-border);
1160
+ background: var(--code-bg);
1161
+ cursor: pointer;
1162
+ border-radius: 4px;
1163
+ padding: 2px 8px;
1164
+ }
1165
+
1166
+ .ark-agentic-file-viewer-diff__file-header button:disabled, .ark-agentic-file-viewer-diff__paging button:disabled {
1167
+ color: var(--color-text-4);
1168
+ cursor: default;
1169
+ }
1170
+
1171
+ .ark-agentic-file-viewer-diff__notice {
1172
+ box-sizing: border-box;
1173
+ width: 100%;
1174
+ color: var(--color-text-2);
1175
+ background: var(--code-bg);
1176
+ border-bottom: 1px solid var(--code-border);
1177
+ padding: 8px 12px;
1178
+ position: sticky;
1179
+ left: 0;
1180
+ }
1181
+
1182
+ .ark-agentic-file-viewer-diff__metadata {
1183
+ --diff-metadata-accent: color-mix(in srgb, rgb(var(--primary-6)) 65%, var(--code-text));
1184
+ box-sizing: border-box;
1185
+ width: 100%;
1186
+ max-width: 640px;
1187
+ color: var(--code-text);
1188
+ overflow-wrap: anywhere;
1189
+ padding: 24px;
1190
+ line-height: 1.5;
1191
+ }
1192
+
1193
+ .ark-agentic-file-viewer-diff__metadata[data-change-kind="added"] {
1194
+ --diff-metadata-accent: rgb(var(--success-6));
1195
+ }
1196
+
1197
+ .ark-agentic-file-viewer-diff__metadata[data-change-kind="deleted"] {
1198
+ --diff-metadata-accent: rgb(var(--danger-6));
1199
+ }
1200
+
1201
+ .ark-agentic-file-viewer-diff__metadata-heading {
1202
+ align-items: center;
1203
+ gap: 12px;
1204
+ margin-bottom: 16px;
1205
+ display: flex;
1206
+ }
1207
+
1208
+ .ark-agentic-file-viewer-diff__metadata-heading h3 {
1209
+ color: inherit;
1210
+ margin: 0;
1211
+ font-size: 14px;
1212
+ font-weight: 500;
1213
+ }
1214
+
1215
+ .ark-agentic-file-viewer-diff__metadata-heading p {
1216
+ color: var(--color-text-3);
1217
+ margin: 4px 0 0;
1218
+ font-size: 12px;
1219
+ }
1220
+
1221
+ .ark-agentic-file-viewer-diff__metadata-icon {
1222
+ width: 36px;
1223
+ height: 36px;
1224
+ color: var(--diff-metadata-accent);
1225
+ background: color-mix(in srgb, var(--diff-metadata-accent) 6%, var(--code-bg));
1226
+ border-radius: 12px;
1227
+ flex-shrink: 0;
1228
+ justify-content: center;
1229
+ align-items: center;
1230
+ display: inline-flex;
1231
+ }
1232
+
1233
+ .ark-agentic-file-viewer-diff__metadata-icon svg {
1234
+ stroke-width: 1.5px;
1235
+ width: 20px;
1236
+ height: 20px;
1237
+ }
1238
+
1239
+ .ark-agentic-file-viewer-diff__metadata-comparison {
1240
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
1241
+ align-items: center;
1242
+ gap: 8px;
1243
+ display: grid;
1244
+ }
1245
+
1246
+ .ark-agentic-file-viewer-diff__metadata-path {
1247
+ background: color-mix(in srgb, var(--code-text) 2%, var(--code-bg));
1248
+ border: 1px solid var(--code-border);
1249
+ border-radius: 6px;
1250
+ align-self: stretch;
1251
+ min-width: 0;
1252
+ margin: 0;
1253
+ padding: 12px;
1254
+ }
1255
+
1256
+ .ark-agentic-file-viewer-diff__metadata-path[data-side="new"] {
1257
+ background: color-mix(in srgb, var(--diff-metadata-accent) 3%, var(--code-bg));
1258
+ border-color: color-mix(in srgb, var(--diff-metadata-accent) 20%, var(--code-border));
1259
+ }
1260
+
1261
+ .ark-agentic-file-viewer-diff__metadata-path dt {
1262
+ color: var(--color-text-3);
1263
+ margin-bottom: 8px;
1264
+ font-size: 12px;
1265
+ }
1266
+
1267
+ .ark-agentic-file-viewer-diff__metadata-path dd {
1268
+ min-width: 0;
1269
+ margin: 0;
1270
+ }
1271
+
1272
+ .ark-agentic-file-viewer-diff__metadata-path code {
1273
+ font-family: ui-monospace, monospace;
1274
+ font-size: 13px;
1275
+ }
1276
+
1277
+ .ark-agentic-file-viewer-diff__metadata-directory {
1278
+ color: var(--color-text-3);
1279
+ }
1280
+
1281
+ .ark-agentic-file-viewer-diff__metadata-filename {
1282
+ font-weight: 500;
1283
+ }
1284
+
1285
+ .ark-agentic-file-viewer-diff__metadata-arrow {
1286
+ width: 16px;
1287
+ height: 16px;
1288
+ color: var(--color-text-3);
1289
+ }
1290
+
1291
+ .ark-agentic-file-viewer-diff__metadata-mode {
1292
+ flex-wrap: wrap;
1293
+ align-items: center;
1294
+ gap: 8px 12px;
1295
+ margin: 16px 0 0;
1296
+ font-size: 12px;
1297
+ display: flex;
1298
+ }
1299
+
1300
+ .ark-agentic-file-viewer-diff__metadata-mode dt, .ark-agentic-file-viewer-diff__metadata-mode dd {
1301
+ color: var(--color-text-2);
1302
+ }
1303
+
1304
+ .ark-agentic-file-viewer-diff__metadata-mode dd {
1305
+ margin: 0;
1306
+ }
1307
+
1308
+ .ark-agentic-file-viewer-diff__metadata-mode code {
1309
+ border: 1px solid var(--code-border);
1310
+ border-radius: 4px;
1311
+ padding: 4px 8px;
1312
+ font-family: ui-monospace, monospace;
1313
+ display: inline-block;
1314
+ }
1315
+
1316
+ .ark-agentic-file-viewer-diff__metadata-mode code[data-side="new"] {
1317
+ color: var(--diff-metadata-accent);
1318
+ background: color-mix(in srgb, var(--diff-metadata-accent) 5%, var(--code-bg));
1319
+ border-color: #0000;
1320
+ }
1321
+
1322
+ @container (width <= 360px) {
1323
+ .ark-agentic-file-viewer-diff__metadata {
1324
+ padding: 16px;
1325
+ }
1326
+
1327
+ .ark-agentic-file-viewer-diff__metadata-comparison {
1328
+ grid-template-columns: minmax(0, 1fr);
1329
+ }
1330
+
1331
+ .ark-agentic-file-viewer-diff__metadata-arrow {
1332
+ justify-self: center;
1333
+ transform: rotate(90deg);
1334
+ }
1335
+ }
1336
+
1337
+ .ark-agentic-file-viewer-diff__file-header .ark-agentic-file-viewer-diff__copy-path {
1338
+ width: 28px;
1339
+ height: 28px;
1340
+ color: var(--color-text-2);
1341
+ flex-shrink: 0;
1342
+ justify-content: center;
1343
+ align-items: center;
1344
+ padding: 0;
1345
+ display: inline-flex;
1346
+ }
1347
+
1348
+ .ark-agentic-file-viewer-diff__file-header .ark-agentic-file-viewer-diff__copy-path svg {
1349
+ width: 14px;
1350
+ height: 14px;
1351
+ }
1352
+
1353
+ .ark-agentic-file-viewer-diff__file-header .ark-agentic-file-viewer-diff__copy-path:hover {
1354
+ color: rgb(var(--primary-6));
1355
+ background: var(--color-primary-light-1);
1356
+ border-color: rgb(var(--primary-6));
1357
+ }
1358
+
1359
+ .ark-agentic-file-viewer-diff__file-header .ark-agentic-file-viewer-diff__copy-path:active {
1360
+ background: var(--diff-hover-bg);
1361
+ }
1362
+
1363
+ .ark-agentic-file-viewer-diff__file-header .ark-agentic-file-viewer-diff__copy-path:focus-visible {
1364
+ outline: 2px solid rgb(var(--primary-6));
1365
+ outline-offset: 2px;
1366
+ }
1367
+
1368
+ .ark-agentic-file-viewer-diff__file-header .ark-agentic-file-viewer-diff__copy-path[data-copy-status="success"] {
1369
+ color: rgb(var(--success-6));
1370
+ }
1371
+
1372
+ .ark-agentic-file-viewer-diff__file-header .ark-agentic-file-viewer-diff__copy-path[data-copy-status="error"] {
1373
+ color: rgb(var(--danger-6));
1374
+ }
1375
+
1376
+ .ark-agentic-file-viewer-diff__copy-feedback {
1377
+ clip-path: inset(50%);
1378
+ white-space: nowrap;
1379
+ width: 1px;
1380
+ height: 1px;
1381
+ position: absolute;
1382
+ overflow: hidden;
1383
+ }
1384
+
1385
+ .ark-agentic-file-viewer-diff__unified, .ark-agentic-file-viewer-diff__source {
1386
+ width: max-content;
1387
+ min-width: 100%;
1388
+ }
1389
+
1390
+ .ark-agentic-file-viewer-diff__split {
1391
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1392
+ min-width: 0;
1393
+ display: grid;
1394
+ }
1395
+
1396
+ .ark-agentic-file-viewer-diff__column {
1397
+ min-width: 0;
1398
+ overflow-x: auto;
1399
+ container-type: inline-size;
1400
+ }
1401
+
1402
+ .ark-agentic-file-viewer-diff__column + .ark-agentic-file-viewer-diff__column {
1403
+ border-left: 1px solid var(--code-border);
1404
+ }
1405
+
1406
+ .ark-agentic-file-viewer-diff__column-lines {
1407
+ width: max-content;
1408
+ min-width: 100%;
1409
+ }
1410
+
1411
+ .ark-agentic-file-viewer-diff__line {
1412
+ letter-spacing: 0;
1413
+ background: var(--code-bg);
1414
+ min-height: 22px;
1415
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
1416
+ font-size: 13px;
1417
+ line-height: 22px;
1418
+ display: flex;
1419
+ }
1420
+
1421
+ .ark-agentic-file-viewer-diff__line.is-delete {
1422
+ background: var(--diff-deleted-bg);
1423
+ }
1424
+
1425
+ .ark-agentic-file-viewer-diff__line.is-insert {
1426
+ background: var(--diff-added-bg);
1427
+ }
1428
+
1429
+ .ark-agentic-file-viewer-diff__line.is-empty {
1430
+ background: color-mix(in srgb, var(--code-text) 2%, var(--code-bg));
1431
+ }
1432
+
1433
+ .ark-agentic-file-viewer-diff__line.is-selected {
1434
+ box-shadow: inset 0 0 0 2px rgb(var(--primary-6));
1435
+ }
1436
+
1437
+ .ark-agentic-file-viewer-diff__gutter {
1438
+ z-index: 1;
1439
+ box-sizing: border-box;
1440
+ border: 0;
1441
+ border-right: 1px solid var(--code-border);
1442
+ background: inherit;
1443
+ width: 48px;
1444
+ color: var(--code-gutter);
1445
+ font: inherit;
1446
+ text-align: right;
1447
+ -webkit-user-select: none;
1448
+ user-select: none;
1449
+ flex: 0 0 48px;
1450
+ padding: 0 8px;
1451
+ position: sticky;
1452
+ left: 0;
1453
+ }
1454
+
1455
+ button.ark-agentic-file-viewer-diff__gutter {
1456
+ cursor: pointer;
1457
+ }
1458
+
1459
+ .ark-agentic-file-viewer-diff__gutter + .ark-agentic-file-viewer-diff__gutter {
1460
+ left: 48px;
1461
+ }
1462
+
1463
+ .ark-agentic-file-viewer-diff__operation {
1464
+ z-index: 1;
1465
+ background: inherit;
1466
+ text-align: center;
1467
+ -webkit-user-select: none;
1468
+ user-select: none;
1469
+ flex: 0 0 18px;
1470
+ position: sticky;
1471
+ left: 48px;
1472
+ }
1473
+
1474
+ .ark-agentic-file-viewer-diff__unified .ark-agentic-file-viewer-diff__operation {
1475
+ left: 96px;
1476
+ }
1477
+
1478
+ .ark-agentic-file-viewer-diff__text {
1479
+ white-space: pre;
1480
+ tab-size: 4;
1481
+ min-width: 0;
1482
+ padding: 0 12px;
1483
+ }
1484
+
1485
+ .ark-agentic-file-viewer-diff__hunk, .ark-agentic-file-viewer-diff__gap, .ark-agentic-file-viewer-diff__eof {
1486
+ letter-spacing: 0;
1487
+ box-sizing: border-box;
1488
+ background: var(--code-bg);
1489
+ width: 100cqw;
1490
+ height: 22px;
1491
+ color: var(--color-text-3);
1492
+ text-align: left;
1493
+ white-space: pre;
1494
+ -webkit-user-select: none;
1495
+ user-select: none;
1496
+ border: 0;
1497
+ padding: 0 12px;
1498
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
1499
+ font-size: 13px;
1500
+ line-height: 22px;
1501
+ display: block;
1502
+ position: sticky;
1503
+ left: 0;
1504
+ overflow: hidden;
1505
+ }
1506
+
1507
+ .ark-agentic-file-viewer-diff__gap {
1508
+ text-align: center;
1509
+ }
1510
+
1511
+ .ark-agentic-file-viewer-diff__hunk {
1512
+ cursor: pointer;
1513
+ color: var(--color-text-2);
1514
+ background: var(--diff-subtle-bg);
1515
+ }
1516
+
1517
+ .ark-agentic-file-viewer-diff__hunk:hover {
1518
+ background: var(--diff-hover-bg);
1519
+ }
1520
+
1521
+ .ark-agentic-file-viewer-diff__line mark {
1522
+ color: inherit;
1523
+ padding: 0;
1524
+ }
1525
+
1526
+ .ark-agentic-file-viewer-diff__line.is-delete .ark-agentic-file-viewer-diff__edit {
1527
+ background: color-mix(in srgb, rgb(var(--danger-6)) 30%, var(--code-bg));
1528
+ }
1529
+
1530
+ .ark-agentic-file-viewer-diff__line.is-insert .ark-agentic-file-viewer-diff__edit {
1531
+ background: color-mix(in srgb, rgb(var(--success-6)) 30%, var(--code-bg));
1532
+ }
1533
+
1534
+ .ark-agentic-file-viewer-diff__hit.is-current {
1535
+ box-shadow: inset 0 -2px rgb(var(--warning-6));
1536
+ }
1537
+
1538
+ .ark-agentic-file-viewer-diff__paging {
1539
+ box-sizing: border-box;
1540
+ justify-content: center;
1541
+ align-items: center;
1542
+ gap: 12px;
1543
+ width: 100%;
1544
+ padding: 8px 12px;
1545
+ display: flex;
1546
+ position: sticky;
1547
+ left: 0;
1548
+ }
1549
+
1550
+ @container (width <= 640px) {
1551
+ .ark-agentic-file-viewer-diff__layout {
1552
+ flex-direction: column;
1553
+ }
1554
+
1555
+ .ark-agentic-file-viewer-diff__navigation {
1556
+ border-right: 0;
1557
+ border-bottom: 1px solid var(--code-border);
1558
+ flex: none;
1559
+ width: auto;
1560
+ max-height: 140px;
1561
+ }
1562
+ }
1563
+
1564
+ .ark-agentic-file-viewer-html {
1565
+ background: var(--color-bg-1);
1566
+ flex-direction: column;
1567
+ flex: 1;
1568
+ min-height: 0;
1569
+ display: flex;
1570
+ }
1571
+
1572
+ .ark-agentic-file-viewer-html__partial {
1573
+ border-bottom: 1px solid var(--color-border-2);
1574
+ padding: 8px 12px;
1575
+ font-size: 12px;
1576
+ }
1577
+
1578
+ .ark-agentic-file-viewer-html__frame {
1579
+ background: var(--color-bg-1);
1580
+ border: 0;
1581
+ flex: 1;
1582
+ width: 100%;
1583
+ min-height: 360px;
1584
+ }
1585
+
1586
+ .ark-agentic-file-viewer-image {
1587
+ background: linear-gradient(45deg, color-mix(in srgb, var(--color-text-1) 4%, transparent) 25%, transparent 25%) 0 0 / 20px 20px, linear-gradient(-45deg, color-mix(in srgb, var(--color-text-1) 4%, transparent) 25%, transparent 25%) 0 10px / 20px 20px, var(--color-bg-2);
1588
+ flex: 1;
1589
+ justify-content: stretch;
1590
+ align-items: stretch;
1591
+ min-height: 320px;
1592
+ display: flex;
1593
+ }
1594
+
1595
+ .ark-agentic-file-viewer-image__stage {
1596
+ cursor: zoom-in;
1597
+ background: none;
1598
+ border: 0;
1599
+ flex: 1;
1600
+ justify-content: center;
1601
+ align-items: center;
1602
+ min-width: 0;
1603
+ min-height: 0;
1604
+ padding: 16px;
1605
+ display: flex;
1606
+ position: relative;
1607
+ }
1608
+
1609
+ .ark-agentic-file-viewer-image__annotations {
1610
+ pointer-events: none;
1611
+ width: calc(100% - 32px);
1612
+ height: calc(100% - 32px);
1613
+ position: absolute;
1614
+ inset: 16px;
1615
+ }
1616
+
1617
+ .ark-agentic-file-viewer-image__img {
1618
+ justify-content: center;
1619
+ align-items: center;
1620
+ width: 100%;
1621
+ min-width: 0;
1622
+ max-width: 100%;
1623
+ height: 100%;
1624
+ min-height: 0;
1625
+ max-height: 100%;
1626
+ display: flex;
1627
+ }
1628
+
1629
+ .ark-agentic-file-viewer-image__img :is(.arco-image-img, [class$="-arco-image-img"], [class*="-arco-image-img "]) {
1630
+ object-fit: contain;
1631
+ width: 100%;
1632
+ max-width: 100%;
1633
+ height: 100%;
1634
+ max-height: 100%;
1635
+ display: block;
1636
+ }
1637
+
1638
+ .ark-agentic-file-viewer-image__preview:is(.arco-image-preview-hide, [class$="-arco-image-preview-hide"], [class*="-arco-image-preview-hide "]) {
1639
+ display: none !important;
1640
+ }
1641
+
1642
+ .ark-agentic-file-viewer-image-mobile-preview {
1643
+ background: var(--color-bg-1);
1644
+ color: var(--color-text-1);
1645
+ --image-preview-mask-background: var(--color-bg-1);
1646
+ --mask-content-color: var(--color-text-1);
1647
+ }
1648
+
1649
+ .ark-agentic-file-viewer-image[data-selection-active="true"] .ark-agentic-file-viewer-image__stage {
1650
+ cursor: crosshair;
1651
+ }
1652
+
1653
+ .ark-agentic-file-viewer-image__selection-overlay {
1654
+ pointer-events: none;
1655
+ width: calc(100% - 32px);
1656
+ height: calc(100% - 32px);
1657
+ position: absolute;
1658
+ inset: 16px;
1659
+ }
1660
+
1661
+ .ark-agentic-file-viewer-image__selection-region {
1662
+ pointer-events: auto;
1663
+ cursor: pointer;
1664
+ }
1665
+
1666
+ .ark-agentic-file-viewer-image__selection-region.is-draft {
1667
+ pointer-events: none;
1668
+ }
1669
+
1670
+ .ark-agentic-file-viewer-json {
1671
+ --json-bg: var(--color-bg-1);
1672
+ --json-border: var(--color-border-2);
1673
+ --json-gutter: var(--color-text-3);
1674
+ --json-text: var(--color-text-1);
1675
+ --json-keyword: rgb(var(--primary-6));
1676
+ --json-string: rgb(var(--success-6));
1677
+ --json-number: rgb(var(--purple-6));
1678
+ --json-boolean: rgb(var(--purple-6));
1679
+ --json-null: var(--color-text-3);
1680
+ --json-punctuation: var(--color-text-2);
1681
+ min-width: 0;
1682
+ min-height: 0;
1683
+ color: var(--json-text);
1684
+ background: var(--json-bg);
1685
+ flex-direction: column;
1686
+ flex: 1;
1687
+ display: flex;
1688
+ }
1689
+
1690
+ .ark-agentic-file-viewer-json__partial, .ark-agentic-file-viewer-json__pager {
1691
+ border-bottom: 1px solid var(--json-border);
1692
+ padding: 8px 12px;
1693
+ }
1694
+
1695
+ .ark-agentic-file-viewer-json__pager {
1696
+ justify-content: center;
1697
+ align-items: center;
1698
+ gap: 12px;
1699
+ display: flex;
1700
+ }
1701
+
1702
+ .ark-agentic-file-viewer-json__viewport {
1703
+ flex: 1;
1704
+ min-height: 280px;
1705
+ }
1706
+
1707
+ .ark-agentic-file-viewer-json__scroller {
1708
+ overflow: auto;
1709
+ }
1710
+
1711
+ .ark-agentic-file-viewer-json__row {
1712
+ letter-spacing: 0;
1713
+ align-items: stretch;
1714
+ width: max-content;
1715
+ min-width: 100%;
1716
+ min-height: 26px;
1717
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
1718
+ font-size: 13px;
1719
+ line-height: 22px;
1720
+ display: flex;
1721
+ }
1722
+
1723
+ .ark-agentic-file-viewer-json__row.is-current {
1724
+ background: var(--agentic-file-viewer-search-current-color, rgb(var(--warning-6)));
1725
+ }
1726
+
1727
+ .ark-agentic-file-viewer-json__gutter {
1728
+ z-index: 1;
1729
+ box-sizing: border-box;
1730
+ width: 52px;
1731
+ color: var(--json-gutter);
1732
+ text-align: right;
1733
+ -webkit-user-select: none;
1734
+ user-select: none;
1735
+ background: var(--json-bg);
1736
+ border-right: 1px solid var(--json-border);
1737
+ flex: 0 0 52px;
1738
+ justify-content: flex-end;
1739
+ align-items: flex-start;
1740
+ padding-right: 12px;
1741
+ display: flex;
1742
+ position: sticky;
1743
+ left: 0;
1744
+ }
1745
+
1746
+ .ark-agentic-file-viewer-json__main {
1747
+ white-space: pre;
1748
+ overflow-wrap: normal;
1749
+ flex: 1 0 auto;
1750
+ align-items: flex-start;
1751
+ min-width: max-content;
1752
+ padding: 0 16px 0 12px;
1753
+ display: flex;
1754
+ }
1755
+
1756
+ .ark-agentic-file-viewer-json__toggle, .ark-agentic-file-viewer-json__toggle-placeholder {
1757
+ flex: 0 0 20px;
1758
+ width: 20px;
1759
+ height: 22px;
1760
+ }
1761
+
1762
+ .ark-agentic-file-viewer-json__toggle {
1763
+ color: var(--json-gutter);
1764
+ padding: 0;
1765
+ }
1766
+
1767
+ .ark-agentic-file-viewer-json__toggle svg {
1768
+ transition: transform .18s cubic-bezier(.4, 0, .2, 1);
1769
+ }
1770
+
1771
+ .ark-agentic-file-viewer-json__toggle.is-collapsed svg {
1772
+ transform: rotate(0);
1773
+ }
1774
+
1775
+ .ark-agentic-file-viewer-json__toggle:not(.is-collapsed) svg {
1776
+ transform: rotate(90deg);
1777
+ }
1778
+
1779
+ .ark-agentic-file-viewer-json__hit {
1780
+ color: inherit;
1781
+ background: var(--agentic-file-viewer-search-hit-color, var(--color-border-3));
1782
+ padding: 0;
1783
+ }
1784
+
1785
+ .ark-agentic-file-viewer-json__row.is-current .ark-agentic-file-viewer-json__hit {
1786
+ background: var(--agentic-file-viewer-search-current-color, rgb(var(--warning-6)));
1787
+ box-shadow: inset 0 -2px var(--agentic-file-viewer-search-current-border-color, rgb(var(--warning-6)));
1788
+ }
1789
+
1790
+ .ark-agentic-file-viewer-json__error {
1791
+ color: rgb(var(--danger-6));
1792
+ }
1793
+
1794
+ .ark-agentic-file-viewer-json .token.property {
1795
+ color: var(--json-keyword);
1796
+ }
1797
+
1798
+ .ark-agentic-file-viewer-json .token.string {
1799
+ color: var(--json-string);
1800
+ }
1801
+
1802
+ .ark-agentic-file-viewer-json .token.number {
1803
+ color: var(--json-number);
1804
+ }
1805
+
1806
+ .ark-agentic-file-viewer-json .token.boolean {
1807
+ color: var(--json-boolean);
1808
+ }
1809
+
1810
+ .ark-agentic-file-viewer-json .token.null {
1811
+ color: var(--json-null);
1812
+ }
1813
+
1814
+ .ark-agentic-file-viewer-json .token.punctuation {
1815
+ color: var(--json-punctuation);
1816
+ }
1817
+
1818
+ .ark-agentic-file-viewer-json[data-selection-enabled="true"] .ark-agentic-file-viewer-json__key {
1819
+ color: var(--json-keyword);
1820
+ font: inherit;
1821
+ line-height: inherit;
1822
+ white-space: pre;
1823
+ border: 0;
1824
+ border-bottom: 1px solid color-mix(in srgb, currentColor 55%, transparent);
1825
+ cursor: pointer;
1826
+ background: none;
1827
+ padding: 0;
1828
+ text-decoration: none;
1829
+ }
1830
+
1831
+ .ark-agentic-file-viewer-json[data-selection-enabled="true"] .ark-agentic-file-viewer-json__key:hover, .ark-agentic-file-viewer-json[data-selection-enabled="true"] .ark-agentic-file-viewer-json__key:focus-visible {
1832
+ border-bottom-width: 2px;
1833
+ outline: none;
1834
+ }
1835
+
1836
+ .ark-agentic-file-viewer-json[data-selection-enabled="true"] .ark-agentic-file-viewer-json__value.is-selectable {
1837
+ cursor: pointer;
1838
+ border-radius: 3px;
1839
+ }
1840
+
1841
+ .ark-agentic-file-viewer-json[data-selection-enabled="true"] .ark-agentic-file-viewer-json__value.is-selectable:hover, .ark-agentic-file-viewer-json[data-selection-enabled="true"] .ark-agentic-file-viewer-json__value.is-selectable:focus-visible {
1842
+ background: color-mix(in srgb, var(--agentic-file-viewer-annotation-color, rgb(var(--primary-6))) 10%, transparent);
1843
+ outline: none;
1844
+ }
1845
+
1846
+ .ark-agentic-file-viewer-json__row.is-selected .ark-agentic-file-viewer-json__main {
1847
+ background: color-mix(in srgb, var(--agentic-file-viewer-annotation-color, rgb(var(--primary-6))) 16%, transparent);
1848
+ box-shadow: inset 3px 0 var(--agentic-file-viewer-annotation-color, rgb(var(--primary-6)));
1849
+ }
1850
+
1851
+ .ark-agentic-file-viewer-json__string-content {
1852
+ cursor: text;
1853
+ }
1854
+
1855
+ .ark-agentic-file-viewer-json[data-wrap="true"] .ark-agentic-file-viewer-json__row {
1856
+ width: 100%;
1857
+ }
1858
+
1859
+ .ark-agentic-file-viewer-json[data-wrap="true"] .ark-agentic-file-viewer-json__main {
1860
+ flex: auto;
1861
+ min-width: 0;
1862
+ }
1863
+
1864
+ .ark-agentic-file-viewer-json[data-wrap="true"] .ark-agentic-file-viewer-json__main > :not(.ark-agentic-file-viewer-json__value-group) {
1865
+ flex-shrink: 0;
1866
+ }
1867
+
1868
+ .ark-agentic-file-viewer-json[data-wrap="true"] .ark-agentic-file-viewer-json__value-group.is-string {
1869
+ white-space: pre-wrap;
1870
+ overflow-wrap: anywhere;
1871
+ min-width: 1ch;
1872
+ }
1873
+
1874
+ .ark-agentic-file-viewer-json__string-toggle {
1875
+ vertical-align: -4px;
1876
+ block-size: 20px;
1877
+ inline-size: 22px;
1878
+ color: var(--json-keyword);
1879
+ font: inherit;
1880
+ white-space: nowrap;
1881
+ background: color-mix(in srgb, var(--json-keyword) 8%, transparent);
1882
+ cursor: pointer;
1883
+ -webkit-user-select: none;
1884
+ user-select: none;
1885
+ border: 0;
1886
+ border-radius: 3px;
1887
+ justify-content: center;
1888
+ align-items: center;
1889
+ margin-inline: 4px 2px;
1890
+ padding: 0;
1891
+ display: inline-flex;
1892
+ }
1893
+
1894
+ .ark-agentic-file-viewer-json__string-toggle:hover:not(:disabled) {
1895
+ background: color-mix(in srgb, var(--json-keyword) 16%, transparent);
1896
+ }
1897
+
1898
+ .ark-agentic-file-viewer-json__string-toggle:active:not(:disabled) {
1899
+ background: color-mix(in srgb, var(--json-keyword) 24%, transparent);
1900
+ }
1901
+
1902
+ .ark-agentic-file-viewer-json__string-toggle:focus-visible {
1903
+ outline-offset: 2px;
1904
+ outline: 2px solid;
1905
+ }
1906
+
1907
+ .ark-agentic-file-viewer-json__string-toggle:disabled {
1908
+ color: var(--json-gutter);
1909
+ cursor: default;
1910
+ }
1911
+
1912
+ .ark-agentic-file-viewer-markdown {
1913
+ min-height: 0;
1914
+ color: var(--color-text-1);
1915
+ background: var(--color-bg-1);
1916
+ flex: 1;
1917
+ padding: 20px 24px;
1918
+ overflow: auto;
1919
+ }
1920
+
1921
+ .ark-agentic-file-viewer-markdown__partial {
1922
+ border: 1px solid var(--color-border-2);
1923
+ margin-bottom: 12px;
1924
+ padding: 8px 12px;
1925
+ font-size: 12px;
1926
+ }
1927
+
1928
+ .ark-agentic-file-viewer-markdown__content {
1929
+ --stream-md-color-bg: transparent;
1930
+ max-width: 920px;
1931
+ margin: 0 auto;
1932
+ }
1933
+
1934
+ .ark-agentic-file-viewer-media {
1935
+ background: var(--color-bg-5);
1936
+ flex: 1;
1937
+ justify-content: center;
1938
+ align-items: center;
1939
+ min-height: 120px;
1940
+ display: flex;
1941
+ overflow: hidden;
1942
+ }
1943
+
1944
+ .ark-agentic-file-viewer-media__stage {
1945
+ width: 100%;
1946
+ height: 100%;
1947
+ min-height: 320px;
1948
+ position: relative;
1949
+ }
1950
+
1951
+ .ark-agentic-file-viewer-media__audio {
1952
+ width: 100%;
1953
+ height: 72px;
1954
+ padding: 8px 12px;
1955
+ }
1956
+
1957
+ .ark-agentic-file-viewer-media .xgplayer video {
1958
+ object-fit: contain;
1959
+ }
1960
+
1961
+ .ark-agentic-file-viewer-media[data-selection-active] {
1962
+ flex-direction: column;
1963
+ gap: 8px;
1964
+ padding: 8px 0;
1965
+ }
1966
+
1967
+ .ark-agentic-file-viewer-media[data-selection-active] .ark-agentic-file-viewer-media__stage {
1968
+ min-height: 0;
1969
+ }
1970
+
1971
+ .ark-agentic-file-viewer-media__selection {
1972
+ flex-direction: column;
1973
+ flex: none;
1974
+ gap: 4px;
1975
+ width: min(720px, 100% - 48px);
1976
+ padding: 4px 0;
1977
+ display: flex;
1978
+ }
1979
+
1980
+ .ark-agentic-file-viewer-media__selection-hint {
1981
+ color: var(--color-text-2);
1982
+ font-size: 12px;
1983
+ line-height: 1.5;
1984
+ }
1985
+
1986
+ .ark-agentic-file-viewer-media__selection-rail {
1987
+ border: 1px solid var(--color-border-3);
1988
+ background: var(--color-bg-2);
1989
+ cursor: pointer;
1990
+ border-radius: 4px;
1991
+ height: 24px;
1992
+ position: relative;
1993
+ }
1994
+
1995
+ .ark-agentic-file-viewer-media__selection-rail:before {
1996
+ background: var(--color-border-2);
1997
+ content: "";
1998
+ pointer-events: none;
1999
+ border-radius: 4px;
2000
+ height: 8px;
2001
+ position: absolute;
2002
+ top: 50%;
2003
+ left: 4px;
2004
+ right: 4px;
2005
+ transform: translateY(-50%);
2006
+ }
2007
+
2008
+ .ark-agentic-file-viewer-media__selection[data-selection-active="true"] .ark-agentic-file-viewer-media__selection-rail:hover {
2009
+ border-color: rgb(var(--primary-6));
2010
+ }
2011
+
2012
+ .ark-agentic-file-viewer-media__selection-rail:focus-visible, .ark-agentic-file-viewer-media__selection-marker:focus-visible, .ark-agentic-file-viewer-media__selection-pending:focus-visible {
2013
+ outline: 2px solid rgb(var(--primary-6));
2014
+ outline-offset: 3px;
2015
+ }
2016
+
2017
+ .ark-agentic-file-viewer-media__selection[data-selection-active="false"] .ark-agentic-file-viewer-media__selection-rail {
2018
+ cursor: default;
2019
+ opacity: .5;
2020
+ }
2021
+
2022
+ .ark-agentic-file-viewer-media__selection-range {
2023
+ background: rgb(var(--primary-6));
2024
+ border-radius: 4px;
2025
+ height: 8px;
2026
+ position: absolute;
2027
+ top: 50%;
2028
+ transform: translateY(-50%);
2029
+ }
2030
+
2031
+ .ark-agentic-file-viewer-media__selection-marker, .ark-agentic-file-viewer-media__selection-pending {
2032
+ border: 2px solid rgb(var(--primary-6));
2033
+ background: var(--color-bg-2);
2034
+ cursor: pointer;
2035
+ border-radius: 50%;
2036
+ width: 14px;
2037
+ height: 14px;
2038
+ padding: 0;
2039
+ position: absolute;
2040
+ top: 50%;
2041
+ transform: translate(-50%, -50%);
2042
+ }
2043
+
2044
+ .ark-agentic-file-viewer-media__selection-marker.is-start {
2045
+ left: 0;
2046
+ }
2047
+
2048
+ .ark-agentic-file-viewer-media__selection-marker.is-end {
2049
+ left: 100%;
2050
+ }
2051
+
2052
+ .ark-agentic-file-viewer-media__selection-pending {
2053
+ background: rgb(var(--primary-6));
2054
+ }
2055
+
2056
+ .ark-agentic-file-viewer-3d {
2057
+ flex: 1;
2058
+ min-height: 0;
2059
+ display: flex;
2060
+ position: relative;
2061
+ overflow: hidden;
2062
+ }
2063
+
2064
+ .ark-agentic-file-viewer-3d > * {
2065
+ flex: 1;
2066
+ min-height: 0;
2067
+ }
2068
+
2069
+ .ark-agentic-file-viewer-pdf {
2070
+ background: var(--agentic-file-viewer-internal-document-backdrop);
2071
+ flex: 1;
2072
+ min-width: 0;
2073
+ min-height: 0;
2074
+ display: flex;
2075
+ }
2076
+
2077
+ .ark-agentic-file-viewer-pdf[data-minimap="true"] {
2078
+ gap: 16px;
2079
+ }
2080
+
2081
+ .ark-agentic-file-viewer-pdf[data-minimap="true"] .ark-agentic-file-viewer-pdf__stage {
2082
+ box-sizing: border-box;
2083
+ padding: 20px 20px 24px 0;
2084
+ }
2085
+
2086
+ .ark-agentic-file-viewer-pdf__stage {
2087
+ flex: 1;
2088
+ min-width: 0;
2089
+ min-height: 0;
2090
+ position: relative;
2091
+ }
2092
+
2093
+ .ark-agentic-file-viewer-pdf__viewport, .ark-agentic-file-viewer-pdf__gesture {
2094
+ width: 100%;
2095
+ height: 100%;
2096
+ min-height: 0;
2097
+ }
2098
+
2099
+ .ark-agentic-file-viewer-pdf__viewport {
2100
+ overscroll-behavior: contain;
2101
+ overflow-anchor: none;
2102
+ overflow: auto;
2103
+ }
2104
+
2105
+ .ark-agentic-file-viewer-pdf__viewport[data-page-flow="page"] {
2106
+ visibility: hidden;
2107
+ overflow: hidden;
2108
+ }
2109
+
2110
+ .ark-agentic-file-viewer-pdf__single-page {
2111
+ z-index: 1;
2112
+ overscroll-behavior: contain;
2113
+ display: flex;
2114
+ position: absolute;
2115
+ inset: 0;
2116
+ overflow: auto;
2117
+ }
2118
+
2119
+ .ark-agentic-file-viewer-pdf__single-page-gesture {
2120
+ padding: var(--agentic-file-viewer-internal-page-gap);
2121
+ box-sizing: border-box;
2122
+ flex: none;
2123
+ margin: auto;
2124
+ }
2125
+
2126
+ .ark-agentic-file-viewer-pdf__single-page-sheet {
2127
+ flex: none;
2128
+ position: relative;
2129
+ }
2130
+
2131
+ .ark-agentic-file-viewer-pdf__single-page-sheet > .ark-agentic-file-viewer-pdf__page {
2132
+ width: 100%;
2133
+ height: 100%;
2134
+ }
2135
+
2136
+ .ark-agentic-file-viewer-pdf__scroller > :first-child {
2137
+ margin-top: 0;
2138
+ }
2139
+
2140
+ .ark-agentic-file-viewer-pdf__page {
2141
+ background: var(--color-bg-1);
2142
+ box-shadow: 0 1px 3px color-mix(in srgb, var(--color-black) 12%, transparent), 0 2px 8px color-mix(in srgb, var(--color-black) 8%, transparent);
2143
+ position: relative;
2144
+ overflow: hidden;
2145
+ }
2146
+
2147
+ .ark-agentic-file-viewer-pdf__render-layer {
2148
+ object-fit: contain;
2149
+ width: 100%;
2150
+ height: 100%;
2151
+ display: block;
2152
+ }
2153
+
2154
+ .ark-agentic-file-viewer-pdf__annotations {
2155
+ z-index: 2;
2156
+ pointer-events: none;
2157
+ position: absolute;
2158
+ inset: 0;
2159
+ overflow: hidden;
2160
+ }
2161
+
2162
+ .ark-agentic-file-viewer-pdf__annotation {
2163
+ opacity: var(--agentic-file-viewer-annotation-fill-opacity, .22);
2164
+ mix-blend-mode: multiply;
2165
+ display: block;
2166
+ position: absolute;
2167
+ }
2168
+
2169
+ @media (width <= 560px), (pointer: coarse) {
2170
+ .ark-agentic-file-viewer-pdf__scroller {
2171
+ padding-block: 8px;
2172
+ }
2173
+ }
2174
+
2175
+ .ark-agentic-file-viewer-pdf[data-document-backdrop="false"] {
2176
+ --agentic-file-viewer-internal-document-backdrop: transparent;
2177
+ --agentic-file-viewer-internal-page-gap: 0px;
2178
+ }
2179
+
2180
+ .ark-agentic-file-viewer-pdf[data-document-backdrop="false"] .ark-agentic-file-viewer-pdf__stage, .ark-agentic-file-viewer-pdf[data-document-backdrop="false"] .ark-agentic-file-viewer-pdf__scroller {
2181
+ padding: 0;
2182
+ }
2183
+
2184
+ .ark-agentic-file-viewer-pptx {
2185
+ flex-direction: column;
2186
+ flex: 1;
2187
+ width: 100%;
2188
+ min-width: 0;
2189
+ min-height: 0;
2190
+ display: flex;
2191
+ }
2192
+
2193
+ .ark-agentic-file-viewer-pptx__content {
2194
+ background: var(--agentic-file-viewer-internal-document-backdrop);
2195
+ flex: 1;
2196
+ gap: 16px;
2197
+ min-width: 0;
2198
+ min-height: 0;
2199
+ display: flex;
2200
+ }
2201
+
2202
+ .ark-agentic-file-viewer-pptx__content > .ark-agentic-file-viewer-pptx__viewport {
2203
+ padding: 20px 20px 24px;
2204
+ }
2205
+
2206
+ .ark-agentic-file-viewer-pptx[data-initial-fit="fit-page"] .ark-agentic-file-viewer-pptx__content > .ark-agentic-file-viewer-pptx__viewport, .ark-agentic-file-viewer-pptx[data-initial-fit="fit-page"] .ark-agentic-file-viewer-pptx__content > .ark-agentic-file-viewer-minimap {
2207
+ padding-block: 0;
2208
+ }
2209
+
2210
+ .ark-agentic-file-viewer-pptx__viewport {
2211
+ background: var(--agentic-file-viewer-internal-document-backdrop);
2212
+ box-sizing: border-box;
2213
+ flex: 1;
2214
+ width: 100%;
2215
+ min-width: 0;
2216
+ min-height: 0;
2217
+ padding: 12px;
2218
+ overflow: auto;
2219
+ }
2220
+
2221
+ .ark-agentic-file-viewer-pptx[data-page-flow="continuous"] .ark-agentic-file-viewer-pptx__viewport [data-slide-index] {
2222
+ margin-bottom: var(--agentic-file-viewer-internal-page-gap) !important;
2223
+ }
2224
+
2225
+ .ark-agentic-file-viewer-pptx__notice {
2226
+ color: var(--agentic-file-viewer-muted, var(--color-text-3));
2227
+ background: var(--agentic-file-viewer-control, var(--color-bg-2));
2228
+ border-top: 1px solid var(--agentic-file-viewer-border, var(--color-border-2));
2229
+ flex: none;
2230
+ padding: 4px 12px;
2231
+ font-size: 11px;
2232
+ }
2233
+
2234
+ .ark-agentic-file-viewer-pptx__annotation {
2235
+ pointer-events: none;
2236
+ mix-blend-mode: multiply;
2237
+ }
2238
+
2239
+ .ark-agentic-file-viewer-pptx[data-document-backdrop="false"] {
2240
+ --agentic-file-viewer-internal-document-backdrop: transparent;
2241
+ --agentic-file-viewer-internal-page-gap: 0px;
2242
+ }
2243
+
2244
+ .ark-agentic-file-viewer-pptx[data-document-backdrop="false"] .ark-agentic-file-viewer-pptx__viewport {
2245
+ padding: 0;
2246
+ }
2247
+
2248
+ .ark-agentic-file-viewer-table {
2249
+ flex-direction: column;
2250
+ flex: 1;
2251
+ min-height: 0;
2252
+ display: flex;
2253
+ }
2254
+
2255
+ .ark-agentic-file-viewer-table__container {
2256
+ flex: 1;
2257
+ min-height: 0;
2258
+ position: relative;
2259
+ overflow: hidden;
2260
+ }
2261
+
2262
+ .ark-agentic-file-viewer-table__partial-notice, .ark-agentic-file-viewer-table__warning {
2263
+ background: var(--agentic-file-viewer-control);
2264
+ border-bottom: 1px solid var(--agentic-file-viewer-border);
2265
+ color: var(--agentic-file-viewer-muted);
2266
+ flex: none;
2267
+ padding: 6px 12px;
2268
+ font-size: 12px;
2269
+ }
2270
+
2271
+ .ark-agentic-file-viewer-table__error {
2272
+ color: rgb(var(--danger-6));
2273
+ justify-content: center;
2274
+ align-items: center;
2275
+ font-size: 14px;
2276
+ display: flex;
2277
+ position: absolute;
2278
+ inset: 0;
2279
+ }
2280
+
2281
+ .ark-agentic-file-viewer-table__container footer > section > :not(:first-child), .ark-agentic-file-viewer-table__container footer [class*="zoom-slider"] {
2282
+ display: none !important;
2283
+ }
2284
+
2285
+ .ark-agentic-file-viewer-table__container {
2286
+ --univer-white: var(--color-bg-1);
2287
+ --univer-black: var(--color-text-1);
2288
+ --univer-primary-50: rgb(var(--primary-1));
2289
+ --univer-primary-100: rgb(var(--primary-2));
2290
+ --univer-primary-200: rgb(var(--primary-3));
2291
+ --univer-primary-300: rgb(var(--primary-4));
2292
+ --univer-primary-400: rgb(var(--primary-5));
2293
+ --univer-primary-500: rgb(var(--primary-6));
2294
+ --univer-primary-600: rgb(var(--primary-7));
2295
+ --univer-primary-700: rgb(var(--primary-8));
2296
+ --univer-primary-800: rgb(var(--primary-9));
2297
+ --univer-primary-900: rgb(var(--primary-10));
2298
+ --univer-gray-50: color-mix(in srgb, rgb(var(--gray-10)) 4%, var(--color-bg-1));
2299
+ --univer-gray-100: color-mix(in srgb, rgb(var(--gray-10)) 8%, var(--color-bg-1));
2300
+ --univer-gray-200: color-mix(in srgb, rgb(var(--gray-10)) 12%, var(--color-bg-1));
2301
+ --univer-gray-300: var(--color-border-2);
2302
+ --univer-gray-400: var(--color-text-4);
2303
+ --univer-gray-500: var(--color-text-3);
2304
+ --univer-gray-600: var(--color-text-2);
2305
+ --univer-gray-700: var(--color-text-2);
2306
+ --univer-gray-800: var(--color-text-1);
2307
+ --univer-gray-900: var(--color-text-1);
2308
+ --univer-red-50: rgb(var(--danger-1));
2309
+ --univer-red-100: rgb(var(--danger-2));
2310
+ --univer-red-200: rgb(var(--danger-3));
2311
+ --univer-red-300: rgb(var(--danger-4));
2312
+ --univer-red-400: rgb(var(--danger-5));
2313
+ --univer-red-500: rgb(var(--danger-6));
2314
+ --univer-red-600: rgb(var(--danger-7));
2315
+ --univer-red-700: rgb(var(--danger-8));
2316
+ --univer-red-800: rgb(var(--danger-9));
2317
+ --univer-red-900: rgb(var(--danger-10));
2318
+ --univer-green-50: rgb(var(--success-1));
2319
+ --univer-green-100: rgb(var(--success-2));
2320
+ --univer-green-200: rgb(var(--success-3));
2321
+ --univer-green-300: rgb(var(--success-4));
2322
+ --univer-green-400: rgb(var(--success-5));
2323
+ --univer-green-500: rgb(var(--success-6));
2324
+ --univer-green-600: rgb(var(--success-7));
2325
+ --univer-green-700: rgb(var(--success-8));
2326
+ --univer-green-800: rgb(var(--success-9));
2327
+ --univer-green-900: rgb(var(--success-10));
2328
+ --univer-orange-50: rgb(var(--warning-1));
2329
+ --univer-orange-100: rgb(var(--warning-2));
2330
+ --univer-orange-200: rgb(var(--warning-3));
2331
+ --univer-orange-300: rgb(var(--warning-4));
2332
+ --univer-orange-400: rgb(var(--warning-5));
2333
+ --univer-orange-500: rgb(var(--warning-6));
2334
+ --univer-orange-600: rgb(var(--warning-7));
2335
+ --univer-orange-700: rgb(var(--warning-8));
2336
+ --univer-orange-800: rgb(var(--warning-9));
2337
+ --univer-orange-900: rgb(var(--warning-10));
2338
+ --univer-blue-50: rgb(var(--primary-1));
2339
+ --univer-blue-100: rgb(var(--primary-2));
2340
+ --univer-blue-200: rgb(var(--primary-3));
2341
+ --univer-blue-300: rgb(var(--primary-4));
2342
+ --univer-blue-400: rgb(var(--primary-5));
2343
+ --univer-blue-500: rgb(var(--primary-6));
2344
+ --univer-blue-600: rgb(var(--primary-7));
2345
+ --univer-blue-700: rgb(var(--primary-8));
2346
+ --univer-blue-800: rgb(var(--primary-9));
2347
+ --univer-blue-900: rgb(var(--primary-10));
2348
+ }
2349
+
2350
+ .ark-agentic-file-viewer-text {
2351
+ background: var(--agentic-file-viewer-surface, var(--color-bg-1));
2352
+ min-width: 0;
2353
+ min-height: 0;
2354
+ color: var(--agentic-file-viewer-foreground, var(--color-text-1));
2355
+ flex: 1;
2356
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
2357
+ font-size: 13px;
2358
+ line-height: 1.6;
2359
+ display: flex;
2360
+ overflow: hidden;
2361
+ }
2362
+
2363
+ .ark-agentic-file-viewer-text__scroll {
2364
+ flex: 1;
2365
+ min-width: 0;
2366
+ overflow: auto;
2367
+ }
2368
+
2369
+ .ark-agentic-file-viewer-text__partial {
2370
+ border-bottom: 1px solid var(--agentic-file-viewer-border, var(--color-border-2));
2371
+ color: var(--agentic-file-viewer-muted, var(--color-text-3));
2372
+ padding: 8px 12px;
2373
+ font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
2374
+ font-size: 12px;
2375
+ }
2376
+
2377
+ .ark-agentic-file-viewer-text__lines {
2378
+ min-width: max-content;
2379
+ padding: 8px 0;
2380
+ }
2381
+
2382
+ .ark-agentic-file-viewer-text__line {
2383
+ white-space: pre;
2384
+ min-width: 0;
2385
+ display: flex;
2386
+ }
2387
+
2388
+ @supports (content-visibility: auto) {
2389
+ .ark-agentic-file-viewer-text__line {
2390
+ contain-intrinsic-size: 21px;
2391
+ content-visibility: auto;
2392
+ }
2393
+ }
2394
+
2395
+ .ark-agentic-file-viewer-text__gutter {
2396
+ z-index: 1;
2397
+ box-sizing: border-box;
2398
+ color: var(--agentic-file-viewer-muted, var(--color-text-3));
2399
+ text-align: right;
2400
+ -webkit-user-select: none;
2401
+ user-select: none;
2402
+ background: var(--agentic-file-viewer-surface, var(--color-bg-1));
2403
+ border-right: 1px solid var(--agentic-file-viewer-border, var(--color-border-2));
2404
+ flex: 0 0 56px;
2405
+ align-self: flex-start;
2406
+ padding: 0 12px;
2407
+ position: sticky;
2408
+ left: 0;
2409
+ }
2410
+
2411
+ .ark-agentic-file-viewer-text__content {
2412
+ white-space: pre;
2413
+ word-break: normal;
2414
+ flex: none;
2415
+ min-width: max-content;
2416
+ padding: 0 16px;
2417
+ }
2418
+
2419
+ .ark-agentic-file-viewer-text[data-wrap="true"] .ark-agentic-file-viewer-text__lines {
2420
+ min-width: 0;
2421
+ }
2422
+
2423
+ .ark-agentic-file-viewer-text[data-wrap="true"] .ark-agentic-file-viewer-text__content {
2424
+ white-space: pre-wrap;
2425
+ overflow-wrap: anywhere;
2426
+ flex: 1;
2427
+ min-width: 0;
2428
+ }
2429
+
2430
+ .ark-agentic-file-viewer-text__hit {
2431
+ background: var(--agentic-file-viewer-search-hit-color, var(--color-border-3));
2432
+ color: inherit;
2433
+ }
2434
+
2435
+ .ark-agentic-file-viewer-text__hit.is-current {
2436
+ background: var(--agentic-file-viewer-search-current-color, rgb(var(--warning-6)));
2437
+ box-shadow: inset 0 -2px var(--agentic-file-viewer-search-current-border-color, rgb(var(--warning-6)));
2438
+ }
2439
+
2440
+ .ark-agentic-file-viewer-word {
2441
+ flex-direction: column;
2442
+ flex: 1;
2443
+ min-height: 0;
2444
+ display: flex;
2445
+ overflow: hidden;
2446
+ }
2447
+
2448
+ .ark-agentic-file-viewer-word__content {
2449
+ background: var(--agentic-file-viewer-internal-document-backdrop);
2450
+ flex: 1;
2451
+ gap: 16px;
2452
+ min-width: 0;
2453
+ min-height: 0;
2454
+ display: flex;
2455
+ }
2456
+
2457
+ .ark-agentic-file-viewer-word__content > .ark-agentic-file-viewer-word__layout-viewport {
2458
+ padding-top: 20px;
2459
+ padding-bottom: 24px;
2460
+ }
2461
+
2462
+ .ark-agentic-file-viewer-word[data-initial-fit="fit-page"] .ark-agentic-file-viewer-word__content > .ark-agentic-file-viewer-word__layout-viewport, .ark-agentic-file-viewer-word[data-initial-fit="fit-page"] .ark-agentic-file-viewer-word__content > .ark-agentic-file-viewer-minimap {
2463
+ padding-block: 0;
2464
+ }
2465
+
2466
+ .ark-agentic-file-viewer-word__minimap-preview {
2467
+ width: 100%;
2468
+ height: 100%;
2469
+ overflow: hidden;
2470
+ }
2471
+
2472
+ .ark-agentic-file-viewer-word__minimap-preview .docx-wrapper {
2473
+ background: none;
2474
+ padding: 0;
2475
+ }
2476
+
2477
+ .ark-agentic-file-viewer-word__degrade-notice {
2478
+ color: rgb(var(--warning-6));
2479
+ background: var(--color-border-1);
2480
+ border-bottom: 1px solid rgb(var(--warning-6));
2481
+ flex: none;
2482
+ padding: 6px 12px;
2483
+ font-size: 12px;
2484
+ }
2485
+
2486
+ .ark-agentic-file-viewer-word__notice {
2487
+ color: var(--agentic-file-viewer-muted);
2488
+ background: var(--agentic-file-viewer-control);
2489
+ border-top: 1px solid var(--agentic-file-viewer-border);
2490
+ flex: none;
2491
+ padding: 4px 12px;
2492
+ font-size: 11px;
2493
+ }
2494
+
2495
+ .ark-agentic-file-viewer-word__layout-viewport {
2496
+ background: var(--agentic-file-viewer-internal-document-backdrop);
2497
+ flex: 1;
2498
+ justify-content: flex-start;
2499
+ align-items: flex-start;
2500
+ min-height: 0;
2501
+ padding: 12px;
2502
+ display: flex;
2503
+ position: relative;
2504
+ overflow: auto;
2505
+ }
2506
+
2507
+ .ark-agentic-file-viewer-word__zoom-stage {
2508
+ flex-shrink: 0;
2509
+ margin-inline: auto;
2510
+ }
2511
+
2512
+ .ark-agentic-file-viewer-word__layout {
2513
+ transform-origin: 0 0;
2514
+ }
2515
+
2516
+ .ark-agentic-file-viewer-word__layout .docx-wrapper {
2517
+ background: none;
2518
+ padding: 0;
2519
+ }
2520
+
2521
+ .ark-agentic-file-viewer-word__layout .docx-page, .ark-agentic-file-viewer-word__layout section.docx {
2522
+ box-shadow: 0 1px 3px color-mix(in srgb, var(--color-black) 12%, transparent), 0 2px 8px color-mix(in srgb, var(--color-black) 8%, transparent);
2523
+ margin-bottom: var(--agentic-file-viewer-internal-page-gap) !important;
2524
+ }
2525
+
2526
+ .ark-agentic-file-viewer-word__reading {
2527
+ flex: 1;
2528
+ min-height: 0;
2529
+ padding: 16px 24px;
2530
+ line-height: 1.7;
2531
+ overflow: auto;
2532
+ }
2533
+
2534
+ .ark-agentic-file-viewer-word__reading img {
2535
+ max-width: 100%;
2536
+ }
2537
+
2538
+ .ark-agentic-file-viewer-word__reading table {
2539
+ border-collapse: collapse;
2540
+ }
2541
+
2542
+ .ark-agentic-file-viewer-word__reading table td, .ark-agentic-file-viewer-word__reading table th {
2543
+ border: 1px solid var(--agentic-file-viewer-border);
2544
+ padding: 4px 8px;
2545
+ }
2546
+
2547
+ .ark-agentic-file-viewer-word[data-document-backdrop="false"] {
2548
+ --agentic-file-viewer-internal-document-backdrop: transparent;
2549
+ --agentic-file-viewer-internal-page-gap: 0px;
2550
+ }
2551
+
2552
+ .ark-agentic-file-viewer-word[data-document-backdrop="false"] .ark-agentic-file-viewer-word__layout-viewport, .ark-agentic-file-viewer-word[data-document-backdrop="false"] .ark-agentic-file-viewer-word__reading {
2553
+ padding: 0;
2554
+ }
2555
+
2556
+ .ark-agentic-file-viewer {
2557
+ --agentic-file-viewer-annotation-color: rgb(var(--primary-6));
2558
+ --agentic-file-viewer-annotation-fill-opacity: .22;
2559
+ --agentic-file-viewer-annotation-border-opacity: .72;
2560
+ --agentic-file-viewer-search-hit-color: var(--color-border-3);
2561
+ --agentic-file-viewer-search-current-color: rgb(var(--warning-6));
2562
+ --agentic-file-viewer-search-current-border-color: rgb(var(--warning-6));
2563
+ --agentic-file-viewer-internal-page-gap: var(--agentic-file-viewer-page-gap, 16px);
2564
+ --agentic-file-viewer-internal-document-backdrop: var(--color-bg-3);
2565
+ --agentic-file-viewer-surface: var(--color-bg-1);
2566
+ --agentic-file-viewer-surface-elevated: var(--color-bg-1);
2567
+ --agentic-file-viewer-foreground: var(--color-text-1);
2568
+ --agentic-file-viewer-muted: var(--color-text-3);
2569
+ --agentic-file-viewer-border: var(--color-border-2);
2570
+ --agentic-file-viewer-border-strong: var(--color-border-3);
2571
+ --agentic-file-viewer-control: var(--color-bg-4);
2572
+ --agentic-file-viewer-control-hover: var(--color-bg-5);
2573
+ --agentic-file-viewer-control-active: var(--color-bg-5);
2574
+ --agentic-file-viewer-accent: rgb(var(--primary-6));
2575
+ --agentic-file-viewer-accent-soft: color-mix(in srgb, rgb(var(--primary-6)) 8%, transparent);
2576
+ --agentic-file-viewer-shadow-sm: 0 1px 2px color-mix(in srgb, var(--color-black) 4%, transparent);
2577
+ --agentic-file-viewer-shadow-md: 0 2px 6px color-mix(in srgb, var(--color-black) 6%, transparent), 0 1px 2px color-mix(in srgb, var(--color-black) 4%, transparent);
2578
+ --agentic-file-viewer-shadow-inset: inset 0 1px 2px color-mix(in srgb, var(--color-black) 6%, transparent);
2579
+ border: 1px solid var(--agentic-file-viewer-border);
2580
+ background: var(--agentic-file-viewer-surface);
2581
+ min-width: 0;
2582
+ max-width: 100%;
2583
+ min-height: 240px;
2584
+ color: var(--agentic-file-viewer-foreground);
2585
+ -webkit-font-smoothing: antialiased;
2586
+ -moz-osx-font-smoothing: grayscale;
2587
+ border-radius: 10px;
2588
+ flex-direction: column;
2589
+ font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
2590
+ font-size: 13px;
2591
+ display: flex;
2592
+ overflow: hidden;
2593
+ }
2594
+
2595
+ .ark-agentic-file-viewer:focus {
2596
+ outline: none;
2597
+ }
2598
+
2599
+ .ark-agentic-file-viewer[data-theme="dark"] {
2600
+ --agentic-file-viewer-annotation-border-opacity: .85;
2601
+ --agentic-file-viewer-internal-document-backdrop: transparent;
2602
+ }
2603
+
2604
+ .ark-agentic-file-viewer.is-fullscreen {
2605
+ z-index: 2147483600;
2606
+ border: 0;
2607
+ border-radius: 0;
2608
+ position: fixed;
2609
+ inset: 0;
2610
+ width: 100vw !important;
2611
+ height: 100dvh !important;
2612
+ min-height: 100dvh !important;
2613
+ }
2614
+
2615
+ .ark-agentic-file-viewer__toolbar, .ark-agentic-file-viewer__toolbar * {
2616
+ box-sizing: border-box;
2617
+ }
2618
+
2619
+ .ark-agentic-file-viewer__toolbar {
2620
+ border-bottom: 1px solid var(--agentic-file-viewer-border);
2621
+ background: var(--agentic-file-viewer-surface);
2622
+ min-height: 44px;
2623
+ box-shadow: var(--agentic-file-viewer-shadow-sm);
2624
+ z-index: 2;
2625
+ flex: none;
2626
+ grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
2627
+ align-items: center;
2628
+ gap: 6px;
2629
+ padding: 7px 12px;
2630
+ display: grid;
2631
+ position: relative;
2632
+ }
2633
+
2634
+ .ark-agentic-file-viewer__toolbar-start, .ark-agentic-file-viewer__toolbar-center, .ark-agentic-file-viewer__toolbar-end {
2635
+ flex-wrap: nowrap;
2636
+ align-items: center;
2637
+ gap: 6px;
2638
+ width: max-content;
2639
+ max-width: 100%;
2640
+ display: flex;
2641
+ }
2642
+
2643
+ .ark-agentic-file-viewer__toolbar-start {
2644
+ grid-column: 1;
2645
+ justify-self: start;
2646
+ }
2647
+
2648
+ .ark-agentic-file-viewer__toolbar-center {
2649
+ grid-column: 2;
2650
+ justify-self: center;
2651
+ gap: 14px;
2652
+ }
2653
+
2654
+ .ark-agentic-file-viewer__toolbar-end {
2655
+ grid-column: 3;
2656
+ justify-self: end;
2657
+ }
2658
+
2659
+ .ark-agentic-file-viewer__toolbar[data-layout="split"] {
2660
+ grid-template-columns: minmax(0, 1fr) max-content;
2661
+ }
2662
+
2663
+ .ark-agentic-file-viewer__toolbar[data-layout="split"] .ark-agentic-file-viewer__toolbar-start {
2664
+ grid-area: 1 / 1;
2665
+ }
2666
+
2667
+ .ark-agentic-file-viewer__toolbar[data-layout="split"] .ark-agentic-file-viewer__toolbar-center {
2668
+ scrollbar-width: thin;
2669
+ grid-area: 2 / 1 / auto / -1;
2670
+ overflow-x: auto;
2671
+ }
2672
+
2673
+ .ark-agentic-file-viewer__toolbar[data-layout="split"] .ark-agentic-file-viewer__toolbar-end {
2674
+ grid-area: 1 / 2;
2675
+ }
2676
+
2677
+ .ark-agentic-file-viewer__toolbar[data-layout="stacked"] {
2678
+ grid-template-columns: minmax(0, 1fr);
2679
+ }
2680
+
2681
+ .ark-agentic-file-viewer__toolbar[data-layout="stacked"] .ark-agentic-file-viewer__toolbar-start {
2682
+ scrollbar-width: thin;
2683
+ grid-area: 1 / 1;
2684
+ overflow-x: auto;
2685
+ }
2686
+
2687
+ .ark-agentic-file-viewer__toolbar[data-layout="stacked"] .ark-agentic-file-viewer__toolbar-center {
2688
+ scrollbar-width: thin;
2689
+ grid-area: 2 / 1;
2690
+ overflow-x: auto;
2691
+ }
2692
+
2693
+ .ark-agentic-file-viewer__toolbar[data-layout="stacked"] .ark-agentic-file-viewer__toolbar-end {
2694
+ scrollbar-width: thin;
2695
+ grid-area: 3 / 1;
2696
+ overflow-x: auto;
2697
+ }
2698
+
2699
+ .ark-agentic-file-viewer__group {
2700
+ flex-wrap: nowrap;
2701
+ flex: none;
2702
+ align-items: center;
2703
+ gap: 3px;
2704
+ min-width: 0;
2705
+ display: flex;
2706
+ }
2707
+
2708
+ .ark-agentic-file-viewer .ark-agentic-file-viewer__view-mode-toggle:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) {
2709
+ background: var(--agentic-file-viewer-control);
2710
+ height: 26px;
2711
+ box-shadow: inset 0 0 4px color-mix(in srgb, var(--color-black) 5%, transparent);
2712
+ border-radius: 10px;
2713
+ align-items: center;
2714
+ padding: 0 0 0 4px;
2715
+ line-height: 20px;
2716
+ display: inline-flex;
2717
+ }
2718
+
2719
+ .ark-agentic-file-viewer .ark-agentic-file-viewer__view-mode-toggle:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]).ark-agentic-file-viewer__view-mode-toggle--preview {
2720
+ padding: 0 4px 0 0;
2721
+ }
2722
+
2723
+ .ark-agentic-file-viewer .ark-agentic-file-viewer__view-mode-toggle:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]).ark-agentic-file-viewer__view-mode-toggle--preview :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]):last-child:not(:is(.arco-radio-checked, [class$="-arco-radio-checked"], [class*="-arco-radio-checked "])) {
2724
+ border-radius: 9px 10px 10px 9px;
2725
+ margin-right: -4px;
2726
+ padding-right: 4px;
2727
+ }
2728
+
2729
+ .ark-agentic-file-viewer .ark-agentic-file-viewer__view-mode-toggle:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]).ark-agentic-file-viewer__view-mode-toggle--source :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]):first-child:not(:is(.arco-radio-checked, [class$="-arco-radio-checked"], [class*="-arco-radio-checked "])) {
2730
+ border-radius: 10px 9px 9px 10px;
2731
+ margin-left: -4px;
2732
+ padding-left: 4px;
2733
+ }
2734
+
2735
+ .ark-agentic-file-viewer .ark-agentic-file-viewer__view-mode-toggle:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]) {
2736
+ height: 26px;
2737
+ color: var(--color-text-2);
2738
+ background: none;
2739
+ border: 0;
2740
+ border-radius: 9px;
2741
+ align-items: center;
2742
+ margin: 0;
2743
+ font-size: 12px;
2744
+ line-height: 20px;
2745
+ display: inline-flex;
2746
+ }
2747
+
2748
+ .ark-agentic-file-viewer .ark-agentic-file-viewer__view-mode-toggle:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]):before, .ark-agentic-file-viewer .ark-agentic-file-viewer__view-mode-toggle:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]):after {
2749
+ display: none;
2750
+ }
2751
+
2752
+ .ark-agentic-file-viewer .ark-agentic-file-viewer__view-mode-toggle:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button-inner, [class$="-arco-radio-button-inner"], [class*="-arco-radio-button-inner "]) {
2753
+ border-radius: inherit;
2754
+ justify-content: center;
2755
+ align-items: center;
2756
+ height: 100%;
2757
+ padding: 0 10px;
2758
+ display: inline-flex;
2759
+ }
2760
+
2761
+ .ark-agentic-file-viewer .ark-agentic-file-viewer__view-mode-toggle:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]):hover:not(:is(.arco-radio-checked, [class$="-arco-radio-checked"], [class*="-arco-radio-checked "]), :is(.arco-radio-disabled, [class$="-arco-radio-disabled"], [class*="-arco-radio-disabled "])) {
2762
+ background: var(--agentic-file-viewer-control-hover);
2763
+ }
2764
+
2765
+ .ark-agentic-file-viewer .ark-agentic-file-viewer__view-mode-toggle:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]):is(.arco-radio-checked, [class$="-arco-radio-checked"], [class*="-arco-radio-checked "]) {
2766
+ border: .5px solid rgb(var(--primary-6));
2767
+ background: var(--color-primary-light-1);
2768
+ box-shadow: 0 5px 15px color-mix(in srgb, var(--color-black) 5%, transparent), 0 15px 35px -2px color-mix(in srgb, var(--color-black) 5%, transparent);
2769
+ color: rgb(var(--primary-6));
2770
+ border-radius: 10px;
2771
+ font-weight: 500;
2772
+ }
2773
+
2774
+ .ark-agentic-file-viewer .ark-agentic-file-viewer__view-mode-toggle:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-checked, [class$="-arco-radio-checked"], [class*="-arco-radio-checked "]) :is(.arco-radio-button-inner, [class$="-arco-radio-button-inner"], [class*="-arco-radio-button-inner "]) {
2775
+ padding: 0 8px;
2776
+ }
2777
+
2778
+ .ark-agentic-file-viewer .ark-agentic-file-viewer__view-mode-toggle:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]):is(.arco-radio-disabled, [class$="-arco-radio-disabled"], [class*="-arco-radio-disabled "]) {
2779
+ opacity: .5;
2780
+ }
2781
+
2782
+ .ark-agentic-file-viewer__view-mode-option {
2783
+ align-items: center;
2784
+ gap: 4px;
2785
+ display: inline-flex;
2786
+ }
2787
+
2788
+ .ark-agentic-file-viewer__view-mode-icon {
2789
+ flex: none;
2790
+ display: block;
2791
+ }
2792
+
2793
+ .ark-agentic-file-viewer__view-mode-icon path {
2794
+ stroke: currentColor;
2795
+ }
2796
+
2797
+ .ark-agentic-file-viewer__view-mode-label {
2798
+ clip-path: inset(50%);
2799
+ white-space: nowrap;
2800
+ width: 1px;
2801
+ height: 1px;
2802
+ position: absolute;
2803
+ overflow: hidden;
2804
+ }
2805
+
2806
+ .ark-agentic-file-viewer__view-mode-toggle :is(.arco-radio-checked, [class$="-arco-radio-checked"], [class*="-arco-radio-checked "]) .ark-agentic-file-viewer__view-mode-label {
2807
+ clip-path: none;
2808
+ width: auto;
2809
+ height: auto;
2810
+ position: static;
2811
+ }
2812
+
2813
+ .ark-agentic-file-viewer__view-mode-toggle--text:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) {
2814
+ background: var(--color-bg-4);
2815
+ border-radius: 8px;
2816
+ align-items: center;
2817
+ height: 26px;
2818
+ padding: 2px;
2819
+ display: inline-flex;
2820
+ }
2821
+
2822
+ .ark-agentic-file-viewer__view-mode-toggle--text:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]) {
2823
+ height: 22px;
2824
+ color: var(--color-text-3);
2825
+ letter-spacing: .156px;
2826
+ background: none;
2827
+ border: 0;
2828
+ border-radius: 6px;
2829
+ flex: none;
2830
+ align-items: center;
2831
+ margin: 0;
2832
+ line-height: 20px;
2833
+ display: inline-flex;
2834
+ }
2835
+
2836
+ .ark-agentic-file-viewer__view-mode-toggle--text:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]):before, .ark-agentic-file-viewer__view-mode-toggle--text:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]):after {
2837
+ display: none;
2838
+ }
2839
+
2840
+ .ark-agentic-file-viewer__view-mode-toggle--text:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button-inner, [class$="-arco-radio-button-inner"], [class*="-arco-radio-button-inner "]) {
2841
+ border-radius: inherit;
2842
+ white-space: nowrap;
2843
+ justify-content: center;
2844
+ align-items: center;
2845
+ height: 100%;
2846
+ padding: 0 10px;
2847
+ display: inline-flex;
2848
+ }
2849
+
2850
+ .ark-agentic-file-viewer__view-mode-toggle--text:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]):hover:not(:is(.arco-radio-checked, [class$="-arco-radio-checked"], [class*="-arco-radio-checked "]), :is(.arco-radio-disabled, [class$="-arco-radio-disabled"], [class*="-arco-radio-disabled "])) {
2851
+ background: var(--color-bg-5);
2852
+ }
2853
+
2854
+ .ark-agentic-file-viewer__view-mode-toggle--text:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]):is(.arco-radio-checked, [class$="-arco-radio-checked"], [class*="-arco-radio-checked "]) {
2855
+ background: var(--color-bg-1);
2856
+ box-shadow: inset 0 0 0 .5px var(--color-fill-1), 0 2px 3px color-mix(in srgb, var(--color-black) 5%, transparent);
2857
+ color: var(--color-text-1);
2858
+ border-radius: 7px;
2859
+ }
2860
+
2861
+ .ark-agentic-file-viewer__view-mode-toggle--text:is(.arco-radio-group-type-button, [class$="-arco-radio-group-type-button"], [class*="-arco-radio-group-type-button "]) :is(.arco-radio-button, [class$="-arco-radio-button"], [class*="-arco-radio-button "]):is(.arco-radio-disabled, [class$="-arco-radio-disabled"], [class*="-arco-radio-disabled "]) {
2862
+ opacity: .5;
2863
+ }
2864
+
2865
+ .ark-agentic-file-viewer__toolbar :is(.arco-btn-icon-only, [class$="-arco-btn-icon-only"], [class*="-arco-btn-icon-only "]) {
2866
+ justify-content: center;
2867
+ align-items: center;
2868
+ display: inline-flex;
2869
+ }
2870
+
2871
+ .ark-agentic-file-viewer__toolbar :is(.arco-btn-icon-only, [class$="-arco-btn-icon-only"], [class*="-arco-btn-icon-only "]) :is(.arco-btn-icon, [class$="-arco-btn-icon"], [class*="-arco-btn-icon "]), .ark-agentic-file-viewer__toolbar :is(.arco-btn-icon, [class$="-arco-btn-icon"], [class*="-arco-btn-icon "]) {
2872
+ justify-content: center;
2873
+ align-items: center;
2874
+ width: 100%;
2875
+ height: 100%;
2876
+ line-height: 0;
2877
+ display: inline-flex;
2878
+ }
2879
+
2880
+ .ark-agentic-file-viewer__toolbar :is(.arco-btn-icon, [class$="-arco-btn-icon"], [class*="-arco-btn-icon "]) svg {
2881
+ display: block;
2882
+ }
2883
+
2884
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__toolbar-action:is(.arco-btn, [class$="-arco-btn"], [class*="-arco-btn "]) {
2885
+ border: .5px solid var(--agentic-file-viewer-border-strong);
2886
+ background: var(--agentic-file-viewer-surface);
2887
+ width: 24px;
2888
+ height: 24px;
2889
+ color: var(--color-text-2);
2890
+ border-radius: 8px;
2891
+ flex: none;
2892
+ padding: 0;
2893
+ }
2894
+
2895
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__toolbar-action:is(.arco-btn, [class$="-arco-btn"], [class*="-arco-btn "]):hover {
2896
+ border-color: var(--agentic-file-viewer-accent);
2897
+ background: var(--agentic-file-viewer-accent-soft);
2898
+ color: var(--agentic-file-viewer-accent);
2899
+ }
2900
+
2901
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__toolbar-action:is(.arco-btn, [class$="-arco-btn"], [class*="-arco-btn "]).ark-agentic-file-viewer__search-trigger--active {
2902
+ border-color: var(--agentic-file-viewer-accent);
2903
+ color: var(--agentic-file-viewer-accent);
2904
+ }
2905
+
2906
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__toolbar-action:is(.arco-btn, [class$="-arco-btn"], [class*="-arco-btn "]) svg path {
2907
+ stroke: currentColor;
2908
+ }
2909
+
2910
+ .ark-agentic-file-viewer__search-panel {
2911
+ z-index: 3;
2912
+ border: .5px solid var(--agentic-file-viewer-border-strong);
2913
+ background: var(--agentic-file-viewer-surface-elevated);
2914
+ width: 280px;
2915
+ max-width: calc(100% - 20px);
2916
+ height: 32px;
2917
+ box-shadow: 0 5px 15px color-mix(in srgb, var(--color-black) 5%, transparent), 0 15px 35px -2px color-mix(in srgb, var(--color-black) 5%, transparent);
2918
+ border-radius: 10px;
2919
+ align-items: center;
2920
+ gap: 4px;
2921
+ padding: 3px 4px 3px 9px;
2922
+ display: flex;
2923
+ position: absolute;
2924
+ top: calc(100% + 10px);
2925
+ right: 10px;
2926
+ }
2927
+
2928
+ .ark-agentic-file-viewer__search-field-icon {
2929
+ flex: none;
2930
+ width: 14px;
2931
+ height: 14px;
2932
+ display: block;
2933
+ }
2934
+
2935
+ .ark-agentic-file-viewer__search-field-icon path {
2936
+ stroke: var(--color-text-2);
2937
+ }
2938
+
2939
+ .ark-agentic-file-viewer__search-input {
2940
+ width: 0;
2941
+ min-width: 0;
2942
+ height: 24px;
2943
+ color: var(--agentic-file-viewer-foreground);
2944
+ font: inherit;
2945
+ background: none;
2946
+ border: 0;
2947
+ outline: 0;
2948
+ flex: 1;
2949
+ padding: 0;
2950
+ font-size: 13px;
2951
+ }
2952
+
2953
+ .ark-agentic-file-viewer__search-input::placeholder {
2954
+ color: var(--agentic-file-viewer-muted);
2955
+ }
2956
+
2957
+ .ark-agentic-file-viewer__search-input::-webkit-search-cancel-button {
2958
+ display: none;
2959
+ }
2960
+
2961
+ .ark-agentic-file-viewer__search-count {
2962
+ color: var(--agentic-file-viewer-muted);
2963
+ font-variant-numeric: tabular-nums;
2964
+ white-space: nowrap;
2965
+ flex: none;
2966
+ font-size: 11px;
2967
+ }
2968
+
2969
+ .ark-agentic-file-viewer__search-divider {
2970
+ background: var(--agentic-file-viewer-border-strong);
2971
+ flex: none;
2972
+ width: .5px;
2973
+ height: 16px;
2974
+ }
2975
+
2976
+ .ark-agentic-file-viewer__search-nav, .ark-agentic-file-viewer__search-close {
2977
+ width: 24px;
2978
+ height: 24px;
2979
+ color: var(--color-text-2);
2980
+ cursor: pointer;
2981
+ background: none;
2982
+ border: 0;
2983
+ border-radius: 6px;
2984
+ flex: none;
2985
+ justify-content: center;
2986
+ align-items: center;
2987
+ padding: 0;
2988
+ display: inline-flex;
2989
+ }
2990
+
2991
+ .ark-agentic-file-viewer__search-nav:hover:not(:disabled), .ark-agentic-file-viewer__search-close:hover:not(:disabled) {
2992
+ background: var(--agentic-file-viewer-control-hover);
2993
+ }
2994
+
2995
+ .ark-agentic-file-viewer__search-nav:disabled, .ark-agentic-file-viewer__search-close:disabled {
2996
+ color: var(--agentic-file-viewer-border-strong);
2997
+ cursor: default;
2998
+ }
2999
+
3000
+ .ark-agentic-file-viewer__search-nav svg, .ark-agentic-file-viewer__search-close svg {
3001
+ display: block;
3002
+ }
3003
+
3004
+ .ark-agentic-file-viewer__search-nav svg path, .ark-agentic-file-viewer__search-close svg path {
3005
+ stroke: currentColor;
3006
+ }
3007
+
3008
+ .ark-agentic-file-viewer__search-up-icon {
3009
+ transform: rotate(180deg);
3010
+ }
3011
+
3012
+ .ark-agentic-file-viewer__toolbar-divider {
3013
+ background: var(--color-text-4);
3014
+ flex: none;
3015
+ width: 1px;
3016
+ height: 12px;
3017
+ display: block;
3018
+ }
3019
+
3020
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) :is(.arco-pagination-list, [class$="-arco-pagination-list"], [class*="-arco-pagination-list "]) {
3021
+ align-items: center;
3022
+ gap: 8px;
3023
+ display: flex;
3024
+ }
3025
+
3026
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) :is(.arco-pagination-item-prev, [class$="-arco-pagination-item-prev"], [class*="-arco-pagination-item-prev "]), .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) :is(.arco-pagination-item-next, [class$="-arco-pagination-item-next"], [class*="-arco-pagination-item-next "]) {
3027
+ border: .5px solid var(--agentic-file-viewer-border-strong);
3028
+ background: var(--agentic-file-viewer-surface);
3029
+ width: 20px;
3030
+ min-width: 20px;
3031
+ height: 20px;
3032
+ color: var(--color-text-2);
3033
+ border-radius: 6px;
3034
+ justify-content: center;
3035
+ align-items: center;
3036
+ line-height: 0;
3037
+ display: inline-flex;
3038
+ }
3039
+
3040
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) :is(.arco-pagination-item-disabled, [class$="-arco-pagination-item-disabled"], [class*="-arco-pagination-item-disabled "]) {
3041
+ background: var(--agentic-file-viewer-surface);
3042
+ color: var(--color-text-4);
3043
+ }
3044
+
3045
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) :is(.arco-pagination-item-simple-pager, [class$="-arco-pagination-item-simple-pager"], [class*="-arco-pagination-item-simple-pager "]) {
3046
+ align-items: center;
3047
+ height: 24px;
3048
+ margin: 0;
3049
+ display: inline-flex;
3050
+ }
3051
+
3052
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) :is(.arco-pagination-jumper, [class$="-arco-pagination-jumper"], [class*="-arco-pagination-jumper "]) {
3053
+ height: 24px;
3054
+ color: var(--color-text-1);
3055
+ background: none;
3056
+ border: 0;
3057
+ align-items: center;
3058
+ padding: 0 6px;
3059
+ font-size: 12px;
3060
+ line-height: 22px;
3061
+ display: inline-flex;
3062
+ }
3063
+
3064
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) :is(.arco-pagination-jumper, [class$="-arco-pagination-jumper"], [class*="-arco-pagination-jumper "]) > span {
3065
+ font-size: 12px;
3066
+ }
3067
+
3068
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) :is(.arco-pagination-jumper-input, [class$="-arco-pagination-jumper-input"], [class*="-arco-pagination-jumper-input "]):is(.arco-input, [class$="-arco-input"], [class*="-arco-input "]) {
3069
+ width: var(--agentic-file-viewer-page-number-width, 20px);
3070
+ height: 24px;
3071
+ color: var(--color-text-1);
3072
+ text-align: center;
3073
+ background: none;
3074
+ border: 0;
3075
+ border-radius: 3px;
3076
+ margin: 0;
3077
+ padding: 0 2px;
3078
+ font-size: 12px;
3079
+ }
3080
+
3081
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) :is(.arco-pagination-jumper-input, [class$="-arco-pagination-jumper-input"], [class*="-arco-pagination-jumper-input "]):is(.arco-input, [class$="-arco-input"], [class*="-arco-input "]):hover, .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) :is(.arco-pagination-jumper-input, [class$="-arco-pagination-jumper-input"], [class*="-arco-pagination-jumper-input "]):is(.arco-input, [class$="-arco-input"], [class*="-arco-input "]):focus {
3082
+ background: var(--agentic-file-viewer-control-hover);
3083
+ box-shadow: none;
3084
+ }
3085
+
3086
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) :is(.arco-pagination-jumper-separator, [class$="-arco-pagination-jumper-separator"], [class*="-arco-pagination-jumper-separator "]) {
3087
+ padding: 0 4px;
3088
+ }
3089
+
3090
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) svg {
3091
+ display: block;
3092
+ }
3093
+
3094
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__pagination:is(.arco-pagination-simple, [class$="-arco-pagination-simple"], [class*="-arco-pagination-simple "]) svg path {
3095
+ stroke: currentColor;
3096
+ }
3097
+
3098
+ .ark-agentic-file-viewer__page-chevron--previous {
3099
+ transform: rotate(180deg);
3100
+ }
3101
+
3102
+ .ark-agentic-file-viewer__zoom-controls, .ark-agentic-file-viewer__zoom-controls-scale, .ark-agentic-file-viewer__zoom-controls-fit {
3103
+ flex: none;
3104
+ align-items: center;
3105
+ display: inline-flex;
3106
+ }
3107
+
3108
+ .ark-agentic-file-viewer__zoom-controls {
3109
+ gap: 14px;
3110
+ }
3111
+
3112
+ .ark-agentic-file-viewer__zoom-controls-scale, .ark-agentic-file-viewer__zoom-controls-fit {
3113
+ gap: 8px;
3114
+ }
3115
+
3116
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__zoom-action:is(.arco-btn, [class$="-arco-btn"], [class*="-arco-btn "]) {
3117
+ width: 28px;
3118
+ height: 28px;
3119
+ color: var(--color-text-2);
3120
+ background: none;
3121
+ border: 0;
3122
+ border-radius: 6px;
3123
+ flex: none;
3124
+ justify-content: center;
3125
+ align-items: center;
3126
+ padding: 0;
3127
+ display: inline-flex;
3128
+ }
3129
+
3130
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__zoom-action:is(.arco-btn, [class$="-arco-btn"], [class*="-arco-btn "]):hover:not(:disabled) {
3131
+ background: var(--agentic-file-viewer-control-hover);
3132
+ }
3133
+
3134
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__zoom-action:is(.arco-btn, [class$="-arco-btn"], [class*="-arco-btn "]) svg path {
3135
+ stroke: currentColor;
3136
+ }
3137
+
3138
+ .ark-agentic-file-viewer__zoom-info {
3139
+ min-width: 28px;
3140
+ height: 28px;
3141
+ color: var(--color-text-1);
3142
+ font-variant-numeric: tabular-nums;
3143
+ letter-spacing: .036px;
3144
+ white-space: nowrap;
3145
+ -webkit-user-select: none;
3146
+ user-select: none;
3147
+ justify-content: center;
3148
+ align-items: center;
3149
+ font-size: 12px;
3150
+ line-height: 22px;
3151
+ display: inline-flex;
3152
+ }
3153
+
3154
+ .ark-agentic-file-viewer__zoom-editor {
3155
+ height: 28px;
3156
+ color: var(--color-text-1);
3157
+ font-variant-numeric: tabular-nums;
3158
+ background: none;
3159
+ border-radius: 4px;
3160
+ flex: none;
3161
+ justify-content: center;
3162
+ align-items: center;
3163
+ font-size: 12px;
3164
+ line-height: 22px;
3165
+ display: inline-flex;
3166
+ }
3167
+
3168
+ .ark-agentic-file-viewer__zoom-editor:hover, .ark-agentic-file-viewer__zoom-editor:focus-within {
3169
+ background: var(--agentic-file-viewer-control-hover);
3170
+ }
3171
+
3172
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__zoom-editor-input:is(.arco-input, [class$="-arco-input"], [class*="-arco-input "]) {
3173
+ width: 26px;
3174
+ min-width: 0;
3175
+ height: 22px;
3176
+ box-shadow: none;
3177
+ color: inherit;
3178
+ font: inherit;
3179
+ text-align: right;
3180
+ background: none;
3181
+ border: 0;
3182
+ outline: 0;
3183
+ padding: 0;
3184
+ }
3185
+
3186
+ .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__zoom-editor-input:is(.arco-input, [class$="-arco-input"], [class*="-arco-input "]):hover, .ark-agentic-file-viewer__toolbar .ark-agentic-file-viewer__zoom-editor-input:is(.arco-input, [class$="-arco-input"], [class*="-arco-input "]):focus {
3187
+ box-shadow: none;
3188
+ background: none;
3189
+ border: 0;
3190
+ }
3191
+
3192
+ .ark-agentic-file-viewer__body {
3193
+ flex: 1;
3194
+ min-width: 0;
3195
+ min-height: 0;
3196
+ display: flex;
3197
+ }
3198
+
3199
+ .ark-agentic-file-viewer__state {
3200
+ min-height: 160px;
3201
+ color: var(--agentic-file-viewer-muted);
3202
+ flex: 1;
3203
+ justify-content: center;
3204
+ align-items: center;
3205
+ gap: 12px;
3206
+ padding: 24px;
3207
+ display: flex;
3208
+ }
3209
+
3210
+ .ark-agentic-file-viewer__actions {
3211
+ gap: 8px;
3212
+ display: flex;
3213
+ }
3214
+
3215
+ .ark-agentic-file-viewer__state--confirm {
3216
+ text-align: center;
3217
+ overflow-wrap: anywhere;
3218
+ flex-direction: column;
3219
+ min-width: 0;
3220
+ }
3221
+
3222
+ .ark-agentic-file-viewer__fallback {
3223
+ text-align: center;
3224
+ flex-direction: column;
3225
+ flex: 1;
3226
+ align-items: center;
3227
+ gap: 8px;
3228
+ min-width: 0;
3229
+ max-width: 100%;
3230
+ min-height: 0;
3231
+ padding: 24px;
3232
+ line-height: 1.5;
3233
+ display: flex;
3234
+ overflow: auto;
3235
+ }
3236
+
3237
+ .ark-agentic-file-viewer__fallback > :first-child {
3238
+ margin-top: auto;
3239
+ }
3240
+
3241
+ .ark-agentic-file-viewer__fallback > :last-child {
3242
+ margin-bottom: auto;
3243
+ }
3244
+
3245
+ .ark-agentic-file-viewer__fallback > * {
3246
+ flex-shrink: 0;
3247
+ max-width: 100%;
3248
+ }
3249
+
3250
+ .ark-agentic-file-viewer__fallback-icon {
3251
+ color: var(--agentic-file-viewer-muted);
3252
+ display: flex;
3253
+ }
3254
+
3255
+ .ark-agentic-file-viewer__fallback--error .ark-agentic-file-viewer__fallback-icon {
3256
+ color: rgb(var(--warning-6));
3257
+ }
3258
+
3259
+ .ark-agentic-file-viewer__fallback-title, .ark-agentic-file-viewer__fallback-description, .ark-agentic-file-viewer__fallback-filename {
3260
+ overflow-wrap: anywhere;
3261
+ min-width: 0;
3262
+ }
3263
+
3264
+ .ark-agentic-file-viewer__fallback-title {
3265
+ color: var(--agentic-file-viewer-foreground);
3266
+ font-size: 14px;
3267
+ font-weight: 500;
3268
+ }
3269
+
3270
+ .ark-agentic-file-viewer__fallback-description, .ark-agentic-file-viewer__fallback-filename {
3271
+ color: var(--agentic-file-viewer-muted);
3272
+ }
3273
+
3274
+ .ark-agentic-file-viewer__fallback .ark-agentic-file-viewer__actions {
3275
+ flex-wrap: wrap;
3276
+ justify-content: center;
3277
+ }
3278
+
3279
+ .ark-agentic-file-viewer__render-stage, .ark-agentic-file-viewer__render-content {
3280
+ flex: 1;
3281
+ min-width: 0;
3282
+ min-height: 0;
3283
+ display: flex;
3284
+ position: relative;
3285
+ }
3286
+
3287
+ .ark-agentic-file-viewer__loading-overlay {
3288
+ background: var(--agentic-file-viewer-surface);
3289
+ z-index: 1;
3290
+ display: flex;
3291
+ position: absolute;
3292
+ inset: 0;
3293
+ }
3294
+
3295
+ .ark-agentic-file-viewer__loading {
3296
+ text-align: center;
3297
+ overflow-wrap: anywhere;
3298
+ flex-direction: column;
3299
+ gap: 12px;
3300
+ min-width: 0;
3301
+ max-width: 100%;
3302
+ min-height: 0;
3303
+ overflow: auto;
3304
+ }
3305
+
3306
+ .ark-agentic-file-viewer__loading > :first-child {
3307
+ margin-top: auto;
3308
+ }
3309
+
3310
+ .ark-agentic-file-viewer__loading > :last-child {
3311
+ margin-bottom: auto;
3312
+ }
3313
+
3314
+ .ark-agentic-file-viewer__loading-progress {
3315
+ flex-shrink: 0;
3316
+ width: min(280px, 100%);
3317
+ }
3318
+
3319
+ .ark-agentic-file-viewer__loading-progress[data-indeterminate] [role="progressbar"] > div {
3320
+ animation: 1.5s ease-in-out infinite file-viewer-loading-indeterminate;
3321
+ }
3322
+
3323
+ @keyframes file-viewer-loading-indeterminate {
3324
+ from {
3325
+ transform: translateX(-100%);
3326
+ }
3327
+
3328
+ to {
3329
+ transform: translateX(333%);
3330
+ }
3331
+ }
3332
+
3333
+ @media (prefers-reduced-motion: reduce) {
3334
+ .ark-agentic-file-viewer__loading-progress[data-indeterminate] [role="progressbar"] > div {
3335
+ animation: none;
3336
+ }
3337
+ }
3338
+
3339
+ .ark-agentic-file-viewer-minimap {
3340
+ box-sizing: border-box;
3341
+ scrollbar-width: thin;
3342
+ flex: 0 0 145px;
3343
+ width: 145px;
3344
+ min-height: 0;
3345
+ padding: 20px 0 24px 20px;
3346
+ position: relative;
3347
+ overflow: hidden auto;
3348
+ }
3349
+
3350
+ .ark-agentic-file-viewer-minimap__item {
3351
+ box-sizing: border-box;
3352
+ background: var(--color-bg-1);
3353
+ cursor: pointer;
3354
+ border: 0;
3355
+ border-radius: 8px;
3356
+ width: 125px;
3357
+ margin: 0 0 12px;
3358
+ padding: 0;
3359
+ display: block;
3360
+ position: relative;
3361
+ overflow: hidden;
3362
+ }
3363
+
3364
+ .ark-agentic-file-viewer-minimap__item:after {
3365
+ z-index: 1;
3366
+ box-sizing: border-box;
3367
+ border: 1px solid var(--color-border-2);
3368
+ border-radius: inherit;
3369
+ content: "";
3370
+ pointer-events: none;
3371
+ position: absolute;
3372
+ inset: 0;
3373
+ }
3374
+
3375
+ .ark-agentic-file-viewer-minimap__item:last-child {
3376
+ margin-bottom: 0;
3377
+ }
3378
+
3379
+ .ark-agentic-file-viewer-minimap__item[aria-current="page"]:after {
3380
+ border: 2px solid rgb(var(--primary-6));
3381
+ }
3382
+
3383
+ .ark-agentic-file-viewer-minimap__item:focus-visible {
3384
+ outline: 2px solid rgb(var(--primary-6));
3385
+ outline-offset: 3px;
3386
+ }
3387
+
3388
+ .ark-agentic-file-viewer-minimap__preview {
3389
+ pointer-events: none;
3390
+ width: 100%;
3391
+ height: 100%;
3392
+ display: block;
3393
+ overflow: hidden;
3394
+ }
3395
+
3396
+ .ark-agentic-file-viewer-minimap__preview img {
3397
+ object-fit: contain;
3398
+ width: 100%;
3399
+ height: 100%;
3400
+ display: block;
3401
+ }
3402
+
3403
+ @media (width <= 560px) {
3404
+ .ark-agentic-file-viewer-minimap {
3405
+ flex-basis: 92px;
3406
+ width: 92px;
3407
+ padding-left: 12px;
3408
+ }
3409
+
3410
+ .ark-agentic-file-viewer-minimap__item {
3411
+ width: 80px;
3412
+ }
3413
+ }
3414
+
3415
+ /*!
3416
+ * Copyright (c) 2026 Bytedance, Inc. and its affiliates.
3417
+ * SPDX-License-Identifier: MIT
3418
+ */
3419
+ /*!
3420
+ * Copyright (c) 2026 Bytedance, Inc. and its affiliates.
3421
+ * SPDX-License-Identifier: MIT
3422
+ */
3423
+ /*!
3424
+ * Copyright (c) 2026 Bytedance, Inc. and its affiliates.
3425
+ * SPDX-License-Identifier: MIT
3426
+ */
3427
+ .ark-agentic-markdown .ark-agentic-markdown__code-block--light, .ark-agentic-markdown .ark-agentic-markdown__code-shell--light {
3428
+ --stream-md-code-bg: var(--color-white);
3429
+ --stream-md-code-text: color-mix(in srgb, var(--color-black) 90%, var(--color-white));
3430
+ --stream-md-code-muted: color-mix(in srgb, var(--color-black) 65%, var(--color-white));
3431
+ --stream-md-code-border: color-mix(in srgb, var(--color-black) 18%, var(--color-white));
3432
+ --stream-md-code-header: color-mix(in srgb, var(--color-white) 94%, var(--color-black));
3433
+ --stream-md-code-hover: color-mix(in srgb, var(--color-white) 88%, var(--color-black));
3434
+ --stream-md-code-accent: color-mix(in srgb, rgb(var(--primary-6)) 55%, var(--color-black));
3435
+ --stream-md-code-property: color-mix(in srgb, rgb(var(--success-6)) 55%, var(--color-black));
3436
+ --stream-md-code-string: color-mix(in srgb, rgb(var(--warning-7)) 55%, var(--color-black));
3437
+ --stream-md-code-number: color-mix(in srgb, rgb(var(--purple-6)) 55%, var(--color-black));
3438
+ --stream-md-code-keyword: color-mix(in srgb, rgb(var(--link-6)) 55%, var(--color-black));
3439
+ --stream-md-code-function: color-mix(in srgb, rgb(var(--orange-7)) 55%, var(--color-black));
3440
+ color-scheme: light;
3441
+ }
3442
+
3443
+ .ark-agentic-markdown .ark-agentic-markdown__code-block--dark, .ark-agentic-markdown .ark-agentic-markdown__code-shell--dark {
3444
+ --stream-md-code-bg: color-mix(in srgb, var(--color-black) 94%, var(--color-white));
3445
+ --stream-md-code-text: color-mix(in srgb, var(--color-white) 90%, color-mix(in srgb, var(--color-black) 94%, var(--color-white)));
3446
+ --stream-md-code-muted: color-mix(in srgb, var(--color-white) 65%, color-mix(in srgb, var(--color-black) 94%, var(--color-white)));
3447
+ --stream-md-code-border: color-mix(in srgb, var(--color-white) 18%, color-mix(in srgb, var(--color-black) 94%, var(--color-white)));
3448
+ --stream-md-code-header: color-mix(in srgb, color-mix(in srgb, var(--color-black) 94%, var(--color-white)) 94%, var(--color-white));
3449
+ --stream-md-code-hover: color-mix(in srgb, color-mix(in srgb, var(--color-black) 94%, var(--color-white)) 88%, var(--color-white));
3450
+ --stream-md-code-accent: color-mix(in srgb, rgb(var(--primary-6)) 55%, var(--color-white));
3451
+ --stream-md-code-property: color-mix(in srgb, rgb(var(--success-6)) 55%, var(--color-white));
3452
+ --stream-md-code-string: color-mix(in srgb, rgb(var(--warning-7)) 55%, var(--color-white));
3453
+ --stream-md-code-number: color-mix(in srgb, rgb(var(--purple-6)) 55%, var(--color-white));
3454
+ --stream-md-code-keyword: color-mix(in srgb, rgb(var(--link-6)) 55%, var(--color-white));
3455
+ --stream-md-code-function: color-mix(in srgb, rgb(var(--orange-7)) 55%, var(--color-white));
3456
+ color-scheme: dark;
3457
+ }
3458
+
3459
+ .ark-agentic-markdown {
3460
+ --stream-md-color-text: var(--color-text-1);
3461
+ --stream-md-color-muted: var(--color-text-3);
3462
+ --stream-md-color-border: var(--color-border-2);
3463
+ --stream-md-color-bg: transparent;
3464
+ --stream-md-color-panel: var(--color-bg-2);
3465
+ --stream-md-color-panel-strong: var(--color-bg-3);
3466
+ --stream-md-color-code-bg: color-mix(in srgb, rgb(var(--primary-1)) 70%, var(--color-bg-2));
3467
+ --stream-md-color-accent: rgb(var(--primary-6));
3468
+ --stream-md-color-accent-soft: var(--color-primary-light-1);
3469
+ --stream-md-color-danger: rgb(var(--danger-6));
3470
+ --stream-md-radius-sm: 4px;
3471
+ --stream-md-radius-md: 6px;
3472
+ --stream-md-radius-lg: 12px;
3473
+ --stream-md-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
3474
+ --stream-md-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
3475
+ color: var(--stream-md-color-text);
3476
+ background-color: var(--stream-md-color-bg);
3477
+ word-break: break-word;
3478
+ font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
3479
+ font-size: 15px;
3480
+ line-height: 1.7;
3481
+ }
3482
+
3483
+ .ark-agentic-markdown--theme-samantha {
3484
+ font-size: 16px;
3485
+ }
3486
+
3487
+ .ark-agentic-markdown p, .ark-agentic-markdown .ark-agentic-markdown__paragraph {
3488
+ margin: 0 0 .9em;
3489
+ }
3490
+
3491
+ .ark-agentic-markdown .ark-agentic-markdown__paragraph--loose br + br {
3492
+ content: "";
3493
+ margin-top: .6em;
3494
+ display: block;
3495
+ }
3496
+
3497
+ .ark-agentic-markdown h1, .ark-agentic-markdown h2, .ark-agentic-markdown h3, .ark-agentic-markdown h4, .ark-agentic-markdown h5, .ark-agentic-markdown h6, .ark-agentic-markdown .ark-agentic-markdown__heading {
3498
+ margin: 1.15em 0 .5em;
3499
+ font-weight: 700;
3500
+ line-height: 1.35;
3501
+ }
3502
+
3503
+ .ark-agentic-markdown h1 {
3504
+ font-size: 1.25em;
3505
+ }
3506
+
3507
+ .ark-agentic-markdown h2 {
3508
+ font-size: 1.12em;
3509
+ }
3510
+
3511
+ .ark-agentic-markdown h3, .ark-agentic-markdown h4, .ark-agentic-markdown h5, .ark-agentic-markdown h6 {
3512
+ font-size: 1em;
3513
+ }
3514
+
3515
+ .ark-agentic-markdown .ark-agentic-markdown__link {
3516
+ color: var(--stream-md-color-accent);
3517
+ text-decoration: underline;
3518
+ text-decoration-color: var(--stream-md-color-accent-soft);
3519
+ text-underline-offset: 2px;
3520
+ }
3521
+
3522
+ .ark-agentic-markdown a.ark-agentic-markdown__link[href], .ark-agentic-markdown a.ark-agentic-markdown__link[role="link"] {
3523
+ cursor: pointer;
3524
+ }
3525
+
3526
+ .ark-agentic-markdown .ark-agentic-markdown__blockquote {
3527
+ border-left: 3px solid var(--stream-md-color-accent);
3528
+ background: var(--stream-md-color-panel);
3529
+ border-radius: 0 var(--stream-md-radius-md) var(--stream-md-radius-md) 0;
3530
+ margin: 1em 0;
3531
+ padding: .8em 1em;
3532
+ }
3533
+
3534
+ .ark-agentic-markdown ul.ark-agentic-markdown__list, .ark-agentic-markdown ol.ark-agentic-markdown__list {
3535
+ margin: 0 0 .5em;
3536
+ list-style-position: outside;
3537
+ }
3538
+
3539
+ .ark-agentic-markdown ul.ark-agentic-markdown__list {
3540
+ padding-left: 1.25em;
3541
+ }
3542
+
3543
+ .ark-agentic-markdown ol.ark-agentic-markdown__list {
3544
+ padding-left: 1.5em;
3545
+ }
3546
+
3547
+ .ark-agentic-markdown ul.ark-agentic-markdown__list ul.ark-agentic-markdown__list, .ark-agentic-markdown ul.ark-agentic-markdown__list ol.ark-agentic-markdown__list, .ark-agentic-markdown ol.ark-agentic-markdown__list ul.ark-agentic-markdown__list, .ark-agentic-markdown ol.ark-agentic-markdown__list ol.ark-agentic-markdown__list {
3548
+ margin-top: 0;
3549
+ margin-bottom: 0;
3550
+ }
3551
+
3552
+ .ark-agentic-markdown li, .ark-agentic-markdown li + li {
3553
+ margin: .5em 0;
3554
+ padding-left: 0;
3555
+ }
3556
+
3557
+ .ark-agentic-markdown li > .ark-agentic-markdown__paragraph {
3558
+ margin: 0;
3559
+ }
3560
+
3561
+ .ark-agentic-markdown ul.ark-agentic-markdown__list > li {
3562
+ list-style-type: disc;
3563
+ }
3564
+
3565
+ .ark-agentic-markdown ul.ark-agentic-markdown__list ul.ark-agentic-markdown__list > li {
3566
+ list-style-type: circle;
3567
+ }
3568
+
3569
+ .ark-agentic-markdown ul.ark-agentic-markdown__list ul.ark-agentic-markdown__list ul.ark-agentic-markdown__list > li {
3570
+ list-style-type: square;
3571
+ }
3572
+
3573
+ .ark-agentic-markdown ol.ark-agentic-markdown__list > li {
3574
+ list-style-type: decimal;
3575
+ }
3576
+
3577
+ .ark-agentic-markdown ul.ark-agentic-markdown__list ol.ark-agentic-markdown__list > li, .ark-agentic-markdown ol.ark-agentic-markdown__list ol.ark-agentic-markdown__list > li {
3578
+ list-style-type: lower-roman;
3579
+ }
3580
+
3581
+ .ark-agentic-markdown ul.ark-agentic-markdown__list ul.ark-agentic-markdown__list ol.ark-agentic-markdown__list > li, .ark-agentic-markdown ul.ark-agentic-markdown__list ol.ark-agentic-markdown__list ol.ark-agentic-markdown__list > li, .ark-agentic-markdown ol.ark-agentic-markdown__list ul.ark-agentic-markdown__list ol.ark-agentic-markdown__list > li, .ark-agentic-markdown ol.ark-agentic-markdown__list ol.ark-agentic-markdown__list ol.ark-agentic-markdown__list > li {
3582
+ list-style-type: lower-alpha;
3583
+ }
3584
+
3585
+ .ark-agentic-markdown .ark-agentic-markdown__table-root {
3586
+ width: fit-content;
3587
+ max-width: 100%;
3588
+ margin: 1em 0;
3589
+ }
3590
+
3591
+ .ark-agentic-markdown .ark-agentic-markdown__table-scroll {
3592
+ scrollbar-width: thin;
3593
+ scrollbar-color: var(--stream-md-color-border) transparent;
3594
+ width: fit-content;
3595
+ max-width: 100%;
3596
+ overflow: auto hidden;
3597
+ }
3598
+
3599
+ .ark-agentic-markdown .ark-agentic-markdown__table-scroll > table {
3600
+ border-collapse: collapse;
3601
+ text-align: left;
3602
+ width: max-content;
3603
+ min-width: 100%;
3604
+ max-width: none;
3605
+ }
3606
+
3607
+ .ark-agentic-markdown th, .ark-agentic-markdown td {
3608
+ border: 1px solid var(--stream-md-color-border);
3609
+ word-break: normal;
3610
+ overflow-wrap: break-word;
3611
+ vertical-align: top;
3612
+ padding: .55em .75em;
3613
+ }
3614
+
3615
+ .ark-agentic-markdown th {
3616
+ background: var(--stream-md-color-panel);
3617
+ text-align: left;
3618
+ }
3619
+
3620
+ @supports selector(
3621
+ div:where([data-foo='bar'] *):not(:where([data-foo='baz'] *))
3622
+ ) {
3623
+ .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] *):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)) {
3624
+ --table-inline-outside-start-padding: var(--md-box-table-spillover-outside-padding-inline-start, 0px);
3625
+ --table-inline-outside-end-padding: var(--md-box-table-spillover-outside-padding-inline-end, 0px);
3626
+ --table-inline-inside-end-padding: var(--md-box-table-spillover-inside-padding-inline-end, 16px);
3627
+ --outer-width: var(--md-box-table-spillover-outer-inline-size, 0px);
3628
+ --inner-width: var(--md-box-table-spillover-inner-inline-size, 0px);
3629
+ --single-indent-width: var(--md-box-ul-padding-left, 24px);
3630
+ --indent-extra-padding-left: var(--md-box-ul-margin-left, 4px);
3631
+ --is-in-list: 0;
3632
+ --indent-count: 0;
3633
+ --resolved-indent-width: calc(var(--single-indent-width) * var(--indent-count) + var(--is-in-list) * var(--indent-extra-padding-left));
3634
+ --table-container-width: calc(var(--outer-width) - var(--table-inline-outside-start-padding) - var(--table-inline-outside-end-padding));
3635
+ width: var(--table-container-width);
3636
+ max-width: var(--table-container-width);
3637
+ margin-left: calc(-1 * (var(--outer-width) - var(--inner-width)) / 2 + var(--table-inline-outside-start-padding) - var(--resolved-indent-width));
3638
+ position: relative;
3639
+ }
3640
+
3641
+ .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] :is(ol, ul) *):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)) {
3642
+ --indent-count: 1;
3643
+ --is-in-list: 1;
3644
+ }
3645
+
3646
+ .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] :is(ol, ul) :is(ol, ul) *):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)) {
3647
+ --indent-count: 2;
3648
+ }
3649
+
3650
+ .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] :is(ol, ul) :is(ol, ul) :is(ol, ul) *):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)) {
3651
+ --indent-count: 3;
3652
+ }
3653
+
3654
+ .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] :is(ol, ul) :is(ol, ul) :is(ol, ul) :is(ol, ul) *):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)) {
3655
+ --indent-count: 4;
3656
+ }
3657
+
3658
+ .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] *):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)) > .mdbox-table-scroll-container {
3659
+ --scroll-padding-left-base: calc((var(--outer-width) - var(--inner-width)) / 2 - var(--table-inline-outside-start-padding));
3660
+ width: 100%;
3661
+ max-width: 100%;
3662
+ padding-left: calc(var(--scroll-padding-left-base) + var(--resolved-indent-width));
3663
+ padding-right: var(--table-inline-inside-end-padding);
3664
+ scrollbar-width: none;
3665
+ }
3666
+
3667
+ .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] *):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)) > .mdbox-table-scroll-container::-webkit-scrollbar {
3668
+ display: none;
3669
+ }
3670
+
3671
+ .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] *):where([data-scroll-inline-overflow="true"]):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)):before, .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] *):where([data-scroll-inline-overflow="true"]):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)):after {
3672
+ content: "";
3673
+ pointer-events: none;
3674
+ opacity: 0;
3675
+ width: 20px;
3676
+ transition: opacity .3s cubic-bezier(.2, 1, .6, 1);
3677
+ position: absolute;
3678
+ top: 0;
3679
+ bottom: 12px;
3680
+ }
3681
+
3682
+ .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] *):where([data-scroll-inline-overflow="true"]):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)):before {
3683
+ background: linear-gradient(to right, color-mix(in srgb, var(--color-bg-5) 4%, transparent) 0%, transparent 100%);
3684
+ left: 0;
3685
+ }
3686
+
3687
+ .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] *):where([data-scroll-inline-overflow="true"]):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)):after {
3688
+ background: linear-gradient(to left, color-mix(in srgb, var(--color-bg-5) 4%, transparent) 0%, transparent 100%);
3689
+ right: 0;
3690
+ }
3691
+
3692
+ .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] *):where([data-scroll-inline-overflow="true"]):where([data-scroll-inline-start-overflow="true"]):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)):before, .ark-agentic-markdown .ark-agentic-markdown__table-root.mdbox-table-root:where([data-table-spillover="true"] *):where([data-scroll-inline-overflow="true"]):where([data-scroll-inline-end-overflow="true"]):not(:where([data-attr="select-mode"] *)):not(:where([data-table-spillover-force-disable="true"] *)):not(:where([data-ui-version="samantha"] *)):not(:where(.ark-agentic-markdown--theme-samantha *)):after {
3693
+ opacity: 1;
3694
+ }
3695
+ }
3696
+
3697
+ .ark-agentic-markdown .ark-agentic-markdown__code-block, .ark-agentic-markdown .ark-agentic-markdown__code-bar {
3698
+ border: .5px solid var(--stream-md-code-border, var(--stream-md-color-border));
3699
+ border-radius: var(--stream-md-radius-lg);
3700
+ background: var(--stream-md-code-bg, var(--stream-md-color-code-bg));
3701
+ box-shadow: 0 .75px .75px color-mix(in srgb, var(--color-black) 5%, transparent);
3702
+ margin: 1em 0;
3703
+ overflow: hidden;
3704
+ }
3705
+
3706
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-shell {
3707
+ border: .5px solid var(--stream-md-color-border);
3708
+ border-radius: var(--stream-md-radius-lg);
3709
+ background: var(--stream-md-color-bg);
3710
+ max-width: 100%;
3711
+ margin: 1em 0;
3712
+ overflow: hidden;
3713
+ }
3714
+
3715
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-header {
3716
+ border-bottom: .5px solid var(--stream-md-color-border);
3717
+ background: var(--stream-md-color-panel-strong);
3718
+ justify-content: space-between;
3719
+ align-items: center;
3720
+ gap: 12px;
3721
+ min-height: 42px;
3722
+ padding: 6px 10px;
3723
+ display: flex;
3724
+ }
3725
+
3726
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-title {
3727
+ color: var(--stream-md-color-muted);
3728
+ padding-inline: 6px;
3729
+ font-size: 13px;
3730
+ font-weight: 600;
3731
+ }
3732
+
3733
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-switch {
3734
+ border: .5px solid var(--stream-md-color-border);
3735
+ border-radius: var(--stream-md-radius-md);
3736
+ background: var(--stream-md-color-panel);
3737
+ padding: 2px;
3738
+ display: inline-flex;
3739
+ }
3740
+
3741
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-switch-item {
3742
+ border-radius: calc(var(--stream-md-radius-md) - 2px);
3743
+ min-height: 26px;
3744
+ color: var(--stream-md-color-muted);
3745
+ cursor: pointer;
3746
+ font: inherit;
3747
+ background: none;
3748
+ border: 0;
3749
+ padding: 3px 10px;
3750
+ font-size: 12px;
3751
+ line-height: 1;
3752
+ }
3753
+
3754
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-switch-item:hover, .ark-agentic-markdown .ark-agentic-markdown__mermaid-switch-item:focus-visible {
3755
+ color: var(--stream-md-color-text);
3756
+ }
3757
+
3758
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-switch-item--active {
3759
+ background: var(--stream-md-color-bg);
3760
+ color: var(--stream-md-color-text);
3761
+ box-shadow: 0 1px 3px color-mix(in srgb, var(--color-text-1) 12%, transparent);
3762
+ }
3763
+
3764
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-actions {
3765
+ justify-content: flex-end;
3766
+ align-items: center;
3767
+ gap: 2px;
3768
+ display: flex;
3769
+ }
3770
+
3771
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-action {
3772
+ border-radius: var(--stream-md-radius-sm);
3773
+ min-width: 28px;
3774
+ height: 28px;
3775
+ color: var(--stream-md-color-muted);
3776
+ cursor: pointer;
3777
+ font: inherit;
3778
+ background: none;
3779
+ border: 0;
3780
+ justify-content: center;
3781
+ align-items: center;
3782
+ gap: 4px;
3783
+ padding: 0 6px;
3784
+ font-size: 12px;
3785
+ display: inline-flex;
3786
+ }
3787
+
3788
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-action:hover:not(:disabled), .ark-agentic-markdown .ark-agentic-markdown__mermaid-action:focus-visible {
3789
+ background: var(--stream-md-color-accent-soft);
3790
+ color: var(--stream-md-color-accent);
3791
+ }
3792
+
3793
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-action:disabled {
3794
+ cursor: not-allowed;
3795
+ opacity: .4;
3796
+ }
3797
+
3798
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-action--copied {
3799
+ color: rgb(var(--success-6));
3800
+ }
3801
+
3802
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-action--reset {
3803
+ min-width: 62px;
3804
+ }
3805
+
3806
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid {
3807
+ background: var(--stream-md-color-bg);
3808
+ text-align: center;
3809
+ place-items: center;
3810
+ min-height: 180px;
3811
+ display: grid;
3812
+ position: relative;
3813
+ overflow: hidden;
3814
+ }
3815
+
3816
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid--interactive {
3817
+ touch-action: none;
3818
+ }
3819
+
3820
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-viewport {
3821
+ will-change: transform;
3822
+ place-items: center;
3823
+ width: 100%;
3824
+ min-height: 180px;
3825
+ transition: transform .1s ease-out;
3826
+ display: grid;
3827
+ }
3828
+
3829
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid--dragging {
3830
+ cursor: grabbing;
3831
+ -webkit-user-select: none;
3832
+ user-select: none;
3833
+ }
3834
+
3835
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid--dragging .ark-agentic-markdown__mermaid-viewport {
3836
+ transition: none;
3837
+ }
3838
+
3839
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-graph-content {
3840
+ place-items: center;
3841
+ width: 100%;
3842
+ display: grid;
3843
+ }
3844
+
3845
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-graph-content > svg {
3846
+ width: auto;
3847
+ max-width: 100%;
3848
+ height: auto;
3849
+ margin: 0 auto;
3850
+ display: block;
3851
+ }
3852
+
3853
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-status {
3854
+ border: .5px solid var(--stream-md-color-border);
3855
+ background: var(--stream-md-color-panel-strong);
3856
+ color: var(--stream-md-color-muted);
3857
+ pointer-events: none;
3858
+ border-radius: 999px;
3859
+ padding: 3px 8px;
3860
+ font-size: 11px;
3861
+ line-height: 1.4;
3862
+ position: absolute;
3863
+ bottom: 8px;
3864
+ right: 10px;
3865
+ }
3866
+
3867
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-source-preview {
3868
+ position: relative;
3869
+ }
3870
+
3871
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-error {
3872
+ background: var(--stream-md-color-code-bg);
3873
+ }
3874
+
3875
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-error-message {
3876
+ border-bottom: .5px solid var(--stream-md-color-border);
3877
+ color: var(--stream-md-color-danger);
3878
+ background: var(--stream-md-color-panel-strong);
3879
+ padding: .65em 1em;
3880
+ font-size: .9em;
3881
+ }
3882
+
3883
+ .ark-agentic-markdown .ark-agentic-markdown__mermaid-download-error {
3884
+ border-bottom: .5px solid var(--stream-md-color-border);
3885
+ background: var(--stream-md-color-panel);
3886
+ color: var(--stream-md-color-danger);
3887
+ padding: 6px 12px;
3888
+ font-size: 12px;
3889
+ }
3890
+
3891
+ .ark-agentic-markdown .ark-agentic-markdown__code-header {
3892
+ background: var(--stream-md-code-header, var(--stream-md-color-panel-strong));
3893
+ justify-content: space-between;
3894
+ align-items: center;
3895
+ gap: 12px;
3896
+ height: 40px;
3897
+ padding: 0 1em;
3898
+ display: flex;
3899
+ }
3900
+
3901
+ .ark-agentic-markdown .ark-agentic-markdown__code-header--expanded {
3902
+ border-bottom: .5px solid var(--stream-md-code-border, var(--stream-md-color-border));
3903
+ }
3904
+
3905
+ .ark-agentic-markdown .ark-agentic-markdown__code-header-left, .ark-agentic-markdown .ark-agentic-markdown__code-header-actions {
3906
+ align-items: center;
3907
+ gap: 8px;
3908
+ display: flex;
3909
+ }
3910
+
3911
+ .ark-agentic-markdown .ark-agentic-markdown__code-language {
3912
+ color: var(--stream-md-code-text, var(--color-text-2));
3913
+ text-transform: lowercase;
3914
+ font-size: 14px;
3915
+ font-weight: 400;
3916
+ }
3917
+
3918
+ .ark-agentic-markdown .ark-agentic-markdown__code-action, .ark-agentic-markdown .ark-agentic-markdown__code-bar-button {
3919
+ background: var(--stream-md-color-accent-soft);
3920
+ color: var(--stream-md-code-accent, var(--stream-md-color-accent));
3921
+ font: inherit;
3922
+ cursor: pointer;
3923
+ border: 0;
3924
+ border-radius: 999px;
3925
+ padding: .35em .8em;
3926
+ }
3927
+
3928
+ .ark-agentic-markdown .ark-agentic-markdown__code-action--icon {
3929
+ color: var(--stream-md-code-muted, var(--color-text-3));
3930
+ border-radius: var(--stream-md-radius-md);
3931
+ background: none;
3932
+ justify-content: center;
3933
+ align-items: center;
3934
+ width: 28px;
3935
+ height: 28px;
3936
+ padding: 0;
3937
+ transition: background .15s, color .15s;
3938
+ display: inline-flex;
3939
+ }
3940
+
3941
+ .ark-agentic-markdown .ark-agentic-markdown__code-action--icon:hover:not(:disabled) {
3942
+ background: var(--stream-md-code-hover, var(--color-bg-4));
3943
+ color: var(--stream-md-code-text, var(--color-text-2));
3944
+ box-shadow: inset 0 0 0 .5px var(--stream-md-code-border, var(--color-border-2));
3945
+ }
3946
+
3947
+ .ark-agentic-markdown .ark-agentic-markdown__code-action--icon:disabled {
3948
+ opacity: .5;
3949
+ cursor: not-allowed;
3950
+ }
3951
+
3952
+ .ark-agentic-markdown .ark-agentic-markdown__code-action--copied {
3953
+ color: var(--stream-md-code-accent, var(--stream-md-color-accent));
3954
+ }
3955
+
3956
+ .ark-agentic-markdown .ark-agentic-markdown__code-expand {
3957
+ transition: transform .2s;
3958
+ }
3959
+
3960
+ .ark-agentic-markdown .ark-agentic-markdown__code-expand--collapsed {
3961
+ transform: rotate(-90deg);
3962
+ }
3963
+
3964
+ .ark-agentic-markdown .ark-agentic-markdown__code-bar-body {
3965
+ padding: .85em;
3966
+ }
3967
+
3968
+ .ark-agentic-markdown .ark-agentic-markdown__code-shell {
3969
+ background: var(--stream-md-code-bg, var(--color-bg-1));
3970
+ color: var(--stream-md-code-text, var(--stream-md-color-text));
3971
+ margin: 0;
3972
+ padding: 1em 1.25em;
3973
+ overflow-x: auto;
3974
+ }
3975
+
3976
+ .ark-agentic-markdown .ark-agentic-markdown__code-shell--with-line-numbers {
3977
+ grid-template-columns: auto minmax(0, 1fr);
3978
+ padding: 0;
3979
+ display: grid;
3980
+ overflow-x: hidden;
3981
+ }
3982
+
3983
+ .ark-agentic-markdown .ark-agentic-markdown__code-line-numbers {
3984
+ text-align: right;
3985
+ color: var(--stream-md-code-muted, var(--stream-md-color-muted));
3986
+ -webkit-user-select: none;
3987
+ user-select: none;
3988
+ border-right: .5px solid var(--stream-md-code-border, var(--stream-md-color-border));
3989
+ opacity: 1;
3990
+ flex-direction: column;
3991
+ padding: 1em .75em;
3992
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
3993
+ font-size: 13px;
3994
+ line-height: 1.7;
3995
+ display: flex;
3996
+ }
3997
+
3998
+ .ark-agentic-markdown .ark-agentic-markdown__code-shell--with-line-numbers .ark-agentic-markdown__code-content {
3999
+ min-width: 0;
4000
+ padding: 1em 1em 1em .85em;
4001
+ line-height: 1.7;
4002
+ display: block;
4003
+ overflow-x: auto;
4004
+ }
4005
+
4006
+ .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.punctuation {
4007
+ color: var(--stream-md-code-muted, var(--color-text-3));
4008
+ }
4009
+
4010
+ .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.property, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.tag, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.symbol, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.deleted {
4011
+ color: var(--stream-md-code-property, rgb(var(--success-6)));
4012
+ }
4013
+
4014
+ .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.string, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.char, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.attr-value, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.regex {
4015
+ color: var(--stream-md-code-string, rgb(var(--warning-7)));
4016
+ }
4017
+
4018
+ .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.number, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.boolean, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.constant {
4019
+ color: var(--stream-md-code-number, rgb(var(--purple-6)));
4020
+ }
4021
+
4022
+ .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.keyword, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.operator, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.atrule {
4023
+ color: var(--stream-md-code-keyword, rgb(var(--link-6)));
4024
+ }
4025
+
4026
+ .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.comment, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.prolog, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.cdata {
4027
+ color: var(--stream-md-code-muted, var(--color-text-3));
4028
+ font-style: italic;
4029
+ }
4030
+
4031
+ .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.function, .ark-agentic-markdown .ark-agentic-markdown__code-shell .token.class-name {
4032
+ color: var(--stream-md-code-function, rgb(var(--orange-7)));
4033
+ }
4034
+
4035
+ .ark-agentic-markdown .ark-agentic-markdown__code-content, .ark-agentic-markdown code, .ark-agentic-markdown pre {
4036
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
4037
+ font-size: 13px;
4038
+ }
4039
+
4040
+ .ark-agentic-markdown .ark-agentic-markdown__code-content {
4041
+ color: inherit;
4042
+ font-weight: inherit;
4043
+ background: none;
4044
+ border: 0;
4045
+ border-radius: 0;
4046
+ padding: 0;
4047
+ display: block;
4048
+ }
4049
+
4050
+ .ark-agentic-markdown :not(pre) > code {
4051
+ background: var(--stream-md-color-panel);
4052
+ border: 1px solid var(--stream-md-color-border);
4053
+ border-radius: var(--stream-md-radius-sm);
4054
+ padding: .1em .35em;
4055
+ }
4056
+
4057
+ .ark-agentic-markdown h1 code, .ark-agentic-markdown h2 code, .ark-agentic-markdown h3 code, .ark-agentic-markdown h4 code, .ark-agentic-markdown h5 code, .ark-agentic-markdown h6 code, .ark-agentic-markdown h1 tt, .ark-agentic-markdown h2 tt, .ark-agentic-markdown h3 tt, .ark-agentic-markdown h4 tt, .ark-agentic-markdown h5 tt, .ark-agentic-markdown h6 tt, .ark-agentic-markdown .ark-agentic-markdown__heading code, .ark-agentic-markdown .ark-agentic-markdown__heading tt {
4058
+ font-size: inherit;
4059
+ line-height: inherit;
4060
+ padding: 0 .2em;
4061
+ }
4062
+
4063
+ .ark-agentic-markdown .ark-agentic-markdown__math--inline, .ark-agentic-markdown .ark-agentic-markdown__math--display {
4064
+ align-items: center;
4065
+ display: inline-flex;
4066
+ }
4067
+
4068
+ .ark-agentic-markdown .ark-agentic-markdown__math--display {
4069
+ justify-content: center;
4070
+ margin: 1em 0;
4071
+ display: flex;
4072
+ overflow-x: auto;
4073
+ }
4074
+
4075
+ .ark-agentic-markdown .ark-agentic-markdown__image-shell {
4076
+ flex-direction: column;
4077
+ gap: 8px;
4078
+ margin: 1em 0;
4079
+ display: flex;
4080
+ }
4081
+
4082
+ .ark-agentic-markdown .ark-agentic-markdown__image-shell--center {
4083
+ align-items: center;
4084
+ }
4085
+
4086
+ .ark-agentic-markdown .ark-agentic-markdown__image {
4087
+ border-radius: var(--stream-md-radius-md);
4088
+ background: var(--stream-md-color-panel);
4089
+ cursor: zoom-in;
4090
+ max-width: 100%;
4091
+ }
4092
+
4093
+ .ark-agentic-markdown .ark-agentic-markdown__image--square {
4094
+ aspect-ratio: 1;
4095
+ }
4096
+
4097
+ .ark-agentic-markdown .ark-agentic-markdown__image-title {
4098
+ color: var(--stream-md-color-muted);
4099
+ font-size: 13px;
4100
+ }
4101
+
4102
+ .ark-agentic-markdown .ark-agentic-markdown__indicator-shell {
4103
+ vertical-align: middle;
4104
+ width: 14px;
4105
+ height: 0;
4106
+ display: inline-block;
4107
+ position: relative;
4108
+ overflow: visible;
4109
+ transform: translate(6px, -1px);
4110
+ }
4111
+
4112
+ .ark-agentic-markdown .ark-agentic-markdown__indicator {
4113
+ opacity: .35;
4114
+ background: currentColor;
4115
+ border-radius: 999px;
4116
+ width: 8px;
4117
+ height: 8px;
4118
+ animation: .8s infinite alternate ark-agentic-markdown-renderer-dot-flash;
4119
+ position: absolute;
4120
+ top: -4px;
4121
+ left: 0;
4122
+ }
4123
+
4124
+ .ark-agentic-markdown .ark-agentic-markdown__slot-error {
4125
+ color: var(--stream-md-color-danger);
4126
+ padding: 6px 0;
4127
+ font-size: 13px;
4128
+ }
4129
+
4130
+ @keyframes ark-agentic-markdown-renderer-dot-flash {
4131
+ 0%, 100% {
4132
+ opacity: .25;
4133
+ }
4134
+
4135
+ 50% {
4136
+ opacity: 1;
4137
+ }
282
4138
  }
283
4139
 
284
4140