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
 
 
 
 
71b2a5e
575d5bd
 
 
 
 
 
 
 
 
 
71b2a5e
575d5bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71b2a5e
 
575d5bd
 
 
 
 
 
 
 
 
 
 
71b2a5e
575d5bd
 
 
 
 
71b2a5e
575d5bd
 
 
 
 
 
 
 
 
 
928fda2
 
 
 
71b2a5e
 
 
 
928fda2
 
 
 
575d5bd
 
 
 
 
928fda2
 
 
575d5bd
 
928fda2
 
 
575d5bd
 
928fda2
 
575d5bd
 
928fda2
 
575d5bd
 
928fda2
 
575d5bd
 
928fda2
 
 
575d5bd
 
928fda2
 
575d5bd
 
928fda2
 
575d5bd
 
928fda2
 
 
575d5bd
 
 
 
 
 
 
 
 
 
928fda2
 
575d5bd
 
 
 
 
 
 
 
928fda2
 
575d5bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
928fda2
 
9703543
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
575d5bd
9703543
 
 
 
 
 
 
 
 
 
 
575d5bd
9703543
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
575d5bd
 
9703543
 
 
 
 
575d5bd
9703543
 
 
 
575d5bd
 
9703543
 
 
 
575d5bd
 
 
9703543
575d5bd
 
 
 
 
 
 
9703543
575d5bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9703543
575d5bd
 
 
 
9703543
575d5bd
928fda2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ecb5fa6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
@import "tailwindcss";

/* class-based dark mode (toggled on <html>) instead of media query */
@custom-variant dark (&:where(.dark, .dark *));

@theme {
  /* wiwi brand accent: indigo→violet "iris" ramp */
  --color-brand-50: #f3f1ff;
  --color-brand-100: #e9e5ff;
  --color-brand-200: #d6cdff;
  --color-brand-300: #b9a8fd;
  --color-brand-400: #9d7cfa;
  --color-brand-500: #8757f7;
  --color-brand-600: #7442ed;
  --color-brand-700: #6333d1;
  --color-brand-800: #512bab;
  --color-brand-900: #43278c;
  --color-brand-950: #291560;
}

:root {
  color-scheme: dark;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  @apply bg-zinc-100 text-zinc-900 antialiased dark:bg-zinc-950 dark:text-zinc-100;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}

/* thin scrollbars for log tables */
* {
  scrollbar-width: thin;
}

/* -- login page: motion (gated for reduced motion) ------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .wiwi-enter {
    animation: wiwi-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .wiwi-flow {
    animation: wiwi-dash 1.5s linear infinite;
  }
  .wiwi-pulse {
    animation: wiwi-pulse 2.4s ease-in-out infinite;
  }
  .wiwi-shake {
    animation: wiwi-shake 0.3s ease-in-out both;
  }
}

@keyframes wiwi-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes wiwi-dash {
  to {
    stroke-dashoffset: -16;
  }
}

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

@keyframes wiwi-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

/* -- login page: hub glow pulse --------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .wiwi-hub-pulse {
    animation: wiwi-hub-glow 3.2s ease-in-out infinite;
  }
}
@keyframes wiwi-hub-glow {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
}

/* -- login page: button shimmer sweep --------------------------------------- */
.wiwi-shimmer {
  position: relative;
  overflow: hidden;
}
.wiwi-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
  transform: translateX(-100%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .wiwi-shimmer:not(:disabled):hover::after {
    animation: wiwi-shimmer-sweep 0.7s ease-out;
  }
}
@keyframes wiwi-shimmer-sweep {
  to {
    transform: translateX(100%);
  }
}

/* -- login page: aurora color blobs (Linear-look) --------------------------- */
.wiwi-aurora {
  filter: blur(70px);
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .wiwi-aurora {
    animation: wiwi-drift 22s ease-in-out infinite;
  }
}
@keyframes wiwi-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(36px, -24px) scale(1.1); }
  66% { transform: translate(-28px, 32px) scale(0.92); }
}

/* -- login page: animated conic-gradient border ----------------------------- */
@property --conic-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.wiwi-conic-border {
  position: relative;
  padding: 1px;
  border-radius: 16px;
  background: conic-gradient(
    from var(--conic-angle),
    rgba(59, 130, 246, 0.25),
    rgba(168, 85, 247, 0.15),
    rgba(59, 130, 246, 0.03),
    rgba(168, 85, 247, 0.03),
    rgba(59, 130, 246, 0.25)
  );
}
@media (prefers-reduced-motion: no-preference) {
  .wiwi-conic-border {
    animation: wiwi-conic-spin 6s linear infinite;
  }
}
@keyframes wiwi-conic-spin {
  to { --conic-angle: 360deg; }
}

/* Glass card β€” near-solid so it reads as an object floating over pure black.
   Backdrop blur still catches the light streaks passing behind it. */
.wiwi-glass-card {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

/* Top specular highlight line β€” brighter now that the card sits on pure black,
   otherwise the card's top edge disappears into the backdrop. */
.wiwi-top-highlight {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(96, 165, 250, 0.5),
    rgba(168, 85, 247, 0.3),
    transparent
  );
}

@layer components {
/* ─── Admin Design System (cloned from the Dra console) ──────────────────────
   Dark-only console: near-black surfaces, hairline white borders, blue accent
   with a violet secondary, tiny uppercase labels, mono tabular values. */

[data-admin] {
  --admin-bg: #050505;
  --admin-surface: #0a0a0a;
  --admin-surface-elevated: #0e0e0e;
  --admin-border: rgba(255, 255, 255, 0.04);
  --admin-border-hover: rgba(255, 255, 255, 0.08);
  --admin-text: #ffffff;
  --admin-text-muted: #9ca3af;
  /* gray-500 (#6b7280) measured 4.0:1 on the near-black surfaces β€” just
     under WCAG AA for the small caption sizes this token is used at.
     gray-450 keeps the "dim" intent at a compliant ratio. */
  --admin-text-dim: #848c99;
  --admin-accent: #3b82f6;
  --admin-accent-soft: rgba(59, 130, 246, 0.1);
  --admin-accent-glow: rgba(59, 130, 246, 0.2);
  --admin-accent-purple: #a855f7;
  --admin-accent-violet: #7c3aed;
  --admin-success: #34d399;
  --admin-warning: #fbbf24;
  --admin-danger: #f87171;
  --admin-radius: 14px;
  --admin-radius-sm: 8px;
  --admin-radius-lg: 20px;
}

/* Admin ambient glow layers */
.admin-glow-blue {
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 0%),
    rgba(59, 130, 246, 0.04) 0%,
    transparent 70%
  );
}

.admin-glow-violet {
  background: radial-gradient(
    500px circle at var(--x, 50%) var(--y, 100%),
    rgba(124, 58, 237, 0.03) 0%,
    transparent 70%
  );
}

/* Admin scrollbar */
.admin-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.25) transparent;
}
.admin-scroll::-webkit-scrollbar {
  width: 3px;
}
.admin-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.admin-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.4),
    rgba(139, 92, 246, 0.3)
  );
  border-radius: 10px;
}

/* Admin surface card */
.admin-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.admin-card:hover {
  border-color: var(--admin-border-hover);
  box-shadow:
    0 0 40px -12px rgba(59, 130, 246, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.02);
}
.admin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.08),
    rgba(124, 58, 237, 0.05),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.admin-card:hover::before {
  opacity: 1;
}

/* Admin table */
.admin-table {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  overflow: hidden;
  background: var(--admin-surface);
}
.admin-table thead tr {
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--admin-border);
}
.admin-table th {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--admin-text-muted);
  padding: 14px 20px;
  text-align: left;
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--admin-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
.admin-table tbody tr {
  transition: background 0.15s ease;
}
.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--admin-surface);
}

/* Log tables (request + proxy logs). Their rows carry far more columns than a
   phone can show, so the page hides the low-priority ones below a breakpoint
   and the cells give their gutters back: 15 columns Γ— 40px of default padding
   was 600px of the row before any content. On touch screens the row is also
   grown past the 44px tap-target floor β€” a log row is a button here. */
.admin-table-logs th,
.admin-table-logs td {
  padding-inline: 14px;
}
@media (max-width: 640px) {
  .admin-table-logs th,
  .admin-table-logs td {
    padding-inline: 10px;
  }
}
@media (pointer: coarse) {
  .admin-table-logs td {
    padding-block: 16px;
  }
}

/* Request-log rows are the page's primary navigation, so their hover is an
   accent-tinted gradient (not the generic flat lift) — a faint blue→violet
   wash matching the site's beam identity. Scoped to the logs table so the
   config tables keep their neutral hover. */
.admin-table-logs tbody tr:hover {
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.045) 0%,
    rgba(124, 58, 237, 0.03) 50%,
    rgba(59, 130, 246, 0.045) 100%
  );
}
.admin-table-logs tbody tr:hover td:first-child {
  box-shadow: inset 2px 0 0 0 rgba(96, 165, 250, 0.45);
}

/* -- Filter deck ------------------------------------------------------------
   The request-logs toolbar as one bordered surface, so search, dropdowns and
   the segmented toggles read as a single control band. */
.admin-filter-deck {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
}
.admin-filter-deck-rule {
  flex: 0 0 1px;
  align-self: stretch;
  width: 1px;
  background: var(--admin-border);
}

/* Segmented control β€” replaces the status/range dropdowns. A reader flips
   between four statuses or eight ranges constantly; a one-click pill beats
   opening a menu every time. The pressed state is a quiet surface lift, the
   same treatment selects and tabs elsewhere in the console use. */
.admin-segment {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}
.admin-segment-btn {
  min-height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--admin-text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.admin-segment-btn:hover:not([aria-pressed="true"]) {
  color: var(--admin-text-muted);
  background: rgba(255, 255, 255, 0.04);
}
.admin-segment-btn:focus-visible {
  outline: 2px solid var(--admin-accent);
  outline-offset: 1px;
}
.admin-segment-btn[aria-pressed="true"] {
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.07);
}
@media (pointer: coarse) {
  .admin-segment-btn {
    min-height: 40px;
    padding: 0 12px;
  }
}

/* -- Admin badge */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  /* Never break a label mid-word. The uppercase + letter-spacing makes
     "OpenAI Responses" wider than a narrow phone column, and without this
     the flex item wrapped as "OPENAI RESPONSE / S" β€” a broken word, not a
     broken layout. `white-space: nowrap` keeps each badge whole; the
     container wraps BETWEEN badges instead, which is what a reader expects.

     No `overflow: hidden` / `max-width` here on purpose: a badge inside a
     narrow table cell is *wider* than its cell, and clipping it hid the
     label entirely ("openai-compatible" became "openai-compatibl…").
     Overflowing the cell is the lesser evil β€” the text stays readable β€”
     and the table itself scrolls. */
  white-space: nowrap;
}

.admin-badge-green {
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.15);
}
.admin-badge-red {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.15);
}
.admin-badge-amber {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.15);
}
.admin-badge-blue {
  color: rgba(59, 130, 246, 0.8);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
}
.admin-badge-violet {
  color: rgba(168, 85, 247, 0.8);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
}
.admin-badge-gray {
  color: var(--admin-text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border);
}

/* Admin alert β€” block status notice (tone follows the badge palette so a
   notice and its badge read as the same severity). */
.admin-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--admin-text-muted);
}
.admin-alert-info {
  color: var(--admin-accent);
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.18);
}
.admin-alert-success {
  color: var(--admin-success);
  background: rgba(52, 211, 153, 0.05);
  border-color: rgba(52, 211, 153, 0.18);
}
.admin-alert-warning {
  color: var(--admin-warning);
  background: rgba(251, 191, 36, 0.05);
  border-color: rgba(251, 191, 36, 0.18);
}
.admin-alert-danger {
  color: var(--admin-danger);
  background: rgba(248, 113, 113, 0.05);
  border-color: rgba(248, 113, 113, 0.18);
}

/* Admin input */
.admin-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--admin-text);
  outline: none;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.admin-input::placeholder {
  color: var(--admin-text-dim);
}
.admin-input:focus {
  border-color: var(--admin-accent-glow);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

/* `type="search"` inputs (Providers / Built-in Providers filters) get Chrome's
   native clear affordance, which renders as a bright light-theme glyph on our
   dark surface. Hide it β€” those inputs ship their own themed clear button β€”
   and drop the WebKit search decoration quirks so text sits flush left. */
input[type="search"].admin-input {
  -webkit-appearance: none;
  appearance: none;
}
input[type="search"].admin-input::-webkit-search-decoration,
input[type="search"].admin-input::-webkit-search-cancel-button,
input[type="search"].admin-input::-webkit-search-results-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Number-input steppers: hide the glaring browser-default white spinners.
   The form uses a custom themed stepper (admin-number-stepper) instead, so
   the native buttons are removed for a consistent dark look. */
input[type="number"].admin-input {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"].admin-input::-webkit-outer-spin-button,
input[type="number"].admin-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Custom themed stepper: βˆ’ / + buttons on the right of a number field.
   Uses admin surface/border tokens so it reads as part of the input, not a
   bright foreign control. */
.admin-number-field {
  position: relative;
}
.admin-number-field .admin-input {
  padding-right: 30px;
}
.admin-number-stepper {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 26px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--admin-border);
  border-radius: 0 calc(var(--admin-radius-sm) - 1px) calc(var(--admin-radius-sm) - 1px) 0;
  overflow: hidden;
}
.admin-number-stepper button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.015);
  color: var(--admin-text-dim);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 0;
}
.admin-number-stepper button + button {
  border-top: 1px solid var(--admin-border);
}
.admin-number-stepper button:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--admin-accent);
}
.admin-number-stepper button:active {
  background: rgba(59, 130, 246, 0.16);
}
.admin-number-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
/* Touch stepper layout lives OUTSIDE this layer β€” see the "Touch number
   stepper" block at the end of the file. Inside `@layer components` its
   padding lost to the caller's `px-*` utility, so the 88px stepper painted
   over the whole 72px weight field (AUDIT #377). */
select.admin-input option {
  background: var(--admin-surface-elevated);
  color: var(--admin-text);
}

/* Admin button variants */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--admin-radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  outline: none;
  white-space: nowrap;
}
.admin-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.admin-btn-primary {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.admin-btn-primary:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 20px -6px rgba(99, 102, 241, 0.2);
}
.admin-btn-ghost {
  background: transparent;
  color: var(--admin-text-muted);
  border: 1px solid var(--admin-border);
}
.admin-btn-ghost:hover:not(:disabled) {
  color: var(--admin-text);
  border-color: var(--admin-border-hover);
  background: rgba(255, 255, 255, 0.02);
}
.admin-btn-danger {
  background: rgba(248, 113, 113, 0.08);
  color: var(--admin-danger);
  border: 1px solid rgba(248, 113, 113, 0.12);
}
.admin-btn-danger:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.2);
}

/* Keyboard focus ring β€” MUST come after every `:hover` rule above, and must
   match their specificity, or a focused-and-hovered primary button loses the
   ring to `.admin-btn-primary:hover`'s glow (AUDIT #258).

   The `:not(:disabled)` is what buys the third specificity class; the
   two-stop ring puts an opaque inner edge against the `#0a0a0a` card surface
   and an accent outer edge against the `#050505` page background, so it reads
   on both. */
.admin-btn:focus-visible:not(:disabled) {
  outline: none;
  box-shadow:
    0 0 0 2px var(--admin-bg),
    0 0 0 4px rgba(59, 130, 246, 0.55);
}

/* Admin section label */
.admin-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--admin-text-muted);
}

/* Admin stat value (gradient text) */
.admin-stat-value {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 60%, rgba(255, 255, 255, 0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stat highlight variant */
.admin-stat-highlight {
  border-color: rgba(59, 130, 246, 0.06);
  background: linear-gradient(
    135deg,
    var(--admin-surface) 0%,
    rgba(59, 130, 246, 0.012) 100%
  );
}
.admin-stat-highlight:hover {
  border-color: rgba(59, 130, 246, 0.1);
}

/* Stat tile accent wash β€” a corner glow tinted by the tile's tone. Rises on
   hover so featured tiles read as live surfaces rather than static cards. */
.admin-stat-wash {
  opacity: 0.7;
  transition: opacity 0.4s ease;
}
.admin-card:hover .admin-stat-wash {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .admin-stat-wash {
    transition: none;
  }
}

/* Live badge + pulse dot */
.admin-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(59, 130, 246, 0.7);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.06),
    rgba(124, 58, 237, 0.04)
  );
  border: 1px solid rgba(59, 130, 246, 0.08);
}
@keyframes admin-pulse-dot {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}
.admin-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--admin-accent);
  animation: admin-pulse-dot 2s ease-in-out infinite;
}

/* Topbar */
.admin-topbar {
  backdrop-filter: blur(12px) saturate(1.2);
  background: rgba(5, 5, 5, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.admin-topbar-border {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.06) 20%,
    rgba(124, 58, 237, 0.04) 50%,
    rgba(59, 130, 246, 0.06) 80%,
    transparent 100%
  );
}

/* Keyboard shortcut chip */
.admin-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 9px;
  font-family: var(--font-mono), ui-monospace, monospace;
  font-weight: 600;
  color: var(--admin-text-dim);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  line-height: 1;
}

/* Empty state */
.admin-empty-state {
  border-style: dashed;
  border-color: var(--admin-border);
  background: rgba(255, 255, 255, 0.004);
}

/* Skeleton shimmer */
@keyframes admin-skeleton {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.admin-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 25%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 75%
  );
  background-size: 200% 100%;
  animation: admin-skeleton 1.8s ease-in-out infinite;
  border-radius: 6px;
}

/* Stagger fade-up entrance */
@keyframes admin-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.admin-stagger > * {
  animation: admin-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.admin-stagger > *:nth-child(1) { animation-delay: 0ms; }
.admin-stagger > *:nth-child(2) { animation-delay: 60ms; }
.admin-stagger > *:nth-child(3) { animation-delay: 120ms; }
.admin-stagger > *:nth-child(4) { animation-delay: 180ms; }
.admin-stagger > *:nth-child(5) { animation-delay: 240ms; }
.admin-stagger > *:nth-child(6) { animation-delay: 300ms; }
.admin-stagger > *:nth-child(7) { animation-delay: 360ms; }
.admin-stagger > *:nth-child(8) { animation-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  .admin-stagger > * {
    animation: none;
    opacity: 1;
  }
  .admin-pulse-dot {
    animation: none;
    opacity: 0.6;
  }
  .admin-skeleton {
    animation: none;
  }
}

/* ─── Dashboard polish: delta chips, waiting pulse, chart tooltip ─────────── */
.admin-delta-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  padding: 1px 7px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  line-height: 16px;
  font-weight: 500;
}
.admin-delta-up {
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
}
.admin-delta-down {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}
.admin-delta-flat {
  color: var(--admin-text-dim);
  background: rgba(255, 255, 255, 0.04);
}
@keyframes admin-waiting-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}
.admin-waiting-pulse {
  animation: admin-waiting-pulse 2.4s ease-in-out infinite;
}
.admin-chart-tooltip {
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}
.admin-chart-tooltip .tt-value {
  font-weight: 600;
  color: #f4f4f5;
}
.admin-chart-tooltip .tt-series {
  color: #9ca3af;
}

/* Dialog entrance: quiet fade for the scrim, lift+blur for the panel */
@keyframes admin-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes admin-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
.admin-overlay-enter {
  animation: admin-overlay-in 0.18s ease-out both;
}
.admin-dialog-enter {
  animation: admin-dialog-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* Drawer (right-side slide-in panel) */
@keyframes admin-drawer-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.admin-drawer-enter {
  animation: admin-drawer-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Log detail section card β€” subtle surface for grouped metadata blocks */
.admin-detail-section {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}
.admin-detail-section-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.008);
}

/* Metric pill β€” compact inline stat used in detail panels */
.admin-metric-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.015);
  min-width: 0;
}
.admin-metric-pill-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--admin-text-dim);
  white-space: nowrap;
}
.admin-metric-pill-value {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--admin-text);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .admin-overlay-enter,
  .admin-dialog-enter,
  .admin-drawer-enter {
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .admin-waiting-pulse { animation: none; }
}

/* ─── Settings: console preferences (toggled via <html> classes) ────────────── */

/* user-requested motion reduction overrides *all* console animations */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* compact density: tighten table padding, stat tiles, and badges */
.ui-compact .admin-table th {
  padding: 10px 16px;
}
.ui-compact .admin-table td {
  padding: 8px 16px;
  font-size: 12px;
}

/* Settings tab strip */
.admin-tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  border: none;
  background: transparent;
}
.admin-tab:hover {
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.02);
}
.admin-tab[data-active="true"] {
  color: var(--admin-accent);
  background: var(--admin-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

/* Settings: description list (key/value meta rows) */
.admin-dl {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 0;
}
.admin-dl dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--admin-text-dim);
  padding: 11px 0;
  border-bottom: 1px solid var(--admin-border);
}
.admin-dl dd {
  font-size: 13px;
  color: var(--admin-text);
  padding: 11px 0;
  border-bottom: 1px solid var(--admin-border);
  margin: 0;
  word-break: break-word;
}
.admin-dl > dt:last-child,
.admin-dl > dd:last-child {
  border-bottom: none;
}

/* Settings: row toggle item β€” label + description on the left, control right */
.admin-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--admin-border);
}
.admin-setting-row:last-child {
  border-bottom: none;
}
.admin-setting-row-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text);
}
.admin-setting-row-desc {
  font-size: 11px;
  color: var(--admin-text-dim);
  margin-top: 2px;
  line-height: 1.4;
}

/* ─── Sidebar: identity card + collapse button ─────────────────────────────── */

/* Identity card: subtle hover glow + active sheen */
.admin-identity::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    120px circle at 20% 0%,
    rgba(59, 130, 246, 0.06) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.admin-identity:hover::after {
  opacity: 1;
}

/* Collapse button: focused ring for keyboard users */
.admin-collapse-btn:focus-visible {
  outline: none;
  border-color: var(--admin-accent-glow);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
}

/* -- docs page: reference manual in the site's hero language ---------------
   A public documentation page, not a console screen. The masthead is a
   full-bleed band on the page background β€” the same beam backdrop, gradient
   headline and CTA treatment the landing page uses β€” and the body is a
   reference manual: a sticky rail that tracks the reader, hairline-separated
   sections, tabbed code samples, and a searchable endpoint list. All tokens
   come from the shared admin design system (--admin-*). */

.docs-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.docs-grid > * {
  min-width: 0;
}

.docs-mobile-jump {
  position: relative;
  z-index: 5;
}

.docs-section-select {
  font-family: inherit;
}

/* ── masthead ────────────────────────────────────────────────────────────
   Full-bleed and borderless, standing on the page background rather than
   floating in a card. The ambient effects are the site's own: the animated
   beam backdrop and the panning grid from the landing hero. */

.docs-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--admin-bg);
}

/* Display heading β€” the accent word carries the site's animated gradient,
   the rest is solid white, and the two never orphan each other. */
.docs-display {
  font-size: clamp(2.25rem, 6.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--admin-text);
  text-wrap: balance;
}

.docs-lead {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--admin-text-muted);
  /* Keeps the last line from collapsing to a single orphan word. */
  text-wrap: pretty;
}
@media (min-width: 640px) {
  .docs-lead {
    font-size: 16px;
  }
}

/* ── how it works ───────────────────────────────────────────────────────
   The hub-and-spoke diagram, free-standing on the page β€” the landing page
   renders the same idea the same way, as a section rather than a card. */

.docs-graph {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.docs-graph-inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 56rem;
  padding: 0 1.5rem;
  text-align: center;
}
.docs-graph-title {
  margin-top: 0.75rem;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--admin-text);
  text-wrap: balance;
}
.docs-graph-sub {
  max-width: 58ch;
  margin: 0.9rem auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--admin-text-muted);
}

/* The shared blue badge is tuned for the console, where it sits on a lighter
   surface. On the near-black hero its 80%-alpha blue falls under 4.5:1 at
   10px, so the docs hero lifts it to the 300-weight step. */
.docs-masthead .admin-badge-blue {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.22);
}

/* "Live" chip β€” a soft status pill that says the gateway is running. */
.docs-chip-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6ee7b7;
}
.docs-chip-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
}
@media (prefers-reduced-motion: no-preference) {
  .docs-chip-live-dot {
    animation: docs-blink 2.6s ease-in-out infinite;
  }
}
@keyframes docs-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* ── live translation diagram ───────────────────────────────────────────
   The how-it-works visual: three inbound dialects, the wiwi IR hub, four
   upstream providers, and a beam travelling along every edge. It stands free
   on the page β€” no card, no border β€” the way the landing page renders its
   own graph section. The hub sits above the beam layer, and every node is
   positioned so the beams connect real elements. */

.docs-core {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.docs-core-body {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-items: center;
  gap: 30px;
  min-height: 300px;
  padding: 26px 18px 28px;
}

.docs-core-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}
.docs-core-row-out {
  gap: 10px;
}

.docs-core-dialect {
  position: relative;
  z-index: 2;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(10, 10, 10, 0.9);
  padding: 6px 10px;
  font-size: 10.5px;
  line-height: 1;
  white-space: nowrap;
}
.docs-core-dialect-text {
  letter-spacing: 0.01em;
}

.docs-core-provider {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(10, 10, 10, 0.9);
  padding: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.docs-core-provider:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.docs-core-hub-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.docs-core-hub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(167, 139, 250, 0.32);
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 30%, rgba(167, 139, 250, 0.16), rgba(10, 10, 10, 0.9));
  box-shadow:
    0 0 40px -10px rgba(139, 92, 246, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.docs-core-hub-logo {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  object-fit: cover;
}
.docs-core-hub-ring {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 9999px;
}
@media (prefers-reduced-motion: no-preference) {
  .docs-core-hub-ring {
    animation: docs-hub-pulse 3.4s ease-in-out infinite;
  }
}
@keyframes docs-hub-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.13);
    opacity: 0.12;
  }
}
.docs-core-hub-label {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.85);
  padding: 2px 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--admin-text-muted);
}

.docs-core-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 20px;
  margin-top: 1.75rem;
}
.docs-core-foot-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--admin-text-muted);
}
.docs-core-foot-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
}

/* ── left rail ──────────────────────────────────────────────────────────
   A hairline spine with a progress fill, so the reader's position in the
   document is always visible without reading a number. */

.docs-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding-left: 16px;
}
@media (max-width: 1023px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    display: none;
  }
}

.docs-rail {
  position: relative;
  padding-left: 12px;
}
.docs-rail-line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 1px;
  background: var(--admin-border);
}
.docs-rail-line-fill {
  position: absolute;
  top: 8px;
  left: 0;
  width: 1px;
  border-radius: 1px;
  background: linear-gradient(180deg, #60a5fa, #a78bfa);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
  transition: height 0.15s linear;
}

/* Sections are separated by hairlines, not cards. */
.docs-section {
  position: relative;
  scroll-margin-top: 96px;
  padding-top: clamp(2rem, 4.5vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.docs-section:first-child {
  padding-top: 0;
  border-top: 0;
}

/* Section navigation */
.docs-nav-item {
  position: relative;
  min-height: 36px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.docs-nav-item:hover,
.docs-nav-item:focus-visible {
  color: var(--admin-text);
}
.docs-nav-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.28);
}
.docs-nav-item.is-active {
  color: #bfdbfe;
}
/* The active marker sits on the rail spine itself, so "you are here" and
   "how far in you are" are the same line. */
.docs-nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 20%;
  bottom: 20%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #60a5fa, #a78bfa);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.55);
}

/* Completed-section marker: a tick replaces the number, tinted like the
   active spine so "done" reads as a lighter form of "here". */
.docs-nav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.docs-nav-num.is-done {
  color: #4ade80;
  opacity: 0.85;
}

/* Rail footer: a 2px progress track. scaleX (not width) keeps the transform
   on the compositor, so scrolling never triggers a layout on this element. */
.docs-rail-progress {
  min-width: 0;
}
.docs-rail-track {
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.docs-rail-fill {
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6 55%, #d946ef);
  transition: transform 0.12s linear;
}

/* ── section headings ───────────────────────────────────────────────────
   A numbered eyebrow, then the title in gradient ink. The rule under the
   eyebrow is the same accent as the rail spine, tying the two together. */

.docs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--admin-text-dim);
}
.docs-eyebrow-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #a78bfa;
}
.docs-eyebrow-rule {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.75), rgba(167, 139, 250, 0));
}

.docs-h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.022em;
}
.docs-h2-text {
  background: linear-gradient(180deg, #ffffff 20%, #cbd5e1 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.docs-subtitle {
  margin-top: 0.35rem;
  font-size: 13px;
  color: var(--admin-text-dim);
}

/* Body prose: a comfortable 72ch measure and an open leading. */
.docs-prose {
  max-width: 72ch;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--admin-text-muted);
}

/* A hairline panel for the inline pipeline strip. */
.docs-panel {
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: var(--admin-surface);
  padding: 15px 16px;
}

/* Inline pipeline: dialect -> IR -> provider, as mono chips. */
.docs-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.docs-pipe-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.2rem 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  line-height: 1;
}
.docs-pipe-arrow {
  color: var(--admin-text-dim);
  font-size: 11px;
}

/* ── callouts ───────────────────────────────────────────────────────────
   A left rule in the section accent with a wash fading to the right. */

.docs-callout {
  border-left: 2px solid rgba(139, 92, 246, 0.65);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0) 72%);
  padding: 13px 16px;
}
.docs-callout-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4b5fd;
}
.docs-callout-body {
  margin-top: 6px;
  max-width: 72ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--admin-text-muted);
}

/* ── auth chips + triad ───────────────────────────────────────────────── */

.docs-keychip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0 0.9rem;
  font-size: 12px;
  color: var(--admin-text-muted);
}
.docs-keychip-plain {
  color: var(--admin-text-dim);
}

.docs-triad {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: var(--admin-border);
}
@media (min-width: 640px) {
  .docs-triad {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.docs-triad-cell {
  min-width: 0;
  background: var(--admin-surface);
  padding: 15px 16px;
}

/* ── endpoint filter ──────────────────────────────────────────────────── */

.docs-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-surface);
  padding: 0 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.docs-filter:focus-within {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.docs-filter-icon {
  display: flex;
  color: var(--admin-text-dim);
}
.docs-filter-input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--admin-text);
  outline: none;
}
.docs-filter-input::placeholder {
  color: var(--admin-text-dim);
}
.docs-filter-input::-webkit-search-cancel-button {
  filter: invert(0.6);
}
.docs-filter-kbd {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--admin-text-dim);
}
.docs-filter-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--admin-text-muted);
}

.docs-empty {
  color: var(--admin-text-muted);
}

/* ── code blocks ────────────────────────────────────────────────────────
   Flat, with a left accent spine and a lit header rule. */

.docs-codeblock {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: #08090b;
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, 0.16);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.docs-codeblock:hover {
  border-color: rgba(96, 165, 250, 0.26);
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, 0.32);
}
.docs-codehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.015);
  padding: 4px 10px 4px 12px;
}
.docs-copybtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0 9px;
  font-size: 10px;
  font-weight: 500;
  color: var(--admin-text-dim);
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.docs-copybtn:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--admin-text);
}
.docs-copybtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.45);
}
.docs-codeblock pre {
  max-width: 100%;
  scrollbar-width: thin;
}

/* Code body: a line-number gutter beside the scrollable pre. The gutter is a
   flex sibling (not absolutely positioned) so the pre's own horizontal
   scrollbar never overlaps the numbers, and the gutter itself stays fixed
   while only the code scrolls. Tabular numerals keep the column aligned. */
.docs-codebody {
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.docs-codegutter {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 12px 8px 12px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.012);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.625;
  user-select: none;
  text-align: right;
  /* Line numbers are real content, not decoration β€” 0.18 alpha failed the 4.5:1
     contrast floor on the #08090b block background. */
  color: rgba(255, 255, 255, 0.42);
}
.docs-codebody > pre {
  flex: 1 1 auto;
  min-width: 0;
}
.docs-pre {
  overflow-x: auto;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.625;
  scrollbar-width: thin;
}
.docs-pre:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.45);
}

/* ── code tabs ────────────────────────────────────────────────────────── */

.docs-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.docs-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--admin-text-dim);
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.docs-tab:hover {
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.03);
}
.docs-tab.is-active {
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.12);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}
.docs-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.45);
}

/* Touch devices get a 44px target on every control. */
@media (hover: none) {
  .docs-copybtn,
  .docs-tab,
  .docs-pathcopy {
    min-height: 44px;
  }
}

/* Reduced motion: the beams are SMIL animations, which CSS cannot pause, so
   the travelling gradient stroke is hidden and only the static connecting
   path remains. The diagram still reads; it just stops moving. */
@media (prefers-reduced-motion: reduce) {
  .docs-core svg path:nth-of-type(2) {
    display: none;
  }
}

/* ── provider ecosystem ─────────────────────────────────────────────────
   Hairline-separated tiles (gap-px over a border fill), each carrying the hue
   of the wire family it belongs to. The legend above the grid states the same
   mapping in words, so the hue is decoration and the dot is never the only
   way to read a tile. */
.docs-provider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.docs-provider-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--admin-text-muted);
}
/* The header reuses the section-aside chip, but its text sits on the muted
   token β€” the default dim (#6b7280) fails 4.5:1 at this size. */
.docs-provider-head .docs-count-chip {
  color: var(--admin-text-muted);
}

.docs-provider-legend {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-border);
  list-style: none;
}
@media (min-width: 768px) {
  .docs-provider-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.docs-provider-legend-item {
  min-width: 0;
  background: var(--admin-surface);
  padding: 10px 12px 11px;
}
.docs-provider-legend-top {
  display: flex;
  align-items: center;
  gap: 7px;
}
.docs-provider-legend-label {
  min-width: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--admin-text);
}
/* Count chip: the one saturated element in the legend, so the eye pairs it
   with the dots in the grid below. */
.docs-provider-legend-count {
  margin-left: auto;
  border: 1px solid hsl(var(--f-hue) 80% 62% / 0.24);
  border-radius: 999px;
  background: hsl(var(--f-hue) 80% 62% / 0.1);
  padding: 1px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--f-hue) 55% 84%);
}
.docs-provider-legend-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--admin-text-muted);
}
.docs-provider-dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: hsl(var(--f-hue) 80% 62%);
  box-shadow: 0 0 7px hsl(var(--f-hue) 85% 62% / 0.6);
}

.docs-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-border);
}
@media (min-width: 640px) {
  .docs-provider-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.docs-provider-item {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 104px;
  background: var(--admin-surface);
  padding: 16px 10px 13px;
  transition: background-color 0.25s ease;
}
.docs-provider-item:hover {
  background: hsl(var(--f-hue) 22% 8%);
}
/* The mark is a self-contained badge tile (web/public/logos/) that brings its
   own rounded corners, background and brand colours. The slot therefore adds
   no frame of its own β€” a border here would read as a chip inside a chip. The
   family tint survives as the hover glow instead. */
.docs-provider-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}
.docs-provider-item:hover .docs-provider-logo {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px hsl(var(--f-hue) 85% 70% / 0.55));
}
.docs-provider-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--admin-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The provider type as it is written in `wiwi.yaml`. Dim (#6b7280) fails at
   this size, so the mono line uses the muted token. */
.docs-provider-id {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}
.docs-provider-id-text {
  overflow: hidden;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--admin-text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tile entrance: the same stagger the feature grid uses, compressed β€” this
   grid is read as a map, so thirteen tiles should not take a second to arrive. */
@media (prefers-reduced-motion: no-preference) {
  .docs-provider-grid.is-revealed .docs-provider-item {
    animation: docs-tile-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--f-i, 0) * 28ms);
  }
}

/* -- docs Β§08 Features ------------------------------------------------------
   Hairline tiles over one spectrum: each tile receives --f-hue and derives its
   icon chip, left spine, index, and pointer-tracked spotlight from it. The
   base state already carries a low-opacity tint, so the tiles read the same on
   touch devices where there is no hover to intensify them. Tiles marked
   span="2" break the matrix into a bento rhythm. */

.docs-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: dense;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: var(--admin-border);
}
@media (min-width: 640px) {
  .docs-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .docs-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.docs-feature {
  --f-ink: hsl(var(--f-hue) 85% 78%);
  --f-soft: hsl(var(--f-hue) 80% 62% / 0.1);
  --f-line: hsl(var(--f-hue) 80% 62% / 0.24);
  position: relative;
  isolation: isolate;
  min-width: 0;
  background: var(--admin-surface);
  padding: 17px 17px 16px;
  transition: background-color 0.25s ease;
}
.docs-feature[data-span="2"] {
  grid-column: span 2;
}
@media (max-width: 639px) {
  .docs-feature[data-span="2"] {
    grid-column: span 1;
  }
}
/* Pointer-tracked spotlight, shared by the feature and provider tiles.
   Negative z-index keeps it above the tile's own background (painted first
   inside this stacking context) but under the text. */
.docs-spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    200px circle at var(--mx, 50%) var(--my, 0%),
    hsl(var(--f-hue) 80% 62% / 0.14),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.docs-feature:hover .docs-spotlight,
.docs-provider-item:hover .docs-spotlight {
  opacity: 1;
}
/* Left spine, lit in the tile's hue */
.docs-feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--f-line), transparent);
  opacity: 0.6;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.docs-feature:hover::before {
  opacity: 1;
}
.docs-feature:hover {
  background: hsl(var(--f-hue) 22% 8%);
}

.docs-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.docs-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--f-line);
  border-radius: 10px;
  background: var(--f-soft);
  color: var(--f-ink);
  box-shadow: inset 0 1px 0 hsl(var(--f-hue) 90% 82% / 0.07);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.docs-feature-icon svg {
  width: 15px;
  height: 15px;
}
.docs-feature:hover .docs-feature-icon {
  transform: translateY(-1px);
  border-color: hsl(var(--f-hue) 85% 70% / 0.45);
  background: hsl(var(--f-hue) 80% 62% / 0.17);
  box-shadow:
    0 0 20px -6px hsl(var(--f-hue) 85% 62% / 0.55),
    inset 0 1px 0 hsl(var(--f-hue) 90% 85% / 0.12);
}
.docs-feature-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--admin-text-dim);
  opacity: 0.75;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.docs-feature:hover .docs-feature-index {
  color: var(--f-ink);
  opacity: 1;
}

.docs-feature-title {
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--admin-text);
  transition: color 0.25s ease;
}
.docs-feature:hover .docs-feature-title {
  color: hsl(var(--f-hue) 45% 92%);
}
.docs-feature-body {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--admin-text-muted);
}

/* Owning module: the tile doubles as a map of the codebase. */
.docs-feature-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--admin-text-dim);
}
.docs-feature-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--f-line);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.docs-feature:hover .docs-feature-dot {
  background: var(--f-ink);
  box-shadow: 0 0 7px hsl(var(--f-hue) 85% 70% / 0.7);
}

/* Section heading aside: a quiet count chip next to "Section 08". */
.docs-count-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  padding: 3px 10px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--admin-text-dim);
}
.docs-count-chip b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--admin-text-muted);
}
.docs-count-sep {
  width: 1px;
  height: 9px;
  background: var(--admin-border);
}

/* Tile entrance: staggered once the grid scrolls into view. Shared by the
   feature grid and the provider grid. */
@keyframes docs-tile-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .docs-feature-grid.is-revealed .docs-feature {
    animation: docs-tile-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--f-i, 0) * 45ms);
  }
}
/* No hover pointer: keep the tints and spine at full strength so the grid
   still reads as colored rather than grey. */
@media (hover: none) {
  .docs-feature::before {
    opacity: 1;
  }
  .docs-feature .docs-spotlight,
  .docs-provider-item .docs-spotlight {
    opacity: 0.5;
  }
}

/* Inline code chips in docs prose (not inside <pre>) */
.docs-content :not(pre) > code {
  padding: 0.12em 0.38em;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.85em;
  color: #bfdbfe;
}

/* Syntax highlighting tokens (dependency-free). Scoped to the two code
   surfaces that tokenize: the /docs reference block and the shared detail-page
   block. Token classes are the same in both β€” only the base text color differs. */
.docs-codeblock .tok-com,
.detail-code-text .tok-com {
  color: rgba(139, 148, 158, 0.8);
  font-style: italic;
}
.docs-codeblock .tok-str,
.detail-code-text .tok-str {
  color: #6ee7b7;
  opacity: 0.9;
}
.docs-codeblock .tok-kw,
.detail-code-text .tok-kw {
  color: #c4b5fd;
}
.docs-codeblock .tok-key,
.detail-code-text .tok-key {
  color: #7dd3fc;
}
.docs-codeblock .tok-var,
.detail-code-text .tok-var {
  color: #fcd34d;
}
.docs-codeblock .tok-flag,
.detail-code-text .tok-flag {
  color: #93c5fd;
  opacity: 0.85;
}
.docs-codeblock .tok-num,
.detail-code-text .tok-num {
  color: #fde68a;
}
.docs-codeblock .tok-bool,
.detail-code-text .tok-bool {
  color: #f9a8d4;
}
.docs-codeblock .tok-url,
.detail-code-text .tok-url {
  color: #67e8f9;
}

/* Next-section control: a quiet reading affordance under each heading. */
.docs-next {
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}
.docs-next:hover,
.docs-next:focus-visible {
  background: rgba(96, 165, 250, 0.06);
}

/* Endpoint path: the identifier readers copy, so it gets a surface of its own
   rather than sitting bare next to the method badge. */
.docs-endpoint-path {
  border-radius: 5px;
  transition: background-color 0.2s ease;
}
.group\/endpoint:hover .docs-endpoint-path {
  background: rgba(255, 255, 255, 0.03);
}

/* Method badge + endpoint chips */
.docs-method-badge {
  box-shadow: 0 0 16px -7px currentColor;
}
.docs-client-chip {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--admin-text-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.group\/endpoint:hover .docs-client-chip {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--admin-text-muted);
}
.docs-pathcopy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--admin-text-dim);
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.docs-pathcopy:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: #93c5fd;
}
.docs-pathcopy:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.45);
}
@media (min-width: 640px) {
  /* Client chips sit at the end of the row instead of drifting to the far
     right edge of a wide content column. */
  .docs-endpoint-clients {
    margin-left: 8px;
  }
}

/* Reading-progress hairline, pinned to the very top of the viewport */
.docs-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  height: 2px;
  pointer-events: none;
}
.docs-progress-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(var(--docs-progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6 55%, #d946ef);
  transition: transform 0.12s linear;
}

/* Heading deep-link anchors: hover/focus-revealed, always visible to touch */
.docs-anchor {
  opacity: 0;
  transform: translateX(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.docs-heading:hover .docs-anchor,
.docs-anchor:focus-visible {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .docs-anchor {
    opacity: 0.6;
    /* The # glyph alone is a ~17px target, well under the 44px touch floor.
       Grow the hit area to 44x44 and pull the vertical bleed back with a
       negative margin so the heading keeps its current height. */
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    margin-block: -10px;
    align-items: center;
    justify-content: center;
  }
}

/* Selection themed to the docs world */
.docs-content ::selection,
.docs-masthead ::selection {
  background: rgba(96, 165, 250, 0.28);
  color: #fff;
}

/* Back-to-top control */
.docs-backtop {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
  color: var(--admin-text-muted);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}
.docs-backtop.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.docs-backtop:hover {
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.35);
}
.docs-backtop:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

/* Hero action buttons stretch to the full measure on phones */
@media (max-width: 479px) {
  .docs-hero-actions > a,
  .docs-hero-actions > button,
  .docs-hero-actions > div {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* CTA: a borderless closing section, like the landing page's. */
.docs-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.docs-cta::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--admin-border) 20%,
    var(--admin-border) 80%,
    transparent
  );
}
.docs-cta-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--admin-text);
  text-wrap: balance;
}
.docs-cta-body {
  max-width: 44ch;
  margin: 1rem auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--admin-text-muted);
}
.docs-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}
@media (max-width: 479px) {
  .docs-cta-actions > a {
    width: 100%;
  }
}

/* ─── Login page: split-panel beam console ───────────────────────────────── */

/* Single-screen fit. The page must fill exactly one viewport with no
   scrolling, so every vertical measurement is a clamp() against viewport
   *height*: type, block spacing and node sizes shrink together on short
   screens and grow on tall ones. The showcase diagram is the only flexible
   child β€” it absorbs whatever the header block leaves over. */
.lg-root {
  --lg-bg: #000000;
  --lg-pad-y: clamp(14px, 2.6vh, 40px);
  --lg-title: clamp(21px, 3.2vh, 30px);
  --lg-body: clamp(11.5px, 1.5vh, 13.5px);
  --lg-block: clamp(12px, 2vh, 28px);
  --lg-gap: clamp(10px, 1.5vh, 16px);
  --lg-card-y: clamp(12px, 1.9vh, 20px);
  --lg-node: clamp(42px, 6vh, 54px);
  --lg-hub: clamp(58px, 8.4vh, 76px);
  --lg-control-h: clamp(38px, 5.2vh, 44px);
}

/* Hero-style lighting: long rotated radial "streaks" of near-white light,
   screened over pure black. These are the signature of the hero backdrop, so
   the login reads as part of the same family. Mix-blend-screen keeps them
   luminous without washing the black. */
.lg-streak-1 {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 1280px;
  transform: rotate(-45deg) translateY(-350px);
  border-radius: 9999px;
  background: radial-gradient(
    68.54% 68.72% at 55.02% 31.46%,
    hsla(0, 0%, 85%, 0.09) 0,
    hsla(0, 0%, 55%, 0.02) 50%,
    hsla(0, 0%, 45%, 0) 80%
  );
}
.lg-streak-2 {
  position: absolute;
  left: 0;
  top: 0;
  width: 224px;
  height: 1280px;
  border-radius: 9999px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    hsla(0, 0%, 85%, 0.07) 0,
    hsla(0, 0%, 45%, 0.02) 80%,
    transparent 100%
  );
  transform: rotate(-45deg) translate(5%, -50%);
}
.lg-streaks {
  mix-blend-screen: opacity(0.5);
}

/* Bottom-anchored vignette β€” identical to the hero's, but keyed to the login's
   pure black so the edges fall off to nothing. */
.lg-vignette {
  background: radial-gradient(125% 125% at 50% 100%, transparent 0%, var(--lg-bg) 75%);
}

/* In-card diagram (below lg) β€” only when the viewport is tall enough to hold
   the card *and* a 300px graph without scrolling. */
.lg-showcase-sm {
  display: block;
}
@media (min-width: 1024px) {
  .lg-showcase-sm {
    display: none;
  }
}
@media (max-height: 899px) {
  .lg-showcase-sm {
    display: none;
  }
}

/* Masked grid wash for the showcase panel */
.lg-beam-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 0%, transparent 80%);
}

/* Slow conic bloom rotating behind the hub node */
@keyframes lg-bloom {
  to {
    transform: rotate(360deg);
  }
}
.lg-bloom {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(59, 130, 246, 0.16) 55deg,
    rgba(168, 85, 247, 0.14) 110deg,
    transparent 175deg,
    transparent 360deg
  );
}
@media (prefers-reduced-motion: no-preference) {
  .lg-bloom {
    animation: lg-bloom 14s linear infinite;
  }
}

/* Hub breathing ring */
@keyframes lg-hub-ring {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.09);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lg-hub-ring {
    animation: lg-hub-ring 3.2s ease-in-out infinite;
  }
}

/* Provider node idle breathing */
@keyframes lg-node-breathe {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.6;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lg-node-breathe {
    animation: lg-node-breathe 4s ease-in-out infinite;
  }
}

/* Panel entrance */
@keyframes lg-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes lg-slide-left {
  from {
    opacity: 0;
    transform: translateX(-22px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lg-rise {
    animation: lg-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .lg-slide-left {
    animation: lg-slide-left 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

/* Vertical hairline divider between the two panels */
.lg-divider {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(59, 130, 246, 0.14) 22%,
    rgba(168, 85, 247, 0.12) 55%,
    transparent 100%
  );
}

/* Corner brackets on the showcase panel */
.lg-corner {
  position: absolute;
  height: 26px;
  width: 26px;
  border-color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.lg-corner-tl {
  top: 0;
  left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
}
.lg-corner-br {
  bottom: 0;
  right: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* Form panel: soft light that follows the cursor (--mx / --my fed from JS) */
.lg-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(59, 130, 246, 0.07),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lg-spotlight:hover::before {
  opacity: 1;
}

/* Segmented mode toggle: sliding indicator */
.lg-seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}
.lg-seg-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  /* one grid column: (100% - 2*3px padding - 2px gap) / 2 */
  width: calc(50% - 4px);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.08);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.16);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Input wrapper glow that lights up with the field */
.lg-field {
  position: relative;
  border-radius: var(--admin-radius-sm);
  transition: box-shadow 0.25s ease;
}
.lg-field:focus-within {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 0 24px -6px rgba(59, 130, 246, 0.35);
}

/* Vertical shrink path for short viewports (β‰ˆ ≀700px tall): the showcase hides
   entirely and the card is allowed to scroll *inside* itself with the submit
   button pinned, so the page itself still never scrolls. */
.lg-card-body {
  overflow-y: auto;
  max-height: 100%;
}
.lg-card-footer {
  flex-shrink: 0;
}

/* ─── Landing page: AnimatedGroup + MarqueeContainer keyframes ──────────── */

@media (prefers-reduced-motion: no-preference) {
  @keyframes wiwi-ag-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes wiwi-ag-slide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes wiwi-ag-scale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
  }
  @keyframes wiwi-ag-blur {
    from { opacity: 0; filter: blur(4px); }
    to { opacity: 1; filter: blur(0); }
  }
  @keyframes wiwi-ag-blur-slide {
    from { opacity: 0; filter: blur(4px); transform: translateY(20px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
  }
  @keyframes wiwi-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - var(--gap, 24px))); }
  }
}
.animate-marquee {
  animation: wiwi-marquee var(--duration, 40s) linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .animate-marquee { animation: none; }
}

/* ─── Hero entrance + scroll-reveal (from llmgateway-ref globals.css) ───── */

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .animate-hero-enter {
    animation: hero-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-enter-delay-1 { animation-delay: 0.15s; }
  .hero-enter-delay-2 { animation-delay: 0.3s; }
  .hero-enter-delay-3 { animation-delay: 0.45s; }
}

@media (prefers-reduced-motion: reduce) {
  .animate-hero-enter { animation: none; }
}

/* ─── Hero visual enhancements ───────────────────────────────────────────── */

/* Slow-drifting aurora orbs behind the hero */
@keyframes hero-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}
@keyframes hero-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(1.12); }
}
@keyframes hero-orb-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 35px) scale(1.1); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-orb-1 { animation: hero-orb-1 18s ease-in-out infinite; }
  .hero-orb-2 { animation: hero-orb-2 22s ease-in-out infinite; }
  .hero-orb-3 { animation: hero-orb-3 26s ease-in-out infinite; }
}

/* Gradient text shimmer on the headline accent */
@keyframes hero-gradient-pan {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero-gradient-text {
  background: linear-gradient(90deg, #22d3ee, #60a5fa, #a78bfa, #f472b6, #a78bfa, #60a5fa, #22d3ee);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-gradient-text {
    animation: hero-gradient-pan 6s linear infinite;
  }
}

/* Pulsing "live" dot for the hero badge */
@keyframes hero-live-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}
.hero-live-dot {
  position: relative;
  display: inline-flex;
  height: 7px;
  width: 7px;
}
.hero-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: currentColor;
}
.hero-live-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-live-dot::before {
    animation: hero-live-pulse 1.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  }
}

/* Subtle conic glow ring around the primary CTA */
@keyframes cta-ring-spin {
  to { transform: rotate(360deg); }
}
.hero-cta-ring {
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(59, 130, 246, 0.5) 60deg,
    rgba(168, 85, 247, 0.5) 120deg,
    transparent 180deg,
    transparent 360deg
  );
  opacity: 0.6;
  filter: blur(6px);
  z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-cta-ring { animation: cta-ring-spin 4s linear infinite; }
}

/* Animated grid pan for the hero backdrop */
@keyframes hero-grid-pan {
  0% { background-position: 0 0; }
  100% { background-position: 64px 64px; }
}
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-grid { animation: hero-grid-pan 24s linear infinite; }
}


@keyframes scroll-reveal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    @supports (animation-timeline: view()) {
      animation: scroll-reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
  }
}

/* ─── Shimmer button (from llmgateway-ref ShimmerButton) ────────────────── */

@keyframes shimmer-slide {
  to { transform: translate(calc(100cqw - 100%), 0); }
}

@keyframes spin-around {
  0% { transform: translateZ(0) rotate(0); }
  15%, 35% { transform: translateZ(0) rotate(90deg); }
  65%, 85% { transform: translateZ(0) rotate(270deg); }
  100% { transform: translateZ(0) rotate(360deg); }
}

.lg-shimmer-button {
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
}
.lg-shimmer-button .shimmer-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.lg-shimmer-button .shimmer {
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 15%,
    transparent 30%,
    transparent 50%,
    rgba(255, 255, 255, 0.4) 65%,
    transparent 80%
  );
  animation: spin-around 4s linear infinite;
}
.lg-shimmer-button .shimmer::before,
.lg-shimmer-button .shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 15%,
    transparent 30%,
    transparent 50%,
    rgba(255, 255, 255, 0.4) 65%,
    transparent 80%
  );
  animation: shimmer-slide 3s ease-in-out infinite alternate;
}
.lg-shimmer-button .shimmer::after {
  animation-direction: alternate-reverse;
}

@media (prefers-reduced-motion: reduce) {
  .lg-shimmer-button .shimmer,
  .lg-shimmer-button .shimmer::before,
  .lg-shimmer-button .shimmer::after {
    animation: none;
  }
}

/* ─── Accordion (from llmgateway-ref) ────────────────────────────────────── */

@keyframes accordion-down {
  from { height: 0; }
  to { height: var(--radix-accordion-content-height); }
}

@keyframes accordion-up {
  from { height: var(--radix-accordion-content-height); }
  to { height: 0; }
}

.animate-accordion-down {
  animation: accordion-down 0.2s ease-out;
}

.animate-accordion-up {
  animation: accordion-up 0.2s ease-out;
}

/* ─── Noise texture utility (from llmgateway-ref bg-noise) ───────────────── */

.bg-noise::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}

/* ─── Marquee reverse direction ─────────────────────────────────────────── */

@keyframes wiwi-marquee-reverse {
  from { transform: translateX(calc(-100% - var(--gap, 24px))); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .animate-marquee-reverse {
    animation: wiwi-marquee-reverse var(--duration, 40s) linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-marquee-reverse { animation: none; }
}

/* ─── Playground chat ───────────────────────────────────────────────────── */

/* Message enter animation */
@keyframes pg-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .pg-msg-enter { animation: pg-msg-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both; }
}

/* Suggestion card enter stagger */
@keyframes pg-sugg-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .pg-sugg-enter { animation: pg-sugg-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) both; }
}

/* Streaming caret blink */
@keyframes pg-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.pg-caret::after {
  content: "▍";
  margin-left: 1px;
  animation: pg-caret 1s step-end infinite;
  color: var(--admin-accent, #3b82f6);
}
@media (prefers-reduced-motion: reduce) {
  .pg-caret::after { content: none; }
}

/* Typing loader β€” three quiet, eased dots */
.pg-typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--admin-text-muted, #9ca3af);
}
@keyframes pg-typing-pulse {
  0%, 60%, 100% { transform: scale(0.9); opacity: 0.4; }
  30% { transform: scale(1.08); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .pg-typing-dot { animation: pg-typing-pulse 1.2s ease-in-out infinite; }
  .pg-typing-dot:nth-child(2) { animation-delay: 0.15s; }
  .pg-typing-dot:nth-child(3) { animation-delay: 0.3s; }
}

/* Composer auto-grow textarea β€” hide native resize, match surface.
   `field-sizing: content` does the growing on Chromium; the JS fallback in
   Playground.tsx covers Firefox/Safari where it is unsupported. */
.pg-textarea {
  resize: none;
  field-sizing: content;
  min-height: 24px;
  max-height: 200px;
}
/* JS fallback (applies everywhere; identical to field-sizing where both run):
   shrink first so the measured scrollHeight is the true content height, then
   grow up to max-height, at which point the element scrolls internally. */
.pg-textarea[data-autogrow] {
  height: 24px;
  overflow-y: auto;
}

/* Scroll-to-bottom fade */
.pg-scroll-fade {
  mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent 100%);
}

/* ── Playground sidebar ───────────────────────────────────────────────────── */

.pg-sidebar {
  width: 260px;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
  overflow: hidden;
}
.pg-sidebar[data-collapsed="true"] {
  width: 0;
  opacity: 0;
}

.pg-chat-item {
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.pg-chat-item:hover {
  background: rgba(255, 255, 255, 0.025);
}
.pg-chat-item[data-active="true"] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

@keyframes pg-sidebar-enter {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .pg-sidebar-enter { animation: pg-sidebar-enter 0.2s ease both; }
}

/* ── Playground: avatars & bubbles ────────────────────────────────────────── */

.pg-user-bubble {
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-700));
}
.pg-avatar-user {
  background: linear-gradient(135deg, var(--color-brand-400), var(--color-brand-600));
  box-shadow: 0 2px 10px rgba(116, 66, 237, 0.35);
}
.pg-avatar-assistant {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.pg-hero-badge {
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-700));
}
/* A slow, quiet halo behind the hero badge β€” reinforces the brand pool
   without competing with the prompt grid. Fully disabled under reduced
   motion. */
.pg-hero-badge::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 28px;
  background: radial-gradient(55% 55% at 50% 50%, rgba(124, 58, 237, 0.28), transparent 72%);
  z-index: -1;
  animation: pg-halo 3.6s ease-in-out infinite;
}
@keyframes pg-halo {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-hero-badge::before { animation: none; opacity: 0.7; }
}

/* Response stats enter */
@keyframes pg-stats-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .pg-stats-enter { animation: pg-stats-in 0.3s ease both; }
}

/* Keyboard hint chips */
.pg-kbd {
  display: inline-block;
  border: 1px solid var(--admin-border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--admin-surface-elevated);
  padding: 0 5px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  line-height: 16px;
  color: var(--admin-text-muted);
}

/* ── Playground: markdown ─────────────────────────────────────────────────── */

.pg-md {
  word-break: break-word;
}
.pg-md > *:first-child { margin-top: 0; }
.pg-md > *:last-child { margin-bottom: 0; }
.pg-md-p {
  margin: 0.55em 0;
  line-height: 1.65;
}
.pg-md-h {
  font-weight: 600;
  color: var(--admin-text);
  line-height: 1.35;
  margin: 1em 0 0.4em;
}
.pg-md-h1 { font-size: 17px; }
.pg-md-h2 { font-size: 15.5px; }
.pg-md-h3 { font-size: 14.5px; }
.pg-md-h4 { font-size: 14px; }
.pg-md-ul,
.pg-md-ol {
  margin: 0.5em 0;
  padding-left: 1.4em;
  line-height: 1.65;
}
.pg-md-ul { list-style: disc; }
.pg-md-ol { list-style: decimal; }
.pg-md-ul li::marker { color: var(--admin-text-dim); }
.pg-md-ol li::marker { color: var(--admin-text-dim); font-size: 0.85em; }
.pg-md-ul li,
.pg-md-ol li { margin: 0.2em 0; }
.pg-md-ul-nested,
.pg-md-ol-nested { margin: 0.15em 0; }
.pg-md-quote {
  margin: 0.6em 0;
  padding: 0.15em 0 0.15em 0.9em;
  border-left: 2px solid var(--color-brand-500);
  color: var(--admin-text-muted);
}
.pg-md-quote-p { margin: 0.2em 0; }
.pg-md-hr {
  border: none;
  border-top: 1px solid var(--admin-border);
  margin: 0.9em 0;
}
.pg-md-link {
  color: var(--color-brand-300);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(185, 168, 253, 0.4);
  transition: color 0.12s ease;
}
.pg-md-link:hover { color: var(--color-brand-200); }
.pg-md-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--admin-border);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  color: var(--color-brand-200);
}
.pg-md-caret {
  display: inline-block;
  margin-left: 1px;
}

/* Code blocks */
.pg-code {
  margin: 0.7em 0;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: #070709;
  overflow: hidden;
}
.pg-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-bottom: 1px solid var(--admin-border);
  background: rgba(255, 255, 255, 0.02);
}
.pg-code-lang {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--admin-text-dim);
}
.pg-code-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10.5px;
  color: var(--admin-text-dim);
  transition: color 0.12s ease, background-color 0.12s ease;
}
.pg-code-copy:hover {
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.05);
}
.pg-code-pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.6;
}
.pg-code-pre code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: #d4d4d8;
  white-space: pre;
}

/* Tables */
.pg-md-tablewrap {
  margin: 0.7em 0;
  overflow-x: auto;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
}
.pg-md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pg-md-table th {
  text-align: left;
  font-weight: 600;
  color: var(--admin-text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 12px;
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}
.pg-md-table td {
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--admin-text);
}
.pg-md-table tr:last-child td { border-bottom: none; }
.pg-md-table tbody tr {
  transition: background-color 0.1s ease;
}
.pg-md-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* ── Playground: visual polish ────────────────────────────────────────────── */

/* Hero headline keeps its emphasis in type weight and color, not a
   decorative text gradient. */
.pg-hero-title {
  color: var(--admin-text);
  text-wrap: balance;
}

/* Thin, quiet scrollbars inside the playground */
.pg-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.pg-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.pg-scroll::-webkit-scrollbar-track { background: transparent; }
.pg-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  border-radius: 8px;
  background-clip: padding-box;
}
.pg-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Active chat item: brand accent bar on the left edge */
.pg-chat-item { position: relative; }
.pg-chat-item[data-active="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--color-brand-400), var(--color-brand-600));
}

/* User bubble: inner top highlight + brand-tinted drop shadow. Owns the
   element's box-shadow entirely β€” the TSX must not also apply a Tailwind
   shadow utility or it will override this. */
.pg-user-bubble {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px -10px rgba(99, 51, 209, 0.5);
}

/* Composer: crisp focus state without a colored halo. (Base surfaces for
   .pg-composer live in the workbench-refinement block below; this block is
   the transition + focus treatment from the earlier polish pass.) */
.pg-composer {
  transition: border-color 0.15s ease, background-color 0.2s ease;
}
.pg-composer:focus-within {
  border-color: rgba(129, 140, 248, 0.42);
  background: linear-gradient(180deg, rgba(28, 28, 34, 0.98), rgba(17, 17, 21, 0.99));
  /* One hairline in the shared accent, outside the border so it never
     fights the elevated background. */
  outline: 1px solid rgba(129, 140, 248, 0.22);
  outline-offset: 2px;
}

/* Scroll-to-bottom button: gentle float-in */
@keyframes pg-float-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .pg-scroll-btn { animation: pg-float-in 0.2s ease both; }
}
.pg-scroll-btn { box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.55); }

/* ── Playground workbench refinement ──────────────────────────────────────── */

/* The workbench borrows the public site's beam language, but keeps the
   treatment quiet enough for a task surface. */
.pg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.pg-workbench-beams {
  top: 0;
  bottom: auto;
  height: 58%;
  opacity: 0.16;
  transform: none;
  transform-origin: center;
  mix-blend-mode: screen;
  filter: saturate(0.8);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.82) 54%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.82) 54%, transparent 100%);
}

.pg-topbar {
  background: rgba(5, 5, 5, 0.84);
}
.pg-brand {
  min-height: 44px;
}
.pg-brand-mark {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(124, 58, 237, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.pg-model-trigger {
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.pg-model-menu {
  box-shadow: 0 22px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.pg-rail {
  width: 52px;
  background: rgba(9, 9, 11, 0.92);
}
/* Tap-outside scrim for the mobile history overlay. */
.pg-scrim {
  animation: pg-scrim-in 0.18s ease both;
}
@keyframes pg-scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pg-icon-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.pg-sidebar {
  width: 272px;
  background: rgba(9, 9, 11, 0.88);
}
.pg-sidebar-header {
  min-height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}
.pg-new-chat {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.pg-chat-item {
  min-height: 56px;
}
.pg-chat-item:hover {
  background: rgba(255, 255, 255, 0.035);
}
.pg-chat-item[data-active="true"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.pg-chat-item[data-active="true"] .pg-chat-item-icon {
  color: var(--admin-text-muted);
  background: rgba(255, 255, 255, 0.06);
}
.pg-chat-item[data-active="true"]::before {
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.pg-body {
  min-width: 0;
}
.pg-arena {
  isolation: isolate;
  /* Two stacked washes: a faint top light from the beam layer, and a soft
     violet pool seated behind the composer so the message column does not sit
     on flat black. */
  background:
    radial-gradient(120% 60% at 50% 118%, rgba(99, 102, 241, 0.11), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 30%);
}
.pg-context-bar {
  position: relative;
  z-index: 1;
}
.pg-context-bar::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent);
}
/* Scroll-to-bottom fade β€” used as the message list's top mask: content
   dissolving under the context bar reads as "more above" without a hard
   clipping edge. The mask is paint-only (no extra element, no blend mode β€”
   deliberately cheap after the #518 compositing lesson). */
.pg-scroll-fade {
  mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent 100%);
}
.pg-message-scroll {
  position: relative;
  z-index: 1;
  /* Inverted fade at the top edge only; 28px is enough to soften the cut
     without dimming the first message's heading. */
  mask-image: linear-gradient(to bottom, transparent 0, #000 28px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px);
}
.pg-message-column {
  position: relative;
}
.pg-message {
  position: relative;
}
.pg-message-assistant {
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  padding-top: 18px;
}
.pg-message-assistant:first-child {
  border-top: 0;
  padding-top: 0;
}
.pg-message-heading {
  min-height: 18px;
}
.pg-message-role {
  letter-spacing: 0.12em;
}
.pg-response {
  min-width: 0;
}

/* Reasoning trace β€” a quiet, secondary surface above the answer. Collapsed by
   default once the answer exists; open while it is the only sign of progress. */
.pg-reasoning {
  border: 1px solid var(--admin-border);
  border-left: 2px solid color-mix(in srgb, var(--admin-accent, #3b82f6) 55%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--admin-surface-elevated) 65%, transparent);
  font-size: 12.5px;
}
.pg-reasoning[data-live="true"] {
  border-left-color: var(--admin-accent, #3b82f6);
}
.pg-reasoning-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  /* 44px minimum tap target (UI rule) without a visually heavy row. */
  min-height: 44px;
  padding: 0 10px;
  cursor: pointer;
  list-style: none;
  color: var(--admin-text-dim);
  user-select: none;
}
.pg-reasoning-summary::-webkit-details-marker { display: none; }
.pg-reasoning-summary:hover { color: var(--admin-text-muted); }
.pg-reasoning-summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--admin-accent, #3b82f6) 60%, transparent);
  border-radius: 10px;
}
.pg-reasoning-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pg-reasoning-body {
  max-height: min(38vh, 320px);
  overflow-y: auto;
  padding: 0 10px 10px;
}
.pg-reasoning-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--admin-text-muted);
}
.pg-msg-failed {
  line-height: 1.5;
}
.pg-message-actions {
  min-height: 28px;
}
.pg-user-bubble {
  background: linear-gradient(135deg, rgba(109, 76, 224, 0.92), rgba(79, 70, 229, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 28px -16px rgba(76, 29, 149, 0.85);
}
.pg-avatar-user {
  background: linear-gradient(145deg, #8b5cf6, #4f46e5);
  box-shadow: 0 4px 16px -8px rgba(99, 102, 241, 0.8);
}
.pg-avatar-assistant {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.15), rgba(30, 41, 59, 0.7));
}

.pg-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Live-region wrapper: visually inert, keeps role=status off the pill's own
   box so the compact (label-hidden) form doesn't double-announce geometry.
   pointer-events: none β€” the wrapper is never interactive, and the compact
   pill beneath the top bar's right cluster would otherwise hit-test over
   the sidebar drawer's collapse button. */
.pg-status-wrap {
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}
.pg-status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: currentColor;
}
.pg-status-ready {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.16);
  background: rgba(34, 197, 94, 0.07);
}
.pg-status-live {
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.2);
  background: rgba(99, 102, 241, 0.1);
}
.pg-status-live .pg-status-dot {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  animation: pg-status-pulse 1.6s ease-in-out infinite;
}
/* Loading / warning tones are kept for future states (e.g. reconnect);
   currently unused but part of the pill's visual vocabulary. */
.pg-status-loading {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.16);
  background: rgba(59, 130, 246, 0.07);
}
.pg-status-loading .pg-status-dot {
  animation: pg-status-pulse 1.2s ease-in-out infinite;
}
.pg-status-warning {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.18);
  background: rgba(245, 158, 11, 0.08);
}
.pg-status-compact {
  border-color: transparent;
  background: transparent;
  padding-inline: 4px;
}
/* Compact form below sm is dot-only (6px + padding = ~16px wide). The pill
   is decorative status chrome, but it still hit-tests over the sidebar's
   collapse button in the drawer (header z-30 over sidebar z-30, later
   paint wins), so take it out of pointer events on the narrow form β€” the
   live region text still reads to assistive tech. */
@media (max-width: 639px) {
  .pg-status-compact {
    pointer-events: none;
  }
}
.pg-status-compact .pg-status-label {
  display: none;
}
@media (min-width: 640px) {
  .pg-status-compact {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
  }
  .pg-status-compact .pg-status-label {
    display: inline;
  }
}
@keyframes pg-status-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-status-live .pg-status-dot,
  .pg-status-loading .pg-status-dot { animation: none; }
}

.pg-key-notice {
  color: #fbbf24;
}
.pg-dashboard-link {
  min-height: 44px;
}
.pg-dashboard-link:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.pg-metrics {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}
.pg-metrics-label {
  color: var(--admin-text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Each stat is its own tile so six numbers read as six facts instead of one
   undifferentiated run of monospace. */
.pg-metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.022);
  white-space: nowrap;
}
.pg-metric-tone-blue { color: #bfdbfe; border-color: rgba(96, 165, 250, 0.18); background: rgba(59, 130, 246, 0.07); }
.pg-metric-tone-violet { color: #ddd6fe; border-color: rgba(167, 139, 250, 0.18); background: rgba(139, 92, 246, 0.07); }
.pg-metric-tone-emerald { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.18); background: rgba(16, 185, 129, 0.07); }
.pg-metric-tone-neutral { color: var(--admin-text-muted); }
.pg-metric-estimated {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(245, 158, 11, 0.08);
}
.pg-metric-label {
  color: rgba(255, 255, 255, 0.45);
}
.pg-metrics-loading {
  color: var(--admin-text-muted);
  animation: pg-status-pulse 1.3s ease-in-out infinite;
}

.pg-composer-region {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.24), rgba(5, 5, 5, 0.96) 30%);
}
.pg-composer {
  background: linear-gradient(180deg, rgba(24, 24, 29, 0.96), rgba(15, 15, 19, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 16px 40px -24px rgba(0, 0, 0, 0.95);
  position: relative;
}
.pg-composer:focus-within {
  border-color: rgba(129, 140, 248, 0.42);
  background: linear-gradient(180deg, rgba(28, 28, 34, 0.98), rgba(17, 17, 21, 0.99));
}
.pg-send-button {
  background: linear-gradient(145deg, #8b5cf6, #4f46e5);
  box-shadow: 0 8px 22px -12px rgba(99, 102, 241, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pg-send-button:disabled {
  box-shadow: none;
}
.pg-stop-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.pg-composer-hints {
  min-height: 18px;
}

/* A tiny live marker beside the Assistant label on the turn that is still
   streaming β€” signals "this turn is still writing" without adding a second
   copy of the top bar's status pill. Reuses the app's pulse keyframes and
   goes static under reduced motion. */
.pg-live-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: var(--color-brand-400);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
@media (prefers-reduced-motion: no-preference) {
  .pg-live-dot { animation: pg-status-pulse 1.6s ease-in-out infinite; }
}

.pg-hero-shell {
  isolation: isolate;
}
.pg-model-card {
  border: 1px solid rgba(129, 140, 248, 0.16);
  background: rgba(99, 102, 241, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.pg-model-card-icon {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.pg-ready-pill {
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.14);
}
.pg-hero-tabs {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
/* The category row scrolls horizontally instead of clipping or wrapping at
   narrow widths, and keeps its own scrollbar out of the layout. */
.pg-hero-tabs-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.pg-hero-tabs-scroll::-webkit-scrollbar { display: none; }
.pg-hero-tabs-scroll > * { scroll-snap-align: center; }
.pg-suggestion-card {
  min-height: 58px;
}

@media (max-width: 767px) {
  /* On mobile the sidebar is a fixed overlay, so its width is capped against
     the viewport rather than the flex row, and it gets its own elevation. */
  .pg-sidebar {
    width: min(300px, calc(100vw - 56px));
  }
  .pg-context-bar {
    padding-top: 10px;
  }
  .pg-context-bar::after {
    margin-top: 10px;
  }
  .pg-workbench-beams {
    height: 48%;
    opacity: 0.1;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.72) 52%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.72) 52%, transparent 100%);
  }
  .pg-metrics {
    align-items: flex-start;
  }
  .pg-metrics-items {
    gap: 5px;
  }
  .pg-metric {
    padding: 2px 6px;
  }
  .pg-composer-region {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .pg-hero-title {
    font-size: 26px;
  }
  .pg-hero-shell {
    align-items: flex-start;
  }
  .pg-hero-shell .animate-hero-enter {
    margin-top: 4px;
  }
}

@media (max-height: 760px) and (min-width: 768px) {
  .pg-hero-shell {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-workbench-beams {
    display: none;
  }
}

/* ── Reliability page: failover diagram + uptime timeline ────────────────── */

/* Flowing packets along the request path: a dot travels the connector line. */
@keyframes rel-packet {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
/* Failed attempt: travels partway toward the down provider, then peters out. */
@keyframes rel-packet-fail {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  55% { offset-distance: 60%; opacity: 1; }
  100% { offset-distance: 78%; opacity: 0; }
}

/* Down-provider connector: a dashed line steadily "flaring" red. */
@keyframes rel-down-flare {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

/* Healthy-provider success ping: ring expands outward from the node. */
@keyframes rel-success-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Gateway hub breathing glow. */
@keyframes rel-hub-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

/* Hub shield sweep β€” a faint highlight rotating around the hub. */
@keyframes rel-shield-sweep {
  to { transform: rotate(360deg); }
}

/* Uptime timeline left-to-right reveal wipe. */
@keyframes rel-uptime-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Status bar segment blink for the "incident" ticks. */
@keyframes rel-incident-blink {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: no-preference) {
  .rel-down-flare { animation: rel-down-flare 1.4s ease-in-out infinite; }
  .rel-success-ring { animation: rel-success-ring 2.2s ease-out infinite; }
  .rel-hub-glow { animation: rel-hub-glow 3.4s ease-in-out infinite; }
  .rel-shield-sweep { animation: rel-shield-sweep 8s linear infinite; }
  .rel-uptime-reveal { animation: rel-uptime-reveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .rel-incident-blink { animation: rel-incident-blink 1.6s ease-in-out infinite; }
  .rel-packet-ok { animation: rel-packet 2.4s linear infinite; }
  .rel-packet-fail { animation: rel-packet-fail 2.4s linear infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .rel-down-flare,
  .rel-success-ring,
  .rel-hub-glow,
  .rel-shield-sweep,
  .rel-uptime-reveal,
  .rel-incident-blink,
  .rel-packet-ok,
  .rel-packet-fail {
    animation: none;
  }
}

/* ── How It Works (GraphSection) ───────────────────────────────────────── */
@keyframes wiwi-gateway-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(141, 127, 250, 0.45), 0 0 28px 4px rgba(141, 127, 250, 0.35); }
  50% { box-shadow: 0 0 0 14px rgba(141, 127, 250, 0), 0 0 44px 10px rgba(141, 127, 250, 0.55); }
}
@keyframes wiwi-orbit {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .wiwi-gateway-node { animation: wiwi-gateway-pulse 3.5s ease-in-out infinite; }
}

/* ── Full-bleed breakout ────────────────────────────────────────────────────
   Breaks a child out of a centered max-width + padding wrapper so it spans
   the full viewport width. Used by the Landing hero to go edge-to-edge. */
.full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ─── Models: the routing ledger ───────────────────────────────────────────
   The Models page is a switchboard, not a gallery. A model group is a signal
   source; its deployments are where that signal is split. So the page is one
   continuous ruled table β€” group header rows, indented deployment rows
   beneath β€” rather than a stack of identical rounded cards. Rules carry the
   hierarchy (a rule means "a new group starts here"), and the only rounded
   thing on the page is the one control that needs it.

   Naming: `wl-` = wiwi ledger. */

.wl-shell {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  overflow: hidden;
}

/* Column header. Uppercase micro-labels are the house chrome, but they
   belong to the columns here β€” not scattered above every value the way the
   card version put them. Metric columns opt out: "P95" shouted is a typo
   wearing a hat, not a label. */
.wl-head th {
  padding: 10px 16px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--admin-text-dim);
  text-align: left;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.012);
  border-bottom: 1px solid var(--admin-border);
}
.wl-head th.wl-plain {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 10.5px;
}
/* The header rule sets `text-align: left` on every column, and a class
   selector like `.text-right` cannot out-specify it β€” so a right-aligned
   header has to be re-asserted here, or the label drifts away from the
   numbers it names. */
.wl-head th.wl-right {
  text-align: right;
}

/* A group header: the source of the signal. Set apart by weight and by the
   rule above it, not by a card, a shadow, or a gradient. */
.wl-group {
  border-top: 1px solid var(--admin-border);
}
.wl-group:first-child {
  border-top: 0;
}
.wl-group td {
  padding: 13px 16px;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.022);
}

/* The group's name is the subject of the page: the one place a large,
   confident face is set in the sans, everything else recedes. */
.wl-group-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--admin-text);
  line-height: 1.2;
}

/* A deployment row: an indented child of the group above it. */
.wl-dep td {
  padding: 9px 16px;
  vertical-align: middle;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
}
.wl-dep:hover td {
  background: rgba(255, 255, 255, 0.016);
}

/* Indentation replaces a nested card: the tree structure is drawn by
   position and a hairline, not by another box. */
.wl-indent {
  border-left: 1px solid var(--admin-border);
  margin-left: 3px;
  padding-left: 14px;
}

/* The split bar: where this group's traffic actually goes. This is the
   subject of the page, so it is drawn as a real bar with a measured scale
   rather than as a decorative strip. */
.wl-split {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}
.wl-split > span {
  display: block;
  height: 100%;
  transition: width 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Provider identity: the one place colour is spent, and it is spent only
   here. A provider keeps its hue everywhere it appears. */
.wl-hue {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}

/* Weight editor: the only rounded control on the page, because it is the
   only one you touch. */
.wl-weight {
  width: 4.5rem;
}

/* Status text, not a status pill. A pill per row is a wall of chips; a word
   in the state colour reads faster and costs no chrome. */
.wl-state {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Meta under a group name: aliases and counts, in the sans at low
   contrast. Never a middot-joined string of unrelated facts. */
.wl-meta {
  font-size: 11.5px;
  color: var(--admin-text-dim);
  line-height: 1.5;
}

/* Numeric columns share one right edge. */
.wl-num {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

/* Filter rail: a row of quiet text choices, not a segmented control with
   filled pills. The active one is marked by an underline, which is a
   typographic decision, not a chip. The 44px min-height keeps the targets
   tappable β€” the underline is the active marker, not the hit area. */
.wl-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 2px 9px;
  color: var(--admin-text-dim);
  font-size: 12.5px;
  transition: color 0.15s ease;
}
.wl-filter:hover {
  color: var(--admin-text-muted);
}
.wl-filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: transparent;
  transition: background 0.15s ease;
}
.wl-filter[aria-pressed="true"] {
  color: var(--admin-text);
}
.wl-filter[aria-pressed="true"]::after {
  background: var(--admin-accent);
}

/* The page's one moment of motion: the split bars settle when the routing
   changes. Reduced motion turns the transition off, so the bar still lands
   on the right width β€” it just arrives without sliding. */
@media (prefers-reduced-motion: reduce) {
  .wl-split > span {
    transition: none;
  }
}

/* The inline metric copy, used only below md where the table's own p95 /
   in-flight columns are dropped. */
.wl-m-inline {
  display: none;
}

/* Below md the ledger stops being a table. Five columns cannot fit a
   phone, and a table that scrolls sideways hides the data the operator
   came for. So below md the p95 / in-flight columns are dropped and
   their values ride inline with the route, and the weight editor moves
   to the end of the route line.

   The weight editor is the ONE editor in the page, not a second copy
   rendered for the narrow layout: two editors for one value meant two
   independent debounce timers, and the server refetch (every 10s) fed
   each of them a different server value, so the two fought and the
   weight flip-flopped between what was typed and what was stored. */
@media (max-width: 767px) {
  .wl-table thead {
    display: none;
  }
  .wl-table,
  .wl-table tbody {
    display: block;
    width: 100%;
  }
  .wl-table tr {
    display: block;
  }
  .wl-table td {
    display: block;
    min-width: 0;
  }
  /* The p95 / in-flight cells are replaced by the inline copy in the
     route cell, so the table's own cells are not rendered. */
  .wl-dep td.wl-metric {
    display: none;
  }
  .wl-m-inline {
    display: inline-flex;
    gap: 12px;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--admin-text-dim);
  }
  /* The route and the weight editor share line one. The editor is
     positioned against the ROW (not the route cell): the route cell is
     `display:block` and its own box would be only as tall as its text, so
     anchoring to it put the editor at the top of the whole table. */
  .wl-dep {
    position: relative;
  }
  .wl-dep td.wl-ident {
    padding-right: 7rem;
  }
  .wl-dep td.wl-weight {
    position: absolute;
    right: 16px;
    top: 9px;
    width: auto;
    padding-left: 0;
    text-align: right;
  }
  /* The group band is a block too, so its split bar gets the full width. */
  .wl-group td {
    display: block;
  }
}

/* ─── Public model catalog (/models) ───────────────────────────────────────
   The catalog is an index, not a gallery. A model group is one ruled row and
   its routes read left-to-right on that same row, so eighty-one groups are
   scanned vertically instead of paged through eighty-one cards. The console's
   Models page is the operator's ledger of the same structure (weights, health,
   split); this is the reader's copy, so the two share a hairline grid and
   nothing else β€” no editor, no bar, no state.

   Colour is spent in exactly one place: the provider dot and its label.

   Naming: `mc-` = models catalog. */

.mc-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--admin-bg);
}

.mc-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--admin-text);
  text-wrap: balance;
}

/* The size of the catalog, stated once, as figures rather than a sentence. */
.mc-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
}
.mc-figure {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 26px;
  border-left: 1px solid var(--admin-border);
}
.mc-figure:first-child {
  padding-left: 0;
  border-left: 0;
}
/* A wrapped divider column leaves a stray rule at the start of the second
   line, so on a phone the figures become a 2Γ—2 grid with no rules at all. */
@media (max-width: 639px) {
  .mc-figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }
  .mc-figure {
    padding-left: 0;
    border-left: 0;
  }
}
/* From lg the figures sit to the right of the title, on their own side of a
   rule: the masthead reads as a heading and its measurement, not a heading
   followed by a stat bar. */
@media (min-width: 1024px) {
  .mc-figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    gap: 18px 34px;
    justify-content: end;
    padding-left: 34px;
    border-left: 1px solid var(--admin-border);
  }
  .mc-figures .mc-figure {
    padding-left: 0;
    border-left: 0;
  }
}
.mc-figure-label {
  margin: 0;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--admin-text-dim);
}
.mc-figure-num {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--admin-text);
}

/* Tool row. From sm up it sticks under the floating navbar and blurs what
   passes beneath it, so the search and the filters stay reachable across a
   long ledger. On a phone it scrolls away instead: two stacked control rows
   pinned under a 66px navbar would eat a fifth of the viewport. */
.mc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--admin-border);
}
@media (min-width: 640px) {
  .mc-toolbar {
    position: sticky;
    top: 72px;
    z-index: 20;
    background: rgba(5, 5, 5, 0.84);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

/* Filter trigger: a field, not a chip β€” it opens a panel, so it is shaped
   like the control that owns the panel below it. */
.mc-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  padding: 0 11px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  color: var(--admin-text-muted);
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.mc-filter-btn:hover {
  border-color: var(--admin-border-hover);
  color: var(--admin-text);
}
.mc-filter-btn[aria-expanded="true"] {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(59, 130, 246, 0.08);
  color: var(--admin-text);
}
.mc-filter-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45);
}
.mc-filter-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-panel {
  flex: 1 1 100%;
  margin-bottom: 4px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-surface);
  padding: 12px;
}
.mc-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.mc-panel-note {
  font-size: 11px;
  color: var(--admin-text-dim);
}
.mc-reset {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 11.5px;
  color: var(--admin-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--admin-border-hover);
}
.mc-reset:hover {
  color: var(--admin-text);
}
.mc-reset:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45);
  border-radius: 6px;
}

.mc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* 37 accounts wrap into more than a phone viewport. The panel scrolls instead
   of swallowing the ledger; every chip is still reachable by Tab, which
   scrolls the focused chip into view. */
@media (max-width: 639px) {
  .mc-chips {
    max-height: 40vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
  }
}
/* 36px reads as a tag on a mouse-driven screen and still clears the 44px
   floor under a finger. */
.mc-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--admin-text-muted);
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.mc-chip:hover {
  border-color: var(--admin-border-hover);
  color: var(--admin-text);
}
.mc-chip[aria-pressed="true"] {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
}
.mc-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45);
}
.mc-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (pointer: coarse) {
  .mc-chip {
    min-height: 44px;
  }
}

/* Sort: a field, like the filter beside it β€” one control that names the order
   it is in, so the toolbar reads as three tools rather than a segmented
   widget with a floating label. */
.mc-sort {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  color: var(--admin-text-muted);
  transition: border-color 0.16s ease, color 0.16s ease;
}
.mc-sort:hover {
  border-color: var(--admin-border-hover);
  color: var(--admin-text);
}
.mc-sort:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.45);
}

.mc-count {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--admin-text-dim);
}

/* ── the ledger ─────────────────────────────────────────────────────────── */

.mc-ledger {
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  overflow: hidden;
}

/* Column header. Uppercase micro-labels are the house chrome, and here they
   name the two columns instead of decorating every value. */
.mc-ledger-head {
  display: none;
}
@media (min-width: 768px) {
  .mc-ledger-head {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
    padding: 9px 18px;
    border-bottom: 1px solid var(--admin-border);
    background: rgba(255, 255, 255, 0.012);
  }
  .mc-ledger-head span {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--admin-text-dim);
  }
}

.mc-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 13px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  transition: background-color 0.18s ease;
}
/* The row's provider, as a spine: colour marks the row you are on without
   tinting the text of eighty-one rows. */
.mc-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: hsl(var(--p-hue, 217) 80% 62% / 0);
  transition: background-color 0.18s ease;
}
.mc-row:hover::before,
.mc-row:focus-within::before {
  background: hsl(var(--p-hue, 217) 80% 62% / 0.55);
}
.mc-row:first-child {
  border-top: 0;
}
.mc-row:hover,
.mc-row:focus-within {
  background: rgba(255, 255, 255, 0.018);
}
@media (min-width: 768px) {
  .mc-row {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 18px;
    padding: 11px 18px;
  }
}

/* The group name is the id the caller sends, so it is set in the mono face β€”
   the one place the page raises its voice. */
.mc-idcell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mc-name {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--admin-text);
  overflow-wrap: anywhere;
}
.mc-alias {
  flex: none;
  border: 1px solid var(--admin-border);
  border-radius: 5px;
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--admin-text-muted);
  white-space: nowrap;
}
.mc-copy {
  margin-left: auto;
}
/* On a phone the copy button is pinned to the row's top-right instead of
   sharing the name's line: a long group id would otherwise either push the
   button onto a second line or squeeze the name into a narrow column. */
@media (max-width: 767px) {
  .mc-idcell {
    padding-right: 46px;
  }
  .mc-row .mc-copy {
    position: absolute;
    top: 8px;
    right: 10px;
    margin-left: 0;
  }
}

/* Routes: provider account + the upstream id it maps to. Colour appears only
   in the dot and in the account name that dot labels. */
.mc-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  min-width: 0;
}
.mc-route {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}
.mc-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: hsl(var(--p-hue, 217) 80% 62%);
  box-shadow: 0 0 7px hsl(var(--p-hue, 217) 85% 62% / 0.55);
}
.mc-prov {
  flex: none;
  max-width: 9rem;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: hsl(var(--p-hue, 217) 62% 82%);
}
.mc-mid {
  min-width: 0;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--admin-text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* On a phone the id wraps instead of truncating: a `title` tooltip is no use
   to a finger, and the upstream id is the fact the reader came for. */
@media (max-width: 767px) {
  .mc-mid {
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

/* ── layout switch + card view ────────────────────────────────────────────
   Two readings of the same catalog: the ledger scans a long list, the cards
   let a group be looked at on its own. Same data, same filters, same sort. */

.mc-view {
  display: inline-flex;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.mc-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 44px;
  color: var(--admin-text-dim);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.mc-view-btn + .mc-view-btn {
  border-left: 1px solid var(--admin-border);
}
.mc-view-btn:hover {
  color: var(--admin-text);
}
.mc-view-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.055);
  color: var(--admin-text);
}
.mc-view-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Separate boxes on a gap, not a hairline matrix: a matrix leaves the empty
   cells of a partial last row painted in the gap colour. */
.mc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .mc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .mc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mc-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  padding: 8px 10px 12px 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
/* The card's own provider hue, as a wash from its top edge β€” the one effect
   on the page, and it only exists while the card is hovered or focused. The
   gradient is declared in that state rather than always-on at opacity 0, so
   automated contrast checks can still measure the resting card. */
.mc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
}
.mc-card:hover::after,
.mc-card:focus-within::after {
  background: radial-gradient(
    130% 90% at 100% 0%,
    hsl(var(--p-hue, 217) 85% 60% / 0.09),
    transparent 62%
  );
  opacity: 1;
}
.mc-card:hover,
.mc-card:focus-within {
  border-color: hsl(var(--p-hue, 217) 80% 62% / 0.32);
  background: rgba(255, 255, 255, 0.014);
}

/* Provider badges: the brand tile from web/public/logos/, or a letter tile in
   the account's hue when the type has no badge. */
.mc-marks {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.mc-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  overflow: hidden;
  border-radius: 7px;
}
.mc-mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mc-mark-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid hsl(var(--p-hue, 217) 80% 62% / 0.3);
  border-radius: 7px;
  background: hsl(var(--p-hue, 217) 80% 62% / 0.14);
  font-size: 11px;
  font-weight: 600;
  color: hsl(var(--p-hue, 217) 70% 84%);
}
.mc-mark-more {
  flex: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: var(--admin-text-dim);
}
.mc-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.mc-card-name {
  min-width: 0;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--admin-text);
  overflow-wrap: anywhere;
}
.mc-card-aliases {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
/* The routes sit at the foot of the card, so a short card in a tall row does
   not open a hole in the middle of it. */
.mc-card-routes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: auto 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  list-style: none;
}
.mc-card-route {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

/* ── Touch number stepper (unlayered on purpose) ─────────────────────────────
   On a touch screen the 26px vertical column splits into two ~17px buttons,
   far under the 44px floor, and stacking two 44px buttons inside a 34px-tall
   field would clip them (the wrapper is overflow:hidden). The field therefore
   becomes a row: the input, then an 88px stepper laid out horizontally.

   This must stay OUTSIDE `@layer components`. A caller's `px-*` utility lives
   in `@layer utilities` and beats every components-layer rule regardless of
   specificity, so the padding that reserved room for the stepper was dropped
   and the 88px stepper painted over the whole 72px weight field β€” the field
   could not be tapped to type at all (AUDIT #377). Making the stepper a
   sibling removes the need to reserve padding, so no utility can undo it. */
@media (hover: none), (pointer: coarse) {
  .admin-number-field {
    display: flex;
    align-items: stretch;
    gap: 6px;
  }
  .admin-number-field .admin-input {
    min-height: 44px;
    /* Let the input shrink beside the stepper instead of overflowing. */
    min-width: 0;
  }
  .admin-number-stepper {
    position: static;
    width: 88px;
    flex: none;
    flex-direction: row;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-sm);
  }
  .admin-number-stepper button {
    flex: 1;
    min-height: 44px;
  }
  .admin-number-stepper button + button {
    border-top: 0;
    border-left: 1px solid var(--admin-border);
  }
  /* The suffix label is positioned against the field, whose right edge is now
     the stepper's: shift it back over the input's own edge. */
  .admin-number-field > span.pointer-events-none {
    right: calc(94px + 8px);
  }
  /* The weight editor is the one field whose own width (72px) leaves no room
     to type once the stepper is a sibling. */
  .wl-weight {
    width: 5.5rem;
  }
  /* The shared control classes land at ~36px and ~38px, under the binding
     44px touch floor (AUDIT #486). Raised here rather than in the layer so a
     caller's height utility cannot shrink them back on a phone. */
  .admin-btn,
  .admin-input {
    min-height: 44px;
  }
}