@openviking/react 0.1.1 → 0.1.3

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