@astra-spec/ui 0.0.4 → 0.0.6

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 (227) hide show
  1. package/README.md +47 -4
  2. package/TOKENS.md +14 -8
  3. package/blocks.css +1 -0
  4. package/components.css +6 -0
  5. package/dist/blocks/analysis-tree.d.ts.map +1 -1
  6. package/dist/blocks/analysis-tree.js +4 -7
  7. package/dist/blocks/analysis-tree.js.map +1 -1
  8. package/dist/blocks/decisions-list.d.ts.map +1 -1
  9. package/dist/blocks/decisions-list.js +1 -1
  10. package/dist/blocks/decisions-list.js.map +1 -1
  11. package/dist/blocks/findings-list.d.ts.map +1 -1
  12. package/dist/blocks/findings-list.js +3 -4
  13. package/dist/blocks/findings-list.js.map +1 -1
  14. package/dist/blocks/index.d.ts +2 -4
  15. package/dist/blocks/index.d.ts.map +1 -1
  16. package/dist/blocks/index.js +1 -2
  17. package/dist/blocks/index.js.map +1 -1
  18. package/dist/blocks/outputs-list.d.ts +2 -7
  19. package/dist/blocks/outputs-list.d.ts.map +1 -1
  20. package/dist/blocks/outputs-list.js +11 -21
  21. package/dist/blocks/outputs-list.js.map +1 -1
  22. package/dist/blocks/papers-list.d.ts.map +1 -1
  23. package/dist/blocks/papers-list.js +3 -3
  24. package/dist/blocks/papers-list.js.map +1 -1
  25. package/dist/blocks/section.d.ts.map +1 -1
  26. package/dist/blocks/section.js +3 -2
  27. package/dist/blocks/section.js.map +1 -1
  28. package/dist/components/figure-zoom.d.ts +6 -0
  29. package/dist/components/figure-zoom.d.ts.map +1 -0
  30. package/dist/components/figure-zoom.js +28 -0
  31. package/dist/components/figure-zoom.js.map +1 -0
  32. package/dist/components/finding-detail.d.ts +4 -2
  33. package/dist/components/finding-detail.d.ts.map +1 -1
  34. package/dist/components/finding-detail.js +41 -25
  35. package/dist/components/finding-detail.js.map +1 -1
  36. package/dist/components/index.d.ts +9 -0
  37. package/dist/components/index.d.ts.map +1 -1
  38. package/dist/components/index.js +5 -0
  39. package/dist/components/index.js.map +1 -1
  40. package/dist/components/insight-trigger.d.ts.map +1 -1
  41. package/dist/components/insight-trigger.js +3 -2
  42. package/dist/components/insight-trigger.js.map +1 -1
  43. package/dist/components/output-card.d.ts +13 -0
  44. package/dist/components/output-card.d.ts.map +1 -0
  45. package/dist/components/output-card.js +12 -0
  46. package/dist/components/output-card.js.map +1 -0
  47. package/dist/components/output-detail.d.ts +6 -2
  48. package/dist/components/output-detail.d.ts.map +1 -1
  49. package/dist/components/output-detail.js +49 -13
  50. package/dist/components/output-detail.js.map +1 -1
  51. package/dist/components/output-dialog.d.ts +6 -1
  52. package/dist/components/output-dialog.d.ts.map +1 -1
  53. package/dist/components/output-dialog.js +2 -2
  54. package/dist/components/output-dialog.js.map +1 -1
  55. package/dist/components/output-entry.d.ts +17 -0
  56. package/dist/components/output-entry.d.ts.map +1 -0
  57. package/dist/components/output-entry.js +21 -0
  58. package/dist/components/output-entry.js.map +1 -0
  59. package/dist/components/output-provenance.d.ts +6 -0
  60. package/dist/components/output-provenance.d.ts.map +1 -0
  61. package/dist/components/output-provenance.js +16 -0
  62. package/dist/components/output-provenance.js.map +1 -0
  63. package/dist/components/output-status.d.ts +8 -0
  64. package/dist/components/output-status.d.ts.map +1 -0
  65. package/dist/components/output-status.js +17 -0
  66. package/dist/components/output-status.js.map +1 -0
  67. package/dist/components/paper-detail.d.ts.map +1 -1
  68. package/dist/components/paper-detail.js +2 -2
  69. package/dist/components/paper-detail.js.map +1 -1
  70. package/dist/components/paper-row.d.ts +9 -0
  71. package/dist/components/paper-row.d.ts.map +1 -0
  72. package/dist/components/paper-row.js +11 -0
  73. package/dist/components/paper-row.js.map +1 -0
  74. package/dist/components/record-dialog.d.ts +5 -1
  75. package/dist/components/record-dialog.d.ts.map +1 -1
  76. package/dist/components/record-dialog.js +7 -4
  77. package/dist/components/record-dialog.js.map +1 -1
  78. package/dist/components/record-preview.d.ts.map +1 -1
  79. package/dist/components/record-preview.js +8 -7
  80. package/dist/components/record-preview.js.map +1 -1
  81. package/dist/lib/labels.d.ts +34 -2
  82. package/dist/lib/labels.d.ts.map +1 -1
  83. package/dist/lib/labels.js +35 -4
  84. package/dist/lib/labels.js.map +1 -1
  85. package/dist/model/index.d.ts +4 -2
  86. package/dist/model/index.d.ts.map +1 -1
  87. package/dist/model/index.js +1 -1
  88. package/dist/model/index.js.map +1 -1
  89. package/dist/model/kind.d.ts +2 -2
  90. package/dist/model/kind.d.ts.map +1 -1
  91. package/dist/model/kind.js +3 -4
  92. package/dist/model/kind.js.map +1 -1
  93. package/dist/model/output-provenance.d.ts +17 -0
  94. package/dist/model/output-provenance.d.ts.map +1 -0
  95. package/dist/model/output-provenance.js +2 -0
  96. package/dist/model/output-provenance.js.map +1 -0
  97. package/dist/model/output-status.d.ts +17 -0
  98. package/dist/model/output-status.d.ts.map +1 -0
  99. package/dist/model/output-status.js +2 -0
  100. package/dist/model/output-status.js.map +1 -0
  101. package/dist/model/relations.d.ts +37 -12
  102. package/dist/model/relations.d.ts.map +1 -1
  103. package/dist/model/relations.js +76 -23
  104. package/dist/model/relations.js.map +1 -1
  105. package/dist/primitives/dialog.d.ts.map +1 -1
  106. package/dist/primitives/dialog.js +9 -1
  107. package/dist/primitives/dialog.js.map +1 -1
  108. package/dist/primitives/index.d.ts +6 -0
  109. package/dist/primitives/index.d.ts.map +1 -1
  110. package/dist/primitives/index.js +3 -0
  111. package/dist/primitives/index.js.map +1 -1
  112. package/dist/primitives/inline-reference.d.ts +9 -0
  113. package/dist/primitives/inline-reference.d.ts.map +1 -0
  114. package/dist/primitives/inline-reference.js +14 -0
  115. package/dist/primitives/inline-reference.js.map +1 -0
  116. package/dist/primitives/kind-glyph.d.ts +8 -0
  117. package/dist/primitives/kind-glyph.d.ts.map +1 -0
  118. package/dist/primitives/kind-glyph.js +9 -0
  119. package/dist/primitives/kind-glyph.js.map +1 -0
  120. package/dist/primitives/output-status-glyph.d.ts +8 -0
  121. package/dist/primitives/output-status-glyph.d.ts.map +1 -0
  122. package/dist/primitives/output-status-glyph.js +13 -0
  123. package/dist/primitives/output-status-glyph.js.map +1 -0
  124. package/dist/primitives/preview-popover.d.ts +1 -1
  125. package/dist/primitives/preview-popover.d.ts.map +1 -1
  126. package/dist/primitives/record-list.d.ts.map +1 -1
  127. package/dist/primitives/record-list.js +3 -2
  128. package/dist/primitives/record-list.js.map +1 -1
  129. package/dist/primitives/relation-list.d.ts.map +1 -1
  130. package/dist/primitives/relation-list.js +3 -2
  131. package/dist/primitives/relation-list.js.map +1 -1
  132. package/dist/primitives/tooltip.d.ts +7 -0
  133. package/dist/primitives/tooltip.d.ts.map +1 -0
  134. package/dist/primitives/tooltip.js +31 -0
  135. package/dist/primitives/tooltip.js.map +1 -0
  136. package/dist/views/inventory.d.ts +12 -1
  137. package/dist/views/inventory.d.ts.map +1 -1
  138. package/dist/views/inventory.js +23 -17
  139. package/dist/views/inventory.js.map +1 -1
  140. package/isolate.css +7 -0
  141. package/package.json +7 -4
  142. package/primitives.css +3 -0
  143. package/src/blocks/analysis-tree.tsx +4 -30
  144. package/src/blocks/decisions-list.tsx +5 -3
  145. package/src/blocks/findings-list.tsx +10 -8
  146. package/src/blocks/index.ts +2 -4
  147. package/src/blocks/outputs-list.tsx +43 -106
  148. package/src/blocks/papers-list.tsx +2 -18
  149. package/src/blocks/section.tsx +3 -2
  150. package/src/components/figure-zoom.tsx +72 -0
  151. package/src/components/finding-detail.tsx +106 -30
  152. package/src/components/index.ts +13 -0
  153. package/src/components/insight-trigger.tsx +3 -2
  154. package/src/components/output-card.tsx +51 -0
  155. package/src/components/output-detail.tsx +69 -21
  156. package/src/components/output-dialog.tsx +9 -0
  157. package/src/components/output-entry.tsx +61 -0
  158. package/src/components/output-provenance.tsx +86 -0
  159. package/src/components/output-status.tsx +38 -0
  160. package/src/components/paper-detail.tsx +2 -2
  161. package/src/components/paper-row.tsx +41 -0
  162. package/src/components/record-dialog.tsx +13 -1
  163. package/src/components/record-preview.tsx +8 -14
  164. package/src/lib/labels.tsx +69 -6
  165. package/src/model/index.ts +6 -2
  166. package/src/model/kind.ts +4 -5
  167. package/src/model/output-provenance.ts +18 -0
  168. package/src/model/output-status.ts +18 -0
  169. package/src/model/relations.ts +92 -26
  170. package/src/primitives/dialog.tsx +7 -1
  171. package/src/primitives/index.ts +6 -0
  172. package/src/primitives/inline-reference.tsx +25 -0
  173. package/src/primitives/kind-glyph.tsx +24 -0
  174. package/src/primitives/output-status-glyph.tsx +37 -0
  175. package/src/primitives/preview-popover.tsx +1 -1
  176. package/src/primitives/record-list.tsx +3 -4
  177. package/src/primitives/relation-list.tsx +4 -7
  178. package/src/primitives/tooltip.tsx +51 -0
  179. package/src/views/inventory.tsx +54 -22
  180. package/styles/base.css +2 -1
  181. package/styles/blocks/analysis-tree.css +23 -26
  182. package/styles/blocks/decisions-list.css +6 -6
  183. package/styles/blocks/findings-list.css +50 -0
  184. package/styles/blocks/outputs-list.css +13 -434
  185. package/styles/blocks/papers-list.css +8 -74
  186. package/styles/blocks/records.css +13 -13
  187. package/styles/components/artifact-preview.css +15 -15
  188. package/styles/components/decision-detail.css +23 -23
  189. package/styles/components/evidence.css +2 -7
  190. package/styles/components/figure-zoom.css +62 -0
  191. package/styles/components/finding-detail.css +73 -11
  192. package/styles/components/input-detail.css +7 -7
  193. package/styles/components/insight-detail.css +17 -17
  194. package/styles/components/insight-list.css +6 -6
  195. package/styles/components/insight-trigger.css +5 -5
  196. package/styles/components/output-card.css +290 -0
  197. package/styles/components/output-detail.css +139 -51
  198. package/styles/components/output-entry.css +141 -0
  199. package/styles/components/output-provenance.css +94 -0
  200. package/styles/components/output-status.css +31 -0
  201. package/styles/components/paper-detail.css +22 -22
  202. package/styles/components/paper-doi.css +2 -2
  203. package/styles/components/paper-pdf-viewer.css +6 -6
  204. package/styles/components/paper-row.css +72 -0
  205. package/styles/components/record-preview.css +444 -268
  206. package/styles/primitives/badge.css +1 -1
  207. package/styles/primitives/button.css +25 -25
  208. package/styles/primitives/count-heading.css +3 -3
  209. package/styles/primitives/detail-layout.css +20 -20
  210. package/styles/primitives/dialog.css +75 -93
  211. package/styles/primitives/empty-state.css +1 -1
  212. package/styles/primitives/inline-reference.css +37 -0
  213. package/styles/primitives/kind-glyph.css +31 -0
  214. package/styles/primitives/kind.css +6 -0
  215. package/styles/primitives/preview-popover.css +6 -11
  216. package/styles/primitives/prose.css +1 -1
  217. package/styles/primitives/record-list.css +32 -48
  218. package/styles/primitives/relation-list.css +14 -36
  219. package/styles/primitives/surface-header.css +15 -11
  220. package/styles/primitives/tooltip.css +22 -0
  221. package/styles/tokens.css +19 -9
  222. package/styles/views/inventory.css +58 -27
  223. package/dist/blocks/prior-insights-list.d.ts +0 -9
  224. package/dist/blocks/prior-insights-list.d.ts.map +0 -1
  225. package/dist/blocks/prior-insights-list.js +0 -29
  226. package/dist/blocks/prior-insights-list.js.map +0 -1
  227. package/src/blocks/prior-insights-list.tsx +0 -52
@@ -1,316 +1,492 @@
1
- /* record-preview — emitted by src/components/record-preview.tsx */
1
+ /* Shared editorial record previews, adapted from the publication reference. */
2
2
  @layer astra.tokens, astra.base, astra.components, astra.views;
3
3
 
4
4
  @layer astra.components {
5
- :where(.astra-ui) .astra-record-preview {
6
- overflow: hidden;
7
- background: var(--astra-color-surface-muted);
8
- color: var(--astra-color-text);
9
- font-family: var(--astra-font-body);
10
- font-size: 0.9375rem;
11
- line-height: 1.5;
12
- }
5
+ :where(.astra-ui)
6
+ .astra-record-preview {
7
+ overflow: hidden;
8
+ padding: 19px 20px;
9
+ background: var(--astra-color-surface-muted);
10
+ color: var(--astra-color-text);
11
+ font: 400 var(--astra-font-size)/1.5 var(--astra-font-body);
12
+ }
13
13
 
14
- :where(.astra-ui) .astra-record-preview__header.astra-surface-header {
15
- min-height: 0;
16
- padding: 1.1875rem 1.25rem 0;
17
- border: 0;
18
- background: transparent;
19
- }
14
+ :where(.astra-ui)
15
+ .astra-record-preview__header.astra-surface-header {
16
+ min-height: 0;
17
+ padding: 0;
18
+ border: 0;
19
+ background: transparent;
20
+ }
20
21
 
21
- :where(.astra-ui) .astra-record-preview__header .astra-surface-header__content {
22
- gap: 0.35rem;
23
- }
22
+ :where(.astra-ui)
23
+ .astra-record-preview__header .astra-surface-header__content {
24
+ gap: 8px;
25
+ }
24
26
 
25
- :where(.astra-ui) .astra-record-preview__header .astra-surface-header__eyebrow {
26
- color: var(--astra-kind-ink, var(--astra-kind));
27
- font: 500 var(--astra-font-size-2xs)/1.2 var(--astra-font-ui);
28
- letter-spacing: 0.08em;
29
- }
27
+ :where(.astra-ui)
28
+ .astra-record-preview .astra-record-preview__header .astra-surface-header__eyebrow {
29
+ color: var(--astra-kind);
30
+ font: 500 var(--astra-font-size-2xs)/1.5 var(--astra-font-ui);
31
+ letter-spacing: 0.08em;
32
+ text-transform: uppercase;
33
+ }
30
34
 
31
- :where(.astra-ui) .astra-record-preview__kind {
32
- display: inline-flex;
33
- align-items: center;
34
- gap: 0.55em;
35
- }
35
+ :where(.astra-ui)
36
+ .astra-record-preview__kind {
37
+ display: inline-flex;
38
+ align-items: center;
39
+ gap: 0.55em;
40
+ }
36
41
 
37
- :where(.astra-ui) .astra-record-preview__header .astra-surface-header__title {
38
- margin: 0;
39
- color: var(--astra-color-text);
40
- font: 600 1.25rem/1.25 var(--astra-font-ui);
41
- letter-spacing: -0.01em;
42
- }
42
+ :where(.astra-ui)
43
+ .astra-record-preview .astra-record-preview__header .astra-surface-header__title {
44
+ margin: 0;
45
+ color: var(--astra-color-text);
46
+ font: 600 var(--astra-font-size-title)/1.25 var(--astra-font-ui);
47
+ letter-spacing: -0.01em;
48
+ }
43
49
 
44
- :where(.astra-ui) .astra-record-preview__body {
45
- padding: 0.4rem 1.25rem 1.1875rem;
46
- }
50
+ :where(.astra-ui)
51
+ .astra-record-preview__body {
52
+ padding: 6.4px 0 0;
53
+ }
47
54
 
48
- :where(.astra-ui) .astra-record-preview__description {
49
- margin: 0 0 0.75rem;
50
- color: var(--astra-color-text-muted);
51
- }
55
+ :where(.astra-ui)
56
+ .astra-record-preview__header:not(:has(.astra-surface-header__title))
57
+ + .astra-record-preview__body {
58
+ padding-top: 8px;
59
+ }
52
60
 
53
- :where(.astra-ui) .astra-record-preview__claim {
54
- margin: 0 0 0.6rem;
55
- color: var(--astra-color-text);
56
- font: 500 1.1875rem/1.35 var(--astra-font-ui);
57
- }
61
+ :where(.astra-ui)
62
+ .astra-record-preview__description {
63
+ margin: 0 0 12px;
64
+ color: var(--astra-color-text-muted);
65
+ font: 400 var(--astra-font-size)/1.5 var(--astra-font-body);
66
+ }
58
67
 
59
- :where(.astra-ui) .astra-record-preview__section > h4 {
60
- margin: 0.9rem 0 0.4rem;
61
- color: var(--astra-color-text-subtle);
62
- font: 500 var(--astra-font-size-2xs)/1.2 var(--astra-font-ui);
63
- letter-spacing: 0.1em;
64
- text-transform: uppercase;
65
- }
68
+ :where(.astra-ui)
69
+ .astra-record-preview__claim {
70
+ margin: 0 0 9.6px;
71
+ color: var(--astra-color-text);
72
+ font: 500 var(--astra-font-size-claim)/1.35 var(--astra-font-ui);
73
+ }
66
74
 
67
- :where(.astra-ui) .astra-record-preview__options,
68
- :where(.astra-ui) .astra-record-preview__relations,
69
- :where(.astra-ui) .astra-record-preview__evidence,
70
- :where(.astra-ui) .astra-record-preview__flow {
71
- display: flex;
72
- margin: 0;
73
- padding: 0;
74
- flex-direction: column;
75
- gap: 0.5rem;
76
- list-style: none;
77
- }
75
+ :where(.astra-ui)
76
+ .astra-record-preview__section > h4 {
77
+ margin: 14.4px 0 6.4px;
78
+ color: var(--astra-color-text-subtle);
79
+ font: 500 var(--astra-font-size-2xs)/1.5 var(--astra-font-ui);
80
+ letter-spacing: 0.1em;
81
+ text-transform: uppercase;
82
+ }
78
83
 
79
- :where(.astra-ui) .astra-record-preview__options > li,
80
- :where(.astra-ui) .astra-record-preview__relations > li,
81
- :where(.astra-ui) .astra-record-preview__evidence > li {
82
- border: 1px solid var(--astra-color-border);
83
- border-radius: var(--astra-radius-preview);
84
- background: color-mix(
85
- in srgb,
86
- var(--astra-color-text) 4%,
87
- var(--astra-color-surface-muted)
88
- );
89
- }
84
+ :where(.astra-ui)
85
+ :is(
86
+ .astra-record-preview__options,
87
+ .astra-record-preview__relations,
88
+ .astra-record-preview__evidence,
89
+ .astra-record-preview__flow
90
+ ) {
91
+ margin: 0;
92
+ padding: 0;
93
+ list-style: none;
94
+ }
90
95
 
91
- :where(.astra-ui) .astra-record-preview__options > li {
92
- display: grid;
93
- grid-template-columns: auto minmax(0, 1fr);
94
- align-items: baseline;
95
- gap: 0.55rem;
96
- padding: 0.45rem 0.65rem;
97
- color: var(--astra-color-text-subtle);
98
- }
96
+ :where(.astra-ui)
97
+ :is(
98
+ .astra-record-preview__options,
99
+ .astra-record-preview__relations,
100
+ .astra-record-preview__evidence
101
+ ) {
102
+ display: flex;
103
+ flex-direction: column;
104
+ gap: 8px;
105
+ }
99
106
 
100
- :where(.astra-ui) .astra-record-preview__options > li strong {
101
- color: var(--astra-color-text);
102
- font-family: var(--astra-font-ui);
103
- font-size: 1rem;
104
- font-weight: 500;
105
- }
107
+ :where(.astra-ui)
108
+ .astra-record-preview__options {
109
+ gap: 8.8px;
110
+ }
106
111
 
107
- :where(.astra-ui) .astra-record-preview__option-status {
108
- position: absolute;
109
- width: 1px;
110
- height: 1px;
111
- padding: 0;
112
- margin: -1px;
113
- overflow: hidden;
114
- clip: rect(0, 0, 0, 0);
115
- white-space: nowrap;
116
- border: 0;
117
- }
112
+ :where(.astra-ui)
113
+ .astra-record-preview__options > li {
114
+ position: relative;
115
+ display: block;
116
+ padding: 8px 8px 8px 22.4px;
117
+ border: 1px solid var(--astra-color-border);
118
+ border-radius: 7px;
119
+ background: var(--astra-color-surface-inset);
120
+ color: var(--astra-color-text-subtle);
121
+ font: 400 var(--astra-font-size)/1.5 var(--astra-font-body);
122
+ }
118
123
 
119
- :where(.astra-ui) .astra-record-preview__options > li:where([data-selected]) {
120
- border-color: var(--astra-kind);
121
- background: var(--astra-kind-soft);
122
- color: var(--astra-kind-ink, var(--astra-kind));
123
- }
124
+ :where(.astra-ui)
125
+ .astra-record-preview__options > li > [aria-hidden="true"] {
126
+ position: absolute;
127
+ top: 13.6px;
128
+ left: 8.8px;
129
+ width: 9px;
130
+ height: 9px;
131
+ border: 1.5px solid var(--astra-color-text-faint);
132
+ border-radius: 50%;
133
+ background: var(--astra-color-surface-muted);
134
+ color: transparent;
135
+ font-size: 0;
136
+ }
124
137
 
125
- :where(.astra-ui) .astra-record-preview__options > li:where([data-unselected]) {
126
- opacity: 0.76;
127
- }
138
+ :where(.astra-ui)
139
+ .astra-record-preview__options > li strong {
140
+ color: var(--astra-color-text-subtle);
141
+ font: 500 16px/1.5 var(--astra-font-ui);
142
+ text-decoration: none;
143
+ }
128
144
 
129
- :where(.astra-ui) .astra-record-preview__options > li:where([data-excluded]) strong {
130
- text-decoration: line-through;
131
- text-decoration-color: var(--astra-color-border-strong);
132
- }
145
+ :where(.astra-ui)
146
+ .astra-record-preview__options > li[data-unselected] {
147
+ opacity: 0.72;
148
+ }
133
149
 
134
- :where(.astra-ui) .astra-record-preview__relations > li {
135
- padding: 0.3rem 0.625rem;
136
- }
150
+ :where(.astra-ui)
151
+ .astra-record-preview__options > li[data-selected] {
152
+ border-color: var(--astra-kind);
153
+ background: color-mix(in srgb, var(--astra-kind) 10%, var(--astra-color-surface-muted));
154
+ color: var(--astra-kind);
155
+ }
137
156
 
138
- :where(.astra-ui) .astra-record-preview__relation-trigger {
139
- display: flex;
140
- width: 100%;
141
- min-width: 0;
142
- align-items: baseline;
143
- gap: 0.5em;
144
- border: 0;
145
- background: transparent;
146
- color: var(--astra-color-text);
147
- padding: 0;
148
- text-align: start;
149
- font: 500 var(--astra-font-size-sm)/1.4 var(--astra-font-ui);
150
- }
157
+ :where(.astra-ui)
158
+ .astra-record-preview__options > li[data-selected]
159
+ > [aria-hidden="true"] {
160
+ border-color: var(--astra-kind);
161
+ background: var(--astra-kind);
162
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--astra-kind) 16%, transparent);
163
+ }
151
164
 
152
- :where(.astra-ui) button.astra-record-preview__relation-trigger {
153
- cursor: pointer;
154
- }
165
+ :where(.astra-ui)
166
+ .astra-record-preview__options > li[data-selected] strong {
167
+ color: var(--astra-color-text);
168
+ }
155
169
 
156
- :where(.astra-ui) button.astra-record-preview__relation-trigger:hover
157
- .astra-record-preview__relation-label {
158
- background: var(--astra-kind-soft);
159
- text-decoration-color: currentcolor;
160
- }
170
+ :where(.astra-ui)
171
+ .astra-record-preview__relations > li {
172
+ padding: 5px 10px;
173
+ border: 0;
174
+ border-radius: var(--astra-radius-preview);
175
+ background: var(--astra-color-surface-inset);
176
+ }
161
177
 
162
- :where(.astra-ui) .astra-record-preview__relation-glyph {
163
- flex: none;
164
- color: var(--astra-kind-ink, var(--astra-kind));
165
- }
178
+ :where(.astra-ui)
179
+ .astra-record-preview__relation-trigger {
180
+ display: flex;
181
+ width: 100%;
182
+ min-width: 0;
183
+ align-items: baseline;
184
+ gap: 0.5em;
185
+ padding: 0;
186
+ border: 0;
187
+ background: transparent;
188
+ color: var(--astra-color-text);
189
+ font: 500 var(--astra-font-size)/1.5 var(--astra-font-ui);
190
+ text-align: start;
191
+ }
166
192
 
167
- :where(.astra-ui) button.astra-record-preview__relation-trigger
168
- .astra-record-preview__relation-label {
169
- color: var(--astra-color-link);
170
- text-decoration: underline;
171
- text-decoration-color: color-mix(in srgb, currentcolor 45%, transparent);
172
- text-decoration-thickness: 1px;
173
- text-underline-offset: 2px;
174
- }
193
+ :where(.astra-ui)
194
+ .astra-record-preview__relations .astra-record-preview__relation-trigger {
195
+ font-size: var(--astra-font-size-sm);
196
+ }
175
197
 
176
- :where(.astra-ui) .astra-record-preview__relation-detail {
177
- margin-inline-start: auto;
178
- color: var(--astra-color-text-subtle);
179
- font-weight: 400;
180
- }
198
+ :where(.astra-ui)
199
+ button.astra-record-preview__relation-trigger {
200
+ cursor: pointer;
201
+ }
181
202
 
182
- :where(.astra-ui) .astra-record-preview__remaining {
183
- border: 0 !important;
184
- background: transparent !important;
185
- color: var(--astra-color-text-subtle);
186
- font: 400 var(--astra-font-size-2xs)/1.4 var(--astra-font-ui);
187
- }
203
+ :where(.astra-ui)
204
+ .astra-record-preview__relation-glyph {
205
+ flex: none;
206
+ }
188
207
 
189
- :where(.astra-ui) .astra-record-preview__evidence > li {
190
- padding: 0.5rem 0.75rem;
191
- }
208
+ :where(.astra-ui)
209
+ .astra-record-preview__relation-label {
210
+ color: inherit;
211
+ text-decoration: none;
212
+ }
192
213
 
193
- :where(.astra-ui) .astra-record-preview__artifact {
194
- margin: 0.125rem 0 0.4rem;
195
- overflow: hidden;
196
- border: 1px solid var(--astra-color-border);
197
- border-radius: var(--astra-radius-preview);
198
- background: var(--astra-color-artifact-paper);
199
- }
214
+ :where(.astra-ui)
215
+ button.astra-record-preview__relation-trigger
216
+ .astra-record-preview__relation-label {
217
+ color: var(--astra-color-link);
218
+ text-decoration: underline;
219
+ text-decoration-color: color-mix(in srgb, var(--astra-color-link) 45%, transparent);
220
+ text-decoration-thickness: 1px;
221
+ text-underline-offset: 2px;
222
+ }
200
223
 
201
- :where(.astra-ui) .astra-record-preview__artifact .astra-artifact {
202
- margin: 0;
203
- border: 0;
204
- }
224
+ :where(.astra-ui)
225
+ button.astra-record-preview__relation-trigger:hover
226
+ .astra-record-preview__relation-label {
227
+ background: var(--astra-color-accent-soft);
228
+ text-decoration-color: var(--astra-color-link);
229
+ }
205
230
 
206
- :where(.astra-ui) .astra-record-preview__quote {
207
- margin: 0.35rem 0 0;
208
- color: var(--astra-color-text-subtle);
209
- font-size: var(--astra-font-size-sm);
210
- font-style: italic;
211
- line-height: 1.45;
212
- }
231
+ :where(.astra-ui)
232
+ .astra-record-preview__relation-detail {
233
+ margin-inline-start: 0;
234
+ color: var(--astra-color-text-subtle);
235
+ font: 400 var(--astra-font-size-meta)/1.5 var(--astra-font-ui);
236
+ }
213
237
 
214
- :where(.astra-ui) .astra-record-preview__quote::before {
215
- content: "“";
216
- }
238
+ :where(.astra-ui)
239
+ .astra-record-preview__remaining {
240
+ padding: 0;
241
+ border: 0;
242
+ background: transparent;
243
+ color: var(--astra-color-text-subtle);
244
+ font: 400 var(--astra-font-size-meta)/1.4 var(--astra-font-ui);
245
+ }
217
246
 
218
- :where(.astra-ui) .astra-record-preview__quote::after {
219
- content: "”";
220
- }
247
+ :where(.astra-ui)
248
+ .astra-record-preview__evidence > li {
249
+ padding: 8px 12px;
250
+ border: 0;
251
+ border-radius: var(--astra-radius-preview);
252
+ background: var(--astra-color-surface-inset);
253
+ }
221
254
 
222
- :where(.astra-ui) .astra-record-preview__citation {
223
- margin-top: 0.3rem;
224
- color: var(--astra-color-text-subtle);
225
- font: 400 var(--astra-font-size-xs)/1.4 var(--astra-font-ui);
226
- }
255
+ :where(.astra-ui)
256
+ .astra-record-preview__artifact {
257
+ margin: 2px 0 6px;
258
+ overflow: visible;
259
+ border: 0;
260
+ border-radius: 0;
261
+ background: transparent;
262
+ }
227
263
 
228
- :where(.astra-ui) .astra-record-preview__citation a,
229
- :where(.astra-ui) .astra-record-preview__analysis-link {
230
- color: var(--astra-color-link);
231
- text-decoration: underline;
232
- text-underline-offset: 2px;
233
- }
264
+ :where(.astra-ui)
265
+ .astra-record-preview__quote {
266
+ margin: 9.6px 0;
267
+ padding-left: 13.6px;
268
+ border: 0;
269
+ border-left: 2px solid var(--astra-color-border-strong);
270
+ color: var(--astra-color-text-muted);
271
+ font: italic var(--astra-font-size)/1.5 var(--astra-font-body);
272
+ }
234
273
 
235
- :where(.astra-ui) button.astra-record-preview__analysis-link {
236
- margin: 0;
237
- border: 0;
238
- background: transparent;
239
- padding: 0;
240
- font: inherit;
241
- cursor: pointer;
242
- }
274
+ :where(.astra-ui)
275
+ .astra-record-preview__evidence .astra-record-preview__quote {
276
+ margin: 2px 0 0;
277
+ padding: 0;
278
+ border: 0;
279
+ color: var(--astra-color-text-subtle);
280
+ font-size: 12.5px;
281
+ line-height: 1.45;
282
+ }
243
283
 
244
- :where(.astra-ui) .astra-record-preview__scope {
245
- display: inline-flex;
246
- margin: 0 0 0.6rem;
247
- border: 1px solid color-mix(in srgb, var(--astra-kind) 30%, transparent);
248
- border-radius: 999px;
249
- background: var(--astra-kind-soft);
250
- color: var(--astra-kind-ink, var(--astra-kind));
251
- padding: 0.1em 0.6em;
252
- font: 400 var(--astra-font-size-2xs)/1.4 var(--astra-font-ui);
253
- letter-spacing: 0.04em;
254
- }
284
+ :where(.astra-ui)
285
+ .astra-record-preview__quote::before {
286
+ content: "\201C";
287
+ }
255
288
 
256
- :where(.astra-ui) .astra-record-preview__flow {
257
- flex-flow: row wrap;
258
- align-items: center;
259
- gap: 0;
260
- }
289
+ :where(.astra-ui)
290
+ .astra-record-preview__quote::after {
291
+ content: "\201D";
292
+ }
261
293
 
262
- :where(.astra-ui) .astra-record-preview__flow > li {
263
- display: flex;
264
- align-items: center;
265
- }
294
+ :where(.astra-ui)
295
+ .astra-record-preview__citation {
296
+ display: flex;
297
+ flex-wrap: wrap;
298
+ align-items: center;
299
+ gap: 0.4em 0.8em;
300
+ margin-top: 8px;
301
+ padding-top: 8px;
302
+ border-top: 1px solid var(--astra-color-border);
303
+ color: var(--astra-color-text-subtle);
304
+ font: 400 var(--astra-font-size-xs)/1.5 var(--astra-font-ui);
305
+ }
266
306
 
267
- :where(.astra-ui) .astra-record-preview__flow > li:not(:last-child)::after {
268
- content: "→";
269
- color: var(--astra-color-border-strong);
270
- margin: 0 0.35rem;
271
- }
307
+ :where(.astra-ui)
308
+ .astra-record-preview__citation a {
309
+ color: var(--astra-kind);
310
+ font: 400 var(--astra-font-size-meta)/1.5 var(--astra-font-mono);
311
+ text-decoration: none;
312
+ }
272
313
 
273
- :where(.astra-ui) .astra-record-preview__flow code,
274
- :where(.astra-ui) .astra-record-preview__source,
275
- :where(.astra-ui) .astra-record-preview__selection code {
276
- border: 1px solid var(--astra-color-border);
277
- border-radius: var(--astra-radius-preview);
278
- background: color-mix(
279
- in srgb,
280
- var(--astra-color-text) 4%,
281
- var(--astra-color-surface-muted)
282
- );
283
- color: var(--astra-color-text-muted);
284
- padding: 0.2em 0.45em;
285
- font-family: var(--astra-font-mono);
286
- font-size: var(--astra-font-size-2xs);
287
- overflow-wrap: anywhere;
288
- }
314
+ :where(.astra-ui[data-astra-color-scheme="dark"])
315
+ .astra-record-preview__citation a {
316
+ color: var(--astra-color-citation);
317
+ }
289
318
 
290
- :where(.astra-ui) .astra-record-preview__counts {
291
- margin: 0;
292
- color: var(--astra-color-text-subtle);
293
- font: 400 var(--astra-font-size-xs)/1.4 var(--astra-font-ui);
294
- }
319
+ :where(.astra-ui)
320
+ .astra-record-preview__citation a:hover {
321
+ color: var(--astra-color-citation-hover);
322
+ text-decoration: underline;
323
+ }
295
324
 
296
- :where(.astra-ui) .astra-record-preview__value {
297
- font-variant-numeric: tabular-nums;
298
- }
325
+ :where(.astra-ui[data-astra-color-scheme="dark"])
326
+ .astra-record-preview__citation a:hover {
327
+ color: var(--astra-color-citation-hover);
328
+ }
299
329
 
300
- :where(.astra-ui) .astra-record-preview__unit {
301
- margin-inline-start: 0.25em;
302
- color: var(--astra-color-text-subtle);
303
- font-size: 0.7em;
304
- font-weight: 400;
305
- }
330
+ :where(.astra-ui)
331
+ .astra-record-preview__scope {
332
+ display: inline-flex;
333
+ margin: 0;
334
+ padding: 0.1em 0.6em;
335
+ border: 1px solid color-mix(in srgb, var(--astra-kind) 30%, transparent);
336
+ border-radius: 999px;
337
+ background: color-mix(in srgb, var(--astra-kind) 10%, var(--astra-color-surface-muted));
338
+ color: var(--astra-kind);
339
+ font: 400 var(--astra-font-size-meta)/1.5 var(--astra-font-ui);
340
+ letter-spacing: 0.04em;
341
+ vertical-align: 0.05em;
342
+ }
343
+
344
+ :where(.astra-ui)
345
+ .astra-record-preview__flow {
346
+ display: flex;
347
+ flex-flow: row wrap;
348
+ align-items: stretch;
349
+ gap: 0;
350
+ margin: 6.4px 0 3.2px;
351
+ }
352
+
353
+ :where(.astra-ui)
354
+ .astra-record-preview__flow > li {
355
+ display: flex;
356
+ align-items: stretch;
357
+ }
358
+
359
+ :where(.astra-ui)
360
+ .astra-record-preview__flow > li:not(:last-child)::after {
361
+ content: "\25B8";
362
+ display: inline-flex;
363
+ align-items: center;
364
+ margin: 0;
365
+ padding: 0 0.45em;
366
+ color: var(--astra-color-text-faint);
367
+ font-size: var(--astra-font-size-xs);
368
+ }
369
+
370
+ :where(.astra-ui)
371
+ :is(
372
+ .astra-record-preview__flow code,
373
+ .astra-record-preview__source,
374
+ .astra-record-preview__selection code
375
+ ) {
376
+ color: var(--astra-color-text-muted);
377
+ font-family: var(--astra-font-mono);
378
+ font-size: var(--astra-font-size-meta);
379
+ }
380
+
381
+ :where(.astra-ui)
382
+ .astra-record-preview__flow code {
383
+ max-width: 11em;
384
+ overflow: hidden;
385
+ padding: 0.3em 0.55em;
386
+ border: 1px solid var(--astra-color-border-strong);
387
+ border-radius: 6px;
388
+ background: var(--astra-color-surface-inset);
389
+ font-size: var(--astra-font-size-xs);
390
+ line-height: 1.3;
391
+ text-overflow: ellipsis;
392
+ white-space: nowrap;
393
+ }
394
+
395
+ :where(.astra-ui)
396
+ .astra-record-preview__source {
397
+ display: block;
398
+ max-width: 60ch;
399
+ margin-top: 5.6px;
400
+ padding: 0;
401
+ border: 0;
402
+ background: transparent;
403
+ color: var(--astra-color-text-subtle);
404
+ word-break: break-all;
405
+ }
406
+
407
+ :where(.astra-ui)
408
+ .astra-record-preview__analysis-link {
409
+ color: inherit;
410
+ text-decoration: none;
411
+ }
412
+
413
+ :where(.astra-ui)
414
+ .astra-record-preview__analysis-link:hover {
415
+ text-decoration: underline;
416
+ text-decoration-color: var(--astra-kind);
417
+ text-underline-offset: 2px;
418
+ }
419
+
420
+ :where(.astra-ui)
421
+ .astra-record-preview__counts {
422
+ margin: 0;
423
+ color: var(--astra-color-text-subtle);
424
+ font: 400 var(--astra-font-size-xs)/1.5 var(--astra-font-ui);
425
+ }
426
+
427
+ :where(.astra-ui)
428
+ .astra-record-preview__value {
429
+ padding: 0.05em 0.1em;
430
+ border-radius: 3px;
431
+ color: var(--astra-color-text);
432
+ font: inherit;
433
+ font-feature-settings: "tnum" 1;
434
+ font-variant-numeric: tabular-nums;
435
+ text-decoration: underline dotted
436
+ color-mix(in srgb, var(--astra-color-kind-value) 60%, transparent);
437
+ text-underline-offset: 2px;
438
+ white-space: nowrap;
439
+ }
440
+
441
+ :where(.astra-ui)
442
+ .astra-record-preview__unit {
443
+ margin-inline-start: 0.25em;
444
+ color: var(--astra-color-text-subtle);
445
+ font-family: var(--astra-font-ui);
446
+ font-size: 0.7em;
447
+ font-weight: 400;
448
+ }
449
+
450
+ :where(.astra-ui)
451
+ .astra-record-preview__selection {
452
+ display: flex;
453
+ flex-wrap: wrap;
454
+ align-items: baseline;
455
+ gap: 0.5em;
456
+ margin: -5.6px 0 9.6px;
457
+ color: var(--astra-color-text-subtle);
458
+ font: 400 var(--astra-font-size-xs)/1.5 var(--astra-font-ui);
459
+ }
460
+
461
+ :where(.astra-ui)
462
+ .astra-record-preview__selection code {
463
+ padding: 0.1em 0.4em;
464
+ border: 0;
465
+ border-radius: 3px;
466
+ background: var(--astra-color-surface-inset);
467
+ }
306
468
 
307
- :where(.astra-ui) .astra-record-preview__selection {
308
- display: flex;
309
- flex-wrap: wrap;
310
- align-items: baseline;
311
- gap: 0.5em;
312
- margin: 0 0 0.6rem;
313
- color: var(--astra-color-text-subtle);
314
- font: 400 var(--astra-font-size-xs)/1.4 var(--astra-font-ui);
469
+ :where(.astra-ui)
470
+ .astra-record-preview__selection > span {
471
+ color: var(--astra-color-text-muted);
472
+ font: 400 var(--astra-font-size-meta)/1.5 var(--astra-font-mono);
473
+ font-style: normal;
474
+ }
475
+
476
+ :where(.astra-ui) .astra-record-preview[data-value-product] .astra-record-preview__selection > span:last-child {
477
+ color: var(--astra-color-text-subtle);
478
+ font: 400 var(--astra-font-size-xs)/1.5 var(--astra-font-body);
479
+ font-style: italic;
480
+ }
481
+ :where(.astra-ui) .astra-record-preview__option-status {
482
+ position: absolute;
483
+ width: 1px;
484
+ height: 1px;
485
+ padding: 0;
486
+ margin: -1px;
487
+ overflow: hidden;
488
+ clip: rect(0, 0, 0, 0);
489
+ white-space: nowrap;
490
+ border: 0;
315
491
  }
316
492
  }