semlith 0.26.0

A fast local vector store for AI agents — index files once, keep it current as you save, and answer questions across all of it in milliseconds without leaving the machine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
/* The portal's stylesheet.
 *
 * Every byte of it is compiled into the binary, so the page renders with the
 * cable unplugged. There is no build step, no preprocessor and no framework —
 * what is here is what the browser gets.
 *
 * Organised as: tokens, reset, shell, primitives, components, pages, narrow.
 * The scales at the top are the point of the file. Before them this stylesheet
 * had fourteen font sizes, fourteen gap values, seven radii and eight box
 * paddings, none of which agreed with each other, and every view invented its
 * own spacing inline. A value that is not in a scale below does not belong in
 * a rule below.
 */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */

:root {
  /* Colour. The light palette is the default and the one the design specifies. */
  --bg: #f4f6f8;
  --panel: #ffffff;
  --soft: #f9fafb;
  --line: #dce3e8;
  --line-soft: #e8edf1;
  --ink: #1e2a35;
  --ink-2: #3a4d5e;
  /* Was #6b7f90, which is 4.14:1 on white and fails AA at the 11-13px sizes
   * most of the secondary text in this product uses. This passes at 4.6:1. */
  --muted: #64778a;
  --accent: #f0a43c;
  --accent-ink: #1e2a35;
  --accent-edge: #c97f14;
  --blue: #4c7088;
  --blue-soft: #e3ecf2;
  --blue-ink: #2f4f68;
  --green: #3e9a6e;
  --green-soft: #eaf4ef;
  --green-ink: #1f5c3e;
  --amber-soft: #fbebd2;
  --amber-ink: #7a4e0a;
  /* A failure has to look different from an absence. Without these, "the
   * request failed" and "nothing matched your filter" rendered identically. */
  --red: #c0392b;
  --red-soft: #fbeae8;
  --red-ink: #8e2a1f;
  --chip: #eef2f5;
  --code-bg: #1e2a35;
  --code-ink: #c8d6e0;
  --code-key: #7e93a3;
  --scrim: rgba(20, 28, 36, 0.38);
  --shadow-nav: 0 18px 40px rgba(16, 26, 36, 0.14);
  --shadow-pop: 0 10px 28px rgba(16, 26, 36, 0.18), 0 1px 2px rgba(16, 26, 36, 0.12);

  /* The fallback families are metric-matched to Plex below, so `font-display:
   * swap` swaps a face rather than a layout. */
  --sans: "IBM Plex Sans", "Plex Sans Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Plex Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing. Nine steps.
   *
   * The three middle ones (10, 14, 18) and the retuned top two are what took
   * the density down to the design's: it never exceeds 20 for page rhythm and
   * clusters its gaps at 8 to 18, where this scale's old top steps were 24 and
   * 40. The small steps are deliberately untouched — a label and its value
   * still sit at 4, items in a group at 8 to 10 — because tightening those
   * would merge things that are not related, which is a different mistake from
   * the one being fixed. */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-2h: 10px;
  --sp-3: 12px;
  --sp-3h: 14px;
  --sp-4: 16px;
  --sp-4h: 18px;
  --sp-5: 20px;
  --sp-6: 24px;

  /* What a pill-shaped control in a filter row stands at. The design holds
   * every one of them to the same height, which is what makes a row of
   * unrelated dials read as one instrument panel. */
  --h-dial: 28px;

  /* Radius. Four steps. */
  --r-1: 4px;
  --r-2: 6px;
  --r-3: 8px;
  --r-4: 10px;
  --r-pill: 999px;

  /* Type. Every size in the product is one of these — there is no raw pixel
   * font size anywhere below this block.
   *
   * The three half steps are the v3 design's, and they are steps rather than
   * artefacts: at ten to thirteen pixels half a pixel is the difference
   * between a freshness word and the badge beside it, and snapping them to
   * the whole steps merged pairs the design deliberately separated. They are
   * half steps and not a second scale — nothing new sits between them. */
  --t-micro: 10px;
  --t-micro-h: 10.5px;
  --t-tiny: 11px;
  --t-tiny-h: 11.5px;
  --t-small: 12px;
  --t-small-h: 12.5px;
  --t-body-sm: 13px;
  --t-body: 14px;
  --t-lead: 16px;
  --t-title: 18px;
  --t-h1: 21px;
  --t-display: 24px;
  /* What a field's text reads at. 13px on a pointer device, where it matches
   * the prose around it; 16px under a coarse pointer, because anything smaller
   * makes iOS Safari zoom the page when a field takes focus, and that reads as
   * the layout breaking when you tap a box. */
  --t-field: 13px;

  /* Line height, paired with the type steps. Before this the stylesheet had
   * six line-height declarations in 2,283 lines, so almost everything
   * inherited the body's 1.45 — including 12px mono in a table row, which the
   * design sets at 1.6 because a dense monospace row needs the air. */
  --lh-tight: 1.25;
  --lh-heading: 1.3;
  --lh-prose: 1.45;
  --lh-code: 1.6;

  /* Motion. One vocabulary, declared once: no rule below states a duration or
   * a curve of its own. */
  --d-quick: 120ms;
  --d-fade: 130ms;
  --d-hover: 140ms;
  --d-pop: 150ms;
  --d-rise: 160ms;
  --d-slide: 170ms;
  /* Deliberately linear, and deliberately slower: it reports real progress,
   * and an eased progress bar lies about the rate. */
  --d-bar: 0.4s;
  /* The one looping animation in the portal: the daemon's status dot. */
  --d-pulse: 2.4s;
  --e-in-out: ease;
  --e-out: ease-out;
  --e-pop: cubic-bezier(0.2, 0.9, 0.3, 1);
  --e-linear: linear;

  /* One measure for prose, so a subtitle on a 1600px display does not run to
   * 180 characters. Page subtitles are exempt: they sit on their own row under
   * the title and run the page's width, because capping them there is what
   * wrapped them mid-sentence at 1440px. */
  --measure: 68ch;

  --topbar-h: 56px;
  --rail-w: 56px;
  --side-w: 236px;
}

/* Metric-matched fallbacks.
 *
 * The five Plex faces are inside the binary, so `font-display: swap` is a
 * swap between two local fonts — but a swap between two fonts with different
 * metrics still reflows the page, and the header and the stat strip are
 * exactly where that shows. These override the fallback's metrics to Plex's,
 * so the line count before the swap equals the line count after it. Nothing is
 * fetched: the fallback families are system fonts. */
@font-face {
  font-family: "Plex Sans Fallback";
  src: local("Helvetica Neue"), local("Arial"), local("Liberation Sans");
  size-adjust: 100.6%;
  ascent-override: 103%;
  descent-override: 27%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Plex Mono Fallback";
  src: local("Menlo"), local("Consolas"), local("DejaVu Sans Mono");
  size-adjust: 99.4%;
  ascent-override: 103%;
  descent-override: 27%;
  line-gap-override: 0%;
}

:root[data-theme="dark"] {
  --bg: #0f151a;
  --panel: #161f27;
  --soft: #1b242c;
  --line: #26333d;
  --line-soft: #202b34;
  --ink: #e7eef3;
  --ink-2: #b7c6d1;
  --muted: #8a9dab;
  --accent: #f0a43c;
  --accent-ink: #13202b;
  --accent-edge: #c97f14;
  --blue: #86aec7;
  --blue-soft: #1c2b37;
  --blue-ink: #a9c8db;
  --green: #4fb185;
  --green-soft: #16261f;
  --green-ink: #7fcfa8;
  --amber-soft: #2e2310;
  --amber-ink: #e9bc72;
  --red: #e08074;
  --red-soft: #2b1714;
  --red-ink: #f0a79c;
  --chip: #212c35;
  --code-bg: #0a1015;
  --code-ink: #c8d6e0;
  --code-key: #7e93a3;
  --scrim: rgba(0, 0, 0, 0.5);
  --shadow-nav: 0 18px 40px rgba(0, 0, 0, 0.42);
  --shadow-pop: 0 10px 28px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* A machine set to dark should not be shown a white page and asked to find the
 * toggle. The explicit choice, when there is one, still wins: the toggle writes
 * data-theme, and both attribute blocks are more specific than this. */
/* Touch. The zoom floor only applies where there is a touch keyboard to bring
 * the page up to meet. */
@media (pointer: coarse) {
  :root {
    --t-field: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151a;
    --panel: #161f27;
    --soft: #1b242c;
    --line: #26333d;
    --line-soft: #202b34;
    --ink: #e7eef3;
    --ink-2: #b7c6d1;
    --muted: #8a9dab;
    --accent-ink: #13202b;
    --blue: #86aec7;
    --blue-soft: #1c2b37;
    --blue-ink: #a9c8db;
    --green: #4fb185;
    --green-soft: #16261f;
    --green-ink: #7fcfa8;
    --amber-soft: #2e2310;
    --amber-ink: #e9bc72;
    --red: #e08074;
    --red-soft: #2b1714;
    --red-ink: #f0a79c;
    --chip: #212c35;
    --code-bg: #0a1015;
    --scrim: rgba(0, 0, 0, 0.5);
    --shadow-nav: 0 18px 40px rgba(0, 0, 0, 0.42);
    --shadow-pop: 0 10px 28px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

/* ------------------------------------------------------------------- reset */

* {
  box-sizing: border-box;
}

/* `hidden` is how this page shows and hides the rail, the drawer and the
 * picker, and the attribute's own `display: none` is a UA-stylesheet rule that
 * any `display: flex` below beats on specificity. Without this the rail and the
 * drawer rendered side by side. */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
}

body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: var(--lh-prose);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Screen-reader-only, for the labels every input now carries. A placeholder is
 * not a label: it disappears the moment anyone types. */
.only-narrow {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill.on i {
    animation: none;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ------------------------------------------------------------------- shell */

/* `dvh` rather than `vh`: on a phone the URL bar collapses, and `100vh` is the
 * taller of the two states, so the bottom of the shell sits under it. */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.hamburger,
.icon-button {
  transition: background var(--d-fade) var(--e-in-out), color var(--d-fade) var(--e-in-out),
    border-color var(--d-fade) var(--e-in-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink-2);
  cursor: pointer;
}
.hamburger:hover,
.icon-button:hover {
  background: var(--soft);
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.brand .logo {
  width: 26px;
  height: 26px;
  border-radius: var(--r-2);
  display: block;
}

.wordmark {
  font-weight: 600;
  letter-spacing: -0.01em;
  /* Without this the wordmark cannot shrink, and on a narrow screen it pushes
   * the theme toggle off the end of a bar that does not scroll. */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.divider-v {
  width: 1px;
  height: 22px;
  background: var(--line);
  flex-shrink: 0;
}

.page-title {
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.spacer {
  flex-grow: 1;
}

.search-launcher {
  transition: border-color var(--d-fade) var(--e-in-out), color var(--d-fade) var(--e-in-out),
    background var(--d-fade) var(--e-in-out);
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 var(--sp-2) 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--soft);
  color: var(--muted);
  flex: 0 1 320px;
  min-width: 0;
  cursor: pointer;
}
.search-launcher:hover {
  border-color: var(--blue);
  color: var(--ink);
}
.search-launcher .what {
  font-size: var(--t-body-sm);
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.key-hint {
  font-family: var(--mono);
  font-size: var(--t-micro);
  padding: 2px 6px;
  border-radius: var(--r-1);
  background: var(--panel);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.body {
  display: flex;
  align-items: stretch;
  flex-grow: 1;
  min-height: 0;
  position: relative;
}

main {
  flex-grow: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* The icon rail, shown where the sidebar is collapsed on a wide screen. The
 * point of it is that navigation never disappears entirely: collapsing the
 * labels should not cost the user the ability to move. */
.rail {
  width: var(--rail-w);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-3) 0;
  overflow-y: auto;
}

.rail-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}

.rail-rule {
  width: 20px;
  height: 1px;
  background: var(--line);
  margin: 5px 0;
}

.rail-item {
  transition: background var(--d-fade) var(--e-in-out), color var(--d-fade) var(--e-in-out);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-3);
  flex-shrink: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.rail-item:hover {
  background: var(--soft);
  color: var(--ink);
}
.rail-item[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--ink);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
  animation: pulse var(--d-pulse) ease-in-out infinite;
}

.sidebar {
  width: var(--side-w);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  overflow-y: auto;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group-label {
  font: 500 var(--t-micro) var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--sp-2) var(--sp-3) var(--sp-1);
}

.nav-item {
  transition: background var(--d-fade) var(--e-in-out), color var(--d-fade) var(--e-in-out);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-2);
  font-weight: 500;
  font-size: var(--t-body-sm);
  color: var(--ink-2);
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.nav-item:hover {
  background: var(--soft);
  color: var(--ink);
}
.nav-item[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--ink);
}
.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.daemon-card {
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--sp-2h) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  background: var(--soft);
}
.daemon-card .who {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 500;
}
.daemon-card .fact {
  font-family: var(--mono);
  font-size: var(--t-tiny);
  color: var(--muted);
}

.scrim {
  display: none;
}

/* -------------------------------------------------------------- primitives */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The page scrolls as one thing.
 *
 * An earlier version bounded the page to the viewport and let exactly one child
 * scroll inside it, which kept the title in place and moved everything under it
 * — and reading a page where the top half is pinned and the bottom half slides
 * is worse than reading a page that simply scrolls. The window still never
 * scrolls: `#app` is the viewport and this is the one region inside it that
 * moves.
 *
 * A table is the exception, below: its header stays while its rows move,
 * because a column of numbers with no heading above it is unreadable. */
.view > * {
  flex-shrink: 0;
}

.view {
  animation: rise var(--d-rise) var(--e-out);
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex-grow: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}

/* A block that takes what height is left over rather than only what its content
 * needs — a table on a page that is mostly that table, or the cards at the
 * bottom of the Stores page, which would otherwise leave a band of empty page
 * under them. */
.grow {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.grow > .table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

/* A group of blocks that scroll with the page rather than inside it, and that
 * takes the height left over so the cards at the bottom of a short page fill
 * it instead of floating above a band of empty grey. */
.scroller {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-height: 0;
  flex: 1 1 auto;
}

.scroller.grid {
  display: grid;
}

/* Cards in a row fill the row rather than leaving the shorter one short. */
.grid.fill {
  flex: 1 1 auto;
  align-items: stretch;
}

.grid.fill > * {
  min-height: 0;
}

/* A page header, the same on every page: the title with its status pill beside
 * it and any actions at the end of that row, then the subtitle on a row of its
 * own at the page's full width. A pill floated to the far side of a header is
 * a pill nobody reads as belonging to the title. */
.page-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}

.page-head .line {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  min-width: 0;
}

h1 {
  margin: 0;
  font-size: var(--t-h1);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0;
  font-size: var(--t-lead);
  font-weight: 600;
}

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.titles {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-body);
  line-height: var(--lh-prose);
  text-wrap: pretty;
}

/* Inside a card, prose still wants a measure: a 900px-wide paragraph in a
 * grid cell is unreadable for the same reason a 180-character page subtitle
 * is. The page subtitle above is the exception, because it has a row of its
 * own and wrapping it mid-sentence at 1440px is what the cap caused. */
/* Prose fills the box it is in.
 *
 * These used to stop at a 68ch measure, which is the typographic default and
 * was wrong here in a way that read as a bug rather than as a choice: the page
 * subtitle above was already exempt, so one paragraph on a page ran the full
 * width and the one under it stopped halfway, with the card's right half
 * empty. Consistency is worth more than the measure on a page whose cards are
 * already sized to their content. */
.card .subtitle,
.hero .subtitle {
  max-width: 100%;
}

.eyebrow {
  font: 500 var(--t-tiny) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  font-weight: 600;
  font-size: var(--t-body);
}

.actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
}

/* A page header's controls are one row of one height. The small button is
 * 32px, which sat 4px short of the field beside it and read as a row that had
 * not been lined up.
 *
 * Direct children only: a copy control lives inside a field in that same row,
 * and a descendant selector grew it to the field's own height. */
.page-head .actions > .button,
.page-head .actions > .button.small {
  height: 36px;
}

.rule {
  height: 1px;
  background: var(--line-soft);
  border: 0;
  margin: 0;
}

.mono {
  font-family: var(--mono);
}

.muted {
  color: var(--muted);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  /* Baked in rather than patched per use site: every table in a card was
   * setting this inline to stop the rows squaring off the corner, and the one
   * that forgot looked different from the other three. */
  overflow: hidden;
  min-width: 0;
}

.card.pad {
  padding: var(--sp-4) var(--sp-4h);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 0;
}

/* A card whose content is dense enough that the standard padding reads as
 * dead space around it. */
.card.pad.dense {
  padding: var(--sp-3h) var(--sp-4);
  gap: var(--sp-2h);
}

/* The numbered verification steps on the Privacy page. */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.step-row {
  display: flex;
  gap: var(--sp-3);
  min-width: 0;
}

.step-row .n {
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--blue);
  width: 16px;
  flex-shrink: 0;
}

.step-row .what {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
  flex-grow: 1;
}

.step-row .say {
  font-size: var(--t-body-sm);
  line-height: var(--lh-prose);
  text-wrap: pretty;
}

.grid {
  display: grid;
  /* 280px rather than 320: at 320 the track floor exceeded the container on a
   * small phone and the whole page scrolled sideways. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
  align-items: start;
  min-height: 0;
}

/* Two columns that keep their proportions rather than wrapping at the first
 * excuse: the About page's facts belong beside its model table, not under it. */
.grid.two {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.1fr);
  align-items: stretch;
}

/* Three equal columns that collapse together rather than one at a time: the
 * ledger's command cards are a set, and two-above-one reads as a hierarchy
 * they do not have. */
.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

/* A grid that is the page's scrolling child scrolls its columns rather than
 * itself, so a long model table does not drag the fact cards up with it. */
.grid.grow > * {
  min-height: 0;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.stat {
  flex: 1 1 160px;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: var(--sp-3h) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.stat .value {
  font-family: var(--mono);
  font-size: var(--t-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  font-variant-numeric: tabular-nums;
}
.stat .sub {
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-prose);
}

/* The one figure a page argues for, ringed in the accent. Used on the ledger's
 * measured ratio, which is the number a reader came to the page for and the one
 * that must never be read without its coverage and tier beside it. */
.stat.ringed {
  border-color: var(--accent);
}

.rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* A stack of facts about one thing — a store's name over its directory over
 * its model — where the gap between them is a hairline rather than a break. */
.rows.tight {
  gap: 2px;
}

/* A root the registry lists and the disk does not have, with the action that
 * fixes it beside the path rather than in a command somewhere else. */
.gone-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}

/* One setup step: its state, what it is, where it is, and — for the one step
 * this page can perform — the button that performs it. */
.kv.step {
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--sp-2h);
}

.kv.step .card-title {
  width: 62px;
  flex-shrink: 0;
}

.kv {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.kv .k {
  font: 500 var(--t-tiny) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  width: 120px;
  flex-shrink: 0;
}
.kv .v {
  font-family: var(--mono);
  font-size: var(--t-body-sm);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* A label and its value, as two columns. As a wrapping flex row a long value
 * broke onto a new line at the left edge of the card, under the label rather
 * than beside it; a grid keeps the second line in the value's own column. */
.kv.pair {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: baseline;
}
.kv.pair .k {
  width: auto;
}

/* -------------------------------------------------------------- components */

.button {
  transition: background var(--d-fade) var(--e-in-out), color var(--d-fade) var(--e-in-out),
    border-color var(--d-fade) var(--e-in-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 36px;
  padding: 0 var(--sp-4);
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: var(--t-body-sm);
  cursor: pointer;
  white-space: nowrap;
}
.button:hover {
  filter: brightness(1.15);
}
.button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.button.secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
  font-weight: 500;
}
.button.secondary:hover {
  border-color: var(--blue);
  color: var(--blue-ink);
  background: var(--panel);
}

/* A button that opens something stays lit while it is open. Without this the
 * only way to tell whether "Choose folder…" is showing its card is to look for
 * the card. */
.button.secondary[aria-pressed="true"] {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-ink);
}

.button.ghost {
  background: none;
  border-color: transparent;
  color: var(--muted);
  font-weight: 500;
}
.button.ghost:hover {
  color: var(--ink);
  background: var(--soft);
}

/* A dimmed accent action returns to full opacity and brightens a little less
 * than a live one, so the two are distinguishable while both are under the
 * pointer. */
.button.dim {
  opacity: 0.75;
}
.button.dim:hover {
  opacity: 1;
  filter: brightness(1.08);
}

/* Amber is the portal's one destructive treatment, and it is used nowhere
 * else for a control: border, text and fill together, so "this removes
 * something" is legible before it is clicked. */
.button.danger {
  background: var(--panel);
  border-color: var(--amber-ink);
  color: var(--amber-ink);
  font-weight: 500;
}
.button.danger:hover {
  background: var(--amber-soft);
  border-color: var(--amber-ink);
  color: var(--amber-ink);
  filter: none;
}

.button.small {
  height: 32px;
  padding: 0 var(--sp-3);
  font-size: var(--t-body-sm);
}

.button[disabled] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.chip {
  transition: background var(--d-fade) var(--e-in-out), color var(--d-fade) var(--e-in-out),
    border-color var(--d-fade) var(--e-in-out);
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-2);
  font-size: var(--t-body-sm);
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--blue);
  color: var(--ink);
}
.chip[aria-pressed="true"] {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-ink);
  font-weight: 500;
}
.chip.static {
  cursor: default;
}
.chip.static:hover {
  border-color: var(--line);
  color: var(--ink-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--mono);
  font-size: var(--t-tiny);
  line-height: var(--lh-prose);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-2);
  white-space: nowrap;
}

/* Two or three pills on one cell: the skill, the hook and the rule block are
 * three answers to one question and read as a row rather than as a column
 * each. They wrap on a phone rather than widening the table. */
.pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* A pill that reports a state carries a dot. One element, so a pill without a
 * state cannot accidentally look like one with a state. */
.pill i,
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.pill.on {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-ink);
}

/* A green dot means something is live right now, and it beats wherever it
 * appears: the sidebar's daemon dot, an open endpoint, a cached model, a
 * connected client. A still dot beside a beating one reads as two different
 * states of the same thing. The reduced-motion block at the top of this file
 * stops all of them. */
.pill.on i,
.pill.good i,
.pill.good .dot,
.dot.good {
  animation: pulse var(--d-pulse) ease-in-out infinite;
}

.pill.good {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-ink);
}
.pill.warn {
  border-color: var(--amber-ink);
  background: var(--amber-soft);
  color: var(--amber-ink);
}
.pill.bad {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: var(--t-tiny);
  padding: 2px var(--sp-2);
  border-radius: var(--r-1);
  background: var(--chip);
  color: var(--ink-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

.filters {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* On a phone the filter row is chips, dials and a store picker, and wrapping
 * them spends the whole first screen before a single result. They scroll
 * sideways instead of stacking, which is what a row of filters does on a phone
 * everywhere else -- nothing is hidden, and the results stay above the fold.
 *
 * The drive gate's finding 4.8 is the standing check: more than two rows of
 * chips at 390px, with no overflow affordance, fails. 0.23.0 added the View
 * dial to this row and pushed it to three. */
@media (max-width: 599px) {
  .search-band .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .search-band .filters::-webkit-scrollbar {
    display: none;
  }
  /* A flex item in a scrolling row shrinks to nothing without this, which
   * turns every chip into an ellipsis. */
  .search-band .filters > * {
    flex: 0 0 auto;
  }
  /* The note explains the budget dial and is the one thing here worth losing
   * when the row has to scroll. */
  .search-band .dial-note {
    display: none;
  }
}

.field {
  transition: border-color var(--d-fade) var(--e-in-out);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 34px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--panel);
  min-width: 0;
}
.field.tall {
  height: 40px;
  padding: 0 14px;
  gap: 10px;
}
.field:focus-within {
  border-color: var(--blue);
}
.field .prefix {
  font-family: var(--mono);
  color: var(--muted);
  flex-shrink: 0;
}
.field svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--muted);
}
.field input,
/* The Index page's path box is a textarea — several paths, one per line — and
   a textarea carries an intrinsic `cols` width that no `flex-grow` overrides.
   It sat at its default twenty columns in a row built for the whole page. */
.field textarea {
  border: 0;
  outline: none;
  background: transparent;
  flex-grow: 1;
  min-width: 0;
  width: 100%;
  font-family: var(--mono);
  font-size: var(--t-field);
}

/* A field that holds a textarea grows with it.
   Every other `.field` is one row of one line, so `.field` pins a height and
   centres its children — which a two-line textarea overflows in both
   directions at once, putting the first line of the placeholder above the
   border and the resize grip below it. Marked with a class rather than
   `:has(textarea)` so the rule is as explicit as the markup it styles. */
.field.area {
  height: auto;
  min-height: 40px;
  align-items: flex-start;
  padding-top: var(--sp-2);
  padding-bottom: var(--sp-2);
}
.field.area textarea {
  resize: vertical;
  line-height: 1.5;
  /* The grip lives inside the border now that the field grows, and a box that
     never shrinks below its two rows does not jump as lines are added. */
  min-height: calc(1.5em * 2);
}
/* On the first line, level with the text, rather than in the middle of a box
   whose height depends on how many paths were typed into it. */
.field.area .prefix {
  line-height: 1.5;
}

/* A select, shaped like the field beside it rather than like a pill. A
 * 999px-radius dropdown next to an 8px-radius input reads as two different
 * kinds of control for what is the same kind of choice. */
select.chip,
select.field {
  appearance: none;
  height: 40px;
  min-width: 140px;
  padding: 0 34px 0 var(--sp-3h);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background-color: var(--panel);
  /* The arrow, drawn rather than fetched: the CSP allows no external asset and
   * the native one cannot be themed. */
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 18px center, right 13px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-body-sm);
  cursor: pointer;
  transition: border-color var(--d-hover) var(--e-in-out);
}

select.chip:hover,
select.field:hover {
  border-color: var(--blue);
}

select.chip:focus-visible,
select.field:focus-visible {
  border-color: var(--blue);
}

.copyfield {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  /* The same height as the buttons it sits beside: a taller box next to a
   * 36px button reads as a misalignment rather than as a field. */
  height: 36px;
  padding: 0 4px 0 var(--sp-3);
  min-width: 0;
}
/* In a field the copy control is the point of the field, so it is always
 * visible. The fade-in is for a code block, where the control would otherwise
 * sit over the text it copies. */
.copyfield .copy {
  opacity: 1;
  width: 28px;
  height: 28px;
}
/* Any control inside the field is inset by the same 4px on all four sides as
 * the copy button: a 32px button in a 36px box left 2px above and below and
 * none at all beside it. */
.copyfield .button {
  height: 28px;
  padding: 0 var(--sp-2h);
}

/* A field whose control says "Copy" rather than showing the icon, for a
 * command a reader is about to paste into a shell. The word needs room, so
 * the button sizes to its text. */
.copyfield.worded .copy {
  width: auto;
  padding: 0 var(--sp-3);
}
/* A command wraps rather than scrolling sideways: a reader who cannot see the
 * end of it cannot check what they are about to paste, and a hidden scrollbar
 * does not tell them there is more. The field grows to hold it.
 *
 * Only in the stanza panel. The endpoint field in a page header holds one
 * short URL and belongs to a row of 36px controls, so it keeps that height. */
.stanzas .copyfield.worded {
  height: auto;
  min-height: 36px;
  padding-block: 4px;
  align-items: center;
}
.stanzas .copyfield.worded .text {
  overflow-x: visible;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.copyfield .actions {
  gap: 4px;
}
.copyfield .text {
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--ink-2);
  flex-grow: 1;
  min-width: 0;
  /* The text scrolls, the button does not: pinning the button to the end of
   * the content put it off-screen for any command longer than the box. */
  overflow-x: auto;
  white-space: pre;
}
.copyfield .button {
  flex-shrink: 0;
}

/* A copy control is a second-order action: it belongs to the thing beside it,
 * and a page showing a column of permanently visible Copy buttons is a page
 * competing with its own content. So it fades in when the pointer enters the
 * block it copies — and appears immediately for a keyboard, which has no
 * pointer to enter with. */
.copy {
  transition: opacity var(--d-quick) var(--e-in-out),
    background var(--d-fade) var(--e-in-out), border-color var(--d-fade) var(--e-in-out),
    color var(--d-fade) var(--e-in-out);
  opacity: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  flex-shrink: 0;
}

.code-block .copy,
.copy.block {
  width: 28px;
  height: 28px;
}

.copyfield:hover .copy,
.copyfield:focus-within .copy,
.code-block:hover .copy,
.code-block:focus-within .copy,
.copy:focus-visible {
  opacity: 1;
}

/* Confirmed, for 1400ms, and wide enough to hold the word rather than
 * clipping it. */
.copy.done {
  opacity: 1;
  width: auto;
  padding: 0 var(--sp-2);
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-ink);
}

.copy svg {
  width: 14px;
  height: 14px;
}

/* A code block with its copy control at the top right, over the block rather
 * than under it. */
.code-block {
  position: relative;
  min-width: 0;
}

.code-block .copy {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
}

/* A message attached to the control that caused it, rather than an alert()
 * that steals focus and says nothing about where the problem is.
 *
 * Inline, with no chrome. This used to be declared twice — here, and again as
 * a padded bordered card in the ledger section — and the later declaration won
 * for every user of the class, which is why the Index page painted an empty
 * bordered box under its controls whenever there was nothing to say. The card
 * variant is `.notice` below; this one stays inline and disappears when it has
 * no text. */
.note {
  font-size: var(--t-body-sm);
  line-height: var(--lh-prose);
  color: var(--muted);
  min-height: 18px;
}
.note:empty {
  display: none;
}
.note.bad {
  color: var(--red-ink);
}

.empty {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--r-4);
  padding: var(--sp-5);
  color: var(--muted);
  text-wrap: pretty;
}

/* An error is not an empty state. It has a cause, and the cause is usually
 * actionable, so it is coloured like a problem rather than like an absence. */
.error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--red-soft);
  border: 1px solid var(--red);
  border-radius: var(--r-4);
  padding: 14px var(--sp-4);
  color: var(--red-ink);
  text-wrap: pretty;
}
.error svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}
.error .what {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* A table scrolls inside its own card while the page scrolls around it.
 *
 * That split is deliberate: a sticky column heading can only stay put inside
 * the box that scrolls it, so a table that flowed with the page would lose its
 * heading the moment the rows went past — and a column of figures with no
 * heading above it is unreadable. Everything that is not a table scrolls with
 * the page.
 *
 * The cap is in viewport units so the rows use the screen they are given, and
 * a table shorter than it simply ends. */
/* A table and its pager. The rows take whatever height the card is given and
 * the pager sits on the bottom edge of it — stretched by a grid row or by a
 * taller sibling, the card used to end in a band of empty white below the
 * pager. */
.table-card {
  display: flex;
  flex-direction: column;
  /* A floor, so a neighbour that grows cannot squeeze the rows down to a
   * sliver of a single line. */
  min-height: 168px;
  /* The cap lives on the card, not on the rows: capping the rows left the
   * pager floating in the middle of a stretched card with white space under
   * it. With the cap here the rows take the rest of the card and the pager is
   * always on its bottom edge. */
  max-height: 76dvh;
}
.table-card > .table-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.table-wrap {
  overflow: auto;
  min-width: 0;
}

/* Sticky, in every table. A column of figures scrolled past its heading is a
 * column nobody can read, and the wrapper is the scroll container so this is
 * where `top: 0` means the top of the visible rows. */
th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  font: 500 var(--t-tiny) var(--mono);
  line-height: var(--lh-code);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--sp-2h) var(--sp-3h);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  white-space: nowrap;
}

/* A sticky cell's border scrolls with the cell rather than staying at its
 * edge, so the line under the heading is drawn as a shadow instead. */
thead th {
  box-shadow: inset 0 -1px 0 var(--line);
  border-bottom: 0;
}

td {
  padding: var(--sp-3) var(--sp-3h);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: var(--lh-code);
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background var(--d-quick) var(--e-in-out);
}
tbody tr:hover {
  background: var(--soft);
}

/* A sortable header. The whole label is the control, so the hit target is the
 * column heading rather than a small arrow beside it. */
th .sort {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
  transition: color var(--d-hover) var(--e-in-out);
}

th .sort:hover {
  color: var(--ink);
}

/* Reserved whether or not this column is the active one, so the header row
 * does not shift sideways when the sort moves to another column. */
th .arrow {
  display: inline-block;
  width: 9px;
  color: var(--accent-edge);
}

/* A cell held to one line, with the whole value on the shared tooltip. A
 * wrapped path makes every row a different height, which is what turns a file
 * list into something you have to read rather than scan. */
.one-line {
  display: block;
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Truncated at the start rather than the end, for a path. Every row on the
 * Files page began `/Users/…/Documents/…` and ended in the one part that says
 * which file it is, so cutting the end cut the only part worth reading.
 *
 * `direction: rtl` moves the ellipsis to the front; the text itself is wrapped
 * in an isolate so the segments stay in their real order and a leading `/`
 * does not jump to the other end. */
.one-line.tail {
  direction: rtl;
  text-align: left;
}

.one-line.tail > bdi {
  unicode-bidi: isolate;
}

th.num,
td.num {
  text-align: right;
  font-family: var(--mono);
}

td.path {
  font-family: var(--mono);
  font-size: var(--t-small);
  overflow-wrap: anywhere;
}

td.meta {
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--muted);
}

.name {
  font-weight: 600;
}

/* A root the registry still lists but that is no longer on disk. */
.gone {
  color: var(--red-ink);
}

/* The same rule the table cell gets, for the places the directory line is a
 * div rather than a cell. Previously `.meta` only existed as `td.meta`, so
 * those rendered at full ink weight and fought the name above them. */
.meta {
  font-family: var(--mono);
  font-size: var(--t-tiny);
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* A stack of one-line facts under a name — a store's directory and its model.
 * Wrapped, each of those took three lines and a table row became a paragraph. */
.meta.one-line,
.name.one-line {
  max-width: 38ch;
  overflow-wrap: normal;
}

.table-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: var(--sp-2h) var(--sp-3h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* A pager is a row of controls, not a row of tags: the page sizes and the
 * step buttons are square-cornered here so they read as buttons, which is
 * what the design bundle draws. */
.table-foot .chip {
  height: 30px;
  min-width: 34px;
  justify-content: center;
  padding: 0 var(--sp-2h);
  border-radius: var(--r-2);
  font-family: var(--mono);
}
.table-foot .button.ghost {
  height: 30px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--panel);
}
.table-foot .button.ghost:hover:not([disabled]) {
  border-color: var(--blue);
  color: var(--blue-ink);
}
.table-foot .button.ghost[disabled] {
  border-color: var(--line-soft);
}

.forget {
  transition: color var(--d-quick) var(--e-in-out);
  border: 0;
  background: none;
  color: var(--amber-ink);
  font: inherit;
  font-size: var(--t-body-sm);
  cursor: pointer;
  padding: 0;
}
.forget:hover {
  color: var(--red-ink);
  text-decoration: underline;
}
.forget[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

pre.code {
  margin: 0;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--r-3);
  padding: var(--sp-4);
  font-family: var(--mono);
  font-size: var(--t-small);
  line-height: var(--lh-code);
  overflow: auto;
  white-space: pre;
  /* A visible edge where the line continues. On a desktop the overflow
   * scrollbar is an overlay that only appears while scrolling, so a line
   * running off the pane looked like a line that ended there — `… releases
   * the l`. The fade is the cue; the scrollbar below it is the control. */
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  scrollbar-width: thin;
}
pre.code::-webkit-scrollbar {
  height: 8px;
}
pre.code::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

/* The event log, styled as the terminal it is echoing. */
.log {
  background: var(--code-bg);
  border-radius: var(--r-4);
  padding: var(--sp-4) 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--code-ink);
  /* The log is what gives way. The folder picker, the URL card and the
   * progress bar are each a fixed thing a reader is trying to use; the log is
   * a tail of a run that is already scrolling. So it shrinks to its floor and
   * the others keep their height. */
  flex: 1 1 auto;
  min-height: 120px;
  max-height: 340px;
  overflow-y: auto;
}

/* Everything above the log in the Index view keeps the height it asks for. */
.scroller > .picker,
.scroller > .card {
  flex-shrink: 0;
}
.log .line {
  display: flex;
  gap: 10px;
}
.log .key {
  color: var(--code-key);
  flex-shrink: 0;
  width: 68px;
  text-align: right;
}

/* What happened to the file, in one word, in a fixed column so the paths
 * beside them line up. A file being embedded is the line worth reading; the
 * rest is the run showing that it is still moving. */
.log .outcome {
  flex-shrink: 0;
  width: 76px;
  color: var(--muted);
}
.log .line.indexing .outcome {
  color: var(--accent-edge);
}
.log .line.unchanged,
.log .line.skipped {
  opacity: 0.62;
}
.log .line.removed .outcome {
  color: var(--red);
}
.log .what {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bar {
  height: var(--sp-2);
  border-radius: var(--r-1);
  background: var(--chip);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-1);
  transition: width var(--d-bar) var(--e-linear);
}

.feed {
  font-family: var(--mono);
  font-size: var(--t-small);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  color: var(--ink-2);
  flex-grow: 1;
  min-height: 0;
  /* Capped, not merely scrollable: the card is in a grid row that grows to
   * its content, so an uncapped feed of forty events takes the height from
   * the table above it. */
  max-height: 232px;
  overflow-y: auto;
}
.feed .row {
  display: flex;
  gap: 10px;
}
.feed .at {
  color: var(--muted);
  width: 54px;
  flex-shrink: 0;
}
.feed .what {
  min-width: 0;
  max-width: 100%;
}

.picker {
  display: flex;
  flex-direction: column;
}
.picker {
  overflow: hidden;
}

.picker .crumbs {
  display: flex;
  align-items: center;
  gap: var(--sp-2h);
  padding: var(--sp-3) var(--sp-3h);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  flex-wrap: wrap;
}
.picker .where {
  font-family: var(--mono);
  font-size: var(--t-body-sm);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The picker's line of prose is inset like the row above it and the rows
   below it. It is a direct child of a card with no padding of its own — the
   crumbs bar and the entries each bring theirs — so without this it alone sat
   against the border. */
.picker > .subtitle {
  padding: var(--sp-3) var(--sp-3h) 0;
}
.picker .entries {
  max-height: 320px;
  min-height: 84px;
  overflow-y: auto;
  /* Two columns where there is room: a home directory is forty entries, and a
   * single column of them is a page of scrolling to reach `work`. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.picker .entry {
  transition: background var(--d-quick) var(--e-in-out);
  display: flex;
  align-items: center;
  gap: var(--sp-2h);
  min-width: 0;
  padding: var(--sp-2) var(--sp-3h);
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.picker .entry:hover {
  background: var(--soft);
}
/* A row that cannot be chosen says so before it is clicked. A file listed at
 * full contrast beside the folders in a folder picker reads as an option. */
.picker .entry.inert,
.picker .entry.inert:hover {
  background: none;
  color: var(--muted);
  cursor: default;
  opacity: 0.6;
}
.picker .entry svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
}
.picker .entry .name {
  font-family: var(--mono);
  font-size: var(--t-body-sm);
  font-weight: 400;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A tick beside a row rather than on it. Walking into a folder and choosing it
   are different intentions, and one control cannot mean both. */
.picker .entry-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  padding-left: var(--sp-3);
  border-bottom: 1px solid var(--line-soft);
}
.picker .entry-row .entry {
  flex: 1;
  min-width: 0;
  border-bottom: 0;
}
.picker .tick {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ---------------------------------------------------------------- runs */

/* One card per store with a run. They stack rather than sit in a grid: a card
   carries a log, and a log in a column half the page wide is unreadable. */
.cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.run-card .bar {
  margin: var(--sp-2h) 0;
}
.run-card .log {
  max-height: 260px;
  margin-top: var(--sp-2h);
}
.run-card .filters {
  align-items: center;
}

.queue .queue-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2h);
  min-width: 0;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line-soft);
}
.queue .queue-row:last-child {
  border-bottom: 0;
}
.queue .queue-row .key {
  font-family: var(--mono);
  font-size: var(--t-body-sm);
  color: var(--muted);
  min-width: 1.5rem;
}
.queue .queue-row .name {
  font-family: var(--mono);
  font-size: var(--t-body-sm);
  font-weight: 600;
}

/* The three derived values, side by side where there is room. Each carries its
   reason under it, which is what makes the number arguable rather than magic. */
.settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-2h);
}
.settings .setting .note {
  margin-top: var(--sp-1);
}

/* --------------------------------------------------------------- search */

/* Sticky, because on a narrow window the two stages stack and the whole page
 * scrolls: the box you type in should not be the thing that scrolls away
 * while you read what it returned. */
.search-band {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 20px var(--sp-5) var(--sp-4);
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* What the ranker read in the query and what it did about it — the answer's
 * own words, so the page cannot describe a weighting the hits underneath it
 * did not get. Hidden until the box has something in it. */
.shape-hint {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--mono);
  font-size: var(--t-tiny-h);
  color: var(--muted);
}
.shape-hint .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 46px;
  padding: 0 var(--sp-4);
  border: 1.5px solid var(--blue);
  border-radius: var(--r-4);
  background: var(--panel);
}
.search-field svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue);
}
.search-field input {
  flex-grow: 1;
  font-size: var(--t-field);
  border: 0;
  outline: none;
  background: transparent;
  min-width: 0;
}
.search-meta {
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--muted);
  white-space: nowrap;
}

.results {
  padding: 18px var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  flex-grow: 1;
}

.hit {
  transition: border-color var(--d-fade) var(--e-in-out), box-shadow var(--d-fade) var(--e-in-out);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 14px var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.hit:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-pop);
}

.hit .where {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
}
.hit .where .file {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.hit .where .lines,
.hit .where .from {
  font-size: var(--t-tiny);
  color: var(--muted);
}
/* An image hit shows the image. Bounded so a large screenshot does not take
 * the whole results column, and on the page's own panel colour so a
 * transparent PNG reads as a picture rather than as a hole. */
.hit .preview {
  display: block;
  max-width: 100%;
  max-height: 260px;
  width: auto;
  border-radius: var(--r-3);
  border: 1px solid var(--line-soft);
  background: var(--soft);
  object-fit: contain;
}

.hit pre {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-small);
  line-height: var(--lh-code);
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------- welcome */

.welcome {
  min-height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  padding: 48px 20px;
  background: var(--bg);
}

.welcome > * {
  flex-shrink: 0;
}

.welcome .lockup {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.welcome .lockup .logo {
  width: 38px;
  height: 38px;
  border-radius: var(--r-3);
  display: block;
}
.welcome .lockup .name {
  font-size: var(--t-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.welcome .lockup .ver {
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--muted);
  padding-top: 5px;
}

/* The hero's heading is the page's h1, but it is not a page title — it sits
 * inside a card under the lockup, so it takes the card's size rather than the
 * 21px every titled page uses. */
.hero-title {
  font-size: var(--t-title);
  font-weight: 600;
  letter-spacing: 0;
}

.welcome .hero {
  width: 100%;
  max-width: 640px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.welcome .steps {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.welcome .step {
  flex: 1 1 180px;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 14px var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.welcome .step .what {
  color: var(--muted);
  font-size: var(--t-body-sm);
  text-wrap: pretty;
}

.welcome .foot {
  font-family: var(--mono);
  font-size: var(--t-tiny);
  color: var(--muted);
  text-align: center;
}

/* Used on both the welcome screen and the Agents page, where it sits in a
 * grid cell rather than on an open page. */
.install-panel {
  width: 100%;
  max-width: 640px;
}


/* ----------------------------------------------------------------- tips */

/* One hover label for the whole portal, drawn in a single fixed element that
 * lives at the end of <body>.
 *
 * It used to be `[data-tip]::after`, positioned inside the element it
 * described — which meant `.table-wrap`'s `overflow: auto` clipped it, and the
 * Files page's whole reason for having a tip (a path too long for its column)
 * was the one place it could not be read. A scroll container clips any
 * positioned descendant, so the fix is to stop being a descendant.
 *
 * The same element carries the Graph canvas's richer card, so there is one
 * tooltip implementation rather than two. */
.tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  max-width: 320px;
  width: max-content;
  padding: 9px 11px;
  border-radius: var(--r-3);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--t-small);
  line-height: var(--lh-code);
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity var(--d-fade) var(--e-in-out), transform var(--d-pop) var(--e-pop);
  pointer-events: none;
}

.tip[data-open="true"] {
  opacity: 1;
  transform: none;
}

/* The Graph card: a coloured dot and a title, then label/value rows. */
.tip .tip-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 500;
  color: var(--ink);
}

.tip .tip-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-edge);
  flex-shrink: 0;
}

.tip .tip-row {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-1);
  font-size: var(--t-tiny);
}

.tip .tip-row .k {
  color: var(--muted);
  width: 52px;
  flex-shrink: 0;
}

.tip .tip-row .v {
  color: var(--ink-2);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------- layout utilities */

/* These exist because the page may not set a `style` attribute: the server's
 * CSP is `style-src 'self'` with no `unsafe-inline`, so every inline style the
 * script tried to apply was blocked by the browser and silently dropped —
 * which is precisely why the layout used to come out wrong. Weakening the CSP
 * to fix the layout would trade the product's central claim for a column
 * width, so the widths live here instead. */

.offscreen {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

/* A table narrower than this stops being readable and starts being a puzzle,
 * so it scrolls inside its card rather than crushing its columns. */
.w-stores {
  min-width: 640px;
}
.w-files {
  min-width: 680px;
}
/* Ten columns of counts. Below this they stack into a puzzle, so the table
 * scrolls inside its card like the others. */
.w-coverage {
  min-width: 760px;
}
.w-models {
  min-width: 480px;
}

/* The Agents page's reason column. A repair line carries its own explanation
 * after a `#` and is longer than any screen, so unbounded the cell asks for
 * the width of the whole command and carries its own Copy button past the edge
 * of the card — the one control in the cell, off the only edge that matters.
 * The field is capped rather than the cell: capping the cell collapsed the
 * column to its shortest row, and this leaves the reasons a readable width
 * while the command scrolls inside its own box with the button still beside
 * it. It is a maximum, so the field still shrinks on a phone. */
td.why .copyfield {
  max-width: 30rem;
}

.field.wide {
  width: 280px;
  max-width: 100%;
}

.field.grow {
  flex: 1 1 240px;
  max-width: 420px;
}

/* A field that owns its row. The Index page's path is the reason: it shared a
 * row with four buttons and a store picker, so on a 1440px page the thing the
 * page is about was the narrowest control on it. */
.field.full {
  width: 100%;
}

.tag.wrapped {
  margin: 0 var(--sp-1) var(--sp-1) 0;
}

.stat.fact {
  flex: 1 1 230px;
}

.fact-value {
  font-family: var(--mono);
  font-size: var(--t-body);
  line-height: var(--lh-code);
  font-variant-numeric: tabular-nums;
}

.pct {
  font-family: var(--mono);
  font-size: var(--t-h1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.search-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
}

/* Two stages, because a search answers "where" and a read answers "what", and
 * an answer that always does both is an answer that always costs both. The
 * list is a column of locator cards; the panel holds whichever one is open.
 *
 * `auto-fit` rather than a breakpoint: the column that matters is this grid's
 * own width, not the window's, and the window carries a sidebar of a width
 * that is itself a state. The container query below is for the divider, which
 * is the one thing that has to know whether the two columns are side by side. */
.two-stage {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: stretch;
  gap: 0;
  flex-grow: 1;
  min-height: 0;
}
.locate-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.locate-list {
  gap: var(--sp-3);
}

/* A file is a card, not a run of lines with a heading over it. Eight hits in
 * one file are one file to open, and the card is what says so. */
.locate-group {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  min-width: 0;
  flex-shrink: 0;
}
.locate-file {
  display: flex;
  align-items: center;
  gap: var(--sp-2h);
  flex-wrap: wrap;
  padding: var(--sp-2h) var(--sp-3h);
  border-bottom: 1px solid var(--line-soft);
  background: var(--soft);
  font-family: var(--mono);
  font-size: var(--t-small-h);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.locate-file .from {
  font-size: var(--t-tiny);
  font-weight: 400;
  color: var(--muted);
}
/* Which spans of this file are in the list, in the header rather than only in
 * the rows: "three spans, 102-118, 140-149" is what a reader needs to decide
 * whether to open the file at all. */
.locate-file .span-summary {
  font-family: var(--mono);
  font-size: var(--t-tiny);
  font-weight: 400;
  color: var(--muted);
}

.locate-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  width: 100%;
  text-align: left;
  padding: var(--sp-2h) var(--sp-3h);
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
  transition: background var(--d-fade) var(--e-in-out);
}
.locate-group > .locate-row:last-child {
  border-bottom: 0;
}
/* Kept from before the v3 design, which draws no per-row hover. A row that
 * opens a panel should say so under the pointer. */
.locate-row:hover {
  background: var(--soft);
}
.locate-row[aria-pressed="true"] {
  background: var(--blue-soft);
}
.locate-row.static,
.locate-row.static:hover {
  background: transparent;
  cursor: default;
}
.row-top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-width: 0;
  font-family: var(--mono);
  font-size: var(--t-small);
}
.locate-row .lines {
  color: var(--ink-2);
  white-space: nowrap;
}
.locate-row .sym {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.locate-row .from {
  font-size: var(--t-tiny);
  color: var(--muted);
}
/* Inside the row rather than under it, so the two lines are one hit target.
 * As a sibling, clicking the half of the block with the code in it did
 * nothing at all. */
.locate-excerpt {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-tiny-h);
  line-height: var(--lh-code);
  color: var(--muted);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* A brief is the opened row, so the second stage's column has nothing to hold.
 * Hidden rather than emptied, so the answer takes the whole width. */
.two-stage.one-stage .body-col {
  display: none;
}
.two-stage.one-stage {
  grid-template-columns: 1fr;
}

/* The Brief view: one call's answer, in the column the locate list uses.
 *
 * Deliberately the same type scale, the same rules and the same tags as the
 * list beside it — it is the same store answering the same question, and a
 * second visual language would say otherwise. */
.brief-view {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-2h) var(--sp-5);
  min-width: 0;
}
.brief-span,
.brief-symbol {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.brief-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  flex-wrap: wrap;
  min-width: 0;
}
.brief-head .path {
  font-family: var(--mono);
  font-size: var(--t-tiny-h);
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.brief-head .sym {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.brief-lists {
  display: inline-flex;
  gap: var(--sp-1);
  margin-left: auto;
}
.brief-text {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-tiny-h);
  line-height: var(--lh-code);
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.brief-edge {
  display: flex;
  gap: var(--sp-2);
  font-family: var(--mono);
  font-size: var(--t-tiny-h);
  min-width: 0;
}
.brief-edge .k {
  color: var(--muted);
  white-space: nowrap;
}
.brief-edge .v {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
/* What the budget dropped, said rather than left blank: a span with no text
 * under it looks like a span with no text in it. */
.brief-dropped {
  font-family: var(--mono);
  font-size: var(--t-micro-h);
  color: var(--muted);
  font-style: italic;
}

.locate-footer {
  display: flex;
  align-items: center;
  gap: var(--sp-2h);
  flex-wrap: wrap;
  padding: var(--sp-2h) var(--sp-5) var(--sp-5);
  font-family: var(--mono);
  font-size: var(--t-tiny-h);
  color: var(--muted);
  flex-shrink: 0;
}
.locate-footer .truncated {
  display: inline-flex;
  align-items: center;
  font-size: var(--t-micro-h);
  padding: 2px 7px;
  border-radius: var(--r-1);
  background: var(--amber-soft);
  color: var(--amber-ink);
}

/* The right-hand stage has a ground of its own. Without one the two columns
 * were one surface with a rule drawn down it, and which side a panel belonged
 * to was something the reader worked out. */
.body-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3h);
  padding: 18px var(--sp-5);
  background: var(--soft);
  border-left: 1px solid var(--line);
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}
@container (max-width: 719px) {
  .body-col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* One span, wherever it is shown: the Search page's second stage and the Read
 * page's whole answer are the same card. */
.span-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  flex-shrink: 0;
  min-width: 0;
}
.span-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2h);
  flex-wrap: wrap;
  padding: var(--sp-3h) var(--sp-3h) var(--sp-2h);
  font-family: var(--mono);
  font-size: var(--t-small);
}
.span-head .path {
  font-size: var(--t-small-h);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.span-head .lines {
  color: var(--muted);
}
.span-head .from {
  font-size: var(--t-tiny);
  color: var(--muted);
}
.span-card .prov-note,
.span-card .note {
  margin: 0;
  padding: 0 var(--sp-3h) var(--sp-2h);
  font-size: var(--t-small-h);
  color: var(--muted);
  text-wrap: pretty;
}
.span-card .note {
  color: var(--amber-ink);
}
/* The signature on a line of its own. It is the one line of a definition that
 * answers "is this the thing I meant", and buried at the top of a code block
 * it reads as code rather than as an answer. */
.span-card .sig {
  margin: 0 var(--sp-3h) var(--sp-3);
  padding: 7px 9px;
  font-family: var(--mono);
  font-size: var(--t-tiny-h);
  color: var(--blue-ink);
  background: var(--blue-soft);
  border-radius: var(--r-2);
  white-space: pre;
  overflow-x: auto;
}
.span-card .preview {
  display: block;
  max-width: 100%;
  max-height: 320px;
  margin: 0 var(--sp-3h) var(--sp-3h);
  border-radius: var(--r-3);
  border: 1px solid var(--line-soft);
  background: var(--soft);
  object-fit: contain;
}

/* Numbered from the span's own first line, which is the coordinate every
 * other surface prints. A gutter numbered from one would be a second
 * coordinate system for a reader to convert between. */
.gutter-code {
  padding: var(--sp-3) 4px var(--sp-3) 0;
  border-top: 1px solid var(--line-soft);
  overflow: auto;
  min-width: 0;
  /* Capped so the span stays a span. "Read whole symbol" on a long function
   * returns hundreds of lines, and without a ceiling the card pushed the ring
   * below it off the bottom of the rail — the two are meant to be read
   * together. */
  max-height: 420px;
  overscroll-behavior: contain;
}
.code-line {
  display: flex;
  gap: var(--sp-3);
  font-family: var(--mono);
  font-size: var(--t-small);
  line-height: var(--lh-code);
}
.code-line .ln {
  width: 48px;
  flex-shrink: 0;
  text-align: right;
  color: var(--muted);
  user-select: none;
}
.code-line .lt {
  white-space: pre;
  color: var(--ink-2);
}

.span-foot {
  display: flex;
  align-items: center;
  gap: var(--sp-2h);
  flex-wrap: wrap;
  padding: var(--sp-2h) var(--sp-3h);
  border-top: 1px solid var(--line-soft);
  background: var(--soft);
}
.body-meta {
  font-family: var(--mono);
  font-size: var(--t-tiny);
  color: var(--muted);
}
.span-foot .quiet {
  font-size: var(--t-tiny);
  color: var(--muted);
  transition: color var(--d-hover) var(--e-in-out);
}
.span-foot .quiet:hover {
  color: var(--blue);
}

/* One ring out and then one more, drawn beside the span rather than on a page
 * the span is not on. */
.around-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2h);
  flex-shrink: 0;
}
.around-head .title {
  font-weight: 600;
}
.around-head .sym {
  font-family: var(--mono);
}
.around-head .meta {
  font-family: var(--mono);
  font-size: var(--t-tiny);
  color: var(--muted);
}
/* Tall enough for the ring to be a shape rather than a pile. At 260px a
 * symbol with a dozen neighbours drew every label on top of every other, which
 * is the one thing a graph is for. It grows with the rail rather than sitting
 * at a fixed height, with a floor that keeps it legible on a short window. */
.ego-panel {
  position: relative;
  flex: 1 1 340px;
  min-height: 340px;
  flex-shrink: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
}
.ego-hint {
  position: absolute;
  left: var(--sp-3);
  bottom: var(--sp-2h);
  font-family: var(--mono);
  font-size: var(--t-micro);
  color: var(--muted);
  pointer-events: none;
}

/* Freshness. Amber rather than red: a stale hit is still the best answer
 * available, it just wants re-reading before it is quoted. The word is beside
 * the dot rather than in its tooltip — a colour alone says nothing in a
 * screenshot, and nothing at all to a reader who cannot hover. */
.fresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: help;
}
.fresh .word {
  font-family: var(--mono);
  font-size: var(--t-micro-h);
  color: var(--muted);
}
.fresh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fresh-dot.is-fresh {
  background: var(--green);
}
.fresh-dot.is-stale {
  background: var(--accent);
}

/* The dials: k, Prefer, lang, path and Budget. Every one of them is a pill of
 * the same height carrying a micro-label and its control, because they are
 * the same kind of thing — what the caller is asking for — and a row of
 * differently shaped boxes says they are not. */
.store-chips {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.filters .rule {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 var(--sp-1);
  flex-shrink: 0;
}
.dial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--h-dial);
  padding: 0 var(--sp-2) 0 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-2);
  font-size: var(--t-body-sm);
}
.dial:focus-within {
  border-color: var(--blue);
}
.dial-label {
  font-family: var(--mono);
  font-size: var(--t-micro-h);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dial-prefix,
.dial-value {
  font-family: var(--mono);
  font-size: var(--t-small-h);
}
.dial-prefix {
  color: var(--muted);
}
.dial .unit {
  font-family: var(--mono);
  font-size: var(--t-tiny);
  color: var(--muted);
}
.dial .bare {
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--mono);
  font-size: var(--t-small-h);
  color: var(--ink);
  min-width: 0;
}
.dial .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 5px;
  background: var(--soft);
  color: var(--ink-2);
  font-size: var(--t-body-sm);
  line-height: 1;
  cursor: pointer;
  transition: background var(--d-fade) var(--e-in-out), color var(--d-fade) var(--e-in-out);
}
.dial .step:hover {
  background: var(--chip);
  color: var(--ink);
}
.dial .segs {
  display: flex;
  gap: 3px;
}
.dial .seg {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: var(--t-tiny-h);
  cursor: pointer;
  transition: background var(--d-fade) var(--e-in-out), color var(--d-fade) var(--e-in-out);
}
.dial .seg:hover {
  background: var(--chip);
}
.dial .seg[aria-pressed="true"] {
  background: var(--ink);
  color: var(--panel);
}
.dial-note {
  color: var(--muted);
  font-size: var(--t-small-h);
}

/* Read and Pattern: one question, then the answer under it. */
.read-out {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 0;
}

/* ----------------------------------------------------------------- graph */

/* The graph is the one page that is a drawing rather than a document: a header
 * band, then a canvas that fills everything left over beside a rail. It is
 * full-bleed on purpose — page padding around a canvas is space the drawing
 * could have used. */

.graph-page {
  animation: rise var(--d-rise) var(--e-out);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.graph-band {
  flex-shrink: 0;
  padding: var(--sp-5) var(--sp-5) var(--sp-3h);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.graph-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  min-width: 0;
}

.graph-scope {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 1 1 220px;
  min-width: 0;
  padding: 0 var(--sp-3);
  height: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  color: var(--muted);
  transition: border-color var(--d-hover) var(--e-in-out);
}

.graph-scope:focus-within {
  border-color: var(--accent-edge);
}

.graph-scope input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.graph-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
  flex-grow: 1;
  min-width: 0;
  min-height: 0;
}

.graph-frame {
  position: relative;
  min-width: 0;
  background: var(--soft);
  overflow: hidden;
}

.graph-stage {
  position: absolute;
  inset: 0;
}

.graph-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

/* Said rather than left to the default, so the canvas answers the pointer the
 * way every other draggable surface does. */
.graph-canvas.over-node {
  cursor: pointer;
}

.graph-canvas.dragging {
  cursor: grabbing;
}

/* Floating inside the canvas at its top-left, as the design draws it. */
.graph-legend {
  position: absolute;
  left: var(--sp-4h);
  top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-2h) var(--sp-3);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  font-family: var(--mono);
  font-size: var(--t-tiny);
  line-height: var(--lh-prose);
  color: var(--ink-2);
  pointer-events: none;
}

.graph-legend .key {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.graph-legend i {
  width: 18px;
  height: 0;
  border-top: 1.4px solid var(--blue);
  display: inline-block;
}

/* The canvas legend carries the same four values the rail does, drawn the way
 * the canvas draws them: solid for an edge the source settled, dotted for a
 * bare-name match, dashed and amber for a name that could mean several
 * different things. */
.graph-legend .inferred i {
  border-top-style: dotted;
}

.graph-legend .ambiguous i {
  border-top-style: dashed;
  border-top-color: var(--amber-ink);
}

.graph-legend .selected i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent-edge);
  border-radius: 3px;
  background: var(--accent);
}

.graph-count {
  position: absolute;
  right: var(--sp-4h);
  bottom: var(--sp-4);
  font-family: var(--mono);
  font-size: var(--t-tiny);
  color: var(--muted);
  pointer-events: none;
}

.graph-rail {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3h);
  min-width: 0;
  min-height: 0;
  padding: var(--sp-4h);
  background: var(--panel);
  border-left: 1px solid var(--line);
  overflow-y: auto;
}

.graph-selected {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

/* A client's name and the sentence about it are one block, not a header row
 * with its own 16px gap: laid out as a row they wrapped, and the wrap left a
 * band of white space between the title and the paragraph. */
.stanzas .head {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-1);
}
.stanzas .head .meta {
  line-height: var(--lh-prose);
}

.graph-selected .sym {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: var(--lh-heading);
  overflow-wrap: anywhere;
}

.graph-selected .loc {
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.graph-selected .chips {
  margin-top: var(--sp-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  /* Centred, so a line of prose beside a pill sits on the pill's centre line
   * rather than at the top of the space the pill makes. */
  align-items: center;
  gap: var(--sp-2);
}

.chip.static.blue {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
  color: var(--blue-ink);
}

/* Every name `--lang` accepts, on the About page rather than on a page of its
 * own: it is a list to scan, and a page to navigate to was a click in front
 * of forty-six lines. Two or three columns depending on the room. */
.lang-card .lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--sp-1) var(--sp-4h);
}
.lang-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  padding: 3px 0;
  border-bottom: 1px solid var(--line-soft);
}
.lang-row .tick {
  display: inline-flex;
  justify-content: center;
  width: 14px;
  flex-shrink: 0;
  font-size: var(--t-small);
  color: var(--green);
}
.lang-row .name {
  font-family: var(--mono);
  font-size: var(--t-small-h);
}

/* The six that carry a grammar. A word beside the name rather than a second
 * tick column: two columns of marks would have a reader working out which
 * mark means what, and the thing being said is small enough to just say. */
.lang-row .graph-mark {
  font-family: var(--mono);
  font-size: var(--t-micro-h);
  color: var(--blue-ink);
  background: var(--blue-soft);
  border-radius: var(--r-2);
  padding: 1px 5px;
  flex-shrink: 0;
}
.lang-row .exts {
  font-family: var(--mono);
  font-size: var(--t-tiny);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-group h3 {
  margin: 0 0 var(--sp-2);
  font: 500 var(--t-tiny) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.rail-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px var(--sp-2h);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2);
  font-size: var(--t-small);
  min-width: 0;
  transition: border-color var(--d-hover) var(--e-in-out);
}

.rail-list li:hover {
  border-color: var(--blue);
}

.rail-list a {
  font-family: var(--mono);
  min-width: 0;
  overflow-wrap: anywhere;
}

.rail-list .via {
  margin-left: auto;
  font-size: var(--t-micro);
  color: var(--muted);
}

.rail-hint {
  font-size: var(--t-body-sm);
  line-height: var(--lh-prose);
  color: var(--muted);
  text-wrap: pretty;
}

.rail-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  /* Pinned to the foot of the rail while the callers and callees above it
   * scroll: a symbol with thirty callers used to bury this button under them.
   * The negative offset cancels the rail's own bottom padding, so the strip
   * sits flush with the bottom edge. */
  position: sticky;
  bottom: calc(var(--sp-4h) * -1);
  margin-top: auto;
  padding: var(--sp-3) 0;
  background: var(--panel);
  box-shadow: 0 -1px 0 var(--line-soft);
}

/* Confidence, everywhere it appears — and it appears everywhere, because a
 * hop or an edge without one is a hop a reader assumes was verified.
 *
 * Four values from 0.15.0. Never colour alone — the word is always in the
 * badge, which is what carries the meaning into a greyscale screenshot and to
 * a reader who cannot hover. The dashed border `ambiguous` used to wear was a
 * second signal for something the word already said, and it made one badge a
 * different shape from its three siblings in a row they are meant to be
 * compared across.
 *
 * `extracted` and `resolved` share a tone deliberately. The difference between
 * them is how the target was settled, not how much it can be relied on: one
 * was named by an import, the other narrowed to exactly one definition. Both
 * are answers, and blue is the tone this product gives an answer. `inferred`
 * is neutral — a bare-name match, which is usually right and is not evidence.
 * `ambiguous` is amber, because it is not an answer at all. */
.conf {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--r-1);
  white-space: nowrap;
  cursor: help;
}

.conf.extracted,
.conf.resolved {
  background: var(--blue-soft);
  color: var(--blue-ink);
}

.conf.inferred {
  background: var(--chip);
  color: var(--ink-2);
}

.conf.ambiguous {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

/* The legend under the rail: what the four badges claim, said once. */
.conf-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-3) 0 0;
  border-top: 1px solid var(--line-soft);
}
.legend-chip {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.legend-chip .why {
  font-size: var(--t-micro);
  color: var(--muted);
}

/* A collapsed ambiguous row, and whatever it opens. */
.ambiguous-row {
  flex-wrap: wrap;
}
.nested-wrap {
  flex-basis: 100%;
}
.rail-list.nested {
  padding-left: var(--sp-3);
  border-left: 1px solid var(--line-soft);
  margin-top: 4px;
}
.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--blue);
  cursor: pointer;
  text-align: left;
}
.link-button.quiet {
  color: var(--muted);
  font-size: var(--t-tiny);
}

/* Who the ledger recorded. One line, because it is one fact, and it is the
 * fact that says the record is working: a breakdown that reads `portal 31` and
 * nothing else is a ledger measuring its own search box. */
.client-breakdown {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2);
  padding: 0 var(--sp-5) var(--sp-3);
  font-family: var(--mono);
  font-size: var(--t-tiny);
}
.client-breakdown .client-note {
  color: var(--muted);
}

/* Each client is one unbreakable unit: a name and its count belong on one
 * line, and the wrapping happens between clients rather than inside one. */
.client-breakdown .client {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.client-breakdown .who {
  color: var(--ink-2);
}
.client-breakdown .count {
  color: var(--muted);
  margin-left: 4px;
}
.client-breakdown .sep {
  color: var(--muted);
  margin-right: var(--sp-2);
}

/* ---------------------------------------------------------------- ledger */

/* A standing message with a heading, in a card of its own. Named apart from
 * `.note` because the two are different things: this one has chrome and is
 * meant to be read, that one is a line under a control and is usually empty. */
.notice {
  padding: var(--sp-4);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  font-size: var(--t-body-sm);
  line-height: var(--lh-prose);
  color: var(--muted);
  text-wrap: pretty;
}

.notice .what {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-1);
}

/* ---------------------------------------------------------------- agents */

/* Group tabs over the client chips: which kind of thing you are configuring,
 * then which one. */
.tabs {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow-x: auto;
}

.tab {
  transition: color var(--d-hover) var(--e-in-out), border-color var(--d-hover) var(--e-in-out);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.tab .count {
  font-family: var(--mono);
  font-size: var(--t-micro);
  padding: 1px var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--chip);
  color: var(--muted);
}

.stanzas {
  min-width: 0;
}

.stanza {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
}

/* Name and purpose in two columns, so a reader scans the names and reads
 * across only where one of them is the answer. */
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  column-gap: var(--sp-4);
  row-gap: var(--sp-2h);
  align-items: baseline;
  min-height: 0;
  overflow-y: auto;
}

.tool-name {
  font-family: var(--mono);
  font-size: var(--t-small);
  white-space: nowrap;
}

.tool-about {
  color: var(--muted);
  font-size: var(--t-body-sm);
  line-height: var(--lh-prose);
  min-width: 0;
  text-wrap: pretty;
}

/* The tool list's own price, boxed off from the list it prices. It is the one
 * number on this page an agent pays whether or not it asks anything, so it
 * reads as a fact about the server rather than as a caption under a heading. */
.cost {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  background: var(--soft);
  border-radius: var(--r-3);
  padding: var(--sp-3) var(--sp-3h);
}

.cost-line {
  font-family: var(--mono);
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
}

.cost-note {
  font-family: var(--mono);
  font-size: var(--t-micro-h);
  color: var(--muted);
}

/* Tall enough that the twelve tools are a list rather than a peephole; the
 * grid inside still scrolls once a future release outgrows it. */
.tools {
  max-height: 460px;
}

.who {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dot.good {
  color: var(--green);
}

.w-agents {
  min-width: 420px;
}

/* ----------------------------------------------------- fusion badges */

/* The word, in a pill. A letter in a square needed a tooltip to mean
 * anything, and the thing it meant — that a row was reached through the graph
 * rather than matched — is the thing most worth not hiding. */
.badges {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--r-1);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  cursor: help;
  background: var(--chip);
  color: var(--ink-2);
}

/* Not one of the fusion lists either, and it is the reason a hit is where it
 * is rather than a description of how it was found: an identifier-shaped query
 * lifts the chunks that define that name above the ranking. Filled, like the
 * image badge, because it outranks the tinted three rather than joining them. */
.badge.definition {
  background: var(--blue-ink);
  color: var(--panel);
}

.badge.vector {
  background: var(--blue-soft);
  color: var(--blue-ink);
}

.badge.keyword {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.badge.graph {
  background: var(--green-soft);
  color: var(--green-ink);
}

/* The image list is the portal's own — the design has no image hits, so it
 * has no role for one. Filled rather than tinted, so it is not mistaken for a
 * fourth shade of the three text lists, and not left as the fallback grey,
 * which reads as a badge that failed to load. */
.badge.image {
  background: var(--ink-2);
  color: var(--panel);
}

/* A capture name from a tree-sitter pattern. Not a fusion list at all — it is
 * what the pattern called the thing it caught. */
.badge.capture {
  background: var(--blue-soft);
  color: var(--blue-ink);
}

/* --------------------------------------------------------------- narrow */


/* A table's secondary columns, dropped where the table would otherwise be
 * three screens wide. The rows that matter — what the file is, and what you do
 * with it — stay; the store name, the reader, the chunk count and the like are
 * a scroll away on a desktop and noise on a phone. The data is unchanged: this
 * hides columns, it does not filter rows. */
/* Five tiles at tablet width broke four across and one alone on a full-width
 * row, which reads as a tile that means more than the other four. Three and
 * two is the same information with no accidental emphasis. */
@media (min-width: 521px) and (max-width: 899px) {
  .strip .stat {
    flex: 1 1 calc(33.333% - var(--sp-3));
  }
}

@media (max-width: 820px) {
  .narrow-drop {
    display: none;
  }
  /* The other half of the same rule: a fact the dropped columns were carrying
   * that nothing else on the row says. A store's roots are what it indexes,
   * and on a phone the ROOTS column goes and nothing replaced it. */
  .only-narrow {
    display: block;
  }
  /* With those columns gone the table fits the card, so the minimum that was
   * holding the full set of them apart is what would keep it scrolling
   * sideways. */
  .w-stores,
  .w-files,
  .w-models,
  .w-agents,
  .w-coverage {
    min-width: 0;
  }
  /* A truncating cell still asks for the width of its longest path unless it
   * is allowed to be narrower than its content, which `max-width: 0` on the
   * cell is the standard way to say. The ellipsis then does the work it was
   * added for at any width. */
  td.path,
  td.meta,
  tbody td:first-child {
    max-width: 0;
  }
  .one-line {
    max-width: 100%;
  }
  /* The tool list scrolls inside a fixed-height card on the desktop grid.
   * Stacked in one column there is no height to fit into, and the scrollport
   * only cut the last row in half. */
  .tool-grid {
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 899px) {
  /* Type steps here rather than in each component: before this the only size
   * that changed at either breakpoint was the stat value, so a 24px figure sat
   * beside a 21px heading that had not moved. */
  :root {
    --t-display: 21px;
    --t-h1: 18px;
    --t-title: 16px;
    --t-lead: 14px;
  }

  /* Below the narrow breakpoint the page scrolls rather than trapping a
   * stacked desktop layout in the viewport, which is worse than letting it
   * scroll. Tables still scroll inside their own wrapper. */
  .view {
    overflow-y: auto;
  }

  .grow {
    flex: 0 0 auto;
  }

  /* The canvas pages are two columns of real content, so they stack rather
   * than squeeze: a 300px rail beside a 300px canvas is two unusable halves. */
  .graph-body {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Stacked, the canvas cannot fill the page any more, so it takes a stated
   * height and the rail follows it down the page. */
  .graph-page {
    overflow-y: auto;
  }

  .graph-frame {
    height: 360px;
  }

  .graph-band {
    padding: var(--sp-4) var(--sp-4) var(--sp-3);
  }

  .graph-rail {
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow: visible;
  }

  /* The rail is navigation for a wide screen; on a phone the drawer is. */
  .rail {
    display: none;
  }

  .sidebar {
    animation: slide-in var(--d-slide) var(--e-pop);
    position: fixed;
    top: var(--topbar-h);
    bottom: 0;
    left: 0;
    z-index: 40;
    box-shadow: var(--shadow-nav);
  }
  .sidebar[hidden] {
    display: none;
  }

  @keyframes slide-in {
    from {
      transform: translateX(-100%);
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }

  .scrim {
    animation: fade-in var(--d-slide) var(--e-in-out);
    display: block;
    position: fixed;
    inset: var(--topbar-h) 0 0 0;
    background: var(--scrim);
    z-index: 35;
    border: 0;
    padding: 0;
  }

  .view {
    padding: 18px var(--sp-4) var(--sp-6);
  }
  .search-band {
    padding: var(--sp-4) var(--sp-4) var(--sp-3);
  }
  .results {
    padding: var(--sp-4) var(--sp-4) var(--sp-6);
  }

  /* The topbar's job on a phone is the menu, the mark and the theme toggle.
   * The page title is already the h1 one line below it, and the search
   * launcher is a nav item away — both were pushing the toggle off the end of
   * a bar that cannot scroll. */
  .page-title,
  .divider-v,
  .search-launcher .what,
  .search-launcher .key-hint {
    display: none;
  }
  .search-launcher {
    flex: 0 0 auto;
    width: 34px;
    justify-content: center;
    padding: 0;
  }
  .wordmark {
    display: none;
  }
}

@media (max-width: 520px) {
  :root {
    --t-display: 18px;
    --t-h1: 16px;
    --t-title: 14px;
    --t-lead: 13px;
    --t-body: 13px;
  }

  .graph-frame {
    height: 280px;
  }

  .graph-controls {
    gap: var(--sp-2);
  }

  .kv .k {
    width: auto;
  }
  .stat {
    flex-basis: 100%;
  }

  /* Nine store chips wrapped to three rows above the results, which on a
   * phone is the whole first screen spent on a filter nobody had asked for.
   * One row, scrolled sideways, with the edge fading to say there is more. */
  .store-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  .store-chips::-webkit-scrollbar {
    display: none;
  }
  .store-chips > * {
    flex: 0 0 auto;
  }

  /* The summary bar sits over the results on a phone, so the last card was
   * half-covered by it. */
  .results {
    padding-bottom: var(--sp-8);
  }
}

/* A column of checkboxes, and the bar that appears once one is ticked. */
th.pick,
td.pick {
  width: 34px;
  padding-right: 0;
}

input.pick {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.bulk {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2h) var(--sp-3h);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--soft);
}

/* Two actions at the end of a row, on one line. */
.row-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  justify-content: flex-end;
}

/* A row's actions, behind one control. The host is fixed to the viewport
 * because a popup inside a table cell is clipped by the table's own scroll. */
.menu {
  position: fixed;
  z-index: 60;
  min-width: 180px;
  padding: var(--sp-1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: 0 10px 30px rgb(15 21 26 / 18%);
}

.menu-item {
  transition: background var(--d-quick) var(--e-in-out);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 0;
  border-radius: var(--r-2);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-body-sm);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.menu-item:hover {
  background: var(--soft);
}
.menu-item.bad {
  color: var(--red-ink);
}
.menu-item.bad:hover {
  background: var(--red-soft);
}

/* The icon-only button the menu hangs off. */
.button.icon {
  width: 32px;
  padding: 0;
}

th.row-end,
td.row-end {
  width: 44px;
  text-align: right;
}

/* A question that stops the page until it is answered. The element is a
 * native `<dialog>`, so the centring, the focus trap and the backdrop are the
 * browser's rather than three more things to get right here. */
.modal {
  width: min(440px, calc(100vw - 2 * var(--sp-4)));
  padding: var(--sp-4h);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 60px rgb(15 21 26 / 22%);
}
.modal::backdrop {
  background: rgb(15 21 26 / 45%);
}
.modal .card-title {
  margin: 0 0 var(--sp-2);
  font-size: var(--t-title);
}
.modal .subtitle {
  margin: 0;
  /* A path has no spaces in it, so without this the line cannot break and the
   * dialog's own text pushes out past both its edges. */
  overflow-wrap: anywhere;
  max-height: 40dvh;
  overflow-y: auto;
}
.modal .card-title {
  overflow-wrap: anywhere;
}
.modal .actions {
  margin-top: var(--sp-4);
}
/* The button that destroys something is red, not the amber of an action that
 * merely needs care. */
.modal .button.danger {
  border-color: var(--red);
  color: var(--red-ink);
}
.modal .button.danger:hover {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red-ink);
}

/* The menu control: a bordered square, and dots dark enough to find. */
.button.icon {
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--ink-2);
}
.button.icon:hover,
.button.icon[aria-expanded="true"] {
  color: var(--ink);
  border-color: var(--blue);
}
.button.icon[aria-expanded="true"] {
  background: var(--chip);
}
.button.icon svg {
  width: 18px;
  height: 18px;
}

/* The Privacy page's Rules section.
 *
 * One row per rule, with the daemon's own reading of it on the right. The
 * reading is the point: a row that only stated the rule would be a sentence
 * somebody wrote, and these are meant to be checkable. */
.rules {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.rule-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-3) 0 0;
  border-top: 1px solid var(--line);
}
.rule-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.rule-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.rule-id {
  font-weight: 600;
  white-space: nowrap;
}
.rule-text {
  color: var(--muted);
  margin: 0;
  /* Full width, like every other paragraph. See `.card .subtitle`. */
  max-width: 100%;
}
/* What the daemon found, under the rule it is about. A column beside the rule
 * spends the card's whole width on the one row whose reading is a path, and
 * wraps every other one into ragged thirds. */
.rule-found {
  align-items: baseline;
  display: flex;
  gap: var(--sp-2);
  min-width: 0;
}
.rule-found .eyebrow {
  flex-shrink: 0;
}
.rule-check {
  color: var(--fg);
  font-size: 0.85em;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rule-row.bad .rule-check {
  color: var(--red);
}

/* A path that was refused rather than skipped. A skipped file is one semlith
 * has no reader for; a refused one is a file semlith will not read, and the
 * difference is the whole reason the outcome is its own word. */
.log .line.refused .outcome {
  color: var(--red);
}
.log .line.refused {
  opacity: 1;
}

/* A failure is not a decision: a skipped file is one semlith chose not to
   read, a failed one is a file it tried to read and could not. They are
   different colours because they are different news. */
.log .line.failed .outcome {
  color: var(--red);
}
.log .line.failed {
  opacity: 1;
}

/* Impact — the graph read backwards.
 *
 * A list rather than a picture: the question is "who would notice", and an
 * answer to that is read top to bottom by hop, not laid out in space. The
 * row shape is the locate row's, because both are "a name, where it is, and
 * what it is worth" and two shapes for that would read as two kinds of fact. */
.impact-band {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  margin-bottom: var(--sp-4);
}
.impact-band input[type="search"] {
  flex: 1 1 18rem;
  min-width: 0;
}
.hops-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--t-body-sm);
  color: var(--muted);
}
.hops-label .hops {
  width: 4.5rem;
}
.impact-block {
  margin-bottom: var(--sp-5);
}
.impact-hop {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: var(--sp-2);
}
.impact-hop h2 {
  font-size: var(--t-body);
  margin: 0;
}
/* One grid for the header and the rows, so a column heading sits over the
 * column it names. As two flex rows they drifted apart the moment a symbol
 * was longer than its heading. */
.impact-row,
.impact-head-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) minmax(0, 1.6fr) 3rem;
  align-items: baseline;
  gap: var(--sp-2);
}
.impact-row {
  padding: var(--sp-1) 0;
  font-family: var(--mono);
  font-size: var(--t-small);
}
/* The support badge rides with the edge it describes rather than taking a
 * column of its own: it is a property of the via, not a fourth fact. */
.impact-row .via {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  min-width: 0;
}
.impact-row .sym {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.impact-row .where,
.impact-row .kind,
.impact-row .via {
  color: var(--ink-2);
}
.impact-row .via {
  color: var(--muted);
}
.headline {
  font-size: var(--t-body);
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
/* Said once, above the list, rather than on every ambiguous row: the warning
 * is about the walk, not about any one edge — each row still carries its own
 * badge. */
.note.hypothesis {
  color: var(--amber-ink, var(--ink-2));
  margin-bottom: var(--sp-3);
}

/* The subject line and the three counts above the Impact table. */
.impact-subject-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: var(--sp-4);
}
.impact-subject {
  font-family: var(--mono);
  font-size: var(--t-body);
  color: var(--ink);
}
.impact-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.impact-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.impact-stat .n {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink);
}
/* The column names, once, above the per-hop blocks rather than repeated in
 * each of them: the blocks are one table split by hop, not five tables. */
.impact-head-row {
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-2);
}
.impact-row .hops-n {
  text-align: right;
  color: var(--muted);
}

/* The path finder and Trace, two cards under the reach list. */
.card.pad.path-card,
.card.pad.trace-card {
  margin-top: var(--sp-6);
}
.card-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.card-head h2 {
  font-size: var(--t-body);
  margin: 0;
}
.mono-chip {
  font-family: var(--mono);
  font-size: var(--t-tiny);
  color: var(--muted);
}
.path-band {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  margin-bottom: var(--sp-3);
}
.path-band input {
  flex: 1 1 10rem;
  min-width: 0;
}
/* On and off, as the design draws them: the on state is ink on panel
 * reversed, so which way a toggle is set is legible without reading it. */
.chip-toggle {
  font-family: var(--mono);
  font-size: var(--t-tiny);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-2);
  cursor: pointer;
}
.chip-toggle.on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--panel);
}
.hop {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
  font-family: var(--mono);
  font-size: var(--t-small);
}
.hop .n {
  color: var(--muted);
  min-width: 1.2em;
}
.hop .end {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.hop .arrow,
.hop .kind {
  color: var(--ink-2);
}
/* The weld, drawn between the two hops it joins rather than as a hop of its
 * own: a seam that counted as a hop would inflate the hop count and hide the
 * join, which is the thing worth seeing. */
.seam {
  margin: 0 0 var(--sp-1) var(--sp-5);
  padding-left: var(--sp-2);
  border-left: 1.4px dashed var(--accent);
  font-family: var(--mono);
  font-size: var(--t-tiny);
  color: var(--amber-ink);
}
.trailer {
  margin-top: var(--sp-2);
  font-size: var(--t-tiny);
  color: var(--muted);
}
.refusal {
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3);
}
.refusal .mono {
  font-family: var(--mono);
  font-size: 12.5px;
  margin: 0;
}
.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.answer {
  margin: var(--sp-1) 0 var(--sp-4);
  line-height: var(--lh-prose);
}
.support {
  margin-bottom: var(--sp-3);
}
.support code {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-small);
  background: var(--shade, var(--line-soft));
  border-radius: var(--r-2, 4px);
  padding: var(--sp-2);
  overflow-x: auto;
  white-space: pre;
}
.support-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: baseline;
  margin-top: var(--sp-1);
  font-family: var(--mono);
  font-size: var(--t-tiny);
}
.support-foot .hop-of {
  color: var(--muted);
}
/* Two marks, and the difference between them is the whole point: one is a
 * fact the source states, the other is a name match somebody has to check. */
.mark.fact {
  color: var(--blue-ink, var(--accent));
}
.mark.candidate {
  color: var(--amber-ink);
}

/* The right column of the Graph page: the selection rail, and the Map under
 * it. Two panels rather than one, because selecting a node replaces the rail
 * and must not take the map of the store with it. */
.graph-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  border-left: 1px solid var(--line);
}
.graph-side .graph-rail {
  border-left: 0;
  overflow-y: visible;
}
.map-panel {
  padding: var(--sp-4h);
  border-top: 1px solid var(--line);
}
.map-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.map-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: var(--sp-2);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--panel);
  cursor: pointer;
  min-width: 0;
}
.map-row:hover {
  border-color: var(--blue-ink);
}
.map-row .line {
  font-family: var(--mono);
  font-size: var(--t-tiny);
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.map-row .line.one {
  display: flex;
  gap: var(--sp-2);
  align-items: baseline;
  font-size: var(--t-small);
  color: var(--ink);
}
.map-row .size {
  color: var(--muted);
}
.map-shown {
  margin-top: var(--sp-2);
  font-family: var(--mono);
  font-size: var(--t-tiny);
  color: var(--muted);
}
@media (max-width: 899px) {
  .graph-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow: visible;
  }
}

/* Inside the index: the language mix, chunks by month, and graph health.
 *
 * Three cards of counted things, drawn as bars rather than as numbers alone
 * because the question each answers is a proportion — how much of the corpus
 * is this language, how much of the graph is settled. */
.health {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.health-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  min-width: 0;
}
.mix {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.mix-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--mono);
  font-size: var(--t-tiny);
}
.mix-row .k {
  flex: 0 0 7rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.mix-row .meter {
  flex: 1 1 auto;
  height: 6px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.mix-row .meter span {
  display: block;
  height: 100%;
  background: var(--blue-ink);
}
.mix-row .v {
  color: var(--muted);
  white-space: nowrap;
}
.months {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-1);
  height: 96px;
}
.month {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  /* Capped, so one month reads as a column rather than as a slab filling
   * the card. A store indexed in a single pass is the common case. */
  flex: 0 1 44px;
  min-width: 0;
  height: 100%;
  justify-content: flex-end;
}
.months {
  justify-content: flex-start;
}
.month .col {
  display: flex;
  align-items: flex-end;
  width: 100%;
  flex: 1 1 auto;
}
.month .col span {
  display: block;
  width: 100%;
  background: var(--blue-ink);
  border-radius: 2px 2px 0 0;
}
.month .m,
.month .c {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}
/* The four support classes as one bar, in the order they are worth trusting.
 * A single "resolution %" hid the difference between an edge the source
 * named and one nothing could place. */
.support-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line-soft);
}
.support-bar .seg.extracted {
  background: var(--blue-ink);
}
.support-bar .seg.resolved {
  background: var(--accent);
}
.support-bar .seg.ambiguous {
  background: var(--amber-ink);
}
.support-bar .seg.unresolved {
  background: var(--line);
}
.health-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.health-facts .fact {
  display: flex;
  flex-direction: column;
}
.health-facts .v {
  font-family: var(--mono);
  font-size: var(--t-body);
  color: var(--ink);
}
.health-facts .k {
  font-size: var(--t-tiny);
  color: var(--muted);
}

/* The sessions table's columns. Same shape as the rows table beside it, one
 * column wider, so the two read as one page rather than as two designs. */
.w-sessions {
  table-layout: fixed;
  width: 100%;
}
.w-sessions th:nth-child(1),
.w-sessions td:nth-child(1) {
  width: 16%;
}
.w-sessions th:nth-child(2),
.w-sessions td:nth-child(2) {
  width: 14%;
}
.w-sessions th:nth-child(5),
.w-sessions td:nth-child(5),
.w-sessions th:nth-child(6),
.w-sessions td:nth-child(6),
.w-sessions th:nth-child(7),
.w-sessions td:nth-child(7) {
  width: 11%;
}

/* Session replay: one row per transcript, and the outcomes under it. */
.replay-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.replay-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line-soft);
}
.replay-row .line.one {
  display: flex;
  gap: var(--sp-2);
  align-items: baseline;
  font-family: var(--mono);
  font-size: var(--t-small);
}
.replay-counts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-family: var(--mono);
  font-size: var(--t-tiny);
}
/* The three outcomes are different facts and are never summed: a refund is
 * an agent that did not ask, a miss is an answer that was not good enough,
 * an edit is the answer having been enough. */
.replay-count.refund {
  color: var(--amber-ink);
}
.replay-count.miss {
  color: var(--red-ink, var(--amber-ink));
}
.replay-count.sufficed {
  color: var(--blue-ink);
}
.replay-count.unknown {
  color: var(--muted);
}

/* Reports: five cards and one preview under them. */
.report-card .filters {
  gap: var(--sp-1);
}
.report-preview {
  min-height: 4rem;
}
.report-text {
  font-family: var(--mono);
  font-size: var(--t-small);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  max-height: 32rem;
  overflow-y: auto;
}

/* The Cloud page's three rows and its two command blocks. */
.cloud-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.cloud-row {
  margin: 0;
  line-height: var(--lh-prose);
}
.cloud-block {
  margin-bottom: var(--sp-3);
}