@icen.ai/ui 0.8.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/AGENTS.md +176 -75
  2. package/README.md +66 -88
  3. package/dist/base.css +208 -179
  4. package/dist/behaviors/accordion.mjs +8 -8
  5. package/dist/behaviors/ai-branch.d.mts +19 -0
  6. package/dist/behaviors/ai-branch.mjs +1133 -0
  7. package/dist/behaviors/ai-chat.d.mts +12 -10
  8. package/dist/behaviors/ai-chat.mjs +1125 -155
  9. package/dist/behaviors/ai-composer.d.mts +44 -12
  10. package/dist/behaviors/ai-composer.mjs +2084 -523
  11. package/dist/behaviors/ai-core.d.mts +1 -1
  12. package/dist/behaviors/ai-core.mjs +1016 -107
  13. package/dist/behaviors/ai-diff.mjs +1019 -127
  14. package/dist/behaviors/ai-feedback.d.mts +26 -0
  15. package/dist/behaviors/ai-feedback.mjs +1212 -0
  16. package/dist/behaviors/ai-panel.d.mts +21 -7
  17. package/dist/behaviors/ai-panel.mjs +1308 -264
  18. package/dist/behaviors/ai-provider.mjs +1003 -101
  19. package/dist/behaviors/ai-threads.d.mts +38 -0
  20. package/dist/behaviors/ai-threads.mjs +1233 -0
  21. package/dist/behaviors/ai-tool.d.mts +2 -2
  22. package/dist/behaviors/ai-tool.mjs +2042 -396
  23. package/dist/behaviors/ai-tools.d.mts +89 -16
  24. package/dist/behaviors/ai-tools.mjs +4453 -372
  25. package/dist/behaviors/autocomplete.d.mts +53 -0
  26. package/dist/behaviors/autocomplete.mjs +1600 -0
  27. package/dist/behaviors/back-top.d.mts +1 -1
  28. package/dist/behaviors/back-top.mjs +951 -14
  29. package/dist/behaviors/carousel.d.mts +1 -1
  30. package/dist/behaviors/carousel.mjs +906 -11
  31. package/dist/behaviors/cascader.d.mts +48 -0
  32. package/dist/behaviors/cascader.mjs +1853 -0
  33. package/dist/behaviors/charts.d.mts +174 -8
  34. package/dist/behaviors/charts.mjs +2632 -192
  35. package/dist/behaviors/code-block.d.mts +36 -0
  36. package/dist/behaviors/code-block.mjs +1611 -0
  37. package/dist/behaviors/command-palette.d.mts +9 -6
  38. package/dist/behaviors/command-palette.mjs +161 -59
  39. package/dist/behaviors/context-menu.d.mts +9 -8
  40. package/dist/behaviors/context-menu.mjs +1112 -44
  41. package/dist/behaviors/controls.d.mts +13 -13
  42. package/dist/behaviors/controls.mjs +989 -130
  43. package/dist/behaviors/copy.d.mts +21 -2
  44. package/dist/behaviors/copy.mjs +1206 -42
  45. package/dist/behaviors/datatable.d.mts +53 -3
  46. package/dist/behaviors/datatable.mjs +1963 -207
  47. package/dist/behaviors/date-picker.d.mts +0 -1
  48. package/dist/behaviors/date-picker.mjs +1340 -293
  49. package/dist/behaviors/design.d.mts +54 -0
  50. package/dist/behaviors/design.mjs +109 -0
  51. package/dist/behaviors/dropdown.d.mts +5 -6
  52. package/dist/behaviors/dropdown.mjs +262 -110
  53. package/dist/behaviors/events.d.mts +313 -3
  54. package/dist/behaviors/events.mjs +47 -2
  55. package/dist/behaviors/feedback.d.mts +30 -0
  56. package/dist/behaviors/feedback.mjs +296 -0
  57. package/dist/behaviors/focus.d.mts +8 -0
  58. package/dist/behaviors/focus.mjs +24 -0
  59. package/dist/behaviors/form-validate.d.mts +102 -0
  60. package/dist/behaviors/form-validate.mjs +6091 -0
  61. package/dist/behaviors/i18n.d.mts +789 -0
  62. package/dist/behaviors/i18n.mjs +1711 -0
  63. package/dist/behaviors/icons.d.mts +93 -0
  64. package/dist/behaviors/icons.mjs +113 -0
  65. package/dist/behaviors/input.d.mts +9 -1
  66. package/dist/behaviors/input.mjs +1056 -60
  67. package/dist/behaviors/kb-access.d.mts +34 -0
  68. package/dist/behaviors/kb-access.mjs +2459 -0
  69. package/dist/behaviors/kb-acl.d.mts +50 -0
  70. package/dist/behaviors/kb-acl.mjs +1345 -0
  71. package/dist/behaviors/kb-answer.d.mts +38 -0
  72. package/dist/behaviors/kb-answer.mjs +3707 -0
  73. package/dist/behaviors/kb-audit.d.mts +23 -0
  74. package/dist/behaviors/kb-audit.mjs +1297 -0
  75. package/dist/behaviors/kb-canvas.d.mts +44 -0
  76. package/dist/behaviors/kb-canvas.mjs +1512 -0
  77. package/dist/behaviors/kb-chain.d.mts +15 -0
  78. package/dist/behaviors/kb-chain.mjs +1192 -0
  79. package/dist/behaviors/kb-checkpoint.d.mts +16 -0
  80. package/dist/behaviors/kb-checkpoint.mjs +1492 -0
  81. package/dist/behaviors/kb-chunks.d.mts +31 -0
  82. package/dist/behaviors/kb-chunks.mjs +1414 -0
  83. package/dist/behaviors/kb-citation.d.mts +38 -0
  84. package/dist/behaviors/kb-citation.mjs +1699 -0
  85. package/dist/behaviors/kb-clarify.d.mts +20 -0
  86. package/dist/behaviors/kb-clarify.mjs +1176 -0
  87. package/dist/behaviors/kb-conflict.d.mts +22 -0
  88. package/dist/behaviors/kb-conflict.mjs +1206 -0
  89. package/dist/behaviors/kb-connector.d.mts +17 -0
  90. package/dist/behaviors/kb-connector.mjs +1303 -0
  91. package/dist/behaviors/kb-core.d.mts +534 -0
  92. package/dist/behaviors/kb-core.mjs +1805 -0
  93. package/dist/behaviors/kb-eval.d.mts +22 -0
  94. package/dist/behaviors/kb-eval.mjs +2235 -0
  95. package/dist/behaviors/kb-explain.d.mts +11 -0
  96. package/dist/behaviors/kb-explain.mjs +1165 -0
  97. package/dist/behaviors/kb-filter.d.mts +31 -0
  98. package/dist/behaviors/kb-filter.mjs +2417 -0
  99. package/dist/behaviors/kb-gap.d.mts +27 -0
  100. package/dist/behaviors/kb-gap.mjs +1195 -0
  101. package/dist/behaviors/kb-hittest.d.mts +34 -0
  102. package/dist/behaviors/kb-hittest.mjs +1352 -0
  103. package/dist/behaviors/kb-metadata.d.mts +29 -0
  104. package/dist/behaviors/kb-metadata.mjs +1248 -0
  105. package/dist/behaviors/kb-passage.d.mts +41 -0
  106. package/dist/behaviors/kb-passage.mjs +1469 -0
  107. package/dist/behaviors/kb-pipeline.d.mts +18 -0
  108. package/dist/behaviors/kb-pipeline.mjs +1301 -0
  109. package/dist/behaviors/kb-qa.d.mts +26 -0
  110. package/dist/behaviors/kb-qa.mjs +1260 -0
  111. package/dist/behaviors/kb-rerank.d.mts +20 -0
  112. package/dist/behaviors/kb-rerank.mjs +1248 -0
  113. package/dist/behaviors/kb-retrieval.d.mts +49 -0
  114. package/dist/behaviors/kb-retrieval.mjs +2585 -0
  115. package/dist/behaviors/kb-review.d.mts +44 -0
  116. package/dist/behaviors/kb-review.mjs +2282 -0
  117. package/dist/behaviors/kb-sandbox.d.mts +33 -0
  118. package/dist/behaviors/kb-sandbox.mjs +1247 -0
  119. package/dist/behaviors/kb-segment.d.mts +32 -0
  120. package/dist/behaviors/kb-segment.mjs +1431 -0
  121. package/dist/behaviors/kb-select.d.mts +24 -0
  122. package/dist/behaviors/kb-select.mjs +1989 -0
  123. package/dist/behaviors/kb-sources.d.mts +27 -0
  124. package/dist/behaviors/kb-sources.mjs +1287 -0
  125. package/dist/behaviors/kb-sql.d.mts +43 -0
  126. package/dist/behaviors/kb-sql.mjs +1865 -0
  127. package/dist/behaviors/kb-trace.d.mts +16 -0
  128. package/dist/behaviors/kb-trace.mjs +1328 -0
  129. package/dist/behaviors/kb-visibility.d.mts +44 -0
  130. package/dist/behaviors/kb-visibility.mjs +1331 -0
  131. package/dist/behaviors/kb-who-can.d.mts +32 -0
  132. package/dist/behaviors/kb-who-can.mjs +2216 -0
  133. package/dist/behaviors/mentions.d.mts +93 -0
  134. package/dist/behaviors/mentions.mjs +2152 -0
  135. package/dist/behaviors/modal.d.mts +4 -3
  136. package/dist/behaviors/modal.mjs +1055 -33
  137. package/dist/behaviors/nav.d.mts +1 -1
  138. package/dist/behaviors/nav.mjs +6 -6
  139. package/dist/behaviors/notification.d.mts +16 -8
  140. package/dist/behaviors/notification.mjs +1615 -265
  141. package/dist/behaviors/panel.d.mts +4 -0
  142. package/dist/behaviors/panel.mjs +994 -0
  143. package/dist/behaviors/popover.d.mts +28 -5
  144. package/dist/behaviors/popover.mjs +225 -24
  145. package/dist/behaviors/select.d.mts +5 -2
  146. package/dist/behaviors/select.mjs +1410 -117
  147. package/dist/behaviors/sidebar.d.mts +1 -1
  148. package/dist/behaviors/sidebar.mjs +13 -13
  149. package/dist/behaviors/slider.d.mts +1 -1
  150. package/dist/behaviors/slider.mjs +9 -9
  151. package/dist/behaviors/split-pane.d.mts +1 -1
  152. package/dist/behaviors/split-pane.mjs +7 -7
  153. package/dist/behaviors/suggestions.d.mts +27 -0
  154. package/dist/behaviors/suggestions.mjs +1089 -0
  155. package/dist/behaviors/svg-parse.d.mts +14 -0
  156. package/dist/behaviors/svg-parse.mjs +37 -0
  157. package/dist/behaviors/tabs.d.mts +2 -2
  158. package/dist/behaviors/tabs.mjs +25 -25
  159. package/dist/behaviors/tag-input.d.mts +23 -5
  160. package/dist/behaviors/tag-input.mjs +1359 -104
  161. package/dist/behaviors/theme-switcher.d.mts +24 -0
  162. package/dist/behaviors/theme-switcher.mjs +1981 -0
  163. package/dist/behaviors/theme.d.mts +15 -8
  164. package/dist/behaviors/theme.mjs +390 -28
  165. package/dist/behaviors/toast.d.mts +24 -25
  166. package/dist/behaviors/toast.mjs +1266 -88
  167. package/dist/behaviors/tooltip.d.mts +4 -0
  168. package/dist/behaviors/tooltip.mjs +378 -0
  169. package/dist/behaviors/tree-select.d.mts +69 -0
  170. package/dist/behaviors/tree-select.mjs +1907 -0
  171. package/dist/behaviors/tree.d.mts +1 -1
  172. package/dist/behaviors/tree.mjs +15 -15
  173. package/dist/behaviors/upload.d.mts +3 -2
  174. package/dist/behaviors/upload.mjs +1076 -66
  175. package/dist/cli.mjs +5 -6
  176. package/dist/components/ai-branch.mjs +3 -0
  177. package/dist/components/ai-chat.css +846 -458
  178. package/dist/components/ai-diff.css +153 -132
  179. package/dist/components/ai-feedback.mjs +3 -0
  180. package/dist/components/ai-panel.css +495 -270
  181. package/dist/components/ai-threads.mjs +3 -0
  182. package/dist/components/ai-tool.css +393 -238
  183. package/dist/components/autocomplete.css +61 -0
  184. package/dist/components/autocomplete.mjs +3 -0
  185. package/dist/components/back-top.css +34 -31
  186. package/dist/components/badge.css +44 -41
  187. package/dist/components/breadcrumb.css +67 -46
  188. package/dist/components/btn.css +80 -74
  189. package/dist/components/card.css +117 -106
  190. package/dist/components/cascader.css +311 -0
  191. package/dist/components/cascader.mjs +3 -0
  192. package/dist/components/chart-area.css +8 -2
  193. package/dist/components/chart-bar.css +95 -33
  194. package/dist/components/chart-gauge.css +14 -11
  195. package/dist/components/chart-graph.css +60 -0
  196. package/dist/components/chart-graph.mjs +4 -0
  197. package/dist/components/chart-heatmap.css +96 -90
  198. package/dist/components/chart-line.css +8 -3
  199. package/dist/components/chart-map.mjs +3 -0
  200. package/dist/components/chart-pie.css +9 -6
  201. package/dist/components/chart-radar.css +8 -5
  202. package/dist/components/chart-scatter.css +9 -6
  203. package/dist/components/chart-scatter.mjs +1 -1
  204. package/dist/components/chart-sparkline.css +5 -2
  205. package/dist/components/chart-stack.css +14 -11
  206. package/dist/components/charts.css +190 -67
  207. package/dist/components/charts.mjs +1 -0
  208. package/dist/components/code-block.css +418 -0
  209. package/dist/components/code-block.mjs +4 -0
  210. package/dist/components/command-palette.css +138 -117
  211. package/dist/components/content.css +257 -251
  212. package/dist/components/copy.css +72 -44
  213. package/dist/components/datatable.css +423 -181
  214. package/dist/components/date-picker.css +135 -104
  215. package/dist/components/empty.css +68 -65
  216. package/dist/components/feedback.css +201 -183
  217. package/dist/components/form-validate.css +120 -0
  218. package/dist/components/form-validate.mjs +3 -0
  219. package/dist/components/form.css +150 -127
  220. package/dist/components/icon.css +102 -0
  221. package/dist/components/icon.mjs +3 -0
  222. package/dist/components/input.css +159 -104
  223. package/dist/components/kb-access.mjs +4 -0
  224. package/dist/components/kb-acl.mjs +4 -0
  225. package/dist/components/kb-agent.css +496 -0
  226. package/dist/components/kb-answer.mjs +4 -0
  227. package/dist/components/kb-audit.mjs +4 -0
  228. package/dist/components/kb-canvas.mjs +4 -0
  229. package/dist/components/kb-chain.mjs +4 -0
  230. package/dist/components/kb-checkpoint.mjs +4 -0
  231. package/dist/components/kb-chunks.mjs +4 -0
  232. package/dist/components/kb-citation.mjs +4 -0
  233. package/dist/components/kb-clarify.mjs +4 -0
  234. package/dist/components/kb-conflict.mjs +4 -0
  235. package/dist/components/kb-connector.mjs +4 -0
  236. package/dist/components/kb-data.css +653 -0
  237. package/dist/components/kb-eval.mjs +4 -0
  238. package/dist/components/kb-explain.mjs +4 -0
  239. package/dist/components/kb-filter.mjs +4 -0
  240. package/dist/components/kb-gap.mjs +4 -0
  241. package/dist/components/kb-ground.css +578 -0
  242. package/dist/components/kb-hittest.mjs +4 -0
  243. package/dist/components/kb-ingest.css +882 -0
  244. package/dist/components/kb-metadata.mjs +4 -0
  245. package/dist/components/kb-ops.css +554 -0
  246. package/dist/components/kb-passage.mjs +4 -0
  247. package/dist/components/kb-perm.css +433 -0
  248. package/dist/components/kb-pipeline.mjs +4 -0
  249. package/dist/components/kb-qa.mjs +4 -0
  250. package/dist/components/kb-rerank.mjs +4 -0
  251. package/dist/components/kb-retrieval.mjs +4 -0
  252. package/dist/components/kb-review.mjs +4 -0
  253. package/dist/components/kb-sandbox.mjs +4 -0
  254. package/dist/components/kb-search.css +897 -0
  255. package/dist/components/kb-segment.mjs +4 -0
  256. package/dist/components/kb-sources.mjs +4 -0
  257. package/dist/components/kb-sql.mjs +4 -0
  258. package/dist/components/kb-trace.mjs +4 -0
  259. package/dist/components/kb-visibility.mjs +4 -0
  260. package/dist/components/kb-who-can.mjs +4 -0
  261. package/dist/components/kb.css +263 -0
  262. package/dist/components/kb.mjs +9 -0
  263. package/dist/components/layout.css +85 -82
  264. package/dist/components/material-chinese.css +73 -0
  265. package/dist/components/material-soviet.css +76 -0
  266. package/dist/components/material.css +275 -0
  267. package/dist/components/media.css +220 -166
  268. package/dist/components/mentions.css +189 -0
  269. package/dist/components/mentions.mjs +3 -0
  270. package/dist/components/menu.css +113 -105
  271. package/dist/components/modal.css +107 -112
  272. package/dist/components/nav.css +118 -115
  273. package/dist/components/notification.css +238 -174
  274. package/dist/components/pagination.css +56 -53
  275. package/dist/components/panel.css +66 -63
  276. package/dist/components/panel.mjs +1 -0
  277. package/dist/components/pill.css +81 -71
  278. package/dist/components/popover.css +67 -53
  279. package/dist/components/scroll-area.css +113 -110
  280. package/dist/components/segmented.css +146 -143
  281. package/dist/components/select.css +206 -186
  282. package/dist/components/sidebar.css +137 -127
  283. package/dist/components/slider.css +117 -114
  284. package/dist/components/split-pane.css +112 -109
  285. package/dist/components/stat.css +112 -106
  286. package/dist/components/steps.css +109 -103
  287. package/dist/components/switch.css +138 -134
  288. package/dist/components/table.css +131 -107
  289. package/dist/components/tabs.css +114 -108
  290. package/dist/components/tag-input.css +48 -133
  291. package/dist/components/tag.css +81 -71
  292. package/dist/components/theme-switcher.css +105 -0
  293. package/dist/components/theme-switcher.mjs +3 -0
  294. package/dist/components/toast.css +100 -86
  295. package/dist/components/toolbar.css +45 -42
  296. package/dist/components/tooltip.css +102 -43
  297. package/dist/components/tooltip.mjs +1 -0
  298. package/dist/components/tree-select.css +416 -0
  299. package/dist/components/tree-select.mjs +3 -0
  300. package/dist/components/upload.css +135 -92
  301. package/dist/fonts/LICENSES/ark-pixel/OFL.txt +96 -0
  302. package/dist/fonts/LICENSES/cubic-11/OFL.txt +108 -0
  303. package/dist/fonts/LICENSES/galmuri/LICENSE.txt +93 -0
  304. package/dist/fonts/OFL.txt +96 -0
  305. package/dist/fonts/README.md +14 -0
  306. package/dist/fonts/fusion-pixel-12px-zh-hans.woff2 +0 -0
  307. package/dist/index.d.mts +64 -15
  308. package/dist/index.mjs +28049 -8595
  309. package/dist/react.d.mts +91 -0
  310. package/dist/react.mjs +8208 -0
  311. package/dist/registry.json +454 -15
  312. package/dist/tokens/chinese.css +44 -0
  313. package/dist/tokens/colors.css +365 -1222
  314. package/dist/tokens/design.css +109 -0
  315. package/dist/tokens/dtcg.json +11198 -0
  316. package/dist/tokens/figma.variables.json +7017 -0
  317. package/dist/tokens/icon-masks.css +78 -0
  318. package/dist/tokens/pixel.css +50 -0
  319. package/dist/tokens/soviet.css +44 -0
  320. package/dist/tokens/style-profiles.css +36 -547
  321. package/dist/tokens/themes.json +308 -0
  322. package/dist/tokens/tokens-studio.json +6728 -0
  323. package/dist/tokens/typography.css +21 -18
  324. package/dist/tokens.css +1555 -1801
  325. package/dist/ui.css +16147 -8597
  326. package/dist/vue.d.mts +344 -0
  327. package/dist/vue.mjs +7781 -0
  328. package/docs/spec/ai-input-experience.md +75 -0
  329. package/docs/spec/ai-native.md +238 -147
  330. package/docs/spec/design-philosophy.md +189 -0
  331. package/docs/spec/design-primitives.md +196 -0
  332. package/docs/spec/kb-family.md +475 -0
  333. package/package.json +42 -7
  334. package/dist/retro-effects.css +0 -255
  335. package/dist/tokens/retro-effects.css +0 -255
@@ -0,0 +1,433 @@
1
+ @layer icen.components {
2
+ /*
3
+ * @icen.ai/ui — kb-perm.css(权限域:kb-acl / kb-who-can / kb-access / kb-audit / kb-visibility)
4
+ *
5
+ * 安全纪律(spec §9.0,评审必查):
6
+ * - 对授权侧诚实(身份/过滤层徽标/安全计数/审批路由),对受限侧沉默(被裁数量/标题/分数一律不渲染)
7
+ * - 「不知道」与「不能说」不可区分;deny 一票否决置顶;break-glass 行警示粒度 ≥ 常规
8
+ *
9
+ * 共享原语来自 kb.css(.icen-kb-row/.icen-kb-num/.icen-kb-meta/.icen-kb-dot/.icen-kb-badge/.icen-kb-chip/.icen-kb-empty/.icen-kb-notice)。
10
+ * 本文件三段分界,各组件作者只填自己的段。
11
+ */
12
+
13
+ /* ══════════════ 段A · kb-acl + kb-who-can(文档权限面板 + 有效权限检查器)══════════════ */
14
+
15
+ /* —— kb-acl:继承 banner / grants 双区 / deny 置顶 / system 不可删 —— */
16
+ .icen-kb-acl { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
17
+
18
+ .icen-kb-acl-inherit {
19
+ display: flex; align-items: center; gap: 8px;
20
+ padding: 7px 10px;
21
+ font-size: 12px; color: var(--icen-token-text-muted);
22
+ border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
23
+ background: color-mix(in srgb, var(--icen-token-bg) 55%, transparent);
24
+ }
25
+ .icen-kb-acl-inherit .icen-kb-acl-chain-link { color: var(--icen-token-text-faint); }
26
+ .icen-kb-acl-inherit.is-broken {
27
+ color: var(--icen-token-warning);
28
+ border-color: color-mix(in srgb, var(--icen-token-warning) 45%, transparent);
29
+ background: color-mix(in srgb, var(--icen-token-warning) 6%, transparent);
30
+ }
31
+ .icen-kb-acl-inherit.is-partial { color: var(--icen-token-info); }
32
+
33
+ .icen-kb-acl-grant {
34
+ display: flex; align-items: center; gap: 8px;
35
+ min-height: 28px; padding: 2px 0;
36
+ border-bottom: 1px solid var(--icen-token-line-soft);
37
+ }
38
+ .icen-kb-acl-grant:last-child { border-bottom: none; }
39
+ .icen-kb-acl-grant.is-deny { order: -1; }
40
+ .icen-kb-acl-grant.is-deny .icen-kb-acl-role { color: var(--icen-token-error); border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent); }
41
+ .icen-kb-acl-grant.is-expiring .icen-kb-acl-meta { color: var(--icen-token-warning); }
42
+ .icen-kb-acl-grant.is-system .icen-kb-acl-remove { display: none; }
43
+
44
+ .icen-kb-acl-subject { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; font-size: 12.5px; color: var(--icen-token-text); }
45
+ .icen-kb-acl-subject[data-icen-kind='group']::before,
46
+ .icen-kb-acl-subject[data-icen-kind='link']::before {
47
+ content: ''; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
48
+ background: var(--icen-token-text-faint);
49
+ }
50
+ .icen-kb-acl-role { flex: 0 0 auto; }
51
+ .icen-kb-acl-meta { flex: 0 1 auto; margin-inline-start: auto; font-size: 11.5px; color: var(--icen-token-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
52
+ .icen-kb-acl-remove { flex: 0 0 auto; }
53
+ .icen-kb-acl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
54
+
55
+ /* —— kb-who-can:view-as 检查器(结论 + 扁平原因链)—— */
56
+ .icen-kb-whocan { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
57
+ .icen-kb-whocan-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
58
+ .icen-kb-whocan-result { display: flex; flex-direction: column; gap: 8px; }
59
+ .icen-kb-whocan-verdict { font-size: 13px; font-weight: 600; color: var(--icen-token-text); }
60
+ .icen-kb-whocan-result.is-denied .icen-kb-whocan-verdict { color: var(--icen-token-error); }
61
+ .icen-kb-whocan-deniedby {
62
+ padding: 6px 10px; font-size: 12px;
63
+ color: var(--icen-token-error);
64
+ border-inline-start: 2px solid var(--icen-token-error);
65
+ background: color-mix(in srgb, var(--icen-token-error) 6%, transparent);
66
+ border-start-end-radius: var(--icen-radius-sm);
67
+ border-end-end-radius: var(--icen-radius-sm);
68
+ }
69
+ .icen-kb-whocan-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
70
+ .icen-kb-whocan-reason { display: flex; align-items: baseline; gap: 8px; min-height: 26px; padding: 2px 0; border-bottom: 1px solid var(--icen-token-line-soft); font-size: 12.5px; }
71
+ .icen-kb-whocan-reason:last-child { border-bottom: none; }
72
+ .icen-kb-whocan-reason .icen-kb-meta { margin-inline-start: auto; }
73
+ .icen-kb-whocan-rule { font-size: 11.5px; color: var(--icen-token-text-faint); }
74
+
75
+ /* —— 段A 装配件细化:kb-acl head / 区块标题 / 动作钮 / 移除钮 —— */
76
+ .icen-kb-acl-head { display: flex; align-items: center; gap: 8px; min-inline-size: 0; }
77
+ .icen-kb-acl-title {
78
+ display: inline-flex; align-items: center; gap: 6px;
79
+ flex: 1 1 auto; min-inline-size: 0;
80
+ font-size: 13px; font-weight: 600; color: var(--icen-token-text);
81
+ }
82
+ .icen-kb-acl-title svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--icen-token-text-faint); }
83
+ .icen-kb-acl-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
84
+ .icen-kb-acl-act {
85
+ flex: 0 0 auto; height: 24px; padding: 0 10px;
86
+ font: inherit; font-size: 12px; line-height: 1;
87
+ color: var(--icen-token-text-muted);
88
+ background: transparent;
89
+ border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
90
+ cursor: pointer;
91
+ transition: color 0.16s ease-out, background-color 0.16s ease-out, border-color 0.16s ease-out;
92
+ }
93
+ .icen-kb-acl-act:hover { color: var(--icen-token-text); border-color: var(--icen-token-line); }
94
+ /* 恢复继承将丢弃本项自定义授权——破坏性动作用描边式 danger(克制,不做实底) */
95
+ .icen-kb-acl-act.is-danger {
96
+ color: var(--icen-token-error);
97
+ border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent);
98
+ }
99
+ .icen-kb-acl-act.is-danger:hover {
100
+ background: color-mix(in srgb, var(--icen-token-error) 6%, transparent);
101
+ border-color: color-mix(in srgb, var(--icen-token-error) 60%, transparent);
102
+ }
103
+ /* 授权区容器走 flex 列:deny 行的 order:-1(骨架已置)真正生效,区块标题恒在其前 */
104
+ .icen-kb-acl-grants, .icen-kb-acl-links { display: flex; flex-direction: column; }
105
+ .icen-kb-acl-sec { order: -2; font-size: 11.5px; letter-spacing: 0.3px; color: var(--icen-token-text-faint); }
106
+ .icen-kb-acl-note { font-size: 11px; }
107
+ .icen-kb-acl-none { padding: 4px 0; }
108
+ .icen-kb-acl-remove {
109
+ display: inline-flex; align-items: center; justify-content: center;
110
+ width: 22px; height: 22px; padding: 0;
111
+ font: inherit; font-size: 13px; line-height: 1;
112
+ color: var(--icen-token-text-faint);
113
+ background: transparent; border: none; border-radius: var(--icen-radius-sm);
114
+ cursor: pointer;
115
+ transition: color 0.16s ease-out, background-color 0.16s ease-out;
116
+ }
117
+ .icen-kb-acl-remove:hover { color: var(--icen-token-error); background: color-mix(in srgb, var(--icen-token-error) 7%, transparent); }
118
+ /* 面板主行动(accent 线框——面板内唯一 accent 级操作) */
119
+ .icen-kb-acl-grant-btn {
120
+ flex: 0 0 auto; height: 26px; padding: 0 12px;
121
+ font: inherit; font-size: 12.5px; line-height: 1;
122
+ color: var(--icen-token-accent-text);
123
+ background: transparent;
124
+ border: 1px solid color-mix(in srgb, var(--icen-token-accent) 45%, transparent);
125
+ border-radius: var(--icen-radius-sm);
126
+ cursor: pointer;
127
+ transition: background-color 0.16s ease-out, border-color 0.16s ease-out;
128
+ }
129
+ .icen-kb-acl-grant-btn:hover { background: color-mix(in srgb, var(--icen-token-accent) 8%, transparent); }
130
+ .icen-kb-acl-remove:focus-visible, .icen-kb-acl-act:focus-visible, .icen-kb-acl-grant-btn:focus-visible {
131
+ outline: 2px solid var(--icen-token-accent); outline-offset: -2px;
132
+ }
133
+
134
+ /* —— 段A 装配件细化:kb-who-can 身份下拉 / 检查钮 / 原因链徽标 —— */
135
+ /* 弹层选择器(icen-select)域钩子:面样式随 select.css,此处只管布局 */
136
+ .icen-kb-whocan-user { flex: 0 1 240px; }
137
+ .icen-kb-whocan-check {
138
+ height: 26px; padding: 0 12px;
139
+ font: inherit; font-size: 12.5px; line-height: 1;
140
+ color: var(--icen-token-text-muted);
141
+ background: transparent;
142
+ border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
143
+ cursor: pointer;
144
+ transition: color 0.16s ease-out, background-color 0.16s ease-out, border-color 0.16s ease-out;
145
+ }
146
+ .icen-kb-whocan-check:hover:not(:disabled) { color: var(--icen-token-text); background: var(--icen-token-bg-soft); border-color: var(--icen-token-line); }
147
+ .icen-kb-whocan-check:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: -2px; }
148
+ .icen-kb-whocan-user:disabled, .icen-kb-whocan-check:disabled { opacity: var(--icen-disabled-opacity); cursor: not-allowed; }
149
+ .icen-kb-whocan-source { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--icen-token-text); }
150
+ .icen-kb-whocan-reason .icen-kb-badge { flex: 0 0 auto; }
151
+ /* deny 来源:红色 badge(克制——只落在徽标层),主体文本弱化 */
152
+ .icen-kb-whocan-reason.is-deny .icen-kb-badge {
153
+ color: var(--icen-token-error);
154
+ border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent);
155
+ }
156
+ .icen-kb-whocan-reason.is-deny .icen-kb-whocan-source { color: var(--icen-token-text-muted); }
157
+ .icen-kb-whocan-role { flex: 0 0 auto; }
158
+ .icen-kb-whocan-none { padding: 4px 0; }
159
+ .icen-kb-whocan-expires { font-size: 11px; }
160
+
161
+ /* ══════════════ 段B · kb-access + kb-audit(访问申请流 + 审计时间线)══════════════ */
162
+
163
+ /* —— kb-access:被拒五件套 + 状态机徽章族 —— */
164
+ .icen-kb-access { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
165
+ .icen-kb-access-denied { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-md); }
166
+ .icen-kb-access-title { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--icen-token-text); }
167
+ .icen-kb-access-title svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--icen-token-text-faint); }
168
+ .icen-kb-access-why { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--icen-token-text-muted); }
169
+ .icen-kb-access-owner { font-size: 12px; color: var(--icen-token-text-faint); }
170
+ .icen-kb-access-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
171
+ .icen-kb-access-form { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-md); }
172
+ .icen-kb-access-form[hidden] { display: none; }
173
+ .icen-kb-access-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--icen-token-text-muted); }
174
+ .icen-kb-access-state .icen-kb-chip[data-icen-state='granted'] { color: var(--icen-token-success); border-color: color-mix(in srgb, var(--icen-token-success) 45%, transparent); }
175
+ .icen-kb-access-state .icen-kb-chip[data-icen-state='expiring'],
176
+ .icen-kb-access-state .icen-kb-chip[data-icen-state='expired'] { color: var(--icen-token-warning); border-color: color-mix(in srgb, var(--icen-token-warning) 45%, transparent); }
177
+ .icen-kb-access-state .icen-kb-chip[data-icen-state='revoked'] { color: var(--icen-token-text-faint); }
178
+ /* denied 不做刺眼红色终态(业界静默默契)——中性呈现 */
179
+ .icen-kb-access-queue { display: flex; flex-direction: column; gap: 8px; }
180
+ .icen-kb-access-req { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm); font-size: 12.5px; }
181
+ .icen-kb-access-req .icen-kb-access-req-actions { margin-inline-start: auto; display: inline-flex; gap: 6px; }
182
+
183
+ /* —— kb-audit:通道过滤 + 异味节 + 时间线 —— */
184
+ .icen-kb-audit { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
185
+ .icen-kb-audit-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
186
+ .icen-kb-audit-channels { display: inline-flex; gap: 6px; flex-wrap: wrap; }
187
+ .icen-kb-audit-channels .icen-kb-chip[aria-pressed='true'] { color: var(--icen-token-accent-text); border-color: var(--icen-token-accent); }
188
+ .icen-kb-audit-hygiene { display: flex; flex-direction: column; gap: 6px; }
189
+ .icen-kb-hygiene { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 7px 10px; font-size: 12.5px; border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm); }
190
+ .icen-kb-hygiene.is-high { border-color: color-mix(in srgb, var(--icen-token-error) 40%, transparent); background: color-mix(in srgb, var(--icen-token-error) 5%, transparent); }
191
+ .icen-kb-hygiene.is-medium { border-color: color-mix(in srgb, var(--icen-token-warning) 40%, transparent); }
192
+ .icen-kb-hygiene .icen-kb-hygiene-act { margin-inline-start: auto; }
193
+ .icen-kb-audit-list { list-style: none; margin: 0; padding: 0; }
194
+ .icen-kb-audit-entry { display: flex; align-items: baseline; gap: 8px; min-height: 28px; padding: 2px 0; border-bottom: 1px solid var(--icen-token-line-soft); font-size: 12.5px; }
195
+ .icen-kb-audit-entry:last-child { border-bottom: none; }
196
+ .icen-kb-audit-entry .icen-kb-audit-detail { flex: 1 1 auto; min-width: 0; color: var(--icen-token-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
197
+ /* break-glass:审计粒度 ≥ 常规 + 常驻警示 */
198
+ .icen-kb-audit-entry.is-breakglass { padding: 4px 8px; border-radius: var(--icen-radius-sm); background: color-mix(in srgb, var(--icen-token-error) 7%, transparent); border-bottom-color: transparent; }
199
+ .icen-kb-audit-entry.is-breakglass .icen-kb-audit-action { color: var(--icen-token-error); border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent); }
200
+ .icen-kb-audit-actor[data-icen-kind='system'], .icen-kb-audit-actor[data-icen-kind='app'] { color: var(--icen-token-text-faint); }
201
+
202
+ /* —— 段B 细化 · kb-access 构件(按钮/表单/角色 chip/队列行)—— */
203
+
204
+ /* 主作用(accent 稀缺资源:被拒五件套的「申请访问」/表单的「提交申请」各为其视图唯一 accent 钮) */
205
+ .icen-kb-access-btn {
206
+ display: inline-flex; align-items: center; gap: 6px;
207
+ font: inherit; font-size: 12.5px;
208
+ color: var(--icen-token-on-accent);
209
+ background: var(--icen-token-accent-strong);
210
+ border: none; border-radius: var(--icen-radius-sm);
211
+ padding: 6px 14px; cursor: pointer;
212
+ }
213
+ .icen-kb-access-btn:hover { background: var(--icen-token-accent-deep); }
214
+ .icen-kb-access-btn:focus-visible, .icen-kb-access-act:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 2px; }
215
+ .icen-kb-access-btn svg { width: 12px; height: 12px; flex: 0 0 auto; }
216
+ /* 次作用 ghost(切换身份 / 批准 / 拒绝):永不用 accent,避免与主行动争夺 */
217
+ .icen-kb-access-btn--ghost {
218
+ color: var(--icen-token-text-muted);
219
+ background: transparent;
220
+ border: 1px solid var(--icen-token-line-soft);
221
+ }
222
+ .icen-kb-access-btn--ghost:hover {
223
+ color: var(--icen-token-text);
224
+ border-color: var(--icen-token-line);
225
+ background: var(--icen-token-bg-soft);
226
+ }
227
+ /* 状态行文字钮(申请续期/重新申请):链接级弱化,不用按钮盒子 */
228
+ .icen-kb-access-act {
229
+ font: inherit; font-size: 12px;
230
+ color: var(--icen-token-accent);
231
+ background: none; border: none; padding: 0;
232
+ cursor: pointer; text-decoration: underline;
233
+ text-underline-offset: 3px;
234
+ }
235
+ .icen-kb-access-act:hover { color: var(--icen-token-accent-deep); }
236
+
237
+ /* 表单控件:理由 / 角色三选 / 时长 */
238
+ .icen-kb-access-reason {
239
+ font: inherit; font-size: 12.5px; line-height: 1.6;
240
+ color: var(--icen-token-text);
241
+ background: var(--icen-token-bg);
242
+ border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
243
+ padding: 7px 9px; resize: vertical; min-height: 56px;
244
+ }
245
+ .icen-kb-access-reason:focus-visible, .icen-kb-access-duration:focus-visible,
246
+ .icen-kb-access-approve-role:focus-visible, .icen-kb-access-note:focus-visible {
247
+ outline: 2px solid var(--icen-token-accent); outline-offset: 1px;
248
+ }
249
+ .icen-kb-access-roles { display: inline-flex; gap: 6px; flex-wrap: wrap; }
250
+ .icen-kb-access-role {
251
+ display: inline-flex; align-items: center;
252
+ font: inherit; font-size: 12px;
253
+ color: var(--icen-token-text-muted);
254
+ background: var(--icen-token-bg);
255
+ border: 1px solid var(--icen-token-line-soft);
256
+ border-radius: var(--icen-radius-full);
257
+ padding: 3px 10px; cursor: pointer;
258
+ }
259
+ .icen-kb-access-role:hover { border-color: var(--icen-token-line); color: var(--icen-token-text); }
260
+ .icen-kb-access-role.is-on {
261
+ color: var(--icen-token-accent);
262
+ border-color: color-mix(in srgb, var(--icen-token-accent) 50%, transparent);
263
+ background: var(--icen-token-accent-subtle);
264
+ }
265
+ .icen-kb-access-duration-row { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--icen-token-text-muted); }
266
+ /* 弹层选择器(icen-select)域钩子:面样式随 select.css,此处只管布局 */
267
+ .icen-kb-access-duration { flex: 0 1 150px; }
268
+ .icen-kb-access-route { align-self: flex-start; }
269
+ .icen-kb-access-submit {
270
+ align-self: flex-start;
271
+ font: inherit; font-size: 12.5px;
272
+ color: var(--icen-token-on-accent);
273
+ background: var(--icen-token-accent-strong);
274
+ border: none; border-radius: var(--icen-radius-sm);
275
+ padding: 6px 14px; cursor: pointer;
276
+ }
277
+ .icen-kb-access-submit:hover { background: var(--icen-token-accent-deep); }
278
+ .icen-kb-access-countdown { font-size: 11.5px; color: var(--icen-token-text-muted); }
279
+
280
+ /* 队列行(approver 视角) */
281
+ .icen-kb-access-req-user { font-weight: 600; color: var(--icen-token-text); }
282
+ .icen-kb-access-req-resource { color: var(--icen-token-text); }
283
+ .icen-kb-access-req-at { font-size: 11px; color: var(--icen-token-text-faint); }
284
+ .icen-kb-access-req-reason { flex: 1 1 160px; min-width: 120px; }
285
+ /* 弹层选择器(icen-select)域钩子:面样式随 select.css,此处只管布局 */
286
+ .icen-kb-access-approve-role { flex: 0 1 auto; }
287
+ .icen-kb-access-note {
288
+ font: inherit; font-size: 12px;
289
+ color: var(--icen-token-text);
290
+ background: var(--icen-token-bg);
291
+ border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
292
+ padding: 4px 8px; resize: none; min-width: 140px;
293
+ }
294
+ .icen-kb-access-req-decided { color: var(--icen-token-text-faint); }
295
+
296
+ /* —— 段B 细化 · kb-audit 构件(chip 钮 / 导出钮 / 异味行 / 过滤断崖)—— */
297
+
298
+ /* 通道 chip 是原生 button:补指针与过渡(激活态配色由上方 aria-pressed 规则承担) */
299
+ .icen-kb-audit-channels .icen-kb-chip { cursor: pointer; transition: color 0.16s ease-out, border-color 0.16s ease-out; }
300
+ .icen-kb-audit-channels .icen-kb-chip:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 1px; }
301
+ .icen-kb-audit-export {
302
+ font: inherit; font-size: 11.5px;
303
+ color: var(--icen-token-text-muted);
304
+ background: transparent;
305
+ border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
306
+ padding: 3px 10px; cursor: pointer;
307
+ margin-inline-start: auto;
308
+ }
309
+ .icen-kb-audit-export:hover { color: var(--icen-token-text); border-color: var(--icen-token-line); background: var(--icen-token-bg-soft); }
310
+ .icen-kb-audit-export:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 1px; }
311
+ /* 过滤显隐:行本身是 flex,hidden 属性会被 display 覆盖——必须显式归零 */
312
+ .icen-kb-audit-entry[hidden] { display: none; }
313
+ .icen-kb-audit-at { flex: 0 0 auto; font-size: 11px; color: var(--icen-token-text-faint); }
314
+ .icen-kb-audit-actor { flex: 0 1 auto; min-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
315
+ .icen-kb-audit-action { flex: 0 0 auto; }
316
+ .icen-kb-audit-alert { flex: 0 0 auto; }
317
+
318
+ /* 权限异味行内件 */
319
+ .icen-kb-hygiene-kind { flex: 0 0 auto; }
320
+ .icen-kb-hygiene.is-high .icen-kb-hygiene-kind { color: var(--icen-token-error); border-color: color-mix(in srgb, var(--icen-token-error) 45%, transparent); }
321
+ .icen-kb-hygiene.is-medium .icen-kb-hygiene-kind { color: var(--icen-token-warning); border-color: color-mix(in srgb, var(--icen-token-warning) 45%, transparent); }
322
+ .icen-kb-hygiene-resource { font-weight: 600; color: var(--icen-token-text); }
323
+ .icen-kb-hygiene-metric { flex: 0 0 auto; font-size: 11.5px; }
324
+ .icen-kb-hygiene-hint { flex: 1 1 140px; min-width: 100px; }
325
+ .icen-kb-hygiene-act {
326
+ font: inherit; font-size: 11.5px;
327
+ color: var(--icen-token-text-muted);
328
+ background: transparent;
329
+ border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-sm);
330
+ padding: 2px 10px; cursor: pointer;
331
+ }
332
+ .icen-kb-hygiene-act:hover { color: var(--icen-token-text); border-color: var(--icen-token-line); background: var(--icen-token-bg-soft); }
333
+ .icen-kb-hygiene-act:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 1px; }
334
+
335
+ /* ══════════════ 段C · kb-visibility(检索可见性对照器,admin 专用)══════════════ */
336
+
337
+ .icen-kb-visibility { display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
338
+ .icen-kb-visibility-warn {
339
+ padding: 7px 10px; font-size: 12px;
340
+ color: var(--icen-token-warning);
341
+ border-inline-start: 2px solid var(--icen-token-warning);
342
+ background: color-mix(in srgb, var(--icen-token-warning) 6%, transparent);
343
+ border-start-end-radius: var(--icen-radius-sm);
344
+ border-end-end-radius: var(--icen-radius-sm);
345
+ }
346
+ .icen-kb-visibility-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
347
+ .icen-kb-visibility-bar .icen-kb-chip[aria-pressed='true'] { color: var(--icen-token-accent); border-color: var(--icen-token-accent); }
348
+ /* 过滤层徽标 .icen-kb-layer-chip 三态定义在 kb.css 基座(检索域 kit 也消费,勿在此重复) */
349
+ .icen-kb-visibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
350
+ .icen-kb-visibility-col { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--icen-token-line-soft); border-radius: var(--icen-radius-md); min-width: 0; }
351
+ .icen-kb-visibility-col header { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--icen-token-text); }
352
+ .icen-kb-visibility-count { font-size: 11.5px; color: var(--icen-token-text-faint); }
353
+ /* metadata 级:锁 + 标题 + 打码摘要 + 申请入口(知道存在,内容不可见) */
354
+ .icen-kb-visibility-hit { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; border-bottom: 1px solid var(--icen-token-line-soft); font-size: 12.5px; }
355
+ .icen-kb-visibility-hit:last-child { border-bottom: none; }
356
+ .icen-kb-visibility-hit[data-icen-visibility='metadata'] .icen-kb-visibility-snippet,
357
+ .icen-kb-visibility-hit[data-icen-visibility='summary'] .icen-kb-visibility-snippet {
358
+ display: block; height: 10px; border-radius: 3px; /* guard:allow-radius 微构件(bar/dot/track/指示器等图形级,不属容器圆角面) */
359
+ background: color-mix(in srgb, var(--icen-token-text-faint) 18%, transparent);
360
+ }
361
+ .icen-kb-visibility-hit[data-icen-visibility='summary'] .icen-kb-visibility-summary { font-size: 12px; color: var(--icen-token-text-muted); line-height: 1.6; }
362
+ .icen-kb-visibility-lesson { font-size: 12px; line-height: 1.8; color: var(--icen-token-text-muted); padding-top: 6px; border-top: 1px solid var(--icen-token-line-soft); }
363
+
364
+ /* —— 段C 细化(实现补齐;上方骨架规则不动)—— */
365
+
366
+ /* 身份 chip 是可点控件:补指针语义(kb-chip 基座不含 cursor;.icen-kb-layer-chip 的已在 kb.css) */
367
+ .icen-kb-visibility-idn { cursor: pointer; }
368
+ .icen-kb-visibility-idn:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 1px; }
369
+
370
+ /* 身份聚焦:点击 bar 内身份 chip 高亮对应列(accent 弱化底,不与警示条抢注意力) */
371
+ .icen-kb-visibility-col.is-focused {
372
+ border-color: color-mix(in srgb, var(--icen-token-accent) 55%, transparent);
373
+ background: color-mix(in srgb, var(--icen-token-accent) 4%, transparent);
374
+ }
375
+
376
+ /* 列头:身份 label 主位 + note 弱化(只放身份,不放有效角色——角色求值属 kb-who-can 职责) */
377
+ .icen-kb-visibility-col header .icen-kb-meta { font-weight: 400; }
378
+
379
+ /* 命中行标题:锁图标(metadata/restricted 级)+ 标题单行省略 */
380
+ .icen-kb-visibility-hit-title { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--icen-token-text); }
381
+ .icen-kb-visibility-hit-title svg { width: 12px; height: 12px; flex: 0 0 auto; color: var(--icen-token-text-faint); }
382
+ .icen-kb-visibility-hit-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
383
+ .icen-kb-visibility-hits { display: flex; flex-direction: column; }
384
+
385
+ /* summary 级:「原文不可用」禁用钮——显式禁用不做可点假象(摘要权限 ≠ 原文权限) */
386
+ .icen-kb-visibility-origoff {
387
+ align-self: flex-start;
388
+ padding: 0; border: none; background: none;
389
+ font: inherit; font-size: 11.5px;
390
+ color: var(--icen-token-text-faint);
391
+ cursor: not-allowed;
392
+ }
393
+
394
+ /* restricted 级:「申请访问」文字钮(展示件——真实申请流由宿主接 kb-access) */
395
+ .icen-kb-visibility-request {
396
+ align-self: flex-start;
397
+ padding: 0; border: none; background: none;
398
+ font: inherit; font-size: 11.5px;
399
+ color: var(--icen-token-text-muted);
400
+ cursor: pointer;
401
+ }
402
+ .icen-kb-visibility-request:hover { color: var(--icen-token-text); text-decoration: underline; }
403
+ .icen-kb-visibility-request:focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 2px; }
404
+
405
+ /* 教学段列表(三条安全课)+ 尾注 */
406
+ .icen-kb-visibility-lesson ul { list-style: disc; margin: 0 0 6px; padding-inline-start: 18px; }
407
+
408
+ /* 检索身份选择器 .icen-kb-retrieval-idn(-group) 与 .icen-kb-retrieval .icen-kb-notice[hidden] 归 kb-search.css
409
+ (检索域 kit 自持;kit/kb-retrieval 只带 kb.css + kb-search.css,放这里会缺样式) */
410
+
411
+ /* —— .is-revoked:权限收回后的历史引用中性态(spec §9.0-6;revoked 引用属权限呈现,故置于段C 尾。
412
+ faint 中性,禁红——「不知道」与「不能说」不可区分) —— */
413
+
414
+ /* hover 卡内标题后的中性 chip */
415
+ .icen-kb-chip.is-revoked {
416
+ color: var(--icen-token-text-faint);
417
+ border-color: var(--icen-token-line-soft);
418
+ background: transparent;
419
+ }
420
+
421
+ /* 正文角标 revoked 态:虚线框弱化、hover 不点亮 accent(保持可点/可悬停看卡,不删不留裸链) */
422
+ .icen-kb-citation.is-revoked {
423
+ color: var(--icen-token-text-faint);
424
+ border-style: dashed;
425
+ border-color: color-mix(in srgb, var(--icen-token-text-faint) 45%, transparent);
426
+ }
427
+ .icen-kb-citation.is-revoked:hover {
428
+ color: var(--icen-token-text-faint);
429
+ border-color: color-mix(in srgb, var(--icen-token-text-faint) 45%, transparent);
430
+ background: transparent;
431
+ }
432
+
433
+ }
@@ -0,0 +1,4 @@
1
+ // @icen.ai/ui — kit: kb-pipeline(CSS + behavior 一行入口;构建产物,勿手改)
2
+ import './kb-ingest.css';
3
+ import './kb.css';
4
+ export * from '../behaviors/kb-pipeline.mjs';
@@ -0,0 +1,4 @@
1
+ // @icen.ai/ui — kit: kb-qa(CSS + behavior 一行入口;构建产物,勿手改)
2
+ import './kb-ingest.css';
3
+ import './kb.css';
4
+ export * from '../behaviors/kb-qa.mjs';
@@ -0,0 +1,4 @@
1
+ // @icen.ai/ui — kit: kb-rerank(CSS + behavior 一行入口;构建产物,勿手改)
2
+ import './kb-search.css';
3
+ import './kb.css';
4
+ export * from '../behaviors/kb-rerank.mjs';
@@ -0,0 +1,4 @@
1
+ // @icen.ai/ui — kit: kb-retrieval(CSS + behavior 一行入口;构建产物,勿手改)
2
+ import './kb-search.css';
3
+ import './kb.css';
4
+ export * from '../behaviors/kb-retrieval.mjs';
@@ -0,0 +1,4 @@
1
+ // @icen.ai/ui — kit: kb-review(CSS + behavior 一行入口;构建产物,勿手改)
2
+ import './kb-ops.css';
3
+ import './kb.css';
4
+ export * from '../behaviors/kb-review.mjs';
@@ -0,0 +1,4 @@
1
+ // @icen.ai/ui — kit: kb-sandbox(CSS + behavior 一行入口;构建产物,勿手改)
2
+ import './kb-agent.css';
3
+ import './kb.css';
4
+ export * from '../behaviors/kb-sandbox.mjs';