@orianatech/pire 1.4.0 → 1.5.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 (111) hide show
  1. package/dist/components/core/Avatar.d.ts.map +1 -1
  2. package/dist/components/core/Badge.d.ts.map +1 -1
  3. package/dist/components/core/Button.d.ts.map +1 -1
  4. package/dist/components/core/Card.d.ts.map +1 -1
  5. package/dist/components/core/Heading.d.ts.map +1 -1
  6. package/dist/components/core/Icon.d.ts.map +1 -1
  7. package/dist/components/core/IconButton.d.ts.map +1 -1
  8. package/dist/components/core/Kbd.d.ts.map +1 -1
  9. package/dist/components/core/SegmentedControl.d.ts.map +1 -1
  10. package/dist/components/core/Separator.d.ts.map +1 -1
  11. package/dist/components/core/Tag.d.ts.map +1 -1
  12. package/dist/components/core/Text.d.ts.map +1 -1
  13. package/dist/components/core/icon-map.d.ts.map +1 -1
  14. package/dist/components/data/BarChart.d.ts.map +1 -1
  15. package/dist/components/data/ChartFrame.d.ts.map +1 -1
  16. package/dist/components/data/DataTable.d.ts.map +1 -1
  17. package/dist/components/data/DescriptionList.d.ts.map +1 -1
  18. package/dist/components/data/DonutChart.d.ts.map +1 -1
  19. package/dist/components/data/FilterBar.d.ts.map +1 -1
  20. package/dist/components/data/KpiTile.d.cts +1 -1
  21. package/dist/components/data/KpiTile.d.ts +1 -1
  22. package/dist/components/data/KpiTile.d.ts.map +1 -1
  23. package/dist/components/data/LineChart.d.ts.map +1 -1
  24. package/dist/components/data/LinkList.d.ts.map +1 -1
  25. package/dist/components/data/ObjectHeader.d.ts.map +1 -1
  26. package/dist/components/data/RecordCard.d.ts.map +1 -1
  27. package/dist/components/data/ViewSwitcher.d.cts +1 -1
  28. package/dist/components/data/ViewSwitcher.d.ts +1 -1
  29. package/dist/components/data/ViewSwitcher.d.ts.map +1 -1
  30. package/dist/components/data/chartGeometry.d.ts.map +1 -1
  31. package/dist/components/feedback/Dialog.d.cts +1 -1
  32. package/dist/components/feedback/Dialog.d.ts +1 -1
  33. package/dist/components/feedback/Dialog.d.ts.map +1 -1
  34. package/dist/components/feedback/InlineMessage.d.ts.map +1 -1
  35. package/dist/components/feedback/ProgressBar.d.cts +1 -1
  36. package/dist/components/feedback/ProgressBar.d.ts +1 -1
  37. package/dist/components/feedback/ProgressBar.d.ts.map +1 -1
  38. package/dist/components/feedback/Skeleton.d.ts.map +1 -1
  39. package/dist/components/feedback/Toast.d.cts +1 -1
  40. package/dist/components/feedback/Toast.d.ts +1 -1
  41. package/dist/components/feedback/Toast.d.ts.map +1 -1
  42. package/dist/components/feedback/Tooltip.d.ts.map +1 -1
  43. package/dist/components/forms/Checkbox.d.ts.map +1 -1
  44. package/dist/components/forms/ChoiceCardGroup.d.ts.map +1 -1
  45. package/dist/components/forms/ComboBox.d.ts.map +1 -1
  46. package/dist/components/forms/DatePicker.d.ts.map +1 -1
  47. package/dist/components/forms/DateRangePicker.d.ts.map +1 -1
  48. package/dist/components/forms/FileUpload.d.ts.map +1 -1
  49. package/dist/components/forms/FormField.d.ts.map +1 -1
  50. package/dist/components/forms/Input.d.ts.map +1 -1
  51. package/dist/components/forms/MultiComboBox.d.ts.map +1 -1
  52. package/dist/components/forms/NumberField.d.ts.map +1 -1
  53. package/dist/components/forms/QuantityStepper.d.ts.map +1 -1
  54. package/dist/components/forms/Radio.d.ts.map +1 -1
  55. package/dist/components/forms/Select.d.ts.map +1 -1
  56. package/dist/components/forms/Switch.d.ts.map +1 -1
  57. package/dist/components/forms/TextArea.d.ts.map +1 -1
  58. package/dist/components/forms/ValueHelpField.d.cts +1 -1
  59. package/dist/components/forms/ValueHelpField.d.ts +1 -1
  60. package/dist/components/forms/ValueHelpField.d.ts.map +1 -1
  61. package/dist/components/forms/dateValues.d.ts.map +1 -1
  62. package/dist/components/layout/PageBand.d.ts.map +1 -1
  63. package/dist/components/layout/SectionHeader.d.ts.map +1 -1
  64. package/dist/components/layout/SelectionBar.d.ts.map +1 -1
  65. package/dist/components/layout/SplitPane.d.ts.map +1 -1
  66. package/dist/components/navigation/Breadcrumb.d.ts.map +1 -1
  67. package/dist/components/navigation/Menu.d.ts.map +1 -1
  68. package/dist/components/navigation/Pagination.d.cts +1 -1
  69. package/dist/components/navigation/Pagination.d.ts +1 -1
  70. package/dist/components/navigation/Pagination.d.ts.map +1 -1
  71. package/dist/components/navigation/Ribbon.d.ts.map +1 -1
  72. package/dist/components/navigation/ShellBar.d.ts.map +1 -1
  73. package/dist/components/navigation/ShellRail.d.ts.map +1 -1
  74. package/dist/components/navigation/SideNav.d.cts +9 -1
  75. package/dist/components/navigation/SideNav.d.ts +9 -1
  76. package/dist/components/navigation/SideNav.d.ts.map +1 -1
  77. package/dist/components/navigation/Tabs.d.ts.map +1 -1
  78. package/dist/components/patterns/AppLauncher.d.cts +1 -1
  79. package/dist/components/patterns/AppLauncher.d.ts +1 -1
  80. package/dist/components/patterns/AppLauncher.d.ts.map +1 -1
  81. package/dist/components/patterns/CommandPalette.d.ts.map +1 -1
  82. package/dist/components/patterns/ConfirmDialog.d.cts +1 -1
  83. package/dist/components/patterns/ConfirmDialog.d.ts +1 -1
  84. package/dist/components/patterns/ConfirmDialog.d.ts.map +1 -1
  85. package/dist/components/patterns/EmptyState.d.ts.map +1 -1
  86. package/dist/components/patterns/FileDropZone.d.ts.map +1 -1
  87. package/dist/components/patterns/NumPad.d.ts.map +1 -1
  88. package/dist/components/patterns/SidePanel.d.cts +1 -1
  89. package/dist/components/patterns/SidePanel.d.ts +1 -1
  90. package/dist/components/patterns/SidePanel.d.ts.map +1 -1
  91. package/dist/components/patterns/ValueHelpDialog.d.cts +1 -1
  92. package/dist/components/patterns/ValueHelpDialog.d.ts +1 -1
  93. package/dist/components/patterns/ValueHelpDialog.d.ts.map +1 -1
  94. package/dist/components.css +3685 -678
  95. package/dist/i18n/PireIntlProvider.d.ts.map +1 -1
  96. package/dist/index.cjs +669 -265
  97. package/dist/index.cjs.map +1 -1
  98. package/dist/index.d.cts +17 -17
  99. package/dist/index.d.ts +17 -17
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +693 -276
  102. package/dist/index.js.map +1 -1
  103. package/dist/tokens/base.css +64 -13
  104. package/dist/tokens/colors.css +156 -78
  105. package/dist/tokens/elevation.css +20 -16
  106. package/dist/tokens/fonts.css +49 -7
  107. package/dist/tokens/motion.css +15 -12
  108. package/dist/tokens/spacing.css +41 -16
  109. package/dist/tokens/themes.css +88 -32
  110. package/dist/tokens/typography.css +43 -36
  111. package/package.json +1 -1
@@ -4,7 +4,12 @@
4
4
  and keyboard behave identically. Every value is a token. */
5
5
 
6
6
  /* ---- focus ---------------------------------------------------------- */
7
- .pire [data-focus-visible],.pire[data-focus-visible],.pire-focusable[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset)}
7
+ .pire [data-focus-visible],
8
+ .pire[data-focus-visible],
9
+ .pire-focusable[data-focus-visible] {
10
+ outline: var(--focus-w) solid var(--focus-color);
11
+ outline-offset: var(--focus-offset);
12
+ }
8
13
 
9
14
  /* ---- shared utilities ------------------------------------------------
10
15
  Classes referenced from component code, and keyframes referenced from the rules below. They
@@ -21,153 +26,554 @@
21
26
  on screen to show for it. Bootstrap's `.visually-hidden` is marked the same way, for the same
22
27
  reason. */
23
28
  /* biome-ignore-start lint/complexity/noImportantStyles: order-independence is the point — see above. */
24
- .pire-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
29
+ .pire-sr-only {
30
+ position: absolute !important;
31
+ width: 1px !important;
32
+ height: 1px !important;
33
+ padding: 0 !important;
34
+ margin: -1px !important;
35
+ overflow: hidden !important;
36
+ clip-path: inset(50%) !important;
37
+ white-space: nowrap !important;
38
+ border: 0 !important;
39
+ }
25
40
  /* biome-ignore-end lint/complexity/noImportantStyles: order-independence is the point — see above. */
26
- .pire-numeric{font:var(--type-numeric);letter-spacing:var(--ls-numeric);font-variant-numeric:tabular-nums}
27
- .pire-eyebrow{font:var(--type-label);letter-spacing:var(--ls-caps);text-transform:uppercase;color:var(--text-secondary)}
28
- @keyframes pire-toast-in{from{opacity:0;transform:translate(var(--pire-toast-tx,-50%),8px)}to{opacity:1}}
29
- @keyframes pire-dialog-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
30
- @keyframes pire-fade-in{from{opacity:0}to{opacity:1}}
41
+ .pire-numeric {
42
+ font: var(--type-numeric);
43
+ letter-spacing: var(--ls-numeric);
44
+ font-variant-numeric: tabular-nums;
45
+ }
46
+ .pire-eyebrow {
47
+ font: var(--type-label);
48
+ letter-spacing: var(--ls-caps);
49
+ text-transform: uppercase;
50
+ color: var(--text-secondary);
51
+ }
52
+ @keyframes pire-toast-in {
53
+ from {
54
+ opacity: 0;
55
+ transform: translate(var(--pire-toast-tx, -50%), 8px);
56
+ }
57
+ to {
58
+ opacity: 1;
59
+ }
60
+ }
61
+ @keyframes pire-dialog-in {
62
+ from {
63
+ opacity: 0;
64
+ transform: translateY(-8px);
65
+ }
66
+ to {
67
+ opacity: 1;
68
+ transform: translateY(0);
69
+ }
70
+ }
71
+ @keyframes pire-fade-in {
72
+ from {
73
+ opacity: 0;
74
+ }
75
+ to {
76
+ opacity: 1;
77
+ }
78
+ }
31
79
 
32
80
  /* ---- Button --------------------------------------------------------- */
33
- .pire-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-2);height:var(--control-h-md);padding:0 var(--control-pad-x);font:var(--type-body-strong);letter-spacing:var(--ls-body);border-radius:var(--radius-1);border:1px solid transparent;cursor:pointer;white-space:nowrap;transition:var(--transition-control);appearance:none}
34
- .pire-btn[data-size="sm"]{height:var(--control-h-sm)}
35
- .pire-btn[data-size="lg"]{height:var(--control-h-lg);padding:0 var(--control-pad-x-lg)}
36
- .pire-btn[data-full-width="true"]{width:100%}
37
- .pire-btn[data-variant="primary"]{background:var(--accent-bg);color:var(--accent-fg);border-color:var(--accent-bg)}
38
- .pire-btn[data-variant="primary"][data-hovered]{background:var(--accent-bg-hover);border-color:var(--accent-bg-hover)}
39
- .pire-btn[data-variant="primary"][data-pressed]{background:var(--accent-bg-active);border-color:var(--accent-bg-active)}
40
- .pire-btn[data-variant="secondary"]{background:var(--surface-card);color:var(--accent-subtle-fg);border-color:var(--accent-bg)}
41
- .pire-btn[data-variant="secondary"][data-hovered]{background:var(--accent-subtle-bg)}
42
- .pire-btn[data-variant="secondary"][data-pressed]{background:var(--blue-20)}
43
- .pire-btn[data-variant="tertiary"]{background:transparent;color:var(--text-link)}
44
- .pire-btn[data-variant="tertiary"][data-hovered]{background:var(--surface-hover)}
81
+ .pire-btn {
82
+ display: inline-flex;
83
+ align-items: center;
84
+ justify-content: center;
85
+ gap: var(--sp-2);
86
+ height: var(--control-h-md);
87
+ padding: 0 var(--control-pad-x);
88
+ font: var(--type-body-strong);
89
+ letter-spacing: var(--ls-body);
90
+ border-radius: var(--radius-1);
91
+ border: 1px solid transparent;
92
+ cursor: pointer;
93
+ white-space: nowrap;
94
+ transition: var(--transition-control);
95
+ appearance: none;
96
+ }
97
+ .pire-btn[data-size="sm"] {
98
+ height: var(--control-h-sm);
99
+ }
100
+ .pire-btn[data-size="lg"] {
101
+ height: var(--control-h-lg);
102
+ padding: 0 var(--control-pad-x-lg);
103
+ }
104
+ .pire-btn[data-full-width="true"] {
105
+ width: 100%;
106
+ }
107
+ .pire-btn[data-variant="primary"] {
108
+ background: var(--accent-bg);
109
+ color: var(--accent-fg);
110
+ border-color: var(--accent-bg);
111
+ }
112
+ .pire-btn[data-variant="primary"][data-hovered] {
113
+ background: var(--accent-bg-hover);
114
+ border-color: var(--accent-bg-hover);
115
+ }
116
+ .pire-btn[data-variant="primary"][data-pressed] {
117
+ background: var(--accent-bg-active);
118
+ border-color: var(--accent-bg-active);
119
+ }
120
+ .pire-btn[data-variant="secondary"] {
121
+ background: var(--surface-card);
122
+ color: var(--accent-subtle-fg);
123
+ border-color: var(--accent-bg);
124
+ }
125
+ .pire-btn[data-variant="secondary"][data-hovered] {
126
+ background: var(--accent-subtle-bg);
127
+ }
128
+ .pire-btn[data-variant="secondary"][data-pressed] {
129
+ background: var(--blue-20);
130
+ }
131
+ .pire-btn[data-variant="tertiary"] {
132
+ background: transparent;
133
+ color: var(--text-link);
134
+ }
135
+ .pire-btn[data-variant="tertiary"][data-hovered] {
136
+ background: var(--surface-hover);
137
+ }
45
138
  /* The label deepens with the press, not just the background. `--surface-active` is the strongest
46
139
  tint in the neutral ramp, and holding the resting link colour against it leaves 4.03:1 in dark. */
47
- .pire-btn[data-variant="tertiary"][data-pressed]{background:var(--surface-active);color:var(--text-link-hover)}
48
- .pire-btn[data-variant="danger"]{background:var(--danger-bg);color:var(--accent-fg);border-color:var(--danger-bg)}
49
- .pire-btn[data-variant="danger"][data-hovered]{background:var(--danger-bg-hover);border-color:var(--danger-bg-hover)}
50
- .pire-btn[data-variant="emphasized"]{background:var(--surface-shell);color:var(--accent-fg);border-color:var(--surface-shell)}
51
- .pire-btn[data-variant="emphasized"][data-hovered]{background:var(--blue-80);border-color:var(--blue-80)}
52
- .pire-btn[data-disabled]{background:var(--surface-disabled);color:var(--text-disabled);border-color:var(--border-subtle);cursor:not-allowed}
140
+ .pire-btn[data-variant="tertiary"][data-pressed] {
141
+ background: var(--surface-active);
142
+ color: var(--text-link-hover);
143
+ }
144
+ .pire-btn[data-variant="danger"] {
145
+ background: var(--danger-bg);
146
+ color: var(--accent-fg);
147
+ border-color: var(--danger-bg);
148
+ }
149
+ .pire-btn[data-variant="danger"][data-hovered] {
150
+ background: var(--danger-bg-hover);
151
+ border-color: var(--danger-bg-hover);
152
+ }
153
+ .pire-btn[data-variant="emphasized"] {
154
+ background: var(--surface-shell);
155
+ color: var(--accent-fg);
156
+ border-color: var(--surface-shell);
157
+ }
158
+ .pire-btn[data-variant="emphasized"][data-hovered] {
159
+ background: var(--blue-80);
160
+ border-color: var(--blue-80);
161
+ }
162
+ .pire-btn[data-disabled] {
163
+ background: var(--surface-disabled);
164
+ color: var(--text-disabled);
165
+ border-color: var(--border-subtle);
166
+ cursor: not-allowed;
167
+ }
53
168
 
54
169
  /* ---- IconButton ------------------------------------------------------ */
55
- .pire-iconbtn{display:inline-flex;align-items:center;justify-content:center;width:var(--control-h-md);height:var(--control-h-md);border:1px solid transparent;border-radius:var(--radius-1);background:transparent;color:var(--text-secondary);cursor:pointer;transition:var(--transition-control)}
56
- .pire-iconbtn[data-size="sm"]{width:var(--control-h-sm);height:var(--control-h-sm)}
57
- .pire-iconbtn[data-size="lg"]{width:var(--control-h-lg);height:var(--control-h-lg)}
58
- .pire-iconbtn[data-hovered]{background:var(--surface-hover);color:var(--text-primary)}
59
- .pire-iconbtn[data-selected="true"]{background:var(--surface-selected);color:var(--accent-subtle-fg)}
60
- .pire-iconbtn[data-variant="outlined"]{border-color:var(--border-field);background:var(--surface-card)}
61
- .pire-iconbtn[data-variant="inverse"]{color:var(--text-inverse)}
62
- .pire-iconbtn[data-variant="inverse"][data-hovered]{background:var(--surface-shell-hover);color:var(--text-inverse)}
63
- .pire-iconbtn[data-disabled]{color:var(--text-disabled);cursor:not-allowed;background:transparent}
170
+ .pire-iconbtn {
171
+ display: inline-flex;
172
+ align-items: center;
173
+ justify-content: center;
174
+ width: var(--control-h-md);
175
+ height: var(--control-h-md);
176
+ border: 1px solid transparent;
177
+ border-radius: var(--radius-1);
178
+ background: transparent;
179
+ color: var(--text-secondary);
180
+ cursor: pointer;
181
+ transition: var(--transition-control);
182
+ }
183
+ .pire-iconbtn[data-size="sm"] {
184
+ width: var(--control-h-sm);
185
+ height: var(--control-h-sm);
186
+ }
187
+ .pire-iconbtn[data-size="lg"] {
188
+ width: var(--control-h-lg);
189
+ height: var(--control-h-lg);
190
+ }
191
+ .pire-iconbtn[data-hovered] {
192
+ background: var(--surface-hover);
193
+ color: var(--text-primary);
194
+ }
195
+ .pire-iconbtn[data-selected="true"] {
196
+ background: var(--surface-selected);
197
+ color: var(--accent-subtle-fg);
198
+ }
199
+ .pire-iconbtn[data-variant="outlined"] {
200
+ border-color: var(--border-field);
201
+ background: var(--surface-card);
202
+ }
203
+ .pire-iconbtn[data-variant="inverse"] {
204
+ color: var(--text-inverse);
205
+ }
206
+ .pire-iconbtn[data-variant="inverse"][data-hovered] {
207
+ background: var(--surface-shell-hover);
208
+ color: var(--text-inverse);
209
+ }
210
+ .pire-iconbtn[data-disabled] {
211
+ color: var(--text-disabled);
212
+ cursor: not-allowed;
213
+ background: transparent;
214
+ }
64
215
 
65
216
  /* ---- Badge / Tag ----------------------------------------------------- */
66
- .pire-badge{display:inline-flex;align-items:center;gap:var(--sp-1);height:20px;padding:0 var(--sp-2);border-radius:var(--radius-1);font:var(--type-label);white-space:nowrap;border:1px solid transparent}
67
- .pire-badge[data-status="positive"]{background:var(--status-positive-bg);color:var(--status-positive-fg);border-color:var(--status-positive-border)}
68
- .pire-badge[data-status="critical"]{background:var(--status-critical-bg);color:var(--status-critical-fg);border-color:var(--status-critical-border)}
69
- .pire-badge[data-status="negative"]{background:var(--status-negative-bg);color:var(--status-negative-fg);border-color:var(--status-negative-border)}
70
- .pire-badge[data-status="informative"]{background:var(--status-informative-bg);color:var(--status-informative-fg);border-color:var(--status-informative-border)}
71
- .pire-badge[data-status="neutral"]{background:var(--status-neutral-bg);color:var(--status-neutral-fg);border-color:var(--status-neutral-border)}
72
- .pire-tag{display:inline-flex;align-items:center;gap:var(--sp-1);height:24px;padding:0 var(--sp-1) 0 var(--sp-2);border:1px solid var(--border-default);border-radius:var(--radius-1);background:var(--surface-sunken);color:var(--text-primary);font:var(--type-caption);white-space:nowrap}
73
- .pire-tag[data-disabled]{color:var(--text-disabled);background:var(--surface-disabled)}
217
+ .pire-badge {
218
+ display: inline-flex;
219
+ align-items: center;
220
+ gap: var(--sp-1);
221
+ height: 20px;
222
+ padding: 0 var(--sp-2);
223
+ border-radius: var(--radius-1);
224
+ font: var(--type-label);
225
+ white-space: nowrap;
226
+ border: 1px solid transparent;
227
+ }
228
+ .pire-badge[data-status="positive"] {
229
+ background: var(--status-positive-bg);
230
+ color: var(--status-positive-fg);
231
+ border-color: var(--status-positive-border);
232
+ }
233
+ .pire-badge[data-status="critical"] {
234
+ background: var(--status-critical-bg);
235
+ color: var(--status-critical-fg);
236
+ border-color: var(--status-critical-border);
237
+ }
238
+ .pire-badge[data-status="negative"] {
239
+ background: var(--status-negative-bg);
240
+ color: var(--status-negative-fg);
241
+ border-color: var(--status-negative-border);
242
+ }
243
+ .pire-badge[data-status="informative"] {
244
+ background: var(--status-informative-bg);
245
+ color: var(--status-informative-fg);
246
+ border-color: var(--status-informative-border);
247
+ }
248
+ .pire-badge[data-status="neutral"] {
249
+ background: var(--status-neutral-bg);
250
+ color: var(--status-neutral-fg);
251
+ border-color: var(--status-neutral-border);
252
+ }
253
+ .pire-tag {
254
+ display: inline-flex;
255
+ align-items: center;
256
+ gap: var(--sp-1);
257
+ height: 24px;
258
+ padding: 0 var(--sp-1) 0 var(--sp-2);
259
+ border: 1px solid var(--border-default);
260
+ border-radius: var(--radius-1);
261
+ background: var(--surface-sunken);
262
+ color: var(--text-primary);
263
+ font: var(--type-caption);
264
+ white-space: nowrap;
265
+ }
266
+ .pire-tag[data-disabled] {
267
+ color: var(--text-disabled);
268
+ background: var(--surface-disabled);
269
+ }
74
270
  /* Category identity rides on a mark, never on the label: the text keeps --text-primary so its
75
271
  contrast holds in every token scope, and the category is never colour-alone. Slots come from the
76
272
  shared --viz ramp, which is already validated for colour-blind separation between adjacent
77
273
  slots — a second categorical palette would have to earn that again and could be confused with
78
274
  this one. */
79
- .pire-tag-swatch{flex:0 0 auto;width:8px;height:8px;border-radius:var(--radius-pill);background:var(--viz-1)}
80
- .pire-tag-swatch[data-category="2"]{background:var(--viz-2)}
81
- .pire-tag-swatch[data-category="3"]{background:var(--viz-3)}
82
- .pire-tag-swatch[data-category="4"]{background:var(--viz-4)}
83
- .pire-tag-swatch[data-category="5"]{background:var(--viz-5)}
84
- .pire-tag-swatch[data-category="6"]{background:var(--viz-6)}
85
- .pire-tag[data-disabled] .pire-tag-swatch{background:var(--text-disabled)}
86
- .pire-tag-remove{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:0;border-radius:var(--radius-1);background:transparent;color:var(--text-secondary);cursor:pointer}
87
- .pire-tag-remove[data-hovered]{background:var(--surface-active);color:var(--text-primary)}
275
+ .pire-tag-swatch {
276
+ flex: 0 0 auto;
277
+ width: 8px;
278
+ height: 8px;
279
+ border-radius: var(--radius-pill);
280
+ background: var(--viz-1);
281
+ }
282
+ .pire-tag-swatch[data-category="2"] {
283
+ background: var(--viz-2);
284
+ }
285
+ .pire-tag-swatch[data-category="3"] {
286
+ background: var(--viz-3);
287
+ }
288
+ .pire-tag-swatch[data-category="4"] {
289
+ background: var(--viz-4);
290
+ }
291
+ .pire-tag-swatch[data-category="5"] {
292
+ background: var(--viz-5);
293
+ }
294
+ .pire-tag-swatch[data-category="6"] {
295
+ background: var(--viz-6);
296
+ }
297
+ .pire-tag[data-disabled] .pire-tag-swatch {
298
+ background: var(--text-disabled);
299
+ }
300
+ .pire-tag-remove {
301
+ display: inline-flex;
302
+ align-items: center;
303
+ justify-content: center;
304
+ width: 16px;
305
+ height: 16px;
306
+ border: 0;
307
+ border-radius: var(--radius-1);
308
+ background: transparent;
309
+ color: var(--text-secondary);
310
+ cursor: pointer;
311
+ }
312
+ .pire-tag-remove[data-hovered] {
313
+ background: var(--surface-active);
314
+ color: var(--text-primary);
315
+ }
88
316
 
89
317
  /* ---- Card ------------------------------------------------------------ */
90
- .pire-card{display:flex;flex-direction:column;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-2);box-shadow:var(--shadow-1);transition:var(--transition-surface)}
91
- .pire-card[data-interactive="true"]{cursor:pointer}
92
- .pire-card[data-interactive="true"]:hover{box-shadow:var(--shadow-2)}
93
- .pire-card-head{display:flex;align-items:flex-start;gap:var(--sp-3);padding:var(--sp-4);border-bottom:1px solid var(--border-subtle)}
94
- .pire-card-title{font:var(--type-h4);letter-spacing:var(--ls-heading)}
95
- .pire-card-sub{font:var(--type-caption);color:var(--text-secondary)}
96
- .pire-card-body{padding:var(--sp-4);flex:1}
97
- .pire-card-foot{display:flex;justify-content:flex-end;gap:var(--sp-2);padding:var(--sp-3) var(--sp-4);border-top:1px solid var(--border-subtle)}
318
+ .pire-card {
319
+ display: flex;
320
+ flex-direction: column;
321
+ background: var(--surface-card);
322
+ border: 1px solid var(--border-subtle);
323
+ border-radius: var(--radius-2);
324
+ box-shadow: var(--shadow-1);
325
+ transition: var(--transition-surface);
326
+ }
327
+ .pire-card[data-interactive="true"] {
328
+ cursor: pointer;
329
+ }
330
+ .pire-card[data-interactive="true"]:hover {
331
+ box-shadow: var(--shadow-2);
332
+ }
333
+ .pire-card-head {
334
+ display: flex;
335
+ align-items: flex-start;
336
+ gap: var(--sp-3);
337
+ padding: var(--sp-4);
338
+ border-bottom: 1px solid var(--border-subtle);
339
+ }
340
+ .pire-card-title {
341
+ font: var(--type-h4);
342
+ letter-spacing: var(--ls-heading);
343
+ }
344
+ .pire-card-sub {
345
+ font: var(--type-caption);
346
+ color: var(--text-secondary);
347
+ }
348
+ .pire-card-body {
349
+ padding: var(--sp-4);
350
+ flex: 1;
351
+ }
352
+ .pire-card-foot {
353
+ display: flex;
354
+ justify-content: flex-end;
355
+ gap: var(--sp-2);
356
+ padding: var(--sp-3) var(--sp-4);
357
+ border-top: 1px solid var(--border-subtle);
358
+ }
98
359
 
99
360
  /* ---- Field shell (Input, Select, ComboBox, TextArea, MultiComboBox) --- */
100
- .pire-field{display:flex;flex-direction:column;gap:var(--sp-1)}
101
- .pire-field-label{font:var(--type-label);color:var(--text-label)}
102
- .pire-field-req{color:var(--status-negative-fg);margin-left:var(--sp-0h)}
103
- .pire-field-hint{font:var(--type-caption);color:var(--text-secondary)}
104
- .pire-field-error{display:flex;align-items:center;gap:var(--sp-1);font:var(--type-caption);color:var(--status-negative-fg)}
105
- .pire-field[data-layout="horizontal"]{display:grid;grid-template-columns:160px 1fr;column-gap:var(--sp-4);align-items:center}
106
- .pire-field[data-layout="horizontal"] .pire-field-label{text-align:right}
107
- .pire-field[data-layout="horizontal"] .pire-field-hint,.pire-field[data-layout="horizontal"] .pire-field-error{grid-column:2}
108
-
109
- .pire-control{display:inline-flex;align-items:center;gap:var(--sp-2);height:var(--control-h-md);width:100%;padding:0 var(--control-pad-x);background:var(--surface-card);color:var(--text-primary);border:1px solid var(--border-field);border-radius:var(--radius-1);transition:var(--transition-control)}
110
- .pire-control[data-size="sm"]{height:var(--control-h-sm)}
111
- .pire-control[data-size="lg"]{height:var(--control-h-lg)}
112
- .pire-control[data-full-width="false"]{width:auto}
113
- .pire-control[data-hovered]{border-color:var(--border-strong)}
114
- .pire-control[data-focus-within]{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset)}
361
+ .pire-field {
362
+ display: flex;
363
+ flex-direction: column;
364
+ gap: var(--sp-1);
365
+ }
366
+ .pire-field-label {
367
+ font: var(--type-label);
368
+ color: var(--text-label);
369
+ }
370
+ .pire-field-req {
371
+ color: var(--status-negative-fg);
372
+ margin-left: var(--sp-0h);
373
+ }
374
+ .pire-field-hint {
375
+ font: var(--type-caption);
376
+ color: var(--text-secondary);
377
+ }
378
+ .pire-field-error {
379
+ display: flex;
380
+ align-items: center;
381
+ gap: var(--sp-1);
382
+ font: var(--type-caption);
383
+ color: var(--status-negative-fg);
384
+ }
385
+ .pire-field[data-layout="horizontal"] {
386
+ display: grid;
387
+ grid-template-columns: 160px 1fr;
388
+ column-gap: var(--sp-4);
389
+ align-items: center;
390
+ }
391
+ .pire-field[data-layout="horizontal"] .pire-field-label {
392
+ text-align: right;
393
+ }
394
+ .pire-field[data-layout="horizontal"] .pire-field-hint,
395
+ .pire-field[data-layout="horizontal"] .pire-field-error {
396
+ grid-column: 2;
397
+ }
398
+
399
+ .pire-control {
400
+ display: inline-flex;
401
+ align-items: center;
402
+ gap: var(--sp-2);
403
+ height: var(--control-h-md);
404
+ width: 100%;
405
+ padding: 0 var(--control-pad-x);
406
+ background: var(--surface-card);
407
+ color: var(--text-primary);
408
+ border: 1px solid var(--border-field);
409
+ border-radius: var(--radius-1);
410
+ transition: var(--transition-control);
411
+ }
412
+ .pire-control[data-size="sm"] {
413
+ height: var(--control-h-sm);
414
+ }
415
+ .pire-control[data-size="lg"] {
416
+ height: var(--control-h-lg);
417
+ }
418
+ .pire-control[data-full-width="false"] {
419
+ width: auto;
420
+ }
421
+ .pire-control[data-hovered] {
422
+ border-color: var(--border-strong);
423
+ }
424
+ .pire-control[data-focus-within] {
425
+ outline: var(--focus-w) solid var(--focus-color);
426
+ outline-offset: var(--focus-offset);
427
+ }
115
428
  /* The shell above owns the focus ring for the whole control, so nested focusables must not
116
429
  paint a second one. base.css gives every input/button/[tabindex] a :focus-visible outline at
117
430
  specificity (0,1,1), which outranks the plain .pire-input/.pire-datesegment `outline:none`
118
431
  (0,1,0) regardless of import order — hence the class+pseudo-class selector here.
119
432
  The descendant combinator deliberately excludes .pire-control itself: on Select the control
120
433
  IS the focusable button and must keep its own ring. */
121
- .pire-control :focus-visible{outline:none}
122
- .pire-control[data-invalid="true"]{border-color:var(--status-negative-fg);border-bottom-width:2px}
123
- .pire-control[data-disabled]{background:var(--surface-disabled);color:var(--text-disabled);cursor:not-allowed}
124
- .pire-control[data-readonly="true"]{background:var(--surface-sunken)}
125
- .pire-input{flex:1;min-width:0;border:0;outline:none;background:transparent;color:inherit;font:var(--type-body)}
126
- .pire-input[data-numeric="true"]{font:var(--type-numeric);text-align:right;font-variant-numeric:tabular-nums}
127
- .pire-input::placeholder{color:var(--text-tertiary)}
128
- .pire-affix{font:var(--type-caption);color:var(--text-secondary);flex:0 0 auto}
434
+ .pire-control :focus-visible {
435
+ outline: none;
436
+ }
437
+ .pire-control[data-invalid="true"] {
438
+ border-color: var(--status-negative-fg);
439
+ border-bottom-width: 2px;
440
+ }
441
+ .pire-control[data-disabled] {
442
+ background: var(--surface-disabled);
443
+ color: var(--text-disabled);
444
+ cursor: not-allowed;
445
+ }
446
+ .pire-control[data-readonly="true"] {
447
+ background: var(--surface-sunken);
448
+ }
449
+ .pire-input {
450
+ flex: 1;
451
+ min-width: 0;
452
+ border: 0;
453
+ outline: none;
454
+ background: transparent;
455
+ color: inherit;
456
+ font: var(--type-body);
457
+ }
458
+ .pire-input[data-numeric="true"] {
459
+ font: var(--type-numeric);
460
+ text-align: right;
461
+ font-variant-numeric: tabular-nums;
462
+ }
463
+ .pire-input::placeholder {
464
+ color: var(--text-tertiary);
465
+ }
466
+ .pire-affix {
467
+ font: var(--type-caption);
468
+ color: var(--text-secondary);
469
+ flex: 0 0 auto;
470
+ }
129
471
  /* Chrome and Safari decorate type="search" with their own clear button. It cannot be styled or
130
472
  sized, Firefox does not draw one at all, and it ignores every token here — so a search box would
131
473
  look different per browser. Hidden everywhere; `isClearable` is the replacement, and it is a real
132
474
  labelled button rather than a browser affordance. */
133
- .pire-input::-webkit-search-cancel-button{display:none}
475
+ .pire-input::-webkit-search-cancel-button {
476
+ display: none;
477
+ }
134
478
  /* A word, not an icon. An icon-only "x" inside a dialog sits beside the dialog's own close "x" and
135
479
  reads as a second way to dismiss it; the label says what is being cleared. Sized down so it
136
480
  belongs to the field rather than competing with it. */
137
- .pire-input-clear{flex:0 0 auto;border:0;background:transparent;padding:0 var(--sp-1);font:var(--type-caption);color:var(--text-link);cursor:pointer;border-radius:var(--radius-1);white-space:nowrap;transition:var(--transition-control)}
138
- .pire-input-clear[data-hovered]{color:var(--text-link-hover);text-decoration:underline}
481
+ .pire-input-clear {
482
+ flex: 0 0 auto;
483
+ border: 0;
484
+ background: transparent;
485
+ padding: 0 var(--sp-1);
486
+ font: var(--type-caption);
487
+ color: var(--text-link);
488
+ cursor: pointer;
489
+ border-radius: var(--radius-1);
490
+ white-space: nowrap;
491
+ transition: var(--transition-control);
492
+ }
493
+ .pire-input-clear[data-hovered] {
494
+ color: var(--text-link-hover);
495
+ text-decoration: underline;
496
+ }
139
497
  /* `.pire-control :focus-visible` clears inner rings so the control shows a single one. This button
140
498
  is a separate target inside it, so it keeps its own. */
141
- .pire-input-clear[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:1px}
142
- .pire-leading-icon{color:var(--text-tertiary);flex:0 0 auto}
499
+ .pire-input-clear[data-focus-visible] {
500
+ outline: var(--focus-w) solid var(--focus-color);
501
+ outline-offset: 1px;
502
+ }
503
+ .pire-leading-icon {
504
+ color: var(--text-tertiary);
505
+ flex: 0 0 auto;
506
+ }
143
507
  /* The shell is fixed-height by default because every single-line control is. Controls whose
144
508
  content sets the height (TextArea, MultiComboBox's chips) opt out with data-multiline and
145
509
  keep everything else — focus ring, invalid, disabled, readonly, sizing — from the rules
146
510
  above. This block sits after the [data-size] heights on purpose: equal specificity, so the
147
511
  later `height:auto` wins, and the per-size floor is restored as a min-height. */
148
- .pire-control[data-multiline="true"]{height:auto;min-height:var(--control-h-md);align-items:stretch;padding-top:var(--sp-2);padding-bottom:var(--sp-2)}
149
- .pire-control[data-multiline="true"][data-size="sm"]{min-height:var(--control-h-sm)}
150
- .pire-control[data-multiline="true"][data-size="lg"]{min-height:var(--control-h-lg)}
512
+ .pire-control[data-multiline="true"] {
513
+ height: auto;
514
+ min-height: var(--control-h-md);
515
+ align-items: stretch;
516
+ padding-top: var(--sp-2);
517
+ padding-bottom: var(--sp-2);
518
+ }
519
+ .pire-control[data-multiline="true"][data-size="sm"] {
520
+ min-height: var(--control-h-sm);
521
+ }
522
+ .pire-control[data-multiline="true"][data-size="lg"] {
523
+ min-height: var(--control-h-lg);
524
+ }
151
525
 
152
526
  /* ---- TextArea -------------------------------------------------------- */
153
- .pire-textarea{display:block;width:100%;resize:vertical;overflow:auto}
527
+ .pire-textarea {
528
+ display: block;
529
+ width: 100%;
530
+ resize: vertical;
531
+ overflow: auto;
532
+ }
154
533
  /* autoGrow writes an inline height on every keystroke, so a height dragged by hand would be
155
534
  thrown away on the next one — the grip is removed rather than left lying about it. */
156
- .pire-textarea[data-auto-grow="true"]{resize:none}
535
+ .pire-textarea[data-auto-grow="true"] {
536
+ resize: none;
537
+ }
157
538
 
158
539
  /* ---- MultiComboBox --------------------------------------------------- */
159
- .pire-chipfield{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1)}
540
+ .pire-chipfield {
541
+ flex: 1;
542
+ min-width: 0;
543
+ display: flex;
544
+ flex-wrap: wrap;
545
+ align-items: center;
546
+ gap: var(--sp-1);
547
+ }
160
548
  /* Never narrower than a few characters, so the caret stays reachable however many chips are in. */
161
- .pire-chipinput{flex:1 1 6ch;min-width:6ch}
549
+ .pire-chipinput {
550
+ flex: 1 1 6ch;
551
+ min-width: 6ch;
552
+ }
162
553
  /* Each chip's remove button is a Tab stop of its own inside the shell, and the shell's blanket
163
554
  `:focus-visible{outline:none}` (see above) would otherwise leave it unmarked. */
164
- .pire-chipfield .pire-tag-remove[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset)}
555
+ .pire-chipfield .pire-tag-remove[data-focus-visible] {
556
+ outline: var(--focus-w) solid var(--focus-color);
557
+ outline-offset: var(--focus-offset);
558
+ }
165
559
  /* One ring at a time: while a chip owns focus it, not the shell, is what moved. */
166
- .pire-control:has(.pire-tag-remove[data-focus-visible])[data-focus-within]{outline:none}
560
+ .pire-control:has(.pire-tag-remove[data-focus-visible])[data-focus-within] {
561
+ outline: none;
562
+ }
167
563
 
168
564
  /* ---- Select / ListBox popover ---------------------------------------- */
169
- .pire-select-value{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--type-body)}
170
- .pire-select-value[data-placeholder]{color:var(--text-tertiary)}
565
+ .pire-select-value {
566
+ flex: 1;
567
+ min-width: 0;
568
+ text-align: left;
569
+ overflow: hidden;
570
+ text-overflow: ellipsis;
571
+ white-space: nowrap;
572
+ font: var(--type-body);
573
+ }
574
+ .pire-select-value[data-placeholder] {
575
+ color: var(--text-tertiary);
576
+ }
171
577
  /* The viewport clamp is load-bearing, not cosmetic. Sized to its trigger alone, a
172
578
  full-bleed trigger makes the popover exactly the viewport width, while React Aria
173
579
  positions it no closer than 12px to either edge (`useOverlayPosition`'s default
@@ -177,96 +583,451 @@
177
583
  Both bounds are needed: CSS resolves min-width *after* max-width, so a bare
178
584
  `max-width` would be ignored whenever `--trigger-width` exceeded it. The min-width is
179
585
  therefore clamped at source, and the max-width caps content-driven growth as well. */
180
- .pire-popover{background:var(--surface-raised);border:1px solid var(--border-default);border-radius:var(--radius-2);box-shadow:var(--shadow-3);overflow:auto;max-height:min(320px,var(--trigger-height,320px));min-width:min(var(--trigger-width),calc(100vw - 24px));max-width:calc(100vw - 24px);animation:pire-fade-in var(--dur-fast) var(--ease-entrance)}
181
- .pire-listbox{outline:none;padding:var(--sp-1) 0;display:flex;flex-direction:column}
182
- .pire-option{display:flex;align-items:center;gap:var(--sp-2);min-height:var(--row-h-condensed);padding:0 var(--sp-3);font:var(--type-body);color:var(--text-primary);cursor:pointer;outline:none}
183
- .pire-option[data-focused]{background:var(--surface-hover)}
184
- .pire-option[data-selected]{background:var(--surface-selected);color:var(--accent-subtle-fg);font:var(--type-body-strong)}
185
- .pire-option[data-disabled]{color:var(--text-disabled);cursor:not-allowed}
586
+ .pire-popover {
587
+ background: var(--surface-raised);
588
+ border: 1px solid var(--border-default);
589
+ border-radius: var(--radius-2);
590
+ box-shadow: var(--shadow-3);
591
+ overflow: auto;
592
+ max-height: min(320px, var(--trigger-height, 320px));
593
+ min-width: min(var(--trigger-width), calc(100vw - 24px));
594
+ max-width: calc(100vw - 24px);
595
+ animation: pire-fade-in var(--dur-fast) var(--ease-entrance);
596
+ }
597
+ .pire-listbox {
598
+ outline: none;
599
+ padding: var(--sp-1) 0;
600
+ display: flex;
601
+ flex-direction: column;
602
+ }
603
+ .pire-option {
604
+ display: flex;
605
+ align-items: center;
606
+ gap: var(--sp-2);
607
+ min-height: var(--row-h-condensed);
608
+ padding: 0 var(--sp-3);
609
+ font: var(--type-body);
610
+ color: var(--text-primary);
611
+ cursor: pointer;
612
+ outline: none;
613
+ }
614
+ .pire-option[data-focused] {
615
+ background: var(--surface-hover);
616
+ }
617
+ .pire-option[data-selected] {
618
+ background: var(--surface-selected);
619
+ color: var(--accent-subtle-fg);
620
+ font: var(--type-body-strong);
621
+ }
622
+ .pire-option[data-disabled] {
623
+ color: var(--text-disabled);
624
+ cursor: not-allowed;
625
+ }
186
626
 
187
627
  /* ---- Checkbox / Radio / Switch --------------------------------------- */
188
- .pire-choice{display:inline-flex;align-items:flex-start;gap:var(--sp-2);font:var(--type-body);color:var(--text-primary);cursor:pointer}
189
- .pire-choice[data-disabled]{color:var(--text-disabled);cursor:not-allowed}
190
- .pire-choice-box{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-top:2px;border:1px solid var(--border-field);border-radius:var(--radius-1);background:var(--surface-card);color:var(--accent-fg);transition:var(--transition-control)}
191
- .pire-choice-box[data-radio="true"]{border-radius:var(--radius-pill)}
192
- .pire-choice[data-hovered] .pire-choice-box{border-color:var(--text-primary)}
193
- .pire-choice[data-selected] .pire-choice-box,.pire-choice[data-indeterminate] .pire-choice-box{background:var(--accent-bg);border-color:var(--accent-bg)}
194
- .pire-choice[data-selected] .pire-choice-box[data-radio="true"]{background:var(--surface-card);border-width:5px;border-color:var(--accent-bg)}
195
- .pire-choice[data-focus-visible] .pire-choice-box{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset)}
196
- .pire-choice[data-disabled] .pire-choice-box{background:var(--surface-disabled);border-color:var(--border-default)}
197
- .pire-choice-hint{display:block;font:var(--type-caption);color:var(--text-secondary)}
628
+ .pire-choice {
629
+ display: inline-flex;
630
+ align-items: flex-start;
631
+ gap: var(--sp-2);
632
+ font: var(--type-body);
633
+ color: var(--text-primary);
634
+ cursor: pointer;
635
+ }
636
+ .pire-choice[data-disabled] {
637
+ color: var(--text-disabled);
638
+ cursor: not-allowed;
639
+ }
640
+ .pire-choice-box {
641
+ flex: 0 0 auto;
642
+ display: inline-flex;
643
+ align-items: center;
644
+ justify-content: center;
645
+ width: 16px;
646
+ height: 16px;
647
+ margin-top: 2px;
648
+ border: 1px solid var(--border-field);
649
+ border-radius: var(--radius-1);
650
+ background: var(--surface-card);
651
+ color: var(--accent-fg);
652
+ transition: var(--transition-control);
653
+ }
654
+ .pire-choice-box[data-radio="true"] {
655
+ border-radius: var(--radius-pill);
656
+ }
657
+ .pire-choice[data-hovered] .pire-choice-box {
658
+ border-color: var(--text-primary);
659
+ }
660
+ .pire-choice[data-selected] .pire-choice-box,
661
+ .pire-choice[data-indeterminate] .pire-choice-box {
662
+ background: var(--accent-bg);
663
+ border-color: var(--accent-bg);
664
+ }
665
+ .pire-choice[data-selected] .pire-choice-box[data-radio="true"] {
666
+ background: var(--surface-card);
667
+ border-width: 5px;
668
+ border-color: var(--accent-bg);
669
+ }
670
+ .pire-choice[data-focus-visible] .pire-choice-box {
671
+ outline: var(--focus-w) solid var(--focus-color);
672
+ outline-offset: var(--focus-offset);
673
+ }
674
+ .pire-choice[data-disabled] .pire-choice-box {
675
+ background: var(--surface-disabled);
676
+ border-color: var(--border-default);
677
+ }
678
+ .pire-choice-hint {
679
+ display: block;
680
+ font: var(--type-caption);
681
+ color: var(--text-secondary);
682
+ }
198
683
  /* The track must establish a flex context: the thumb is a <span>, and an inline box
199
684
  ignores width/height — it rendered at 0x0 until this was added. */
200
- .pire-switch-track{flex:0 0 auto;display:flex;align-items:center;width:36px;height:20px;border-radius:var(--radius-pill);background:var(--gray-40);padding:2px;transition:background-color var(--dur-fast) var(--ease-standard)}
201
- .pire-switch-thumb{flex:0 0 auto;width:16px;height:16px;border-radius:var(--radius-pill);background:var(--gray-0);box-shadow:var(--shadow-1);transition:transform var(--dur-fast) var(--ease-standard)}
202
- .pire-choice[data-selected] .pire-switch-track{background:var(--accent-bg)}
203
- .pire-choice[data-selected] .pire-switch-thumb{transform:translateX(16px)}
204
- .pire-choice[data-focus-visible] .pire-switch-track{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset)}
205
- .pire-radiogroup{display:flex;flex-direction:column;gap:var(--sp-2)}
685
+ .pire-switch-track {
686
+ flex: 0 0 auto;
687
+ display: flex;
688
+ align-items: center;
689
+ width: 36px;
690
+ height: 20px;
691
+ border-radius: var(--radius-pill);
692
+ background: var(--gray-40);
693
+ padding: 2px;
694
+ transition: background-color var(--dur-fast) var(--ease-standard);
695
+ }
696
+ .pire-switch-thumb {
697
+ flex: 0 0 auto;
698
+ width: 16px;
699
+ height: 16px;
700
+ border-radius: var(--radius-pill);
701
+ background: var(--gray-0);
702
+ box-shadow: var(--shadow-1);
703
+ transition: transform var(--dur-fast) var(--ease-standard);
704
+ }
705
+ .pire-choice[data-selected] .pire-switch-track {
706
+ background: var(--accent-bg);
707
+ }
708
+ .pire-choice[data-selected] .pire-switch-thumb {
709
+ transform: translateX(16px);
710
+ }
711
+ .pire-choice[data-focus-visible] .pire-switch-track {
712
+ outline: var(--focus-w) solid var(--focus-color);
713
+ outline-offset: var(--focus-offset);
714
+ }
715
+ .pire-radiogroup {
716
+ display: flex;
717
+ flex-direction: column;
718
+ gap: var(--sp-2);
719
+ }
206
720
 
207
721
  /* ---- ChoiceCardGroup ------------------------------------------------------
208
722
  A radio group whose options are cards. It is a radio group and not a row of buttons on
209
723
  purpose: buttons give one tab stop each and no "1 of 3" announcement, which is exactly what a
210
724
  set of mutually exclusive options owes. The selected card carries a fill AND a border — the
211
725
  fill alone does not clear 3:1 against the card beside it. */
212
- .pire-choicecards{display:grid;gap:var(--sp-3)}
213
- .pire-choicecard{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-1);padding:var(--sp-3);border:1px solid var(--border-default);border-radius:var(--radius-2);background:var(--surface-card);color:var(--text-primary);text-align:left;cursor:pointer;outline:none;transition:var(--transition-control)}
214
- .pire-choicecard[data-hovered]{background:var(--surface-hover)}
215
- .pire-choicecard[data-selected]{border-color:var(--border-accent);background:var(--surface-selected);color:var(--accent-subtle-fg)}
216
- .pire-choicecard[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset)}
217
- .pire-choicecard[data-disabled]{color:var(--text-disabled);background:var(--surface-disabled);cursor:default}
218
- .pire-choicecard-label{font:var(--type-body-strong)}
219
- .pire-choicecard-desc{font:var(--type-caption);color:var(--text-secondary)}
220
- .pire-choicecard[data-selected] .pire-choicecard-desc{color:var(--accent-subtle-fg)}
221
- .pire-choicecard[data-disabled] .pire-choicecard-desc{color:var(--text-disabled)}
222
- .pire-choicecard-preview{display:flex;flex-direction:column;gap:var(--sp-0h);width:100%;padding-top:var(--sp-1)}
726
+ .pire-choicecards {
727
+ display: grid;
728
+ gap: var(--sp-3);
729
+ }
730
+ .pire-choicecard {
731
+ display: flex;
732
+ flex-direction: column;
733
+ align-items: flex-start;
734
+ gap: var(--sp-1);
735
+ padding: var(--sp-3);
736
+ border: 1px solid var(--border-default);
737
+ border-radius: var(--radius-2);
738
+ background: var(--surface-card);
739
+ color: var(--text-primary);
740
+ text-align: left;
741
+ cursor: pointer;
742
+ outline: none;
743
+ transition: var(--transition-control);
744
+ }
745
+ .pire-choicecard[data-hovered] {
746
+ background: var(--surface-hover);
747
+ }
748
+ .pire-choicecard[data-selected] {
749
+ border-color: var(--border-accent);
750
+ background: var(--surface-selected);
751
+ color: var(--accent-subtle-fg);
752
+ }
753
+ .pire-choicecard[data-focus-visible] {
754
+ outline: var(--focus-w) solid var(--focus-color);
755
+ outline-offset: var(--focus-offset);
756
+ }
757
+ .pire-choicecard[data-disabled] {
758
+ color: var(--text-disabled);
759
+ background: var(--surface-disabled);
760
+ cursor: default;
761
+ }
762
+ .pire-choicecard-label {
763
+ font: var(--type-body-strong);
764
+ }
765
+ .pire-choicecard-desc {
766
+ font: var(--type-caption);
767
+ color: var(--text-secondary);
768
+ }
769
+ .pire-choicecard[data-selected] .pire-choicecard-desc {
770
+ color: var(--accent-subtle-fg);
771
+ }
772
+ .pire-choicecard[data-disabled] .pire-choicecard-desc {
773
+ color: var(--text-disabled);
774
+ }
775
+ .pire-choicecard-preview {
776
+ display: flex;
777
+ flex-direction: column;
778
+ gap: var(--sp-0h);
779
+ width: 100%;
780
+ padding-top: var(--sp-1);
781
+ }
223
782
 
224
783
  /* ---- Tabs ------------------------------------------------------------ */
225
- .pire-tablist{display:flex;gap:var(--sp-5);border-bottom:1px solid var(--border-subtle);overflow-x:auto}
226
- .pire-tab{display:inline-flex;align-items:center;gap:var(--sp-2);height:var(--shell-subheader-h);padding:0 var(--sp-0h);border-bottom:2px solid transparent;margin-bottom:-1px;font:var(--type-body);color:var(--text-secondary);cursor:pointer;white-space:nowrap;outline:none;transition:var(--transition-control)}
227
- .pire-tab[data-hovered]{color:var(--text-primary)}
228
- .pire-tab[data-selected]{color:var(--accent-subtle-fg);border-bottom-color:var(--accent-bg);font:var(--type-body-strong)}
229
- .pire-tab[data-disabled]{color:var(--text-disabled);cursor:not-allowed}
230
- .pire-tab-count{font:var(--type-code);color:var(--text-tertiary)}
231
- .pire-tabpanel{padding-top:var(--sp-4);outline:none}
784
+ .pire-tablist {
785
+ display: flex;
786
+ gap: var(--sp-5);
787
+ border-bottom: 1px solid var(--border-subtle);
788
+ overflow-x: auto;
789
+ }
790
+ .pire-tab {
791
+ display: inline-flex;
792
+ align-items: center;
793
+ gap: var(--sp-2);
794
+ height: var(--shell-subheader-h);
795
+ padding: 0 var(--sp-0h);
796
+ border-bottom: 2px solid transparent;
797
+ margin-bottom: -1px;
798
+ font: var(--type-body);
799
+ color: var(--text-secondary);
800
+ cursor: pointer;
801
+ white-space: nowrap;
802
+ outline: none;
803
+ transition: var(--transition-control);
804
+ }
805
+ .pire-tab[data-hovered] {
806
+ color: var(--text-primary);
807
+ }
808
+ .pire-tab[data-selected] {
809
+ color: var(--accent-subtle-fg);
810
+ border-bottom-color: var(--accent-bg);
811
+ font: var(--type-body-strong);
812
+ }
813
+ .pire-tab[data-disabled] {
814
+ color: var(--text-disabled);
815
+ cursor: not-allowed;
816
+ }
817
+ .pire-tab-count {
818
+ font: var(--type-code);
819
+ color: var(--text-tertiary);
820
+ }
821
+ .pire-tabpanel {
822
+ padding-top: var(--sp-4);
823
+ outline: none;
824
+ }
232
825
 
233
826
  /* ---- Ribbon ---------------------------------------------------------------
234
827
  The tabbed command surface above an ERP list. Geometry is fixed rather than fluid: a command's
235
828
  position is muscle memory, and a band that reflows as its content changes throws that away. The
236
829
  large tile is 78x68 because that is the smallest box that fits a 20px glyph over two lines of
237
830
  caption at --fs-caption without the caption hyphenating. */
238
- .pire-ribbon{display:flex;flex-direction:column;background:var(--surface-card);border-bottom:1px solid var(--border-default)}
239
- .pire-ribbon-tablist{display:flex;align-items:stretch;gap:var(--sp-0h);height:var(--sp-8);padding:0 var(--sp-3);border-bottom:1px solid var(--border-subtle)}
240
- .pire-ribbon-tab{display:flex;align-items:center;height:var(--sp-8);padding:0 var(--sp-3);border:0;background:transparent;color:var(--text-secondary);font:var(--type-body);white-space:nowrap;cursor:pointer;outline:none;transition:var(--transition-control)}
241
- .pire-ribbon-tab[data-hovered]{color:var(--text-primary)}
242
- .pire-ribbon-tab[data-selected]{color:var(--accent-subtle-fg);font:var(--type-body-strong);box-shadow:inset 0 -2px 0 0 var(--border-accent)}
243
- .pire-ribbon-tab[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:calc(var(--focus-offset) * -1)}
831
+ /* `max-width` and `min-width` together are what make the scrolling below actually happen. The
832
+ ribbon has no width of its own, so in a *block* parent it fills and its scroller scrolls — but
833
+ as a flex item under `align-items:flex-start`, or in a grid track, its width is content-based
834
+ and it simply grows past the container instead, taking the pinned toggle off-screen with it.
835
+ `max-width` clamps those two; `min-width:0` is the separate half that lets it shrink as a flex
836
+ *row* item, where the default `min-width:auto` floors it at its content. Same fix, and the same
837
+ reason, as `.pire-sidenav` embedded in a column narrower than `--sidenav-w`. */
838
+ .pire-ribbon {
839
+ display: flex;
840
+ flex-direction: column;
841
+ max-width: 100%;
842
+ min-width: 0;
843
+ background: var(--surface-card);
844
+ border-bottom: 1px solid var(--border-default);
845
+ }
846
+ /* Scrolls for the same reason the band below it does, and by the same means. Nine tabs in a 420px
847
+ ribbon put the last one 263px past the ribbon's own card edge and scrolled the page with it.
848
+ `scrollbar-width:none` rather than the band's `thin`: this row is --sp-8 (32px), and a classic
849
+ horizontal scrollbar takes ~15px of that on Windows. What replaces it as the affordance is the
850
+ half-clipped tab at the edge — and arrow keys move between tabs, so the browser scrolls the
851
+ focused one into view without anyone reaching for a scrollbar. */
852
+ .pire-ribbon-tablist {
853
+ display: flex;
854
+ align-items: stretch;
855
+ gap: var(--sp-0h);
856
+ height: var(--sp-8);
857
+ min-width: 0;
858
+ padding: 0 var(--sp-3);
859
+ overflow-x: auto;
860
+ overflow-y: hidden;
861
+ scrollbar-width: none;
862
+ border-bottom: 1px solid var(--border-subtle);
863
+ }
864
+ .pire-ribbon-tablist::-webkit-scrollbar {
865
+ display: none;
866
+ }
867
+ .pire-ribbon-tab {
868
+ display: flex;
869
+ align-items: center;
870
+ flex: 0 0 auto;
871
+ height: var(--sp-8);
872
+ padding: 0 var(--sp-3);
873
+ border: 0;
874
+ background: transparent;
875
+ color: var(--text-secondary);
876
+ font: var(--type-body);
877
+ white-space: nowrap;
878
+ cursor: pointer;
879
+ outline: none;
880
+ transition: var(--transition-control);
881
+ }
882
+ .pire-ribbon-tab[data-hovered] {
883
+ color: var(--text-primary);
884
+ }
885
+ .pire-ribbon-tab[data-selected] {
886
+ color: var(--accent-subtle-fg);
887
+ font: var(--type-body-strong);
888
+ box-shadow: inset 0 -2px 0 0 var(--border-accent);
889
+ }
890
+ .pire-ribbon-tab[data-focus-visible] {
891
+ outline: var(--focus-w) solid var(--focus-color);
892
+ outline-offset: calc(var(--focus-offset) * -1);
893
+ }
244
894
  /* Teal, not the accent blue: blue means "where you are" throughout the shell, and a tab meaning
245
895
  "what you can do to the selection" must not borrow it. The aliases theme; --teal-10 does not. */
246
- .pire-ribbon-tab[data-contextual="true"]{background:var(--surface-contextual);color:var(--text-contextual)}
247
- .pire-ribbon-tab[data-contextual="true"][data-selected]{color:var(--text-contextual);box-shadow:inset 0 -2px 0 0 var(--border-contextual)}
248
- .pire-ribbon-panel{padding:var(--sp-1) var(--sp-2) 0;outline:none}
249
- .pire-ribbon-band{display:flex;align-items:stretch;min-width:0;overflow:hidden}
896
+ .pire-ribbon-tab[data-contextual="true"] {
897
+ background: var(--surface-contextual);
898
+ color: var(--text-contextual);
899
+ }
900
+ .pire-ribbon-tab[data-contextual="true"][data-selected] {
901
+ color: var(--text-contextual);
902
+ box-shadow: inset 0 -2px 0 0 var(--border-contextual);
903
+ }
904
+ .pire-ribbon-panel {
905
+ padding: var(--sp-1) var(--sp-2) 0;
906
+ outline: none;
907
+ }
908
+ .pire-ribbon-band {
909
+ display: flex;
910
+ align-items: stretch;
911
+ min-width: 0;
912
+ }
913
+ /* Both modes are a scrolling command region plus a trailing region that never scrolls. Before the
914
+ split the toggle was simply the last flex item of an `overflow:hidden` row, so a narrow screen
915
+ clipped it away with the last group — and the toggle is the one control that gets an oversized
916
+ ribbon out of the way, so the overflow ate the way out of the overflow.
917
+ `overflow-y:hidden` because a horizontal scroller reports a stray vertical overflow often
918
+ enough to draw a second scrollbar; nothing is clipped by it, since every focus ring in here is
919
+ inset (`outline-offset` is negative on both the command and the toggle). */
920
+ /* Everything it holds carries `flex:0 0 auto` on its own rule below. Shrinking is the alternative
921
+ to scrolling and a flex row reaches for it first: left at the default, the collapsed bar squashed
922
+ its `leading` chip to nothing and drew the first command straight through it, and the scrollbar
923
+ it should have grown never appeared. */
924
+ .pire-ribbon-scroll {
925
+ display: flex;
926
+ align-items: stretch;
927
+ flex: 1 1 auto;
928
+ min-width: 0;
929
+ overflow-x: auto;
930
+ overflow-y: hidden;
931
+ scrollbar-width: thin;
932
+ }
933
+ /* Opaque, so commands pass *behind* the trailing controls rather than through them. */
934
+ .pire-ribbon-trail {
935
+ display: flex;
936
+ align-items: center;
937
+ gap: var(--sp-0h);
938
+ flex: 0 0 auto;
939
+ background: var(--surface-card);
940
+ }
941
+ /* The freeze line, and only while something is genuinely hidden behind it — the component sets
942
+ `data-overflow` from the scroller's own geometry. A line drawn unconditionally is a divider the
943
+ ribbon does not have, parked beside the toggle on every screen wide enough not to need one.
944
+ Drawn as a box-shadow rather than a border for the same reason `.pire-table [data-pinned-last]`
945
+ is: it paints over the scrolled content instead of reserving a pixel of layout that would shift
946
+ the commands sideways the moment the line appeared. */
947
+ .pire-ribbon-trail[data-overflow="true"] {
948
+ box-shadow: -1px 0 0 0 var(--border-default);
949
+ }
250
950
  /* The prototype's group gutter is 10px, which is off the 4px grid. --sp-2 (8px) reads the same at
251
951
  this scale and stays on it; if the groups end up visually cramped, widen the *band* padding
252
952
  rather than reintroducing a literal here. */
253
- .pire-ribbon-group{display:flex;flex-direction:column;padding:0 var(--sp-2);border-right:1px solid var(--border-subtle)}
254
- .pire-ribbon-group:last-child{border-right:0}
255
- .pire-ribbon-group-body{display:flex;gap:var(--sp-0h);flex:1;align-items:flex-start}
256
- .pire-ribbon-stack{display:flex;flex-direction:column;gap:var(--sp-0h);padding-top:var(--sp-0h)}
257
- .pire-ribbon-caption{padding:var(--sp-0h) 0 var(--sp-1);font:var(--type-micro);color:var(--text-tertiary);text-align:center}
258
- .pire-ribbon-command{display:flex;align-items:center;border:1px solid transparent;border-radius:var(--radius-1);background:transparent;color:var(--text-primary);font:var(--type-caption);cursor:pointer;outline:none;transition:var(--transition-control)}
259
- .pire-ribbon-command[data-hovered]{background:var(--surface-hover)}
260
- .pire-ribbon-command[data-pressed]{background:var(--surface-active)}
261
- .pire-ribbon-command[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:calc(var(--focus-offset) * -1)}
953
+ .pire-ribbon-group {
954
+ display: flex;
955
+ flex-direction: column;
956
+ flex: 0 0 auto;
957
+ padding: 0 var(--sp-2);
958
+ border-right: 1px solid var(--border-subtle);
959
+ }
960
+ .pire-ribbon-group:last-child {
961
+ border-right: 0;
962
+ }
963
+ .pire-ribbon-group-body {
964
+ display: flex;
965
+ gap: var(--sp-0h);
966
+ flex: 1;
967
+ align-items: flex-start;
968
+ }
969
+ .pire-ribbon-stack {
970
+ display: flex;
971
+ flex-direction: column;
972
+ gap: var(--sp-0h);
973
+ padding-top: var(--sp-0h);
974
+ }
975
+ .pire-ribbon-caption {
976
+ padding: var(--sp-0h) 0 var(--sp-1);
977
+ font: var(--type-micro);
978
+ color: var(--text-tertiary);
979
+ text-align: center;
980
+ }
981
+ .pire-ribbon-command {
982
+ display: flex;
983
+ align-items: center;
984
+ border: 1px solid transparent;
985
+ border-radius: var(--radius-1);
986
+ background: transparent;
987
+ color: var(--text-primary);
988
+ font: var(--type-caption);
989
+ cursor: pointer;
990
+ outline: none;
991
+ transition: var(--transition-control);
992
+ }
993
+ .pire-ribbon-command[data-hovered] {
994
+ background: var(--surface-hover);
995
+ }
996
+ .pire-ribbon-command[data-pressed] {
997
+ background: var(--surface-active);
998
+ }
999
+ .pire-ribbon-command[data-focus-visible] {
1000
+ outline: var(--focus-w) solid var(--focus-color);
1001
+ outline-offset: calc(var(--focus-offset) * -1);
1002
+ }
262
1003
  /* Disabled stays at --text-disabled and below 4.5:1 on purpose: WCAG 1.4.3 exempts an inactive
263
1004
  control, and darkening it deletes the cue that the command needs a selection first. */
264
- .pire-ribbon-command[data-disabled]{color:var(--text-disabled);cursor:default;background:transparent}
265
- .pire-ribbon-command[data-size="lg"]{flex-direction:column;justify-content:center;gap:var(--sp-1);width:78px;height:68px;padding:var(--sp-1)}
1005
+ .pire-ribbon-command[data-disabled] {
1006
+ color: var(--text-disabled);
1007
+ cursor: default;
1008
+ background: transparent;
1009
+ }
1010
+ .pire-ribbon-command[data-size="lg"] {
1011
+ flex-direction: column;
1012
+ justify-content: center;
1013
+ gap: var(--sp-1);
1014
+ width: 78px;
1015
+ height: 68px;
1016
+ padding: var(--sp-1);
1017
+ }
266
1018
  /* The caption wraps here rather than at the call site. `balance` is what keeps "Transferir entre
267
1019
  sucursales" as two even lines instead of three words and an orphan. */
268
- .pire-ribbon-command[data-size="lg"] .pire-ribbon-command-label{text-align:center;line-height:1.2;text-wrap:balance}
269
- .pire-ribbon-command[data-size="sm"]{gap:var(--sp-1);height:21px;padding:0 var(--sp-1) 0 var(--sp-0h);white-space:nowrap}
1020
+ .pire-ribbon-command[data-size="lg"] .pire-ribbon-command-label {
1021
+ text-align: center;
1022
+ line-height: 1.2;
1023
+ text-wrap: balance;
1024
+ }
1025
+ .pire-ribbon-command[data-size="sm"] {
1026
+ gap: var(--sp-1);
1027
+ height: 21px;
1028
+ padding: 0 var(--sp-1) 0 var(--sp-0h);
1029
+ white-space: nowrap;
1030
+ }
270
1031
 
271
1032
  /* The collapsed bar. One row, the same command buttons, separators where the source groups
272
1033
  changed — the ribbon's structure survives the collapse rather than being replaced by a flat
@@ -274,179 +1035,765 @@
274
1035
  /* --control-h-lg (48px) for the bar and --sp-8 (32px) for its commands. The prototype uses 44 and
275
1036
  30, both off the 4px grid; the grid values read the same and keep the bar the height of every
276
1037
  other control band in the library. */
277
- .pire-ribbon-bar{display:flex;align-items:center;gap:var(--sp-0h);height:var(--control-h-lg);padding:0 var(--sp-2) 0 var(--sp-3);background:var(--surface-card)}
1038
+ .pire-ribbon-bar {
1039
+ display: flex;
1040
+ align-items: center;
1041
+ gap: var(--sp-0h);
1042
+ height: var(--control-h-lg);
1043
+ padding: 0 var(--sp-2) 0 var(--sp-3);
1044
+ background: var(--surface-card);
1045
+ }
278
1046
  /* Every bar command is emitted `data-size="sm"` whatever it is in the band (see `Command` in
279
1047
  Ribbon.tsx), so this rule only has to resize the compact form — it never has to out-specify the
280
1048
  `lg` tile's `flex-direction:column` and fixed 78px width. */
281
- .pire-ribbon-bar .pire-ribbon-command{gap:var(--sp-1);height:var(--sp-8);padding:0 var(--sp-2);font:var(--type-body);white-space:nowrap}
282
- .pire-ribbon-bar-sep{width:1px;align-self:stretch;margin:var(--sp-2) var(--sp-1);background:var(--border-subtle)}
283
- .pire-ribbon-bar-spacer{flex:1}
284
- .pire-ribbon-leading{display:flex;align-items:center;min-width:0}
285
- .pire-ribbon-toggle{display:inline-flex;align-items:center;justify-content:center;width:var(--sp-8);height:var(--sp-8);flex-shrink:0;border:1px solid transparent;border-radius:var(--radius-1);background:transparent;color:var(--text-secondary);cursor:pointer;outline:none;transition:var(--transition-control)}
286
- .pire-ribbon-toggle[data-hovered]{background:var(--surface-hover);border-color:var(--border-subtle)}
287
- .pire-ribbon-toggle[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:calc(var(--focus-offset) * -1)}
1049
+ .pire-ribbon-bar .pire-ribbon-command {
1050
+ gap: var(--sp-1);
1051
+ flex: 0 0 auto;
1052
+ height: var(--sp-8);
1053
+ padding: 0 var(--sp-2);
1054
+ font: var(--type-body);
1055
+ white-space: nowrap;
1056
+ }
1057
+ .pire-ribbon-bar-sep {
1058
+ width: 1px;
1059
+ flex: 0 0 auto;
1060
+ align-self: stretch;
1061
+ margin: var(--sp-2) var(--sp-1);
1062
+ background: var(--border-subtle);
1063
+ }
1064
+ .pire-ribbon-leading {
1065
+ display: flex;
1066
+ align-items: center;
1067
+ flex: 0 0 auto;
1068
+ }
1069
+ .pire-ribbon-toggle {
1070
+ display: inline-flex;
1071
+ align-items: center;
1072
+ justify-content: center;
1073
+ width: var(--sp-8);
1074
+ height: var(--sp-8);
1075
+ flex-shrink: 0;
1076
+ border: 1px solid transparent;
1077
+ border-radius: var(--radius-1);
1078
+ background: transparent;
1079
+ color: var(--text-secondary);
1080
+ cursor: pointer;
1081
+ outline: none;
1082
+ transition: var(--transition-control);
1083
+ }
1084
+ .pire-ribbon-toggle[data-hovered] {
1085
+ background: var(--surface-hover);
1086
+ border-color: var(--border-subtle);
1087
+ }
1088
+ .pire-ribbon-toggle[data-focus-visible] {
1089
+ outline: var(--focus-w) solid var(--focus-color);
1090
+ outline-offset: calc(var(--focus-offset) * -1);
1091
+ }
288
1092
  /* The band's trailing controls sit at the top of the band, not centred in it — a toggle floating
289
1093
  in the middle of the ribbon reads as belonging to whichever group it lands beside. The band has
290
- no declared height: it is as tall as its tallest group, so there is no figure to name here. */
291
- .pire-ribbon-band .pire-ribbon-toggle{align-self:flex-start;margin-top:var(--sp-1)}
1094
+ no declared height: it is as tall as its tallest group, so there is no figure to name here.
1095
+ `align-items`, not `align-self`: the trail is a flex container of its own now, and the freeze
1096
+ line has to run the full height of the band rather than stopping at the toggle. */
1097
+ .pire-ribbon-band .pire-ribbon-trail {
1098
+ align-items: flex-start;
1099
+ padding-top: var(--sp-1);
1100
+ }
292
1101
 
293
1102
  /* ---- Breadcrumb / Pagination ----------------------------------------- */
294
- .pire-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1);margin:0;padding:0;list-style:none;font:var(--type-caption)}
295
- .pire-breadcrumb{display:inline-flex;align-items:center;gap:var(--sp-1);color:var(--text-secondary)}
296
- .pire-breadcrumb[data-current]{color:var(--text-primary)}
297
- .pire-breadcrumb a{color:var(--text-link);text-decoration:none;cursor:pointer}
298
- .pire-breadcrumb a[data-hovered]{text-decoration:underline}
299
- .pire-pagination{display:flex;align-items:center;gap:var(--sp-3);font:var(--type-caption);color:var(--text-secondary)}
300
- .pire-pagination-count{font:var(--type-code);color:var(--text-secondary)}
1103
+ .pire-breadcrumbs {
1104
+ display: flex;
1105
+ flex-wrap: wrap;
1106
+ align-items: center;
1107
+ gap: var(--sp-1);
1108
+ margin: 0;
1109
+ padding: 0;
1110
+ list-style: none;
1111
+ font: var(--type-caption);
1112
+ }
1113
+ .pire-breadcrumb {
1114
+ display: inline-flex;
1115
+ align-items: center;
1116
+ gap: var(--sp-1);
1117
+ color: var(--text-secondary);
1118
+ }
1119
+ .pire-breadcrumb[data-current] {
1120
+ color: var(--text-primary);
1121
+ }
1122
+ .pire-breadcrumb a {
1123
+ color: var(--text-link);
1124
+ text-decoration: none;
1125
+ cursor: pointer;
1126
+ }
1127
+ .pire-breadcrumb a[data-hovered] {
1128
+ text-decoration: underline;
1129
+ }
1130
+ .pire-pagination {
1131
+ display: flex;
1132
+ align-items: center;
1133
+ gap: var(--sp-3);
1134
+ font: var(--type-caption);
1135
+ color: var(--text-secondary);
1136
+ }
1137
+ .pire-pagination-count {
1138
+ font: var(--type-code);
1139
+ color: var(--text-secondary);
1140
+ }
301
1141
 
302
1142
  /* ---- ShellBar / SideNav ---------------------------------------------- */
303
- .pire-shellbar{display:flex;align-items:center;gap:var(--sp-3);height:var(--shell-header-h);padding:0 var(--sp-3);background:var(--surface-shell);color:var(--text-inverse)}
304
- .pire-shellbar-mono{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-1);background:var(--gray-0);color:var(--surface-shell);font:var(--type-label);letter-spacing:var(--ls-caps)}
305
- .pire-shellbar-product{font:var(--type-label);letter-spacing:var(--ls-caps);text-transform:uppercase;opacity:.8}
306
- .pire-shellbar-title{font:var(--type-body-strong)}
307
- .pire-shellbar-spacer{flex:1}
308
- .pire-avatar{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-pill);background:var(--blue-60);color:var(--text-inverse);font:var(--type-label)}
1143
+ .pire-shellbar {
1144
+ display: flex;
1145
+ align-items: center;
1146
+ gap: var(--sp-3);
1147
+ height: var(--shell-header-h);
1148
+ padding: 0 var(--sp-3);
1149
+ background: var(--surface-shell);
1150
+ color: var(--text-inverse);
1151
+ }
1152
+ .pire-shellbar-mono {
1153
+ display: inline-flex;
1154
+ align-items: center;
1155
+ justify-content: center;
1156
+ width: 28px;
1157
+ height: 28px;
1158
+ border-radius: var(--radius-1);
1159
+ background: var(--gray-0);
1160
+ color: var(--surface-shell);
1161
+ font: var(--type-label);
1162
+ letter-spacing: var(--ls-caps);
1163
+ }
1164
+ .pire-shellbar-product {
1165
+ font: var(--type-label);
1166
+ letter-spacing: var(--ls-caps);
1167
+ text-transform: uppercase;
1168
+ opacity: 0.8;
1169
+ }
1170
+ .pire-shellbar-title {
1171
+ font: var(--type-body-strong);
1172
+ }
1173
+ .pire-shellbar-spacer {
1174
+ flex: 1;
1175
+ }
1176
+ .pire-avatar {
1177
+ display: inline-flex;
1178
+ align-items: center;
1179
+ justify-content: center;
1180
+ width: 28px;
1181
+ height: 28px;
1182
+ border-radius: var(--radius-pill);
1183
+ background: var(--blue-60);
1184
+ color: var(--text-inverse);
1185
+ font: var(--type-label);
1186
+ }
309
1187
  /* The avatar as a real button, once ShellBar is given a userMenu. Resets the UA button styling the
310
1188
  span never carried, and adds what a span cannot: a pointer, interaction states, and a focus ring
311
1189
  that reads against the dark shell instead of against the page. */
312
- .pire-avatar-trigger{border:0;padding:0;cursor:pointer;transition:var(--transition-control)}
313
- .pire-avatar-trigger[data-hovered]{background:var(--blue-50)}
314
- .pire-avatar-trigger[data-pressed]{background:var(--blue-70)}
315
- .pire-avatar-trigger[data-focus-visible]{outline:var(--focus-w) solid var(--text-inverse);outline-offset:2px}
316
- .pire-sidenav{display:flex;flex-direction:column;width:var(--sidenav-w);flex:0 0 auto;background:var(--surface-nav);border-right:1px solid var(--border-subtle);overflow:auto}
317
- .pire-sidenav[data-collapsed="true"]{width:var(--sidenav-w-collapsed)}
318
- .pire-sidenav-group{padding:var(--sp-3) 0}
319
- .pire-sidenav-group + .pire-sidenav-group{border-top:1px solid var(--border-subtle)}
320
- .pire-sidenav-label{padding:0 var(--sp-4) var(--sp-2);font:var(--type-label);letter-spacing:var(--ls-caps);text-transform:uppercase;color:var(--text-tertiary)}
321
- .pire-sidenav-item{display:flex;align-items:center;gap:var(--sp-3);width:100%;height:var(--row-h-regular);padding:0 var(--sp-4);border:0;border-left:3px solid transparent;background:transparent;color:var(--text-primary);font:var(--type-body);text-align:left;cursor:pointer;transition:var(--transition-control)}
322
- .pire-sidenav-item[data-hovered]{background:var(--surface-hover)}
323
- .pire-sidenav-item[data-selected="true"]{background:var(--surface-selected);border-left-color:var(--accent-bg);color:var(--accent-subtle-fg);font:var(--type-body-strong)}
324
- .pire-sidenav-count{margin-left:auto;font:var(--type-code);color:var(--text-tertiary)}
1190
+ .pire-avatar-trigger {
1191
+ border: 0;
1192
+ padding: 0;
1193
+ cursor: pointer;
1194
+ transition: var(--transition-control);
1195
+ }
1196
+ .pire-avatar-trigger[data-hovered] {
1197
+ background: var(--blue-50);
1198
+ }
1199
+ .pire-avatar-trigger[data-pressed] {
1200
+ background: var(--blue-70);
1201
+ }
1202
+ .pire-avatar-trigger[data-focus-visible] {
1203
+ outline: var(--focus-w) solid var(--text-inverse);
1204
+ outline-offset: 2px;
1205
+ }
1206
+ /* `max-width:100%` so the nav can be embedded somewhere narrower than `--sidenav-w` — the POS uses
1207
+ it as a category list in a 200px grid track, where the fixed 256px overflowed by 56. Nothing
1208
+ looked broken: the containing element scrolled on its own axis, so the excess went off-frame
1209
+ with no scrollbar, and what people saw was that `.pire-sidenav-count` — pushed to the item's
1210
+ right edge, 240px in — had nothing to draw on. Twenty invisible counters read as "this component
1211
+ has no counters". Overriding `--sidenav-w` from an ancestor is not the answer: it duplicates a
1212
+ number that lives in the parent's own `grid-template-columns`, and a 1px parent border means the
1213
+ two still disagree. In the shell this does not bite, because there the parent is wider. */
1214
+ .pire-sidenav {
1215
+ display: flex;
1216
+ flex-direction: column;
1217
+ width: var(--sidenav-w);
1218
+ max-width: 100%;
1219
+ flex: 0 0 auto;
1220
+ background: var(--surface-nav);
1221
+ border-right: 1px solid var(--border-subtle);
1222
+ overflow: auto;
1223
+ }
1224
+ .pire-sidenav[data-collapsed="true"] {
1225
+ width: var(--sidenav-w-collapsed);
1226
+ }
1227
+ /* Embedded beside a container that draws its own rule, the nav's would stack into a double line.
1228
+ Opt-out rather than opt-in: the nav is the shell's column far more often than it is not. */
1229
+ .pire-sidenav[data-bordered="false"] {
1230
+ border-right: 0;
1231
+ }
1232
+ .pire-sidenav-group {
1233
+ padding: var(--sp-3) 0;
1234
+ }
1235
+ .pire-sidenav-group + .pire-sidenav-group {
1236
+ border-top: 1px solid var(--border-subtle);
1237
+ }
1238
+ .pire-sidenav-label {
1239
+ padding: 0 var(--sp-4) var(--sp-2);
1240
+ font: var(--type-label);
1241
+ letter-spacing: var(--ls-caps);
1242
+ text-transform: uppercase;
1243
+ color: var(--text-tertiary);
1244
+ }
1245
+ .pire-sidenav-item {
1246
+ display: flex;
1247
+ align-items: center;
1248
+ gap: var(--sp-3);
1249
+ width: 100%;
1250
+ height: var(--row-h-regular);
1251
+ padding: 0 var(--sp-4);
1252
+ border: 0;
1253
+ border-left: 3px solid transparent;
1254
+ background: transparent;
1255
+ color: var(--text-primary);
1256
+ font: var(--type-body);
1257
+ text-align: left;
1258
+ cursor: pointer;
1259
+ transition: var(--transition-control);
1260
+ }
1261
+ .pire-sidenav-item[data-hovered] {
1262
+ background: var(--surface-hover);
1263
+ }
1264
+ .pire-sidenav-item[data-selected="true"] {
1265
+ background: var(--surface-selected);
1266
+ border-left-color: var(--accent-bg);
1267
+ color: var(--accent-subtle-fg);
1268
+ font: var(--type-body-strong);
1269
+ }
1270
+ .pire-sidenav-count {
1271
+ margin-left: auto;
1272
+ font: var(--type-code);
1273
+ color: var(--text-tertiary);
1274
+ }
325
1275
  /* Second level. `-tree` is React Aria's DisclosureGroup, `-section` one Disclosure; both exist only
326
1276
  to keep the rows in a column, since the wrappers are divs the component cannot avoid. */
327
- .pire-sidenav-tree,.pire-sidenav-section{display:flex;flex-direction:column}
1277
+ .pire-sidenav-tree,
1278
+ .pire-sidenav-section {
1279
+ display: flex;
1280
+ flex-direction: column;
1281
+ }
328
1282
  /* The trailing chevron. Its own auto margin pushes it to the edge on a group row with no count; when
329
1283
  there is a count, the count's auto margin has already claimed the free space and a second auto here
330
1284
  would split it and leave the count floating mid-row — hence the reset. */
331
- .pire-sidenav-chevron{margin-left:auto;color:var(--text-tertiary);transition:transform var(--dur-fast) var(--ease-standard)}
332
- .pire-sidenav-count + .pire-sidenav-chevron{margin-left:0}
333
- .pire-sidenav-section:not([data-expanded]) .pire-sidenav-chevron{transform:rotate(-90deg)}
1285
+ .pire-sidenav-chevron {
1286
+ margin-left: auto;
1287
+ color: var(--text-tertiary);
1288
+ transition: transform var(--dur-fast) var(--ease-standard);
1289
+ }
1290
+ .pire-sidenav-count + .pire-sidenav-chevron {
1291
+ margin-left: 0;
1292
+ }
1293
+ .pire-sidenav-section:not([data-expanded]) .pire-sidenav-chevron {
1294
+ transform: rotate(-90deg);
1295
+ }
334
1296
  /* Marks a group row whose child is the current destination: the accent tick and label weight of a
335
1297
  selection without its fill, so the trail to `aria-current` reads at a glance and still loses to it.
336
1298
  Also the only cue left in the icon rail, where the children are not rendered. */
337
- .pire-sidenav-item[data-active-child="true"]{border-left-color:var(--accent-bg);color:var(--accent-subtle-fg);font:var(--type-body-strong)}
1299
+ .pire-sidenav-item[data-active-child="true"] {
1300
+ border-left-color: var(--accent-bg);
1301
+ color: var(--accent-subtle-fg);
1302
+ font: var(--type-body-strong);
1303
+ }
338
1304
  /* React Aria animates the panel through --disclosure-panel-height, and applies `hidden` only once the
339
1305
  animation settles. The `display` above therefore has to be undone for the collapsed state: it beats
340
1306
  the UA's `[hidden]{display:none}`, and a visible-to-the-layout panel under `aria-hidden="true"`
341
1307
  leaves every child in the tab order — an aria-hidden-focus defect, not just a cosmetic one. */
342
- .pire-sidenav-subnav{display:flex;flex-direction:column;overflow:hidden;height:var(--disclosure-panel-height,auto);transition:height var(--dur-fast) var(--ease-standard)}
343
- .pire-sidenav-subnav[hidden]{display:none}
1308
+ .pire-sidenav-subnav {
1309
+ display: flex;
1310
+ flex-direction: column;
1311
+ overflow: hidden;
1312
+ height: var(--disclosure-panel-height, auto);
1313
+ transition: height var(--dur-fast) var(--ease-standard);
1314
+ }
1315
+ .pire-sidenav-subnav[hidden] {
1316
+ display: none;
1317
+ }
344
1318
  /* Indented to the parent's *label*, not its icon: page padding + the 16px glyph box + the row gap.
345
1319
  Condensed height because a two-level menu is 35 rows, not 10. */
346
- .pire-sidenav-subitem{height:var(--row-h-condensed);padding-left:calc(var(--sp-4) + var(--sp-4) + var(--sp-3))}
347
- .pire-sidenav-footer{margin-top:auto;padding:var(--sp-3) var(--sp-4);border-top:1px solid var(--border-subtle)}
1320
+ .pire-sidenav-subitem {
1321
+ height: var(--row-h-condensed);
1322
+ padding-left: calc(var(--sp-4) + var(--sp-4) + var(--sp-3));
1323
+ }
1324
+ .pire-sidenav-footer {
1325
+ margin-top: auto;
1326
+ padding: var(--sp-3) var(--sp-4);
1327
+ border-top: 1px solid var(--border-subtle);
1328
+ }
348
1329
 
349
1330
  /* ---- ShellRail ------------------------------------------------------- */
350
1331
  /* The application rail: the *first* of two navigation levels, picking which app is open while
351
1332
  SideNav picks the page inside it. Icon-only and permanently dark, so it reads as chrome
352
1333
  continuing down from the shell bar rather than as a second sidebar. */
353
- .pire-shellrail{display:flex;flex-direction:column;width:var(--rail-w);flex:0 0 var(--rail-w);min-height:0;background:var(--surface-rail);color:var(--text-inverse-secondary)}
1334
+ .pire-shellrail {
1335
+ display: flex;
1336
+ flex-direction: column;
1337
+ width: var(--rail-w);
1338
+ flex: 0 0 var(--rail-w);
1339
+ min-height: 0;
1340
+ background: var(--surface-rail);
1341
+ color: var(--text-inverse-secondary);
1342
+ }
354
1343
  /* A zone: home, the apps, the company-wide functions. Only the one marked `data-scroll` absorbs
355
1344
  overflow, which is what keeps the pinned zones pinned while 30 apps scroll between them. `flex:0 0
356
1345
  auto` on the rest stops them being squeezed by a long middle zone instead of scrolling it. */
357
- .pire-shellrail-group{display:flex;flex-direction:column;flex:0 0 auto}
358
- .pire-shellrail-group[data-scroll="true"]{flex:1 1 auto;min-height:0;overflow-y:auto}
359
- .pire-shellrail-divider{flex:0 0 auto;height:1px;margin:var(--sp-1) var(--sp-2);background:var(--border-rail)}
360
- .pire-shellrail-item{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:100%;height:var(--row-h-comfortable);padding:0;border:0;background:transparent;color:inherit;cursor:pointer;transition:var(--transition-control)}
361
- .pire-shellrail-item[data-hovered]{color:var(--text-inverse)}
362
- .pire-shellrail-item[data-focus-visible]{outline:var(--focus-w) solid var(--text-inverse);outline-offset:-3px}
363
- .pire-shellrail-item[data-selected="true"]{color:var(--text-inverse)}
1346
+ .pire-shellrail-group {
1347
+ display: flex;
1348
+ flex-direction: column;
1349
+ flex: 0 0 auto;
1350
+ }
1351
+ .pire-shellrail-group[data-scroll="true"] {
1352
+ flex: 1 1 auto;
1353
+ min-height: 0;
1354
+ overflow-y: auto;
1355
+ }
1356
+ .pire-shellrail-divider {
1357
+ flex: 0 0 auto;
1358
+ height: 1px;
1359
+ margin: var(--sp-1) var(--sp-2);
1360
+ background: var(--border-rail);
1361
+ }
1362
+ .pire-shellrail-item {
1363
+ display: flex;
1364
+ align-items: center;
1365
+ justify-content: center;
1366
+ flex: 0 0 auto;
1367
+ width: 100%;
1368
+ height: var(--row-h-comfortable);
1369
+ padding: 0;
1370
+ border: 0;
1371
+ background: transparent;
1372
+ color: inherit;
1373
+ cursor: pointer;
1374
+ transition: var(--transition-control);
1375
+ }
1376
+ .pire-shellrail-item[data-hovered] {
1377
+ color: var(--text-inverse);
1378
+ }
1379
+ .pire-shellrail-item[data-focus-visible] {
1380
+ outline: var(--focus-w) solid var(--text-inverse);
1381
+ outline-offset: -3px;
1382
+ }
1383
+ .pire-shellrail-item[data-selected="true"] {
1384
+ color: var(--text-inverse);
1385
+ }
364
1386
  /* The tile inside the row, not the row itself: a full-width fill would butt against the rail's
365
1387
  edges and lose its shape, and the 36px square is what makes the selection read as a chip. */
366
- .pire-shellrail-tile{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:var(--radius-1);transition:var(--transition-control)}
367
- .pire-shellrail-item[data-hovered] .pire-shellrail-tile{background:var(--surface-rail-hover)}
1388
+ .pire-shellrail-tile {
1389
+ display: flex;
1390
+ align-items: center;
1391
+ justify-content: center;
1392
+ width: 36px;
1393
+ height: 36px;
1394
+ border-radius: var(--radius-1);
1395
+ transition: var(--transition-control);
1396
+ }
1397
+ .pire-shellrail-item[data-hovered] .pire-shellrail-tile {
1398
+ background: var(--surface-rail-hover);
1399
+ }
368
1400
  /* Fill *and* ring. The fill is 1.64:1 against the rail — a tint, not an indicator — so the inset
369
1401
  ring is the half that satisfies WCAG 1.4.11, and tokens.contrast.test.ts asserts it at 3:1. */
370
- .pire-shellrail-item[data-selected="true"] .pire-shellrail-tile{background:var(--surface-rail-selected);box-shadow:inset 0 0 0 1px var(--border-rail-selected)}
1402
+ .pire-shellrail-item[data-selected="true"] .pire-shellrail-tile {
1403
+ background: var(--surface-rail-selected);
1404
+ box-shadow: inset 0 0 0 1px var(--border-rail-selected);
1405
+ }
371
1406
 
372
1407
  /* ---- AppLauncher ----------------------------------------------------- */
373
1408
  /* The trigger is the shell bar's leftmost cell, sized to the rail and pulled through the bar's own
374
1409
  padding so the two columns line up. Without the negative margin the launcher sits 12px in and the
375
1410
  rail below it does not, which reads as a misprint at every viewport. */
376
- .pire-launcher-trigger{display:flex;align-items:center;justify-content:center;flex:0 0 var(--rail-w);width:var(--rail-w);height:var(--shell-header-h);margin-left:calc(-1 * var(--sp-3));padding:0;border:0;background:var(--surface-rail-hover);color:var(--text-inverse);cursor:pointer;transition:var(--transition-control)}
377
- .pire-launcher-trigger[data-hovered]{background:var(--surface-rail-selected)}
378
- .pire-launcher-trigger[data-pressed],.pire-launcher-trigger[aria-expanded="true"]{background:var(--surface-rail-selected)}
379
- .pire-launcher-trigger[data-focus-visible]{outline:var(--focus-w) solid var(--text-inverse);outline-offset:-3px}
1411
+ .pire-launcher-trigger {
1412
+ display: flex;
1413
+ align-items: center;
1414
+ justify-content: center;
1415
+ flex: 0 0 var(--rail-w);
1416
+ width: var(--rail-w);
1417
+ height: var(--shell-header-h);
1418
+ margin-left: calc(-1 * var(--sp-3));
1419
+ padding: 0;
1420
+ border: 0;
1421
+ background: var(--surface-rail-hover);
1422
+ color: var(--text-inverse);
1423
+ cursor: pointer;
1424
+ transition: var(--transition-control);
1425
+ }
1426
+ .pire-launcher-trigger[data-hovered] {
1427
+ background: var(--surface-rail-selected);
1428
+ }
1429
+ .pire-launcher-trigger[data-pressed],
1430
+ .pire-launcher-trigger[aria-expanded="true"] {
1431
+ background: var(--surface-rail-selected);
1432
+ }
1433
+ .pire-launcher-trigger[data-focus-visible] {
1434
+ outline: var(--focus-w) solid var(--text-inverse);
1435
+ outline-offset: -3px;
1436
+ }
380
1437
  /* Its own popover shell rather than `.pire-popover`, which caps at 320px tall and sizes itself from
381
1438
  the trigger — correct for a menu hanging off a field, wrong for a 560px catalogue hanging off a
382
1439
  56px button. Same surface, border, shadow and entrance, so the two still read as one family. */
383
- .pire-launcher-popover{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-2);box-shadow:var(--shadow-2);max-height:calc(100vh - var(--shell-header-h) - var(--sp-6));overflow:auto;animation:pire-fade-in var(--dur-fast) var(--ease-entrance)}
384
- .pire-launcher{display:flex;flex-direction:column;gap:var(--sp-3);width:560px;max-width:calc(100vw - var(--sp-6));padding:var(--sp-4);outline:none}
385
- .pire-launcher-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3)}
386
- .pire-launcher-title{font:var(--type-h4)}
387
- .pire-launcher-meta{font:var(--type-caption);color:var(--text-secondary)}
388
- .pire-launcher-section{display:flex;flex-direction:column;gap:var(--sp-2)}
1440
+ .pire-launcher-popover {
1441
+ background: var(--surface-card);
1442
+ border: 1px solid var(--border-subtle);
1443
+ border-radius: var(--radius-2);
1444
+ box-shadow: var(--shadow-2);
1445
+ max-height: calc(100vh - var(--shell-header-h) - var(--sp-6));
1446
+ overflow: auto;
1447
+ animation: pire-fade-in var(--dur-fast) var(--ease-entrance);
1448
+ }
1449
+ .pire-launcher {
1450
+ display: flex;
1451
+ flex-direction: column;
1452
+ gap: var(--sp-3);
1453
+ width: 560px;
1454
+ max-width: calc(100vw - var(--sp-6));
1455
+ padding: var(--sp-4);
1456
+ outline: none;
1457
+ }
1458
+ .pire-launcher-head {
1459
+ display: flex;
1460
+ align-items: center;
1461
+ justify-content: space-between;
1462
+ gap: var(--sp-3);
1463
+ }
1464
+ .pire-launcher-title {
1465
+ font: var(--type-h4);
1466
+ }
1467
+ .pire-launcher-meta {
1468
+ font: var(--type-caption);
1469
+ color: var(--text-secondary);
1470
+ }
1471
+ .pire-launcher-section {
1472
+ display: flex;
1473
+ flex-direction: column;
1474
+ gap: var(--sp-2);
1475
+ }
389
1476
  /* A rule above every section but the first, so the company-wide block reads as a different kind of
390
1477
  destination from the apps — the artboard's separation, without a divider element to render. */
391
- .pire-launcher-section + .pire-launcher-section{padding-top:var(--sp-3);border-top:1px solid var(--border-subtle)}
1478
+ .pire-launcher-section + .pire-launcher-section {
1479
+ padding-top: var(--sp-3);
1480
+ border-top: 1px solid var(--border-subtle);
1481
+ }
392
1482
  /* Two columns, because an app catalogue is a grid of peers and a single column of eleven turns the
393
1483
  panel into a menu. Collapses below the breakpoint rather than shrinking the tiles past legibility. */
394
- .pire-launcher-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-0h)}
395
- @media (max-width:600px){.pire-launcher-grid{grid-template-columns:1fr}}
396
- .pire-launcher-item{display:flex;align-items:center;gap:var(--sp-3);width:100%;padding:var(--sp-2);border:0;border-radius:var(--radius-1);background:transparent;color:var(--text-primary);font:var(--type-body);text-align:left;cursor:pointer;transition:var(--transition-control)}
397
- .pire-launcher-item[data-hovered]{background:var(--surface-hover)}
398
- .pire-launcher-item[data-pressed]{background:var(--surface-active)}
399
- .pire-launcher-item[data-selected="true"]{background:var(--surface-selected);color:var(--accent-subtle-fg)}
1484
+ .pire-launcher-grid {
1485
+ display: grid;
1486
+ grid-template-columns: 1fr 1fr;
1487
+ gap: var(--sp-0h);
1488
+ }
1489
+ @media (max-width: 600px) {
1490
+ .pire-launcher-grid {
1491
+ grid-template-columns: 1fr;
1492
+ }
1493
+ }
1494
+ /* `min-width:0` is what keeps the grid inside the panel. `1fr` is `minmax(auto, 1fr)`, and that
1495
+ `auto` is this item's min-content — which includes a `white-space:nowrap` description, so a track
1496
+ could not shrink below a whole sentence. With a long description in *both* columns the tracks
1497
+ computed to 575px inside a 528px box and the right-hand card ran past the panel; the declared
1498
+ `text-overflow:ellipsis` never fired, because the description measured exactly its own text and
1499
+ an ancestor was doing the clipping. No ellipsis reads as "the copy is like that", not as
1500
+ "there is more", which is why this survived so long. The sibling rule on
1501
+ `.pire-launcher-item-text` already had this; it was one level too far in to define the track. */
1502
+ .pire-launcher-item {
1503
+ display: flex;
1504
+ align-items: center;
1505
+ gap: var(--sp-3);
1506
+ width: 100%;
1507
+ min-width: 0;
1508
+ padding: var(--sp-2);
1509
+ border: 0;
1510
+ border-radius: var(--radius-1);
1511
+ background: transparent;
1512
+ color: var(--text-primary);
1513
+ font: var(--type-body);
1514
+ text-align: left;
1515
+ cursor: pointer;
1516
+ transition: var(--transition-control);
1517
+ }
1518
+ .pire-launcher-item[data-hovered] {
1519
+ background: var(--surface-hover);
1520
+ }
1521
+ .pire-launcher-item[data-pressed] {
1522
+ background: var(--surface-active);
1523
+ }
1524
+ .pire-launcher-item[data-selected="true"] {
1525
+ background: var(--surface-selected);
1526
+ color: var(--accent-subtle-fg);
1527
+ }
400
1528
  /* The two densities. `tile` is a destination worth describing; `compact` is a link that only needs
401
1529
  naming, so its glyph steps down to 16px and loses the accent plate rather than shouting equally. */
402
- .pire-launcher-item-icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:32px;height:32px;border-radius:var(--radius-1);background:var(--accent-subtle-bg);color:var(--accent-subtle-fg)}
403
- .pire-launcher-grid[data-variant="compact"] .pire-launcher-item-icon{width:24px;height:24px;background:transparent;color:var(--text-secondary)}
404
- .pire-launcher-item-text{display:flex;flex-direction:column;gap:1px;min-width:0}
405
- .pire-launcher-item-label{font:var(--type-body-strong)}
406
- .pire-launcher-grid[data-variant="compact"] .pire-launcher-item-label{font:var(--type-body)}
407
- .pire-launcher-item-desc{font:var(--type-caption);color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
408
- .pire-launcher-empty{padding:var(--sp-4) var(--sp-2);font:var(--type-body);color:var(--text-secondary);text-align:center}
1530
+ .pire-launcher-item-icon {
1531
+ display: flex;
1532
+ align-items: center;
1533
+ justify-content: center;
1534
+ flex: 0 0 auto;
1535
+ width: 32px;
1536
+ height: 32px;
1537
+ border-radius: var(--radius-1);
1538
+ background: var(--accent-subtle-bg);
1539
+ color: var(--accent-subtle-fg);
1540
+ }
1541
+ .pire-launcher-grid[data-variant="compact"] .pire-launcher-item-icon {
1542
+ width: 24px;
1543
+ height: 24px;
1544
+ background: transparent;
1545
+ color: var(--text-secondary);
1546
+ }
1547
+ .pire-launcher-item-text {
1548
+ display: flex;
1549
+ flex-direction: column;
1550
+ gap: 1px;
1551
+ min-width: 0;
1552
+ }
1553
+ .pire-launcher-item-label {
1554
+ font: var(--type-body-strong);
1555
+ }
1556
+ .pire-launcher-grid[data-variant="compact"] .pire-launcher-item-label {
1557
+ font: var(--type-body);
1558
+ }
1559
+ .pire-launcher-item-desc {
1560
+ font: var(--type-caption);
1561
+ color: var(--text-secondary);
1562
+ white-space: nowrap;
1563
+ overflow: hidden;
1564
+ text-overflow: ellipsis;
1565
+ }
1566
+ .pire-launcher-empty {
1567
+ padding: var(--sp-4) var(--sp-2);
1568
+ font: var(--type-body);
1569
+ color: var(--text-secondary);
1570
+ text-align: center;
1571
+ }
409
1572
 
410
1573
  /* ---- Feedback -------------------------------------------------------- */
411
- .pire-modal-overlay{position:fixed;inset:0;z-index:900;display:flex;align-items:center;justify-content:center;padding:var(--sp-6);background:var(--surface-overlay);animation:pire-fade-in var(--dur-fast) var(--ease-entrance)}
412
- .pire-modal{display:flex;flex-direction:column;width:100%;max-height:calc(100vh - var(--sp-16));background:var(--surface-raised);border-radius:var(--radius-2);box-shadow:var(--shadow-3);animation:pire-dialog-in var(--dur-base) var(--ease-entrance);outline:none}
413
- .pire-modal[data-size="sm"]{max-width:420px}
414
- .pire-modal[data-size="md"]{max-width:640px}
415
- .pire-modal[data-size="lg"]{max-width:960px}
416
- .pire-dialog{display:flex;flex-direction:column;min-height:0;outline:none}
417
- .pire-dialog-head{display:flex;align-items:flex-start;gap:var(--sp-3);padding:var(--sp-4) var(--sp-5);border-bottom:1px solid var(--border-subtle)}
418
- .pire-dialog-title{font:var(--type-h3);letter-spacing:var(--ls-heading)}
419
- .pire-dialog-sub{font:var(--type-caption);color:var(--text-secondary)}
420
- .pire-dialog-body{padding:var(--sp-5);overflow:auto;font:var(--type-body)}
421
- .pire-dialog-foot{display:flex;justify-content:flex-end;gap:var(--sp-2);padding:var(--sp-4) var(--sp-5);border-top:1px solid var(--border-subtle);background:var(--surface-sunken);border-radius:0 0 var(--radius-2) var(--radius-2)}
422
- .pire-sidepanel-overlay{position:fixed;inset:0;z-index:900;display:flex;justify-content:flex-end;background:var(--surface-overlay)}
423
- .pire-sidepanel{display:flex;flex-direction:column;height:100%;max-width:100vw;background:var(--surface-raised);box-shadow:var(--shadow-3);outline:none}
424
- .pire-sidepanel[data-entering]{animation:pire-panel-in var(--dur-moderate) var(--ease-entrance)}
425
- @keyframes pire-panel-in{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
426
- .pire-msg{display:flex;align-items:flex-start;gap:var(--sp-2);padding:var(--sp-3);border:1px solid transparent;border-left-width:3px;border-radius:var(--radius-1);font:var(--type-body)}
427
- .pire-msg[data-kind="info"]{background:var(--status-informative-bg);border-color:var(--status-informative-border);border-left-color:var(--status-informative-fg);color:var(--status-informative-fg)}
428
- .pire-msg[data-kind="success"]{background:var(--status-positive-bg);border-color:var(--status-positive-border);border-left-color:var(--status-positive-fg);color:var(--status-positive-fg)}
429
- .pire-msg[data-kind="warning"]{background:var(--status-critical-bg);border-color:var(--status-critical-border);border-left-color:var(--status-critical-fg);color:var(--status-critical-fg)}
430
- .pire-msg[data-kind="error"]{background:var(--status-negative-bg);border-color:var(--status-negative-border);border-left-color:var(--status-negative-fg);color:var(--status-negative-fg)}
431
- .pire-msg-title{font:var(--type-body-strong)}
432
- .pire-msg-body{color:var(--text-primary)}
433
- .pire-toast{position:fixed;z-index:1000;bottom:var(--sp-6);display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-3) var(--sp-4);border-radius:var(--radius-2);background:var(--gray-90);color:var(--text-inverse);box-shadow:var(--shadow-3);font:var(--type-body);animation:pire-toast-in var(--dur-base) var(--ease-entrance)}
434
- .pire-toast[data-position="bottom-center"]{left:50%;--pire-toast-tx:-50%;transform:translateX(-50%)}
435
- .pire-toast[data-position="bottom-right"]{right:var(--sp-6);--pire-toast-tx:0}
436
- .pire-toast-region{position:fixed;z-index:1000;bottom:var(--sp-6);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:var(--sp-2);outline:none}
437
- .pire-progress{display:flex;flex-direction:column;gap:var(--sp-1)}
438
- .pire-progress-head{display:flex;justify-content:space-between;gap:var(--sp-3);font:var(--type-caption);color:var(--text-secondary)}
439
- .pire-progress-track{height:8px;border-radius:var(--radius-pill);background:var(--gray-20);overflow:hidden}
440
- .pire-progress[data-size="sm"] .pire-progress-track{height:4px}
441
- .pire-progress-fill{height:100%;background:var(--accent-bg);transition:width var(--dur-moderate) var(--ease-standard)}
442
- .pire-progress[data-status="positive"] .pire-progress-fill{background:var(--status-positive-fg)}
443
- .pire-progress[data-status="critical"] .pire-progress-fill{background:var(--status-critical-fg)}
444
- .pire-progress[data-status="negative"] .pire-progress-fill{background:var(--status-negative-fg)}
1574
+ .pire-modal-overlay {
1575
+ position: fixed;
1576
+ inset: 0;
1577
+ z-index: 900;
1578
+ display: flex;
1579
+ align-items: center;
1580
+ justify-content: center;
1581
+ padding: var(--sp-6);
1582
+ background: var(--surface-overlay);
1583
+ animation: pire-fade-in var(--dur-fast) var(--ease-entrance);
1584
+ }
1585
+ .pire-modal {
1586
+ display: flex;
1587
+ flex-direction: column;
1588
+ width: 100%;
1589
+ max-height: calc(100vh - var(--sp-16));
1590
+ background: var(--surface-raised);
1591
+ border-radius: var(--radius-2);
1592
+ box-shadow: var(--shadow-3);
1593
+ animation: pire-dialog-in var(--dur-base) var(--ease-entrance);
1594
+ outline: none;
1595
+ }
1596
+ .pire-modal[data-size="sm"] {
1597
+ max-width: 420px;
1598
+ }
1599
+ .pire-modal[data-size="md"] {
1600
+ max-width: 640px;
1601
+ }
1602
+ .pire-modal[data-size="lg"] {
1603
+ max-width: 960px;
1604
+ }
1605
+ .pire-dialog {
1606
+ display: flex;
1607
+ flex-direction: column;
1608
+ min-height: 0;
1609
+ outline: none;
1610
+ }
1611
+ .pire-dialog-head {
1612
+ display: flex;
1613
+ align-items: flex-start;
1614
+ gap: var(--sp-3);
1615
+ padding: var(--sp-4) var(--sp-5);
1616
+ border-bottom: 1px solid var(--border-subtle);
1617
+ }
1618
+ .pire-dialog-title {
1619
+ font: var(--type-h3);
1620
+ letter-spacing: var(--ls-heading);
1621
+ }
1622
+ .pire-dialog-sub {
1623
+ font: var(--type-caption);
1624
+ color: var(--text-secondary);
1625
+ }
1626
+ .pire-dialog-body {
1627
+ padding: var(--sp-5);
1628
+ overflow: auto;
1629
+ font: var(--type-body);
1630
+ }
1631
+ .pire-dialog-foot {
1632
+ display: flex;
1633
+ justify-content: flex-end;
1634
+ gap: var(--sp-2);
1635
+ padding: var(--sp-4) var(--sp-5);
1636
+ border-top: 1px solid var(--border-subtle);
1637
+ background: var(--surface-sunken);
1638
+ border-radius: 0 0 var(--radius-2) var(--radius-2);
1639
+ }
1640
+ .pire-sidepanel-overlay {
1641
+ position: fixed;
1642
+ inset: 0;
1643
+ z-index: 900;
1644
+ display: flex;
1645
+ justify-content: flex-end;
1646
+ background: var(--surface-overlay);
1647
+ }
1648
+ .pire-sidepanel {
1649
+ display: flex;
1650
+ flex-direction: column;
1651
+ height: 100%;
1652
+ max-width: 100vw;
1653
+ background: var(--surface-raised);
1654
+ box-shadow: var(--shadow-3);
1655
+ outline: none;
1656
+ }
1657
+ .pire-sidepanel[data-entering] {
1658
+ animation: pire-panel-in var(--dur-moderate) var(--ease-entrance);
1659
+ }
1660
+ @keyframes pire-panel-in {
1661
+ from {
1662
+ transform: translateX(24px);
1663
+ opacity: 0;
1664
+ }
1665
+ to {
1666
+ transform: none;
1667
+ opacity: 1;
1668
+ }
1669
+ }
1670
+ .pire-msg {
1671
+ display: flex;
1672
+ align-items: flex-start;
1673
+ gap: var(--sp-2);
1674
+ padding: var(--sp-3);
1675
+ border: 1px solid transparent;
1676
+ border-left-width: 3px;
1677
+ border-radius: var(--radius-1);
1678
+ font: var(--type-body);
1679
+ }
1680
+ .pire-msg[data-kind="info"] {
1681
+ background: var(--status-informative-bg);
1682
+ border-color: var(--status-informative-border);
1683
+ border-left-color: var(--status-informative-fg);
1684
+ color: var(--status-informative-fg);
1685
+ }
1686
+ .pire-msg[data-kind="success"] {
1687
+ background: var(--status-positive-bg);
1688
+ border-color: var(--status-positive-border);
1689
+ border-left-color: var(--status-positive-fg);
1690
+ color: var(--status-positive-fg);
1691
+ }
1692
+ .pire-msg[data-kind="warning"] {
1693
+ background: var(--status-critical-bg);
1694
+ border-color: var(--status-critical-border);
1695
+ border-left-color: var(--status-critical-fg);
1696
+ color: var(--status-critical-fg);
1697
+ }
1698
+ .pire-msg[data-kind="error"] {
1699
+ background: var(--status-negative-bg);
1700
+ border-color: var(--status-negative-border);
1701
+ border-left-color: var(--status-negative-fg);
1702
+ color: var(--status-negative-fg);
1703
+ }
1704
+ .pire-msg-title {
1705
+ font: var(--type-body-strong);
1706
+ }
1707
+ .pire-msg-body {
1708
+ color: var(--text-primary);
1709
+ }
1710
+ .pire-toast {
1711
+ position: fixed;
1712
+ z-index: 1000;
1713
+ bottom: var(--sp-6);
1714
+ display: flex;
1715
+ align-items: center;
1716
+ gap: var(--sp-2);
1717
+ padding: var(--sp-3) var(--sp-4);
1718
+ border-radius: var(--radius-2);
1719
+ background: var(--gray-90);
1720
+ color: var(--text-inverse);
1721
+ box-shadow: var(--shadow-3);
1722
+ font: var(--type-body);
1723
+ animation: pire-toast-in var(--dur-base) var(--ease-entrance);
1724
+ }
1725
+ .pire-toast[data-position="bottom-center"] {
1726
+ left: 50%;
1727
+ --pire-toast-tx: -50%;
1728
+ transform: translateX(-50%);
1729
+ }
1730
+ .pire-toast[data-position="bottom-right"] {
1731
+ right: var(--sp-6);
1732
+ --pire-toast-tx: 0;
1733
+ }
1734
+ .pire-toast-region {
1735
+ position: fixed;
1736
+ z-index: 1000;
1737
+ bottom: var(--sp-6);
1738
+ left: 50%;
1739
+ transform: translateX(-50%);
1740
+ display: flex;
1741
+ flex-direction: column;
1742
+ gap: var(--sp-2);
1743
+ outline: none;
1744
+ }
1745
+ .pire-progress {
1746
+ display: flex;
1747
+ flex-direction: column;
1748
+ gap: var(--sp-1);
1749
+ }
1750
+ .pire-progress-head {
1751
+ display: flex;
1752
+ justify-content: space-between;
1753
+ gap: var(--sp-3);
1754
+ font: var(--type-caption);
1755
+ color: var(--text-secondary);
1756
+ }
1757
+ .pire-progress-track {
1758
+ height: 8px;
1759
+ border-radius: var(--radius-pill);
1760
+ background: var(--gray-20);
1761
+ overflow: hidden;
1762
+ }
1763
+ .pire-progress[data-size="sm"] .pire-progress-track {
1764
+ height: 4px;
1765
+ }
1766
+ .pire-progress-fill {
1767
+ height: 100%;
1768
+ background: var(--accent-bg);
1769
+ transition: width var(--dur-moderate) var(--ease-standard);
1770
+ }
1771
+ .pire-progress[data-status="positive"] .pire-progress-fill {
1772
+ background: var(--status-positive-fg);
1773
+ }
1774
+ .pire-progress[data-status="critical"] .pire-progress-fill {
1775
+ background: var(--status-critical-fg);
1776
+ }
1777
+ .pire-progress[data-status="negative"] .pire-progress-fill {
1778
+ background: var(--status-negative-fg);
1779
+ }
445
1780
  /* A tooltip target takes focus so the tip is reachable by keyboard, and React Aria sets only
446
1781
  `tabindex` on it — no `data-focus-visible`. The ring therefore lives here rather than relying on
447
1782
  base.css's `[tabindex]:focus-visible`, which a consumer skipping the resets would not have. */
448
- .pire-tooltip-target:focus-visible{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset)}
449
- .pire-tooltip{max-width:240px;padding:var(--sp-1) var(--sp-2);border-radius:var(--radius-1);background:var(--gray-90);color:var(--text-inverse);font:var(--type-caption);box-shadow:var(--shadow-2);animation:pire-fade-in var(--dur-fast) var(--ease-entrance)}
1783
+ .pire-tooltip-target:focus-visible {
1784
+ outline: var(--focus-w) solid var(--focus-color);
1785
+ outline-offset: var(--focus-offset);
1786
+ }
1787
+ .pire-tooltip {
1788
+ max-width: 240px;
1789
+ padding: var(--sp-1) var(--sp-2);
1790
+ border-radius: var(--radius-1);
1791
+ background: var(--gray-90);
1792
+ color: var(--text-inverse);
1793
+ font: var(--type-caption);
1794
+ box-shadow: var(--shadow-2);
1795
+ animation: pire-fade-in var(--dur-fast) var(--ease-entrance);
1796
+ }
450
1797
 
451
1798
  /* ---- Skeleton ---------------------------------------------------------- */
452
1799
  /* The sweep is a lightness *difference* between two surface aliases, not a fixed direction:
@@ -455,106 +1802,311 @@
455
1802
  instead of introducing a skeleton-only token pair for both themes to maintain.
456
1803
  The duration is derived, not literal: a shimmer at --dur-slow (400ms) is agitated rather
457
1804
  than patient, and 3x is the slowest step the motion scale can express. */
458
- .pire-skeleton{display:block;width:100%;background-color:var(--surface-active);background-image:linear-gradient(90deg,transparent,var(--surface-hover),transparent);background-size:200% 100%;background-repeat:no-repeat;border-radius:var(--radius-1);animation:pire-skeleton-sweep calc(var(--dur-slow) * 3) var(--ease-standard) infinite}
459
- .pire-skeleton[data-shape="text"]{height:var(--fs-body)}
460
- .pire-skeleton[data-shape="block"]{height:var(--sp-16);border-radius:var(--radius-2)}
461
- .pire-skeleton[data-shape="circle"]{width:var(--sp-8);height:var(--sp-8);border-radius:var(--radius-pill);flex:0 0 auto}
462
- @keyframes pire-skeleton-sweep{from{background-position:150% 0}to{background-position:-50% 0}}
1805
+ .pire-skeleton {
1806
+ display: block;
1807
+ width: 100%;
1808
+ background-color: var(--surface-active);
1809
+ background-image: linear-gradient(90deg, transparent, var(--surface-hover), transparent);
1810
+ background-size: 200% 100%;
1811
+ background-repeat: no-repeat;
1812
+ border-radius: var(--radius-1);
1813
+ animation: pire-skeleton-sweep calc(var(--dur-slow) * 3) var(--ease-standard) infinite;
1814
+ }
1815
+ .pire-skeleton[data-shape="text"] {
1816
+ height: var(--fs-body);
1817
+ }
1818
+ .pire-skeleton[data-shape="block"] {
1819
+ height: var(--sp-16);
1820
+ border-radius: var(--radius-2);
1821
+ }
1822
+ .pire-skeleton[data-shape="circle"] {
1823
+ width: var(--sp-8);
1824
+ height: var(--sp-8);
1825
+ border-radius: var(--radius-pill);
1826
+ flex: 0 0 auto;
1827
+ }
1828
+ @keyframes pire-skeleton-sweep {
1829
+ from {
1830
+ background-position: 150% 0;
1831
+ }
1832
+ to {
1833
+ background-position: -50% 0;
1834
+ }
1835
+ }
463
1836
  /* Geometry copied from .pire-tr / .pire-td, not approximated, so a loading table and a loaded
464
1837
  one are the same height and the rows do not jump when the data lands. */
465
- .pire-skeleton-row{display:flex;align-items:center;height:var(--row-h-regular);border-bottom:1px solid var(--border-subtle)}
466
- .pire-skeleton-row[data-density="condensed"]{height:var(--row-h-condensed)}
467
- .pire-skeleton-row[data-density="comfortable"]{height:var(--row-h-comfortable)}
468
- .pire-skeleton-cell{flex:1 1 0;min-width:0;display:flex;padding:0 var(--sp-3)}
469
- .pire-skeleton-row[data-density="condensed"] .pire-skeleton-cell{padding:0 var(--sp-2)}
470
- .pire-skeleton-cell[data-align="right"]{justify-content:flex-end}
471
- .pire-skeleton-cell[data-align="center"]{justify-content:center}
1838
+ .pire-skeleton-row {
1839
+ display: flex;
1840
+ align-items: center;
1841
+ height: var(--row-h-regular);
1842
+ border-bottom: 1px solid var(--border-subtle);
1843
+ }
1844
+ .pire-skeleton-row[data-density="condensed"] {
1845
+ height: var(--row-h-condensed);
1846
+ }
1847
+ .pire-skeleton-row[data-density="comfortable"] {
1848
+ height: var(--row-h-comfortable);
1849
+ }
1850
+ .pire-skeleton-cell {
1851
+ flex: 1 1 0;
1852
+ min-width: 0;
1853
+ display: flex;
1854
+ padding: 0 var(--sp-3);
1855
+ }
1856
+ .pire-skeleton-row[data-density="condensed"] .pire-skeleton-cell {
1857
+ padding: 0 var(--sp-2);
1858
+ }
1859
+ .pire-skeleton-cell[data-align="right"] {
1860
+ justify-content: flex-end;
1861
+ }
1862
+ .pire-skeleton-cell[data-align="center"] {
1863
+ justify-content: center;
1864
+ }
472
1865
 
473
1866
  /* ---- Data ------------------------------------------------------------ */
474
- .pire-table-wrap{overflow:auto;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-2)}
475
- .pire-table{width:100%;border-collapse:collapse;font:var(--type-body)}
476
- .pire-table thead tr,.pire-table .pire-thead-row{height:var(--row-h-condensed);background:var(--surface-toolbar)}
477
- .pire-table[data-sticky="true"] thead{position:sticky;top:0;z-index:1}
478
- .pire-th{padding:0 var(--sp-3);font:var(--type-label);letter-spacing:var(--ls-caps);text-transform:uppercase;color:var(--text-secondary);border-bottom:1px solid var(--border-default);white-space:nowrap;text-align:left;outline:none}
479
- .pire-th[data-allows-sorting="true"]{cursor:pointer;user-select:none}
480
- .pire-th[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:calc(var(--focus-offset) * -1)}
481
- .pire-th-inner{display:inline-flex;align-items:center;gap:var(--sp-1);width:100%}
482
- .pire-th[data-align="right"] .pire-th-inner{justify-content:flex-end}
483
- .pire-tr{height:var(--row-h-regular);border-bottom:1px solid var(--border-subtle);outline:none}
484
- .pire-table[data-density="condensed"] .pire-tr{height:var(--row-h-condensed)}
485
- .pire-table[data-density="comfortable"] .pire-tr{height:var(--row-h-comfortable)}
486
- .pire-tr[data-hovered]{background:var(--surface-hover)}
487
- .pire-tr[data-selected]{background:var(--surface-selected)}
488
- .pire-tr[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:calc(var(--focus-offset) * -1)}
489
- .pire-tr[data-pressable="true"]{cursor:pointer}
490
- .pire-td{padding:0 var(--sp-3);color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;outline:none}
491
- .pire-td[data-numeric="true"]{font:var(--type-numeric);font-variant-numeric:tabular-nums;text-align:right}
1867
+ .pire-table-wrap {
1868
+ overflow: auto;
1869
+ background: var(--surface-card);
1870
+ border: 1px solid var(--border-subtle);
1871
+ border-radius: var(--radius-2);
1872
+ }
1873
+ .pire-table {
1874
+ width: 100%;
1875
+ border-collapse: collapse;
1876
+ font: var(--type-body);
1877
+ }
1878
+ .pire-table thead tr,
1879
+ .pire-table .pire-thead-row {
1880
+ height: var(--row-h-condensed);
1881
+ background: var(--surface-toolbar);
1882
+ }
1883
+ .pire-table[data-sticky="true"] thead {
1884
+ position: sticky;
1885
+ top: 0;
1886
+ z-index: 1;
1887
+ }
1888
+ .pire-th {
1889
+ padding: 0 var(--sp-3);
1890
+ font: var(--type-label);
1891
+ letter-spacing: var(--ls-caps);
1892
+ text-transform: uppercase;
1893
+ color: var(--text-secondary);
1894
+ border-bottom: 1px solid var(--border-default);
1895
+ white-space: nowrap;
1896
+ text-align: left;
1897
+ outline: none;
1898
+ }
1899
+ .pire-th[data-allows-sorting="true"] {
1900
+ cursor: pointer;
1901
+ user-select: none;
1902
+ }
1903
+ .pire-th[data-focus-visible] {
1904
+ outline: var(--focus-w) solid var(--focus-color);
1905
+ outline-offset: calc(var(--focus-offset) * -1);
1906
+ }
1907
+ .pire-th-inner {
1908
+ display: inline-flex;
1909
+ align-items: center;
1910
+ gap: var(--sp-1);
1911
+ width: 100%;
1912
+ }
1913
+ .pire-th[data-align="right"] .pire-th-inner {
1914
+ justify-content: flex-end;
1915
+ }
1916
+ .pire-tr {
1917
+ height: var(--row-h-regular);
1918
+ border-bottom: 1px solid var(--border-subtle);
1919
+ outline: none;
1920
+ }
1921
+ .pire-table[data-density="condensed"] .pire-tr {
1922
+ height: var(--row-h-condensed);
1923
+ }
1924
+ .pire-table[data-density="comfortable"] .pire-tr {
1925
+ height: var(--row-h-comfortable);
1926
+ }
1927
+ .pire-tr[data-hovered] {
1928
+ background: var(--surface-hover);
1929
+ }
1930
+ .pire-tr[data-selected] {
1931
+ background: var(--surface-selected);
1932
+ }
1933
+ .pire-tr[data-focus-visible] {
1934
+ outline: var(--focus-w) solid var(--focus-color);
1935
+ outline-offset: calc(var(--focus-offset) * -1);
1936
+ }
1937
+ .pire-tr[data-pressable="true"] {
1938
+ cursor: pointer;
1939
+ }
1940
+ .pire-td {
1941
+ padding: 0 var(--sp-3);
1942
+ color: var(--text-primary);
1943
+ white-space: nowrap;
1944
+ overflow: hidden;
1945
+ text-overflow: ellipsis;
1946
+ outline: none;
1947
+ }
1948
+ .pire-td[data-numeric="true"] {
1949
+ font: var(--type-numeric);
1950
+ font-variant-numeric: tabular-nums;
1951
+ text-align: right;
1952
+ }
492
1953
  /* Cell tone. The state belongs to this cell's value, not to the row — a matrix has thirty-four
493
1954
  branches per product and usually only one of them is empty. Colour is never the only carrier:
494
1955
  the component's JSDoc says to pair it with a figure or a label, because a tint alone is a value
495
1956
  state nobody using a screen reader ever learns about. */
496
- .pire-td[data-tone="positive"]{background:var(--status-positive-bg);color:var(--status-positive-fg)}
497
- .pire-td[data-tone="critical"]{background:var(--status-critical-bg);color:var(--status-critical-fg)}
498
- .pire-td[data-tone="negative"]{background:var(--status-negative-bg);color:var(--status-negative-fg)}
499
- .pire-td[data-tone="informative"]{background:var(--status-informative-bg);color:var(--status-informative-fg)}
500
- .pire-td[data-tone="neutral"]{background:var(--status-neutral-bg);color:var(--status-neutral-fg)}
1957
+ .pire-td[data-tone="positive"] {
1958
+ background: var(--status-positive-bg);
1959
+ color: var(--status-positive-fg);
1960
+ }
1961
+ .pire-td[data-tone="critical"] {
1962
+ background: var(--status-critical-bg);
1963
+ color: var(--status-critical-fg);
1964
+ }
1965
+ .pire-td[data-tone="negative"] {
1966
+ background: var(--status-negative-bg);
1967
+ color: var(--status-negative-fg);
1968
+ }
1969
+ .pire-td[data-tone="informative"] {
1970
+ background: var(--status-informative-bg);
1971
+ color: var(--status-informative-fg);
1972
+ }
1973
+ .pire-td[data-tone="neutral"] {
1974
+ background: var(--status-neutral-bg);
1975
+ color: var(--status-neutral-fg);
1976
+ }
501
1977
  /* Density overrides sit after the .pire-th/.pire-td bases they override, so the cascade reads
502
1978
  top-to-bottom in source order rather than relying on specificity alone. */
503
- .pire-table[data-density="condensed"] .pire-th,.pire-table[data-density="condensed"] .pire-td{padding:0 var(--sp-2)}
504
- .pire-table-empty{padding:var(--sp-10);text-align:center;color:var(--text-secondary)}
1979
+ .pire-table[data-density="condensed"] .pire-th,
1980
+ .pire-table[data-density="condensed"] .pire-td {
1981
+ padding: 0 var(--sp-2);
1982
+ }
1983
+ .pire-table-empty {
1984
+ padding: var(--sp-10);
1985
+ text-align: center;
1986
+ color: var(--text-secondary);
1987
+ }
505
1988
  /* A disabled row is present for context but cannot be acted on. It recedes rather than
506
1989
  disappearing, and drops the pointer cue so the row does not look pressable. */
507
- .pire-tr[data-disabled]{color:var(--text-disabled);cursor:default}
508
- .pire-tr[data-disabled] .pire-td{color:var(--text-disabled)}
509
- .pire-tr[data-disabled][data-hovered]{background:transparent}
1990
+ .pire-tr[data-disabled] {
1991
+ color: var(--text-disabled);
1992
+ cursor: default;
1993
+ }
1994
+ .pire-tr[data-disabled] .pire-td {
1995
+ color: var(--text-disabled);
1996
+ }
1997
+ .pire-tr[data-disabled][data-hovered] {
1998
+ background: transparent;
1999
+ }
510
2000
  /* Detail rows sit under their record and read as part of it: sunken, no bottom rule between the
511
2001
  two, and free of the fixed row height since the content decides how tall they are. */
512
- .pire-tr-expanded{height:auto;background:var(--surface-sunken);border-bottom:1px solid var(--border-subtle)}
513
- .pire-tr-expanded[data-hovered]{background:var(--surface-sunken)}
514
- .pire-td-expanded{padding:var(--sp-3);color:var(--text-primary);white-space:normal;outline:none}
2002
+ .pire-tr-expanded {
2003
+ height: auto;
2004
+ background: var(--surface-sunken);
2005
+ border-bottom: 1px solid var(--border-subtle);
2006
+ }
2007
+ .pire-tr-expanded[data-hovered] {
2008
+ background: var(--surface-sunken);
2009
+ }
2010
+ .pire-td-expanded {
2011
+ padding: var(--sp-3);
2012
+ color: var(--text-primary);
2013
+ white-space: normal;
2014
+ outline: none;
2015
+ }
515
2016
  /* Totals. `position:sticky` keeps them in view while the body scrolls, which is the whole reason
516
2017
  they are in a <tfoot> rather than under the table. */
517
- .pire-tfoot .pire-tr-footer{height:var(--row-h-regular);background:var(--surface-sunken)}
518
- .pire-tf{position:sticky;bottom:0;padding:0 var(--sp-3);background:var(--surface-sunken);border-top:1px solid var(--border-default);font:var(--type-body-strong);color:var(--text-primary);white-space:nowrap;outline:none}
519
- .pire-tf[data-numeric="true"]{font:var(--type-numeric);font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
520
- .pire-table[data-density="condensed"] .pire-td-expanded,.pire-table[data-density="condensed"] .pire-tf{padding-inline:var(--sp-2)}
2018
+ .pire-tfoot .pire-tr-footer {
2019
+ height: var(--row-h-regular);
2020
+ background: var(--surface-sunken);
2021
+ }
2022
+ .pire-tf {
2023
+ position: sticky;
2024
+ bottom: 0;
2025
+ padding: 0 var(--sp-3);
2026
+ background: var(--surface-sunken);
2027
+ border-top: 1px solid var(--border-default);
2028
+ font: var(--type-body-strong);
2029
+ color: var(--text-primary);
2030
+ white-space: nowrap;
2031
+ outline: none;
2032
+ }
2033
+ .pire-tf[data-numeric="true"] {
2034
+ font: var(--type-numeric);
2035
+ font-weight: 600;
2036
+ font-variant-numeric: tabular-nums;
2037
+ text-align: right;
2038
+ }
2039
+ .pire-table[data-density="condensed"] .pire-td-expanded,
2040
+ .pire-table[data-density="condensed"] .pire-tf {
2041
+ padding-inline: var(--sp-2);
2042
+ }
521
2043
 
522
2044
  /* Frozen leading columns. A pinned matrix must be wider than its scroll container or nothing
523
2045
  scrolls; scoped to pinned tables so the unpinned ones keep today's `width:100%` exactly. */
524
- .pire-table[data-pinned="true"]{width:max-content;min-width:100%}
2046
+ .pire-table[data-pinned="true"] {
2047
+ width: max-content;
2048
+ min-width: 100%;
2049
+ }
525
2050
  /* Sticky cells need `border-collapse: separate`: under the collapsed model a cell borrows the
526
2051
  grid's border rather than owning one, and the border does not travel with the cell when it
527
2052
  sticks. The switch is scoped to pinned tables so the twenty-odd that freeze nothing keep the
528
2053
  model they have — two separator strategies is the price, and this comment is the map. */
529
- .pire-table[data-pinned="true"]{border-collapse:separate;border-spacing:0}
530
- .pire-table[data-pinned="true"] .pire-tr{border-bottom:0}
531
- .pire-table[data-pinned="true"] .pire-td{border-bottom:1px solid var(--border-subtle)}
2054
+ .pire-table[data-pinned="true"] {
2055
+ border-collapse: separate;
2056
+ border-spacing: 0;
2057
+ }
2058
+ .pire-table[data-pinned="true"] .pire-tr {
2059
+ border-bottom: 0;
2060
+ }
2061
+ .pire-table[data-pinned="true"] .pire-td {
2062
+ border-bottom: 1px solid var(--border-subtle);
2063
+ }
532
2064
  /* Same move, for the detail row: `.pire-tr-expanded`'s own border-bottom is a `<tr>` border too,
533
2065
  and separate collapse does not paint it either. `.pire-td-expanded` is the row's only cell
534
2066
  (it spans every column), so it is what carries the rule instead. */
535
- .pire-table[data-pinned="true"] .pire-tr-expanded{border-bottom:0}
536
- .pire-table[data-pinned="true"] .pire-td-expanded{border-bottom:1px solid var(--border-subtle)}
2067
+ .pire-table[data-pinned="true"] .pire-tr-expanded {
2068
+ border-bottom: 0;
2069
+ }
2070
+ .pire-table[data-pinned="true"] .pire-td-expanded {
2071
+ border-bottom: 1px solid var(--border-subtle);
2072
+ }
537
2073
  /* Both axes stick at once, so the order is stated rather than discovered. Pinned body cell 2,
538
2074
  sticky header/footer row 3, pinned header/footer cell 4 — the corner is in both the frozen
539
2075
  column and the sticky row and has to out-rank each of them. */
540
- .pire-table[data-pinned="true"] thead{z-index:3}
541
- .pire-table[data-pinned="true"] .pire-td[data-pinned="true"]{position:sticky;z-index:2}
2076
+ .pire-table[data-pinned="true"] thead {
2077
+ z-index: 3;
2078
+ }
2079
+ .pire-table[data-pinned="true"] .pire-td[data-pinned="true"] {
2080
+ position: sticky;
2081
+ z-index: 2;
2082
+ }
542
2083
  /* The opaque ground a frozen cell needs so the scrolled body does not show through it, split off
543
2084
  from the `position`/`z-index` above and scoped to `:not([data-tone])`. A toned cell keeps the
544
2085
  tint it would have had unpinned, and it does so by this rule not matching rather than by five
545
2086
  `[data-pinned][data-tone="…"]` rules re-stating each status token at higher specificity — which
546
2087
  is one more place every future tone has to be added, and one more rule to lose to. */
547
- .pire-table[data-pinned="true"] .pire-td[data-pinned="true"]:not([data-tone]){background:var(--surface-card)}
2088
+ .pire-table[data-pinned="true"] .pire-td[data-pinned="true"]:not([data-tone]) {
2089
+ background: var(--surface-card);
2090
+ }
548
2091
  /* `overflow:hidden` because a pinned column is held to its declared width: `.pire-td` already
549
2092
  clips and ellipsises, and without the same on the header a long label spills out of its box and
550
2093
  paints over the next frozen column instead of stopping at the freeze line. */
551
- .pire-table[data-pinned="true"] .pire-th[data-pinned="true"]{position:sticky;z-index:4;background:var(--surface-toolbar);overflow:hidden}
2094
+ .pire-table[data-pinned="true"] .pire-th[data-pinned="true"] {
2095
+ position: sticky;
2096
+ z-index: 4;
2097
+ background: var(--surface-toolbar);
2098
+ overflow: hidden;
2099
+ }
552
2100
  /* `.pire-tf` is already `position:sticky;bottom:0`. A pinned footer cell adds `left`, so it sticks
553
2101
  on both axes and takes the corner rung for the same reason the header corner does. */
554
- .pire-table[data-pinned="true"] .pire-tf[data-pinned="true"]{z-index:4}
2102
+ .pire-table[data-pinned="true"] .pire-tf[data-pinned="true"] {
2103
+ z-index: 4;
2104
+ }
555
2105
  /* The frozen edge, as a shadow rather than a border: a border on a sticky cell is what the
556
2106
  separate model is here to avoid, and a shadow paints over the scrolled content underneath. */
557
- .pire-table[data-pinned="true"] [data-pinned-last="true"]{box-shadow:1px 0 0 0 var(--border-default)}
2107
+ .pire-table[data-pinned="true"] [data-pinned-last="true"] {
2108
+ box-shadow: 1px 0 0 0 var(--border-default);
2109
+ }
558
2110
  /* A selected or hovered row must repaint its frozen cells too, or the row highlight stops dead at
559
2111
  the freeze line and the pinned columns read as a separate, unselected table. Excludes a toned
560
2112
  cell (`:not([data-tone])`): an unpinned toned cell already keeps its tint through hover and
@@ -569,378 +2121,1462 @@
569
2121
  that is both, and writing hover last made the frozen cells go grey while the branch columns
570
2122
  stayed blue: one row painted as two half-selected tables, which is the exact split these rules
571
2123
  exist to prevent. */
572
- .pire-table[data-pinned="true"] .pire-tr[data-hovered] .pire-td[data-pinned="true"]:not([data-tone]){background:var(--surface-hover)}
573
- .pire-table[data-pinned="true"] .pire-tr[data-selected] .pire-td[data-pinned="true"]:not([data-tone]){background:var(--surface-selected)}
574
-
575
- .pire-kpi{display:flex;flex-direction:column;gap:var(--sp-1);padding:var(--sp-4);background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-2);text-align:left;min-width:0;transition:var(--transition-surface)}
576
- .pire-kpi[data-pressable="true"]{cursor:pointer}
577
- .pire-kpi[data-hovered]{box-shadow:var(--shadow-2)}
578
- .pire-kpi-label{display:flex;align-items:center;gap:var(--sp-2);font:var(--type-label);color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
579
- .pire-kpi-value{font:var(--fw-semibold) var(--fs-display)/var(--lh-tight) var(--font-mono);letter-spacing:var(--ls-numeric);font-variant-numeric:tabular-nums;color:var(--text-numeric)}
580
- .pire-kpi[data-status="positive"] .pire-kpi-value{color:var(--status-positive-fg)}
581
- .pire-kpi[data-status="critical"] .pire-kpi-value{color:var(--status-critical-fg)}
582
- .pire-kpi[data-status="negative"] .pire-kpi-value{color:var(--status-negative-fg)}
583
- .pire-kpi-unit{font:var(--type-caption);color:var(--text-secondary);margin-left:var(--sp-1)}
584
- .pire-kpi-delta{display:inline-flex;align-items:center;gap:var(--sp-1);font:var(--type-caption)}
585
- .pire-kpi-delta[data-tone="positive"]{color:var(--status-positive-fg)}
586
- .pire-kpi-delta[data-tone="negative"]{color:var(--status-negative-fg)}
587
- .pire-kpi-delta[data-tone="neutral"]{color:var(--text-secondary)}
588
- .pire-kpi-foot{font:var(--type-caption);color:var(--text-tertiary)}
589
- .pire-objheader{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-4) var(--page-pad-x);background:var(--surface-card);border-bottom:1px solid var(--border-subtle)}
590
- .pire-objheader-row{display:flex;align-items:flex-start;gap:var(--sp-3);flex-wrap:wrap}
591
- .pire-objheader-title{font:var(--type-h1);letter-spacing:var(--ls-heading)}
592
- .pire-objheader-sub{display:flex;align-items:center;gap:var(--sp-2);font:var(--type-caption);color:var(--text-secondary)}
593
- .pire-objheader-id{font:var(--type-code);color:var(--text-secondary)}
594
- .pire-objheader-actions{margin-left:auto;display:flex;gap:var(--sp-2)}
595
- .pire-facts{display:flex;flex-wrap:wrap;gap:var(--sp-6)}
596
- .pire-fact-label{font:var(--type-label);letter-spacing:var(--ls-caps);text-transform:uppercase;color:var(--text-tertiary)}
597
- .pire-fact-value{font:var(--type-body-strong)}
598
- .pire-fact-value[data-numeric="true"]{font:var(--type-numeric);font-variant-numeric:tabular-nums}
599
- .pire-filterbar{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-3) var(--sp-4);background:var(--surface-toolbar);border:1px solid var(--border-subtle);border-radius:var(--radius-2)}
600
- .pire-filterbar-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--sp-3)}
601
- .pire-filterbar-foot{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
602
- .pire-filterbar-result{font:var(--type-caption);color:var(--text-secondary)}
603
- .pire-filterbar-actions{margin-left:auto;display:flex;gap:var(--sp-2)}
2124
+ .pire-table[data-pinned="true"] .pire-tr[data-hovered] .pire-td[data-pinned="true"]:not([data-tone]) {
2125
+ background: var(--surface-hover);
2126
+ }
2127
+ .pire-table[data-pinned="true"] .pire-tr[data-selected] .pire-td[data-pinned="true"]:not([data-tone]) {
2128
+ background: var(--surface-selected);
2129
+ }
2130
+
2131
+ .pire-kpi {
2132
+ display: flex;
2133
+ flex-direction: column;
2134
+ gap: var(--sp-1);
2135
+ padding: var(--sp-4);
2136
+ background: var(--surface-card);
2137
+ border: 1px solid var(--border-subtle);
2138
+ border-radius: var(--radius-2);
2139
+ text-align: left;
2140
+ min-width: 0;
2141
+ transition: var(--transition-surface);
2142
+ }
2143
+ .pire-kpi[data-pressable="true"] {
2144
+ cursor: pointer;
2145
+ }
2146
+ .pire-kpi[data-hovered] {
2147
+ box-shadow: var(--shadow-2);
2148
+ }
2149
+ .pire-kpi-label {
2150
+ display: flex;
2151
+ align-items: center;
2152
+ gap: var(--sp-2);
2153
+ font: var(--type-label);
2154
+ color: var(--text-secondary);
2155
+ white-space: nowrap;
2156
+ overflow: hidden;
2157
+ text-overflow: ellipsis;
2158
+ }
2159
+ .pire-kpi-value {
2160
+ font: var(--fw-semibold) var(--fs-display) / var(--lh-tight) var(--font-mono);
2161
+ letter-spacing: var(--ls-numeric);
2162
+ font-variant-numeric: tabular-nums;
2163
+ color: var(--text-numeric);
2164
+ }
2165
+ .pire-kpi[data-status="positive"] .pire-kpi-value {
2166
+ color: var(--status-positive-fg);
2167
+ }
2168
+ .pire-kpi[data-status="critical"] .pire-kpi-value {
2169
+ color: var(--status-critical-fg);
2170
+ }
2171
+ .pire-kpi[data-status="negative"] .pire-kpi-value {
2172
+ color: var(--status-negative-fg);
2173
+ }
2174
+ .pire-kpi-unit {
2175
+ font: var(--type-caption);
2176
+ color: var(--text-secondary);
2177
+ margin-left: var(--sp-1);
2178
+ }
2179
+ .pire-kpi-delta {
2180
+ display: inline-flex;
2181
+ align-items: center;
2182
+ gap: var(--sp-1);
2183
+ font: var(--type-caption);
2184
+ }
2185
+ .pire-kpi-delta[data-tone="positive"] {
2186
+ color: var(--status-positive-fg);
2187
+ }
2188
+ .pire-kpi-delta[data-tone="negative"] {
2189
+ color: var(--status-negative-fg);
2190
+ }
2191
+ .pire-kpi-delta[data-tone="neutral"] {
2192
+ color: var(--text-secondary);
2193
+ }
2194
+ .pire-kpi-foot {
2195
+ font: var(--type-caption);
2196
+ color: var(--text-tertiary);
2197
+ }
2198
+ .pire-objheader {
2199
+ display: flex;
2200
+ flex-direction: column;
2201
+ gap: var(--sp-3);
2202
+ padding: var(--sp-4) var(--page-pad-x);
2203
+ background: var(--surface-card);
2204
+ border-bottom: 1px solid var(--border-subtle);
2205
+ }
2206
+ .pire-objheader-row {
2207
+ display: flex;
2208
+ align-items: flex-start;
2209
+ gap: var(--sp-3);
2210
+ flex-wrap: wrap;
2211
+ }
2212
+ .pire-objheader-title {
2213
+ font: var(--type-h1);
2214
+ letter-spacing: var(--ls-heading);
2215
+ }
2216
+ .pire-objheader-sub {
2217
+ display: flex;
2218
+ align-items: center;
2219
+ gap: var(--sp-2);
2220
+ font: var(--type-caption);
2221
+ color: var(--text-secondary);
2222
+ }
2223
+ .pire-objheader-id {
2224
+ font: var(--type-code);
2225
+ color: var(--text-secondary);
2226
+ }
2227
+ .pire-objheader-actions {
2228
+ margin-left: auto;
2229
+ display: flex;
2230
+ gap: var(--sp-2);
2231
+ }
2232
+ .pire-facts {
2233
+ display: flex;
2234
+ flex-wrap: wrap;
2235
+ gap: var(--sp-6);
2236
+ }
2237
+ .pire-fact-label {
2238
+ font: var(--type-label);
2239
+ letter-spacing: var(--ls-caps);
2240
+ text-transform: uppercase;
2241
+ color: var(--text-tertiary);
2242
+ }
2243
+ .pire-fact-value {
2244
+ font: var(--type-body-strong);
2245
+ }
2246
+ .pire-fact-value[data-numeric="true"] {
2247
+ font: var(--type-numeric);
2248
+ font-variant-numeric: tabular-nums;
2249
+ }
2250
+ .pire-filterbar {
2251
+ display: flex;
2252
+ flex-direction: column;
2253
+ gap: var(--sp-3);
2254
+ padding: var(--sp-3) var(--sp-4);
2255
+ background: var(--surface-toolbar);
2256
+ border: 1px solid var(--border-subtle);
2257
+ border-radius: var(--radius-2);
2258
+ }
2259
+ .pire-filterbar-controls {
2260
+ display: flex;
2261
+ flex-wrap: wrap;
2262
+ align-items: flex-end;
2263
+ gap: var(--sp-3);
2264
+ }
2265
+ .pire-filterbar-foot {
2266
+ display: flex;
2267
+ align-items: center;
2268
+ gap: var(--sp-2);
2269
+ flex-wrap: wrap;
2270
+ }
2271
+ .pire-filterbar-result {
2272
+ font: var(--type-caption);
2273
+ color: var(--text-secondary);
2274
+ }
2275
+ .pire-filterbar-actions {
2276
+ margin-left: auto;
2277
+ display: flex;
2278
+ gap: var(--sp-2);
2279
+ }
604
2280
 
605
2281
  /* ---- EmptyState ------------------------------------------------------ */
606
- .pire-empty{display:flex;flex-direction:column;align-items:center;gap:var(--sp-3);padding:var(--sp-16) var(--sp-6);text-align:center;color:var(--text-secondary)}
607
- .pire-empty[data-compact="true"]{padding:var(--sp-8) var(--sp-4)}
608
- .pire-empty-icon{color:var(--text-tertiary)}
609
- .pire-empty-title{font:var(--type-h4);color:var(--text-primary)}
610
- .pire-empty-body{max-width:44ch;font:var(--type-body)}
2282
+ .pire-empty {
2283
+ display: flex;
2284
+ flex-direction: column;
2285
+ align-items: center;
2286
+ gap: var(--sp-3);
2287
+ padding: var(--sp-16) var(--sp-6);
2288
+ text-align: center;
2289
+ color: var(--text-secondary);
2290
+ }
2291
+ .pire-empty[data-compact="true"] {
2292
+ padding: var(--sp-8) var(--sp-4);
2293
+ }
2294
+ .pire-empty-icon {
2295
+ color: var(--text-tertiary);
2296
+ }
2297
+ .pire-empty-title {
2298
+ font: var(--type-h4);
2299
+ color: var(--text-primary);
2300
+ }
2301
+ .pire-empty-body {
2302
+ max-width: 44ch;
2303
+ font: var(--type-body);
2304
+ }
611
2305
 
612
2306
  /* ---- Avatar ----------------------------------------------------------- */
613
- .pire-avatar[data-size="lg"]{width:40px;height:40px;font:var(--type-body-strong)}
614
- .pire-avatar[data-size="sm"]{width:24px;height:24px;font:var(--type-micro,var(--type-label))}
2307
+ .pire-avatar[data-size="lg"] {
2308
+ width: 40px;
2309
+ height: 40px;
2310
+ font: var(--type-body-strong);
2311
+ }
2312
+ .pire-avatar[data-size="sm"] {
2313
+ width: 24px;
2314
+ height: 24px;
2315
+ font: var(--type-micro, var(--type-label));
2316
+ }
615
2317
 
616
2318
  /* ---- SegmentedControl -------------------------------------------------- */
617
- .pire-segmented{display:inline-flex;padding:2px;gap:2px;background:var(--surface-sunken);border:1px solid var(--border-default);border-radius:var(--radius-1)}
618
- .pire-segmented-item{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-2);height:28px;padding:0 var(--sp-3);border:0;border-radius:var(--radius-1);background:transparent;color:var(--text-secondary);font:var(--type-label);cursor:pointer;transition:var(--transition-control)}
619
- .pire-segmented[data-size="md"] .pire-segmented-item{height:34px;font:var(--type-body)}
620
- .pire-segmented-item[data-hovered]{background:var(--surface-hover);color:var(--text-primary)}
621
- .pire-segmented-item[data-selected]{background:var(--surface-card);color:var(--accent-subtle-fg);box-shadow:var(--shadow-1)}
622
- .pire-segmented-item[data-disabled]{color:var(--text-disabled);cursor:not-allowed}
2319
+ .pire-segmented {
2320
+ display: inline-flex;
2321
+ padding: 2px;
2322
+ gap: 2px;
2323
+ background: var(--surface-sunken);
2324
+ border: 1px solid var(--border-default);
2325
+ border-radius: var(--radius-1);
2326
+ }
2327
+ .pire-segmented-item {
2328
+ display: inline-flex;
2329
+ align-items: center;
2330
+ justify-content: center;
2331
+ gap: var(--sp-2);
2332
+ height: 28px;
2333
+ padding: 0 var(--sp-3);
2334
+ border: 0;
2335
+ border-radius: var(--radius-1);
2336
+ background: transparent;
2337
+ color: var(--text-secondary);
2338
+ font: var(--type-label);
2339
+ cursor: pointer;
2340
+ transition: var(--transition-control);
2341
+ }
2342
+ .pire-segmented[data-size="md"] .pire-segmented-item {
2343
+ height: 34px;
2344
+ font: var(--type-body);
2345
+ }
2346
+ .pire-segmented-item[data-hovered] {
2347
+ background: var(--surface-hover);
2348
+ color: var(--text-primary);
2349
+ }
2350
+ .pire-segmented-item[data-selected] {
2351
+ background: var(--surface-card);
2352
+ color: var(--accent-subtle-fg);
2353
+ box-shadow: var(--shadow-1);
2354
+ }
2355
+ .pire-segmented-item[data-disabled] {
2356
+ color: var(--text-disabled);
2357
+ cursor: not-allowed;
2358
+ }
623
2359
 
624
2360
  /* ---- DescriptionList --------------------------------------------------- */
625
- .pire-dl{display:flex;flex-direction:column;gap:var(--sp-2);margin:0}
626
- .pire-dl[data-layout="grid"]{display:grid;grid-template-columns:repeat(var(--pire-dl-cols,3),minmax(0,1fr));gap:var(--sp-3) var(--sp-4)}
627
- .pire-dl-row{display:flex;justify-content:space-between;gap:var(--sp-3);align-items:baseline}
628
- .pire-dl[data-layout="grid"] .pire-dl-row{display:block}
629
- .pire-dl-term{font:var(--type-caption);color:var(--text-secondary);display:inline-flex;align-items:center;gap:var(--sp-1)}
630
- .pire-dl[data-layout="grid"] .pire-dl-term{font:var(--type-label);letter-spacing:var(--ls-caps);text-transform:uppercase;color:var(--text-tertiary)}
631
- .pire-dl-value{margin:0;font:var(--type-body)}
632
- .pire-dl-value[data-numeric="true"]{font:var(--type-numeric);font-variant-numeric:tabular-nums}
633
- .pire-dl-row[data-emphasis="true"]{border-top:1px solid var(--border-default);padding-top:var(--sp-2)}
634
- .pire-dl-row[data-emphasis="true"] .pire-dl-term{font:var(--type-body-strong);color:var(--text-primary)}
635
- .pire-dl-row[data-emphasis="true"] .pire-dl-value{font:var(--fw-semibold) var(--fs-h4)/1.3 var(--font-sans)}
636
- .pire-dl-row[data-emphasis="true"] .pire-dl-value[data-numeric="true"]{font:var(--fw-semibold) var(--fs-h4)/1.3 var(--font-mono)}
2361
+ .pire-dl {
2362
+ display: flex;
2363
+ flex-direction: column;
2364
+ gap: var(--sp-2);
2365
+ margin: 0;
2366
+ }
2367
+ .pire-dl[data-layout="grid"] {
2368
+ display: grid;
2369
+ grid-template-columns: repeat(var(--pire-dl-cols, 3), minmax(0, 1fr));
2370
+ gap: var(--sp-3) var(--sp-4);
2371
+ }
2372
+ .pire-dl-row {
2373
+ display: flex;
2374
+ justify-content: space-between;
2375
+ gap: var(--sp-3);
2376
+ align-items: baseline;
2377
+ }
2378
+ .pire-dl[data-layout="grid"] .pire-dl-row {
2379
+ display: block;
2380
+ }
2381
+ .pire-dl-term {
2382
+ font: var(--type-caption);
2383
+ color: var(--text-secondary);
2384
+ display: inline-flex;
2385
+ align-items: center;
2386
+ gap: var(--sp-1);
2387
+ }
2388
+ .pire-dl[data-layout="grid"] .pire-dl-term {
2389
+ font: var(--type-label);
2390
+ letter-spacing: var(--ls-caps);
2391
+ text-transform: uppercase;
2392
+ color: var(--text-tertiary);
2393
+ }
2394
+ .pire-dl-value {
2395
+ margin: 0;
2396
+ font: var(--type-body);
2397
+ }
2398
+ .pire-dl-value[data-numeric="true"] {
2399
+ font: var(--type-numeric);
2400
+ font-variant-numeric: tabular-nums;
2401
+ }
2402
+ .pire-dl-row[data-emphasis="true"] {
2403
+ border-top: 1px solid var(--border-default);
2404
+ padding-top: var(--sp-2);
2405
+ }
2406
+ .pire-dl-row[data-emphasis="true"] .pire-dl-term {
2407
+ font: var(--type-body-strong);
2408
+ color: var(--text-primary);
2409
+ }
2410
+ .pire-dl-row[data-emphasis="true"] .pire-dl-value {
2411
+ font: var(--fw-semibold) var(--fs-h4) / 1.3 var(--font-sans);
2412
+ }
2413
+ .pire-dl-row[data-emphasis="true"] .pire-dl-value[data-numeric="true"] {
2414
+ font: var(--fw-semibold) var(--fs-h4) / 1.3 var(--font-mono);
2415
+ }
637
2416
 
638
2417
  /* ---- Timeline ---------------------------------------------------------- */
639
- .pire-timeline{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
640
- .pire-timeline-item{display:flex;gap:var(--sp-4);align-items:baseline;padding:var(--sp-2) 0;border-bottom:1px solid var(--border-subtle)}
641
- .pire-timeline-item:last-child{border-bottom:0}
642
- .pire-timeline-time{flex:0 0 auto;width:132px;font:var(--type-code);color:var(--text-secondary)}
643
- .pire-timeline-text{flex:1;font:var(--type-body)}
644
- .pire-timeline-actor{font:var(--type-caption);color:var(--text-secondary)}
2418
+ .pire-timeline {
2419
+ display: flex;
2420
+ flex-direction: column;
2421
+ margin: 0;
2422
+ padding: 0;
2423
+ list-style: none;
2424
+ }
2425
+ .pire-timeline-item {
2426
+ display: flex;
2427
+ gap: var(--sp-4);
2428
+ align-items: baseline;
2429
+ padding: var(--sp-2) 0;
2430
+ border-bottom: 1px solid var(--border-subtle);
2431
+ }
2432
+ .pire-timeline-item:last-child {
2433
+ border-bottom: 0;
2434
+ }
2435
+ .pire-timeline-time {
2436
+ flex: 0 0 auto;
2437
+ width: 132px;
2438
+ font: var(--type-code);
2439
+ color: var(--text-secondary);
2440
+ }
2441
+ .pire-timeline-text {
2442
+ flex: 1;
2443
+ font: var(--type-body);
2444
+ }
2445
+ .pire-timeline-actor {
2446
+ font: var(--type-caption);
2447
+ color: var(--text-secondary);
2448
+ }
645
2449
 
646
2450
  /* ---- LinkList ---------------------------------------------------------- */
647
- .pire-linklist{display:flex;flex-direction:column}
2451
+ .pire-linklist {
2452
+ display: flex;
2453
+ flex-direction: column;
2454
+ }
648
2455
  /* The role="listitem" wrapper that satisfies aria-required-children. It lays out rather than
649
2456
  disappearing: display:contents would drop it from the accessibility tree in some engines, which
650
2457
  is the one thing it exists to be in. */
651
- .pire-linklist-row{display:flex}
652
- .pire-linklist-item{display:flex;align-items:center;gap:var(--sp-2);width:100%;height:var(--row-h-regular);padding:0 var(--sp-1);border:0;border-bottom:1px solid var(--border-subtle);background:transparent;text-align:left;cursor:pointer;color:var(--text-primary);transition:var(--transition-control)}
2458
+ .pire-linklist-row {
2459
+ display: flex;
2460
+ }
2461
+ .pire-linklist-item {
2462
+ display: flex;
2463
+ align-items: center;
2464
+ gap: var(--sp-2);
2465
+ width: 100%;
2466
+ height: var(--row-h-regular);
2467
+ padding: 0 var(--sp-1);
2468
+ border: 0;
2469
+ border-bottom: 1px solid var(--border-subtle);
2470
+ background: transparent;
2471
+ text-align: left;
2472
+ cursor: pointer;
2473
+ color: var(--text-primary);
2474
+ transition: var(--transition-control);
2475
+ }
653
2476
  /* The button is no longer its parent's last child — the wrapper is. */
654
- .pire-linklist-row:last-child .pire-linklist-item{border-bottom:0}
655
- .pire-linklist-item[data-hovered]{background:var(--surface-hover)}
656
- .pire-linklist-key{font:var(--type-code)}
657
- .pire-linklist-text{flex:1;min-width:0;font:var(--type-caption);color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
2477
+ .pire-linklist-row:last-child .pire-linklist-item {
2478
+ border-bottom: 0;
2479
+ }
2480
+ .pire-linklist-item[data-hovered] {
2481
+ background: var(--surface-hover);
2482
+ }
2483
+ .pire-linklist-key {
2484
+ font: var(--type-code);
2485
+ }
2486
+ .pire-linklist-text {
2487
+ flex: 1;
2488
+ min-width: 0;
2489
+ font: var(--type-caption);
2490
+ color: var(--text-secondary);
2491
+ overflow: hidden;
2492
+ text-overflow: ellipsis;
2493
+ white-space: nowrap;
2494
+ }
658
2495
  /* emphasis="text": the name is what gets scanned and the code qualifies it — a supplier or
659
2496
  customer list. Only the treatment moves; the slots keep their meanings, and the component
660
2497
  reorders the markup so the reading order matches. The name takes over the truncation, because
661
2498
  whichever slot is primary is the one that should absorb a narrow row. */
662
- .pire-linklist[data-emphasis="text"] .pire-linklist-text{flex:1;font:var(--type-body);color:var(--text-primary)}
663
- .pire-linklist[data-emphasis="text"] .pire-linklist-key{flex:0 0 auto;font:var(--type-caption);color:var(--text-secondary)}
2499
+ .pire-linklist[data-emphasis="text"] .pire-linklist-text {
2500
+ flex: 1;
2501
+ font: var(--type-body);
2502
+ color: var(--text-primary);
2503
+ }
2504
+ .pire-linklist[data-emphasis="text"] .pire-linklist-key {
2505
+ flex: 0 0 auto;
2506
+ font: var(--type-caption);
2507
+ color: var(--text-secondary);
2508
+ }
664
2509
 
665
2510
  /* ---- PageHeader / SectionHeader ---------------------------------------- */
666
- .pire-pageheader{display:flex;align-items:flex-start;gap:var(--sp-4);flex-wrap:wrap}
667
- .pire-pageheader-title{font:var(--type-h1);letter-spacing:var(--ls-heading);margin:0}
668
- .pire-pageheader-sub{margin:var(--sp-1) 0 0;font:var(--type-body);color:var(--text-secondary);max-width:80ch}
669
- .pire-pageheader-actions{margin-left:auto;display:flex;gap:var(--sp-2)}
670
- .pire-sectionhead{display:flex;align-items:baseline;gap:var(--sp-3)}
671
- .pire-sectionhead-actions{margin-left:auto;display:flex;align-items:baseline;gap:var(--sp-2)}
2511
+ .pire-pageheader {
2512
+ display: flex;
2513
+ align-items: flex-start;
2514
+ gap: var(--sp-4);
2515
+ flex-wrap: wrap;
2516
+ }
2517
+ .pire-pageheader-title {
2518
+ font: var(--type-h1);
2519
+ letter-spacing: var(--ls-heading);
2520
+ margin: 0;
2521
+ }
2522
+ .pire-pageheader-sub {
2523
+ margin: var(--sp-1) 0 0;
2524
+ font: var(--type-body);
2525
+ color: var(--text-secondary);
2526
+ max-width: 80ch;
2527
+ }
2528
+ .pire-pageheader-actions {
2529
+ margin-left: auto;
2530
+ display: flex;
2531
+ gap: var(--sp-2);
2532
+ }
2533
+ .pire-sectionhead {
2534
+ display: flex;
2535
+ align-items: baseline;
2536
+ gap: var(--sp-3);
2537
+ }
2538
+ .pire-sectionhead-actions {
2539
+ margin-left: auto;
2540
+ display: flex;
2541
+ align-items: baseline;
2542
+ gap: var(--sp-2);
2543
+ }
672
2544
 
673
2545
  /* ---- SelectionBar / FooterBar ------------------------------------------ */
674
- .pire-selectionbar{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-2) var(--sp-3);background:var(--surface-selected);border:1px solid var(--status-informative-border);border-radius:var(--radius-1);font:var(--type-body)}
675
- .pire-selectionbar-count{font:var(--type-body-strong);color:var(--accent-subtle-fg)}
676
- .pire-selectionbar-actions{margin-left:auto;display:flex;gap:var(--sp-2)}
677
- .pire-footerbar{position:sticky;bottom:0;z-index:50;display:flex;align-items:center;gap:var(--sp-3);height:var(--control-h-lg);padding:0 var(--page-pad-x);background:var(--surface-card);border-top:1px solid var(--border-subtle);box-shadow:0 -1px 2px rgba(13,19,25,.08)}
678
- .pire-footerbar-actions{margin-left:auto;display:flex;gap:var(--sp-2)}
679
- .pire-footerbar-note{font:var(--type-caption);color:var(--text-secondary)}
2546
+ .pire-selectionbar {
2547
+ display: flex;
2548
+ align-items: center;
2549
+ gap: var(--sp-3);
2550
+ padding: var(--sp-2) var(--sp-3);
2551
+ background: var(--surface-selected);
2552
+ border: 1px solid var(--status-informative-border);
2553
+ border-radius: var(--radius-1);
2554
+ font: var(--type-body);
2555
+ }
2556
+ .pire-selectionbar-count {
2557
+ font: var(--type-body-strong);
2558
+ color: var(--accent-subtle-fg);
2559
+ }
2560
+ .pire-selectionbar-actions {
2561
+ margin-left: auto;
2562
+ display: flex;
2563
+ gap: var(--sp-2);
2564
+ }
2565
+ .pire-footerbar {
2566
+ position: sticky;
2567
+ bottom: 0;
2568
+ z-index: 50;
2569
+ display: flex;
2570
+ align-items: center;
2571
+ gap: var(--sp-3);
2572
+ height: var(--control-h-lg);
2573
+ padding: 0 var(--page-pad-x);
2574
+ background: var(--surface-card);
2575
+ border-top: 1px solid var(--border-subtle);
2576
+ box-shadow: 0 -1px 2px rgba(13, 19, 25, 0.08);
2577
+ }
2578
+ .pire-footerbar-actions {
2579
+ margin-left: auto;
2580
+ display: flex;
2581
+ gap: var(--sp-2);
2582
+ }
2583
+ .pire-footerbar-note {
2584
+ font: var(--type-caption);
2585
+ color: var(--text-secondary);
2586
+ }
680
2587
 
681
2588
  /* ---- NumberField ------------------------------------------------------- */
682
- .pire-stepper{display:flex;flex-direction:column;flex:0 0 auto;margin-right:calc(var(--control-pad-x) * -1 + 2px)}
683
- .pire-stepper-btn{display:flex;align-items:center;justify-content:center;width:24px;height:14px;border:0;background:transparent;color:var(--text-secondary);cursor:pointer;border-radius:var(--radius-1)}
684
- .pire-stepper-btn[data-hovered]{background:var(--surface-hover);color:var(--text-primary)}
685
- .pire-stepper-btn[data-disabled]{color:var(--text-disabled);cursor:not-allowed}
2589
+ .pire-stepper {
2590
+ display: flex;
2591
+ flex-direction: column;
2592
+ flex: 0 0 auto;
2593
+ margin-right: calc(var(--control-pad-x) * -1 + 2px);
2594
+ }
2595
+ .pire-stepper-btn {
2596
+ display: flex;
2597
+ align-items: center;
2598
+ justify-content: center;
2599
+ width: 24px;
2600
+ height: 14px;
2601
+ border: 0;
2602
+ background: transparent;
2603
+ color: var(--text-secondary);
2604
+ cursor: pointer;
2605
+ border-radius: var(--radius-1);
2606
+ }
2607
+ .pire-stepper-btn[data-hovered] {
2608
+ background: var(--surface-hover);
2609
+ color: var(--text-primary);
2610
+ }
2611
+ .pire-stepper-btn[data-disabled] {
2612
+ color: var(--text-disabled);
2613
+ cursor: not-allowed;
2614
+ }
686
2615
 
687
2616
  /* ---- QuantityStepper ------------------------------------------------------
688
2617
  NumberField's inline layout. 32px buttons, not the 24x14 of `.pire-stepper-btn`: this is the
689
2618
  one field whose user is wearing gloves, and WCAG 2.2 SC 2.5.8 asks 24x24 that axe cannot
690
2619
  check — `target-size` is off by default in axe-core, so the size is asserted in the
691
2620
  component's own test instead. */
692
- .pire-control[data-stepper="inline"]{gap:var(--sp-1);padding-inline:var(--sp-1)}
693
- .pire-control[data-stepper="inline"] .pire-input{text-align:center}
694
- .pire-qty-btn{display:inline-flex;align-items:center;justify-content:center;width:var(--sp-8);height:var(--sp-8);flex-shrink:0;border:1px solid var(--border-default);border-radius:var(--radius-1);background:var(--surface-card);color:var(--text-primary);cursor:pointer;outline:none;transition:var(--transition-control)}
695
- .pire-qty-btn[data-hovered]{background:var(--surface-hover)}
696
- .pire-qty-btn[data-pressed]{background:var(--surface-active)}
697
- .pire-qty-btn[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset)}
698
- .pire-qty-btn[data-disabled]{color:var(--text-disabled);background:var(--surface-disabled);cursor:default}
2621
+ .pire-control[data-stepper="inline"] {
2622
+ gap: var(--sp-1);
2623
+ padding-inline: var(--sp-1);
2624
+ }
2625
+ .pire-control[data-stepper="inline"] .pire-input {
2626
+ text-align: center;
2627
+ }
2628
+ .pire-qty-btn {
2629
+ display: inline-flex;
2630
+ align-items: center;
2631
+ justify-content: center;
2632
+ width: var(--sp-8);
2633
+ height: var(--sp-8);
2634
+ flex-shrink: 0;
2635
+ border: 1px solid var(--border-default);
2636
+ border-radius: var(--radius-1);
2637
+ background: var(--surface-card);
2638
+ color: var(--text-primary);
2639
+ cursor: pointer;
2640
+ outline: none;
2641
+ transition: var(--transition-control);
2642
+ }
2643
+ .pire-qty-btn[data-hovered] {
2644
+ background: var(--surface-hover);
2645
+ }
2646
+ .pire-qty-btn[data-pressed] {
2647
+ background: var(--surface-active);
2648
+ }
2649
+ .pire-qty-btn[data-focus-visible] {
2650
+ outline: var(--focus-w) solid var(--focus-color);
2651
+ outline-offset: var(--focus-offset);
2652
+ }
2653
+ .pire-qty-btn[data-disabled] {
2654
+ color: var(--text-disabled);
2655
+ background: var(--surface-disabled);
2656
+ cursor: default;
2657
+ }
699
2658
 
700
2659
  /* ---- DatePicker / Calendar --------------------------------------------- */
701
- .pire-datefield{display:flex;align-items:center;flex:1;min-width:0;font:var(--type-numeric);font-variant-numeric:tabular-nums}
702
- .pire-datesegment{padding:0 1px;border-radius:2px;outline:none;color:var(--text-primary)}
703
- .pire-datesegment[data-type="literal"]{color:var(--text-tertiary)}
704
- .pire-datesegment[data-placeholder]{color:var(--text-tertiary)}
705
- .pire-datesegment[data-focused]{background:var(--accent-bg);color:var(--accent-fg)}
706
- .pire-calendar{padding:var(--sp-3);display:flex;flex-direction:column;gap:var(--sp-2)}
707
- .pire-calendar-head{display:flex;align-items:center;gap:var(--sp-2)}
708
- .pire-calendar-title{flex:1;text-align:center;font:var(--type-body-strong)}
709
- .pire-calendar-grid{border-collapse:collapse}
710
- .pire-calendar-grid th{width:32px;height:24px;font:var(--type-label);color:var(--text-tertiary);font-weight:var(--fw-medium)}
711
- .pire-calendar-cell{width:32px;height:32px;text-align:center;vertical-align:middle;font:var(--type-numeric);border-radius:var(--radius-1);cursor:pointer;outline:none;color:var(--text-primary)}
712
- .pire-calendar-cell[data-outside-month]{visibility:hidden}
713
- .pire-calendar-cell[data-hovered]{background:var(--surface-hover)}
714
- .pire-calendar-cell[data-selected]{background:var(--accent-bg);color:var(--accent-fg)}
715
- .pire-calendar-cell[data-today]::after{content:"";display:block;width:4px;height:2px;margin:-4px auto 0;background:currentColor}
716
- .pire-calendar-cell[data-disabled],.pire-calendar-cell[data-unavailable]{color:var(--text-disabled);cursor:not-allowed;text-decoration:line-through}
717
- .pire-calendar-cell[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:-1px}
2660
+ .pire-datefield {
2661
+ display: flex;
2662
+ align-items: center;
2663
+ flex: 1;
2664
+ min-width: 0;
2665
+ font: var(--type-numeric);
2666
+ font-variant-numeric: tabular-nums;
2667
+ }
2668
+ .pire-datesegment {
2669
+ padding: 0 1px;
2670
+ border-radius: 2px;
2671
+ outline: none;
2672
+ color: var(--text-primary);
2673
+ }
2674
+ .pire-datesegment[data-type="literal"] {
2675
+ color: var(--text-tertiary);
2676
+ }
2677
+ .pire-datesegment[data-placeholder] {
2678
+ color: var(--text-tertiary);
2679
+ }
2680
+ .pire-datesegment[data-focused] {
2681
+ background: var(--accent-bg);
2682
+ color: var(--accent-fg);
2683
+ }
2684
+ .pire-calendar {
2685
+ padding: var(--sp-3);
2686
+ display: flex;
2687
+ flex-direction: column;
2688
+ gap: var(--sp-2);
2689
+ }
2690
+ .pire-calendar-head {
2691
+ display: flex;
2692
+ align-items: center;
2693
+ gap: var(--sp-2);
2694
+ }
2695
+ .pire-calendar-title {
2696
+ flex: 1;
2697
+ text-align: center;
2698
+ font: var(--type-body-strong);
2699
+ }
2700
+ .pire-calendar-grid {
2701
+ border-collapse: collapse;
2702
+ }
2703
+ .pire-calendar-grid th {
2704
+ width: 32px;
2705
+ height: 24px;
2706
+ font: var(--type-label);
2707
+ color: var(--text-tertiary);
2708
+ font-weight: var(--fw-medium);
2709
+ }
2710
+ .pire-calendar-cell {
2711
+ width: 32px;
2712
+ height: 32px;
2713
+ text-align: center;
2714
+ vertical-align: middle;
2715
+ font: var(--type-numeric);
2716
+ border-radius: var(--radius-1);
2717
+ cursor: pointer;
2718
+ outline: none;
2719
+ color: var(--text-primary);
2720
+ }
2721
+ .pire-calendar-cell[data-outside-month] {
2722
+ visibility: hidden;
2723
+ }
2724
+ .pire-calendar-cell[data-hovered] {
2725
+ background: var(--surface-hover);
2726
+ }
2727
+ .pire-calendar-cell[data-selected] {
2728
+ background: var(--accent-bg);
2729
+ color: var(--accent-fg);
2730
+ }
2731
+ .pire-calendar-cell[data-today]::after {
2732
+ content: "";
2733
+ display: block;
2734
+ width: 4px;
2735
+ height: 2px;
2736
+ margin: -4px auto 0;
2737
+ background: currentColor;
2738
+ }
2739
+ .pire-calendar-cell[data-disabled],
2740
+ .pire-calendar-cell[data-unavailable] {
2741
+ color: var(--text-disabled);
2742
+ cursor: not-allowed;
2743
+ text-decoration: line-through;
2744
+ }
2745
+ .pire-calendar-cell[data-focus-visible] {
2746
+ outline: var(--focus-w) solid var(--focus-color);
2747
+ outline-offset: -1px;
2748
+ }
718
2749
 
719
2750
  /* ---- Text / Strong ------------------------------------------------------ */
720
- .pire-text{margin:0;font:var(--type-body);letter-spacing:var(--ls-body);color:var(--text-primary)}
721
- .pire-text[data-size="body-lg"]{font:var(--type-body-lg)}
722
- .pire-text[data-size="caption"]{font:var(--type-caption)}
723
- .pire-text[data-size="micro"]{font:var(--type-micro)}
724
- .pire-text[data-weight="strong"]{font-weight:var(--fw-semibold)}
725
- .pire-text[data-color="secondary"]{color:var(--text-secondary)}
726
- .pire-text[data-color="tertiary"]{color:var(--text-tertiary)}
727
- .pire-text[data-color="disabled"]{color:var(--text-disabled)}
728
- .pire-text[data-color="inverse"]{color:var(--text-inverse)}
729
- .pire-text[data-numeric="true"]{font:var(--type-numeric);letter-spacing:var(--ls-numeric);font-variant-numeric:tabular-nums}
730
- .pire-text[data-eyebrow="true"]{font:var(--type-label);letter-spacing:var(--ls-caps);text-transform:uppercase;color:var(--text-secondary)}
2751
+ .pire-text {
2752
+ margin: 0;
2753
+ font: var(--type-body);
2754
+ letter-spacing: var(--ls-body);
2755
+ color: var(--text-primary);
2756
+ }
2757
+ .pire-text[data-size="body-lg"] {
2758
+ font: var(--type-body-lg);
2759
+ }
2760
+ .pire-text[data-size="caption"] {
2761
+ font: var(--type-caption);
2762
+ }
2763
+ .pire-text[data-size="micro"] {
2764
+ font: var(--type-micro);
2765
+ }
2766
+ .pire-text[data-weight="strong"] {
2767
+ font-weight: var(--fw-semibold);
2768
+ }
2769
+ .pire-text[data-color="secondary"] {
2770
+ color: var(--text-secondary);
2771
+ }
2772
+ .pire-text[data-color="tertiary"] {
2773
+ color: var(--text-tertiary);
2774
+ }
2775
+ .pire-text[data-color="disabled"] {
2776
+ color: var(--text-disabled);
2777
+ }
2778
+ .pire-text[data-color="inverse"] {
2779
+ color: var(--text-inverse);
2780
+ }
2781
+ .pire-text[data-numeric="true"] {
2782
+ font: var(--type-numeric);
2783
+ letter-spacing: var(--ls-numeric);
2784
+ font-variant-numeric: tabular-nums;
2785
+ }
2786
+ .pire-text[data-eyebrow="true"] {
2787
+ font: var(--type-label);
2788
+ letter-spacing: var(--ls-caps);
2789
+ text-transform: uppercase;
2790
+ color: var(--text-secondary);
2791
+ }
731
2792
  /* Shared clamp for Text and Heading; `--pire-text-clamp` carries the line count. */
732
- .pire-text[data-truncate="true"],.pire-heading[data-truncate="true"]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--pire-text-clamp,1);line-clamp:var(--pire-text-clamp,1);overflow:hidden}
2793
+ .pire-text[data-truncate="true"],
2794
+ .pire-heading[data-truncate="true"] {
2795
+ display: -webkit-box;
2796
+ -webkit-box-orient: vertical;
2797
+ -webkit-line-clamp: var(--pire-text-clamp, 1);
2798
+ line-clamp: var(--pire-text-clamp, 1);
2799
+ overflow: hidden;
2800
+ }
733
2801
 
734
2802
  /* ---- Heading ------------------------------------------------------------ */
735
- .pire-heading{margin:0;font:var(--type-h2);letter-spacing:var(--ls-heading);color:var(--text-primary)}
736
- .pire-heading[data-size="display"]{font:var(--type-display);letter-spacing:var(--ls-display)}
737
- .pire-heading[data-size="h1"]{font:var(--type-h1)}
738
- .pire-heading[data-size="h2"]{font:var(--type-h2)}
739
- .pire-heading[data-size="h3"]{font:var(--type-h3)}
740
- .pire-heading[data-size="h4"]{font:var(--type-h4)}
741
- .pire-heading[data-color="secondary"]{color:var(--text-secondary)}
742
- .pire-heading[data-color="tertiary"]{color:var(--text-tertiary)}
743
- .pire-heading[data-color="disabled"]{color:var(--text-disabled)}
744
- .pire-heading[data-color="inverse"]{color:var(--text-inverse)}
2803
+ .pire-heading {
2804
+ margin: 0;
2805
+ font: var(--type-h2);
2806
+ letter-spacing: var(--ls-heading);
2807
+ color: var(--text-primary);
2808
+ }
2809
+ .pire-heading[data-size="display"] {
2810
+ font: var(--type-display);
2811
+ letter-spacing: var(--ls-display);
2812
+ }
2813
+ .pire-heading[data-size="h1"] {
2814
+ font: var(--type-h1);
2815
+ }
2816
+ .pire-heading[data-size="h2"] {
2817
+ font: var(--type-h2);
2818
+ }
2819
+ .pire-heading[data-size="h3"] {
2820
+ font: var(--type-h3);
2821
+ }
2822
+ .pire-heading[data-size="h4"] {
2823
+ font: var(--type-h4);
2824
+ }
2825
+ .pire-heading[data-color="secondary"] {
2826
+ color: var(--text-secondary);
2827
+ }
2828
+ .pire-heading[data-color="tertiary"] {
2829
+ color: var(--text-tertiary);
2830
+ }
2831
+ .pire-heading[data-color="disabled"] {
2832
+ color: var(--text-disabled);
2833
+ }
2834
+ .pire-heading[data-color="inverse"] {
2835
+ color: var(--text-inverse);
2836
+ }
745
2837
 
746
2838
  /* ---- Link --------------------------------------------------------------- */
747
- .pire-link{display:inline-flex;align-items:baseline;gap:var(--sp-1);color:var(--text-link);text-decoration:underline;text-underline-offset:2px;cursor:pointer;transition:var(--transition-control)}
748
- .pire-link[data-size="body-lg"]{font:var(--type-body-lg)}
749
- .pire-link[data-size="body"]{font:var(--type-body)}
750
- .pire-link[data-size="caption"]{font:var(--type-caption)}
751
- .pire-link[data-size="micro"]{font:var(--type-micro)}
752
- .pire-link[data-hovered]{color:var(--text-link-hover)}
753
- .pire-link[data-disabled]{color:var(--text-disabled);text-decoration:none;cursor:not-allowed}
754
- .pire-link[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset);border-radius:var(--radius-1)}
755
- .pire-link-external{flex:0 0 auto;align-self:center}
2839
+ .pire-link {
2840
+ display: inline-flex;
2841
+ align-items: baseline;
2842
+ gap: var(--sp-1);
2843
+ color: var(--text-link);
2844
+ text-decoration: underline;
2845
+ text-underline-offset: 2px;
2846
+ cursor: pointer;
2847
+ transition: var(--transition-control);
2848
+ }
2849
+ .pire-link[data-size="body-lg"] {
2850
+ font: var(--type-body-lg);
2851
+ }
2852
+ .pire-link[data-size="body"] {
2853
+ font: var(--type-body);
2854
+ }
2855
+ .pire-link[data-size="caption"] {
2856
+ font: var(--type-caption);
2857
+ }
2858
+ .pire-link[data-size="micro"] {
2859
+ font: var(--type-micro);
2860
+ }
2861
+ .pire-link[data-hovered] {
2862
+ color: var(--text-link-hover);
2863
+ }
2864
+ .pire-link[data-disabled] {
2865
+ color: var(--text-disabled);
2866
+ text-decoration: none;
2867
+ cursor: not-allowed;
2868
+ }
2869
+ .pire-link[data-focus-visible] {
2870
+ outline: var(--focus-w) solid var(--focus-color);
2871
+ outline-offset: var(--focus-offset);
2872
+ border-radius: var(--radius-1);
2873
+ }
2874
+ .pire-link-external {
2875
+ flex: 0 0 auto;
2876
+ align-self: center;
2877
+ }
756
2878
 
757
2879
  /* ---- Separator ---------------------------------------------------------- */
758
- .pire-separator{border:0;border-top:var(--border-w-hairline) solid var(--border-default);margin:var(--sp-4) 0}
759
- .pire-separator[data-emphasis="subtle"]{border-color:var(--border-subtle)}
760
- .pire-separator[data-spacing="none"]{margin:0}
761
- .pire-separator[data-spacing="sm"]{margin:var(--sp-2) 0}
762
- .pire-separator[data-orientation="vertical"]{border-top:0;border-left:var(--border-w-hairline) solid var(--border-default);align-self:stretch;margin:0 var(--sp-3)}
763
- .pire-separator[data-orientation="vertical"][data-emphasis="subtle"]{border-color:var(--border-subtle)}
764
- .pire-separator[data-orientation="vertical"][data-spacing="none"]{margin:0}
765
- .pire-separator[data-orientation="vertical"][data-spacing="sm"]{margin:0 var(--sp-2)}
2880
+ .pire-separator {
2881
+ border: 0;
2882
+ border-top: var(--border-w-hairline) solid var(--border-default);
2883
+ margin: var(--sp-4) 0;
2884
+ }
2885
+ .pire-separator[data-emphasis="subtle"] {
2886
+ border-color: var(--border-subtle);
2887
+ }
2888
+ .pire-separator[data-spacing="none"] {
2889
+ margin: 0;
2890
+ }
2891
+ .pire-separator[data-spacing="sm"] {
2892
+ margin: var(--sp-2) 0;
2893
+ }
2894
+ .pire-separator[data-orientation="vertical"] {
2895
+ border-top: 0;
2896
+ border-left: var(--border-w-hairline) solid var(--border-default);
2897
+ align-self: stretch;
2898
+ margin: 0 var(--sp-3);
2899
+ }
2900
+ .pire-separator[data-orientation="vertical"][data-emphasis="subtle"] {
2901
+ border-color: var(--border-subtle);
2902
+ }
2903
+ .pire-separator[data-orientation="vertical"][data-spacing="none"] {
2904
+ margin: 0;
2905
+ }
2906
+ .pire-separator[data-orientation="vertical"][data-spacing="sm"] {
2907
+ margin: 0 var(--sp-2);
2908
+ }
766
2909
 
767
2910
  /* ---- Menu --------------------------------------------------------------- */
768
2911
  /* Its own surface, not .pire-popover: that sizes from --trigger-width, which is wrong for a
769
2912
  menu hung off a 32px IconButton. Here the content sets the width. */
770
- .pire-menu{outline:none;padding:var(--sp-1) 0;min-width:var(--pire-menu-min-w,180px);max-width:calc(100vw - 24px);display:flex;flex-direction:column}
771
- .pire-menu-item{display:flex;align-items:flex-start;gap:var(--sp-2);min-height:var(--row-h-condensed);padding:var(--sp-1) var(--sp-3);font:var(--type-body);color:var(--text-primary);cursor:pointer;outline:none;text-decoration:none}
772
- .pire-menu-item[data-focused]{background:var(--surface-hover)}
773
- .pire-menu-item[data-disabled]{color:var(--text-disabled);cursor:not-allowed}
774
- .pire-menu-item[data-tone="danger"]{color:var(--status-negative-fg)}
775
- .pire-menu-item[data-tone="danger"][data-focused]{background:var(--status-negative-bg)}
776
- .pire-menu-item-icon{flex:0 0 auto;margin-top:2px;color:var(--text-secondary)}
777
- .pire-menu-item[data-tone="danger"] .pire-menu-item-icon{color:inherit}
778
- .pire-menu-item-body{flex:1;min-width:0;display:flex;flex-direction:column}
779
- .pire-menu-item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
780
- .pire-menu-item-desc{font:var(--type-caption);color:var(--text-secondary)}
781
- .pire-menu-item[data-disabled] .pire-menu-item-desc{color:var(--text-disabled)}
2913
+ .pire-menu {
2914
+ outline: none;
2915
+ padding: var(--sp-1) 0;
2916
+ min-width: var(--pire-menu-min-w, 180px);
2917
+ max-width: calc(100vw - 24px);
2918
+ display: flex;
2919
+ flex-direction: column;
2920
+ }
2921
+ .pire-menu-item {
2922
+ display: flex;
2923
+ align-items: flex-start;
2924
+ gap: var(--sp-2);
2925
+ min-height: var(--row-h-condensed);
2926
+ padding: var(--sp-1) var(--sp-3);
2927
+ font: var(--type-body);
2928
+ color: var(--text-primary);
2929
+ cursor: pointer;
2930
+ outline: none;
2931
+ text-decoration: none;
2932
+ }
2933
+ .pire-menu-item[data-focused] {
2934
+ background: var(--surface-hover);
2935
+ }
2936
+ .pire-menu-item[data-disabled] {
2937
+ color: var(--text-disabled);
2938
+ cursor: not-allowed;
2939
+ }
2940
+ .pire-menu-item[data-tone="danger"] {
2941
+ color: var(--status-negative-fg);
2942
+ }
2943
+ .pire-menu-item[data-tone="danger"][data-focused] {
2944
+ background: var(--status-negative-bg);
2945
+ }
2946
+ .pire-menu-item-icon {
2947
+ flex: 0 0 auto;
2948
+ margin-top: 2px;
2949
+ color: var(--text-secondary);
2950
+ }
2951
+ .pire-menu-item[data-tone="danger"] .pire-menu-item-icon {
2952
+ color: inherit;
2953
+ }
2954
+ .pire-menu-item-body {
2955
+ flex: 1;
2956
+ min-width: 0;
2957
+ display: flex;
2958
+ flex-direction: column;
2959
+ }
2960
+ .pire-menu-item-label {
2961
+ overflow: hidden;
2962
+ text-overflow: ellipsis;
2963
+ white-space: nowrap;
2964
+ }
2965
+ .pire-menu-item-desc {
2966
+ font: var(--type-caption);
2967
+ color: var(--text-secondary);
2968
+ }
2969
+ .pire-menu-item[data-disabled] .pire-menu-item-desc {
2970
+ color: var(--text-disabled);
2971
+ }
782
2972
  /* A row of Kbd caps rather than a run of mono text, so a shortcut is drawn the same way
783
2973
  everywhere — including beside the command palette's key hints, in the same panel. */
784
- .pire-menu-item-shortcut{flex:0 0 auto;align-self:center;display:flex;align-items:center;gap:2px}
785
- .pire-menu-section-title{display:block;padding:var(--sp-1) var(--sp-3);font:var(--type-label);letter-spacing:var(--ls-caps);text-transform:uppercase;color:var(--text-secondary)}
786
- .pire-menu-separator{border:0;border-top:var(--border-w-hairline) solid var(--border-subtle);margin:var(--sp-1) 0}
2974
+ .pire-menu-item-shortcut {
2975
+ flex: 0 0 auto;
2976
+ align-self: center;
2977
+ display: flex;
2978
+ align-items: center;
2979
+ gap: 2px;
2980
+ }
2981
+ .pire-menu-section-title {
2982
+ display: block;
2983
+ padding: var(--sp-1) var(--sp-3);
2984
+ font: var(--type-label);
2985
+ letter-spacing: var(--ls-caps);
2986
+ text-transform: uppercase;
2987
+ color: var(--text-secondary);
2988
+ }
2989
+ .pire-menu-separator {
2990
+ border: 0;
2991
+ border-top: var(--border-w-hairline) solid var(--border-subtle);
2992
+ margin: var(--sp-1) 0;
2993
+ }
787
2994
 
788
2995
  /* ---- DateRangePicker ------------------------------------------------------ */
789
- .pire-daterange-control{gap:var(--sp-1)}
790
- .pire-daterange-dash{color:var(--text-tertiary);flex:0 0 auto}
2996
+ .pire-daterange-control {
2997
+ gap: var(--sp-1);
2998
+ }
2999
+ .pire-daterange-dash {
3000
+ color: var(--text-tertiary);
3001
+ flex: 0 0 auto;
3002
+ }
791
3003
  /* Presets sit beside the calendar, and before it in the DOM so the keyboard reaches a shortcut
792
3004
  without arrowing through a month first. */
793
- .pire-daterange-dialog{display:flex;align-items:stretch}
794
- .pire-daterange-presets{display:flex;flex-direction:column;gap:var(--sp-0h);padding:var(--sp-2);border-right:1px solid var(--border-subtle);min-width:140px}
795
- .pire-daterange-preset{display:flex;align-items:center;min-height:var(--row-h-condensed);padding:0 var(--sp-2);border:0;border-radius:var(--radius-1);background:transparent;color:var(--text-primary);font:var(--type-body);text-align:left;cursor:pointer}
796
- .pire-daterange-preset[data-hovered]{background:var(--surface-hover)}
797
- .pire-daterange-preset[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:calc(var(--focus-offset) * -1)}
3005
+ .pire-daterange-dialog {
3006
+ display: flex;
3007
+ align-items: stretch;
3008
+ }
3009
+ .pire-daterange-presets {
3010
+ display: flex;
3011
+ flex-direction: column;
3012
+ gap: var(--sp-0h);
3013
+ padding: var(--sp-2);
3014
+ border-right: 1px solid var(--border-subtle);
3015
+ min-width: 140px;
3016
+ }
3017
+ .pire-daterange-preset {
3018
+ display: flex;
3019
+ align-items: center;
3020
+ min-height: var(--row-h-condensed);
3021
+ padding: 0 var(--sp-2);
3022
+ border: 0;
3023
+ border-radius: var(--radius-1);
3024
+ background: transparent;
3025
+ color: var(--text-primary);
3026
+ font: var(--type-body);
3027
+ text-align: left;
3028
+ cursor: pointer;
3029
+ }
3030
+ .pire-daterange-preset[data-hovered] {
3031
+ background: var(--surface-hover);
3032
+ }
3033
+ .pire-daterange-preset[data-focus-visible] {
3034
+ outline: var(--focus-w) solid var(--focus-color);
3035
+ outline-offset: calc(var(--focus-offset) * -1);
3036
+ }
798
3037
  /* Range highlighting comes off the data attributes React Aria puts on each cell. The two ends
799
3038
  carry the accent; the span between them uses the subtle pair so the ends stay legible as ends. */
800
- .pire-calendar-cell[data-selected]{background:var(--accent-subtle-bg);color:var(--accent-subtle-fg);border-radius:0}
801
- .pire-calendar-cell[data-selection-start]{background:var(--accent-bg);color:var(--text-on-accent);border-radius:var(--radius-1) 0 0 var(--radius-1)}
802
- .pire-calendar-cell[data-selection-end]{background:var(--accent-bg);color:var(--text-on-accent);border-radius:0 var(--radius-1) var(--radius-1) 0}
803
- .pire-calendar-cell[data-selection-start][data-selection-end]{border-radius:var(--radius-1)}
804
- .pire-calendar-cell[data-outside-visible-range]{visibility:hidden}
3039
+ .pire-calendar-cell[data-selected] {
3040
+ background: var(--accent-subtle-bg);
3041
+ color: var(--accent-subtle-fg);
3042
+ border-radius: 0;
3043
+ }
3044
+ .pire-calendar-cell[data-selection-start] {
3045
+ background: var(--accent-bg);
3046
+ color: var(--text-on-accent);
3047
+ border-radius: var(--radius-1) 0 0 var(--radius-1);
3048
+ }
3049
+ .pire-calendar-cell[data-selection-end] {
3050
+ background: var(--accent-bg);
3051
+ color: var(--text-on-accent);
3052
+ border-radius: 0 var(--radius-1) var(--radius-1) 0;
3053
+ }
3054
+ .pire-calendar-cell[data-selection-start][data-selection-end] {
3055
+ border-radius: var(--radius-1);
3056
+ }
3057
+ .pire-calendar-cell[data-outside-visible-range] {
3058
+ visibility: hidden;
3059
+ }
805
3060
 
806
3061
  /* ---- FileUpload / FileDropZone ------------------------------------------- */
807
- .pire-fileupload-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-1)}
808
- .pire-fileupload-item{display:flex;align-items:center;gap:var(--sp-2);min-height:var(--row-h-condensed);padding:0 var(--sp-2);border:1px solid var(--border-subtle);border-radius:var(--radius-1);background:var(--surface-card)}
809
- .pire-fileupload-icon{flex:0 0 auto;color:var(--text-secondary)}
810
- .pire-fileupload-thumb{flex:0 0 auto;width:24px;height:24px;object-fit:cover;border-radius:var(--radius-1)}
811
- .pire-fileupload-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--type-body)}
812
- .pire-fileupload-size{flex:0 0 auto;font:var(--type-caption);color:var(--text-secondary);font-variant-numeric:tabular-nums}
813
- .pire-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-2);padding:var(--sp-6);border:1px dashed var(--border-default);border-radius:var(--radius-2);background:var(--surface-sunken);color:var(--text-secondary);text-align:center;transition:var(--transition-surface)}
814
- .pire-dropzone[data-height="compact"]{padding:var(--sp-4)}
3062
+ .pire-fileupload-list {
3063
+ list-style: none;
3064
+ margin: 0;
3065
+ padding: 0;
3066
+ display: flex;
3067
+ flex-direction: column;
3068
+ gap: var(--sp-1);
3069
+ }
3070
+ .pire-fileupload-item {
3071
+ display: flex;
3072
+ align-items: center;
3073
+ gap: var(--sp-2);
3074
+ min-height: var(--row-h-condensed);
3075
+ padding: 0 var(--sp-2);
3076
+ border: 1px solid var(--border-subtle);
3077
+ border-radius: var(--radius-1);
3078
+ background: var(--surface-card);
3079
+ }
3080
+ .pire-fileupload-icon {
3081
+ flex: 0 0 auto;
3082
+ color: var(--text-secondary);
3083
+ }
3084
+ .pire-fileupload-thumb {
3085
+ flex: 0 0 auto;
3086
+ width: 24px;
3087
+ height: 24px;
3088
+ object-fit: cover;
3089
+ border-radius: var(--radius-1);
3090
+ }
3091
+ .pire-fileupload-name {
3092
+ flex: 1;
3093
+ min-width: 0;
3094
+ overflow: hidden;
3095
+ text-overflow: ellipsis;
3096
+ white-space: nowrap;
3097
+ font: var(--type-body);
3098
+ }
3099
+ .pire-fileupload-size {
3100
+ flex: 0 0 auto;
3101
+ font: var(--type-caption);
3102
+ color: var(--text-secondary);
3103
+ font-variant-numeric: tabular-nums;
3104
+ }
3105
+ .pire-dropzone {
3106
+ display: flex;
3107
+ flex-direction: column;
3108
+ align-items: center;
3109
+ justify-content: center;
3110
+ gap: var(--sp-2);
3111
+ padding: var(--sp-6);
3112
+ border: 1px dashed var(--border-default);
3113
+ border-radius: var(--radius-2);
3114
+ background: var(--surface-sunken);
3115
+ color: var(--text-secondary);
3116
+ text-align: center;
3117
+ transition: var(--transition-surface);
3118
+ }
3119
+ .pire-dropzone[data-height="compact"] {
3120
+ padding: var(--sp-4);
3121
+ }
815
3122
  /* React Aria sets data-drop-target while a drag hovers, and data-focus-visible on keyboard
816
3123
  focus — the zone is a real drop target, so both states have to read as active. */
817
- .pire-dropzone[data-drop-target]{border-color:var(--accent-bg);border-style:solid;background:var(--accent-subtle-bg)}
818
- .pire-dropzone[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset)}
819
- .pire-dropzone[data-disabled]{background:var(--surface-disabled);color:var(--text-disabled);border-color:var(--border-subtle)}
820
- .pire-dropzone-icon{color:var(--text-tertiary)}
821
- .pire-dropzone-prompt{font:var(--type-body)}
3124
+ .pire-dropzone[data-drop-target] {
3125
+ border-color: var(--accent-bg);
3126
+ border-style: solid;
3127
+ background: var(--accent-subtle-bg);
3128
+ }
3129
+ .pire-dropzone[data-focus-visible] {
3130
+ outline: var(--focus-w) solid var(--focus-color);
3131
+ outline-offset: var(--focus-offset);
3132
+ }
3133
+ .pire-dropzone[data-disabled] {
3134
+ background: var(--surface-disabled);
3135
+ color: var(--text-disabled);
3136
+ border-color: var(--border-subtle);
3137
+ }
3138
+ .pire-dropzone-icon {
3139
+ color: var(--text-tertiary);
3140
+ }
3141
+ .pire-dropzone-prompt {
3142
+ font: var(--type-body);
3143
+ }
822
3144
 
823
3145
  /* ---- SideNav rail flyout -------------------------------------------------- */
824
3146
  /* Matches the expanded nav's width so the flyout is not visibly narrower than the menu it
825
3147
  stands in for. The rows drop the second-level indent: there is no first level beside them
826
3148
  here, so the indent would be measuring against something that is not on screen. */
827
- .pire-sidenav-flyout{min-width:var(--sidenav-w)}
828
- .pire-sidenav-flyout .pire-menu-item{padding-left:var(--sp-4)}
3149
+ .pire-sidenav-flyout {
3150
+ min-width: var(--sidenav-w);
3151
+ }
3152
+ .pire-sidenav-flyout .pire-menu-item {
3153
+ padding-left: var(--sp-4);
3154
+ }
829
3155
 
830
3156
  /* ---- ComboBox async status ----------------------------------------------- */
831
3157
  /* Same height as an option row so the popover does not resize when results replace the
832
3158
  loading line — a popover that jumps has already moved the row under the pointer. */
833
- .pire-listbox-status{display:flex;align-items:center;min-height:var(--row-h-condensed);padding:0 var(--sp-3);font:var(--type-caption);color:var(--text-secondary)}
834
- .pire-option-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
835
- .pire-option-secondary{flex:0 0 auto;font:var(--type-code);color:var(--text-tertiary)}
3159
+ .pire-listbox-status {
3160
+ display: flex;
3161
+ align-items: center;
3162
+ min-height: var(--row-h-condensed);
3163
+ padding: 0 var(--sp-3);
3164
+ font: var(--type-caption);
3165
+ color: var(--text-secondary);
3166
+ }
3167
+ .pire-option-label {
3168
+ flex: 1;
3169
+ min-width: 0;
3170
+ overflow: hidden;
3171
+ text-overflow: ellipsis;
3172
+ white-space: nowrap;
3173
+ }
3174
+ .pire-option-secondary {
3175
+ flex: 0 0 auto;
3176
+ font: var(--type-code);
3177
+ color: var(--text-tertiary);
3178
+ }
836
3179
 
837
3180
  /* ---- PageBand ------------------------------------------------------------ */
838
- .pire-pageband{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-4) var(--page-pad-x);background:var(--surface-card)}
839
- .pire-pageband[data-surface="page"]{background:var(--surface-page)}
840
- .pire-pageband[data-border="true"]{border-bottom:1px solid var(--border-subtle)}
3181
+ .pire-pageband {
3182
+ display: flex;
3183
+ flex-direction: column;
3184
+ gap: var(--sp-3);
3185
+ padding: var(--sp-4) var(--page-pad-x);
3186
+ background: var(--surface-card);
3187
+ }
3188
+ .pire-pageband[data-surface="page"] {
3189
+ background: var(--surface-page);
3190
+ }
3191
+ .pire-pageband[data-border="true"] {
3192
+ border-bottom: 1px solid var(--border-subtle);
3193
+ }
841
3194
 
842
3195
  /* ---- IconButton count ---------------------------------------------------- */
843
3196
  /* Sits over the icon's top-right. The button is position:relative only when a count is present,
844
3197
  so nothing else about its layout changes for the common case. */
845
- .pire-iconbtn[data-has-count="true"]{position:relative}
846
- .pire-iconbtn-count{position:absolute;top:2px;right:2px;display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 var(--sp-1);border-radius:var(--radius-pill);background:var(--status-negative-fg);color:var(--text-on-status);font:var(--type-micro);font-weight:var(--fw-semibold);line-height:1;pointer-events:none}
847
- .pire-iconbtn-count[data-variant="dot"]{min-width:8px;width:8px;height:8px;padding:0;top:4px;right:4px}
848
- .pire-iconbtn[data-variant="inverse"] .pire-iconbtn-count{box-shadow:0 0 0 2px var(--surface-shell)}
3198
+ .pire-iconbtn[data-has-count="true"] {
3199
+ position: relative;
3200
+ }
3201
+ .pire-iconbtn-count {
3202
+ position: absolute;
3203
+ top: 2px;
3204
+ right: 2px;
3205
+ display: inline-flex;
3206
+ align-items: center;
3207
+ justify-content: center;
3208
+ min-width: 16px;
3209
+ height: 16px;
3210
+ padding: 0 var(--sp-1);
3211
+ border-radius: var(--radius-pill);
3212
+ background: var(--status-negative-fg);
3213
+ color: var(--text-on-status);
3214
+ font: var(--type-micro);
3215
+ font-weight: var(--fw-semibold);
3216
+ line-height: 1;
3217
+ pointer-events: none;
3218
+ }
3219
+ .pire-iconbtn-count[data-variant="dot"] {
3220
+ min-width: 8px;
3221
+ width: 8px;
3222
+ height: 8px;
3223
+ padding: 0;
3224
+ top: 4px;
3225
+ right: 4px;
3226
+ }
3227
+ .pire-iconbtn[data-variant="inverse"] .pire-iconbtn-count {
3228
+ box-shadow: 0 0 0 2px var(--surface-shell);
3229
+ }
849
3230
 
850
3231
  /* ---- DataTable loading --------------------------------------------------- */
851
3232
  /* renderEmptyState gives one node for the whole body, so the skeleton rows stack inside it while
852
3233
  the real header stays mounted above — which is what stops the grid resizing mid-reload. */
853
- .pire-table-loading{display:flex;flex-direction:column}
3234
+ .pire-table-loading {
3235
+ display: flex;
3236
+ flex-direction: column;
3237
+ }
854
3238
 
855
3239
  /* ---- Charts --------------------------------------------------------------- */
856
3240
  /* width:100% is load-bearing, not cosmetic. Bar lengths are percentages of the track, and a
857
3241
  percentage cannot resolve against an indefinite width — drop the chart into a flex container
858
3242
  with `align-items:flex-start` and every bar collapses to its 2px floor. */
859
- .pire-chart{display:flex;flex-direction:column;gap:var(--sp-3);margin:0;min-width:0;width:100%}
860
- .pire-chart-head{display:flex;flex-direction:column;gap:var(--sp-1)}
861
- .pire-chart-title{font:var(--type-body-strong);color:var(--text-primary)}
862
- .pire-chart-desc{font:var(--type-caption);color:var(--text-secondary)}
863
- .pire-chart-empty{padding:var(--sp-10);text-align:center;color:var(--text-secondary);font:var(--type-body)}
3243
+ .pire-chart {
3244
+ display: flex;
3245
+ flex-direction: column;
3246
+ gap: var(--sp-3);
3247
+ margin: 0;
3248
+ min-width: 0;
3249
+ width: 100%;
3250
+ }
3251
+ .pire-chart-head {
3252
+ display: flex;
3253
+ flex-direction: column;
3254
+ gap: var(--sp-1);
3255
+ }
3256
+ .pire-chart-title {
3257
+ font: var(--type-body-strong);
3258
+ color: var(--text-primary);
3259
+ }
3260
+ .pire-chart-desc {
3261
+ font: var(--type-caption);
3262
+ color: var(--text-secondary);
3263
+ }
3264
+ .pire-chart-empty {
3265
+ padding: var(--sp-10);
3266
+ text-align: center;
3267
+ color: var(--text-secondary);
3268
+ font: var(--type-body);
3269
+ }
864
3270
 
865
3271
  /* Legend text stays in ink; the swatch beside it is what carries identity. Colouring the label
866
3272
  to match its series is the commonest way a chart fails contrast. */
867
- .pire-chart-legend{display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-4);margin:0;padding:0;list-style:none}
868
- .pire-chart-legend-item{display:inline-flex;align-items:center;gap:var(--sp-2);font:var(--type-caption);color:var(--text-secondary)}
869
- .pire-chart-swatch{width:10px;height:10px;border-radius:var(--radius-1);flex:0 0 auto}
3273
+ .pire-chart-legend {
3274
+ display: flex;
3275
+ flex-wrap: wrap;
3276
+ gap: var(--sp-1) var(--sp-4);
3277
+ margin: 0;
3278
+ padding: 0;
3279
+ list-style: none;
3280
+ }
3281
+ .pire-chart-legend-item {
3282
+ display: inline-flex;
3283
+ align-items: center;
3284
+ gap: var(--sp-2);
3285
+ font: var(--type-caption);
3286
+ color: var(--text-secondary);
3287
+ }
3288
+ .pire-chart-swatch {
3289
+ width: 10px;
3290
+ height: 10px;
3291
+ border-radius: var(--radius-1);
3292
+ flex: 0 0 auto;
3293
+ }
870
3294
 
871
3295
  /* ---- Charts: bars --------------------------------------------------------- */
872
- .pire-chart-bars{display:flex;gap:var(--sp-2)}
873
- .pire-chart-bars[data-orientation="horizontal"]{flex-direction:column}
874
- .pire-chart-bars[data-orientation="vertical"]{flex-direction:row;align-items:stretch;height:var(--pire-chart-height)}
3296
+ .pire-chart-bars {
3297
+ display: flex;
3298
+ gap: var(--sp-2);
3299
+ }
3300
+ .pire-chart-bars[data-orientation="horizontal"] {
3301
+ flex-direction: column;
3302
+ }
3303
+ .pire-chart-bars[data-orientation="vertical"] {
3304
+ flex-direction: row;
3305
+ align-items: stretch;
3306
+ height: var(--pire-chart-height);
3307
+ }
875
3308
 
876
- .pire-chart-group{display:flex;min-width:0}
877
- .pire-chart-bars[data-orientation="horizontal"] .pire-chart-group{align-items:center;gap:var(--sp-3)}
878
- .pire-chart-bars[data-orientation="vertical"] .pire-chart-group{flex:1 1 0;flex-direction:column-reverse;justify-content:flex-start;gap:var(--sp-2);min-width:0}
3309
+ .pire-chart-group {
3310
+ display: flex;
3311
+ min-width: 0;
3312
+ }
3313
+ .pire-chart-bars[data-orientation="horizontal"] .pire-chart-group {
3314
+ align-items: center;
3315
+ gap: var(--sp-3);
3316
+ }
3317
+ .pire-chart-bars[data-orientation="vertical"] .pire-chart-group {
3318
+ flex: 1 1 0;
3319
+ flex-direction: column-reverse;
3320
+ justify-content: flex-start;
3321
+ gap: var(--sp-2);
3322
+ min-width: 0;
3323
+ }
879
3324
 
880
- .pire-chart-cat{font:var(--type-caption);color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
881
- .pire-chart-bars[data-orientation="horizontal"] .pire-chart-cat{flex:0 0 auto;width:var(--pire-chart-cat-width,120px);text-align:right}
882
- .pire-chart-bars[data-orientation="vertical"] .pire-chart-cat{text-align:center;width:100%}
3325
+ .pire-chart-cat {
3326
+ font: var(--type-caption);
3327
+ color: var(--text-secondary);
3328
+ white-space: nowrap;
3329
+ overflow: hidden;
3330
+ text-overflow: ellipsis;
3331
+ }
3332
+ .pire-chart-bars[data-orientation="horizontal"] .pire-chart-cat {
3333
+ flex: 0 0 auto;
3334
+ width: var(--pire-chart-cat-width, 120px);
3335
+ text-align: right;
3336
+ }
3337
+ .pire-chart-bars[data-orientation="vertical"] .pire-chart-cat {
3338
+ text-align: center;
3339
+ width: 100%;
3340
+ }
883
3341
 
884
- .pire-chart-val{font:var(--type-caption);font-variant-numeric:tabular-nums;color:var(--text-secondary);white-space:nowrap}
885
- .pire-chart-bars[data-orientation="horizontal"] .pire-chart-val{flex:0 0 auto;text-align:right;min-width:64px}
3342
+ .pire-chart-val {
3343
+ font: var(--type-caption);
3344
+ font-variant-numeric: tabular-nums;
3345
+ color: var(--text-secondary);
3346
+ white-space: nowrap;
3347
+ }
3348
+ .pire-chart-bars[data-orientation="horizontal"] .pire-chart-val {
3349
+ flex: 0 0 auto;
3350
+ text-align: right;
3351
+ min-width: 64px;
3352
+ }
886
3353
  /* Rides on top of its own bar, so the figure moves with the mark it describes. */
887
- .pire-chart-barval{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);padding-block-end:var(--sp-1);font:var(--type-caption);font-variant-numeric:tabular-nums;color:var(--text-secondary);white-space:nowrap}
3354
+ .pire-chart-barval {
3355
+ position: absolute;
3356
+ bottom: 100%;
3357
+ left: 50%;
3358
+ transform: translateX(-50%);
3359
+ padding-block-end: var(--sp-1);
3360
+ font: var(--type-caption);
3361
+ font-variant-numeric: tabular-nums;
3362
+ color: var(--text-secondary);
3363
+ white-space: nowrap;
3364
+ }
888
3365
 
889
3366
  /* The 2px gap is the spacer that keeps adjacent fills from reading as one mark. */
890
- .pire-chart-track{display:flex;gap:var(--sp-0h);flex:1 1 auto;min-width:0}
891
- .pire-chart-bars[data-orientation="horizontal"] .pire-chart-track{flex-direction:column;min-height:12px}
3367
+ .pire-chart-track {
3368
+ display: flex;
3369
+ gap: var(--sp-0h);
3370
+ flex: 1 1 auto;
3371
+ min-width: 0;
3372
+ }
3373
+ .pire-chart-bars[data-orientation="horizontal"] .pire-chart-track {
3374
+ flex-direction: column;
3375
+ min-height: 12px;
3376
+ }
892
3377
  /* The top padding is where a vertical bar's own value label sits — without it the tallest
893
3378
  bar's figure is clipped by the top of the plot. */
894
- .pire-chart-bars[data-orientation="vertical"] .pire-chart-track{flex-direction:row;align-items:flex-end;justify-content:center;flex:1 1 auto;min-height:0;padding-block-start:var(--sp-5)}
895
- .pire-chart-bars[data-stacked="true"][data-orientation="horizontal"] .pire-chart-track{flex-direction:row}
3379
+ .pire-chart-bars[data-orientation="vertical"] .pire-chart-track {
3380
+ flex-direction: row;
3381
+ align-items: flex-end;
3382
+ justify-content: center;
3383
+ flex: 1 1 auto;
3384
+ min-height: 0;
3385
+ padding-block-start: var(--sp-5);
3386
+ }
3387
+ .pire-chart-bars[data-stacked="true"][data-orientation="horizontal"] .pire-chart-track {
3388
+ flex-direction: row;
3389
+ }
896
3390
  /* flex-start, not the centre the unstacked rule sets: under column-reverse the main axis starts
897
3391
  at the bottom, which is where a stack has to sit. Centred, the whole column floats off its
898
3392
  own zero line and the shortest stacks drift furthest. */
899
- .pire-chart-bars[data-stacked="true"][data-orientation="vertical"] .pire-chart-track{flex-direction:column-reverse;align-items:stretch;justify-content:flex-start}
3393
+ .pire-chart-bars[data-stacked="true"][data-orientation="vertical"] .pire-chart-track {
3394
+ flex-direction: column-reverse;
3395
+ align-items: stretch;
3396
+ justify-content: flex-start;
3397
+ }
900
3398
 
901
3399
  /* Only the data end is rounded. Rounding the baseline end would lift the mark off its own
902
3400
  zero line and read as a value slightly above zero. */
903
- .pire-chart-bar{position:relative;background:var(--pire-bar-color);flex:0 0 auto}
904
- .pire-chart-bars[data-orientation="horizontal"] .pire-chart-bar{width:var(--pire-bar-size);min-height:10px;flex:1 1 auto;border-radius:0 var(--radius-2) var(--radius-2) 0;min-width:2px}
905
- .pire-chart-bars[data-orientation="vertical"] .pire-chart-bar{height:var(--pire-bar-size);flex:1 1 auto;max-width:40px;border-radius:var(--radius-2) var(--radius-2) 0 0;min-height:2px}
906
- .pire-chart-bars[data-stacked="true"][data-orientation="horizontal"] .pire-chart-bar{flex:0 0 var(--pire-bar-size);width:auto;border-radius:0}
907
- .pire-chart-bars[data-stacked="true"][data-orientation="vertical"] .pire-chart-bar{flex:0 0 var(--pire-bar-size);height:auto;border-radius:0}
3401
+ .pire-chart-bar {
3402
+ position: relative;
3403
+ background: var(--pire-bar-color);
3404
+ flex: 0 0 auto;
3405
+ }
3406
+ .pire-chart-bars[data-orientation="horizontal"] .pire-chart-bar {
3407
+ width: var(--pire-bar-size);
3408
+ min-height: 10px;
3409
+ flex: 1 1 auto;
3410
+ border-radius: 0 var(--radius-2) var(--radius-2) 0;
3411
+ min-width: 2px;
3412
+ }
3413
+ .pire-chart-bars[data-orientation="vertical"] .pire-chart-bar {
3414
+ height: var(--pire-bar-size);
3415
+ flex: 1 1 auto;
3416
+ max-width: 40px;
3417
+ border-radius: var(--radius-2) var(--radius-2) 0 0;
3418
+ min-height: 2px;
3419
+ }
3420
+ .pire-chart-bars[data-stacked="true"][data-orientation="horizontal"] .pire-chart-bar {
3421
+ flex: 0 0 var(--pire-bar-size);
3422
+ width: auto;
3423
+ border-radius: 0;
3424
+ }
3425
+ .pire-chart-bars[data-stacked="true"][data-orientation="vertical"] .pire-chart-bar {
3426
+ flex: 0 0 var(--pire-bar-size);
3427
+ height: auto;
3428
+ border-radius: 0;
3429
+ }
908
3430
 
909
3431
  /* ---- Charts: lines -------------------------------------------------------- */
910
- .pire-chart-lines{position:relative;width:100%;min-width:0}
911
- .pire-chart-svg{display:block;overflow:visible}
912
- .pire-chart-grid line{stroke:var(--viz-grid);stroke-width:1}
913
- .pire-chart-tick text{font:var(--type-micro);fill:var(--text-tertiary);font-variant-numeric:tabular-nums}
914
- .pire-chart-line path{stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
915
- .pire-chart-area{opacity:.14}
3432
+ .pire-chart-lines {
3433
+ position: relative;
3434
+ width: 100%;
3435
+ min-width: 0;
3436
+ }
3437
+ .pire-chart-svg {
3438
+ display: block;
3439
+ overflow: visible;
3440
+ }
3441
+ .pire-chart-grid line {
3442
+ stroke: var(--viz-grid);
3443
+ stroke-width: 1;
3444
+ }
3445
+ .pire-chart-tick text {
3446
+ font: var(--type-micro);
3447
+ fill: var(--text-tertiary);
3448
+ font-variant-numeric: tabular-nums;
3449
+ }
3450
+ .pire-chart-line path {
3451
+ stroke-width: 2;
3452
+ stroke-linecap: round;
3453
+ stroke-linejoin: round;
3454
+ }
3455
+ .pire-chart-area {
3456
+ opacity: 0.14;
3457
+ }
916
3458
  /* A ring in the surface colour keeps overlapping markers from merging into one blob. */
917
- .pire-chart-marker circle{stroke:var(--surface-card);stroke-width:2}
3459
+ .pire-chart-marker circle {
3460
+ stroke: var(--surface-card);
3461
+ stroke-width: 2;
3462
+ }
918
3463
 
919
3464
  /* ---- Charts: hover -------------------------------------------------------- */
920
- .pire-chart-hover{position:absolute;display:flex}
921
- .pire-chart-band{position:relative;flex:1 1 0}
922
- .pire-chart-band::before{content:"";position:absolute;inset-block:0;left:50%;width:1px;background:var(--border-strong);opacity:0}
923
- .pire-chart-band:hover::before{opacity:1}
3465
+ .pire-chart-hover {
3466
+ position: absolute;
3467
+ display: flex;
3468
+ }
3469
+ .pire-chart-band {
3470
+ position: relative;
3471
+ flex: 1 1 0;
3472
+ }
3473
+ .pire-chart-band::before {
3474
+ content: "";
3475
+ position: absolute;
3476
+ inset-block: 0;
3477
+ left: 50%;
3478
+ width: 1px;
3479
+ background: var(--border-strong);
3480
+ opacity: 0;
3481
+ }
3482
+ .pire-chart-band:hover::before {
3483
+ opacity: 1;
3484
+ }
924
3485
 
925
3486
  /* CSS-only, because the plot is aria-hidden and the data table already carries every value —
926
3487
  this is a pointer affordance, not the accessible path to the numbers. */
927
- .pire-chart-tip{position:absolute;bottom:100%;left:50%;transform:translate(-50%,-6px);display:flex;flex-direction:column;gap:2px;padding:var(--sp-2) var(--sp-3);background:var(--surface-card);border:1px solid var(--border-default);border-radius:var(--radius-2);box-shadow:var(--shadow-2);font:var(--type-caption);color:var(--text-primary);white-space:nowrap;opacity:0;pointer-events:none;z-index:1}
928
- .pire-chart-tip-row{font-variant-numeric:tabular-nums;color:var(--text-secondary)}
929
- .pire-chart-band:hover .pire-chart-tip,.pire-chart-bar:hover .pire-chart-tip{opacity:1}
930
- .pire-chart-bar .pire-chart-tip{bottom:auto;top:50%;left:100%;transform:translate(var(--sp-2),-50%)}
3488
+ .pire-chart-tip {
3489
+ position: absolute;
3490
+ bottom: 100%;
3491
+ left: 50%;
3492
+ transform: translate(-50%, -6px);
3493
+ display: flex;
3494
+ flex-direction: column;
3495
+ gap: 2px;
3496
+ padding: var(--sp-2) var(--sp-3);
3497
+ background: var(--surface-card);
3498
+ border: 1px solid var(--border-default);
3499
+ border-radius: var(--radius-2);
3500
+ box-shadow: var(--shadow-2);
3501
+ font: var(--type-caption);
3502
+ color: var(--text-primary);
3503
+ white-space: nowrap;
3504
+ opacity: 0;
3505
+ pointer-events: none;
3506
+ z-index: 1;
3507
+ }
3508
+ .pire-chart-tip-row {
3509
+ font-variant-numeric: tabular-nums;
3510
+ color: var(--text-secondary);
3511
+ }
3512
+ .pire-chart-band:hover .pire-chart-tip,
3513
+ .pire-chart-bar:hover .pire-chart-tip {
3514
+ opacity: 1;
3515
+ }
3516
+ .pire-chart-bar .pire-chart-tip {
3517
+ bottom: auto;
3518
+ top: 50%;
3519
+ left: 100%;
3520
+ transform: translate(var(--sp-2), -50%);
3521
+ }
931
3522
 
932
3523
  /* ---- Charts: donut -------------------------------------------------------- */
933
- .pire-chart-donut{position:relative;display:flex;align-items:center;justify-content:center}
934
- .pire-chart-arc{fill:none;transition:opacity var(--dur-base) var(--ease-standard)}
935
- .pire-chart-arc[data-hovered="true"]{opacity:.78}
936
- .pire-chart-donut-center{position:absolute;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;pointer-events:none}
937
- .pire-chart-donut-value{font:var(--type-numeric);font-variant-numeric:tabular-nums;color:var(--text-primary)}
938
- .pire-chart-donut-caption{font:var(--type-caption);color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
939
-
940
- .pire-chart-table table{width:100%;border-collapse:collapse;font:var(--type-caption)}
941
- .pire-chart-table caption{text-align:left;padding-block-end:var(--sp-2);color:var(--text-secondary)}
942
- .pire-chart-table th,.pire-chart-table td{padding:var(--sp-1) var(--sp-2);border-block-end:1px solid var(--border-subtle);text-align:left;color:var(--text-primary)}
943
- .pire-chart-table td{font-variant-numeric:tabular-nums}
3524
+ .pire-chart-donut {
3525
+ position: relative;
3526
+ display: flex;
3527
+ align-items: center;
3528
+ justify-content: center;
3529
+ }
3530
+ .pire-chart-arc {
3531
+ fill: none;
3532
+ transition: opacity var(--dur-base) var(--ease-standard);
3533
+ }
3534
+ .pire-chart-arc[data-hovered="true"] {
3535
+ opacity: 0.78;
3536
+ }
3537
+ .pire-chart-donut-center {
3538
+ position: absolute;
3539
+ display: flex;
3540
+ flex-direction: column;
3541
+ align-items: center;
3542
+ gap: 2px;
3543
+ text-align: center;
3544
+ pointer-events: none;
3545
+ }
3546
+ .pire-chart-donut-value {
3547
+ font: var(--type-numeric);
3548
+ font-variant-numeric: tabular-nums;
3549
+ color: var(--text-primary);
3550
+ }
3551
+ .pire-chart-donut-caption {
3552
+ font: var(--type-caption);
3553
+ color: var(--text-secondary);
3554
+ overflow: hidden;
3555
+ text-overflow: ellipsis;
3556
+ white-space: nowrap;
3557
+ max-width: 100%;
3558
+ }
3559
+
3560
+ .pire-chart-table table {
3561
+ width: 100%;
3562
+ border-collapse: collapse;
3563
+ font: var(--type-caption);
3564
+ }
3565
+ .pire-chart-table caption {
3566
+ text-align: left;
3567
+ padding-block-end: var(--sp-2);
3568
+ color: var(--text-secondary);
3569
+ }
3570
+ .pire-chart-table th,
3571
+ .pire-chart-table td {
3572
+ padding: var(--sp-1) var(--sp-2);
3573
+ border-block-end: 1px solid var(--border-subtle);
3574
+ text-align: left;
3575
+ color: var(--text-primary);
3576
+ }
3577
+ .pire-chart-table td {
3578
+ font-variant-numeric: tabular-nums;
3579
+ }
944
3580
 
945
3581
  /* ---- ValueHelpField ------------------------------------------------------ */
946
3582
  /* The triggers sit inside .pire-control, flush with its trailing edge. `stretch` makes them the
@@ -950,40 +3586,96 @@
950
3586
  default alignment centres it — right for the unit strings it usually holds, wrong here — so it
951
3587
  stretches and becomes a flex parent; without both, the buttons collapse to their 20px content
952
3588
  height and float in the middle of a 40px control. */
953
- .pire-control:has(.pire-valuehelp-actions) .pire-affix{align-self:stretch;display:flex}
954
- .pire-valuehelp-actions{display:flex;align-items:stretch;margin-inline-start:calc(var(--sp-2) * -1);margin-inline-end:calc(var(--control-pad-x) * -1)}
955
- .pire-valuehelp-actions .pire-iconbtn{height:auto;border-radius:0;border-inline-start:1px solid var(--border-field)}
3589
+ .pire-control:has(.pire-valuehelp-actions) .pire-affix {
3590
+ align-self: stretch;
3591
+ display: flex;
3592
+ }
3593
+ .pire-valuehelp-actions {
3594
+ display: flex;
3595
+ align-items: stretch;
3596
+ margin-inline-start: calc(var(--sp-2) * -1);
3597
+ margin-inline-end: calc(var(--control-pad-x) * -1);
3598
+ }
3599
+ .pire-valuehelp-actions .pire-iconbtn {
3600
+ height: auto;
3601
+ border-radius: 0;
3602
+ border-inline-start: 1px solid var(--border-field);
3603
+ }
956
3604
  /* The control's *inner* corner is its radius less its border, so matching --radius-1 exactly would
957
3605
  leave the button proud of the curve by a pixel. Only the last button rounds. */
958
- .pire-valuehelp-actions .pire-iconbtn:last-child{border-start-end-radius:calc(var(--radius-1) - 1px);border-end-end-radius:calc(var(--radius-1) - 1px)}
3606
+ .pire-valuehelp-actions .pire-iconbtn:last-child {
3607
+ border-start-end-radius: calc(var(--radius-1) - 1px);
3608
+ border-end-end-radius: calc(var(--radius-1) - 1px);
3609
+ }
959
3610
  /* A tint rather than a ring. The control already rings on focus-within, so focus is visible; what
960
3611
  that ring cannot say is *which* of two buttons has it. An inset outline said so but collided
961
3612
  with the control's own border and read as a doubled edge. */
962
- .pire-valuehelp-actions .pire-iconbtn[data-focus-visible]{outline:none;background:var(--surface-selected);color:var(--accent-subtle-fg)}
3613
+ .pire-valuehelp-actions .pire-iconbtn[data-focus-visible] {
3614
+ outline: none;
3615
+ background: var(--surface-selected);
3616
+ color: var(--accent-subtle-fg);
3617
+ }
963
3618
 
964
3619
  /* ---- ValueHelpDialog: multi-select --------------------------------------- */
965
3620
  /* Select-all / clear shortcuts plus the running count, above the table in `selectionMode="multiple"`.
966
3621
  Wraps rather than truncates: the count must stay legible at the narrow end of `size="lg"`. */
967
- .pire-valuehelp-selectionbar{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap}
3622
+ .pire-valuehelp-selectionbar {
3623
+ display: flex;
3624
+ align-items: center;
3625
+ gap: var(--sp-3);
3626
+ flex-wrap: wrap;
3627
+ }
968
3628
  /* Pushed to the far edge so the two action buttons stay a pair on the left, matching the running
969
3629
  total's usual place at the end of a toolbar rather than between two unrelated actions. */
970
- .pire-valuehelp-count{margin-inline-start:auto;font:var(--type-caption);color:var(--text-secondary);font-variant-numeric:tabular-nums}
3630
+ .pire-valuehelp-count {
3631
+ margin-inline-start: auto;
3632
+ font: var(--type-caption);
3633
+ color: var(--text-secondary);
3634
+ font-variant-numeric: tabular-nums;
3635
+ }
971
3636
 
972
3637
  /* ---- Icon --------------------------------------------------------------- */
973
3638
  /* Development-only marker for a name that resolved to no glyph. Rendered by Icon in dev builds
974
3639
  only, so it never reaches a user; it exists so a typo is visible on the page rather than only in
975
3640
  a console warning. Sized from the host span, so the box a typo leaves stays the icon's size. */
976
- .pire-icon-missing{display:block;width:100%;height:100%;box-sizing:border-box;border:1px dashed var(--status-negative-fg);border-radius:2px}
3641
+ .pire-icon-missing {
3642
+ display: block;
3643
+ width: 100%;
3644
+ height: 100%;
3645
+ box-sizing: border-box;
3646
+ border: 1px dashed var(--status-negative-fg);
3647
+ border-radius: 2px;
3648
+ }
977
3649
 
978
3650
  /* ---- Kbd ---------------------------------------------------------------- */
979
3651
  /* min-width equals the height, so a single character is a square cap and a word like "esc" grows
980
3652
  sideways from it rather than every cap being sized for the longest one. */
981
- .pire-kbd{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 var(--sp-1);border:1px solid var(--border-default);border-radius:var(--radius-1);background:var(--surface-card);font:var(--type-code);color:var(--text-secondary);white-space:nowrap}
982
- .pire-kbd[data-size="sm"]{min-width:16px;height:16px;font-size:11px}
3653
+ .pire-kbd {
3654
+ display: inline-flex;
3655
+ align-items: center;
3656
+ justify-content: center;
3657
+ min-width: 20px;
3658
+ height: 20px;
3659
+ padding: 0 var(--sp-1);
3660
+ border: 1px solid var(--border-default);
3661
+ border-radius: var(--radius-1);
3662
+ background: var(--surface-card);
3663
+ font: var(--type-code);
3664
+ color: var(--text-secondary);
3665
+ white-space: nowrap;
3666
+ }
3667
+ .pire-kbd[data-size="sm"] {
3668
+ min-width: 16px;
3669
+ height: 16px;
3670
+ font-size: 11px;
3671
+ }
983
3672
  /* Lives here rather than in the Menu section so it follows the base rule it refines. A disabled
984
3673
  row must fade its caps too, or the shortcut is the one part of the row still looking live on a
985
3674
  command the user cannot run. */
986
- .pire-menu-item[data-disabled] .pire-kbd{color:var(--text-disabled);border-color:var(--border-subtle)}
3675
+ .pire-menu-item[data-disabled] .pire-kbd {
3676
+ color: var(--text-disabled);
3677
+ border-color: var(--border-subtle);
3678
+ }
987
3679
 
988
3680
  /* ---- SplitPane ---------------------------------------------------------- */
989
3681
  /* A **container** query, not a media query: this is a layout primitive that can sit inside a shell
@@ -992,128 +3684,443 @@
992
3684
 
993
3685
  45rem is the width below which two columns stop being two columns — the list at its default
994
3686
  24rem plus a detail pane narrow enough to be useless. */
995
- .pire-split{container-type:inline-size;container-name:pire-split;display:flex;min-height:0;height:100%;overflow:hidden;background:var(--surface-card)}
3687
+ .pire-split {
3688
+ container-type: inline-size;
3689
+ container-name: pire-split;
3690
+ display: flex;
3691
+ min-height: 0;
3692
+ height: 100%;
3693
+ overflow: hidden;
3694
+ background: var(--surface-card);
3695
+ }
996
3696
  /* Each pane scrolls on its own. `min-height:0` on both is what lets them do that inside a flex
997
3697
  parent, which otherwise sizes them to their content and pushes the scroll up to the page. */
998
- .pire-split-list{flex:0 0 var(--pire-split-list-w,24rem);min-width:0;min-height:0;overflow:auto;border-inline-end:1px solid var(--border-subtle)}
3698
+ .pire-split-list {
3699
+ flex: 0 0 var(--pire-split-list-w, 24rem);
3700
+ min-width: 0;
3701
+ min-height: 0;
3702
+ overflow: auto;
3703
+ border-inline-end: 1px solid var(--border-subtle);
3704
+ }
999
3705
  /* Block, not flex. As a flex column its children shrank to fit instead of overflowing, so tall
1000
3706
  detail content was squashed into the pane rather than scrolling inside it. */
1001
- .pire-split-detail{flex:1;min-width:0;min-height:0;overflow:auto}
1002
- .pire-split-empty{min-height:100%;display:grid;place-items:center;padding:var(--sp-8);text-align:center;color:var(--text-secondary)}
3707
+ .pire-split-detail {
3708
+ flex: 1;
3709
+ min-width: 0;
3710
+ min-height: 0;
3711
+ overflow: auto;
3712
+ }
3713
+ .pire-split-empty {
3714
+ min-height: 100%;
3715
+ display: grid;
3716
+ place-items: center;
3717
+ padding: var(--sp-8);
3718
+ text-align: center;
3719
+ color: var(--text-secondary);
3720
+ }
1003
3721
  /* Present in the markup at every size and revealed by the query below, so returning to the list
1004
3722
  never depends on JavaScript having measured anything. */
1005
- .pire-split-back{display:none}
3723
+ .pire-split-back {
3724
+ display: none;
3725
+ }
1006
3726
 
1007
- @container pire-split (max-width: 45rem){
3727
+ @container pire-split (max-width: 45rem) {
1008
3728
  /* One column at a time. Which one depends on whether there is a record to read. */
1009
- .pire-split-list{flex:1 1 auto;border-inline-end:0}
1010
- .pire-split[data-has-detail="true"] .pire-split-list{display:none}
1011
- .pire-split:not([data-has-detail="true"]) .pire-split-detail{display:none}
1012
- .pire-split-back{display:flex;flex:0 0 auto;padding:var(--sp-2);border-block-end:1px solid var(--border-subtle);background:var(--surface-card);position:sticky;top:0;z-index:1}
3729
+ .pire-split-list {
3730
+ flex: 1 1 auto;
3731
+ border-inline-end: 0;
3732
+ }
3733
+ .pire-split[data-has-detail="true"] .pire-split-list {
3734
+ display: none;
3735
+ }
3736
+ .pire-split:not([data-has-detail="true"]) .pire-split-detail {
3737
+ display: none;
3738
+ }
3739
+ .pire-split-back {
3740
+ display: flex;
3741
+ flex: 0 0 auto;
3742
+ padding: var(--sp-2);
3743
+ border-block-end: 1px solid var(--border-subtle);
3744
+ background: var(--surface-card);
3745
+ position: sticky;
3746
+ top: 0;
3747
+ z-index: 1;
3748
+ }
1013
3749
  }
1014
3750
 
1015
3751
  /* ---- CommandPalette ----------------------------------------------------- */
1016
3752
  /* Anchored near the top rather than centred: the list grows downwards as it fills, and a centred
1017
3753
  palette would shift its own input under the caret while the user is still typing. */
1018
- .pire-cp-overlay{position:fixed;inset:0;z-index:950;display:flex;align-items:flex-start;justify-content:center;padding:var(--sp-6);padding-block-start:12vh;background:var(--surface-overlay);animation:pire-fade-in var(--dur-fast) var(--ease-entrance)}
1019
- .pire-cp-modal{display:flex;flex-direction:column;width:min(640px,100%);max-height:min(60vh,480px);background:var(--surface-raised);border-radius:var(--radius-2);box-shadow:var(--shadow-3);animation:pire-dialog-in var(--dur-base) var(--ease-entrance);outline:none;overflow:hidden}
1020
- .pire-cp-dialog{display:flex;flex-direction:column;min-height:0;outline:none}
1021
- .pire-cp-search{display:flex;align-items:center;gap:var(--sp-2);padding:0 var(--sp-4);border-block-end:1px solid var(--border-subtle);flex:0 0 auto}
1022
- .pire-cp-search-icon{flex:0 0 auto;color:var(--text-tertiary)}
3754
+ .pire-cp-overlay {
3755
+ position: fixed;
3756
+ inset: 0;
3757
+ z-index: 950;
3758
+ display: flex;
3759
+ align-items: flex-start;
3760
+ justify-content: center;
3761
+ padding: var(--sp-6);
3762
+ padding-block-start: 12vh;
3763
+ background: var(--surface-overlay);
3764
+ animation: pire-fade-in var(--dur-fast) var(--ease-entrance);
3765
+ }
3766
+ .pire-cp-modal {
3767
+ display: flex;
3768
+ flex-direction: column;
3769
+ width: min(640px, 100%);
3770
+ max-height: min(60vh, 480px);
3771
+ background: var(--surface-raised);
3772
+ border-radius: var(--radius-2);
3773
+ box-shadow: var(--shadow-3);
3774
+ animation: pire-dialog-in var(--dur-base) var(--ease-entrance);
3775
+ outline: none;
3776
+ overflow: hidden;
3777
+ }
3778
+ .pire-cp-dialog {
3779
+ display: flex;
3780
+ flex-direction: column;
3781
+ min-height: 0;
3782
+ outline: none;
3783
+ }
3784
+ .pire-cp-search {
3785
+ display: flex;
3786
+ align-items: center;
3787
+ gap: var(--sp-2);
3788
+ padding: 0 var(--sp-4);
3789
+ border-block-end: 1px solid var(--border-subtle);
3790
+ flex: 0 0 auto;
3791
+ }
3792
+ .pire-cp-search-icon {
3793
+ flex: 0 0 auto;
3794
+ color: var(--text-tertiary);
3795
+ }
1023
3796
  /* Borderless by design: the modal edge is the field's boundary, and a second border inside it
1024
3797
  would read as a control within a control. */
1025
- .pire-cp-input{flex:1;min-width:0;height:var(--control-h-lg);border:0;background:transparent;font:var(--type-h4);color:var(--text-primary)}
3798
+ .pire-cp-input {
3799
+ flex: 1;
3800
+ min-width: 0;
3801
+ height: var(--control-h-lg);
3802
+ border: 0;
3803
+ background: transparent;
3804
+ font: var(--type-h4);
3805
+ color: var(--text-primary);
3806
+ }
1026
3807
  /* No ring here, deliberately overriding base.css's global input outline. The palette takes the
1027
3808
  caret on open, and the input is the only focusable thing in it — the list is navigated by
1028
3809
  virtual focus, which never moves real focus off the input. So focus cannot be anywhere else
1029
3810
  while this is on screen, the caret is the indicator, and a ring around a full-width borderless
1030
3811
  field reads as a stray box rather than as focus. This reasoning does not transfer: on any field
1031
3812
  sitting among other controls, the ring is what says which one is live. */
1032
- .pire-cp-input:focus-visible{outline:none}
1033
- .pire-cp-input::placeholder{font:var(--type-body);color:var(--text-tertiary)}
3813
+ .pire-cp-input:focus-visible {
3814
+ outline: none;
3815
+ }
3816
+ .pire-cp-input::placeholder {
3817
+ font: var(--type-body);
3818
+ color: var(--text-tertiary);
3819
+ }
1034
3820
  /* Same reasoning as `.pire-input`'s rule: the browser's own search decoration is unstyleable and
1035
3821
  Chrome/Safari-only. The palette needs no replacement — Escape closes it outright. */
1036
- .pire-cp-input::-webkit-search-cancel-button{display:none}
1037
- .pire-cp-list{flex:1;min-height:0;overflow:auto;padding:var(--sp-1) 0;outline:none;display:flex;flex-direction:column}
3822
+ .pire-cp-input::-webkit-search-cancel-button {
3823
+ display: none;
3824
+ }
3825
+ .pire-cp-list {
3826
+ flex: 1;
3827
+ min-height: 0;
3828
+ overflow: auto;
3829
+ padding: var(--sp-1) 0;
3830
+ outline: none;
3831
+ display: flex;
3832
+ flex-direction: column;
3833
+ }
1038
3834
  /* Explicitly a column: the section is a flex child of .pire-cp-list, and leaving it as a block
1039
3835
  makes its rows depend on the default layout of whatever React Aria renders for a section. */
1040
- .pire-cp-section{display:flex;flex-direction:column}
1041
- .pire-cp-section-title{display:block;padding:var(--sp-1) var(--sp-4);font:var(--type-label);letter-spacing:var(--ls-caps);text-transform:uppercase;color:var(--text-secondary)}
3836
+ .pire-cp-section {
3837
+ display: flex;
3838
+ flex-direction: column;
3839
+ }
3840
+ .pire-cp-section-title {
3841
+ display: block;
3842
+ padding: var(--sp-1) var(--sp-4);
3843
+ font: var(--type-label);
3844
+ letter-spacing: var(--ls-caps);
3845
+ text-transform: uppercase;
3846
+ color: var(--text-secondary);
3847
+ }
1042
3848
  /* The rows are Menu's, so they inherit its focus, tone and disabled treatment; only the gutter
1043
3849
  widens to match the palette's larger input. */
1044
- .pire-cp-list .pire-menu-item{padding-inline:var(--sp-4)}
1045
- .pire-cp-status{padding:var(--sp-4);text-align:center;font:var(--type-body);color:var(--text-secondary)}
1046
- .pire-cp-foot{flex:0 0 auto;display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-2) var(--sp-4);border-block-start:1px solid var(--border-subtle);background:var(--surface-sunken)}
1047
- .pire-cp-hint{display:flex;align-items:center;gap:var(--sp-1);font:var(--type-caption);color:var(--text-secondary)}
1048
- .pire-cp-loading{padding:var(--sp-1) var(--sp-4);font:var(--type-caption);color:var(--text-secondary);border-block-end:1px solid var(--border-subtle)}
3850
+ .pire-cp-list .pire-menu-item {
3851
+ padding-inline: var(--sp-4);
3852
+ }
3853
+ .pire-cp-status {
3854
+ padding: var(--sp-4);
3855
+ text-align: center;
3856
+ font: var(--type-body);
3857
+ color: var(--text-secondary);
3858
+ }
3859
+ .pire-cp-foot {
3860
+ flex: 0 0 auto;
3861
+ display: flex;
3862
+ align-items: center;
3863
+ gap: var(--sp-4);
3864
+ padding: var(--sp-2) var(--sp-4);
3865
+ border-block-start: 1px solid var(--border-subtle);
3866
+ background: var(--surface-sunken);
3867
+ }
3868
+ .pire-cp-hint {
3869
+ display: flex;
3870
+ align-items: center;
3871
+ gap: var(--sp-1);
3872
+ font: var(--type-caption);
3873
+ color: var(--text-secondary);
3874
+ }
3875
+ .pire-cp-loading {
3876
+ padding: var(--sp-1) var(--sp-4);
3877
+ font: var(--type-caption);
3878
+ color: var(--text-secondary);
3879
+ border-block-end: 1px solid var(--border-subtle);
3880
+ }
1049
3881
 
1050
3882
  /* ---- NumPad --------------------------------------------------------------- */
1051
- .pire-numpad{display:flex;flex-direction:column;gap:var(--sp-3)}
1052
- .pire-numpad-target{font:var(--type-body-strong);color:var(--text-secondary)}
1053
- .pire-numpad-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--sp-2)}
3883
+ .pire-numpad {
3884
+ display: flex;
3885
+ flex-direction: column;
3886
+ gap: var(--sp-3);
3887
+ }
3888
+ .pire-numpad-target {
3889
+ font: var(--type-body-strong);
3890
+ color: var(--text-secondary);
3891
+ }
3892
+ .pire-numpad-grid {
3893
+ display: grid;
3894
+ grid-template-columns: repeat(4, 1fr);
3895
+ gap: var(--sp-2);
3896
+ }
1054
3897
  /* Larger than a form button's own type on purpose: this grid is read and pressed without looking
1055
3898
  closely at the screen, so the digits carry more weight than `.pire-btn`'s default. */
1056
- .pire-numpad-key{font:var(--type-h3)}
1057
- .pire-numpad-key[data-span="2"]{grid-column:span 2}
3899
+ .pire-numpad-key {
3900
+ font: var(--type-h3);
3901
+ }
3902
+ .pire-numpad-key[data-span="2"] {
3903
+ grid-column: span 2;
3904
+ }
1058
3905
 
1059
3906
  /* ---- RecordCard -----------------------------------------------------------
1060
3907
  A chosen master-data record at field scale. Deliberately not a `Card`: that is a section
1061
3908
  container with a heading rule and its own elevation, and the two would fight over padding. */
1062
- .pire-recordcard{display:flex;align-items:center;gap:var(--sp-3);min-height:var(--control-h-lg);padding:var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);border:1px solid var(--border-default);border-radius:var(--radius-2);background:var(--surface-sunken)}
1063
- .pire-recordcard[data-disabled="true"]{color:var(--text-disabled);background:var(--surface-disabled)}
1064
- .pire-recordcard-tile{display:inline-flex;align-items:center;justify-content:center;width:var(--sp-8);height:var(--sp-8);flex-shrink:0;border-radius:var(--radius-1);background:var(--surface-selected);color:var(--accent-subtle-fg)}
1065
- .pire-recordcard-body{display:flex;flex-direction:column;min-width:0;flex:1}
1066
- .pire-recordcard-title{font:var(--type-body-strong);color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1067
- .pire-recordcard-sub{font:var(--type-micro);color:var(--text-tertiary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1068
- .pire-recordcard[data-disabled="true"] .pire-recordcard-sub{color:var(--text-disabled)}
1069
- .pire-recordcard-action{flex-shrink:0}
3909
+ .pire-recordcard {
3910
+ display: flex;
3911
+ align-items: center;
3912
+ gap: var(--sp-3);
3913
+ min-height: var(--control-h-lg);
3914
+ padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
3915
+ border: 1px solid var(--border-default);
3916
+ border-radius: var(--radius-2);
3917
+ background: var(--surface-sunken);
3918
+ }
3919
+ .pire-recordcard[data-disabled="true"] {
3920
+ color: var(--text-disabled);
3921
+ background: var(--surface-disabled);
3922
+ }
3923
+ .pire-recordcard-tile {
3924
+ display: inline-flex;
3925
+ align-items: center;
3926
+ justify-content: center;
3927
+ width: var(--sp-8);
3928
+ height: var(--sp-8);
3929
+ flex-shrink: 0;
3930
+ border-radius: var(--radius-1);
3931
+ background: var(--surface-selected);
3932
+ color: var(--accent-subtle-fg);
3933
+ }
3934
+ .pire-recordcard-body {
3935
+ display: flex;
3936
+ flex-direction: column;
3937
+ min-width: 0;
3938
+ flex: 1;
3939
+ }
3940
+ .pire-recordcard-title {
3941
+ font: var(--type-body-strong);
3942
+ color: inherit;
3943
+ white-space: nowrap;
3944
+ overflow: hidden;
3945
+ text-overflow: ellipsis;
3946
+ }
3947
+ .pire-recordcard-sub {
3948
+ font: var(--type-micro);
3949
+ color: var(--text-tertiary);
3950
+ white-space: nowrap;
3951
+ overflow: hidden;
3952
+ text-overflow: ellipsis;
3953
+ }
3954
+ .pire-recordcard[data-disabled="true"] .pire-recordcard-sub {
3955
+ color: var(--text-disabled);
3956
+ }
3957
+ .pire-recordcard-action {
3958
+ flex-shrink: 0;
3959
+ }
1070
3960
 
1071
3961
  /* ---- ViewSwitcher ---------------------------------------------------------
1072
3962
  The saved-view trigger at the head of a list toolbar. The dirty marker is text, not a dot:
1073
3963
  a state carried only by colour is one a screen-reader user never learns. */
1074
- .pire-viewswitcher{display:inline-flex;align-items:center;gap:var(--sp-2);height:var(--control-h-sm);padding:0 var(--sp-2);border:1px solid transparent;border-radius:var(--radius-1);background:transparent;color:var(--text-primary);font:var(--type-body);cursor:pointer;outline:none;white-space:nowrap;transition:var(--transition-control)}
1075
- .pire-viewswitcher[data-hovered]{background:var(--surface-hover)}
1076
- .pire-viewswitcher[data-pressed]{background:var(--surface-active)}
1077
- .pire-viewswitcher[data-focus-visible]{outline:var(--focus-w) solid var(--focus-color);outline-offset:var(--focus-offset)}
1078
- .pire-viewswitcher[data-disabled]{color:var(--text-disabled);cursor:default;background:transparent}
1079
- .pire-viewswitcher-name{font:var(--type-body-strong);max-width:22ch;overflow:hidden;text-overflow:ellipsis}
1080
- .pire-viewswitcher-dirty{font:var(--type-caption);color:var(--text-tertiary)}
1081
- .pire-viewswitcher[data-disabled] .pire-viewswitcher-dirty{color:var(--text-disabled)}
3964
+ .pire-viewswitcher {
3965
+ display: inline-flex;
3966
+ align-items: center;
3967
+ gap: var(--sp-2);
3968
+ height: var(--control-h-sm);
3969
+ padding: 0 var(--sp-2);
3970
+ border: 1px solid transparent;
3971
+ border-radius: var(--radius-1);
3972
+ background: transparent;
3973
+ color: var(--text-primary);
3974
+ font: var(--type-body);
3975
+ cursor: pointer;
3976
+ outline: none;
3977
+ white-space: nowrap;
3978
+ transition: var(--transition-control);
3979
+ }
3980
+ .pire-viewswitcher[data-hovered] {
3981
+ background: var(--surface-hover);
3982
+ }
3983
+ .pire-viewswitcher[data-pressed] {
3984
+ background: var(--surface-active);
3985
+ }
3986
+ .pire-viewswitcher[data-focus-visible] {
3987
+ outline: var(--focus-w) solid var(--focus-color);
3988
+ outline-offset: var(--focus-offset);
3989
+ }
3990
+ .pire-viewswitcher[data-disabled] {
3991
+ color: var(--text-disabled);
3992
+ cursor: default;
3993
+ background: transparent;
3994
+ }
3995
+ .pire-viewswitcher-name {
3996
+ font: var(--type-body-strong);
3997
+ max-width: 22ch;
3998
+ overflow: hidden;
3999
+ text-overflow: ellipsis;
4000
+ }
4001
+ .pire-viewswitcher-dirty {
4002
+ font: var(--type-caption);
4003
+ color: var(--text-tertiary);
4004
+ }
4005
+ .pire-viewswitcher[data-disabled] .pire-viewswitcher-dirty {
4006
+ color: var(--text-disabled);
4007
+ }
1082
4008
 
1083
4009
  /* ---- BarList --------------------------------------------------------------
1084
4010
  A ranking, not a chart: the status ramp rather than --viz-*, because these are value states
1085
4011
  and a series colour must never be mistakable for one. The figure is always text — the bar is
1086
4012
  a second encoding of a number that is already readable, which is what keeps the list usable
1087
4013
  without sight. */
1088
- .pire-barlist{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
1089
- .pire-barlist-row{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-2) 0;border-bottom:1px solid var(--border-subtle)}
1090
- .pire-barlist-row:last-child{border-bottom:0}
1091
- .pire-barlist-main{display:flex;flex-direction:column;gap:var(--sp-1);flex:1;min-width:0}
1092
- .pire-barlist-label{font:var(--type-body);color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1093
- .pire-barlist-track{display:block;height:4px;border-radius:var(--radius-pill);background:var(--gray-20);overflow:hidden}
4014
+ .pire-barlist {
4015
+ display: flex;
4016
+ flex-direction: column;
4017
+ margin: 0;
4018
+ padding: 0;
4019
+ list-style: none;
4020
+ }
4021
+ .pire-barlist-row {
4022
+ display: flex;
4023
+ align-items: center;
4024
+ gap: var(--sp-3);
4025
+ padding: var(--sp-2) 0;
4026
+ border-bottom: 1px solid var(--border-subtle);
4027
+ }
4028
+ .pire-barlist-row:last-child {
4029
+ border-bottom: 0;
4030
+ }
4031
+ .pire-barlist-main {
4032
+ display: flex;
4033
+ flex-direction: column;
4034
+ gap: var(--sp-1);
4035
+ flex: 1;
4036
+ min-width: 0;
4037
+ }
4038
+ .pire-barlist-label {
4039
+ font: var(--type-body);
4040
+ color: var(--text-primary);
4041
+ white-space: nowrap;
4042
+ overflow: hidden;
4043
+ text-overflow: ellipsis;
4044
+ }
4045
+ .pire-barlist-track {
4046
+ display: block;
4047
+ height: 4px;
4048
+ border-radius: var(--radius-pill);
4049
+ background: var(--gray-20);
4050
+ overflow: hidden;
4051
+ }
1094
4052
  /* --accent-bg, not a ramp step: --teal-50 does not re-point in themes.css (0 hits), so it would paint the same colour in light and dark, and colors.css labels the teal family "charts" — the one ramp this value-state readout must not default to. */
1095
- .pire-barlist-fill{display:block;height:100%;background:var(--accent-bg)}
1096
- .pire-barlist-figure{display:flex;flex-direction:column;align-items:flex-end;text-align:right;flex-shrink:0;min-width:74px}
1097
- .pire-barlist-value{font:var(--type-numeric);font-variant-numeric:tabular-nums;color:var(--text-numeric)}
1098
- .pire-barlist-hint{font:var(--type-micro);color:var(--text-tertiary)}
1099
- .pire-barlist-row[data-tone="positive"] .pire-barlist-value{color:var(--status-positive-fg)}
1100
- .pire-barlist-row[data-tone="positive"] .pire-barlist-fill{background:var(--status-positive-fg)}
1101
- .pire-barlist-row[data-tone="critical"] .pire-barlist-value{color:var(--status-critical-fg)}
1102
- .pire-barlist-row[data-tone="critical"] .pire-barlist-fill{background:var(--status-critical-fg)}
1103
- .pire-barlist-row[data-tone="negative"] .pire-barlist-value{color:var(--status-negative-fg)}
1104
- .pire-barlist-row[data-tone="negative"] .pire-barlist-fill{background:var(--status-negative-fg)}
4053
+ .pire-barlist-fill {
4054
+ display: block;
4055
+ height: 100%;
4056
+ background: var(--accent-bg);
4057
+ }
4058
+ .pire-barlist-figure {
4059
+ display: flex;
4060
+ flex-direction: column;
4061
+ align-items: flex-end;
4062
+ text-align: right;
4063
+ flex-shrink: 0;
4064
+ min-width: 74px;
4065
+ }
4066
+ .pire-barlist-value {
4067
+ font: var(--type-numeric);
4068
+ font-variant-numeric: tabular-nums;
4069
+ color: var(--text-numeric);
4070
+ }
4071
+ .pire-barlist-hint {
4072
+ font: var(--type-micro);
4073
+ color: var(--text-tertiary);
4074
+ }
4075
+ .pire-barlist-row[data-tone="positive"] .pire-barlist-value {
4076
+ color: var(--status-positive-fg);
4077
+ }
4078
+ .pire-barlist-row[data-tone="positive"] .pire-barlist-fill {
4079
+ background: var(--status-positive-fg);
4080
+ }
4081
+ .pire-barlist-row[data-tone="critical"] .pire-barlist-value {
4082
+ color: var(--status-critical-fg);
4083
+ }
4084
+ .pire-barlist-row[data-tone="critical"] .pire-barlist-fill {
4085
+ background: var(--status-critical-fg);
4086
+ }
4087
+ .pire-barlist-row[data-tone="negative"] .pire-barlist-value {
4088
+ color: var(--status-negative-fg);
4089
+ }
4090
+ .pire-barlist-row[data-tone="negative"] .pire-barlist-fill {
4091
+ background: var(--status-negative-fg);
4092
+ }
1105
4093
 
1106
4094
  /* ---- ConfirmDialog ---------------------------------------------------------
1107
4095
  The figures a commit dialog turns on, above the consequence — the numbers are the argument. */
1108
- .pire-confirm-facts{margin-bottom:var(--sp-3)}
4096
+ .pire-confirm-facts {
4097
+ margin-bottom: var(--sp-3);
4098
+ }
1109
4099
 
1110
4100
  /* ---- Reduced motion --------------------------------------------------- */
1111
- @media (prefers-reduced-motion: reduce){.pire-modal,.pire-toast,.pire-popover,.pire-tooltip,.pire-sidepanel,.pire-cp-overlay,.pire-cp-modal{animation:none}
1112
- /* The skeleton also drops its background sweep, not just the animation: an infinite shimmer is
4101
+ @media (prefers-reduced-motion: reduce) {
4102
+ .pire-modal,
4103
+ .pire-toast,
4104
+ .pire-popover,
4105
+ .pire-tooltip,
4106
+ .pire-sidepanel,
4107
+ .pire-cp-overlay,
4108
+ .pire-cp-modal {
4109
+ animation: none;
4110
+ }
4111
+ /* The skeleton also drops its background sweep, not just the animation: an infinite shimmer is
1113
4112
  exactly the "large, repeated motion" the preference is asking us to stop, and the placeholder
1114
4113
  still reads from its shape and surface contrast alone. */
1115
- .pire-skeleton{animation:none;background-image:none}
1116
- /* !important is the point here: this must beat every component transition, including any a
4114
+ .pire-skeleton {
4115
+ animation: none;
4116
+ background-image: none;
4117
+ }
4118
+ /* !important is the point here: this must beat every component transition, including any a
1117
4119
  consuming app has layered on top. Honouring the OS motion preference outranks the style rule. */
1118
- /* biome-ignore lint/complexity/noImportantStyles: accessibility override must win unconditionally */
1119
- *,*::before,*::after{transition-duration:1ms!important}}
4120
+ *,
4121
+ *::before,
4122
+ *::after {
4123
+ /* biome-ignore lint/complexity/noImportantStyles: accessibility override must win unconditionally */
4124
+ transition-duration: 1ms !important;
4125
+ }
4126
+ }