@ignite-ember/ui-css 0.0.0-stage → 0.2.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 (5) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +5 -0
  3. package/README.md +194 -2
  4. package/igni-ui.css +1766 -0
  5. package/package.json +39 -4
package/igni-ui.css ADDED
@@ -0,0 +1,1766 @@
1
+ /**
2
+ * igni-ui — the controls an extension draws with.
3
+ *
4
+ * Bundle this into your extension. Do not link it from igni's origin:
5
+ * your page runs under its own origin with `default-src 'self'`, so a
6
+ * cross-origin stylesheet is refused, and that refusal is deliberate.
7
+ *
8
+ * Every value here is a token with a fallback. The fallback is what
9
+ * you see standalone — opening your page outside igni gives you
10
+ * something that looks right rather than something unstyled. Inside
11
+ * igni the bridge pushes the live values, so the same markup follows
12
+ * dark mode, light mode, and whatever a group's policy has branded,
13
+ * without you doing anything.
14
+ *
15
+ * Class names match igni's own, and that is the point: a control
16
+ * here is the control there. When one changes, both change.
17
+ *
18
+ * What this covers is every class a `@ignite-ember/ui-react` component can
19
+ * render — checked, not asserted. `ui-react/styled.test.ts` reads
20
+ * each component's `className=` expressions and fails on the first
21
+ * name this file does not define, and the fallback values below are
22
+ * checked against `theme.css` rather than copied by hand. Both exist
23
+ * because both had already gone wrong: seven components named
24
+ * thirty-two classes nothing here defined, and eighteen of these
25
+ * fallbacks were a different value from the theme they claim to
26
+ * match.
27
+ *
28
+ * What it does not cover is layout. There is no page shell, no
29
+ * split pane, no scroll container: those are shapes, and a shape is
30
+ * cheap to write and expensive to promise. Write them yourself,
31
+ * against the tokens below.
32
+ */
33
+
34
+ /* ── The tokens, as fallbacks ──────────────────────────────────────
35
+ Values match igni's dark theme. The bridge overwrites them on
36
+ `:root` at handshake; these are what applies before it does, and
37
+ what applies if your page is opened on its own. */
38
+ :root {
39
+ --bg: #262624;
40
+ --bg-inset: #1f1f1d;
41
+ --bg-surface: #30302e;
42
+ --bg-raised: #3a3a37;
43
+
44
+ --fg: #f0efea;
45
+ --fg-muted: #b8b5ad;
46
+ --fg-faint: #a5a49e;
47
+
48
+ --border: #4a4a45;
49
+ --border-soft: #3d3d39;
50
+
51
+ --success: #4cb05c;
52
+ --warning: #d9a644;
53
+ --danger: #ef6a5a;
54
+ --danger-text: #f28376;
55
+ --accent-blue: #6aa3f7;
56
+
57
+ --igni-orange: #f97316;
58
+ --igni-red: #dc2626;
59
+ --igni-gradient: linear-gradient(135deg, #f97316, #dc2626);
60
+
61
+ --space-1: 2px;
62
+ --space-2: 4px;
63
+ --space-3: 6px;
64
+ --space-4: 8px;
65
+ --space-5: 10px;
66
+ --space-6: 12px;
67
+ --space-7: 14px;
68
+ --space-8: 16px;
69
+ --space-10: 20px;
70
+ --space-12: 24px;
71
+ --space-16: 32px;
72
+
73
+ --accent-blue-text: #8eb9f9;
74
+ --accent-green-text: #7cc57f;
75
+ --accent-orange-text: #fb9c5a;
76
+ --accent-red-text: #f09393;
77
+ --igni-orange-hover: #fb923c;
78
+ --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.45);
79
+
80
+ --radius-sm: 8px;
81
+ --radius: 12px;
82
+ --radius-lg: 18px;
83
+ --radius-pill: 999px;
84
+ --radius-circle: 50%;
85
+
86
+ --text-2xs: 10px;
87
+ --text-xs: 11px;
88
+ --text-sm: 12px;
89
+ --text-md: 13px;
90
+ --text-lg: 14px;
91
+ --text-xl: 17px;
92
+ --text-2xl: 20px;
93
+ --text-3xl: 30px;
94
+ --text-4xl: 42px;
95
+ --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
96
+ --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
97
+ }
98
+
99
+ /* ── The page ──────────────────────────────────────────────────── */
100
+
101
+ .igni-root {
102
+ margin: 0;
103
+ background: var(--bg);
104
+ color: var(--fg);
105
+ font-family: var(--font-ui);
106
+ font-size: var(--text-md);
107
+ line-height: 1.5;
108
+ }
109
+
110
+ /* ── Primitives ───────────────────────────────────────────────────
111
+ The shapes this app keeps making, named once.
112
+
113
+ They were not extracted from duplication, because there was very
114
+ little: the 231 classes called `-row`, `-card`, `-actions` share
115
+ almost nothing — `*-row` agreed only on `display: flex`, and
116
+ deduplicating all fourteen patterns saved 84 declarations out of
117
+ 17,789 lines. They did not repeat. They diverged, each feature
118
+ picking its own gaps and paddings because there was no scale to
119
+ pick from.
120
+
121
+ So these are decided rather than derived. Where the existing uses
122
+ agreed, the agreement is the value. Where they split, the split is
123
+ resolved here with a reason, once, instead of in each feature.
124
+
125
+ There is deliberately no `ui-title`. Titles varied across four
126
+ type steps and that variation is the design — a heading level, not
127
+ drift. Use the type scale and a weight. */
128
+
129
+ .ui-row {
130
+ display: flex;
131
+ align-items: center;
132
+ gap: var(--space-4);
133
+ }
134
+
135
+ .ui-actions {
136
+ display: flex;
137
+ align-items: center;
138
+ gap: var(--space-4);
139
+ }
140
+
141
+ .ui-list {
142
+ display: flex;
143
+ flex-direction: column;
144
+ gap: var(--space-2);
145
+ }
146
+
147
+ .ui-toolbar {
148
+ display: flex;
149
+ align-items: center;
150
+ gap: var(--space-4);
151
+ }
152
+
153
+ .ui-card {
154
+ display: flex;
155
+ flex-direction: column;
156
+ gap: var(--space-5);
157
+ padding: var(--space-6) var(--space-7);
158
+ background: var(--bg-surface);
159
+ border: 1px solid var(--border-soft);
160
+ border-radius: var(--radius);
161
+ }
162
+
163
+ .ui-item {
164
+ padding: var(--space-3) var(--space-4);
165
+ border-radius: var(--radius-sm);
166
+ color: var(--fg);
167
+ text-align: left;
168
+ cursor: pointer;
169
+ }
170
+
171
+ .ui-item:hover {
172
+ background: var(--bg-raised);
173
+ }
174
+
175
+ .ui-badge {
176
+ display: inline-flex;
177
+ align-items: center;
178
+ gap: var(--space-2);
179
+ padding: var(--space-1) var(--space-3);
180
+ border-radius: var(--radius-pill);
181
+ font-size: var(--text-xs);
182
+ font-weight: 700;
183
+ }
184
+
185
+ /* An empty state is text the reader has to read to know what to do
186
+ next, so it is content rather than de-emphasised chrome. The
187
+ existing uses split exactly eight and eight between --fg-faint and
188
+ --fg-muted; both clear WCAG AA since F138, so the tie is broken on
189
+ meaning rather than contrast. */
190
+ .ui-empty {
191
+ color: var(--fg-muted);
192
+ font-size: var(--text-sm);
193
+ }
194
+
195
+ .ui-table {
196
+ width: 100%;
197
+ border-collapse: collapse;
198
+ font-size: var(--text-sm);
199
+ }
200
+
201
+ /* ── Buttons ───────────────────────────────────────────────────── */
202
+
203
+ /* Named for a screen reader, hidden from everyone else. `Spinner`
204
+ needs it; so does anything that has to say what it is without
205
+ taking space to say it. */
206
+ .ui-visually-hidden {
207
+ position: absolute;
208
+ width: 1px;
209
+ height: 1px;
210
+ padding: 0;
211
+ margin: -1px;
212
+ overflow: hidden;
213
+ clip-path: inset(50%);
214
+ white-space: nowrap;
215
+ border: 0;
216
+ }
217
+
218
+ /* ── Form controls ────────────────────────────────────────────────
219
+ Generic versions of controls the app only had feature-scoped
220
+ copies of — `kb-add-textarea`, `mcp-tool-switch`, `kb-aside-tab`. An extension cannot use any of those, and a
221
+ floor that stops at buttons is one where every extension writes
222
+ its own select. */
223
+
224
+ .ui-select,
225
+ .ui-textarea {
226
+ background: var(--bg-inset);
227
+ border: 1px solid var(--border);
228
+ border-radius: var(--radius-sm);
229
+ color: var(--fg);
230
+ font-family: inherit;
231
+ font-size: var(--text-md);
232
+ padding: 7px var(--space-5);
233
+ width: 100%;
234
+ }
235
+
236
+ .ui-textarea {
237
+ resize: vertical;
238
+ min-height: 72px;
239
+ line-height: 1.5;
240
+ }
241
+
242
+ .ui-select:focus,
243
+ .ui-textarea:focus {
244
+ outline: none;
245
+ border-color: var(--accent-blue);
246
+ }
247
+
248
+ .ui-check {
249
+ display: inline-flex;
250
+ align-items: center;
251
+ gap: var(--space-4);
252
+ cursor: pointer;
253
+ font-size: var(--text-md);
254
+ }
255
+
256
+ .ui-check input {
257
+ accent-color: var(--igni-orange);
258
+ width: 14px;
259
+ height: 14px;
260
+ cursor: pointer;
261
+ }
262
+
263
+ /* Only the wrapper. Both selectors matched when the input was
264
+ disabled, so the opacity applied twice and the control rendered at
265
+ 0.25 rather than 0.5. */
266
+ .ui-check:has(input:disabled) {
267
+ cursor: not-allowed;
268
+ opacity: 0.5;
269
+ }
270
+
271
+ /* A switch is a button, not a checkbox: it takes effect immediately
272
+ rather than on submit, and that difference is what a screen reader
273
+ announces from role="switch". */
274
+ .ui-switch {
275
+ appearance: none;
276
+ border: none;
277
+ padding: 0;
278
+ width: 30px;
279
+ height: 17px;
280
+ border-radius: var(--radius-pill);
281
+ background: var(--border);
282
+ position: relative;
283
+ cursor: pointer;
284
+ transition: background 0.14s ease;
285
+ }
286
+
287
+ .ui-switch[aria-checked="true"] {
288
+ background: var(--igni-orange);
289
+ }
290
+
291
+ .ui-switch::after {
292
+ content: "";
293
+ position: absolute;
294
+ top: 2px;
295
+ left: 2px;
296
+ width: 13px;
297
+ height: 13px;
298
+ border-radius: var(--radius-circle);
299
+ background: #fff;
300
+ transition: transform 0.14s ease;
301
+ }
302
+
303
+ .ui-switch[aria-checked="true"]::after {
304
+ transform: translateX(13px);
305
+ }
306
+
307
+ .ui-switch:disabled {
308
+ opacity: 0.5;
309
+ cursor: not-allowed;
310
+ }
311
+
312
+ /* ── Field ────────────────────────────────────────────────────────
313
+ A label, a control, and room for the reason it is wrong. The
314
+ reason is the part that gets left out, and a form that rejects
315
+ input without saying why is the one people abandon. */
316
+
317
+ .ui-field {
318
+ display: flex;
319
+ flex-direction: column;
320
+ gap: var(--space-3);
321
+ }
322
+
323
+ .ui-label {
324
+ font-size: var(--text-sm);
325
+ font-weight: 600;
326
+ color: var(--fg);
327
+ }
328
+
329
+ .ui-hint {
330
+ font-size: var(--text-xs);
331
+ color: var(--fg-muted);
332
+ }
333
+
334
+ .ui-error {
335
+ font-size: var(--text-xs);
336
+ color: var(--danger-text, var(--danger));
337
+ }
338
+
339
+ /* ── Feedback ─────────────────────────────────────────────────────
340
+ `Skeleton` is for content whose shape is known. These are for work
341
+ whose duration is not. */
342
+
343
+ .ui-spinner {
344
+ display: inline-block;
345
+ width: 14px;
346
+ height: 14px;
347
+ border: 2px solid var(--border);
348
+ border-top-color: var(--igni-orange);
349
+ border-radius: var(--radius-circle);
350
+ animation: ui-spin 0.7s linear infinite;
351
+ }
352
+
353
+ @keyframes ui-spin {
354
+ to {
355
+ transform: rotate(360deg);
356
+ }
357
+ }
358
+
359
+ @media (prefers-reduced-motion: reduce) {
360
+ .ui-spinner {
361
+ animation-duration: 2.4s;
362
+ }
363
+ }
364
+
365
+ .ui-progress {
366
+ width: 100%;
367
+ height: 4px;
368
+ border-radius: var(--radius-pill);
369
+ background: var(--bg-inset);
370
+ overflow: hidden;
371
+ }
372
+
373
+ .ui-progress-fill {
374
+ height: 100%;
375
+ border-radius: var(--radius-pill);
376
+ background: var(--igni-gradient);
377
+ transition: width 0.2s ease;
378
+ }
379
+
380
+ /* An indeterminate bar slides rather than fills, because a bar that
381
+ sits at a fixed width reads as stuck. */
382
+ .ui-progress[data-indeterminate="true"] .ui-progress-fill {
383
+ width: 35%;
384
+ animation: ui-slide 1.1s ease-in-out infinite;
385
+ }
386
+
387
+ @keyframes ui-slide {
388
+ 0% {
389
+ transform: translateX(-100%);
390
+ }
391
+ 100% {
392
+ transform: translateX(386%);
393
+ }
394
+ }
395
+
396
+ /* ── Tabs ─────────────────────────────────────────────────────── */
397
+
398
+ .ui-tabs {
399
+ display: flex;
400
+ gap: var(--space-2);
401
+ border-bottom: 1px solid var(--border-soft);
402
+ }
403
+
404
+ .ui-tab {
405
+ appearance: none;
406
+ background: none;
407
+ border: none;
408
+ border-bottom: 2px solid transparent;
409
+ color: var(--fg-muted);
410
+ cursor: pointer;
411
+ font-family: inherit;
412
+ font-size: var(--text-sm);
413
+ font-weight: 600;
414
+ padding: var(--space-3) var(--space-5);
415
+ margin-bottom: -1px;
416
+ }
417
+
418
+ .ui-tab:hover {
419
+ color: var(--fg);
420
+ }
421
+
422
+ .ui-tab[aria-selected="true"] {
423
+ color: var(--fg);
424
+ border-bottom-color: var(--igni-orange);
425
+ }
426
+
427
+ /* ── Text ─────────────────────────────────────────────────────── */
428
+
429
+ .ui-divider {
430
+ border: none;
431
+ border-top: 1px solid var(--border-soft);
432
+ margin: 0;
433
+ }
434
+
435
+ .ui-heading {
436
+ margin: 0;
437
+ color: var(--fg);
438
+ font-weight: 700;
439
+ }
440
+
441
+ .ui-text {
442
+ margin: 0;
443
+ font-size: var(--text-md);
444
+ color: var(--fg);
445
+ }
446
+
447
+ .ui-text[data-tone="muted"] {
448
+ color: var(--fg-muted);
449
+ }
450
+
451
+ .ui-text[data-tone="faint"] {
452
+ color: var(--fg-faint);
453
+ }
454
+
455
+ .ui-code {
456
+ font-family: var(--font-mono);
457
+ font-size: var(--text-sm);
458
+ background: var(--bg-inset);
459
+ border-radius: var(--radius-sm);
460
+ padding: var(--space-1) var(--space-3);
461
+ }
462
+
463
+ .btn {
464
+ appearance: none;
465
+ border: 1px solid var(--border);
466
+ border-radius: var(--radius-sm);
467
+ background: var(--bg-surface);
468
+ color: var(--fg);
469
+ padding: 7px var(--space-7);
470
+ font-family: inherit;
471
+ font-size: var(--text-md);
472
+ font-weight: 600;
473
+ cursor: pointer;
474
+ }
475
+
476
+ .btn:hover:not(:disabled) {
477
+ background: var(--bg-raised);
478
+ }
479
+
480
+ .btn:disabled,
481
+ .btn[aria-disabled="true"] {
482
+ opacity: 0.45;
483
+ cursor: not-allowed;
484
+ background: var(--bg-surface);
485
+ box-shadow: none;
486
+ }
487
+
488
+ .btn-primary {
489
+ background: var(--igni-gradient);
490
+ border: none;
491
+ color: #fff;
492
+ }
493
+
494
+ /* A disabled primary has to stay recognisable as a button. Without
495
+ this it collapses to a borderless rectangle on the same colour as
496
+ the surface behind it and effectively disappears. */
497
+ .btn-primary:disabled,
498
+ .btn-primary[aria-disabled="true"] {
499
+ opacity: 0.6;
500
+ background: var(--igni-gradient);
501
+ color: rgba(255, 255, 255, 0.85);
502
+ }
503
+
504
+ .btn-primary:hover:not(:disabled) {
505
+ box-shadow: 0 6px 18px rgba(249, 115, 22, 0.3);
506
+ background: var(--igni-gradient);
507
+ }
508
+
509
+ /* The border keeps the stronger colour; the text uses the
510
+ contrast-safe variant. `--danger` is 3.74:1 on a raised surface
511
+ where WCAG AA wants 4.5:1, and `--danger-text` is the same hue at
512
+ 4.50. */
513
+ .btn-danger {
514
+ border-color: color-mix(in srgb, var(--danger) 55%, transparent);
515
+ color: var(--danger-text, var(--danger));
516
+ }
517
+
518
+ .btn-warn {
519
+ border-color: color-mix(in srgb, var(--warning) 55%, transparent);
520
+ color: var(--accent-orange-text, var(--warning));
521
+ }
522
+
523
+ .btn-sm {
524
+ padding: var(--space-2) var(--space-5);
525
+ font-size: var(--text-sm);
526
+ }
527
+
528
+ .btn-xs {
529
+ padding: var(--space-1) var(--space-4);
530
+ font-size: var(--text-xs);
531
+ }
532
+
533
+ .btn-quiet {
534
+ background: transparent;
535
+ border-color: transparent;
536
+ }
537
+
538
+ .btn-quiet:hover:not(:disabled) {
539
+ background: var(--bg-raised);
540
+ }
541
+
542
+ /* ── Chips ─────────────────────────────────────────────────────── */
543
+
544
+ .chip {
545
+ display: inline-flex;
546
+ align-items: center;
547
+ gap: var(--space-3);
548
+ padding: 3px 9px;
549
+ border: 1px solid var(--border);
550
+ border-radius: var(--radius-pill);
551
+ background: var(--bg-surface);
552
+ color: var(--fg-muted);
553
+ font-size: var(--text-sm);
554
+ cursor: default;
555
+ }
556
+
557
+ .chip:hover {
558
+ background: var(--bg-raised);
559
+ }
560
+
561
+ .chip[data-tone="success"] {
562
+ color: var(--success);
563
+ }
564
+ .chip[data-tone="warning"] {
565
+ color: var(--warning);
566
+ }
567
+ .chip[data-tone="danger"] {
568
+ color: var(--danger-text, var(--danger));
569
+ }
570
+
571
+ /* ── Panels ────────────────────────────────────────────────────── */
572
+
573
+ .panel {
574
+ background: var(--bg-surface);
575
+ border: 1px solid var(--border);
576
+ border-radius: var(--radius);
577
+ padding: var(--space-7) var(--space-8);
578
+ }
579
+
580
+ .panel-title {
581
+ margin: 0 0 8px;
582
+ font-size: var(--text-md);
583
+ font-weight: 700;
584
+ color: var(--fg);
585
+ }
586
+
587
+ .panel-sub {
588
+ margin: 0;
589
+ font-size: var(--text-sm);
590
+ color: var(--fg-muted);
591
+ }
592
+
593
+ /* ── Fields ────────────────────────────────────────────────────── */
594
+
595
+ .panel-form-row {
596
+ display: flex;
597
+ gap: var(--space-4);
598
+ align-items: center;
599
+ }
600
+
601
+ .panel-input {
602
+ flex: 1;
603
+ background: var(--bg-inset);
604
+ border: 1px solid var(--border);
605
+ border-radius: var(--radius-sm);
606
+ color: var(--fg);
607
+ font-family: inherit;
608
+ font-size: var(--text-md);
609
+ padding: 7px var(--space-5);
610
+ }
611
+
612
+ .panel-input::placeholder {
613
+ color: var(--fg-faint);
614
+ }
615
+
616
+ .panel-input:focus {
617
+ outline: none;
618
+ border-color: var(--accent-blue);
619
+ }
620
+
621
+ /* ── Dialogs ───────────────────────────────────────────────────── */
622
+
623
+ .overlay {
624
+ position: fixed;
625
+ inset: 0;
626
+ background: rgba(0, 0, 0, 0.5);
627
+ display: flex;
628
+ align-items: center;
629
+ justify-content: center;
630
+ z-index: 50;
631
+ }
632
+
633
+ .dialog {
634
+ background: var(--bg-surface);
635
+ border: 1px solid var(--border);
636
+ border-radius: var(--radius-lg);
637
+ padding: 18px var(--space-10);
638
+ max-width: 520px;
639
+ width: calc(100% - 32px);
640
+ }
641
+
642
+ .dialog-title {
643
+ margin: 0 0 6px;
644
+ font-size: var(--text-lg);
645
+ font-weight: 700;
646
+ }
647
+
648
+ .dialog-sub {
649
+ margin: 0 0 14px;
650
+ font-size: var(--text-md);
651
+ color: var(--fg-muted);
652
+ }
653
+
654
+ .dialog-pre {
655
+ background: var(--bg-inset);
656
+ border-radius: var(--radius-sm);
657
+ padding: var(--space-5) var(--space-6);
658
+ font-family: var(--font-mono);
659
+ font-size: var(--text-sm);
660
+ overflow-x: auto;
661
+ }
662
+
663
+ .dialog-actions {
664
+ display: flex;
665
+ gap: var(--space-4);
666
+ justify-content: flex-end;
667
+ margin-top: 16px;
668
+ }
669
+
670
+ /* A badge's whole job is to say which kind of thing this is, so a
671
+ tone that renders identically to neutral is the one defect that
672
+ makes the component pointless. `Badge` exports a typed `tone`
673
+ prop; these are what make it mean something. */
674
+ .ui-badge[data-tone="neutral"] {
675
+ background: var(--bg-raised);
676
+ color: var(--fg-muted);
677
+ }
678
+
679
+ .ui-badge[data-tone="success"] {
680
+ background: color-mix(in srgb, var(--success) 18%, transparent);
681
+ color: var(--accent-green-text, var(--success));
682
+ }
683
+
684
+ .ui-badge[data-tone="warning"] {
685
+ background: color-mix(in srgb, var(--warning) 18%, transparent);
686
+ color: var(--accent-orange-text, var(--warning));
687
+ }
688
+
689
+ .ui-badge[data-tone="danger"] {
690
+ background: color-mix(in srgb, var(--danger) 18%, transparent);
691
+ color: var(--danger-text, var(--danger));
692
+ }
693
+
694
+ /* Keyboard users get the same affordance as pointer users. Absent
695
+ from the extension package entirely, which would have made an
696
+ extension the cause of its host's accessibility findings. */
697
+ .btn:focus-visible,
698
+ .ui-item:focus-visible,
699
+ .ui-tab:focus-visible,
700
+ .ui-switch:focus-visible,
701
+ .chip:focus-visible,
702
+ .ui-select:focus-visible,
703
+ .ui-textarea:focus-visible,
704
+ .panel-input:focus-visible {
705
+ outline: 2px solid var(--accent-blue);
706
+ outline-offset: 2px;
707
+ }
708
+
709
+ /* ── The components that are not primitives ────────────────────────
710
+ `primitives.tsx` is a typed wrapper over classes above. The seven
711
+ components below are real behaviour — positioning, a focus loop, a
712
+ markdown pipeline — and they shipped under the compatibility floor
713
+ for a while with every rule they need living only in igni's own
714
+ `theme.css`. Inside the app they looked right. In an extension,
715
+ which is the one place they are promised, they rendered as
716
+ unstyled DOM.
717
+
718
+ `styled.test.ts` fails on the next class that goes missing. */
719
+
720
+ /* ── Tooltip ───────────────────────────────────────────────────────
721
+ Portalled to `document.body`, positioned with an inline transform
722
+ rather than a class, so there is nothing here about above/below. */
723
+ .tip-anchor {
724
+ /* `display: contents` — the wrapper must not become a box in a
725
+ flex row, or every toolbar it is used in silently gains a layer
726
+ of spacing nobody designed. */
727
+ display: contents;
728
+ }
729
+
730
+ .tip {
731
+ position: fixed;
732
+ z-index: 80;
733
+ max-width: 17rem;
734
+ padding: 5px 8px;
735
+ font-size: var(--text-sm, 12px);
736
+ line-height: 1.45;
737
+ color: var(--fg, #f0efea);
738
+ background: var(--bg-raised, #3a3a37);
739
+ border: 1px solid var(--border-soft, #3d3d39);
740
+ border-radius: var(--radius-sm, 8px);
741
+ box-shadow: 0 6px 18px rgb(0 0 0 / 30%);
742
+ /* It explains the thing under the pointer; it must never be the
743
+ thing under the pointer. */
744
+ pointer-events: none;
745
+ }
746
+
747
+ /* ── Monogram ──────────────────────────────────────────────────────
748
+ Two letters standing in for a face. The colour comes from the
749
+ component as an inline style, derived from the name — see
750
+ Monogram.tsx for why this is not an avatar. */
751
+ .monogram {
752
+ display: inline-flex;
753
+ align-items: center;
754
+ justify-content: center;
755
+ flex: 0 0 auto;
756
+ border-radius: var(--radius-circle, 50%);
757
+ color: #fff;
758
+ font-weight: 600;
759
+ letter-spacing: 0.02em;
760
+ line-height: 1;
761
+ user-select: none;
762
+ }
763
+
764
+ /* ── Skeleton ──────────────────────────────────────────────────────
765
+ A shape where content will be, shimmering so it reads as pending
766
+ rather than as an empty box somebody forgot to fill. */
767
+ .skeleton {
768
+ display: block;
769
+ background: linear-gradient(
770
+ 90deg,
771
+ var(--bg-raised, #3a3a37) 0%,
772
+ color-mix(
773
+ in srgb,
774
+ var(--bg-raised, #3a3a37) 60%,
775
+ var(--fg-faint, #a5a49e) 8%
776
+ )
777
+ 50%,
778
+ var(--bg-raised, #3a3a37) 100%
779
+ );
780
+ background-size: 200% 100%;
781
+ border-radius: var(--radius-sm, 8px);
782
+ animation: skeleton-shimmer 1.4s linear infinite;
783
+ }
784
+
785
+ .skeleton-text {
786
+ height: 12px;
787
+ margin: 4px 0;
788
+ }
789
+
790
+ .skeleton-block {
791
+ height: 64px;
792
+ border-radius: var(--radius, 12px);
793
+ }
794
+
795
+ .skeleton-circle {
796
+ border-radius: var(--radius-circle, 50%);
797
+ }
798
+
799
+ @keyframes skeleton-shimmer {
800
+ 0% {
801
+ background-position: 200% 0;
802
+ }
803
+
804
+ 100% {
805
+ background-position: -200% 0;
806
+ }
807
+ }
808
+
809
+ /* A shimmer is decoration on a wait. Somebody who has asked not to
810
+ see motion has asked not to see this. */
811
+ @media (prefers-reduced-motion: reduce) {
812
+ .skeleton {
813
+ animation: none;
814
+ }
815
+ }
816
+
817
+ /* ── MenuIcon ──────────────────────────────────────────────────────
818
+ A stroked 14px glyph that inherits its colour, so it darkens and
819
+ lightens with whatever row it sits in. */
820
+ .menu-icon {
821
+ flex: none;
822
+ width: 14px;
823
+ height: 14px;
824
+ fill: none;
825
+ stroke: currentcolor;
826
+ stroke-width: 1.3;
827
+ stroke-linecap: round;
828
+ stroke-linejoin: round;
829
+ /* Quieter than the word it labels. The label says what the item
830
+ does; the icon is how it is found again. */
831
+ opacity: 0.72;
832
+ }
833
+
834
+ /* ── OverflowMenu ──────────────────────────────────────────────────
835
+ A row of secondary actions behind one button. Opens downward and
836
+ aligns to its right edge, because it hangs off the end of a header
837
+ row — aligning left would push it out past the window. */
838
+ .overflow-menu {
839
+ position: relative;
840
+ display: inline-flex;
841
+ }
842
+
843
+ /* Catches the click that dismisses the menu. Fixed rather than
844
+ absolute so it covers the window and not just the header. Below
845
+ the list, above everything else. */
846
+ .overflow-backdrop {
847
+ position: fixed;
848
+ inset: 0;
849
+ z-index: 39;
850
+ }
851
+
852
+ .overflow-list {
853
+ position: absolute;
854
+ top: calc(100% + 6px);
855
+ right: 0;
856
+ z-index: 40;
857
+ min-width: 180px;
858
+ display: flex;
859
+ flex-direction: column;
860
+ padding: 5px;
861
+ background: var(--bg-surface, #30302e);
862
+ border: 1px solid var(--border, #4a4a45);
863
+ border-radius: var(--radius, 12px);
864
+ box-shadow: var(--shadow-pop, 0 10px 30px rgb(0 0 0 / 35%));
865
+ animation: menu-pop 0.14s cubic-bezier(0.2, 0.9, 0.3, 1.1);
866
+ transform-origin: top right;
867
+ }
868
+
869
+ @keyframes menu-pop {
870
+ from {
871
+ opacity: 0;
872
+ transform: scale(0.97) translateY(4px);
873
+ }
874
+
875
+ to {
876
+ opacity: 1;
877
+ transform: none;
878
+ }
879
+ }
880
+
881
+ @media (prefers-reduced-motion: reduce) {
882
+ .overflow-list {
883
+ animation: none;
884
+ }
885
+ }
886
+
887
+ /* A `button` wearing `.popup-item`, which was written for divs:
888
+ these undo what the user agent gives buttons and nothing else, so
889
+ the items match every other menu in the app. */
890
+ .overflow-item {
891
+ appearance: none;
892
+ border: 0;
893
+ background: none;
894
+ width: 100%;
895
+ text-align: left;
896
+ font: inherit;
897
+ font-size: var(--text-md, 13px);
898
+ color: var(--fg, #f0efea);
899
+ white-space: nowrap;
900
+ }
901
+
902
+ /* The row itself. Shared with the app's command palette, which is
903
+ why the name is `popup-item` and not `overflow-row`. */
904
+ .popup-item {
905
+ display: flex;
906
+ gap: var(--space-5, 10px);
907
+ align-items: baseline;
908
+ padding: 7px 11px;
909
+ border-radius: var(--radius-sm, 8px);
910
+ cursor: pointer;
911
+ font-size: var(--text-md, 13px);
912
+ }
913
+
914
+ .popup-item.active,
915
+ .popup-item:hover {
916
+ background: var(--bg-raised, #3a3a37);
917
+ }
918
+
919
+ /* The items are a flex row already for the chevron's sake; this is
920
+ what puts a gap between the glyph and the word. */
921
+ .overflow-item,
922
+ .popup-item {
923
+ gap: 9px;
924
+ }
925
+
926
+ .overflow-item:hover .menu-icon,
927
+ .overflow-item:focus-visible .menu-icon,
928
+ .popup-item:hover .menu-icon {
929
+ opacity: 1;
930
+ }
931
+
932
+ .overflow-item:disabled {
933
+ opacity: 0.5;
934
+ cursor: default;
935
+ }
936
+
937
+ .overflow-item:disabled:hover {
938
+ background: none;
939
+ }
940
+
941
+ .overflow-item:disabled .menu-icon {
942
+ opacity: 0.4;
943
+ }
944
+
945
+ /* Focus is how this menu is operated from the keyboard, so it is
946
+ drawn, not left to the browser's default outline on a transparent
947
+ button. */
948
+ .overflow-item:focus-visible {
949
+ outline: 2px solid var(--accent-blue, #6aa3f7);
950
+ outline-offset: -2px;
951
+ }
952
+
953
+ /* The toggle that is currently on. `.popup-item.active` already
954
+ tints the row; the tick is what says *which* state without relying
955
+ on the tint being noticed. */
956
+ .overflow-item.active::after {
957
+ content: "✓";
958
+ margin-left: auto;
959
+ padding-left: var(--space-6, 12px);
960
+ color: var(--fg-muted, #b8b5ad);
961
+ }
962
+
963
+ .overflow-item-danger {
964
+ color: var(--danger-text, #f28376);
965
+ }
966
+
967
+ .overflow-sep {
968
+ height: 1px;
969
+ margin: 4px 6px;
970
+ background: var(--border-soft, #3d3d39);
971
+ }
972
+
973
+ /* A submenu inside the overflow menu. Three export formats behind
974
+ one Export item, so the menu stays a list of things you can do
975
+ rather than a list of every combination of them. */
976
+ .overflow-sub-wrap {
977
+ position: relative;
978
+ display: flex;
979
+ flex-direction: column;
980
+ }
981
+
982
+ /* The chevron sits at the far edge, away from the label, so the row
983
+ reads as "Export … onwards" rather than as a two-word label. */
984
+ .overflow-item-parent .overflow-chevron {
985
+ margin-left: auto;
986
+ padding-left: var(--space-6, 12px);
987
+ color: var(--fg-faint, #a5a49e);
988
+ }
989
+
990
+ /* Opens leftward. The parent list is already pinned to the right
991
+ edge of whatever it hangs off, so a submenu flying out to the
992
+ right — the desktop default — would open past the window. */
993
+ .overflow-sub {
994
+ top: -5px;
995
+ right: calc(100% + 4px);
996
+ left: auto;
997
+ transform-origin: top right;
998
+ }
999
+
1000
+ /* Keep the parent row lit while its submenu is open: without it the
1001
+ submenu looks unattached to anything. */
1002
+ .overflow-sub-wrap:hover > .overflow-item-parent,
1003
+ .overflow-item-parent[aria-expanded="true"] {
1004
+ background: var(--bg-raised, #3a3a37);
1005
+ }
1006
+
1007
+ /* A bordered square that holds one `MenuIcon`. Used for the actions
1008
+ that sit beside a menu rather than inside it. */
1009
+ .kb-icon-btn {
1010
+ appearance: none;
1011
+ background: transparent;
1012
+ border: 1px solid var(--border-soft, #3d3d39);
1013
+ color: var(--fg-muted, #b8b5ad);
1014
+ width: 23px;
1015
+ height: 23px;
1016
+ border-radius: var(--radius-sm, 8px);
1017
+ display: inline-flex;
1018
+ align-items: center;
1019
+ justify-content: center;
1020
+ padding: 0;
1021
+ cursor: pointer;
1022
+ transition:
1023
+ border-color 0.12s,
1024
+ color 0.12s,
1025
+ background 0.12s;
1026
+ }
1027
+
1028
+ .kb-icon-btn:hover:not(:disabled) {
1029
+ color: var(--fg, #f0efea);
1030
+ border-color: var(--border, #4a4a45);
1031
+ background: var(--bg-raised, #3a3a37);
1032
+ }
1033
+
1034
+ .kb-icon-btn:disabled {
1035
+ opacity: 0.4;
1036
+ cursor: not-allowed;
1037
+ }
1038
+
1039
+ /* ── MarkdownInline ────────────────────────────────────────────────
1040
+ Rendered markdown flattened to one run of text, for previews.
1041
+ Every rule here exists to keep the content *inline*: the row that
1042
+ holds it clamps to two lines, and a single block-level child
1043
+ inside that breaks the clamp — the preview grows to the document's
1044
+ full height and the list stops being a list. */
1045
+ .mdi,
1046
+ .mdi > *,
1047
+ .mdi-block,
1048
+ .mdi-item,
1049
+ .mdi-cell {
1050
+ display: inline;
1051
+ }
1052
+
1053
+ /* Blocks become inline runs with a space after, so two paragraphs
1054
+ read as two sentences rather than as one run-on word. */
1055
+ .mdi-block::after {
1056
+ content: " ";
1057
+ }
1058
+
1059
+ /* A heading keeps its emphasis and loses its size. At preview scale
1060
+ a heading rendered as a heading is just large text in a small
1061
+ row. */
1062
+ .mdi-heading {
1063
+ font-weight: 600;
1064
+ color: var(--fg, #f0efea);
1065
+ }
1066
+
1067
+ .mdi-heading::after {
1068
+ content: " · ";
1069
+ font-weight: 400;
1070
+ color: var(--fg-faint, #a5a49e);
1071
+ }
1072
+
1073
+ /* List items separated rather than laid out: four bullets would be
1074
+ four lines where the row has room for two. */
1075
+ .mdi-item + .mdi-item::before,
1076
+ .mdi-cell + .mdi-cell::before {
1077
+ content: " · ";
1078
+ color: var(--fg-faint, #a5a49e);
1079
+ }
1080
+
1081
+ /* Code keeps its face, because the point of code in a preview is
1082
+ that it is code — but not its block, which would break the
1083
+ clamp. */
1084
+ .mdi-code {
1085
+ display: inline;
1086
+ padding: 0 3px;
1087
+ border-radius: 3px;
1088
+ background: var(--bg-raised, #3a3a37);
1089
+ font-family: var(--font-mono, ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace);
1090
+ font-size: 0.92em;
1091
+ white-space: pre-wrap;
1092
+ }
1093
+
1094
+ /* ── MermaidBlock ──────────────────────────────────────────────────
1095
+ Mermaid produces its own SVG with embedded styles tuned for a
1096
+ light background — we frame it with the standard inset surface and
1097
+ clip overly wide diagrams with horizontal scroll.
1098
+
1099
+ `mermaid` is a peer dependency, imported on demand: a page with no
1100
+ diagram in it never downloads the 700KB. */
1101
+ .mermaid-diagram {
1102
+ position: relative;
1103
+ margin: 12px 0;
1104
+ padding: var(--space-8, 16px);
1105
+ background: var(--bg-inset, #1f1f1d);
1106
+ border: 1px solid var(--border-soft, #3d3d39);
1107
+ border-radius: var(--radius, 12px);
1108
+ display: flex;
1109
+ justify-content: center;
1110
+ overflow-x: auto;
1111
+ }
1112
+
1113
+ .mermaid-diagram svg {
1114
+ max-width: 100%;
1115
+ height: auto;
1116
+ }
1117
+
1118
+ /* Copies the fenced source, not the rendered SVG. */
1119
+ .diagram-copy {
1120
+ position: absolute;
1121
+ top: 8px;
1122
+ right: 8px;
1123
+ display: inline-flex;
1124
+ align-items: center;
1125
+ justify-content: center;
1126
+ padding: var(--space-2, 4px) var(--space-3, 6px);
1127
+ border: 1px solid var(--border-soft, #3d3d39);
1128
+ border-radius: var(--radius-sm, 8px);
1129
+ background: var(--bg-inset, #1f1f1d);
1130
+ color: var(--fg-muted, #b8b5ad);
1131
+ cursor: pointer;
1132
+ z-index: 1;
1133
+ transition:
1134
+ background 0.15s,
1135
+ color 0.15s,
1136
+ border-color 0.15s;
1137
+ }
1138
+
1139
+ .diagram-copy:hover,
1140
+ .diagram-copy:focus-visible {
1141
+ color: var(--fg, #f0efea);
1142
+ border-color: var(--border, #4a4a45);
1143
+ }
1144
+
1145
+ /* A blocked clipboard says so rather than looking like it worked. */
1146
+ .diagram-copy[data-state="failed"] {
1147
+ color: var(--danger, #ef6a5a);
1148
+ border-color: var(--danger, #ef6a5a);
1149
+ }
1150
+
1151
+ /* The source, not a blank box. A diagram that does not parse is
1152
+ usually a diagram somebody is halfway through writing, and hiding
1153
+ what they wrote is the least helpful response to that. */
1154
+ .mermaid-error {
1155
+ margin: 12px 0;
1156
+ padding: var(--space-7, 14px);
1157
+ background: var(--bg-inset, #1f1f1d);
1158
+ border: 1px solid var(--danger, #ef6a5a);
1159
+ border-radius: var(--radius, 12px);
1160
+ overflow-x: auto;
1161
+ font-family: var(--font-mono, ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace);
1162
+ font-size: var(--text-md, 13px);
1163
+ color: var(--fg, #f0efea);
1164
+ }
1165
+
1166
+ /* ── Tier 0: the page itself ───────────────────────────────────────
1167
+ `.igni-root` used to set colour and type and stop. No height, no
1168
+ box-sizing, nothing on `html`. A full-frame extension therefore
1169
+ began by writing the same six lines every other extension writes,
1170
+ and wrote them differently — which is how two panels in one app
1171
+ end up scrolling differently.
1172
+
1173
+ These rules are the floor taking responsibility for the page. They
1174
+ are safe on a page that does not want them: a short document still
1175
+ flows, because the height rules only matter once something inside
1176
+ asks to fill. */
1177
+
1178
+ html,
1179
+ body {
1180
+ height: 100%;
1181
+ }
1182
+
1183
+ .igni-root {
1184
+ min-height: 100%;
1185
+ /* Border-box everywhere. The alternative is that every padding
1186
+ value on the space scale is also a width change, which makes the
1187
+ scale a lie. */
1188
+ box-sizing: border-box;
1189
+ }
1190
+
1191
+ .igni-root *,
1192
+ .igni-root *::before,
1193
+ .igni-root *::after {
1194
+ box-sizing: inherit;
1195
+ }
1196
+
1197
+ /* The shell: a column that fills the frame, with exactly one part
1198
+ allowed to grow. `min-height: 0` on the growing row is the whole
1199
+ reason this is published — without it a flex child refuses to
1200
+ shrink below its content and the pane grows instead of scrolling,
1201
+ which is the single most-reported layout bug in flexbox and is
1202
+ invisible until the content is long. */
1203
+ .ui-shell {
1204
+ display: flex;
1205
+ flex-direction: column;
1206
+ height: 100%;
1207
+ min-height: 0;
1208
+ }
1209
+
1210
+ .ui-shell-header,
1211
+ .ui-shell-footer {
1212
+ flex: 0 0 auto;
1213
+ }
1214
+
1215
+ .ui-shell-body {
1216
+ flex: 1 1 auto;
1217
+ min-height: 0;
1218
+ display: flex;
1219
+ flex-direction: column;
1220
+ }
1221
+
1222
+ /* A scroll container that actually scrolls inside a flex column.
1223
+ `overscroll-behavior` keeps a scroll that reaches the end from
1224
+ chaining to the host page behind the frame. */
1225
+ .ui-scroll {
1226
+ flex: 1 1 auto;
1227
+ min-height: 0;
1228
+ overflow: auto;
1229
+ overscroll-behavior: contain;
1230
+ }
1231
+
1232
+ .ui-scroll-x {
1233
+ overflow-x: auto;
1234
+ overflow-y: hidden;
1235
+ }
1236
+
1237
+ /* ── Tier 0: selection ─────────────────────────────────────────────
1238
+ `.ui-item` had hover and focus and nothing for *selected*, which is
1239
+ the entire interaction model of a two-pane browser: a list on the
1240
+ left, and the thing you picked still showing which one it was.
1241
+ Without this every extension invents its own highlight, and they
1242
+ differ from igni and from each other.
1243
+
1244
+ Driven by the ARIA attribute rather than a class, so the thing that
1245
+ makes it look selected is the same thing that makes it announce as
1246
+ selected. A row that looks picked and reads as not picked is the
1247
+ bug this shape prevents. */
1248
+ .ui-item[aria-selected="true"],
1249
+ .ui-item[aria-current="true"],
1250
+ .ui-item[aria-current="page"],
1251
+ .ui-item[aria-current="step"],
1252
+ .ui-item[aria-current="location"] {
1253
+ background: color-mix(in srgb, var(--accent-blue) 16%, transparent);
1254
+ color: var(--fg);
1255
+ }
1256
+
1257
+ /* Selection survives the pointer leaving, and reads as selected
1258
+ rather than as hovered, so the two states are not the same colour. */
1259
+ .ui-item[aria-selected="true"]:hover,
1260
+ .ui-item[aria-current]:hover {
1261
+ background: color-mix(in srgb, var(--accent-blue) 24%, transparent);
1262
+ }
1263
+
1264
+ /* A hairline on the leading edge. Colour alone is not a state: at
1265
+ 16% tint on a dark surface the difference is small, and somebody
1266
+ who cannot see it gets nothing. */
1267
+ .ui-item[aria-selected="true"],
1268
+ .ui-item[aria-current]:not([aria-current="false"]) {
1269
+ box-shadow: inset 2px 0 0 0 var(--accent-blue);
1270
+ }
1271
+
1272
+ /* ── Tier 0: table internals ───────────────────────────────────────
1273
+ `.ui-table` was three declarations — width, border-collapse,
1274
+ font-size. No cell padding, no header rule, nothing for a sortable
1275
+ header. Every extension that showed a table styled it itself, and
1276
+ the reference extension's own to-do said so. */
1277
+ .ui-table th,
1278
+ .ui-table td {
1279
+ padding: var(--space-3) var(--space-4);
1280
+ text-align: left;
1281
+ vertical-align: top;
1282
+ border-bottom: 1px solid var(--border-soft);
1283
+ }
1284
+
1285
+ .ui-table thead th {
1286
+ position: sticky;
1287
+ top: 0;
1288
+ z-index: 1;
1289
+ /* Opaque: a sticky header over scrolling rows shows them through
1290
+ anything translucent. */
1291
+ background: var(--bg-surface);
1292
+ color: var(--fg-muted);
1293
+ font-size: var(--text-xs);
1294
+ font-weight: 600;
1295
+ letter-spacing: 0.03em;
1296
+ text-transform: uppercase;
1297
+ border-bottom: 1px solid var(--border);
1298
+ }
1299
+
1300
+ /* A row header — the cell that names its row — is emphasised the way
1301
+ the row's subject should be, not the way a column heading is. */
1302
+ .ui-table tbody th[scope="row"] {
1303
+ font-weight: 500;
1304
+ color: var(--fg);
1305
+ text-transform: none;
1306
+ letter-spacing: normal;
1307
+ font-size: inherit;
1308
+ }
1309
+
1310
+ .ui-table tbody tr:last-child th,
1311
+ .ui-table tbody tr:last-child td {
1312
+ border-bottom: 0;
1313
+ }
1314
+
1315
+ .ui-table tbody tr:hover {
1316
+ background: var(--bg-inset);
1317
+ }
1318
+
1319
+ .ui-table tbody tr[aria-selected="true"] {
1320
+ background: color-mix(in srgb, var(--accent-blue) 14%, transparent);
1321
+ }
1322
+
1323
+ /* The button inside a sortable header. It fills the cell so the whole
1324
+ heading is the target, rather than a word inside it. */
1325
+ .ui-th-sort {
1326
+ appearance: none;
1327
+ background: none;
1328
+ border: 0;
1329
+ padding: 0;
1330
+ margin: 0;
1331
+ font: inherit;
1332
+ color: inherit;
1333
+ letter-spacing: inherit;
1334
+ text-transform: inherit;
1335
+ display: inline-flex;
1336
+ align-items: center;
1337
+ gap: var(--space-2);
1338
+ width: 100%;
1339
+ cursor: pointer;
1340
+ }
1341
+
1342
+ .ui-th-sort:hover {
1343
+ color: var(--fg);
1344
+ }
1345
+
1346
+ .ui-th-sort:focus-visible {
1347
+ outline: 2px solid var(--accent-blue);
1348
+ outline-offset: 2px;
1349
+ border-radius: var(--radius-sm);
1350
+ }
1351
+
1352
+ /* The arrow. Hidden from the accessibility tree because `aria-sort`
1353
+ on the `th` already says this, and a screen reader announcing both
1354
+ says it twice. */
1355
+ .ui-th-arrow {
1356
+ opacity: 0;
1357
+ font-size: var(--text-xs);
1358
+ transition: opacity 0.12s;
1359
+ }
1360
+
1361
+ [aria-sort="ascending"] .ui-th-arrow,
1362
+ [aria-sort="descending"] .ui-th-arrow {
1363
+ opacity: 1;
1364
+ }
1365
+
1366
+ .ui-th-sort:hover .ui-th-arrow {
1367
+ opacity: 0.5;
1368
+ }
1369
+
1370
+ /* Numeric columns line up on the right so digits compare by eye, and
1371
+ use tabular figures so they compare by column. */
1372
+ .ui-table .ui-num {
1373
+ text-align: right;
1374
+ font-variant-numeric: tabular-nums;
1375
+ }
1376
+
1377
+ /* ── Tier 0: messages ──────────────────────────────────────────────
1378
+ A toast stack, an inline banner, and the error boundary's fallback.
1379
+ EXTENSIBILITY §5 names `notify` and §7 promises an error boundary;
1380
+ both were specified and absent, which is worse than missing because
1381
+ a partner designs against them. */
1382
+ .ui-toasts {
1383
+ position: fixed;
1384
+ right: var(--space-8);
1385
+ bottom: var(--space-8);
1386
+ z-index: 90;
1387
+ display: flex;
1388
+ flex-direction: column;
1389
+ gap: var(--space-3);
1390
+ /* The stack must not eat clicks on the page beneath it; the toasts
1391
+ themselves take them back. */
1392
+ pointer-events: none;
1393
+ max-width: min(26rem, calc(100vw - var(--space-16)));
1394
+ }
1395
+
1396
+ .ui-toast {
1397
+ pointer-events: auto;
1398
+ display: flex;
1399
+ align-items: flex-start;
1400
+ gap: var(--space-4);
1401
+ padding: var(--space-4) var(--space-5);
1402
+ background: var(--bg-raised);
1403
+ color: var(--fg);
1404
+ border: 1px solid var(--border);
1405
+ border-left: 3px solid var(--border);
1406
+ border-radius: var(--radius);
1407
+ box-shadow: var(--shadow-pop);
1408
+ font-size: var(--text-md);
1409
+ animation: toast-in 0.16s cubic-bezier(0.2, 0.9, 0.3, 1.1);
1410
+ }
1411
+
1412
+ .ui-toast[data-tone="success"] {
1413
+ border-left-color: var(--success);
1414
+ }
1415
+
1416
+ .ui-toast[data-tone="warning"] {
1417
+ border-left-color: var(--warning);
1418
+ }
1419
+
1420
+ .ui-toast[data-tone="danger"] {
1421
+ border-left-color: var(--danger);
1422
+ }
1423
+
1424
+ .ui-toast-body {
1425
+ flex: 1 1 auto;
1426
+ min-width: 0;
1427
+ }
1428
+
1429
+ .ui-toast-dismiss {
1430
+ appearance: none;
1431
+ background: none;
1432
+ border: 0;
1433
+ padding: 0 var(--space-1);
1434
+ color: var(--fg-faint);
1435
+ cursor: pointer;
1436
+ font: inherit;
1437
+ line-height: 1;
1438
+ }
1439
+
1440
+ .ui-toast-dismiss:hover {
1441
+ color: var(--fg);
1442
+ }
1443
+
1444
+ .ui-toast-dismiss:focus-visible {
1445
+ outline: 2px solid var(--accent-blue);
1446
+ outline-offset: 2px;
1447
+ border-radius: var(--radius-sm);
1448
+ }
1449
+
1450
+ @keyframes toast-in {
1451
+ from {
1452
+ opacity: 0;
1453
+ transform: translateY(6px);
1454
+ }
1455
+
1456
+ to {
1457
+ opacity: 1;
1458
+ transform: none;
1459
+ }
1460
+ }
1461
+
1462
+ @media (prefers-reduced-motion: reduce) {
1463
+ .ui-toast {
1464
+ animation: none;
1465
+ }
1466
+ }
1467
+
1468
+ /* A persistent page-level message. Not a toast: a toast is about
1469
+ something that just happened, a banner is about a condition that
1470
+ is still true. */
1471
+ .ui-banner {
1472
+ display: flex;
1473
+ align-items: flex-start;
1474
+ gap: var(--space-4);
1475
+ padding: var(--space-4) var(--space-5);
1476
+ border: 1px solid var(--border);
1477
+ border-left: 3px solid var(--border);
1478
+ border-radius: var(--radius-sm);
1479
+ background: var(--bg-inset);
1480
+ color: var(--fg);
1481
+ font-size: var(--text-md);
1482
+ }
1483
+
1484
+ .ui-banner[data-tone="success"] {
1485
+ border-left-color: var(--success);
1486
+ }
1487
+
1488
+ .ui-banner[data-tone="warning"] {
1489
+ border-left-color: var(--warning);
1490
+ }
1491
+
1492
+ .ui-banner[data-tone="danger"] {
1493
+ border-left-color: var(--danger);
1494
+ }
1495
+
1496
+ .ui-banner-body {
1497
+ flex: 1 1 auto;
1498
+ min-width: 0;
1499
+ }
1500
+
1501
+ /* What is shown where a subtree threw. Styled as content rather than
1502
+ as a crash: the extension is still mounted, one part of it is not. */
1503
+ .ui-crash {
1504
+ display: flex;
1505
+ flex-direction: column;
1506
+ gap: var(--space-4);
1507
+ align-items: flex-start;
1508
+ padding: var(--space-10);
1509
+ border: 1px solid var(--danger);
1510
+ border-radius: var(--radius);
1511
+ background: var(--bg-inset);
1512
+ color: var(--fg);
1513
+ }
1514
+
1515
+ .ui-crash-detail {
1516
+ margin: 0;
1517
+ max-width: 100%;
1518
+ overflow-x: auto;
1519
+ font-family: var(--font-mono);
1520
+ font-size: var(--text-sm);
1521
+ color: var(--fg-muted);
1522
+ white-space: pre-wrap;
1523
+ }
1524
+
1525
+ /* A state dot, matching the health contract's four states. The shape
1526
+ carries no meaning on its own — it is always beside its word. */
1527
+ .ui-status {
1528
+ display: inline-flex;
1529
+ align-items: center;
1530
+ gap: var(--space-3);
1531
+ font-size: var(--text-sm);
1532
+ color: var(--fg-muted);
1533
+ }
1534
+
1535
+ .ui-status::before {
1536
+ content: "";
1537
+ width: 7px;
1538
+ height: 7px;
1539
+ border-radius: var(--radius-circle);
1540
+ background: var(--fg-faint);
1541
+ flex: none;
1542
+ }
1543
+
1544
+ .ui-status[data-state="READY"]::before {
1545
+ background: var(--success);
1546
+ }
1547
+
1548
+ .ui-status[data-state="PREPARING"]::before {
1549
+ background: var(--warning);
1550
+ }
1551
+
1552
+ .ui-status[data-state="FAILED"]::before {
1553
+ background: var(--danger);
1554
+ }
1555
+
1556
+ .ui-status[data-state="DISABLED"]::before {
1557
+ background: var(--fg-faint);
1558
+ }
1559
+
1560
+ /* ── Split ─────────────────────────────────────────────────────────
1561
+ Two panes and a rule you can move. The width lives in a custom
1562
+ property the component writes, so dragging reflows the browser and
1563
+ never re-renders the tree.
1564
+
1565
+ The property is named per instance, which is why there is no
1566
+ literal here: two splits on one page would otherwise fight over
1567
+ one variable. */
1568
+ .ui-split {
1569
+ display: grid;
1570
+ grid-template-columns: var(--ui-split-w, 280px) 5px 1fr;
1571
+ flex: 1 1 auto;
1572
+ /* The flexbox trap, again: without it the panes grow the page
1573
+ instead of scrolling. */
1574
+ min-height: 0;
1575
+ }
1576
+
1577
+ .ui-split-end {
1578
+ grid-template-columns: 1fr 5px var(--ui-split-w, 280px);
1579
+ }
1580
+
1581
+ .ui-split-aside,
1582
+ .ui-split-main {
1583
+ min-width: 0;
1584
+ min-height: 0;
1585
+ display: flex;
1586
+ flex-direction: column;
1587
+ }
1588
+
1589
+ .ui-split-main {
1590
+ border-left: 1px solid var(--border-soft, #3d3d39);
1591
+ }
1592
+
1593
+ .ui-split-end .ui-split-main {
1594
+ border-left: 0;
1595
+ border-right: 1px solid var(--border-soft, #3d3d39);
1596
+ }
1597
+
1598
+ .ui-split-handle {
1599
+ cursor: col-resize;
1600
+ background: transparent;
1601
+ /* Wider than it looks. A 5px target is one most people miss, and
1602
+ the negative margin buys hit area without moving the rule. */
1603
+ margin: 0 -2px;
1604
+ z-index: 1;
1605
+ touch-action: none;
1606
+ }
1607
+
1608
+ .ui-split-handle:hover,
1609
+ .ui-split-handle:focus-visible {
1610
+ background: var(--accent-blue, #6aa3f7);
1611
+ outline: none;
1612
+ }
1613
+
1614
+ /* While a drag is in progress. Stops the pointer selecting text in
1615
+ either pane on the way past, and keeps the resize cursor even when
1616
+ the pointer outruns the reflow. */
1617
+ .ui-split-resizing {
1618
+ cursor: col-resize;
1619
+ user-select: none;
1620
+ }
1621
+
1622
+ /* ── Prose ─────────────────────────────────────────────────────────
1623
+ What rendered markdown looks like.
1624
+
1625
+ The floor published `MarkdownInline`, which flattens block
1626
+ structure by design — right for a two-line preview and exactly
1627
+ wrong for a document. So an extension with prose in it bundled its
1628
+ own renderer and then had nothing to style it against, because
1629
+ igni's prose rules live in `theme.css` and are not in the floor.
1630
+
1631
+ These are. They are deliberately plain: a document surface is the
1632
+ extension's, and what the floor owes is type that matches the rest
1633
+ of the app. */
1634
+ .ui-prose {
1635
+ max-width: 48rem;
1636
+ color: var(--fg, #f0efea);
1637
+ font-size: var(--text-md, 13px);
1638
+ line-height: 1.65;
1639
+ }
1640
+
1641
+ .ui-prose > * + * {
1642
+ margin-top: var(--space-6, 12px);
1643
+ }
1644
+
1645
+ .ui-prose h1,
1646
+ .ui-prose h2,
1647
+ .ui-prose h3,
1648
+ .ui-prose h4 {
1649
+ margin: 0;
1650
+ color: var(--fg, #f0efea);
1651
+ line-height: 1.3;
1652
+ }
1653
+
1654
+ .ui-prose h1 {
1655
+ font-size: var(--text-2xl, 20px);
1656
+ }
1657
+
1658
+ .ui-prose h2 {
1659
+ font-size: var(--text-xl, 17px);
1660
+ }
1661
+
1662
+ .ui-prose h3 {
1663
+ font-size: var(--text-lg, 14px);
1664
+ }
1665
+
1666
+ .ui-prose h4 {
1667
+ font-size: var(--text-md, 13px);
1668
+ }
1669
+
1670
+ /* A heading is the start of what follows, so it sits closer to it
1671
+ than to what came before. */
1672
+ .ui-prose * + h1,
1673
+ .ui-prose * + h2,
1674
+ .ui-prose * + h3,
1675
+ .ui-prose * + h4 {
1676
+ margin-top: var(--space-12, 24px);
1677
+ }
1678
+
1679
+ .ui-prose p,
1680
+ .ui-prose ul,
1681
+ .ui-prose ol {
1682
+ margin: 0;
1683
+ }
1684
+
1685
+ .ui-prose ul,
1686
+ .ui-prose ol {
1687
+ padding-left: var(--space-10, 20px);
1688
+ }
1689
+
1690
+ .ui-prose li + li {
1691
+ margin-top: var(--space-2, 4px);
1692
+ }
1693
+
1694
+ .ui-prose a {
1695
+ color: var(--accent-blue-text, #8eb9f9);
1696
+ }
1697
+
1698
+ .ui-prose code {
1699
+ padding: 0 3px;
1700
+ border-radius: 3px;
1701
+ background: var(--bg-raised, #3a3a37);
1702
+ font-family: var(
1703
+ --font-mono,
1704
+ ui-monospace,
1705
+ SFMono-Regular,
1706
+ "SF Mono",
1707
+ Menlo,
1708
+ Consolas,
1709
+ monospace
1710
+ );
1711
+ font-size: 0.92em;
1712
+ }
1713
+
1714
+ .ui-prose pre {
1715
+ margin: 0;
1716
+ padding: var(--space-7, 14px);
1717
+ overflow-x: auto;
1718
+ background: var(--bg-inset, #1f1f1d);
1719
+ border: 1px solid var(--border-soft, #3d3d39);
1720
+ border-radius: var(--radius, 12px);
1721
+ }
1722
+
1723
+ /* The inline rule above would double up inside a block. */
1724
+ .ui-prose pre code {
1725
+ padding: 0;
1726
+ background: none;
1727
+ font-size: var(--text-sm, 12px);
1728
+ }
1729
+
1730
+ .ui-prose blockquote {
1731
+ margin: 0;
1732
+ padding-left: var(--space-7, 14px);
1733
+ border-left: 3px solid var(--border, #4a4a45);
1734
+ color: var(--fg-muted, #b8b5ad);
1735
+ }
1736
+
1737
+ .ui-prose hr {
1738
+ margin: 0;
1739
+ border: 0;
1740
+ border-top: 1px solid var(--border-soft, #3d3d39);
1741
+ }
1742
+
1743
+ .ui-prose table {
1744
+ width: 100%;
1745
+ border-collapse: collapse;
1746
+ font-size: var(--text-sm, 12px);
1747
+ }
1748
+
1749
+ .ui-prose th,
1750
+ .ui-prose td {
1751
+ padding: var(--space-3, 6px) var(--space-4, 8px);
1752
+ text-align: left;
1753
+ vertical-align: top;
1754
+ border-bottom: 1px solid var(--border-soft, #3d3d39);
1755
+ }
1756
+
1757
+ .ui-prose th {
1758
+ color: var(--fg-muted, #b8b5ad);
1759
+ font-weight: 600;
1760
+ }
1761
+
1762
+ .ui-prose img {
1763
+ max-width: 100%;
1764
+ height: auto;
1765
+ border-radius: var(--radius-sm, 8px);
1766
+ }