@cameronsjo/artificer 0.27.0 → 0.29.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 (51) hide show
  1. package/README.md +17 -16
  2. package/bin/artificer.mjs +341 -5
  3. package/bin/lint-core.mjs +3 -2
  4. package/dist/react/chrome.d.ts +6 -2
  5. package/dist/react/chrome.d.ts.map +1 -1
  6. package/dist/react/chrome.js +4 -4
  7. package/dist/react/index.d.ts +4 -1
  8. package/dist/react/index.d.ts.map +1 -1
  9. package/dist/react/index.js +2 -1
  10. package/dist/react/interactive.d.ts +52 -0
  11. package/dist/react/interactive.d.ts.map +1 -0
  12. package/dist/react/interactive.js +210 -0
  13. package/dist/react/primitives.d.ts +20 -5
  14. package/dist/react/primitives.d.ts.map +1 -1
  15. package/dist/react/primitives.js +37 -9
  16. package/package.json +6 -1
  17. package/reference/SKILL.md +13 -9
  18. package/src/artificer-options.js +1 -1
  19. package/src/artificer-sploot.js +303 -0
  20. package/src/artificer-tailwind.css +86 -0
  21. package/src/artificer-texture.css +129 -23
  22. package/src/artificer-theme.js +31 -4
  23. package/src/artificer-whimsy.css +43 -34
  24. package/src/artificer-whimsy.js +1 -1
  25. package/src/artificer.css +392 -120
  26. package/src/assets/app-icon-1024.png +0 -0
  27. package/src/assets/app-icon.svg +1 -0
  28. package/src/assets/favicon-16.png +0 -0
  29. package/src/assets/favicon-180.png +0 -0
  30. package/src/assets/favicon-32.png +0 -0
  31. package/src/assets/favicon-48.png +0 -0
  32. package/src/assets/favicon-512.png +0 -0
  33. package/src/assets/favicon-legacy.svg +5 -0
  34. package/src/assets/favicon.ico +0 -0
  35. package/src/assets/favicon.svg +1 -5
  36. package/src/assets/fonts/bricolage-grotesque-variable.woff2 +0 -0
  37. package/src/assets/fonts/jetbrains-mono-blocks.woff2 +0 -0
  38. package/src/assets/fonts/recursive-variable.woff2 +0 -0
  39. package/src/assets/og-image.png +0 -0
  40. package/src/assets/og-image.svg +14 -20
  41. package/src/primitives.json +74 -2
  42. package/src/print.css +4 -3
  43. package/src/theme-bootstrap.html +4 -2
  44. package/src/tokens.json +4 -4
  45. package/types/sploot.d.ts +48 -0
  46. package/src/assets/fonts/ia-writer-quattro-s-400-italic.woff2 +0 -0
  47. package/src/assets/fonts/ia-writer-quattro-s-400.woff2 +0 -0
  48. package/src/assets/fonts/ia-writer-quattro-s-700-italic.woff2 +0 -0
  49. package/src/assets/fonts/ia-writer-quattro-s-700.woff2 +0 -0
  50. package/src/assets/fonts/ia-writer-quattro-v-400-italic.woff2 +0 -0
  51. package/src/assets/fonts/ia-writer-quattro-v-400.woff2 +0 -0
package/src/artificer.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /* ═══════════════════════════════════════════════════════════════════════════
2
- ARTIFICER · Design tokens · v0.27.0 (apothecary × deco × speakeasy)
2
+ ARTIFICER · Design tokens · v0.29.0 (apothecary × deco × speakeasy)
3
3
  AuDHD-optimized, Ghostty-rooted, with warm Jazz-Age accents.
4
4
  Default theme = dark. Add data-theme="light" on <html> for ivory paper mode.
5
5
 
@@ -34,19 +34,19 @@
34
34
  DIAGRAMS primitives for hand-drawn SVG
35
35
  NAVIGATION the spine — .crumb (where am I) · .sidenav (what sections) ·
36
36
  .appbar (global chrome) · .tabs (switch view within a surface)
37
- BRAND wordmark (lowercase "artificer." + burnished stop)
37
+ BRAND wordmark (lowercase "artificer." + burnished stop) ·
38
+ Sploot the corgi (block-glyph critter; artificer-sploot.js)
38
39
  RESPONSIVE breakpoints · touch escalation · safe-area · table reflow
39
40
  PRIMITIVES v0.10.0 — avatar · accordion · selectable rows · date/time
40
41
  ═══════════════════════════════════════════════════════════════════════════ */
41
42
 
42
43
  /* ─── Self-hosted fonts ──────────────────────────────────────────────────
43
44
  JetBrains Mono — code, identifiers, numerals, dense tool body
44
- iA Writer Quattro S / V — the two roles split by surface (see FONTS.md):
45
- S is interface chrome (labels, controls, tabular UI numerals), V is
46
- body prose. No bare 'iA Writer Quattro' face ships — it was a duplicate
47
- of S/V's own glyph set with no role of its own.
45
+ Recursive — interface chrome (labels, controls, tabular UI numerals)
46
+ Bricolage Grotesque — body prose (see FONTS.md for the role split)
48
47
  All SIL OFL 1.1. Files live in src/assets/fonts/. See FONTS.md for the
49
- rationale and the Windows faux-bold disposition. */
48
+ rationale. Both are variable fonts: one file per family covers every
49
+ weight, so no weight is ever synthesized. */
50
50
  @font-face {
51
51
  font-family: 'JetBrains Mono';
52
52
  src: url('assets/fonts/jetbrains-mono-400.woff2') format('woff2');
@@ -62,44 +62,57 @@
62
62
  src: url('assets/fonts/jetbrains-mono-700.woff2') format('woff2');
63
63
  font-weight: 700; font-style: normal; font-display: swap;
64
64
  }
65
-
66
- /* iA Writer Quattro S — tabular-numeral variant. Interface chrome: labels,
67
- controls, badges, dense tabular UI numerals. Same metrics as Quattro, so
68
- the fallback chain doesn't reflow when this variant is missing. */
65
+ /* Box drawing, block elements, geometric shapes (U+2500–25FF). The three
66
+ faces above are Latin subsets without them, so text art — Sploot, `├──`
67
+ trees, `╭─╮` boxes, `●` dot matrices — fell back to the OS mono, whose
68
+ advance widths and block heights differ, and misaligned. One 3.4 KB file
69
+ (JetBrains Mono 2.304 Regular; block geometry is weight-independent)
70
+ extends the family by unicode-range, declared once per shipped weight: a
71
+ face whose weight descriptor differs lands in a separate matching group and
72
+ is never consulted for those weights. Regenerate: see FONTS.md. */
69
73
  @font-face {
70
- font-family: 'iA Writer Quattro S';
71
- src: url('assets/fonts/ia-writer-quattro-s-400.woff2') format('woff2');
74
+ font-family: 'JetBrains Mono';
75
+ src: url('assets/fonts/jetbrains-mono-blocks.woff2') format('woff2');
72
76
  font-weight: 400; font-style: normal; font-display: swap;
77
+ unicode-range: U+2500-25FF;
73
78
  }
74
79
  @font-face {
75
- font-family: 'iA Writer Quattro S';
76
- src: url('assets/fonts/ia-writer-quattro-s-400-italic.woff2') format('woff2');
77
- font-weight: 400; font-style: italic; font-display: swap;
80
+ font-family: 'JetBrains Mono';
81
+ src: url('assets/fonts/jetbrains-mono-blocks.woff2') format('woff2');
82
+ font-weight: 500; font-style: normal; font-display: swap;
83
+ unicode-range: U+2500-25FF;
78
84
  }
79
85
  @font-face {
80
- font-family: 'iA Writer Quattro S';
81
- src: url('assets/fonts/ia-writer-quattro-s-700.woff2') format('woff2');
86
+ font-family: 'JetBrains Mono';
87
+ src: url('assets/fonts/jetbrains-mono-blocks.woff2') format('woff2');
82
88
  font-weight: 700; font-style: normal; font-display: swap;
83
- }
84
- @font-face {
85
- font-family: 'iA Writer Quattro S';
86
- src: url('assets/fonts/ia-writer-quattro-s-700-italic.woff2') format('woff2');
87
- font-weight: 700; font-style: italic; font-display: swap;
89
+ unicode-range: U+2500-25FF;
88
90
  }
89
91
 
90
- /* iA Writer Quattro V — display variant (slightly tighter, more contrast).
91
- Body prose face. Only 400 weight ships from iA — a bold body run
92
- (headlines set on --font-body) synthesizes faux-bold in the browser,
93
- same as any face missing a weight. */
92
+ /* Recursive — interface chrome: labels, controls, badges, form fields, nav,
93
+ tabular UI numerals (its digits are fixed-width by default). Variable:
94
+ wght 300–1000 plus a slnt axis that serves italic as a true oblique.
95
+ Latin subset of the Sans Linear default (CASL 0, MONO 0). ONE face with
96
+ an oblique 0–15deg range covers upright and italic: a separate
97
+ `font-style: normal` face would tie with the range at 0deg, and the
98
+ browser would pick the later-declared one for upright text anyway. */
94
99
  @font-face {
95
- font-family: 'iA Writer Quattro V';
96
- src: url('assets/fonts/ia-writer-quattro-v-400.woff2') format('woff2');
97
- font-weight: 400; font-style: normal; font-display: swap;
100
+ font-family: 'Recursive';
101
+ src: url('assets/fonts/recursive-variable.woff2') format('woff2-variations'),
102
+ url('assets/fonts/recursive-variable.woff2') format('woff2');
103
+ font-weight: 300 1000; font-style: oblique 0deg 15deg; font-display: swap;
98
104
  }
105
+
106
+ /* Bricolage Grotesque — body prose: document surfaces, .meta, headline/body
107
+ type utilities. Variable: wght 200–800 plus an optical-size axis the
108
+ browser drives from font-size (font-optical-sizing: auto), so headlines
109
+ get the tighter display cut and body text the open text cut. No italic
110
+ ships upstream; italic prose is a synthesized slant. Latin subset. */
99
111
  @font-face {
100
- font-family: 'iA Writer Quattro V';
101
- src: url('assets/fonts/ia-writer-quattro-v-400-italic.woff2') format('woff2');
102
- font-weight: 400; font-style: italic; font-display: swap;
112
+ font-family: 'Bricolage Grotesque';
113
+ src: url('assets/fonts/bricolage-grotesque-variable.woff2') format('woff2-variations'),
114
+ url('assets/fonts/bricolage-grotesque-variable.woff2') format('woff2');
115
+ font-weight: 200 800; font-style: normal; font-display: swap;
103
116
  }
104
117
 
105
118
  /* ─── DARK (default) ──────────────────────────────────────────────────── */
@@ -159,15 +172,14 @@
159
172
 
160
173
  /* Type, radii, spacing, motion — identical across themes */
161
174
  --font-mono: 'JetBrains Mono', 'Berkeley Mono', ui-monospace, 'SF Mono', Menlo, monospace;
162
- /* iA Writer Quattro V — display/body variant. Body prose face: document
163
- surfaces, .meta, headline/body type utilities. Falls back to serif →
164
- system-ui. */
165
- --font-body: 'iA Writer Quattro V', 'Iowan Old Style', 'Charter',
166
- 'Source Sans 3', system-ui, -apple-system, sans-serif;
167
- /* iA Writer Quattro S — tabular-numeral variant. Interface chrome face:
168
- labels, controls, badges, form fields, nav, tabular UI numerals. */
169
- --font-interface: 'iA Writer Quattro S', 'Iowan Old Style', 'Charter',
170
- 'Source Sans 3', system-ui, -apple-system, sans-serif;
175
+ /* Bricolage Grotesque — body prose face: document surfaces, .meta,
176
+ headline/body type utilities. Falls back to Source Sans 3 → system-ui. */
177
+ --font-body: 'Bricolage Grotesque', 'Source Sans 3', system-ui,
178
+ -apple-system, sans-serif;
179
+ /* Recursive — interface chrome face: labels, controls, badges, form
180
+ fields, nav, tabular UI numerals. */
181
+ --font-interface: 'Recursive', 'Source Sans 3', system-ui,
182
+ -apple-system, sans-serif;
171
183
  /* --font-sans is a legacy alias kept resolvable for public-API back-compat —
172
184
  new rules use --font-body or --font-interface directly (see FONTS.md). */
173
185
  --font-sans: var(--font-body);
@@ -175,25 +187,25 @@
175
187
  /* Type sizes are REM (root = browser default, never overridden) so text
176
188
  honors the user's browser font-size preference, not just zoom. 1rem = 16px
177
189
  at default. Spacing/radii/component-internal px stay px on purpose. */
178
- --t-headline-lg-size: 1.75rem; --t-headline-lg-lh: 1.3; --t-headline-lg-ls: -0.01em; /* 28px */
179
- --t-headline-md-size: 1.375rem; --t-headline-md-lh: 1.35; /* 22px */
180
- --t-body-lg-size: 1rem; --t-body-lg-lh: 1.65; /* 16px */
181
- --t-body-md-size: 0.875rem; --t-body-md-lh: 1.6; /* 14px */
182
- --t-label-md-size: 0.8125rem; --t-label-md-lh: 1.3; /* 13px */
183
- --t-label-sm-size: 0.75rem; --t-label-sm-lh: 1.3; /* 12px */
184
- --t-label-xs-size: 0.6875rem; --t-label-xs-lh: 1.3; /* 11px — micro-chrome (v0.9.0 tier; restored v0.10.1) */
185
- --t-code-size: 0.875rem; --t-code-lh: 1.5; /* 14px */
186
-
187
- --letter-spacing-body: 0.01em;
188
- --word-spacing-body: 0.16em;
190
+ --t-headline-lg-size: 1.75rem; --t-headline-lg-lh: 1.3; /* @kind other */ --t-headline-lg-ls: -0.01em; /* @kind other */ /* 28px */
191
+ --t-headline-md-size: 1.375rem; --t-headline-md-lh: 1.35; /* @kind other */ /* 22px */
192
+ --t-body-lg-size: 1rem; --t-body-lg-lh: 1.65; /* @kind other */ /* 16px */
193
+ --t-body-md-size: 0.875rem; --t-body-md-lh: 1.6; /* @kind other */ /* 14px */
194
+ --t-label-md-size: 0.8125rem; --t-label-md-lh: 1.3; /* @kind other */ /* 13px */
195
+ --t-label-sm-size: 0.75rem; --t-label-sm-lh: 1.3; /* @kind other */ /* 12px */
196
+ --t-label-xs-size: 0.6875rem; --t-label-xs-lh: 1.3; /* @kind other */ /* 11px — micro-chrome (v0.9.0 tier; restored v0.10.1) */
197
+ --t-code-size: 0.875rem; --t-code-lh: 1.5; /* @kind other */ /* 14px */
198
+
199
+ --letter-spacing-body: 0.01em; /* @kind other */
200
+ --word-spacing-body: 0.16em; /* @kind other */
189
201
 
190
202
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-pill: 999px; /* fully-rounded pills: toggle track, chip */
191
203
 
192
204
  --s-xs: 4px; --s-sm: 8px; --s-md: 16px; --s-lg: 24px; --s-xl: 32px; --s-2xl: 48px; --s-3xl: 96px;
193
205
 
194
- --dur-instant: 80ms; --dur-fast: 160ms; --dur-max: 300ms;
195
- --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
196
- --ease-linear: linear; /* continuous translation only (motion pattern #02) */
206
+ --dur-instant: 80ms; /* @kind other */ --dur-fast: 160ms; /* @kind other */ --dur-max: 300ms; /* @kind other */
207
+ --ease: cubic-bezier(0.2, 0.7, 0.3, 1); /* @kind other */
208
+ --ease-linear: linear; /* @kind other */ /* continuous translation only (motion pattern #02) */
197
209
 
198
210
  /* Focus ring — tokenized so themes/consumers retune; a11y floor: never 0. */
199
211
  --focus-width: 2px;
@@ -205,15 +217,15 @@
205
217
  --shadow-popover: 0 2px 8px rgba(0, 0, 0, 0.30);
206
218
 
207
219
  /* z-index scale — six rungs, no improvising */
208
- --z-base: 1; /* in-flow */
209
- --z-raised: 10; /* sticky elements, dropdown triggers */
210
- --z-overlay: 100; /* sidebars, theme toggle */
211
- --z-popover: 1000; /* tooltips, popovers, dropdowns */
212
- --z-modal: 2000; /* dialogs, scrim + content */
213
- --z-toast: 3000; /* always-on-top notifications */
220
+ --z-base: 1; /* @kind other */ /* in-flow */
221
+ --z-raised: 10; /* @kind other */ /* sticky elements, dropdown triggers */
222
+ --z-overlay: 100; /* @kind other */ /* sidebars, theme toggle */
223
+ --z-popover: 1000; /* @kind other */ /* tooltips, popovers, dropdowns */
224
+ --z-modal: 2000; /* @kind other */ /* dialogs, scrim + content */
225
+ --z-toast: 3000; /* @kind other */ /* always-on-top notifications */
214
226
 
215
227
  /* Artificer v0.10.1 — baseline contract: see CLAUDE.md § Baseline contract */
216
- --art-version: "0.27.0";
228
+ --art-version: "0.29.0"; /* @kind other */
217
229
 
218
230
  color-scheme: dark;
219
231
  }
@@ -312,11 +324,20 @@
312
324
  }
313
325
 
314
326
  @media (prefers-reduced-motion: reduce) {
315
- :root { --dur-instant: 0ms; --dur-fast: 0ms; --dur-max: 0ms; }
327
+ :root { --dur-instant: 0ms; /* @kind other */ --dur-fast: 0ms; /* @kind other */ --dur-max: 0ms; /* @kind other */ }
316
328
  }
317
329
 
330
+ /* Cascade layer (#112): base and component rules live in `@layer artificer`
331
+ so consumer styles and Tailwind `@layer utilities` can override cleanly
332
+ without specificity wars. `@font-face` and `:root` custom properties stay
333
+ outside the layer. */
334
+ @layer artificer {
335
+
318
336
  /* ═══ Base ══════════════════════════════════════════════════════════════ */
319
337
  *, *::before, *::after { box-sizing: border-box; }
338
+ /* Honor the standard HTML hidden attribute even on display-setting primitives
339
+ (.btn, .cluster, .stack, etc.), which otherwise beat the UA rule (#581). */
340
+ [hidden] { display: none !important; }
320
341
 
321
342
  /* The root is NEVER overridden (#211). html stays at the browser preference
322
343
  (100% of the user's setting; 16px by default) so every rem-bound --t-*-size
@@ -361,12 +382,18 @@ body { font-size: var(--t-body-md-size); }
361
382
  to it, so they're re-declared explicitly below. */
362
383
  .surface-document, .surface-document * { font-family: var(--font-body); }
363
384
  /* code/kbd are bare-tag selectors ((0,0,1)) and lose to .surface-document *
364
- ((0,1,0)) on specificity, not source order — re-declared here to hold mono. */
365
- .surface-document code, .surface-document kbd { font-family: var(--font-mono); }
385
+ ((0,1,0)) on specificity, not source order — re-declared here to hold mono.
386
+ The universal rule also reaches every element INSIDE them, so a highlighter's
387
+ token <span>s (chroma, Shiki, Prism) fell back to --font-body and a code
388
+ block's columns stopped lining up: pre and the descendants of pre/code/kbd
389
+ (and of their .code/.kbd class forms) hold mono too. */
390
+ .surface-document code, .surface-document kbd, .surface-document pre,
391
+ .surface-document pre *, .surface-document code *, .surface-document kbd *,
392
+ .surface-document .code *, .surface-document .kbd * { font-family: var(--font-mono); }
366
393
 
367
394
  /* ═══ Type utilities ════════════════════════════════════════════════════
368
- Headlines and body run on --font-body (Quattro V) by default — document
369
- mode; label utilities run on --font-interface (Quattro S).
395
+ Headlines and body run on --font-body (Bricolage Grotesque) by default — document
396
+ mode; label utilities run on --font-interface (Recursive).
370
397
  On tool surfaces, wrap the surface in <… class="surface-tool"> to flip to mono.
371
398
  .t-mono-* are explicit mono utilities for code blocks and identifier displays. */
372
399
  .t-headline-lg { font-family: var(--font-body); font-weight: 700; font-size: var(--t-headline-lg-size); line-height: var(--t-headline-lg-lh); letter-spacing: var(--t-headline-lg-ls); color: var(--fg); }
@@ -387,10 +414,13 @@ body { font-size: var(--t-body-md-size); }
387
414
 
388
415
  /* Doc-page chrome — section header convention promoted from live-spec
389
416
  (10+ identical instances; same shape as the .crumb-at-14 promotion). */
417
+ /* Mixed case, medium weight, full --fg: a heading that leads the section
418
+ instead of shouting over it. Uppercase tracking is reserved for small labels
419
+ (.eyebrow, .table th, .sidenav__group) — at 22px it read as a banner. */
390
420
  .section-title {
391
- font-family: var(--font-mono); font-weight: 700; font-size: var(--t-headline-md-size);
392
- letter-spacing: .04em; text-transform: uppercase;
393
- color: var(--fg-secondary);
421
+ font-family: var(--font-mono); font-weight: 500; font-size: var(--t-headline-md-size);
422
+ line-height: var(--t-headline-md-lh); letter-spacing: -0.01em;
423
+ color: var(--fg); text-wrap: balance;
394
424
  margin: var(--s-2xl) 0 var(--s-md);
395
425
  padding-bottom: var(--s-sm);
396
426
  border-bottom: 1px solid var(--border);
@@ -411,20 +441,29 @@ body { font-size: var(--t-body-md-size); }
411
441
  color: var(--fg-secondary);
412
442
  }
413
443
  .eyebrow--accent { color: var(--accent); }
414
- /* Callout: a raised note with an accent edge (#461). Tier modifiers recolor
415
- the edge only; the title (.callout__title) must name the tier in text, so
416
- color never carries the meaning alone. No success tier: no success token
417
- clears the 3:1 non-text floor on --bg-raised in dark. */
444
+ /* Callout: a raised note with a tier rule (#461). Tier modifiers recolor the
445
+ rule only; the title (.callout__title) must name the tier in text, so color
446
+ never carries the meaning alone. No success tier: no success token clears
447
+ the 3:1 non-text floor on --bg-raised in dark.
448
+ The rule is an INSET bar with rounded ends, not a border-left: a left border
449
+ on a rounded box bends into the corner radius at both ends. */
418
450
  .callout {
451
+ position: relative;
419
452
  background: var(--bg-raised);
420
- border-left: 2px solid var(--accent);
453
+ border: 1px solid var(--border);
421
454
  border-radius: var(--radius-md);
422
- padding: var(--s-md) var(--s-lg);
455
+ padding: var(--s-md) var(--s-lg) var(--s-md) var(--s-xl);
456
+ }
457
+ .callout::before {
458
+ content: ""; position: absolute;
459
+ left: var(--s-md); top: var(--s-md); bottom: var(--s-md); width: 3px;
460
+ border-radius: 2px; background: var(--accent);
423
461
  }
424
462
  .callout__title { margin-bottom: var(--s-xs); }
425
- .callout--steel { border-left-color: var(--steel); }
426
- .callout--attention { border-left-color: var(--attention); }
427
- .callout--urgent { border-left-color: var(--urgent-text); }
463
+ .callout--steel::before { background: var(--steel); }
464
+ .callout--attention::before { background: var(--attention); }
465
+ .callout--urgent::before { background: var(--urgent-text); }
466
+ @media (forced-colors: active) { .callout::before { background: CanvasText; forced-color-adjust: none; } }
428
467
 
429
468
  code, .code {
430
469
  font-family: var(--font-mono);
@@ -518,10 +557,13 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
518
557
  border-radius: var(--radius-md); padding: var(--s-lg);
519
558
  border: 1px solid transparent;
520
559
  }
521
- .card--active { background: var(--bg); border-left: 2px solid var(--accent); }
522
- .card--attention { background: var(--bg); border-left: 2px solid var(--attention); }
523
- .card--urgent { background: var(--bg); border-left: 2px solid var(--urgent); }
524
- .card--success { background: var(--bg); border-left: 2px solid var(--success); }
560
+ /* State cards ring the whole card in the tier color (the base .card already
561
+ reserves a 1px transparent border, so nothing shifts). The old 2px left edge
562
+ bent into the corner radius at both ends. */
563
+ .card--active { background: var(--bg); border-color: var(--accent); }
564
+ .card--attention { background: var(--bg); border-color: var(--attention); }
565
+ .card--urgent { background: var(--bg); border-color: var(--urgent); }
566
+ .card--success { background: var(--bg); border-color: var(--success); }
525
567
 
526
568
  /* ═══ Inputs ════════════════════════════════════════════════════════════ */
527
569
  .input, .textarea, .select {
@@ -532,6 +574,8 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
532
574
  transition: border-color var(--dur-fast) var(--ease);
533
575
  }
534
576
  .input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); }
577
+ /* Opt-in auto-growing textarea via CSS field-sizing (progressive enhancement, #586). */
578
+ .textarea--auto { field-sizing: content; }
535
579
  .input::placeholder { color: var(--fg-disabled); }
536
580
  .input[aria-invalid="true"] { border-color: var(--urgent); }
537
581
  /* Custom indicator for .select — appearance:none lets iOS WebKit honour
@@ -578,11 +622,17 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
578
622
  surface, both themes — measured with scripts/contrast.mjs). */
579
623
  .badge--steel { background: color-mix(in oklch, var(--steel-fill) 15%, transparent); color: var(--steel); border: 1px solid var(--steel-fill); }
580
624
 
581
- .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
625
+ .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
582
626
  .dot--accent { background: var(--accent-fill); }
583
627
  .dot--attention { background: var(--attention-fill); }
584
628
  .dot--urgent { background: var(--urgent-fill); }
585
629
  .dot--success { background: var(--success-fill); }
630
+ /* A tier dot inside a filled badge of the same tier painted fill-on-fill and
631
+ vanished, leaving a gap before the label. Inside a filled badge the dot takes
632
+ the badge's on-color text, so dot and label always read as one mark. A bare
633
+ .dot (no tier) is currentColor everywhere — the ghost "idle" badge's dot. */
634
+ .badge--accent > .dot, .badge--attention > .dot,
635
+ .badge--urgent > .dot, .badge--success > .dot { background: currentColor; }
586
636
 
587
637
  /* ═══ Cell glyphs ════════════════════════════════════════════════════════ */
588
638
  /*
@@ -648,7 +698,9 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
648
698
  opacity: 0.55; background: var(--bg-inactive); filter: saturate(0.6);
649
699
  transition: opacity var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
650
700
  }
651
- .pane--active { border-left: 2px solid var(--accent); }
701
+ /* Inset ring, not a left edge: follows any radius the pane carries, and adds
702
+ no width (an outline never takes layout space). */
703
+ .pane--active { outline: 1px solid var(--accent); outline-offset: -1px; }
652
704
 
653
705
  /* ═══ Selection ═════════════════════════════════════════════════════════ */
654
706
  ::selection { background: var(--accent-fill); color: var(--on-accent); }
@@ -812,6 +864,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
812
864
  width: 100%; max-width: 480px;
813
865
  box-shadow: var(--shadow-overlay);
814
866
  border: 1px solid var(--border);
867
+ overscroll-behavior: contain;
815
868
  animation: modal-in var(--dur-fast) var(--ease);
816
869
  }
817
870
  .modal--lg { max-width: 720px; }
@@ -937,6 +990,16 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
937
990
  padding: 10px 0; color: var(--fg);
938
991
  }
939
992
  .search > input::placeholder { color: var(--fg-disabled); }
993
+ /* One ring, not two. The global input:focus-visible ring drew a second
994
+ accent box inside the .search border, which already flips to --accent on
995
+ :focus-within. Same suppress-and-compensate as .palette__search (#175). */
996
+ .search > input:focus-visible { outline: none; }
997
+ /* Forced colors (Windows High Contrast) replace border-color with a system
998
+ color, so the accent flip above shows nothing there. With the input's ring
999
+ suppressed, the box draws the outline instead, in the system text color. */
1000
+ @media (forced-colors: active) {
1001
+ .search:has(> input:focus-visible) { outline: var(--focus-width) solid CanvasText; outline-offset: var(--focus-offset); }
1002
+ }
940
1003
  .search > .icon { color: var(--fg-secondary); flex-shrink: 0; }
941
1004
 
942
1005
  /* Slider */
@@ -1166,9 +1229,9 @@ select:focus-visible,
1166
1229
  Three densities for tables, lists, and dashboards. Set on a container.
1167
1230
  compact = consoles, log views, ops; cozy = default; comfortable = docs.
1168
1231
  ═══════════════════════════════════════════════════════════════════════ */
1169
- .density-compact { --row-y: 4px; --row-x: 10px; --gap: var(--s-sm); }
1170
- .density-cozy { --row-y: 8px; --row-x: 16px; --gap: var(--s-md); }
1171
- .density-comfortable { --row-y: 14px; --row-x: 20px; --gap: var(--s-lg); }
1232
+ .density-compact { --row-y: 4px; /* @kind spacing */ --row-x: 10px; /* @kind spacing */ --gap: var(--s-sm); /* @kind spacing */ }
1233
+ .density-cozy { --row-y: 8px; /* @kind spacing */ --row-x: 16px; /* @kind spacing */ --gap: var(--s-md); /* @kind spacing */ }
1234
+ .density-comfortable { --row-y: 14px; /* @kind spacing */ --row-x: 20px; /* @kind spacing */ --gap: var(--s-lg); /* @kind spacing */ }
1172
1235
 
1173
1236
  /* When a density is set, table cells and list items pick it up */
1174
1237
  [class*="density-"] .table th,
@@ -1201,7 +1264,26 @@ select:focus-visible,
1201
1264
  .table--sticky-head.table--sticky-col thead th:first-child { z-index: calc(var(--z-raised) + 1); }
1202
1265
  .table .num,
1203
1266
  .table th.num,
1204
- .table td.num { font-variant-numeric: tabular-nums; text-align: right; }
1267
+ .table td.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
1268
+ /* Identifiers never split mid-token ("--bp-" / "tablet", "build-" / "1284"):
1269
+ a wrapped token reads as two. Tables scroll inside their wrapper instead, so
1270
+ table/kv code keeps a hard nowrap (released at tablet width and below, where
1271
+ inline code is also forced to wrap even inside a nowrap ancestor). */
1272
+ .table code, .kv code { white-space: nowrap; }
1273
+ /* Inline code in running text is a plain inline that may wrap inside its own
1274
+ container. Three properties pull against each other and no CSS holds all of
1275
+ them: (a) a token that fits stays whole, (b) a token wider than its container
1276
+ wraps inside it instead of overflowing (the app shell clips the spill, so the
1277
+ text is lost), (c) punctuation glued to code never starts or ends a line.
1278
+ A hard nowrap gives (a) and (c) but not (b). An inline-block capped with
1279
+ max-width gives (a) and (b) but not (c): an atomic inline is a break
1280
+ opportunity on both sides even next to "(" ")" "." ",". This keeps (b) and
1281
+ (c) and gives up (a): a token that straddles a line end may split at a hyphen
1282
+ or slash ("--bp-" / "tablet"), as inline code did before v0.28.
1283
+ No wrapper box, so a link or strike round the code decorates it, nested or
1284
+ not. Pinned by tests/regressions/inline-code-wrap.spec.mjs. */
1285
+ :not(pre) > code { overflow-wrap: anywhere; }
1286
+ @media (max-width: 800px) { :not(pre) > code, .table code, .kv code { white-space: normal; overflow-wrap: anywhere; } }
1205
1287
  .table tr.group-row td {
1206
1288
  font-family: var(--font-interface); font-size: var(--t-label-sm-size);
1207
1289
  text-transform: uppercase; letter-spacing: 0.08em;
@@ -1385,33 +1467,33 @@ select:focus-visible,
1385
1467
  ═══════════════════════════════════════════════════════════════════════ */
1386
1468
  :root {
1387
1469
  /* Structural — the chart's chrome */
1388
- --chart-grid: color-mix(in oklch, var(--border) 70%, transparent);
1389
- --chart-grid-strong: var(--border);
1390
- --chart-axis: var(--fg-secondary);
1391
- --chart-axis-label: var(--fg-secondary);
1392
- --chart-plot-bg: transparent;
1470
+ --chart-grid: color-mix(in oklch, var(--border) 70%, transparent); /* @kind color */
1471
+ --chart-grid-strong: var(--border); /* @kind color */
1472
+ --chart-axis: var(--fg-secondary); /* @kind color */
1473
+ --chart-axis-label: var(--fg-secondary); /* @kind color */
1474
+ --chart-plot-bg: transparent; /* @kind color */
1393
1475
 
1394
1476
  /* Series — categorical 5-color palette, contrast-tuned for both themes.
1395
1477
  Order matters: series 1 is the accent. Keep total ≤ 5; beyond that,
1396
1478
  re-encode (split charts, group, or use sequential ramp). */
1397
- --series-1: var(--accent); /* gold */
1398
- --series-2: var(--steel); /* steel-blue */
1399
- --series-3: var(--brand-purple); /* purple */
1400
- --series-4: var(--success); /* apothecary green */
1401
- --series-5: var(--attention); /* rose */
1479
+ --series-1: var(--accent); /* @kind color */ /* gold */
1480
+ --series-2: var(--steel); /* @kind color */ /* steel-blue */
1481
+ --series-3: var(--brand-purple); /* @kind color */ /* purple */
1482
+ --series-4: var(--success); /* @kind color */ /* apothecary green */
1483
+ --series-5: var(--attention); /* @kind color */ /* rose */
1402
1484
 
1403
1485
  /* Sequential ramp — single-hue, 5 stops light→dark.
1404
1486
  Use for quantitative encoding (heatmap, choropleth). */
1405
- --ramp-1: color-mix(in oklch, var(--accent) 25%, var(--bg));
1406
- --ramp-2: color-mix(in oklch, var(--accent) 45%, var(--bg));
1407
- --ramp-3: color-mix(in oklch, var(--accent) 65%, var(--bg));
1408
- --ramp-4: color-mix(in oklch, var(--accent) 85%, var(--bg));
1409
- --ramp-5: var(--accent);
1487
+ --ramp-1: color-mix(in oklch, var(--accent) 25%, var(--bg)); /* @kind color */
1488
+ --ramp-2: color-mix(in oklch, var(--accent) 45%, var(--bg)); /* @kind color */
1489
+ --ramp-3: color-mix(in oklch, var(--accent) 65%, var(--bg)); /* @kind color */
1490
+ --ramp-4: color-mix(in oklch, var(--accent) 85%, var(--bg)); /* @kind color */
1491
+ --ramp-5: var(--accent); /* @kind color */
1410
1492
 
1411
1493
  /* Diverging — for signed deltas. Brick-low → neutral → apothecary-green-high. */
1412
- --diverge-low: var(--urgent);
1413
- --diverge-mid: var(--fg-disabled);
1414
- --diverge-high: var(--success);
1494
+ --diverge-low: var(--urgent); /* @kind color */
1495
+ --diverge-mid: var(--fg-disabled); /* @kind color */
1496
+ --diverge-high: var(--success); /* @kind color */
1415
1497
  }
1416
1498
 
1417
1499
  /* Chart shell — gives it a card-like surface, optional header row,
@@ -1482,12 +1564,12 @@ select:focus-visible,
1482
1564
  Mermaid + React Flow override the same tokens via their respective theming.
1483
1565
  ═══════════════════════════════════════════════════════════════════════ */
1484
1566
  :root {
1485
- --dia-node-bg: var(--bg-raised);
1486
- --dia-node-fg: var(--fg);
1487
- --dia-node-border: var(--border);
1488
- --dia-edge: var(--fg-secondary);
1489
- --dia-edge-strong: var(--fg);
1490
- --dia-rail: var(--border-lifted);
1567
+ --dia-node-bg: var(--bg-raised); /* @kind color */
1568
+ --dia-node-fg: var(--fg); /* @kind color */
1569
+ --dia-node-border: var(--border); /* @kind color */
1570
+ --dia-edge: var(--fg-secondary); /* @kind color */
1571
+ --dia-edge-strong: var(--fg); /* @kind color */
1572
+ --dia-rail: var(--border-lifted); /* @kind color */
1491
1573
  }
1492
1574
  .dia-node {
1493
1575
  fill: var(--dia-node-bg);
@@ -1581,7 +1663,7 @@ select:focus-visible,
1581
1663
  holds a .stack of .dia-box nodes (composes the HTML node above). Distinct
1582
1664
  from the horizontal single-node .flow chain. */
1583
1665
  .spine {
1584
- --spine-gutter: 32px;
1666
+ --spine-gutter: 32px; /* @kind spacing */
1585
1667
  display: flex; flex-direction: column; gap: var(--s-lg);
1586
1668
  }
1587
1669
  .phase {
@@ -1656,6 +1738,7 @@ select:focus-visible,
1656
1738
  padding: var(--s-md);
1657
1739
  background: var(--bg-raised); border: 1px solid var(--border);
1658
1740
  border-radius: var(--radius-md);
1741
+ overscroll-behavior: contain;
1659
1742
  }
1660
1743
  /* Group label. Hierarchy at scale (#94): a long spine of uniform 44px rows
1661
1744
  reads flat with only the active row as an anchor, so the header is made to
@@ -1712,8 +1795,20 @@ select:focus-visible,
1712
1795
  .sidenav button:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset-inset); }
1713
1796
  .sidenav a[aria-current="page"],
1714
1797
  .sidenav button[aria-current="page"] {
1798
+ position: relative;
1715
1799
  background: var(--bg); color: var(--accent);
1716
- box-shadow: inset 2px 0 0 var(--accent); /* active rail — no layout shift */
1800
+ }
1801
+ /* Active rail — an inset bar with rounded ends, held off the item's corners.
1802
+ The old inset box-shadow followed the 4px radius and curled at both ends
1803
+ (same fix as .callout, v0.28). Absolute, so no layout shift. */
1804
+ .sidenav a[aria-current="page"]::before,
1805
+ .sidenav button[aria-current="page"]::before {
1806
+ content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px;
1807
+ border-radius: 2px; background: var(--accent);
1808
+ }
1809
+ @media (forced-colors: active) {
1810
+ .sidenav a[aria-current="page"]::before,
1811
+ .sidenav button[aria-current="page"]::before { background: Highlight; forced-color-adjust: none; }
1717
1812
  }
1718
1813
 
1719
1814
  /* Rail — collapsed, icon-only (~56px). Labels go SR-only, not display:none,
@@ -1822,6 +1917,8 @@ select:focus-visible,
1822
1917
  position: fixed; top: 0; bottom: 0; left: 0;
1823
1918
  z-index: calc(var(--z-modal) + 1);
1824
1919
  width: min(280px, 80vw); overflow-y: auto;
1920
+ overscroll-behavior: contain;
1921
+ scrollbar-gutter: stable;
1825
1922
  transform: translateX(-100%);
1826
1923
  transition: transform var(--dur-max) var(--ease);
1827
1924
  }
@@ -1938,6 +2035,72 @@ select:focus-visible,
1938
2035
  .wordmark--stop-none::after { content: none; }
1939
2036
 
1940
2037
 
2038
+ /* ═══════════════════════════════════════════════════════════════════════
2039
+ BRAND · Sploot — the system's critter: a Pembroke corgi drawn as text in
2040
+ quadrant block glyphs (2×2 px per character), gold like the wordmark's
2041
+ stop. artificer-sploot.js turns <span data-sploot="pose"> into stacked
2042
+ text layers; its pixel grids are the one source for every pose. Static:
2043
+ the only motion is a one-shot hop on hover, a state change, not a loop.
2044
+
2045
+ Sizes are whole-pixel on purpose. Glyph cells are 0.6em wide and block
2046
+ glyphs 1.32em tall, so the size must make 0.6em a whole pixel (10, 15,
2047
+ 20, 25px) and the line pitch must be a whole pixel just under 1.32em —
2048
+ a fractional pitch lets baseline snapping open hairlines between rows.
2049
+ The --sploot-* knobs are set only by the size modifiers; any other value
2050
+ breaks that arithmetic.
2051
+ ═══════════════════════════════════════════════════════════════════════ */
2052
+ .sploot {
2053
+ --sploot-size: 1.25rem; /* 20px → 12px cells */
2054
+ --sploot-pitch: 1.625rem; /* 26px under 26.4px glyphs */
2055
+ display: inline-grid;
2056
+ vertical-align: bottom;
2057
+ font-size: var(--sploot-size);
2058
+ line-height: var(--sploot-pitch);
2059
+ }
2060
+ .sploot--mini { --sploot-size: 0.625rem; --sploot-pitch: 0.8125rem; } /* 10 / 13 */
2061
+ .sploot--sm { --sploot-size: 0.9375rem; --sploot-pitch: 1.1875rem; } /* 15 / 19 */
2062
+ .sploot--lg { --sploot-size: 1.5625rem; --sploot-pitch: 2rem; } /* 25 / 32 */
2063
+ .sploot__layer {
2064
+ grid-area: 1 / 1;
2065
+ display: block;
2066
+ white-space: pre;
2067
+ font-family: var(--font-mono);
2068
+ font-weight: 400;
2069
+ font-size: inherit;
2070
+ line-height: inherit;
2071
+ /* Body letter/word spacing would pry the glyphs apart. */
2072
+ letter-spacing: 0;
2073
+ word-spacing: normal;
2074
+ font-kerning: none;
2075
+ font-variant-ligatures: none;
2076
+ /* Two glyphs' anti-aliased edges don't add up to a solid pixel where they
2077
+ meet, leaving hairline seams (worst on light ground). A same-color
2078
+ stroke this thin swells each glyph just past the seam. */
2079
+ -webkit-text-stroke: 0.03em currentColor;
2080
+ }
2081
+ .sploot__body { color: var(--accent); }
2082
+ /* Overlays paint over the body in source order. Text marks (z, scent) and
2083
+ box drawing overlap their neighbors already, so they skip the stroke. */
2084
+ .sploot__helmet,
2085
+ .sploot__zzz,
2086
+ .sploot__scent { color: var(--fg-secondary); -webkit-text-stroke: 0; }
2087
+ /* Winter scarf, `stand` only: shown December–February, when <html> carries
2088
+ data-season="winter" (the module sets it from the reader's clock). */
2089
+ .sploot__scarf { display: none; color: var(--brand-purple); }
2090
+ :root[data-season="winter"] .sploot__scarf { display: block; }
2091
+
2092
+ @keyframes sploot-hop {
2093
+ 0%, 100% { transform: none; }
2094
+ 45% { transform: translateY(-0.35em); }
2095
+ }
2096
+ .sploot:hover,
2097
+ .sploot-host:hover .sploot { animation: sploot-hop var(--dur-max) var(--ease); }
2098
+ @media (prefers-reduced-motion: reduce) {
2099
+ .sploot:hover,
2100
+ .sploot-host:hover .sploot { animation: none; }
2101
+ }
2102
+
2103
+
1941
2104
  /* ═══════════════════════════════════════════════════════════════════════
1942
2105
  RESPONSIVE — breakpoints · touch escalation · safe-area · table reflow.
1943
2106
  v0.10.0. Reconciles Lane 3's "mobile layer" audit, with two corrections:
@@ -1951,9 +2114,9 @@ select:focus-visible,
1951
2114
  ═══════════════════════════════════════════════════════════════════════ */
1952
2115
 
1953
2116
  :root {
1954
- --bp-mobile: 640px; /* phone */
1955
- --bp-tablet: 800px; /* small tablet / split view */
1956
- --bp-wide: 1200px; /* wide desktop */
2117
+ --bp-mobile: 640px; /* @kind other */ /* phone */
2118
+ --bp-tablet: 800px; /* @kind other */ /* small tablet / split view */
2119
+ --bp-wide: 1200px; /* @kind other */ /* wide desktop */
1957
2120
  }
1958
2121
 
1959
2122
  /* Safe-area — sticky/fixed chrome clears the notch + home indicator.
@@ -1983,6 +2146,9 @@ select:focus-visible,
1983
2146
  /* Every button is a touch target, classed or not — demo buttons, page-local
1984
2147
  buttons, and library buttons all get the floor. Both dimensions per WCAG 2.5.5. */
1985
2148
  button, .btn, .theme-toggle { min-height: 44px; min-width: 44px; }
2149
+ /* .figure__bar > .btn--icon shrinks to --s-xl (32px) on desktop with (0,2,0)
2150
+ specificity; explicitly restore the 44×44 touch floor on coarse pointers (#529). */
2151
+ .figure__bar > .btn--icon { width: 44px; height: 44px; min-width: 44px; }
1986
2152
  /* All text-like inputs (text/search/email/number/password/date/url/tel...).
1987
2153
  Width left to the layout (inputs fill their container; min-width here
1988
2154
  would fight flex/grid shrink and break compact search bars). */
@@ -2140,7 +2306,10 @@ select:focus-visible,
2140
2306
  classic flush shell — consumers set --shell-gap instead of redefining the grid */
2141
2307
  }
2142
2308
  .app-shell > .appbar { grid-row: bar; grid-column: 1 / -1; }
2143
- .app-shell > .sidenav { grid-row: body; grid-column: rail; }
2309
+ /* In the shell the rail is flush chrome, not a floating card: square, one
2310
+ divider on its content side. A rounded, fully bordered panel under the
2311
+ appbar left a visible seam at the junction. */
2312
+ .app-shell > .sidenav { grid-row: body; grid-column: rail; border-radius: 0; border-width: 0 1px 0 0; }
2144
2313
  /* Sticky rail — the sidenav pins while the content scrolls. align-self: start
2145
2314
  is load-bearing: a default-stretch grid child is as tall as the body row and
2146
2315
  has nowhere to stick. --sidenav-sticky-top clears any sticky chrome above
@@ -2156,6 +2325,21 @@ select:focus-visible,
2156
2325
  min-width: 0; /* belt-and-suspenders with the minmax(0,1fr) main track */
2157
2326
  overflow-x: clip; /* a rogue wide child clips here, never scrolls the page */
2158
2327
  }
2328
+ /* Contained shell (#532): when .app-shell sits inside a .container (e.g. with
2329
+ .appbar/intro above it), drop the 100dvh floor so it stays content-sized. */
2330
+ .app-shell--contained { min-height: auto; }
2331
+ /* Flush content (#532): when an outer .container already supplies inline
2332
+ gutters, zero the bleed-grid's --s-lg side tracks without losing [bleed-*]
2333
+ lines, and expand the clip box by one focus ring so overflow-x: clip never
2334
+ slices focus outlines on leftmost controls. */
2335
+ .app-shell__content--flush {
2336
+ grid-template-columns:
2337
+ [bleed-start] 0
2338
+ [content-start] minmax(0, 1fr) [content-end]
2339
+ 0 [bleed-end];
2340
+ padding-inline: calc(var(--focus-width) + var(--focus-offset));
2341
+ margin-inline: calc(-1 * (var(--focus-width) + var(--focus-offset)));
2342
+ }
2159
2343
  @media (max-width: 800px) {
2160
2344
  .app-shell { grid-template-columns: [main-start] minmax(0, 1fr) [main-end]; }
2161
2345
  .app-shell > .sidenav { display: none; } /* the .nav-drawer takes over */
@@ -2520,3 +2704,91 @@ select:focus-visible,
2520
2704
  /* motion suppressed → static low-opacity full track; the copy carries meaning */
2521
2705
  .progress--indeterminate .progress__bar { animation: none; width: 100%; opacity: .4; }
2522
2706
  }
2707
+
2708
+ /* ═══ Inline alert — static in-flow notice inside a card or form ════════
2709
+ Distinct from .banner (full-width page-level) and .notif (toast). Tiered
2710
+ by action required: --urgent (uses --urgent-text for AA title), --attention,
2711
+ --info (default), --success. */
2712
+ .alert {
2713
+ display: flex; align-items: flex-start; gap: var(--s-sm);
2714
+ padding: var(--s-sm) var(--s-md);
2715
+ background: var(--bg-raised);
2716
+ border: 1px solid var(--border);
2717
+ border-left: 3px solid var(--steel);
2718
+ border-radius: var(--radius-md);
2719
+ color: var(--fg);
2720
+ font-size: var(--t-body-md-size);
2721
+ line-height: var(--t-body-md-lh);
2722
+ }
2723
+ .alert__body { flex: 1; min-width: 0; }
2724
+ .alert__title {
2725
+ margin: 0;
2726
+ font-family: var(--font-interface);
2727
+ font-weight: 600;
2728
+ font-size: var(--t-label-md-size);
2729
+ line-height: var(--t-label-md-lh);
2730
+ }
2731
+ .alert__msg { margin: var(--s-xs) 0 0; color: var(--fg-secondary); }
2732
+ .alert--urgent { border-left-color: var(--urgent); }
2733
+ .alert--urgent .alert__title { color: var(--urgent-text); }
2734
+ .alert--attention { border-left-color: var(--attention); }
2735
+ .alert--info { border-left-color: var(--steel); }
2736
+ .alert--success { border-left-color: var(--success); }
2737
+
2738
+ /* ═══ Button group — joined/segmented control row ═══════════════════════
2739
+ Collapses interior radii and shares the dividing border. Focused buttons
2740
+ lift onto --z-raised so focus rings are never clipped by siblings. */
2741
+ .btn-group { display: inline-flex; align-items: stretch; }
2742
+ .btn-group > .btn { border-radius: 0; position: relative; }
2743
+ .btn-group > .btn:first-child { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
2744
+ .btn-group > .btn:last-child { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
2745
+ .btn-group > .btn:not(:first-child) { margin-left: -1px; }
2746
+ .btn-group > .btn:hover,
2747
+ .btn-group > .btn:focus-visible,
2748
+ .btn-group > .btn[aria-pressed="true"] { z-index: var(--z-raised); }
2749
+
2750
+ /* ═══ List group — bordered vertical stack of rows ══════════════════════ */
2751
+ .list-group {
2752
+ display: flex; flex-direction: column;
2753
+ margin: 0; padding: 0; list-style: none;
2754
+ background: var(--bg-raised);
2755
+ border: 1px solid var(--border);
2756
+ border-radius: var(--radius-md);
2757
+ overflow: hidden;
2758
+ }
2759
+ .list-group__item {
2760
+ display: flex; align-items: center; justify-content: space-between; gap: var(--s-sm);
2761
+ padding: var(--s-sm) var(--s-md);
2762
+ color: var(--fg);
2763
+ text-decoration: none;
2764
+ background: transparent;
2765
+ border: 0;
2766
+ font: inherit;
2767
+ text-align: left;
2768
+ width: 100%;
2769
+ }
2770
+ .list-group__item + .list-group__item { border-top: 1px solid var(--border); }
2771
+ a.list-group__item,
2772
+ button.list-group__item {
2773
+ cursor: pointer;
2774
+ transition: background var(--dur-instant) var(--ease), color var(--dur-instant) var(--ease);
2775
+ }
2776
+ @media (hover: hover) {
2777
+ a.list-group__item:hover,
2778
+ button.list-group__item:hover { background: var(--bg-overlay); }
2779
+ }
2780
+ a.list-group__item:focus-visible,
2781
+ button.list-group__item:focus-visible {
2782
+ outline: var(--focus-width) solid var(--accent);
2783
+ outline-offset: var(--focus-offset-inset);
2784
+ }
2785
+ .list-group__item--active {
2786
+ background: var(--bg-overlay);
2787
+ box-shadow: inset 3px 0 0 var(--accent);
2788
+ }
2789
+ @media (pointer: coarse) {
2790
+ a.list-group__item,
2791
+ button.list-group__item { min-height: 44px; }
2792
+ }
2793
+
2794
+ } /* end @layer artificer */