arcnix 0.3.4

A friendly desktop workspace for managing servers over SSH
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
:root{--font-small:12px;--font-label:13px;--font-body:14px;--font-code:13px;--font-section:16px;--font-title:20px;color-scheme:dark;--bg:#11151c;--surface:#171c25;--raised:#1e2530;--input:#121820;--line:#2b3441;--file-row-line:#242c37;--line-hover:#435165;--text:#dde4ed;--muted:#8796aa;--faint:#5c6b7e;--accent:#649cff;--accent-bg:#213653;--danger:#f09494;font-family:'Segoe UI','Microsoft YaHei',sans-serif;color:var(--text);background:var(--bg);font-size:var(--font-body);line-height:1.5}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}button,input{font:inherit}button{appearance:none;color:inherit!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:5px!important;padding:0;cursor:pointer;min-width:0;font-size:var(--font-body)!important}button:disabled{opacity:.35;cursor:default}button:focus-visible{outline:1px solid var(--accent);outline-offset:-1px}input:focus,input:focus-visible{outline:none;box-shadow:none}input{background:var(--input);border:1px solid var(--line);border-radius:5px;color:var(--text);padding:8px 10px;min-width:0;width:100%;height:35px}input:focus{border-color:var(--accent)}.hidden{display:none!important}
.app,.app-shell{height:100vh;display:flex;flex-direction:column;min-height:0}.topbar{height:60px;min-height:60px;display:flex;align-items:center;padding:0 20px;gap:16px;border-bottom:1px solid var(--line);background:var(--surface)}.brand-area{width:232px;flex-shrink:0;display:flex;align-items:baseline;gap:12px}.brand{color:#f0f4fa;font-size:24px;font-weight:700;letter-spacing:-.8px}.brand-caption{font-size:var(--font-small);color:var(--muted)}.active-host{flex:1;font-size:var(--font-label);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.connection{color:var(--muted);font-size:var(--font-small);white-space:nowrap}.connection.online{color:#72caaa}.body{flex:1;display:flex;min-height:0;overflow:hidden}
.button{min-height:32px!important;padding:6px 12px!important;background:var(--raised)!important;border:1px solid var(--line)!important;white-space:nowrap;line-height:1.4!important;font-weight:500!important}.button:hover:not(:disabled){background:var(--button-hover,#273242)!important;border-color:var(--line-hover)!important}.button.primary{background:#477ed3!important;color:#fff!important;border-color:#548be1!important}.button.primary:hover:not(:disabled){background:#538ce3!important}.button.quiet,.quiet-button{background:transparent!important;border-color:transparent!important;color:var(--muted)!important}.button.quiet:hover,.quiet-button:hover{background:var(--raised)!important;color:var(--text)!important}.compact{min-height:28px!important;font-size:var(--font-small)!important;padding:4px 8px!important}.icon-button,.host-more,.group-more{min-width:28px!important;height:28px!important;padding:4px 7px!important;color:var(--muted)!important;line-height:1!important}.icon-button:hover,.host-more:hover,.group-more:hover{background:#2a3443!important;color:var(--text)!important}.danger{color:var(--danger)!important}.button.danger{background:#43282d!important;border-color:#6a3a43!important}
.sidebar{width:260px;flex-shrink:0;display:flex;flex-direction:column;gap:16px;padding:20px 12px 12px;border-right:1px solid var(--line);background:#151a22;overflow-y:auto}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;padding:0 4px;gap:8px}.sidebar-title{font-size:var(--font-section);font-weight:600}.sidebar>.field{padding:0 4px;flex:none}.sidebar .field-label{font-size:var(--font-small)}.group-list,.server-list{display:flex;flex-direction:column;gap:3px}.group-list{padding-bottom:12px;border-bottom:1px solid var(--line)}.group-row,.host-row{position:relative;display:flex;align-items:center;border-radius:6px;min-height:36px}.group-button{flex:1;text-align:left!important;padding:8px 10px!important;color:var(--muted)!important;min-height:32px!important;background:transparent!important}.group-button:hover,.group-row:hover,.host-row:hover{background:var(--raised)!important}.group-button.active{color:var(--text)!important;background:#202a37!important}.host-row{min-height:58px;padding-right:5px}.host-row.selected{background:var(--accent-bg)!important}.host-select{flex:1;text-align:left!important;padding:9px 10px!important;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:54px!important;overflow:hidden}.host-name{font-size:var(--font-label);font-weight:550;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.host-address{font-size:var(--font-small);color:var(--muted);width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.host-more,.group-more{opacity:0;pointer-events:auto;flex-shrink:0;transition:opacity 100ms ease;font-size:20px!important}.host-row:hover .host-more,.host-row:focus-within .host-more,.host-row.menu-open .host-more,.group-row:hover .group-more,.group-row:focus-within .group-more,.group-row.menu-open .group-more{opacity:1;pointer-events:auto}.host-row.menu-open,.group-row.menu-open{z-index:61}.context-popover,.pane-menu{position:absolute;right:4px;top:calc(100% + 3px);min-width:156px;padding:5px;background:#242d3b;border:1px solid #3b485a;border-radius:7px;box-shadow:0 10px 30px #0007;z-index:60;display:flex;flex-direction:column;gap:2px}.menu-item{display:block;text-align:left!important;min-height:33px!important;padding:8px 10px!important;border-radius:4px!important;white-space:nowrap;width:100%}.menu-item:hover:not(:disabled){background:#35445a!important}.menu-dismiss{position:fixed;inset:0;z-index:30;font-size:0!important;color:transparent!important;border-radius:0!important}.sidebar-empty{padding:20px 10px;display:flex;flex-direction:column;gap:10px;color:var(--muted);font-size:var(--font-label);line-height:1.7}.sidebar-footer{margin-top:auto;border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;align-items:stretch;gap:4px}.sidebar-footer .button{text-align:left!important}.sidebar-foot{padding:8px 10px 0;font-size:var(--font-small);color:var(--faint)}
.workspace{flex:1;min-width:0;min-height:0;padding:18px;display:flex;flex-direction:column;gap:14px;overflow:hidden}.notice{display:flex;align-items:center;gap:12px;background:#342c21;border:1px solid #655337;border-radius:6px;padding:7px 10px;flex-shrink:0}.notice-text{flex:1;color:#dbc6a0;font-size:var(--font-small);max-height:48px;overflow:auto;white-space:pre-wrap}.panes{flex:1;display:flex;gap:14px;min-height:220px;min-width:0}.file-pane{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;border:1px solid var(--line);background:var(--surface);border-radius:7px}.pane-heading{display:flex;align-items:center;gap:10px;padding:12px;min-height:54px;flex-shrink:0}.pane-title{font-size:var(--font-body);font-weight:600}.pane-summary{color:var(--muted);font-size:var(--font-small);flex:1}.pane-heading .button{font-size:var(--font-small)!important}.pathbar{display:flex;align-items:center;gap:5px;padding:0 10px 10px;flex-shrink:0}.path-input{flex:1;height:31px;font:var(--font-code) 'Cascadia Code',Consolas,monospace}.pathbar .button{font-size:var(--font-small)!important;padding:5px 7px!important;min-height:29px!important}.pane-tools{display:flex;align-items:center;padding:0 10px 8px;gap:8px;flex-shrink:0}.pane-tools .button{font-size:var(--font-small)!important;min-height:25px!important;padding:3px 7px!important;background:transparent!important;border-color:transparent!important;color:var(--muted)!important}.pane-tools .button:hover{background:var(--raised)!important}.filter-row{padding:0 10px 8px;display:flex;gap:6px;align-items:center;flex-shrink:0}.filter-input{flex:1;height:29px;font-size:var(--font-small)}.file-header{display:flex;align-items:center;gap:8px;background:#131922;padding:0 10px;border-block:1px solid var(--line);flex-shrink:0;height:32px}.file-header button{text-align:left!important;color:var(--muted)!important;font-size:var(--font-small)!important;height:30px!important;padding:0 4px!important}.column-name{flex:1}.column-size,.file-size{width:68px;text-align:right!important;flex-shrink:0}.column-modified,.file-modified{width:78px;text-align:right!important;flex-shrink:0}.file-list{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column}.file-row{min-height:35px;flex-shrink:0;display:flex;align-items:center;gap:8px;padding:0 10px;border-bottom:1px solid var(--file-row-line)}.file-row:hover{background:#1f2a39}.file-row.row-selected{background:var(--accent-bg)}.selection-toggle{width:24px!important;flex-shrink:0;white-space:nowrap!important;text-align:center!important;padding:6px 0!important;height:30px!important;color:var(--muted)!important}.file-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;text-align:left!important;padding:7px 0!important;font-size:var(--font-label)!important;min-height:32px!important}.file-size,.file-modified{font-size:var(--font-small);color:var(--muted);overflow:hidden;white-space:nowrap}.pane-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;min-height:34px;border-top:1px solid var(--line);font-size:var(--font-small);color:var(--muted);flex-shrink:0}.pane-menu-anchor{position:relative}.pane-menu{top:auto;bottom:calc(100% + 4px);right:0}.file-empty{margin:auto;padding:32px 18px;color:var(--muted);text-align:center;font-size:var(--font-label);line-height:1.8}
.activity-dock{height:206px;min-height:44px;flex-shrink:0;border:1px solid var(--line);border-radius:7px;display:flex;flex-direction:column;background:var(--surface);overflow:hidden}.activity-dock.collapsed{height:44px}.dock-header{height:42px;min-height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;border-bottom:1px solid var(--line)}.dock-tabs{display:flex;gap:18px;height:100%;align-items:stretch}.dock-tab{border-radius:0!important;padding:0 2px!important;font-size:var(--font-label)!important;color:var(--muted)!important;border-bottom:2px solid transparent!important}.dock-tab.active{color:var(--text)!important;border-bottom-color:var(--accent)!important}.dock-content{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.queue-toolbar{padding:6px 10px;display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);flex-shrink:0}.queue-toolbar .button,.queue-toolbar .small-button{min-height:25px!important;font-size:var(--font-small)!important;padding:3px 8px!important}.queue-filters{display:flex;gap:6px;margin-right:auto}.queue-filters button{color:var(--muted)!important;padding:4px 8px!important}.queue-filters .active{color:var(--text)!important;background:var(--raised)!important}.queue-list{flex:1;overflow-y:auto;min-height:0}.queue-row{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:1px solid var(--line)}.job-name{width:30%;font-size:var(--font-small);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.job-status{flex:1;font-size:var(--font-small);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.small-button{padding:4px 7px!important;color:var(--muted)!important}.queue-empty{padding:20px;text-align:center;font-size:var(--font-small);color:var(--muted)}.logs{flex:1;margin:0;min-height:0;overflow:auto;white-space:pre-wrap;font:var(--font-code)/1.7 'Cascadia Code',Consolas,'Microsoft YaHei',monospace;padding:10px 12px;color:#a8bacf}.statusbar{min-height:24px;height:24px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;color:var(--faint);font-size:var(--font-small);border-top:1px solid var(--line);flex-shrink:0}
.modal-backdrop{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:100;padding:24px}.modal-scrim{position:absolute;inset:0;width:100%;height:100%;background:#050912b8!important;font-size:0!important;color:transparent!important;border-radius:0!important;cursor:default}.modal-card{position:relative;width:620px;max-width:100%;max-height:calc(100vh - 48px);display:flex;flex-direction:column;border:1px solid #465368;border-radius:10px;background:#1b222d;box-shadow:0 24px 90px #0009;outline:none}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--line);flex-shrink:0}.dialog-title{font-size:var(--font-section);font-weight:600}.modal-body{padding:22px;display:flex;flex-direction:column;gap:16px;overflow-y:auto;min-height:0}.modal-footer{display:flex;align-items:center;justify-content:flex-end;padding:14px 22px;gap:8px;border-top:1px solid var(--line);flex-shrink:0}.dialog-stack,.form-stack{display:flex;flex-direction:column;gap:18px}.form-row{display:flex;align-items:flex-start;gap:16px}.field{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}.field-label{color:#aab8ca;font-size:var(--font-label)}.host-port>:last-child{flex:0 0 92px}.choice-list{display:flex;flex-direction:row;flex-wrap:wrap;gap:7px}.choice{padding:6px 12px!important;min-height:30px!important;border:1px solid var(--line)!important;color:var(--muted)!important}.choice.active{background:var(--accent-bg)!important;color:#c3d9ff!important;border-color:#4e77ad!important}.dialog-description,.hint,.subtle{font-size:var(--font-small);color:var(--muted);line-height:1.7}.fingerprint{font:var(--font-code)/1.7 Consolas,monospace;padding:12px;background:var(--input);border-radius:6px;word-break:break-all}.form-error{background:#38272c;color:#efb5ba;border:1px solid #644049;border-radius:5px;padding:9px 12px;margin:0 22px 16px;font-size:var(--font-label);white-space:pre-wrap}
@media(max-width:1100px){.sidebar{width:230px}.brand-area{width:202px}.brand-caption{display:none}.workspace{padding:12px;gap:10px}.panes{gap:10px}.column-modified,.file-modified{width:58px}.column-size,.file-size{width:54px}.queue-toolbar{flex-wrap:wrap}.pane-heading{flex-wrap:wrap}}@media(max-height:700px){.activity-dock{height:155px}.workspace{padding-block:10px;gap:10px}}
.section-label{font-size:var(--font-small);color:var(--muted);padding-inline:8px}.selection-spacer{width:24px;flex-shrink:0}.file-pane:has(>.file-empty)>.file-list{flex:0}.file-empty{flex:1;display:flex;align-items:center;justify-content:center;margin:0}.queue-content{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}
@supports(anchor-name:--active-context){.host-row.menu-open .host-more,.group-row.menu-open .group-more{anchor-name:--active-context}.context-popover{position:fixed;position-anchor:--active-context;top:anchor(bottom);right:anchor(right);bottom:auto;left:auto;position-try-fallbacks:flip-block;margin-top:4px}}
.sidebar{overflow:hidden}.sidebar-heading,.sidebar>.field,.sidebar-footer,.section-label{flex-shrink:0}.group-list{flex-shrink:0;max-height:28vh;overflow-y:auto}.server-list{flex:1;min-height:0;overflow-y:auto}.host-row{flex-shrink:0}.group-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}.dialog-description{white-space:pre-wrap;overflow-wrap:anywhere}
/* Sapid icon actions share one hit area, glyph grid, and hover/focus tooltip. */
.icon-button{position:relative;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;flex-shrink:0;padding:0!important;display:inline-flex;align-items:center;justify-content:center;overflow:visible}
.action-glyph{display:block;width:16px;height:16px;min-width:16px;min-height:16px;flex-shrink:0;background:currentColor;mask-size:contain;mask-repeat:no-repeat;mask-position:center;pointer-events:none}
.icon-button.active{background:var(--accent-bg)!important;color:#bcd6ff!important}
.icon-button::after{content:attr(aria-label);position:absolute;right:0;bottom:calc(100% + 7px);padding:5px 8px;border:1px solid var(--line-hover);border-radius:4px;background:#263141;color:var(--text);font:var(--font-code)/1.4 'Segoe UI','Microsoft YaHei',sans-serif;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;z-index:180;transition:opacity 100ms ease,visibility 100ms ease}
.icon-button:hover:not(:disabled)::after,.icon-button:focus-visible::after{opacity:1;visibility:visible;transition-delay:350ms}.menu-open .host-more::after,.menu-open .group-more::after{display:none}
@supports(anchor-name:--action-tip){.icon-button:hover,.icon-button:focus-visible{anchor-name:--action-tip}.icon-button::after{position:fixed;position-anchor:--action-tip;bottom:anchor(top);right:anchor(right);margin-bottom:7px;position-try-fallbacks:flip-block}}
.with-icon{display:inline-flex;align-items:center;justify-content:center;gap:6px}.sidebar-footer .with-icon{justify-content:flex-start}
.module-nav{display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);min-height:38px;flex-shrink:0}.module-tab{height:38px!important;border-radius:0!important;border-bottom:2px solid transparent!important;padding:0 2px!important;color:var(--muted)!important;font-size:var(--font-body)!important}.module-tab.active{color:var(--text)!important;border-bottom-color:var(--accent)!important}.files-module{flex:1;display:flex;flex-direction:column;gap:14px;min-height:0}
.software-page{flex:1;display:flex;flex-direction:column;gap:14px;min-height:0}.software-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}.software-heading>div{display:flex;flex-direction:column;gap:5px}.page-title{font-size:var(--font-title);font-weight:600}.software-empty{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;border:1px dashed var(--line);border-radius:7px;background:var(--surface);padding:32px;text-align:center}.software-connected{display:flex;flex:1;flex-direction:column;gap:12px;min-height:0}.software-environment{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:6px;font-size:var(--font-label);flex-shrink:0}.software-toolbar{display:flex;gap:8px;align-items:center;flex-shrink:0}.software-search{flex:1;max-width:380px}.software-status{font-size:var(--font-small);color:var(--muted);flex-shrink:0;min-height:16px}.software-error{font-size:var(--font-label);color:#efb5ba;background:#38272c;border:1px solid #644049;border-radius:5px;padding:8px 12px;white-space:pre-wrap;max-height:85px;overflow:auto;flex-shrink:0}.software-packages{flex:1;min-height:120px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:7px;background:var(--surface);overflow:hidden}.software-table-header,.software-package-row{display:flex;align-items:center;gap:16px;padding:9px 14px;border-bottom:1px solid var(--line);min-height:38px;flex-shrink:0}.software-table-header{font-size:var(--font-small);color:var(--muted);background:#131922}.software-package-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column}.software-package-row{font-size:var(--font-label)}.software-package-row:hover{background:var(--raised)}.package-name{width:170px;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:'Cascadia Code',Consolas,monospace;font-size:var(--font-small)}.package-version{width:130px;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:var(--font-small)}.package-description{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:var(--font-small)}.package-action{width:84px;flex-shrink:0;text-align:center}.software-list-empty{display:flex;flex:1;align-items:center;justify-content:center;padding:24px;color:var(--muted);font-size:var(--font-label)}.software-packages:has(>.software-list-empty)>.software-package-list{flex:0}.software-task{height:200px;min-height:140px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:7px;flex-shrink:0;background:#10151d;overflow:hidden}.software-task-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:38px;padding:9px 14px;border-bottom:1px solid var(--line);font-size:var(--font-label);font-weight:500}.software-output{flex:1;min-height:0;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:var(--font-code)/1.7 'Cascadia Code',Consolas,'Microsoft YaHei',monospace;padding:12px 14px;color:#b0c2d9}.package-preview,.package-command{white-space:pre-wrap;overflow-wrap:anywhere;font:var(--font-code)/1.7 'Cascadia Code',Consolas,'Microsoft YaHei',monospace;background:var(--input);padding:12px;border-radius:5px;border:1px solid var(--line);max-height:220px;overflow:auto}.package-command{max-height:120px;color:#b4cdf0}@media(max-width:1100px){.package-name{width:115px}.package-version{width:100px}.software-toolbar{flex-wrap:wrap}.software-search{min-width:150px}.software-environment{align-items:flex-start;flex-direction:column;gap:4px}.software-task{height:160px}.software-task-heading{flex-wrap:wrap}.software-heading{gap:8px}}@media(max-height:750px){.software-task{height:145px;min-height:110px}.software-page,.software-connected{gap:8px}.software-environment{padding:8px 12px}}

.observability-page{flex:1;min-height:0;display:flex;flex-direction:column;gap:16px;overflow:auto;padding-bottom:2px}.observability-content{display:flex;flex-direction:column;gap:14px;flex:1;min-height:0}.resources-page .observability-content{flex:0 0 auto}.observability-status{color:var(--muted);font-size:var(--font-small);min-height:16px;flex-shrink:0}.observability-warning{color:#c9b889;font-size:var(--font-small);white-space:pre-wrap;line-height:1.7;flex-shrink:0}.observability-warning:empty{display:none}.metric-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;flex-shrink:0}.metric-card{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:16px;min-width:0}.metric-value{font-size:25px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.4px;line-height:1.4}.metric-card .subtle{overflow-wrap:anywhere}.resource-table{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:7px;background:var(--surface);overflow:hidden;flex-shrink:0}.resource-row{display:flex;align-items:center;gap:16px;padding:11px 14px;border-bottom:1px solid var(--line);font-size:var(--font-label);flex-shrink:0}.resource-row:last-child{border-bottom:0}.resource-name{flex:1;min-width:130px;overflow-wrap:anywhere}.resource-detail{flex:1;color:var(--muted);font-size:var(--font-small);overflow-wrap:anywhere;white-space:pre-wrap}.resource-value{min-width:100px;text-align:right;font:var(--font-code)/1.7 'Cascadia Code',Consolas,monospace;white-space:pre-wrap}.logs-sources{display:flex;flex-wrap:wrap;gap:6px;flex-shrink:0}.logs-sources .button{font-size:var(--font-small)!important}.logs-sources .active,.logs-query .active{color:#c3d9ff!important;background:var(--accent-bg)!important;border-color:#4e77ad!important}.logs-query{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;flex-shrink:0}.logs-query>.field{flex:0 1 auto}.logs-query>.logs-unit{flex:1 1 190px}.logs-options{display:flex;gap:4px;flex-wrap:wrap}.logs-options .button,.logs-options .choice{font-size:var(--font-small)!important;min-height:32px!important;padding:6px 9px!important}.logs-toolbar{display:flex;align-items:center;gap:12px;flex-shrink:0}.logs-filter{flex:1;max-width:420px}.system-log-output{display:block;flex:1;min-height:120px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;border:1px solid var(--line);border-radius:7px;padding:14px;background:#10151d;color:#b4c3d7;font:var(--font-code)/1.85 'Cascadia Code',Consolas,'Microsoft YaHei',monospace}.system-log-output:empty::before{content:'等待读取日志';color:var(--faint)}@media(max-width:1200px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-value{font-size:23px}.logs-query{gap:10px}.logs-query>.logs-unit{flex-basis:100%}}@media(max-width:1000px){.resource-row{flex-wrap:wrap;gap:6px 12px}.resource-name{flex-basis:100%}.resource-detail{min-width:150px}.module-nav{gap:16px}.logs-toolbar{flex-wrap:wrap}}@media(max-height:750px){.observability-page,.observability-content{gap:10px}.metric-card{padding:12px;gap:6px}}

/* Header aligns directly with the sidebar and workspace. */
.topbar{height:48px;min-height:48px;padding:0;gap:0}.brand-area{width:260px;height:48px;padding:0 16px;align-items:center;border-right:1px solid var(--line)}.brand{font-size:22px}.brand-caption{font-size:var(--font-small)}.topbar>.module-nav{flex:1;height:48px;min-height:48px;margin:0;padding:0 20px;gap:24px;border-bottom:0}.topbar .module-tab{height:48px!important}.workspace{padding-top:14px}.panes{gap:0!important}.pane-slot{display:flex;flex-basis:0;min-width:0;min-height:0;overflow:hidden}.pane-slot>.file-pane{flex:1;width:100%;min-width:0}.pane-splitter{width:10px;min-width:10px;flex:none;cursor:col-resize;touch-action:none;user-select:none;position:relative;align-self:stretch;border:0;outline:none}.pane-splitter::before{content:'';position:absolute;left:calc(50% - .5px);top:8px;bottom:8px;width:1px;background:var(--line);transition:background 120ms}.pane-splitter:hover::before,.pane-splitter.dragging::before,.pane-splitter:focus-visible::before{background:var(--accent)}.pane-splitter.dragging::before{width:2px}.conflict-file{display:flex;flex-direction:column;gap:6px;padding:12px;background:var(--input);border:1px solid var(--line);border-radius:5px}.conflict-path{font:var(--font-code)/1.7 'Cascadia Code',Consolas,'Microsoft YaHei',monospace;white-space:pre-wrap;overflow-wrap:anywhere}.file-pane{overflow:auto}.pathbar{flex-wrap:wrap}.path-input{min-width:80px}.pane-heading{flex-wrap:wrap}@media(max-width:1100px){.brand-area{width:230px}.topbar>.module-nav{padding:0 12px;gap:18px}}

/* Quiet, compact scrollbars throughout the desktop workspace. */
*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:#465163;border-radius:4px;min-height:28px}*::-webkit-scrollbar-thumb:hover{background:#65758c}*::-webkit-scrollbar-button{display:none;width:0;height:0}*::-webkit-scrollbar-corner{background:transparent}

.connection-controls { height: 48px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 0 18px 0 10px; }
.connection-target {
  max-width: clamp(72px, 18vw, 220px);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: var(--font-label)/1.3 Consolas, monospace;
  color: var(--text);
}
.connection-target:empty { display: none; }
.connection-state{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:var(--font-small);color:var(--muted)}.connection-state::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}.connection-state.online{color:#72caaa}.connection-state.connecting{color:#d4bd82}.connection-button{min-height:30px!important;font-size:var(--font-small)!important}.topbar>.module-nav{min-width:0}@media(max-width:1100px){.connection-controls{padding-right:12px;gap:8px}.topbar>.module-nav{gap:16px}}@media(max-width:850px){.connection-controls{gap:6px}.connection-button{padding-inline:8px!important}.topbar>.module-nav{gap:12px;padding-inline:10px}.module-tab{font-size:var(--font-label)!important}}

.file-picker-field{display:flex;align-items:center;gap:8px}.file-picker-field>input{flex:1;min-width:0}.browse-button{flex:none;white-space:nowrap}.settings-link{margin-top:8px}.settings-link.active{background:var(--accent-bg)!important;color:var(--text)!important}.settings-page{display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto;gap:20px;padding:4px 0 20px}.settings-sections{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;flex-shrink:0}.settings-section{display:flex;flex-direction:column;gap:16px;min-width:0;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:7px}.settings-section-title{font-size:var(--font-body);font-weight:600}.settings-field{display:flex;flex-direction:column;gap:8px}.settings-choices{flex-wrap:wrap}.settings-footer{display:flex;flex-direction:column;gap:5px;max-width:760px}.app{background:var(--bg);color:var(--text);color-scheme:dark}.theme-light{color-scheme:light;--bg:#f4f6f9;--surface:#fff;--raised:#edf1f6;--input:#fff;--line:#d6dde7;--line-hover:#a9b8cb;--text:#1e2b3b;--muted:#64758a;--faint:#8794a5;--accent:#356fc5;--accent-bg:#e2edfc;--danger:#b2424b}.theme-light .brand:not(:where(.desktop-dark *)){color:var(--text)}.theme-light .sidebar:not(:where(.desktop-dark *)){background:#edf1f7}.theme-light .button:hover:not(:disabled):not(:where(.desktop-dark *)){background:var(--button-hover,#e4ebf5)!important}.theme-light .button.primary:not(:where(.desktop-dark *)){background:#4278c7!important;color:#fff!important}.theme-light .button.primary:hover:not(:disabled):not(:where(.desktop-dark *)){background:#3568b1!important}.theme-light .button.danger:not(:where(.desktop-dark *)){background:#fbe7e9!important;border-color:#e4aeb5!important;color:#a93643!important}.theme-light .icon-button:hover:not(:where(.desktop-dark *)),.theme-light .host-more:hover:not(:where(.desktop-dark *)),.theme-light .group-more:hover:not(:where(.desktop-dark *)){background:#dce6f5!important}.theme-light .group-button.active:not(:where(.desktop-dark *)){background:#dce6f5!important}.theme-light .context-popover:not(:where(.desktop-dark *)),.theme-light .pane-menu:not(:where(.desktop-dark *)){background:#fff;border-color:var(--line);box-shadow:0 8px 24px #31446626}.theme-light .menu-item:hover:not(:disabled):not(:where(.desktop-dark *)){background:#e6edf8!important}.theme-light .file-header:not(:where(.desktop-dark *)),.theme-light .software-table-header:not(:where(.desktop-dark *)){background:#edf2f8}.theme-light .file-row:hover:not(:where(.desktop-dark *)){background:#eaf1fa}.theme-light .modal-card:not(:where(.desktop-dark *)){background:#fff;border-color:#b4c1d1;box-shadow:0 24px 90px #27394f38}.theme-light .field-label:not(:where(.desktop-dark *)){color:#52657d}.theme-light .choice.active:not(:where(.desktop-dark *)),.theme-light .logs-sources .active:not(:where(.desktop-dark *)),.theme-light .logs-query .active:not(:where(.desktop-dark *)){background:var(--accent-bg)!important;color:#245a9e!important;border-color:#80a5d8!important}.theme-light .icon-button.active:not(:where(.desktop-dark *)){color:#245a9e!important}.theme-light .logs:not(:where(.desktop-dark *)),.theme-light .software-output:not(:where(.desktop-dark *)),.theme-light .system-log-output:not(:where(.desktop-dark *)),.theme-light .package-command:not(:where(.desktop-dark *)){color:#304f72}.theme-light .software-task:not(:where(.desktop-dark *)),.theme-light .system-log-output:not(:where(.desktop-dark *)){background:#f8fafc}.theme-light .icon-button:not(:where(.desktop-dark *))::after{background:#e9eff7;color:var(--text)}.theme-light .form-error:not(:where(.desktop-dark *)),.theme-light .software-error:not(:where(.desktop-dark *)){background:#fff0f1;color:#a53d4a;border-color:#e1b5bc}.theme-light .notice:not(:where(.desktop-dark *)){background:#fff6e6;border-color:#e2c993}.theme-light .notice-text:not(:where(.desktop-dark *)),.theme-light .observability-warning:not(:where(.desktop-dark *)){color:#8f6a28}.theme-light .connection-state.online:not(:where(.desktop-dark *)){color:#248475}.theme-light .connection-state.connecting:not(:where(.desktop-dark *)){color:#a17c24}.theme-light *:not(:where(.desktop-dark *))::-webkit-scrollbar-thumb{background:#bbc5d2}.theme-light *:not(:where(.desktop-dark *))::-webkit-scrollbar-thumb:hover{background:#95a4b8}@media(max-width:1050px){.settings-sections{grid-template-columns:1fr}.settings-section{padding:16px}}

.file-list-container{flex:1;min-height:0;display:flex;flex-direction:column}.file-gesture-input{display:none!important}.file-expander{display:inline-flex!important;align-items:center;justify-content:center;width:18px!important;min-width:18px!important;flex:none;padding:0!important;height:28px!important;min-height:28px!important;border:0!important;background:transparent!important;color:var(--muted)!important;line-height:0!important}.file-expander-loading{cursor:progress}.file-expander-loading>.disclosure-icon{opacity:.55}.disclosure-icon{display:block!important;flex:none;width:16px!important;height:16px!important;line-height:0;pointer-events:none}.file-expander-empty{visibility:hidden}.file-row{gap:4px;user-select:none}.file-header{padding-left:32px}.file-name{margin-right:4px}.path-location{flex:1;min-width:0;display:flex;justify-content:center}.breadcrumbs{display:flex;align-items:center;gap:0;overflow-x:auto;overflow-y:hidden;min-width:0;height:31px;background:var(--input);border:1px solid var(--line);border-radius:5px;white-space:nowrap;scrollbar-width:none}.breadcrumbs::-webkit-scrollbar{display:none}.path-location .path-input{width:100%;min-width:0}.pathbar .icon-button{flex:none}.file-row:focus-within{outline:1px solid var(--line-hover);outline-offset:-1px}.breadcrumbs:focus-within{border-color:var(--accent)}

.path-copy.copied{color:var(--accent)!important}

.view-switch{display:flex;align-items:center;gap:2px;margin-left:auto;flex:none}.view-switch .active{background:var(--accent-bg)!important;color:var(--accent)!important}.file-entry-icon{flex:none!important;width:15px!important;height:15px!important;display:inline-block!important}.glyph-folder.file-entry-icon{color:#73b9e6}.file-name{display:flex!important;align-items:center;gap:7px!important;min-width:0}.file-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-information{flex:none;display:flex;flex-direction:column;gap:3px;padding:8px 12px;border-top:1px solid var(--line);font-size:var(--font-small);min-width:0}.file-information-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.file-information-metadata,.file-information-path{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.file-information-metadata:empty,.file-information-path:empty{display:none}.file-list-empty{flex:0}.icons-view .file-header{display:none}.icons-view .file-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));align-content:start;gap:6px;padding:8px}.icons-view .file-row{height:112px;min-height:112px;flex-direction:column;gap:2px;padding:6px!important;border:1px solid transparent;border-radius:5px;justify-content:center;min-width:0}.icons-view .file-expander{display:none!important}.icons-view .file-name{flex:1;width:100%;padding:4px!important;flex-direction:column!important;justify-content:center;gap:7px!important;text-align:center!important;overflow:hidden;white-space:normal!important}.icons-view .file-entry-icon{width:34px!important;height:34px!important}.icons-view .file-label{max-width:100%;font-size:var(--font-small);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icons-view .file-size{flex:none;width:auto;max-width:100%;text-align:center!important;font-size:var(--font-small)}.icons-view .file-modified{display:none}.theme-light .glyph-folder.file-entry-icon:not(:where(.desktop-dark *)){color:#418ab9}
.icons-view .file-header{display:none!important}
.file-row .file-name:focus,.file-row .file-name:focus-visible,.file-row .file-expander:focus,.file-row .file-expander:focus-visible{outline:none!important;box-shadow:none!important}
.file-row:focus-within{outline:none}
.transfer-concurrency-input{width:96px!important;flex:none!important}
.file-pane{position:relative}.file-drop-hint{display:none!important}.file-pane[data-file-drop-target]{outline:2px solid var(--accent);outline-offset:-2px}.file-pane[data-file-drop-target]>.file-drop-hint{display:block!important;position:absolute;left:12px;right:12px;top:50%;transform:translateY(-50%);padding:18px 12px;border:1px dashed var(--accent);border-radius:6px;background:var(--accent-bg);color:var(--accent);text-align:center;pointer-events:none;z-index:3}.file-pane[data-file-drag-source] .file-row.row-selected{opacity:.55}.file-row[draggable=true]{cursor:grab}.file-row[draggable=true]:active{cursor:grabbing}
.queue-job{flex:none;min-width:0}.transfer-details-toggle{display:inline-flex!important;align-items:center;justify-content:center;flex:none!important;width:18px!important;min-width:18px!important;min-height:24px!important;height:24px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--muted)!important;line-height:0!important}.transfer-details{display:flex;flex-direction:column;gap:0;flex:none;min-width:0;padding:0 12px 5px 40px;border-bottom:1px solid var(--line);background:var(--bg)}.transfer-files-summary,.transfer-files-empty{padding:5px 0;font-size:var(--font-small);color:var(--muted);line-height:1.4}.transfer-files-summary:empty{display:none}.transfer-file-row{display:grid!important;grid-template-columns:minmax(80px,1fr) 96px 116px minmax(115px,155px) 42px;align-items:center;gap:12px;min-width:0;min-height:28px;padding:4px 0;border-top:1px solid var(--line);font-size:var(--font-small);line-height:1.4}.transfer-file-path{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.transfer-file-progress-content{min-width:0;max-width:120px}.transfer-file-status{min-width:0;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.transfer-file-bytes,.transfer-file-percent{min-width:0;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-dock:not(.collapsed):has(.transfer-details){height:min(45vh,420px)}@media(max-width:1050px){.transfer-details{padding-left:20px}.transfer-file-row{grid-template-columns:minmax(60px,1fr) 80px 100px 130px 40px;gap:8px}}@media(max-width:850px){.transfer-file-row{grid-template-columns:minmax(70px,1fr) 60px 92px 40px;gap:3px 8px;padding-block:4px}.transfer-file-path{grid-column:1/3;grid-row:1}.transfer-file-status{grid-column:3/5;grid-row:1;text-align:right}.transfer-file-progress-content{grid-column:1;grid-row:2}.transfer-file-bytes{grid-column:2/4;grid-row:2}.transfer-file-percent{grid-column:4;grid-row:2}}
.keyboard-navigation .file-row:focus-within{outline:1px solid var(--line-hover);outline-offset:-1px}

.terminal-module{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:7px;overflow:hidden}.terminal-toolbar{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line);flex:none}.terminal-heading{font-size:var(--font-body);font-weight:600}.terminal-status{flex:1;min-width:0;color:var(--muted);font-size:var(--font-small)}.terminal-input-bridge,.terminal-state,.terminal-packets{display:none!important}.terminal-surface{flex:1;min-height:160px;min-width:0;overflow:hidden;padding:10px}.terminal-owned-surface{width:100%;height:100%;min-width:0}.terminal-owned-surface .xterm{height:100%;padding:0}.terminal-owned-surface .xterm-viewport{overflow-y:auto!important}.terminal-error{padding:8px 12px;background:#342c21;color:#dbc6a0;font-size:var(--font-small);white-space:pre-wrap}.terminal-hint{font-size:var(--font-small);color:var(--muted);padding:6px 12px;border-top:1px solid var(--line);flex:none}
/* Application rail, contextual navigation, and server-scoped workspace. */
.theme-dark{--bg:#111923;--surface:#17212e;--raised:#202d3e;--input:#111b28;--line:#293647;--text:#e2eaf4;--muted:#92a3b9;--faint:#667b95;--accent:#78adf4;--accent-bg:#263e5d;--nav-bg:#141e2b;--rail-bg:#0c1521}
.theme-light{--bg:#f5f7fb;--surface:#fff;--raised:#edf2f9;--input:#fff;--line:#dfe5ef;--file-row-line:#edf1f6;--text:#233248;--muted:#687a92;--faint:#8796aa;--accent:#3d73ba;--accent-bg:#e7effd;--nav-bg:#f4f7fc;--rail-bg:#edf2f9}
.navigation-shell{display:flex;flex:1;min-height:0;min-width:0;width:100%;height:100vh;overflow:hidden}
.navigation-rail{display:flex;flex-direction:column;align-items:center;gap:10px;width:64px;min-width:64px;height:100%;padding:16px 8px 10px;background:var(--rail-bg);border-right:1px solid var(--line);z-index:3;flex:none}
.rail-primary{display:flex;flex-direction:column;align-items:center;gap:inherit;min-height:0}
@media(max-height:430px){
  .navigation-rail{gap:4px;padding-block-start:8px}
}
@media(max-height:380px){
  .rail-primary{align-self:stretch;margin-inline:-6px;overflow-y:auto;scrollbar-width:thin}
  .rail-primary .rail-item{anchor-name:--rail-button;anchor-scope:--rail-button}
  .rail-primary .rail-item:not(.rail-logo)[aria-label]:not([aria-label=""])::after{
    position:fixed;position-anchor:--rail-button;left:68px;left:calc(anchor(right) + 13px);top:auto;top:anchor(center);
  }
}
.rail-item{position:relative;display:flex!important;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;border-radius:11px!important;color:var(--muted)!important;flex:none;padding:0!important}
.rail-item:not(.rail-logo):hover{color:var(--text)!important;background:var(--raised)!important}.rail-item.active{color:var(--accent)!important;background:var(--accent-bg)!important}.rail-item.active::before{content:'';position:absolute;left:-8px;width:3px;height:23px;border-radius:0 4px 4px 0;background:var(--accent)}
.rail-item .action-glyph{width:21px;height:21px}.rail-logo{margin-bottom:3px;cursor:default}.brand-icon{display:block;width:31px;height:31px;flex:none;align-self:center;background-position:center;background-size:contain;background-repeat:no-repeat}
.rail-divider{height:1px;width:24px;background:var(--line);margin:0 0 2px;flex:none}.rail-bottom{display:flex;flex:none;flex-direction:column;gap:10px;margin-top:auto}.rail-item.settings-link{margin-top:0}
.rail-item:not(.rail-logo)[aria-label]:not([aria-label=""])::after{content:attr(aria-label);position:absolute;left:calc(100% + 13px);top:50%;transform:translateY(-50%);padding:7px 10px;background:var(--raised);border:1px solid var(--line);border-radius:5px;color:var(--text);font-size:var(--font-small);white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;z-index:220}
.rail-item:not(.rail-logo)[aria-label]:not([aria-label=""]):is(:hover,:focus-visible)::after{opacity:1;visibility:visible;transition-delay:250ms}.rail-unread{position:absolute;right:3px;top:2px;display:flex;align-items:center;justify-content:center;min-width:15px;height:15px;padding:0 3px;border-radius:8px;background:#d16b76;color:#fff;font-size:var(--font-small);border:2px solid var(--rail-bg);box-sizing:content-box}
.context-sidebar,.navigation-shell>.sidebar{display:flex;flex-direction:column;flex:none;width:252px;min-width:0;height:100%;border-right:1px solid var(--line);background:var(--nav-bg);padding:0;overflow:hidden}
.context-title{display:flex;align-items:center;height:64px;min-height:64px;padding:0 22px;font-size:var(--font-section);font-weight:600;letter-spacing:-.2px}.context-links{display:flex;flex-direction:column;padding:8px 12px;gap:5px}.context-link{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;min-height:38px!important;width:100%;padding:9px 12px!important;text-align:left;background:transparent!important;border:0!important;color:var(--muted)!important;font-size:var(--font-label)!important;border-radius:6px!important}.context-link:hover{background:var(--raised)!important;color:var(--text)!important}.context-link.active{background:var(--accent-bg)!important;color:var(--accent)!important;font-weight:600}.context-link .action-glyph{width:17px;height:17px;flex:none}
.context-section-label{font-size:var(--font-small);color:var(--faint);letter-spacing:.5px;padding:27px 12px 7px}.context-hint{font-size:var(--font-small);line-height:1.85;padding:12px;color:var(--muted)}.context-footer{display:flex;flex-direction:column;gap:7px;margin-top:auto;padding:22px;border-top:1px solid var(--line)}.context-footer-title{font-size:var(--font-label);color:var(--text)}.session-indicator{font-size:var(--font-small);color:var(--muted);margin-top:12px;display:flex;align-items:center;gap:6px}.session-indicator::before,.server-card-status::before{content:'';width:5px;height:5px;display:inline-block;border-radius:50%;background:currentColor;flex:none}.session-indicator.online,.server-card-status.online{color:#39a48d}
.main-panel{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--bg)}.page-header{display:flex;align-items:center;justify-content:space-between;height:64px;min-height:64px;padding:0 28px;border-bottom:1px solid var(--line);gap:20px;background:var(--bg);flex:none}.page-header-title{font-size:var(--font-body);font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-product{font-size:var(--font-small);color:var(--faint);letter-spacing:.3px}.page-header .connection-controls{padding:0;height:auto}.main-panel>.module-nav{padding:0 28px;gap:26px;min-height:46px;flex:none;background:var(--surface)}.main-panel>.module-nav .module-tab{height:46px!important;font-size:var(--font-label)!important;white-space:nowrap}
.workspace-content{display:flex;flex:1;flex-direction:column;padding:24px 28px;gap:16px;min-height:0;min-width:0;overflow:hidden}.page-scroll{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable}.server-modules{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0}.workspace-content .files-module{gap:14px}.workspace-content:has(>.server-modules),.workspace-content:has(>.terminal-module:not(.hidden)),.workspace-content:has(>.settings-page){padding:18px 20px}
.navigation-shell>.sidebar{padding:22px 16px 16px;gap:18px}.navigation-shell .sidebar-heading{gap:8px}.navigation-shell .sidebar-title{font-size:var(--font-section)}.navigation-shell .sidebar-heading .compact{font-size:var(--font-small)!important;padding:5px 7px!important}.navigation-shell .group-list{gap:4px}.navigation-shell .group-button{font-size:var(--font-label)}.navigation-shell .sidebar-foot{font-size:var(--font-small)}.navigation-shell .host-row{border-radius:7px}.navigation-shell .host-row.selected{background:var(--accent-bg)}.navigation-shell .sidebar-empty{padding-inline:4px}.navigation-shell .host-name{font-size:var(--font-label)}.navigation-shell .host-address{font-size:var(--font-small)}
.home-page{gap:24px;padding:18px 2px 32px;max-width:1200px;width:100%;align-self:center}.home-intro{display:flex;flex-direction:column;gap:16px;padding:12px 0 4px;flex:none}.eyebrow{font-size:var(--font-small);letter-spacing:1.4px;color:var(--accent);font-weight:600}.home-title{font-size:32px;line-height:1.3;font-weight:600;letter-spacing:-.8px;overflow-wrap:anywhere}.home-description{font-size:var(--font-body);line-height:1.9;color:var(--muted);max-width:640px}.home-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:5px}.home-actions .button{min-height:36px!important;padding:8px 14px!important}.home-secondary{color:var(--muted)!important;background:transparent!important}
.home-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;flex:none}.home-stat{display:flex;flex-direction:column;gap:9px;padding:21px 22px;background:var(--surface);border:1px solid var(--line);border-radius:9px;min-width:0}.home-stat-value{font-size:28px;line-height:1.2;font-weight:600;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.home-stat .subtle{font-size:var(--font-small)}.home-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap;flex:none}.section-title{font-size:var(--font-section);font-weight:600}.home-server-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:none}.home-server-card{display:flex!important;align-items:center;gap:14px;min-height:94px;padding:20px!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:9px!important;text-align:left;min-width:0;transition:border-color 120ms}.home-server-card:hover{border-color:var(--accent)!important;background:var(--surface)!important}.home-server-card>.action-glyph{width:24px;height:24px;color:var(--accent);flex:none}.home-server-copy{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}.home-server-name,.home-server-copy .subtle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-server-name{font-size:var(--font-body);font-weight:600}.server-card-status{font-size:var(--font-small);color:var(--muted);display:flex;align-items:center;gap:6px;white-space:nowrap}
.navigation-empty{display:flex;flex:1;min-height:260px;align-items:center;justify-content:center;flex-direction:column;gap:18px;text-align:center;padding:48px 28px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.navigation-empty>.action-glyph{width:42px;height:42px;color:var(--accent);margin-bottom:5px}.empty-title{font-size:22px;font-weight:600;letter-spacing:-.4px}.empty-description{font-size:var(--font-label);line-height:1.9;color:var(--muted);max-width:360px}.empty-actions{display:flex;gap:8px;margin-top:8px}.server-landing>.navigation-empty{border:0;background:transparent}.server-landing{padding:20px 0}.server-overview{display:flex;flex-direction:column;gap:20px;max-width:800px;width:100%;margin:auto;padding:38px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.overview-server-icon{width:44px!important;height:44px!important;color:var(--accent)}.server-facts{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:24px 0;border-block:1px solid var(--line);margin-top:8px}.server-fact{display:flex;flex-direction:column;gap:9px;min-width:0}.server-fact-value{font-size:var(--font-label);line-height:1.7;overflow-wrap:anywhere}.overview-footnote{margin-top:4px}
.workspace-content .settings-page{gap:24px;padding:12px 0 28px;max-width:none;min-width:0;align-self:stretch}.workspace-content .settings-sections{display:flex!important;flex-direction:column;gap:20px}.workspace-content .settings-section{padding:28px;gap:24px;border-radius:9px;min-height:180px}.workspace-content .settings-field{gap:12px}.workspace-content .settings-choices{gap:8px;margin-top:8px}.workspace-content .settings-choices .choice{min-width:100px}.settings-footer{margin-top:auto;padding-top:12px}.notifications-page{gap:16px;max-width:1000px;width:100%;align-self:center;padding:12px 0 24px}.notification-feed{display:flex;flex-direction:column;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:9px;overflow:hidden;flex:none;margin-top:12px}.notification-entry{display:flex;align-items:flex-start;gap:16px;padding:22px;border-bottom:1px solid var(--line)}.notification-entry:last-child{border:0}.notification-entry>.action-glyph{color:var(--accent);width:18px;height:18px;margin-top:1px;flex:none}.notification-message{font-size:var(--font-label);line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap;min-width:0}
@media(max-width:1200px){.navigation-shell>.sidebar,.context-sidebar{width:230px}.home-server-grid{grid-template-columns:1fr}.main-panel>.module-nav{gap:20px;padding-inline:22px}.workspace-content{padding:20px 22px}.page-header{padding-inline:22px}.home-stats{gap:10px}.home-stat{padding:18px 16px}.server-overview{padding:28px}}
@media(max-width:950px){.navigation-rail{width:56px;min-width:56px;padding-inline:6px}.rail-item{width:42px;min-width:42px}.navigation-shell>.sidebar,.context-sidebar{width:208px}.context-title{padding-inline:18px}.navigation-shell>.sidebar{padding-inline:12px}.home-title{font-size:27px}.home-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.server-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.main-panel>.module-nav{gap:16px;padding-inline:16px;overflow-x:auto}.workspace-content,.workspace-content:has(>.server-modules),.workspace-content:has(>.terminal-module:not(.hidden)),.workspace-content:has(>.settings-page){padding:16px}.page-header{padding-inline:16px}.page-header-title{font-size:var(--font-body)}.server-overview{padding:24px}.home-section-heading>.subtle{font-size:var(--font-small)}}
.home-server-card{display:grid!important;grid-template-columns:26px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:7px 14px;align-content:center}.home-server-card>.action-glyph{grid-column:1;grid-row:1/3}.home-server-name{grid-column:2;grid-row:1}.home-server-address{grid-column:2;grid-row:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-server-card>.server-card-status{grid-column:3;grid-row:1/3}
.terminal-copy.copied{color:var(--accent)!important}
.terminal-surface .xterm-viewport{background:var(--surface)!important;overflow-x:hidden}
.terminal-owned-surface.has-scrollback .xterm-scrollable-element > .scrollbar.vertical {
  opacity: 1;
  pointer-events: auto;
  z-index: 11;
  background: var(--raised);
}
.terminal-owned-surface.has-scrollback .scrollbar.vertical > .slider {
  border: 2px solid var(--raised);
  border-radius: 7px;
  background: var(--muted);
}
.terminal-owned-surface.has-scrollback .scrollbar.vertical > .slider:is(:hover, .active) {
  background: var(--text);
}
/* Folder-style server files. Menus share their Rust actions for mouse and keyboard. */
.navigation-shell>.server-explorer{gap:18px;padding:18px 12px 12px}.server-explorer .sidebar-heading{position:relative;min-height:32px;padding:0 6px}.tree-actions{display:flex;align-items:center;gap:2px;margin-left:auto}.tree-actions .icon-button{width:26px!important;min-width:26px!important;height:28px!important}.tree-actions .action-glyph{width:15px;height:15px}.tree-root-row.menu-open{z-index:61}.tree-root-row.menu-open .tree-more{anchor-name:--active-context}.tree-root-row.menu-open .tree-more::after{display:none}.server-tree{gap:2px!important;flex:1;min-height:0;overflow:auto;padding:2px 0 12px}.tree-folder{display:flex;flex-direction:column;flex:none;min-width:0}.tree-folder-row{min-height:36px!important;flex:none}.server-explorer .group-button{display:flex!important;align-items:center;gap:8px;min-height:36px!important;padding:7px 6px!important;min-width:0;color:var(--text)!important;background:transparent!important}.tree-chevron{width:12px;flex:none;color:var(--muted);font:16px/1 'Segoe UI',sans-serif;text-align:center}.group-button>.action-glyph{width:17px;height:17px;flex:none;color:#79afd6}.theme-light .group-button>.action-glyph:not(:where(.desktop-dark *)){color:#4e87b9}.tree-folder-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-label);font-weight:500;text-align:left}.tree-count{font-size:var(--font-small);color:var(--faint);margin-left:auto;padding-left:6px}.tree-folder-row.selected{background:var(--raised)}.tree-children{display:flex;flex-direction:column;gap:2px;margin:2px 0 5px 18px;padding-left:10px;border-left:1px solid var(--line);min-width:0}.server-explorer .host-row{min-height:40px;padding:0 3px 0 9px;gap:8px;flex:none}.server-explorer .host-row>.action-glyph{width:15px;height:15px;flex:none;color:var(--muted)}.server-explorer .host-select{min-height:40px!important;padding:7px 0!important;gap:3px;min-width:0}.server-explorer .host-name{font-weight:500!important;font-size:var(--font-label)!important}.server-explorer .host-address{font-size:var(--font-small)!important}.tree-empty-group{padding:9px 12px;font-size:var(--font-small);color:var(--faint)}.tree-no-results,.tree-empty-state{padding:18px 12px;color:var(--muted);font-size:var(--font-small);line-height:1.9}.tree-footer{flex:none;padding:12px 6px 2px;border-top:1px solid var(--line);font-size:var(--font-small);color:var(--faint)}.server-explorer .context-popover{min-width:175px;max-height:calc(100vh - 16px);overflow-y:auto}.server-explorer .pointer-menu{position:fixed!important;position-anchor:auto!important;right:auto!important;bottom:auto!important;margin:0!important;z-index:100!important}.tree-folder-row .group-more{width:25px!important;min-width:25px!important}.group-row:focus-within{outline-offset:-1px}.server-explorer .context-popover .menu-item:focus-visible{outline:1px solid var(--accent);outline-offset:-2px;background:var(--raised)!important}
/* Shared SVG geometry aligns disclosure, folder and server glyphs without font baselines. */
.server-explorer .group-button{display:grid!important;grid-template-columns:18px 22px minmax(0,1fr) auto;column-gap:8px;align-items:center;min-height:40px!important}.tree-chevron.action-glyph{display:block!important;width:18px!important;height:18px!important;line-height:0;margin:0;transform:rotate(0deg);transition:transform 100ms ease;color:var(--muted)}.tree-folder-row.expanded .tree-chevron{transform:rotate(90deg)}.group-button>.action-glyph:not(.tree-chevron){width:22px!important;height:22px!important}.server-explorer .host-row>.action-glyph{width:20px!important;height:20px!important}.server-explorer .host-name{font-size:var(--font-body)!important}.server-explorer .host-address{font-size:var(--font-small)!important}.tree-folder-name{font-size:var(--font-body)}.server-explorer .group-context-menu{min-width:230px}.tree-folder-row{position:relative}.tree-folder-row.drop-before::before,.tree-folder-row.drop-after::after{content:'';position:absolute;left:2px;right:2px;height:2px;background:var(--accent);border-radius:1px;z-index:2;pointer-events:none}.tree-folder-row.drop-before::before{top:-2px}.tree-folder-row.drop-after::after{bottom:-2px}.tree-folder-row.dragging-group{opacity:.45}.group-button[draggable=true]{cursor:grab}.group-button[draggable=true]:active{cursor:grabbing}.delete-targets{display:block;max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 14px;background:var(--input);border:1px solid var(--line);border-radius:6px;font-size:var(--font-label);line-height:1.9}

.job-transfer{flex:1;min-width:0;gap:2px}.job-progress-heading{display:flex;align-items:center;min-width:0;line-height:1.4}.job-progress-column{display:flex;align-items:center;gap:8px;width:164px;min-width:164px;flex:none}.job-percent{width:40px;text-align:right;font-size:var(--font-small);color:var(--muted);font-variant-numeric:tabular-nums;flex:none}.job-progress{height:4px;min-height:4px;display:block;width:100%!important;background:var(--line)!important;border-radius:3px;overflow:hidden}.job-progress-column>.job-progress{flex:1;width:auto!important;min-width:0}.job-progress>div{height:100%;background:var(--accent)!important}.job-progress.failed>div{background:var(--danger)!important}.job-progress.cancelled>div{background:var(--muted)!important}.job-transfer-details{font-size:var(--font-small);color:var(--muted);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.queue-row{padding-block:5px;align-items:center;gap:8px}.queue-row .job-name{width:20%;max-width:190px;min-width:70px;line-height:1.4}.job-transfer-details:empty{display:none}.queue-row>.icon-button{flex:none;width:24px!important;min-width:24px!important;height:26px!important;min-height:26px!important}@media(max-width:1050px){.job-progress-column{width:148px;min-width:148px}.queue-row .job-name{width:18%;max-width:130px}}@media(max-width:850px){.queue-row{display:grid!important;grid-template-columns:18px minmax(0,1fr) minmax(40px,148px) repeat(3,24px);gap:2px 7px}.queue-row>.transfer-details-toggle{grid-column:1;grid-row:1/3}.queue-row>.job-name{grid-column:2;grid-row:1;width:auto;min-width:0;max-width:none}.queue-row>.job-transfer{grid-column:2/-1;grid-row:2;display:flex!important;flex-direction:row!important;gap:8px;align-items:center}.queue-row .job-status{flex:none;max-width:40%;min-width:0}.queue-row .job-progress-heading{flex:none;max-width:40%}.queue-row .job-transfer-details{flex:1;min-width:0}.queue-row>.job-progress-column{grid-column:3;grid-row:1;width:auto;min-width:0}.queue-row>.job-pause{grid-column:4;grid-row:1}.queue-row>.job-cancel{grid-column:5;grid-row:1}.queue-row>.job-retry{grid-column:6;grid-row:1}}
.server-explorer :is(.local-desktop-entry, .server-search) { align-self: stretch; margin-inline: 4px; }
.server-search{position:relative;display:block;flex:none}.server-search>input{display:block;width:100%;padding-right:36px}.server-search-icon{position:absolute;right:11px;top:50%;transform:translateY(-50%);width:18px!important;height:18px!important;color:var(--muted);pointer-events:none}

.operations-page{display:flex;flex:1;flex-direction:column;min-height:0;gap:14px;overflow:auto}.operations-modes,.operations-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:none}.operation-services,.operation-snippets{display:flex;flex-direction:column;gap:12px;min-height:120px;max-height:55%;flex-shrink:0}.service-search{width:220px;margin:0 auto 0 0!important}.service-filter{width:100%!important}.service-list,.snippet-list{overflow:auto;min-height:0;background:var(--surface);border:1px solid var(--line);border-radius:7px}.service-row{display:grid!important;grid-template-columns:minmax(150px,1fr) minmax(110px,.6fr) minmax(140px,1.2fr);gap:12px;width:100%;padding:11px 14px!important;border-radius:0!important;border-bottom:1px solid var(--line)!important;text-align:left;min-height:40px!important}.service-row.selected{background:var(--accent-bg)!important}.service-name,.service-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.service-state,.service-description{font-size:var(--font-small);color:var(--muted)}.snippet-row{display:flex;align-items:center;gap:8px;padding:14px;border-bottom:1px solid var(--line)}.snippet-copy{flex:1;min-width:0;gap:5px}.snippet-name{font-weight:600}.snippet-actions{display:flex;gap:4px;opacity:0;pointer-events:none}.snippet-row:hover .snippet-actions,.snippet-row:focus-within .snippet-actions{opacity:1;pointer-events:auto}.operations-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.operations-output{display:block;min-height:130px;max-height:320px;flex:1;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere;font:var(--font-code)/1.7 'Cascadia Code',Consolas,monospace}.command-editor{height:160px!important;min-height:100px;font:var(--font-code)/1.7 'Cascadia Code',Consolas,monospace!important;resize:vertical}.operation-command-preview{display:block;max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:var(--input);border:1px solid var(--line);border-radius:5px;font:var(--font-code)/1.7 'Cascadia Code',Consolas,monospace}.operation-history{display:flex;flex-direction:column;gap:6px;max-height:120px;overflow:auto;flex:none}.operations-toolbar>.subtle{flex:1;min-width:200px}@media(max-width:1100px){.service-row{grid-template-columns:minmax(130px,1fr) 120px}.service-description{display:none}.operation-services,.operation-snippets{max-height:55%}.main-panel>.module-nav{gap:16px;overflow-x:auto}}

.file-context-menu,.file-actions-menu{position:fixed!important;inset:auto;bottom:auto!important;right:auto!important;min-width:205px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow-y:auto;z-index:80}.file-menu-group{display:flex;flex-direction:column;gap:2px}.pane-menu .menu-item:focus-visible{background:var(--accent-bg)!important;outline:1px solid var(--line-hover);outline-offset:-1px}.menu-divider{height:1px;min-height:1px;margin:4px 3px;background:var(--line)}.file-properties{display:block;white-space:pre-wrap;overflow-wrap:anywhere;max-height:55vh;overflow:auto;font-size:var(--font-label);line-height:1.9}

.pane-menu .menu-item{min-height:30px!important;padding:6px 9px!important;font-size:var(--font-label)!important}
.file-delete-body{display:flex;flex-direction:column;gap:14px}.file-delete-body .file-properties{padding:10px 12px;border:1px solid var(--line);border-radius:5px;max-height:40vh}
.files-workspace{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.files-workspace>.panes{flex:1;min-height:0}.file-task-status{display:flex;align-items:center;gap:12px;padding:10px 14px;margin-bottom:10px;border:1px solid var(--line);border-radius:6px;background:var(--accent-bg)}.file-task-progress{display:block;flex:1;white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--font-label);line-height:1.6;max-height:80px;overflow:auto}.file-task-status .file-task-progress{max-height:44px}.file-type,.column-type{width:82px;flex:0 0 82px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-permissions,.column-permissions{width:72px;flex:0 0 72px;text-align:right;font-variant-numeric:tabular-nums}.file-type,.file-permissions{font-size:var(--font-small);color:var(--muted)}.column-type,.column-permissions{font-size:var(--font-small);color:var(--muted);padding-right:4px}.icons-view .file-type,.icons-view .file-permissions{display:none!important}.column-settings{display:grid;grid-template-columns:1fr 1fr;gap:10px}.column-settings>div:first-child,.column-settings>div:nth-child(2){grid-column:1/-1}.column-option{padding:12px 14px!important;text-align:left!important;border:1px solid var(--line)!important;border-radius:6px!important;min-height:40px!important}.column-option.active{background:var(--accent-bg)!important;border-color:var(--line-hover)!important;color:var(--accent)!important}.properties-layout{display:flex;flex-direction:column;gap:18px}.property-identity{display:flex;align-items:center;gap:12px}.property-identity>div:nth-child(2){flex:1;min-width:0}.property-name{font-size:var(--font-section);font-weight:600;overflow-wrap:anywhere}.property-identity .action-glyph{width:28px;height:28px}.property-details{display:flex;flex-direction:column;gap:12px}.property-detail{display:flex;align-items:flex-start;gap:14px}.property-label{flex:0 0 112px;font-size:var(--font-label);color:var(--muted)}.property-value{min-width:0;flex:1;font-size:var(--font-label);white-space:pre-wrap;overflow-wrap:anywhere;max-height:130px;overflow:auto;line-height:1.6}.permissions-panel{display:flex;flex-direction:column;gap:12px;padding-top:18px;border-top:1px solid var(--line)}.permission-matrix{display:grid!important;grid-template-columns:minmax(100px,1fr) repeat(3,70px);align-items:center;gap:8px;text-align:center;font-size:var(--font-label)}.permission-matrix>div:nth-child(4n+1){text-align:left}.permission-bit{justify-self:center;width:36px;min-height:30px!important;padding:4px!important;border:1px solid var(--line)!important;border-radius:5px!important;font-size:var(--font-body)!important;color:var(--muted)!important}.permission-bit.active{background:var(--accent-bg)!important;border-color:var(--line-hover)!important;color:var(--accent)!important}.permission-mode-row{display:flex;align-items:center;gap:12px;font-size:var(--font-label)}.permission-mode{width:110px!important;flex:none!important;font-family:Consolas,monospace}.property-feedback{font-size:var(--font-label);white-space:pre-wrap;line-height:1.6;color:var(--muted)}
.property-identity .icon-button .action-glyph{width:14px;height:14px}.permission-matrix{text-align:left!important}.permission-matrix>span{justify-self:start}
.permission-check{justify-self:center;accent-color:var(--accent);cursor:pointer}.column-option{display:flex;align-items:center;gap:10px;accent-color:var(--accent)}
.column-settings{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}.column-settings>.subtle,.column-settings>.column-hint{grid-column:1/-1}.column-option{justify-content:flex-start!important;min-height:38px!important;padding:10px 12px!important}.column-option input[type=checkbox]{flex:0 0 16px!important;width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;margin:0!important}.permission-check{display:flex!important;align-items:center;justify-content:center;min-height:30px;padding:4px!important}.permission-check input[type=checkbox]{flex:none!important;width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;margin:0!important}.permission-matrix .permission-column-label{justify-self:center!important}
.preferences-stack{display:flex;flex-direction:column;gap:12px}.preference-check{display:flex;align-items:center;gap:8px;min-height:30px}.preference-check input[type=checkbox]{flex:none!important;width:16px!important;height:16px!important;min-height:16px!important;margin:0!important;padding:0!important;accent-color:var(--accent)}.preference-preview{padding:10px 12px;border:1px solid var(--line);border-radius:5px;font-size:var(--font-label);background:var(--input)}.server-editor-tabs{display:flex;gap:12px;border-bottom:1px solid var(--line);flex:none}.editor-discard{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--line);border-radius:5px}.update-version{font-size:var(--font-body);font-weight:600}.update-status{font-size:var(--font-label)}.update-download,.update-release{display:flex;flex-direction:column;gap:10px}.update-notes{font-size:var(--font-label);line-height:1.7;white-space:pre-wrap;max-height:180px;overflow:auto}.update-error:empty{display:none}.update-progress{height:5px;min-height:5px;background:var(--line);border-radius:4px;overflow:hidden}.update-progress>div{height:100%;background:var(--accent)}.update-install-overlay{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:var(--bg);font-size:var(--font-body)}
.update-banner{position:fixed;right:24px;bottom:24px;z-index:90;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 48px);padding:12px 16px;border:1px solid var(--line);border-radius:7px;background:var(--surface);box-shadow:0 8px 28px #0003;font-size:var(--font-label)}.update-banner>span{flex:1;min-width:0}
.workspace-content .settings-section{min-height:0;gap:18px;padding:24px 28px}.about-product{display:flex;align-items:center;gap:14px}.about-identity{display:flex;flex-direction:column;gap:6px}.about-name{font-size:19px;font-weight:600}.log-error{white-space:pre-wrap;overflow-wrap:anywhere}.settings-footer{flex:none}.preference-preview{color:var(--muted)}@media(max-width:850px){.workspace-content .settings-section{padding:18px}.file-picker-field{flex-wrap:wrap}.file-picker-field>input{flex-basis:100%}}
.server-tree .host-select:focus,.server-tree .host-select:focus-visible,.server-tree .group-button:focus,.server-tree .group-button:focus-visible{outline:none!important;box-shadow:none!important}.keyboard-navigation .server-tree .host-row:has(>.host-select:focus),.keyboard-navigation .server-tree .tree-folder-row:has(>.group-button:focus){outline:1px solid var(--accent);outline-offset:-1px}

.script-page,.tasks-page{padding:20px;display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:0}
.global-toolbar,.script-row-heading,.script-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.global-toolbar input{flex:1;min-width:160px}.script-row,.task-entry{border-bottom:1px solid var(--line);padding:14px 0;display:flex;flex-direction:column;gap:10px}.script-row-heading{justify-content:space-between}.script-code{white-space:pre-wrap;overflow-wrap:anywhere;font-family:Consolas,monospace;font-size:var(--font-label);max-height:240px;overflow:auto;user-select:text;padding:10px;background:var(--input)}.script-target-picker{display:flex;flex-direction:column;gap:7px;padding:10px 0;border-top:1px solid var(--line)}.target-choice,.task-heading{text-align:left;white-space:normal;padding:10px;background:transparent;color:inherit;border:1px solid var(--line);border-radius:6px}.target-choice.active{border:1px solid var(--accent)!important;background:var(--raised)!important}.task-target{display:flex;flex-direction:column;gap:6px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:6px}.task-target .subtle{overflow-wrap:anywhere}.task-status{font-size:var(--font-label);color:var(--accent)}

.backup-page{padding:20px;display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:0}.backup-snapshot{display:flex;flex-direction:column;gap:6px;padding:12px 0;border-top:1px solid var(--line)}.backup-excludes{min-height:74px!important}.backup-policy .subtle{overflow-wrap:anywhere}
.snapshot-file-list{display:flex;flex-direction:column;gap:8px;max-height:340px;overflow:auto;min-height:0}.snapshot-file-row{display:flex;flex-direction:column;gap:5px;padding:8px;border:1px solid var(--line);border-radius:5px}.snapshot-file-path,.snapshot-selected-paths,.snapshot-restore-selection,.snapshot-files-summary{overflow-wrap:anywhere;white-space:pre-wrap}.snapshot-files-browser .script-actions{flex-wrap:wrap}.snapshot-file-select.active{border-color:var(--accent)}
.task-target-selection{min-width:0}.target-group-filters,.target-selection-actions{flex-wrap:wrap}.task-target-list{display:flex;flex-direction:column;gap:10px;max-height:440px;overflow:auto;min-height:0;padding:2px}.task-target-list .script-target-picker{padding:10px;border:1px solid var(--line);border-radius:6px}.task-target-list .target-choice{white-space:normal;overflow-wrap:anywhere;text-align:left}.target-selection-summary,.target-group-name{overflow-wrap:anywhere}.target-selection-warning{border-left:3px solid var(--accent);padding-left:9px}

.backup-progress-track{height:5px;background:var(--line);overflow:hidden;border-radius:3px}.backup-progress-fill{height:5px;background:var(--accent);border-radius:3px}

.backup-confirmations{white-space:pre-wrap;line-height:1.8}
.audit-policy-fields{display:flex;gap:12px;flex-wrap:wrap}.audit-policy-fields>.field{flex:1;min-width:160px}

.server-records-page{display:flex;flex-direction:column;gap:10px}.server-records-page>.context-hint{padding:0 2px;line-height:1.6}.server-records-page .global-toolbar{flex-wrap:wrap}.server-record-group{display:flex;flex-direction:column;gap:9px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.record-query-time{overflow-wrap:anywhere}.server-record-list{display:flex;flex-direction:column;gap:5px;max-height:540px;overflow:auto}.server-task-record{display:grid!important;grid-template-columns:minmax(0,1fr) 170px 70px 125px;align-items:center;gap:10px;padding:10px 8px;border-top:1px solid var(--line)}.record-copy{min-width:0;overflow-wrap:anywhere;display:flex;flex-direction:column;gap:4px}.record-name{font-weight:600}.record-result{min-width:0;overflow-wrap:anywhere}.record-status,.record-log-size{white-space:nowrap}.server-record-group>.subtle{overflow-wrap:anywhere}.record-id{font-size:var(--font-small)}.record-target-picker{display:flex;flex-direction:column;gap:8px}.record-target{width:100%;text-align:left!important;padding:10px!important;border:1px solid var(--line)!important}.record-target.active{border-color:var(--accent)!important;background:var(--accent-bg)!important}.record-saved-output{max-height:45vh;min-height:120px;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap}@media(max-width:1050px){.server-task-record{grid-template-columns:minmax(0,1fr) 125px}.record-copy{grid-column:1;grid-row:1}.record-result{grid-column:2;grid-row:1}.record-log-size{grid-column:1;grid-row:2}.record-log-action{grid-column:2;grid-row:2}}


.record-storage-page{display:flex;flex-direction:column;gap:12px}.storage-server-group{display:flex;flex-direction:column;gap:9px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.storage-server-group>.subtle{overflow-wrap:anywhere}.storage-record-list{display:flex;flex-direction:column;max-height:470px;overflow:auto}.storage-record{display:grid!important;grid-template-columns:minmax(0,1fr) 140px 110px;gap:12px;align-items:center;padding:12px 4px;border-top:1px solid var(--line)}.storage-record-copy{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}.storage-record-title{font-weight:600}.storage-record-id{font-size:var(--font-small)}.storage-reasons,.storage-reference-issues{white-space:pre-wrap;overflow-wrap:anywhere}.storage-reasons:empty,.storage-reference-issues:empty{display:none}.storage-record-select.active{border-color:var(--accent)!important;background:var(--accent-bg)!important}.storage-record-bytes{overflow-wrap:anywhere}.storage-preview{display:flex;flex-direction:column;gap:10px;padding:14px 0;border-top:1px solid var(--line)}.storage-preview-objects{max-height:360px!important}@media(max-width:1050px){.storage-record{grid-template-columns:minmax(0,1fr) 120px}.storage-record-copy{grid-column:1;grid-row:1}.storage-record-bytes{grid-column:1;grid-row:2}.storage-record-select{grid-column:2;grid-row:1 / span 2}}


.cleanup-reports-page{display:flex;flex-direction:column;gap:12px}.cleanup-report-group{display:flex;flex-direction:column;gap:9px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.cleanup-report-group>.subtle{overflow-wrap:anywhere}.cleanup-report-list{display:flex;flex-direction:column;max-height:480px;overflow:auto}.cleanup-report-row{display:grid!important;grid-template-columns:minmax(0,1fr) 170px;gap:12px;align-items:center;padding:12px 4px;border-top:1px solid var(--line)}.cleanup-report-copy{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}.cleanup-report-id{font-weight:600}.cleanup-detail{display:flex;flex-direction:column;gap:9px;padding-top:12px;border-top:1px solid var(--line)}.cleanup-detail-body{max-height:420px!important;overflow-wrap:anywhere;white-space:pre-wrap}.cleanup-report-target.active{border-color:var(--accent)!important;background:var(--accent-bg)!important}@media(max-width:1050px){.cleanup-report-row{grid-template-columns:minmax(0,1fr) 140px}}
.cleanup-detail-server,.residual-recovery-row>.subtle{overflow-wrap:anywhere}.residual-recovery-list{display:flex;flex-direction:column;gap:8px}.residual-recovery-row{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--line);border-radius:6px}.residual-recovery-row>.hint:empty{display:none}.residual-release-select.active{border-color:var(--accent)!important;background:var(--accent-bg)!important}
.installation-report:empty,.installation-scope:empty{display:none}.installation-report{max-height:420px!important;white-space:pre-wrap;overflow-wrap:anywhere}.installation-scope{white-space:pre-wrap;overflow-wrap:anywhere}
.drill-report:empty{display:none}.drill-report{max-height:520px!important;white-space:pre-wrap;overflow-wrap:anywhere}.drill-form,.drill-check-editor{display:flex;flex-direction:column;gap:10px}.drill-check-editor{padding:12px;border:1px solid var(--line);border-radius:6px}.drill-form .hint{overflow-wrap:anywhere}
.recovery-access-choices{display:flex;flex-direction:column;gap:10px;max-height:220px;overflow:auto}.recovery-access-server{display:flex;flex-direction:column;gap:4px;min-width:0}.recovery-access-server>.subtle,.snapshot-access-summary,.cross-server-recovery-scope{overflow-wrap:anywhere}.snapshot-access-choice{width:100%;text-align:left!important}.repository-access-picker{padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.script-bundle-list{display:flex;flex-direction:column;gap:10px;max-height:48vh;overflow:auto}.script-bundle-entry,.script-share-item{display:flex;flex-direction:column;gap:8px;padding:10px 0;border-top:1px solid var(--line);min-width:0}.script-bundle-choice,.script-share-choice{width:100%;text-align:left!important}.script-bundle-body{max-height:160px!important;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.script-bundle-import-review,.script-bundle-export-review{max-height:55vh!important;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.script-bundle-source,.script-bundle-dialog .hint{white-space:pre-wrap;overflow-wrap:anywhere}.script-bundle-source:empty,.script-bundle-entry>.subtle:empty{display:none}.script-share-editor{padding:8px}.script-share-editor .command-editor{min-height:140px}

.parameter-definition-editor,.parameter-presets {border-top:1px solid var(--line);padding-top:12px;min-width:0;}
.parameter-definition-list {max-height:360px;overflow:auto;gap:16px;min-width:0;}
.parameter-definition {border:1px solid var(--line);border-radius:8px;padding:12px;min-width:0;}
.parameter-definition .script-actions,.parameter-presets .script-actions,.parameter-value .script-actions {flex-wrap:wrap;}
.parameter-presets {padding-bottom:8px;}
.parameter-value-error {color:var(--danger);overflow-wrap:anywhere;}
.parameter-run-form,.parameter-value {min-width:0;}

/* Shared help: a single optional explanation beside a heading or control. */
.help-tip{display:inline-flex;align-items:center;flex:none;min-width:0;vertical-align:middle}
.help-trigger{position:relative;display:inline-flex!important;align-items:center;justify-content:center;width:26px!important;min-width:26px!important;height:26px!important;min-height:26px!important;padding:0!important;border-radius:50%!important;color:var(--muted)!important;font:600 var(--font-label)/1 'Segoe UI',sans-serif!important}
.help-trigger::before{content:'';position:absolute;inset:0;margin:auto;width:17px;height:17px;border:1px solid currentColor;border-radius:50%;pointer-events:none}
.help-trigger:hover,.help-trigger[aria-expanded=true]{background:var(--raised)!important;color:var(--accent)!important}
.help-copy{display:none!important;position:fixed;z-index:250;width:360px;max-width:calc(100vw - 24px);max-height:min(440px,calc(100vh - 32px));overflow:auto;padding:14px 16px;border:1px solid var(--line-hover);border-radius:8px;background:var(--surface);box-shadow:0 8px 28px #0003;color:var(--text);font:400 var(--font-label)/1.65 'Segoe UI','Microsoft YaHei',sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;text-align:left}
.help-copy.help-visible{display:flex!important;flex-direction:column;gap:10px}
.help-title{font-size:var(--font-body);font-weight:600;color:var(--text)}
.help-heading{display:flex;align-items:center;gap:6px;min-width:0}
.settings-card-heading { display: flex; align-items: center; min-width: 0; gap: 6px; }
.settings-reset { display: inline-flex !important; align-items: center; gap: 6px; flex: none; margin-inline-start: auto; }
.settings-reset .action-glyph { width: 14px; height: 14px; }
.context-title.help-heading{justify-content:space-between;gap:8px}
.context-title.help-heading>.help-tip{margin-left:auto}
.field-label{font-size:var(--font-label);line-height:1.5}
input,textarea,select{font:inherit}input{height:36px}textarea{line-height:1.6}
.button{min-height:34px!important}.compact{min-height:30px!important;font-size:var(--font-label)!important}
.context-link,.module-tab{font-size:var(--font-body)!important}
.page-header-title{font-size:var(--font-section)}
.file-row{min-height:38px}.file-name{font-size:var(--font-body)!important}.file-size,.file-modified{font-size:var(--font-small)}
.file-header{height:34px}.file-header button{height:32px!important}.column-modified,.file-modified{width:96px}.column-size,.file-size{width:76px}
.path-input,.breadcrumbs{height:34px}
.script-code:empty{display:none}.target-choice{line-height:1.5!important}
.task-batch-refresh{align-self:flex-start}.task-refresh-target-list{display:flex;flex-direction:column;gap:8px}.task-refresh-reason:empty,.task-query-progress:empty{display:none}
.global-toolbar{row-gap:10px}.script-page,.tasks-page,.backup-page{gap:16px}
@media(max-width:1100px){.column-modified,.file-modified{width:82px}.column-size,.file-size{width:66px}}


.audit-storage-group{border-top:1px solid var(--line);padding:16px 0}.audit-storage-record{display:flex;flex-direction:column;gap:6px;padding:10px 0;border-bottom:1px solid var(--line)}.audit-storage-choice{align-self:flex-start;max-width:100%;overflow-wrap:anywhere}.audit-storage-summary,.audit-storage-protection,.audit-preview-summary{overflow-wrap:anywhere}.audit-storage-preview{padding:12px;border:1px solid var(--line);border-radius:6px}

.audit-storage-group{gap:10px}.audit-storage-list{gap:0}.audit-storage-record{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,2fr);align-items:center;gap:6px 12px;padding:8px 0}.audit-storage-protection{grid-column:1/-1}.audit-storage-protection:empty{display:none}@media(max-width:760px){.audit-storage-record{grid-template-columns:1fr}}

.audit-storage-record>.audit-storage-choice{grid-column:1;grid-row:1}.audit-storage-record>.audit-storage-record-size{grid-column:2;grid-row:1}@media(max-width:760px){.audit-storage-record>.audit-storage-record-size{grid-column:1;grid-row:2}}
.audit-cleanup-details{padding:12px;border:1px solid var(--line);border-radius:6px}.audit-detail-files{max-height:420px;overflow:auto;overflow-wrap:anywhere}.audit-detail-issues:empty{display:none}.audit-detail-open{justify-self:start}
.export-download-files{max-height:180px;overflow:auto;overflow-wrap:anywhere}.export-download-source{overflow-wrap:anywhere}

.server-task-record{grid-template-columns:90px minmax(0,1fr) 150px 70px 125px}.task-stop-select.active{background:var(--accent-bg)!important;border-color:var(--accent)!important}.task-stop-peer{display:flex;flex-direction:column;gap:9px;padding:12px;border:1px solid var(--line);border-radius:6px;min-width:0}.task-stop-peer>.section-title{overflow-wrap:anywhere}.task-stop-inspection{margin:0;max-height:220px}.task-stop-report:empty,.task-stop-peer>.form-error:empty,.task-stop-submitted:empty{display:none}.task-stop-dialog .form-error{font-size:var(--font-label)}@media(max-width:1050px){.server-task-record{grid-template-columns:minmax(0,1fr) 125px}.server-task-record>.task-stop-select{grid-column:1/-1;grid-row:3;justify-self:start}}




.resource-trends{display:flex;flex-direction:column;gap:12px;min-width:0}
.resource-trend-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.resource-trend-toolbar>.help-heading{margin-right:auto}
.resource-trend-plots{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px;min-width:0}
.resource-trend-chart{position:relative;min-width:0;margin:0;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:7px}
.resource-trend-title{font-size:var(--font-body);font-weight:600}
.resource-trend-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:25px;margin-top:5px;font-size:var(--font-label);font-variant-numeric:tabular-nums}
.resource-trend-legend-entry{display:flex;align-items:center;gap:5px;white-space:nowrap}
.resource-trend-swatch{width:20px;border-top:2px solid var(--accent)}
.resource-trend-legend-entry.transmit .resource-trend-swatch{border-color:var(--trend-secondary,#dda44c);border-top-style:dashed}
.resource-trend-chart svg{display:block;width:100%;height:196px;overflow:visible;border-radius:4px;outline-offset:-1px}
.resource-trend-chart svg:focus:not(:focus-visible){outline:none}
.resource-trend-chart svg:focus-visible{outline:1px solid var(--accent)}
.resource-trend-grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 4}
.resource-trend-axis,.resource-trend-empty{fill:var(--muted);font-size:var(--font-small);font-family:inherit}
.resource-trend-empty{font-size:var(--font-label)}
.resource-trend-line{fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.resource-trend-line.transmit{stroke:var(--trend-secondary,#dda44c);stroke-dasharray:5 3}
.resource-trend-marker{fill:var(--accent);stroke:var(--surface);stroke-width:1.5}
.resource-trend-marker.transmit{fill:var(--trend-secondary,#dda44c)}
.resource-trend-crosshair{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}
.resource-trend-tooltip{position:absolute;top:57px;right:auto;max-width:calc(100% - 12px);padding:7px 9px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:4px;box-shadow:0 3px 10px #0002;pointer-events:none;z-index:2;font-size:var(--font-label);line-height:1.6;overflow-wrap:anywhere}
.theme-light{--trend-secondary:#99620c}


.server-environment{font-size:12px;color:var(--accent);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.server-label-filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px;min-width:0}
.server-label-filters>.field{min-width:0}
.server-label-summary{font-size:var(--font-label);min-width:0;overflow-wrap:anywhere}
.server-label-editor .field{min-width:0}
.configuration-backup-counts,.configuration-backup-source-counts,.configuration-backup-current-counts{white-space:pre-wrap;overflow-wrap:anywhere}
.configuration-backup-counts:empty,.configuration-backup-source-counts:empty,.configuration-backup-digest:empty{display:none}
.configuration-backup-digest{font-size:var(--font-small);overflow-wrap:anywhere}
.configuration-backup-json{max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;flex:none}
.script-favorite{display:inline-flex!important;align-items:center;justify-content:center;flex:none;width:28px!important;padding:4px!important}.script-favorite.active{color:var(--accent)!important}.script-row-heading>.help-heading{min-width:0;flex-wrap:wrap}.script-row-heading .section-title{overflow-wrap:anywhere;min-width:0}

.terminal-tabs{display:flex;align-items:center;gap:6px;flex:none;overflow-x:auto;min-width:0;padding:6px 10px;border-bottom:1px solid var(--line)}.terminal-tab-item{display:flex;align-items:center;flex:none;min-width:0;max-width:300px;border:1px solid var(--line);border-radius:5px;overflow:hidden}.terminal-tab{min-width:0!important;max-width:260px;min-height:27px!important;padding:4px 8px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;text-align:left;font-size:var(--font-small)!important;color:var(--muted)!important}.terminal-tab.active{color:var(--accent)!important}.terminal-tab-close{width:24px!important;min-width:24px!important;height:27px!important;min-height:27px!important;border-radius:0!important;flex:none}
.terminal-tab-item:has(> .terminal-tab.active) {
  background: var(--accent-bg);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
}

.terminal-tabs{overflow:hidden}.terminal-tab-list{display:flex;align-items:center;gap:6px;flex:1;min-width:0;overflow-x:auto}.terminal-tab-id{display:none!important}.terminal-new-tab{flex:none!important;margin-left:4px}

/* Terminal context menus share the file menu surface and shortcut columns. */
.terminal-menu-dismiss{position:fixed;inset:0;z-index:80;width:100%!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:transparent!important;font-size:0!important;cursor:default}.terminal-context-menu{position:fixed!important;left:8px;top:8px;right:auto!important;bottom:auto!important;min-width:248px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;z-index:81!important;margin:0!important}.terminal-menu-group{display:flex;flex-direction:column;gap:2px}.terminal-context-menu .terminal-menu-action{display:flex!important;align-items:center;justify-content:space-between;gap:24px;min-height:30px!important;padding:6px 9px!important;font-size:var(--font-label)!important}.terminal-menu-label{flex:1;min-width:0;text-align:left;white-space:nowrap}.terminal-menu-shortcut{flex:none;color:var(--faint);font-size:var(--font-small);font-variant-numeric:tabular-nums;white-space:nowrap}.terminal-context-menu .terminal-menu-action:disabled .terminal-menu-shortcut{opacity:.55}.terminal-context-menu .terminal-menu-action:focus-visible{outline:1px solid var(--accent);outline-offset:-2px;background:var(--raised)!important}.terminal-context-menu .terminal-menu-danger{color:var(--danger)!important}.terminal-menu-hint{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:4px;padding:7px 9px 4px;border-top:1px solid var(--line);color:var(--muted);font-size:var(--font-small);white-space:nowrap}

/* Current server port inventory. */
.resource-ports{display:flex;flex-direction:column;gap:10px;flex:none;min-width:0}
.resource-ports-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}.resource-ports-admin{flex:none}.resource-ports-refresh{margin-inline-start:auto}.resource-ports-status{font-variant-numeric:tabular-nums}.resource-ports-notice:empty,.resource-ports-warning:empty{display:none}
.resource-ports-table{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:5px;overflow:hidden}.resource-port-header,.resource-port-holder{display:flex;align-items:center;gap:12px;padding:6px 10px;min-width:0;flex:none}.resource-port-header{background:var(--raised);color:var(--muted);font-size:var(--font-small)}.resource-port-rows{display:flex;flex-direction:column;max-height:420px;overflow:auto;min-height:0}.resource-port-row{display:flex;flex-direction:column;border-top:1px solid var(--line);flex:none}.resource-port-row:first-child{border-top:0}.resource-port-holder{min-height:38px;font-size:var(--font-label)}.resource-port-endpoint{flex:0 0 195px;min-width:0;overflow-wrap:anywhere;font:var(--font-code)/1.45 Consolas,monospace}.resource-port-program{flex:0 0 150px;min-width:0;overflow-wrap:anywhere}.resource-port-details{flex:1;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap;font-size:var(--font-small);color:var(--muted);line-height:1.5}.resource-port-action,.resource-port-kill{flex:0 0 90px}.resource-port-kill{min-height:26px!important;padding:3px 7px!important;font-size:var(--font-small)!important}.resource-port-unavailable{flex:1;color:var(--muted);font-size:var(--font-small)}.resource-port-holder-limit{padding:0 10px 6px}.resource-port-confirm-target{padding:10px;border:1px solid var(--line);border-radius:5px;white-space:pre-wrap;overflow-wrap:anywhere;font:var(--font-code)/1.7 Consolas,monospace}
@container monitor-processes (max-width: 660px){.resource-port-header{display:none!important}.resource-port-holder{flex-wrap:wrap;gap:5px 10px}.resource-port-endpoint{flex:1 1 190px}.resource-port-program{flex:1 1 140px}.resource-port-details{flex:1 1 calc(100% - 110px);order:2}.resource-port-kill{order:3}}
.resource-ports-filter-field{flex:1 1 180px;min-width:0;max-width:360px}.resource-ports-password-field{flex:1 1 180px;min-width:0;max-width:280px}.resource-ports-search,.resource-ports-password{width:100%;min-width:0}.resource-ports-admin{margin-bottom:5px}
/* Keep Sapid's native checks compact beside their labels. */
.resource-ports-admin,.resource-port-confirm-admin{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-height:28px!important;color:var(--text)!important;font-size:var(--font-label)!important;line-height:1.5!important}
.resource-ports-admin input[type=checkbox],.resource-port-confirm-admin input[type=checkbox]{flex:0 0 18px!important;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;margin:0!important;accent-color:var(--accent)}
.resource-ports-admin>span,.resource-port-confirm-admin>span{color:inherit!important;min-width:0;overflow-wrap:anywhere}.resource-ports-admin:has(input:disabled),.resource-port-confirm-admin:has(input:disabled){opacity:.55}
/* Server workspaces: browser tabs, a quiet Home, and a desktop application shell. */
.workbench-tabs{display:flex;align-items:flex-end;gap:5px;flex:none;min-height:46px;padding:7px 20px 0;background:var(--nav-bg);border-bottom:1px solid var(--line);overflow-x:auto;overflow-y:hidden}
.workbench-tab{display:flex;align-items:center;flex:none;min-width:132px;max-width:240px;height:38px;border:1px solid transparent;border-bottom:0;border-radius:9px 9px 0 0;position:relative;color:var(--muted)}
.workbench-tab:hover{background:var(--raised)}.workbench-tab.active{background:var(--surface);border-color:var(--line);color:var(--text)}.workbench-tab.active::after{position:absolute;content:'';bottom:-1px;height:2px;left:0;right:0;background:var(--surface)}
.workbench-tab-select{display:flex!important;gap:9px;align-items:center;flex:1;min-width:0;min-height:37px!important;padding:8px 15px!important;font-size:13px!important;white-space:nowrap;color:inherit!important;text-align:left}.workbench-tab-select>.action-glyph{width:15px;height:15px;color:var(--muted)}.workbench-tab.active .workbench-tab-select>.action-glyph{color:var(--accent)}
.workbench-tab-close{width:24px!important;height:24px!important;min-width:24px!important;margin-right:7px;padding:5px!important}.workbench-tab-close:hover{background:var(--raised)!important}
.workspace-content:has(>.server-desktop:not(.hidden)){padding:0;gap:0}.workspace-content:has(>.files-module){padding:18px 20px;gap:14px}.workspace-content>.files-module{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0}
.workspace-content:has(>.server-desktop:not(.hidden))>.notice{margin:12px 18px}.server-landing{justify-content:flex-start;align-items:center}.server-overview{width:100%;max-width:860px;margin-block:auto;flex-shrink:0;padding:36px!important;gap:22px!important}.server-overview .home-title{font-size:30px}.server-overview .home-description{font-size:14px}.server-overview .server-facts{margin:4px 0!important;padding:22px 0!important}.server-overview .home-actions{margin:0}.server-overview .overview-footnote{margin-top:0;font-size:12px}
.workspace-entries{display:grid!important;grid-template-columns:1fr 1fr;gap:14px;flex:none}.workspace-entry{display:grid!important;grid-template-columns:40px minmax(0,1fr) 16px;grid-template-rows:auto auto;align-items:center;column-gap:16px;row-gap:7px;min-height:108px!important;padding:20px!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:10px!important;text-align:left;transition:background 150ms,border-color 150ms,box-shadow 150ms;min-width:0}.workspace-entry:hover{background:var(--raised)!important;border-color:var(--accent)!important;box-shadow:0 4px 16px #1226430a!important}.entry-desktop{background:var(--accent-bg)!important;border-color:color-mix(in srgb,var(--accent) 30%,var(--line))!important}.entry-title{font-size:16px;font-weight:600;color:var(--text)}.entry-description{font-size:12px;line-height:1.7;color:var(--muted);white-space:normal}.workspace-entry>.action-glyph{width:16px;height:16px;flex:none;color:var(--accent)}.workspace-entry>.action-glyph:first-child{display:block;width:28px;height:28px;grid-column:1;grid-row:1 / 3;justify-self:center;align-self:center}.workspace-entry>.entry-title{grid-column:2;grid-row:1;align-self:end}.workspace-entry>.entry-description{grid-column:2;grid-row:2;align-self:start}.workspace-entry>.action-glyph:last-child{grid-column:3;grid-row:1 / 3}
.workspace-reconnect{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:18px;text-align:center;padding:24px}.workspace-reconnect>.action-glyph{width:38px;height:38px;color:var(--accent)}
/* Server desktop */
.server-desktop {
  --desktop-ink: #eef6ff;
  --desktop-labeled-hover: #ffffff12;
  --desktop-labeled-line: #ffffff22;
  --desktop-dock-fill: #101c3166;
  --desktop-dock-line: #aec5f034;
  --desktop-tooltip: #22334c;
  --desktop-tooltip-ink: #f1f7ff;
  --desktop-active: #a2e7e3;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #101b30;
}
.desktop-light {
  --desktop-ink: #23425e;
  --desktop-labeled-hover: #3f619516;
  --desktop-labeled-line: #3d5b8c27;
  --desktop-dock-fill: #f7fbff66;
  --desktop-dock-line: #81a1bf53;
  --desktop-tooltip: #20364d;
  --desktop-tooltip-ink: #f4f9ff;
  --desktop-active: #237b9c;
}
.desktop-menubar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 34px;
  min-height: 34px;
  flex: none;
  padding: 0 16px;
  background: #101b30;
  color: #d3deef;
  border-bottom: 1px solid #ffffff14;
}
.desktop-menubar-title { font-weight: 500; font-size: 12px; }
.desktop-secure { display: flex; align-items: center; gap: 7px; white-space: nowrap; color: #a9e0ce; font-size: 12px; }
.desktop-secure::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #77d6b4; }
.desktop-canvas {
  container: desktop-dock-space / inline-size;
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: clip;
  background: radial-gradient(ellipse at 94% 8%, #413e8d66, transparent 52%),
    radial-gradient(ellipse at 85% 100%, #156573a8, transparent 60%),
    linear-gradient(133deg, #1c3151, #111e36 52%, #142d46);
}
.modal-backdrop {
  --modal-edge: 24px;
  --modal-max-width: min(100%, 80vw);
  --modal-max-height: min(100%, 80vh);
}
.modal-backdrop > .modal-card {
  max-width: var(--modal-max-width);
  max-height: min(var(--modal-max-height), var(--modal-initial-height-limit, 100%));
}
.modal-backdrop[data-modal-sized] > .modal-card {
  min-width: min(var(--modal-min-width, 280px), var(--modal-max-width));
  min-height: min(var(--modal-min-height, 150px), var(--modal-max-height));
  max-height: var(--modal-max-height);
}
.modal-backdrop[data-modal-sized] > .modal-card > .modal-body { flex: 1; }
.modal-header { cursor: grab; touch-action: none; }
.modal-header .sapid-close-button:focus { outline: none; }
.keyboard-navigation .modal-header .sapid-close-button:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: -1px;
}
.modal-header[data-dragging] { cursor: grabbing; }
.modal-backdrop[data-modal-moved] {
  container-type: size;
  align-items: flex-start;
  justify-content: flex-start;
}
.modal-backdrop[data-modal-moved] > .modal-card {
  /* The content box excludes the Dock. Its outer padding is also available to drag into. */
  translate:
    clamp(calc(-1 * var(--modal-edge)), var(--modal-x), calc(100cqw - 100% + var(--modal-edge)))
    clamp(calc(-1 * var(--modal-edge)), var(--modal-y), calc(100cqh - 100% + var(--modal-edge)));
}
.desktop-modal-backdrop {
  --modal-max-width: min(100%, calc(var(--desktop-frame-width, 100vw) * .8));
  --modal-max-height: min(100%, calc(var(--desktop-frame-height, 100vh) * .8));
  --modal-edge: clamp(8px, 1.5vw, 18px);
  inset: var(--desktop-frame-inset, 100% 0 0);
  padding: var(--modal-edge);
  padding-left: calc(var(--modal-edge) + var(--desktop-dock-left, 0px));
  padding-right: calc(var(--modal-edge) + var(--desktop-dock-right, 0px));
  padding-bottom: calc(var(--modal-edge) + var(--desktop-dock-bottom, 0px));
  overflow: hidden;
}
.desktop-modal-backdrop .modal-card {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
  border-color: var(--line);
}
.desktop-modal-backdrop .modal-header { padding-block: 12px; }
.desktop-modal-backdrop .modal-footer { flex-wrap: wrap; padding-block: 10px; }
.modal-footer:empty { display: none !important; }
.desktop-modal-backdrop .modal-body { overscroll-behavior: contain; }
.desktop-modal-backdrop .desktop-apps-dialog { width: 640px; --modal-initial-height-limit: 580px; }
.desktop-apps-dialog .modal-body { padding: 0; overflow: hidden; }
.desktop-app-catalog {
  display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0;
  padding: 14px; gap: 12px; color: var(--text); background: var(--bg);
}
.desktop-app-catalog-search {
  display: flex; flex: none; align-items: center; gap: 9px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--input); color: var(--muted);
}
.desktop-app-catalog-search:focus-within { border-color: var(--accent); }
.desktop-app-catalog-search input {
  flex: 1; min-width: 0; height: 37px; padding: 0; border: 0; background: transparent;
}
.desktop-app-catalog-scroll { min-height: 0; overflow-y: auto; scrollbar-gutter: stable both-edges; }
.desktop-app-catalog-grid {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 96px), 1fr)); gap: 8px;
}
.desktop-app-catalog-item {
  display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 8px; min-height: 92px; min-width: 0; padding: 10px 4px !important; border-radius: 10px !important;
}
.desktop-app-catalog-item:is(:hover, :focus-visible) { background: var(--raised) !important; }
.desktop-app-catalog-item .desktop-app-icon { --app-tile-size: 48px; border-radius: 13px; }
.desktop-app-catalog-item .desktop-app-label { max-width: 100%; overflow-wrap: anywhere; }
.desktop-app-catalog-empty { padding: 16px 4px; color: var(--muted); font-size: var(--font-label); }
.desktop-canvas :is(.file-context-menu, .file-actions-menu, .terminal-context-menu) {
  min-width: min(var(--desktop-menu-min, 205px), calc(var(--desktop-frame-width) - 16px));
  max-width: calc(var(--desktop-frame-width) - 16px);
  max-height: calc(var(--desktop-frame-height) - 16px);
}
.desktop-canvas .terminal-context-menu { --desktop-menu-min: 248px; }
:is(.file-context-menu, .file-actions-menu) > .file-menu-group { flex: none; }
:is(.file-context-menu, .file-actions-menu) > .file-menu-group + .file-menu-group {
  border-block-start: 1px solid var(--line);
  margin-block-start: 2px;
  padding-block-start: 4px;
}
.file-open-branch { min-width: 0; }
:is(.files-pane, .files-inactive-preview) { --file-icon-size: var(--files-icon-preview, var(--saved-file-size, 48px)); }
.files-pane.icons-view .file-list, .files-inactive-preview.icons-view {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--file-icon-size) + 56px)), 1fr));
}
.files-pane.icons-view .file-row { height: calc(var(--file-icon-size) + 66px); min-height: calc(var(--file-icon-size) + 66px); }
.file-entry-icon.hidden-file-icon { opacity: .6; }
:is(.files-pane, .files-inactive-preview).icons-view .file-entry-icon { width: var(--file-icon-size) !important; height: var(--file-icon-size) !important; }
.file-view-heading { padding: 4px 8px; font-size: var(--font-small); color: var(--muted); }
.file-view-sizes { padding-inline: 4px; }
.file-size-presets { display: flex; gap: 3px; }
.file-size-presets .menu-item { min-width: 0; flex: 1; padding: 4px 6px !important; text-align: center !important; white-space: nowrap; }
.file-size-presets [aria-pressed=true], .file-view-choice[aria-pressed=true] { background: var(--accent-bg) !important; color: var(--accent) !important; }
.file-view-choice[aria-pressed=true]::after { content: '✓' / ''; float: right; }
.pane-menu :is(.file-open-trigger, .file-open-app) { display: flex; align-items: center; gap: 8px; }
.file-open-trigger .action-glyph { margin-inline-start: auto; }
.file-open-trigger[aria-expanded=true] { background: var(--raised) !important; }
.file-open-submenu {
  position: fixed !important; inset: auto; z-index: 81;
  min-width: min(182px, var(--file-submenu-max-width, 100vw));
  max-width: var(--file-submenu-max-width, 100vw);
  max-height: var(--file-submenu-max-height, 100vh);
  overflow: auto;
}
.file-open-branch:not([data-submenu-open]) > .file-open-submenu { display: none !important; }
.file-open-submenu:not(:has(.file-open-app)) > .menu-divider { display: none; }
.file-open-submenu .menu-item { white-space: normal; }
:is(.desktop-canvas, .desktop-modal-backdrop) .help-copy {
  max-width: calc(var(--desktop-frame-width) - 24px);
  max-height: min(440px, calc(var(--desktop-frame-height) - 24px));
}
.desktop-wallpaper-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.desktop-wallpaper-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wallpaper-seaside, .wallpaper-seaside-sunrise {
  background: #dfb99e url("/wallpapers/seaside-sunrise.webp") center / cover no-repeat;
}
.desktop-dark .wallpaper-seaside, .wallpaper-seaside-moonrise {
  background: #222d42 url("/wallpapers/seaside-moonrise.webp") center / cover no-repeat;
}
.wallpaper-aurora, .wallpaper-aurora-light {
  background: #8594ae url("/wallpapers/aurora-twilight.webp") center / cover no-repeat;
}
.desktop-dark .wallpaper-aurora, .wallpaper-aurora-dark {
  background: #142537 url("/wallpapers/aurora-night.webp") center / cover no-repeat;
}
.wallpaper-fjord, .wallpaper-fjord-light {
  background: #91b1bc url("/wallpapers/fjord-daylight.webp") center 60% / cover no-repeat;
}
.desktop-dark .wallpaper-fjord, .wallpaper-fjord-dark {
  background: #102736 url("/wallpapers/fjord.webp") center 60% / cover no-repeat;
}
.desktop-wallpaper-copy {
  position: absolute;
  right: calc(clamp(20px, 5vw, 84px) + var(--desktop-dock-right, 0px));
  top: 36%;
  width: min(48%, 500px);
  text-align: right;
  pointer-events: none;
}
.desktop-wallpaper-name {
  font-size: clamp(20px, 2.5cqi, 30px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--desktop-ink);
  overflow-wrap: anywhere;
}
.desktop-wallpaper-mode { color: var(--desktop-ink); margin-top: 3px; font-size: 15px; line-height: 1.35; font-weight: 500; }
.desktop-wallpaper-mode:empty { display: none; }
.desktop-wallpaper-address { color: var(--desktop-ink); opacity: .9; margin-top: 7px; font-size: 12px; line-height: 1.45; text-wrap: pretty; overflow-wrap: anywhere; }
.desktop-canvas:has(.desktop-wallpaper-image, .wallpaper-seaside, .wallpaper-aurora, .wallpaper-fjord) :is(.desktop-wallpaper-name, .desktop-wallpaper-mode, .desktop-wallpaper-address, .desktop-shortcut .desktop-app-label) {
  color: #fff; text-shadow: 0 1px 3px #000, 0 1px 12px #000c;
}
.desktop-shortcuts {
  --shortcut-icon-size: var(--desktop-icon-preview, var(--desktop-icon-ideal, 55px));
  --shortcut-label-height: 44px;
  --shortcut-button-padding: 3px;
  --shortcut-cell-width: max(60px, calc(var(--shortcut-icon-size) + 24px));
  --shortcut-cell-height: calc(var(--shortcut-icon-size) + var(--shortcut-label-height));
  --shortcut-gap: clamp(4px, calc(var(--shortcut-icon-size) * .125), 8px);
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: var(--shortcut-cell-width);
  grid-template-rows: repeat(auto-fill, var(--shortcut-cell-height));
  align-content: start;
  gap: var(--shortcut-gap);
  position: absolute;
  left: var(--desktop-dock-left, 0px);
  right: var(--desktop-dock-right, 0px);
  top: 0;
  bottom: var(--desktop-dock-bottom, 88px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding-block: calc((var(--shortcut-label-height) + var(--shortcut-gap)) / 2 - var(--shortcut-button-padding) - 1px);
  padding-inline: calc(var(--shortcut-gap) / 2);
}
.desktop-icon-slot { position: relative; min-width: 0; min-height: 0; }
.desktop-shortcuts .desktop-icon-slot > .desktop-shortcut {
  align-self: center;
  flex: none;
  width: calc(100% - 4px);
}
.desktop-icon-slot[data-desktop-dragging] { opacity: .55; }
.desktop-icon-slot[data-desktop-drop]::after { content: ''; position: absolute; inset: 6px auto 6px -3px; width: 2px; background: var(--desktop-active); border-radius: 3px; pointer-events: none; }
.desktop-icon-slot[data-desktop-drop=after]::after { left: auto; right: -3px; }
.desktop-shortcuts .desktop-icon-slot[data-desktop-drop]::after { inset: -3px 10px auto; height: 2px; width: auto; }
.desktop-shortcuts .desktop-icon-slot[data-desktop-drop=after]::after { top: auto; bottom: -3px; }
.desktop-shortcuts.icons-by-row {
  grid-auto-flow: row; grid-template-columns: repeat(auto-fill, var(--shortcut-cell-width));
  grid-auto-rows: var(--shortcut-cell-height); grid-template-rows: none; overflow-x: hidden; overflow-y: auto;
}
.desktop-shortcuts.icons-from-right { direction: rtl; }
.desktop-shortcuts.icons-from-right .desktop-shortcut { direction: ltr; }
.desktop-shortcuts.icons-by-row .desktop-icon-slot[data-desktop-drop]::after {
  inset: 6px auto 6px -3px; width: 2px; height: auto;
}
.desktop-shortcuts.icons-by-row .desktop-icon-slot[data-desktop-drop=after]::after,
.desktop-shortcuts.icons-by-row.icons-from-right .desktop-icon-slot[data-desktop-drop=before]::after {
  left: auto; right: -3px;
}
.desktop-shortcuts.icons-by-row.icons-from-right .desktop-icon-slot[data-desktop-drop=after]::after {
  left: -3px; right: auto;
}
.desktop-shortcuts.icons-small { --desktop-icon-ideal: 40px; }
.desktop-shortcuts.icons-large { --desktop-icon-ideal: 64px; }
.desktop-canvas[data-files-item-target]::after {
  content: ''; position: absolute; inset: 4px; border: 2px solid var(--accent);
  border-radius: 8px; pointer-events: none; z-index: 41;
}
.desktop-alias-mark::after {
  content: '↗'; position: absolute; bottom: 0; right: 0; border-radius: 4px;
  padding: 1px 3px; background: var(--surface); color: var(--text);
  font: 600 12px/1.1 system-ui, sans-serif;
}
.desktop-shortcut {
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  min-width: 0 !important;
  padding: var(--shortcut-button-padding, 3px) 4px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  color: var(--desktop-ink) !important;
}
.desktop-shortcut:hover, .desktop-shortcut:focus-visible {
  background: var(--desktop-labeled-hover) !important;
  border-color: var(--desktop-labeled-line) !important;
}
.desktop-app-icon {
  display: grid !important;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  position: relative;
  flex: none;
  width: var(--app-tile-size, 55px);
  height: var(--app-tile-size, 55px);
  border-radius: 16px;
  border: 1px solid #ffffff36;
  background: linear-gradient(145deg, var(--tile-tint), var(--tile-shade));
  color: #fff;
  box-shadow: inset 0 1px #ffffff2b, 0 5px 12px #0a132e40;
}
[data-desktop-icon-style=filled] .desktop-app-icon { background: var(--tile-shade, #35465d); }
.desktop-app-icon::before {
  content: '';
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  background: currentColor;
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
}
.desktop-shortcut .desktop-app-icon {
  --app-tile-size: var(--shortcut-icon-size); border-radius: 29%;
}
.desktop-shortcut .desktop-app-label {
  display: -webkit-box;
  flex: none;
  line-height: 16px;
  max-width: 100%;
  max-block-size: 2lh;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.app-terminal { --tile-tint: #384a63; --tile-shade: #18263c; }
.app-terminal .desktop-app-icon { color: #bdf6de; }
.app-monitor { --tile-tint: #228e89; --tile-shade: #126164; }
.app-center { --tile-tint: #8c72e4; --tile-shade: #5d43af; }
.app-settings { --tile-tint: #657b91; --tile-shade: #35465d; }
.app-home { --tile-tint: #49896b; --tile-shade: #245743; }
.app-files { --tile-tint: #c9a058; --tile-shade: #96713b; }
.app-trash { --tile-tint: #687b91; --tile-shade: #3d5169; }
.app-docker { --tile-tint: #2999e2; --tile-shade: #1764b3; }
.app-document { --tile-tint: #537b9d; --tile-shade: #304d73; }
.app-image { --tile-tint: #358c90; --tile-shade: #205e68; }
.app-audio { --tile-tint: #bb5979; --tile-shade: #823956; }
.app-video { --tile-tint: #8469ba; --tile-shade: #5d458b; }
.code-workbench, .code-workbench .browser-surface { flex: 1; min-width: 0; min-height: 0; }
.desktop-window-content:has(> .code-workbench) { padding: 0; }
.app-code { --tile-tint: #2788a7; --tile-shade: #1d5368; }
.desktop-app-label { font-size: 13px; line-height: 1.35; font-weight: 500; white-space: normal; text-align: center; }
.desktop-dock-zone {
  --dock-edge-gap: 4px;
  position: absolute; bottom: 0; align-self: center; max-width: calc(100% - 16px); z-index: 4;
  padding-bottom: var(--dock-edge-gap);
}
.desktop-dock-zone.dock-side-zone {
  top: 50%; bottom: auto; transform: translateY(-50%); max-height: calc(100% - 16px);
  max-width: none; padding-bottom: 0;
}
.dock-left { left: 0; padding-left: var(--dock-edge-gap); }
.dock-right { right: 0; padding-right: var(--dock-edge-gap); }
.desktop-dock {
  --dock-frame: var(--desktop-frame-width, 100vw);
  --dock-gap-ratio: .10;
  --dock-padding-ratio: .08;
  --dock-item-padding-ratio: .12;
  --dock-end-gutter: 5px;
  --dock-gap: calc(var(--dock-icon) * var(--dock-gap-ratio));
  --dock-padding: calc(var(--dock-icon) * var(--dock-padding-ratio) + var(--dock-end-gutter));
  --dock-cross-padding: clamp(2px, calc(var(--dock-icon) * .045), 3px);
  --dock-item-padding: calc(var(--dock-icon) * var(--dock-item-padding-ratio));
  --dock-frame-inset: 16px;
  --dock-preferred-icon: var(--dock-preview, var(--dock-ideal));
  --dock-hide-x: 0;
  --dock-hide-y: calc(100% + 4px);
  /* Fit Show desktop and every visible launcher beside the divider and status area. */
  --dock-fixed-space: calc(var(--dock-frame-inset) + 4px + 2 * var(--dock-end-gutter) + var(--dock-status-space, 0px));
  --dock-icon-slots: calc(var(--dock-tiles, 1) * (1 + 2 * var(--dock-item-padding-ratio)) + (var(--dock-tiles, 1) + 1) * var(--dock-gap-ratio) + 2 * var(--dock-padding-ratio));
  --dock-icon: clamp(12px, calc((var(--dock-frame) - var(--dock-fixed-space)) / var(--dock-icon-slots)), var(--dock-preferred-icon));
  --dock-tile-size: calc(var(--dock-icon) + 2 * var(--dock-item-padding));
  --dock-home-glyph: min(26px, calc(var(--dock-icon) * .78));
  --dock-home-length: calc(var(--dock-home-glyph) + 2 * var(--dock-item-padding));
  --dock-divider-span: calc(var(--dock-icon) * .8);
  display: flex;
  align-items: center;
  align-self: center;
  gap: var(--dock-gap);
  max-width: 100%;
  padding: var(--dock-cross-padding) var(--dock-padding);
  border: 1px solid var(--desktop-dock-line);
  border-radius: min(20px, calc(var(--dock-icon) * .34 + 2px));
  background: var(--desktop-dock-fill);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 28px #08193044, inset 0 1px #ffffff12;
}
.desktop-dock.dock-show-status {
  --dock-status-space: calc(94px + var(--dock-preferred-icon) * var(--dock-item-padding-ratio));
}
.dock-side-zone > .desktop-dock {
  --dock-frame: var(--desktop-frame-height, 100vh);
  --dock-hide-y: 0;
  flex-direction: column !important;
  padding: var(--dock-padding) var(--dock-cross-padding);
}
.dock-left > .desktop-dock { --dock-hide-x: calc(-100% - 4px); }
.dock-right > .desktop-dock { --dock-hide-x: calc(100% + 4px); }
.dock-side-zone > .dock-show-status { --dock-status-space: 36px; }
.desktop-dock-zone.dock-panel-zone { inset-inline: 0; max-width: none; padding-bottom: 0; }
.dock-panel-zone > .desktop-dock {
  --dock-end-gutter: 0px;
  --dock-frame-inset: 0px;
  --dock-cross-padding: calc(var(--dock-icon) * .045);
  --dock-status-space: 100px;
  width: 100%; border-radius: 0; border-width: 1px 0 0;
  background: color-mix(in srgb, var(--desktop-dock-fill) 77%, var(--surface));
  box-shadow: 0 -6px 22px #08193026;
}
.dock-side-zone.dock-panel-zone {
  top: 0; bottom: 0; align-self: stretch; max-height: none; transform: none; padding-inline: 0;
}
.dock-left.dock-panel-zone { right: auto; }
.dock-right.dock-panel-zone { left: auto; }
.dock-side-zone.dock-panel-zone > .desktop-dock {
  --dock-status-space: 56px;
  height: 100%; width: auto; border-width: 0;
}
.dock-left.dock-panel-zone > .desktop-dock { border-right-width: 1px; }
.dock-right.dock-panel-zone > .desktop-dock { border-left-width: 1px; }
.dock-panel-zone > .dock-centered {
  display: grid !important;
  grid-template-columns: minmax(max-content, 1fr) max-content minmax(max-content, 1fr);
}
.dock-side-zone.dock-panel-zone > .dock-centered {
  grid-template-columns: auto;
  grid-template-rows: minmax(max-content, 1fr) max-content minmax(max-content, 1fr);
  justify-items: center;
}
.dock-centered .desktop-dock-leading { justify-self: start; }
.dock-centered .desktop-panel-clock { justify-self: end; margin-inline-start: 0; }
.dock-side-zone .dock-centered .desktop-dock-leading { justify-self: center; align-self: start; }
.dock-side-zone .dock-centered .desktop-panel-clock { justify-self: center; align-self: end; margin-block-start: 0; }
.dock-panel-zone .desktop-dock-app, .dock-panel-zone .desktop-dock-home { border-radius: 8px !important; }
.dock-panel-zone .desktop-dock:not(.dock-centered) .desktop-app-icon { border-radius: calc(var(--dock-icon) / 6); }
.desktop-panel-clock {
  display: grid; flex: none; gap: 1px; margin-inline-start: auto; padding: 0 5px;
  text-align: end; white-space: nowrap; color: var(--desktop-ink);
  font-size: 12px; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.desktop-panel-time, .desktop-panel-weekday, .desktop-panel-date { font-weight: 600; }
.desktop-dock .desktop-panel-clock:lang(zh) :is(.desktop-panel-time, .desktop-panel-weekday, .desktop-panel-date) {
  font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
  font-weight: 400;
}
.desktop-panel-weekday:empty, .desktop-panel-date:empty { display: none; }
.desktop-dock .desktop-panel-clock { position: relative; }
.desktop-dock > .desktop-panel-clock { padding-inline: 0 var(--dock-item-padding); }
.desktop-dock-status {
  display: flex; flex: none; align-items: center; gap: var(--dock-gap);
  padding-inline-end: var(--dock-item-padding);
}
.desktop-dock-status .desktop-panel-clock {
  margin: 0; padding: 0; font-size: clamp(10px, calc(var(--dock-icon) * .43), 12px);
}
.dock-side-zone .desktop-dock-status {
  flex-direction: column !important; padding: 0 0 var(--dock-item-padding);
}
.dock-side-zone > .dock-show-status:has(.desktop-panel-weekday:not(:empty)) {
  --dock-status-space: 46px;
}
.dock-side-zone .desktop-panel-clock {
  position: relative; margin-inline-start: 0; padding: 0; text-align: center; font-size: 11px;
}
.dock-side-zone .desktop-dock > .desktop-panel-clock {
  margin-block-start: auto; padding: 0 0 var(--dock-item-padding);
}
.desktop-clock-tooltip {
  display: none; position: absolute; inset: auto 0 calc(100% + 10px) auto; z-index: 2;
  width: max-content; max-width: min(240px, calc(var(--desktop-frame-width, 100vw) - 16px));
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px;
  white-space: pre-line; overflow-wrap: anywhere; text-align: start; pointer-events: none;
  background: var(--desktop-tooltip); color: var(--desktop-tooltip-ink); font-size: 12px; line-height: 1.45;
}
.desktop-dock .desktop-panel-clock:hover > .desktop-clock-tooltip:not(:empty) { display: block; }
.dock-side-zone .desktop-clock-tooltip { bottom: 0; max-width: min(240px, calc(var(--desktop-frame-width, 100vw) - 112px)); }
.dock-left .desktop-clock-tooltip { right: auto; left: calc(100% + 12px); }
.dock-right .desktop-clock-tooltip { right: calc(100% + 12px); }
@container desktop-dock-space (max-width: 435px) {
  .desktop-dock-zone:not(.dock-side-zone) .dock-show-status { --dock-status-space: 84px; }
}
.desktop-dock.dock-auto-hide { transition: transform 200ms ease; }
.dock-panel-zone:not(.dock-side-zone):has(> .dock-auto-hide) { padding-bottom: 4px; }
.dock-left.dock-panel-zone:has(> .dock-auto-hide) { padding-left: 4px; }
.dock-right.dock-panel-zone:has(> .dock-auto-hide) { padding-right: 4px; }
.desktop-canvas:not(:has(.desktop-context-menu[data-dock-menu-side])) .desktop-dock-zone:not(:hover) > .dock-auto-hide:not(:has(:focus-visible)) {
  transform: translate(var(--dock-hide-x), var(--dock-hide-y));
}
.desktop-dock-leading, .desktop-dock-apps { display: flex; align-items: center; gap: var(--dock-gap); min-width: 0; }
.dock-side-zone :is(.desktop-dock-leading, .desktop-dock-apps) { flex-direction: column !important; }
.dock-side-zone .desktop-dock-divider { width: var(--dock-divider-span); height: 1px; }
.dock-side-zone .desktop-icon-slot[data-desktop-drop]::after { inset: -3px 6px auto; height: 2px; width: auto; }
.dock-side-zone .desktop-icon-slot[data-desktop-drop=after]::after { top: auto; bottom: -3px; }
.desktop-dock-leading { flex: none; }
.desktop-dock-apps .desktop-icon-slot { flex: none; }
.dock-side-zone .desktop-dock-apps {
  align-self: stretch;
  justify-self: stretch;
  align-items: stretch;
}
.desktop-dock-app, .desktop-dock-home {
  display: grid !important;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: var(--dock-tile-size) !important;
  height: var(--dock-tile-size) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: var(--dock-item-padding) !important;
  flex: none;
  position: relative;
  border-radius: 12px !important;
  color: var(--desktop-ink) !important;
}
.desktop-dock :is(.desktop-dock-app, .desktop-dock-home) {
  background: transparent !important;
  box-shadow: none !important;
}
.dock-side-zone .desktop-dock-app {
  width: 100% !important;
  min-width: var(--dock-tile-size) !important;
}
.desktop-dock-app .desktop-app-icon { --app-tile-size: var(--dock-icon); border-radius: 24%; }
[data-desktop-icon-family=line] .desktop-app-icon {
  /* Equal insets on the tile's content box keep both edges on the same grid. */
  --glyph-inset: calc((var(--app-tile-size, 55px) - 2px) * .14);
  padding: var(--glyph-inset);
  padding: round(nearest, var(--glyph-inset), 1px);
}
[data-desktop-icon-family=line] .desktop-dock-app .desktop-app-icon {
  /* Keep the mask and tile on the same layer at fractional Dock positions. */
  will-change: transform;
}
[data-desktop-icon-family=color] .desktop-app-icon {
  background: none; border-color: transparent; box-shadow: none;
}
[data-desktop-icon-family=color] .desktop-app-icon:not(.folder-custom-mark)::before,
[data-desktop-icon-family=color] .file-entry-icon:not(.folder-custom-mark),
[data-desktop-icon-family=color] .files-place .action-glyph,
[data-desktop-icon-family=color] .folder-icon-preview .glyph-folder {
  background: var(--color-app-icon) center / contain no-repeat;
  mask-image: none;
}
.desktop-dock .desktop-app-label {
  display: none;
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #a5bfda40;
  background: var(--desktop-tooltip);
  color: var(--desktop-tooltip-ink);
  padding: 5px 9px;
  border-radius: 7px;
  white-space: nowrap;
  font-size: 12px;
  box-shadow: 0 3px 10px #0003;
  pointer-events: none;
}
.desktop-dock :is(.desktop-dock-app, .desktop-dock-home):focus {
  outline: none;
}
.desktop-dock button:is(:hover, [data-keyboard-focus]:focus-visible) { z-index: 1; }
.desktop-dock button:is(:hover, [data-keyboard-focus]:focus-visible) .desktop-app-label { display: block; }
.dock-side-zone .desktop-dock .desktop-app-label { top: 50%; bottom: auto; transform: translateY(-50%); }
.dock-left .desktop-dock .desktop-app-label { left: calc(100% + 7px); }
.dock-right .desktop-dock .desktop-app-label { left: auto; right: calc(100% + 7px); }
.desktop-dock-app.running::after {
  --indicator-size: clamp(3px, calc(var(--dock-icon) * .065), 4px);
  --indicator-length: var(--indicator-size);
  --indicator-offset: calc((var(--dock-item-padding) - var(--dock-cross-padding) - 1px) / 2);
  content: '';
  position: absolute;
  bottom: var(--indicator-offset);
  transform: translateY(50%);
  width: var(--indicator-length);
  height: var(--indicator-size);
  border-radius: 4px;
  background: #fff;
}
.desktop-dock-app.active::after { --indicator-length: calc(var(--dock-icon) * .27); }
.dock-side-zone .desktop-dock-app.running::after {
  /* The clock can widen the rail. Center the mark in the actual edge gap. */
  --indicator-offset: calc((100% - var(--dock-icon)) / 4 - var(--dock-cross-padding) / 2 - .75px);
  top: 50%; bottom: auto; width: var(--indicator-size); height: var(--indicator-length);
}
.dock-left .desktop-dock-app.running::after { left: var(--indicator-offset); transform: translate(-50%, -50%); }
.dock-right .desktop-dock-app.running::after { right: var(--indicator-offset); transform: translate(50%, -50%); }
.desktop-dock-divider { width: 1px; height: var(--dock-divider-span); flex: none; background: var(--desktop-dock-line); }
.desktop-dock:not(:has(.desktop-dock-apps .desktop-icon-slot)) .desktop-dock-divider,
.desktop-dock:not(.dock-centered, :has(.desktop-dock-apps .desktop-icon-slot)) .desktop-dock-apps { display: none !important; }
.desktop-dock-home { width: var(--dock-home-length) !important; }
.dock-side-zone .desktop-dock-home { width: var(--dock-tile-size) !important; height: var(--dock-home-length) !important; }
.desktop-dock-home .action-glyph { width: var(--dock-home-glyph); height: var(--dock-home-glyph); }
.desktop-window-layer {
  position: absolute;
  inset: 0 var(--desktop-work-right, 0px) var(--desktop-work-bottom, 0px) var(--desktop-work-left, 0px);
  z-index: 2; pointer-events: none;
}
.desktop-window-layer .menu-dismiss { inset: var(--desktop-frame-inset, 0px); }
.desktop-window {
  position: absolute;
  inset: 19px 22px 96px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid color-mix(in srgb, var(--line) 52%, #828fa8);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 68px #08152b66, 0 3px 10px #08152b20;
}
.desktop-window:not(.active) { box-shadow: 0 8px 30px #08152b42, 0 2px 7px #08152b20; }
.desktop-window:not(.active) .desktop-window-title { color: var(--muted); }
.desktop-window.maximized { inset: 0 0 88px; border-radius: 0; }
.desktop-window.app-code { container: code-window / inline-size; }
.app-code > .desktop-window-titlebar { position: relative; }
.code-title-tools { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; }
.code-title-tools .icon-button { flex: none; width: 26px !important; min-width: 26px !important; height: 26px !important; padding: 5px !important; }
.code-panel .action-glyph { transform: rotate(-90deg); }
.code-secondary .action-glyph, .code-back .action-glyph { transform: rotate(180deg); }
.code-title-tools .code-quick-open {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: min(480px, 48%, calc(100% - 456px)); min-width: 0 !important;
  height: 26px !important; min-height: 26px !important; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg) !important; border: 1px solid var(--line) !important;
  padding: 0 9px !important; border-radius: 6px;
}
@container code-window (max-width: 600px) {
  .app-code .desktop-window-titlebar { gap: 3px; padding-inline: 5px; }
  .code-title-tools .icon-button, .app-code .desktop-window-actions > .icon-button { width: 21px !important; min-width: 21px !important; }
  .code-title-tools .code-quick-open { width: min(46%, calc(100% - 364px)); }
}
@container code-window (max-width: 480px) {
  .app-code .desktop-window-title { display: none; }
  .code-title-tools .code-layout { margin-left: 0; }
  .code-title-tools .code-panel { margin-left: auto; }
  .code-title-tools .code-quick-open { width: min(46%, calc(100% - 260px)); }
}
.code-title-tools .code-quick-open:hover { border-color: var(--muted) !important; }
.code-quick-open .action-glyph { width: 14px; height: 14px; flex: none; }
.code-quick-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-layout { margin-left: auto; }
/* Give the native menubar the space before Quick open and let it collapse
   surplus menus into its keyboard-accessible More menu. */
.app-code:has(.code-menu-slot) > .desktop-window-titlebar > .desktop-window-title { display: none; }
.code-menu-slot { height: 26px; flex: none; width: max(32px, calc(50cqw - min(240px, 24cqw, (100cqw - 456px) / 2) - 110px)); }
@container code-window (min-width: 820px) {
  .code-title-tools:has(.code-menu-slot) .code-back { margin-left: auto; }
  .code-title-tools:has(.code-menu-slot) .code-layout { margin-left: 0; }
  .code-title-tools:has(.code-menu-slot) .code-quick-open { width: min(420px, 38%, calc(100% - 584px)); }
  .code-menu-slot { width: calc(50cqw - min(210px, 19cqw, (100cqw - 584px) / 2) - 50px); }
}
@container code-window (max-width: 600px) {
  .code-menu-slot { width: max(32px,calc(50cqw - min(23cqw, (100cqw - 364px) / 2) - 90px)); }
}
@container code-window (max-width: 480px) {
  .code-menu-slot { width: 30px; }
  .code-title-tools:has(.code-menu-slot) .code-quick-open { width: min(42%, calc(100% - 314px)); }
}
.code-workbench-error:empty { display: none; }
.desktop-menu-backdrop { position: absolute; inset: 0; z-index: 72; cursor: default; }
.desktop-context-menu { position: absolute !important; z-index: 73 !important; inset: auto; min-width: 190px; max-height: calc(100% - 8px); overflow-y: auto; }
.desktop-context-items { gap: 2px; }
.desktop-context-menu[data-dock-menu-side] {
  --dock-menu-fill: color-mix(in srgb, var(--surface) 84%, var(--raised));
  background: var(--dock-menu-fill) !important; border-color: var(--line-hover);
  min-width: min(190px, var(--dock-menu-max-width)); max-width: var(--dock-menu-max-width);
  max-height: none; overflow: visible; border-radius: 9px;
}
.desktop-context-menu[data-dock-menu-side] .desktop-context-items {
  max-height: calc(var(--dock-menu-max-height) - 14px); overflow: auto;
}
.desktop-context-menu[data-dock-menu-side]::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  background: var(--dock-menu-fill); border: solid var(--line-hover); border-width: 0 1px 1px 0;
  pointer-events: none;
}
.desktop-context-menu[data-dock-menu-side=above]::after {
  left: var(--dock-menu-arrow); bottom: -6px; transform: translateX(-50%) rotate(45deg);
}
.desktop-context-menu[data-dock-menu-side=below]::after {
  left: var(--dock-menu-arrow); top: -6px; transform: translateX(-50%) rotate(225deg);
}
.desktop-context-menu[data-dock-menu-side=left]::after {
  top: var(--dock-menu-arrow); right: -6px; transform: translateY(-50%) rotate(-45deg);
}
.desktop-context-menu[data-dock-menu-side=right]::after {
  top: var(--dock-menu-arrow); left: -6px; transform: translateY(-50%) rotate(135deg);
}
.app-settings { --desktop-settings-sidebar-width: clamp(138px, 25%, 208px); }
.settings-surface { user-select: none; }
.settings-surface :is(
  :read-write, input[readonly], textarea, .settings-copyable, .network-settings-values,
  .network-interface-name, .update-notes, .configuration-backup-digest, .error, .dialog-error, .form-error, .software-error
) { user-select: text; }
.desktop-window-content:has(> .desktop-settings-page) { container: desktop-settings / inline-size; padding: 0; }
.desktop-settings-page { display: flex; flex: 1; min-width: 0; min-height: 0; overflow: hidden; }
.desktop-preferences {
  container: desktop-preferences / inline-size;
  display: flex; flex: 1; flex-direction: column; gap: 12px; min-width: 0; min-height: 0;
  overflow: auto; padding: clamp(10px, 1.9cqw, 24px); scrollbar-gutter: stable both-edges;
}
.desktop-settings-pane, .desktop-settings-status, .desktop-preferences > .error {
  width: 100%; max-width: 880px; min-width: 0; align-self: center;
}
.desktop-settings-pane { display: flex; flex-direction: column; gap: 12px; flex: none; }
.desktop-settings-page :is(.desktop-settings-card, .about-details) {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  overflow-wrap: anywhere;
}
.desktop-settings-pane .section-title { font-size: 15px; font-weight: 600; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px; }
.about-links > button { max-width: 100%; white-space: normal; }
.desktop-setting-row {
  display: grid !important; grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr);
  align-items: center; gap: 8px 16px; min-height: 42px; min-width: 0;
}
.desktop-settings-rows .desktop-setting-row {
  padding-block: 8px; border-top: 1px solid var(--line);
}
.desktop-canvas:has(.dock-side-zone > [data-small-clock]) .desktop-setting-row:has(.dock-clock-seconds),
.desktop-canvas:has(.desktop-dock-zone:not(.dock-side-zone) > [data-small-clock]) .desktop-setting-row:has(.dock-clock-weekday) { display: none !important; }
.desktop-settings-page .desktop-settings-rows { gap: 4px; }
.desktop-setting-label { font-size: var(--font-label); }
.desktop-settings-pane .desktop-setting-controls {
  justify-content: flex-end; align-items: center; max-width: 100%;
}
.icon-size-options { display: flex; flex-direction: column; gap: 8px; width: min(100%, 360px); }
.desktop-setting-link-row {
  display: flex; min-width: 0; padding-block: 3px; border-top: 1px solid var(--line);
}
.desktop-setting-link {
  display: flex !important; justify-content: space-between; align-items: center; gap: 8px;
  flex: 1; min-width: 0; min-height: 36px; margin-inline: -8px; padding: 6px 8px !important;
  text-align: start; white-space: normal; border-radius: 7px !important;
  background: transparent !important; border: 0 !important;
  color: var(--text) !important;
}
.desktop-setting-link:is(:hover, :focus-visible):not(:disabled) { background: var(--raised) !important; }
.desktop-setting-link:disabled { color: var(--muted) !important; }
.desktop-setting-link > .action-glyph { flex: none; width: 14px; height: 14px; color: var(--muted); }
.desktop-modal-backdrop .shortcut-settings-dialog {
  --shortcut-row-inset: 16px;
  width: 420px; --modal-initial-height-limit: 620px;
}
.shortcut-settings-dialog :is(.modal-header, .modal-body) { scrollbar-gutter: stable; }
.shortcut-settings-dialog .modal-header {
  /* Align the centers of the 30px close button and the 16px checkboxes. */
  padding-inline: var(--shortcut-row-inset) calc(var(--shortcut-row-inset) - 7px);
  overflow: hidden;
}
.shortcut-settings-dialog .modal-body { padding: 0; }
.desktop-shortcut-option {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding-inline: var(--shortcut-row-inset, 16px);
}
.desktop-shortcut-option + .desktop-shortcut-option { border-top: 1px solid var(--line); }
.desktop-shortcut-option:hover { background: var(--raised); }
.desktop-shortcut-option > .action-glyph { flex: none; color: var(--muted); }
.desktop-shortcut-option .preference-check {
  flex: 1; min-height: 42px; min-width: 0; justify-content: space-between;
  flex-direction: row-reverse; color: var(--text) !important;
}
.desktop-shortcut-option .preference-check:has(> input:disabled) { color: var(--muted) !important; }
.server-desktop, .desktop-modal-backdrop {
  --accent-fill: var(--accent);
  --on-accent: var(--surface);
  --button-hover: color-mix(in srgb, var(--surface), var(--accent-fill) 9%);
}
:is(.server-desktop, .desktop-modal-backdrop) .button.primary {
  background: var(--accent-fill) !important; border-color: var(--accent) !important; color: var(--on-accent) !important;
}
:is(.server-desktop, .desktop-modal-backdrop) .button.primary:hover:not(:disabled) {
  background: var(--accent-fill) !important; box-shadow: inset 0 0 0 1px var(--on-accent);
}
.desktop-appearance { --choice-tint: color-mix(in srgb, var(--surface), var(--accent-fill) 10%); }
.settings-segment-field, .settings-segmented { width: fit-content; min-width: 0; max-width: 100%; }
/* Sapid supplies motion and radio semantics. The surrounding setting labels the group. */
.settings-segmented {
  --sp-disabled: var(--raised); --sp-segment-indicator: var(--accent-fill, var(--accent));
  --sp-segment-selected-text: var(--on-accent, var(--surface));
  --sp-border: transparent; --sp-ring: var(--accent); --sp-disabled-text: var(--muted);
}
.settings-segmented > span:first-child { display: none; }
.settings-segmented .sapid-radio-group-items {
  display: inline-grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  box-sizing: border-box; max-width: 100%;
}
.settings-segmented .sapid-segment {
  display: grid; place-items: center; min-width: 0; min-height: 28px; padding: 3px 9px;
  color: var(--text) !important; font: inherit !important;
  text-align: center; overflow-wrap: anywhere;
}
.settings-segmented .sapid-segment input[type=radio] {
  inset: 0; width: 100%; height: 100%; min-height: 0; cursor: inherit;
}
.settings-segmented .sapid-segment:hover:has(input:enabled:not(:checked)) { background: var(--button-hover, var(--surface)); }
.settings-select-field { position: relative; width: min(100%, 13.5rem); max-width: 100%; min-width: 0; }
.settings-select {
  box-sizing: border-box; appearance: none; width: 100%; min-width: 0;
  min-height: 36px !important; padding: 5px 10px !important; padding-inline-end: 36px !important;
  border: 1px solid var(--line) !important; border-radius: 5px !important;
  background: var(--input) !important; color: var(--text) !important;
  font: inherit !important; text-overflow: ellipsis; cursor: pointer;
}
.settings-select-field > .action-glyph {
  position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.settings-select:hover:enabled { border-color: var(--line-hover) !important; }
.settings-select:enabled:focus-visible {
  border-color: var(--accent) !important; outline: 1px solid var(--accent); outline-offset: -2px;
}
.settings-select-field:has(.settings-select:disabled) > .action-glyph { opacity: .65; }
@media (forced-colors: active) {
  .settings-select-field > .action-glyph { forced-color-adjust: none; color: ButtonText; }
}
.theme-custom-color input.sapid-color-editor:focus-visible {
  outline: none; box-shadow: inset 0 -2px var(--accent);
}
.settings-select:disabled { color: var(--muted) !important; opacity: .65; cursor: default; }
.desktop-light .settings-select { color-scheme: light; }
.desktop-dark .settings-select { color-scheme: dark; }
.preference-select-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px;
}
.preference-select-row > span { color: var(--text); font-size: var(--font-label); }
.icon-size-options > .settings-segment-field { align-self: flex-end; }
.theme-preset-grid {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); gap: 8px;
}
.desktop-appearance .theme-preview-choice {
  display: grid !important; position: relative; min-width: 0; gap: 0;
  padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
}
.desktop-appearance .theme-preview-choice:hover { background: var(--button-hover); border-color: var(--line-hover); }
.desktop-appearance .theme-preview-choice:has([aria-pressed=true]) {
  border-color: var(--accent); background: var(--choice-tint);
}
.desktop-appearance .theme-preview-choice:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.desktop-appearance .theme-preview-choice > .theme-preset-select,
.desktop-appearance .theme-preview-choice > .theme-preset-select:is(:hover, [aria-pressed=true]):not(:disabled) {
  min-width: 0; padding: 6px 24px 4px 7px !important; text-align: start; line-height: 1.45;
  background: transparent !important; color: var(--text) !important; border: 0 !important; outline: 0;
}
.theme-preset-select::before { content: ''; position: absolute; inset: 0; border-radius: 9px; }
.desktop-appearance .wallpaper-name {
  position: relative; padding: 6px 24px 4px 7px; text-align: start; line-height: 1.45;
}
.desktop-appearance .button.wallpaper-choice[aria-pressed=true],
.desktop-appearance .button.wallpaper-choice[aria-pressed=true]:hover {
  border-color: var(--accent) !important; background: var(--choice-tint) !important; color: var(--text) !important;
}
.theme-preset-select[aria-pressed=true]::after,
.desktop-appearance [aria-pressed=true] > .wallpaper-name::after {
  content: ''; position: absolute; inset-inline-end: 9px; top: calc(50% - 6px);
  width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.theme-preset-select[aria-pressed=true]::after { top: auto; bottom: 15px; inset-inline-end: 14px; }
.theme-thumbnail {
  display: flex; width: 100%; aspect-ratio: 16 / 9; min-width: 0; border-radius: 7px; overflow: hidden;
  background: var(--raised); position: relative;
}
.theme-wallpaper-swatch { display: block; flex: 1 1 0; min-width: 0; position: relative; }
.theme-wallpaper-swatch img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.theme-thumbnail-labels {
  display: flex; position: absolute; inset: auto 0 0; justify-content: space-around; padding: 4px;
  background: #101820b0; color: #fff; font-size: var(--font-small);
}
.theme-accent-controls, .theme-accent-options {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0;
}
.theme-accent-controls { justify-content: flex-end; }
.theme-custom-color { position: relative; display: flex; align-items: center; width: 9.25rem; max-width: 100%; }
.theme-custom-color input[type=color] {
  display: block;
  width: 22px; height: 22px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.theme-custom-color input[type=color]::-webkit-color-swatch-wrapper { padding: 1px; }
.theme-custom-color input[type=color]::-webkit-color-swatch { border: 1px solid var(--line-hover); border-radius: 50%; }
.theme-custom-color .sapid-color-input-editor { width: 100%; }
.theme-custom-color .sapid-color-validation[aria-hidden=true] { display: none; }
.theme-custom-color .sapid-color-input-left-section { top: 50% !important; transform: translateY(-50%); z-index: 1; }
.theme-custom-color input.sapid-color-editor {
  width: 100%; box-sizing: border-box; min-height: 36px; padding-inline: 36px 8px !important;
  border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--surface) 94%, var(--accent)) !important;
  color: var(--text) !important; font: 13px/1.4 Consolas, monospace;
}
.theme-custom-color input[type=color]:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.desktop-appearance .theme-accent-options > .theme-accent-choice {
  display: grid !important; place-items: center; width: 30px; min-height: 30px !important;
  padding: 3px !important; border-radius: 50% !important; border-color: transparent !important;
  background: transparent !important;
}
.desktop-appearance .theme-accent-options > .theme-accent-choice[aria-pressed=true] {
  border-color: var(--accent) !important;
}
.theme-color-swatch { width: 21px; height: 21px; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); border-radius: 50%; flex: none; }
.desktop-settings-pane .section-heading { min-width: 0; gap: 6px; }
.desktop-settings-pane .choice-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
/* Sapid sets a light-theme foreground inline on checkbox labels. */
.desktop-settings-page .preference-check { color: var(--text) !important; }
.desktop-settings-page .preference-check:has(> input:disabled) { color: var(--muted) !important; }
.desktop-date-time .desktop-setting-row { grid-template-columns: minmax(0, 1fr) auto; }
.desktop-date-time .desktop-setting-row:first-child { border-top: 0; }
.desktop-date-time .desktop-setting-controls { min-width: 0; justify-content: flex-end; }
.desktop-time-zone-controls { width: min(100%, 18rem); gap: 5px; }
.desktop-time-zone-current {
  display: flex !important; justify-content: space-between; gap: 8px; text-align: start; overflow-wrap: anywhere;
}
.desktop-time-zone-current .action-glyph, .time-zone-search .action-glyph { flex: none; }
.desktop-modal-backdrop .time-zone-dialog { width: 440px; --modal-initial-height-limit: 560px; color: var(--text); }
.time-zone-dialog .modal-header {
  display: grid !important; grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 6px; padding-inline: 12px; border: 0;
}
.time-zone-dialog .dialog-title { grid-column: 2; text-align: center; }
.time-zone-dialog .modal-header .icon-button { justify-self: center; }
.time-zone-dialog .modal-body { padding: 0; gap: 0; overflow: hidden; }
.time-zone-search {
  flex: none; display: flex; align-items: center; gap: 7px; min-width: 0;
  margin: 0 12px 8px; padding-inline: 10px; color: var(--muted);
  background: var(--input); border: 1px solid var(--line); border-radius: 7px;
}
.time-zone-search:focus-within { border-color: var(--accent); }
.time-zone-search .time-zone-query {
  flex: 1; min-width: 0; width: 100%; min-height: 34px; padding: 5px 0 !important;
  border: 0 !important; background: transparent !important; color: var(--text) !important;
}
.time-zone-query::placeholder { color: var(--muted); opacity: 1; }
.time-zone-options { display: flex; flex-direction: column; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.time-zone-option {
  display: grid !important; grid-template: 'place time' 'detail time' / minmax(0, 1fr) auto;
  align-content: center; align-items: center; gap: 4px 8px;
  flex: none; min-height: 62px; min-width: 0; width: 100%;
  padding: 9px 12px !important; text-align: start; white-space: normal;
  border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important;
  background: var(--surface) !important; color: var(--text) !important;
}
.time-zone-option[hidden] { display: none !important; }
.time-zone-option:hover { background: var(--raised) !important; }
.time-zone-option[aria-pressed=true] { background: var(--accent-bg) !important; box-shadow: inset 3px 0 var(--accent) !important; }
.time-zone-place, .time-zone-detail { min-width: 0; overflow-wrap: anywhere; }
.time-zone-place { grid-area: place; }
.time-zone-country { margin-inline-start: 6px; font-weight: 600; }
.time-zone-detail { grid-area: detail; color: var(--muted); font-size: var(--font-small); }
.time-zone-offset:not(:empty) { margin-inline-start: 6px; }
.time-zone-offset:not(:empty)::before { content: '·'; margin-inline-end: 6px; }
.time-zone-local-time { grid-area: time; color: var(--muted); text-align: end; font-variant-numeric: tabular-nums; }
.time-zone-empty { padding: 22px 12px; text-align: center; color: var(--muted); }
.dock-status-settings .desktop-setting-row { grid-template-columns: minmax(0, 1fr) auto; }
:is(.desktop-settings-pane, .settings-choices) .sapid-switch { min-width: 44px; min-height: 44px; justify-content: center; }
:is(.desktop-settings-pane, .settings-choices) .sapid-switch-track { background: var(--line-hover) !important; }
:is(.desktop-settings-pane, .settings-choices) .sapid-switch:has(input:checked) .sapid-switch-track { background: var(--accent-fill) !important; }
:is(.desktop-settings-pane, .settings-choices) .sapid-switch-thumb { background: var(--surface) !important; }
:is(.desktop-settings-pane, .settings-choices) .sapid-switch-thumb { box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 28%, transparent); }
:is(.desktop-settings-pane, .settings-choices) .sapid-switch:has(input:checked) .sapid-switch-track { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
:is(.desktop-settings-pane, .settings-choices) .sapid-switch-focus { display: none !important; }
:is(.desktop-settings-pane, .settings-choices) .sapid-switch:has(input:focus-visible) .sapid-switch-track {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.settings-choices .sapid-switch-label { color: var(--text) !important; }
.folder-defaults { display: flex; flex-direction: column; gap: 8px; }
.folder-default-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; min-height: 38px; }
.folder-default-row .field-label { color: var(--text); }
.folder-default-columns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; }
.folder-default-columns .preference-check { color: var(--text) !important; }
.folder-default-columns .preference-check:has(input:disabled) { color: var(--muted) !important; }
.folder-defaults .default-file-size { max-width: 100%; }
.folder-defaults .icon-size-slider { width: 165px; }
.settings-choices .hidden-files-switch { flex: 1; justify-content: space-between; }
.update-panel .preference-check { color: var(--text) !important; }
.desktop-settings-page .desktop-time-preview {
  margin: 0; padding: 0; color: var(--text); font-size: var(--font-body);
}
.desktop-settings-pane .button { max-width: 100%; white-space: normal; }
.desktop-settings-pane .button[aria-pressed=true] {
  background: var(--accent-bg) !important; border-color: var(--accent) !important; color: var(--accent) !important;
}
.desktop-region :is(.section-title, .field-label) { color: var(--text); }
.icon-size-control { display: flex; gap: 12px; align-items: center; width: 100%; }
.icon-size-slider {
  --icon-size-thumb: 15px;
  flex: 1; min-width: 0; height: 26px; margin: 0; padding: 0 !important; border: 0 !important;
  appearance: none; cursor: pointer;
  background: linear-gradient(to right, var(--accent-fill) var(--icon-size-progress, 0%), var(--line) 0)
    center / calc(100% - var(--icon-size-thumb)) 4px no-repeat !important;
}
.icon-size-slider::-webkit-slider-runnable-track { height: var(--icon-size-thumb); background: transparent; }
.icon-size-slider::-webkit-slider-thumb {
  appearance: none; width: var(--icon-size-thumb); height: var(--icon-size-thumb);
  border: 1px solid var(--accent); border-radius: 50%; background: var(--accent-fill);
}
.icon-size-slider:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.icon-size-slider:disabled { cursor: default; }
.icon-size-value { flex: none; min-width: 46px; text-align: end; font-variant-numeric: tabular-nums; color: var(--muted); }
.desktop-settings-sidebar, .desktop-settings-sidebar-heading {
  flex: 0 0 var(--desktop-settings-sidebar-width); min-width: 0;
  background: var(--surface); border-inline-end: 1px solid var(--line);
}
.desktop-settings-sidebar { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.desktop-settings-tabs {
  display: flex; flex: 1; flex-direction: column; gap: 4px; min-height: 0;
  overflow: auto; padding: 10px;
}
.desktop-settings-search {
  display: flex; align-items: center; gap: 6px; flex: none; min-height: 32px;
  margin: 10px 10px 0; padding-inline: 8px;
  background: var(--input); border: 1px solid var(--line); border-radius: 7px;
}
.desktop-settings-search:focus-within { border-color: var(--accent); }
.desktop-settings-search > .action-glyph { flex: none; width: 15px; height: 15px; color: var(--muted); }
.desktop-settings-search input { flex: 1; width: 0; height: 30px; padding: 0; border: 0; background: transparent; }
.desktop-settings-search-clear { display: grid; place-items: center; flex: none; width: 22px; height: 24px; }
.desktop-settings-search-clear .action-glyph { width: 13px; height: 13px; }
.desktop-settings-search-empty { padding: 8px; color: var(--muted); font-size: var(--font-small); }
.desktop-settings-section {
  display: flex !important; justify-content: flex-start; align-items: center; gap: 8px; flex: none;
  min-height: 38px; min-width: 0; padding: 7px 8px !important; text-align: start; white-space: normal; overflow-wrap: anywhere;
}
.desktop-settings-section .action-glyph { flex: none; width: 16px; height: 16px; }
.desktop-settings-section:hover { background: var(--raised) !important; }
.desktop-settings-section[aria-pressed=true] { background: var(--accent-bg) !important; color: var(--accent) !important; }
.desktop-settings-pane .desktop-shortcut-group { gap: 0; }
.desktop-shortcut-group > :is(.section-title, .section-heading) { margin-bottom: 5px; }
.desktop-key-binding { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.desktop-key-binding:last-child { border-bottom: 0; padding-bottom: 0; }
.desktop-shortcut-label { display: flex; align-items: center; flex: 1 1 11rem; gap: 8px; min-width: 0; }
.desktop-shortcut-modified { color: var(--accent); font-size: var(--font-label); white-space: nowrap; }
.desktop-key-binding:has(.desktop-shortcut-enabled input:not(:checked)) .desktop-shortcut-record:not(.desktop-shortcut-add) .desktop-key-combination { color: var(--muted); }
.desktop-key {
  padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); font: var(--font-small)/1.45 Consolas, monospace;
}
.desktop-key-controls { display: flex; align-items: center; gap: 5px; min-width: 0; }
.desktop-shortcut-record { font-family: Consolas, monospace !important; }
.desktop-shortcut-record[data-recording] { background: var(--accent-bg) !important; color: var(--accent) !important; }
.desktop-shortcut-record[data-recording] .desktop-key-combination,
.desktop-shortcut-record:not([data-recording]) .desktop-key-recording { display: none; }
.desktop-custom-keys .desktop-key-controls { flex-wrap: wrap; justify-content: flex-end; }
.desktop-shortcut-extra { display: inline-flex; align-items: center; gap: 3px; }
.desktop-shortcut-error:not(:empty) { position: sticky; top: 0; z-index: 1; padding: 8px; background: var(--surface); }
.desktop-settings-status:empty, .desktop-settings-page .error:empty { display: none; }
.wallpaper-choices { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 8px; }
.wallpaper-choice { display: flex !important; min-width: 0; flex-direction: column; align-items: stretch; gap: 6px; padding: 5px 5px 7px !important; }
.wallpaper-swatch { height: auto; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; }
.wallpaper-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container desktop-settings (max-width: 620px) {
  .desktop-settings-tabs { padding: 7px; }
  .desktop-settings-section { min-height: 34px; gap: 5px; padding: 4px 5px !important; }
  .desktop-settings-search { margin-inline: 7px; }
}
@container desktop-preferences (max-width: 405px) {
  .desktop-setting-row { grid-template-columns: minmax(0, 1fr); }
  .desktop-settings-pane .desktop-setting-controls { justify-content: flex-start; }
  .icon-size-options > .settings-segment-field { align-self: flex-start; }
  .desktop-settings-pane .desktop-setting-controls:has([role=switch]) { justify-content: flex-end; }
  .desktop-date-time .desktop-setting-controls { justify-content: flex-end; }
  .desktop-date-time .desktop-setting-row:has(.desktop-time-zone-controls) { grid-template-columns: minmax(0, 1fr); }
  .theme-preset-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 105px), 1fr)); }
  .wallpaper-choices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 105px), 1fr)); }
}
@container desktop-preferences (max-width: 370px) {
  .network-settings .network-interface { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.desktop-window-titlebar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 37px;
  min-height: 37px;
  flex: none;
  padding: 0 8px 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.desktop-window-mark { display: flex; align-items: center; flex: none; color: var(--accent); }
.desktop-window-mark > .action-glyph { width: 18px; height: 18px; }
.desktop-window-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: none; }
.app-settings > .desktop-settings-titlebar { gap: 0; padding: 0; background: var(--bg); }
.desktop-settings-sidebar-heading { display: flex; align-items: center; align-self: stretch; gap: 8px; padding-inline: 14px 10px; }
.desktop-settings-sidebar-heading .desktop-window-title { flex: 1; }
.desktop-settings-search-toggle.icon-button { flex: none; width: 28px !important; min-width: 28px !important; height: 28px !important; }
.desktop-settings-search-toggle[aria-pressed=true] { background: var(--accent-bg) !important; color: var(--accent) !important; }
.desktop-settings-section-title, .desktop-settings-saving { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-settings-section-title { flex: 1; padding-inline: 10px; text-align: center; font-weight: 600; font-size: 13px; }
.desktop-settings-saving { max-width: 28%; padding-inline-end: 8px; color: var(--muted); font-size: var(--font-small); pointer-events: none; }
.desktop-settings-saving:empty { display: none; }
.desktop-settings-titlebar > .desktop-window-actions { margin-inline-end: 8px; }
.app-settings[data-window-overhang] > .desktop-settings-titlebar { padding-inline: 0; }
.app-settings[data-window-overhang] .desktop-settings-sidebar-heading { padding-inline-start: 16px; }
.app-settings[data-window-overhang] .desktop-settings-titlebar > .desktop-window-actions { margin-inline-end: 16px; }
.desktop-window-actions { display: flex; align-items: center; flex: none; gap: 3px; margin-left: auto; }
.desktop-window-actions > .icon-button { height: 28px !important; width: 28px !important; min-width: 28px !important; padding: 6px !important; }
.desktop-window-actions .window-close:hover { background: #c95e6520 !important; color: var(--danger) !important; }
.desktop-window:not(.maximized) .window-maximize .glyph-window-restore,
.desktop-window.maximized .window-maximize .glyph-window-maximize { display: none; }
.desktop-window-content { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; overflow: hidden; padding: 18px; }
.desktop-window-content .terminal-surface { min-height: 80px; }
.desktop-window-content > .software-page { overflow: auto; min-height: 0; }
.file-open-name { font-weight: 600; overflow-wrap: anywhere; }
.file-app-options { display: flex; flex-direction: column; gap: 8px; }
.file-app-options .file-app-option { justify-content: flex-start; min-height: 36px; }
.file-app-option[aria-pressed=true] { background: var(--accent-bg) !important; color: var(--accent) !important; border-color: var(--accent) !important; }
.file-association-settings { container: file-associations / inline-size; display: flex; flex-direction: column; width: 100%; min-width: 0; }
.file-association-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.file-association-filter-field { display: flex; flex-direction: column; gap: 5px; width: min(100%, 280px); }
.file-association-filter { width: 100%; }
.file-association-columns {
  display: grid !important; grid-template-columns: minmax(70px, .65fr) minmax(95px, 1fr) minmax(85px, 1.25fr) 16px;
  align-items: center; gap: 10px; min-width: 0; padding: 8px 10px !important; text-align: start;
}
.file-association-header { color: var(--muted); font-size: var(--font-small); font-weight: 600; border-bottom: 1px solid var(--line); }
.file-association-row {
  width: 100%; min-height: 42px; border: 0 !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important; background: transparent !important; color: var(--text) !important;
  white-space: normal !important; overflow-wrap: anywhere;
}
.file-association-row:hover { background: var(--raised) !important; }
.file-association-extension { font-family: var(--code-font, Consolas, monospace); font-weight: 600; }
.file-association-other-apps { color: var(--muted); min-width: 0; }
.file-association-default-badge {
  width: fit-content; padding: 2px 7px; border-radius: 5px; font-size: var(--font-small);
  background: var(--accent-bg); color: var(--accent);
}
.file-association-row > .action-glyph { color: var(--muted); }
.file-association-editor, .file-association-extra-apps, .file-associated-app-name {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.file-associated-app { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.file-associated-app-name { flex: 1 1 90px; gap: 2px; }
.file-associated-app > .action-glyph { color: var(--accent); }
.file-association-extra-apps { margin-top: 6px; }
.file-association-add-trigger { align-self: flex-start; }
.file-association-picker { gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.file-association-picker .file-app-options { max-height: min(220px, 35vh); overflow-y: auto; }
.file-association-picker .file-app-option { flex: none; }
.file-association-picker-actions { justify-content: flex-end; gap: 8px; }
@container file-associations (max-width: 365px) {
  .file-association-columns { grid-template-columns: minmax(60px, .75fr) minmax(85px, 1fr) 16px; gap: 5px 8px; }
  .file-association-header > :last-child { display: none; }
  .file-association-other-apps { grid-column: 2; }
  .file-association-other-apps:empty { display: none; }
  .file-association-row > .action-glyph { grid-area: 1 / 3; }
}
.html-preview-notice { flex: none; padding: 6px 12px; }

@media(max-width:1100px){.server-overview{padding:26px!important}.workspace-entry{padding:15px!important;grid-template-columns:28px minmax(0,1fr);column-gap:12px}.workspace-entry>.action-glyph:first-child{width:25px;height:25px}.workspace-entry>.action-glyph:last-child{display:none}.entry-title{font-size:14px}}
@media(max-width:850px){.workspace-entries{grid-template-columns:1fr}.workspace-entry{min-height:80px!important}.server-overview{padding:22px!important;gap:16px!important}.server-overview .home-title{font-size:24px}.server-overview .server-facts{display:grid!important;grid-template-columns:1fr 1fr;gap:18px}.workbench-tabs{padding-inline:12px}.workbench-tab{min-width:100px}.workbench-tab-select{padding-inline:10px!important}}
@media(prefers-reduced-motion:reduce){.desktop-dock-app,.workspace-entry{transition:none}.desktop-dock-app:hover{transform:none}}

/* Desktop controls and the single-pane Files app. */
.server-overview{position:relative}
.server-overview .overview-edit{position:absolute;top:22px;right:22px;width:32px!important;height:32px!important;min-width:32px!important;padding:7px!important}
.workbench-tab .desktop-fullscreen-toggle{width:25px!important;height:25px!important;min-width:25px!important;margin-right:3px;padding:5px!important}
.navigation-shell.desktop-fullscreen>.navigation-rail,.navigation-shell.desktop-fullscreen>.sidebar,.navigation-shell.desktop-fullscreen>.main-panel>.page-header{display:none!important}
.navigation-shell.desktop-fullscreen>.main-panel>.workspace-content{padding:0;gap:0}
.desktop-menubar .desktop-fullscreen-exit{width:28px!important;height:28px!important;min-width:28px!important;padding:5px!important;color:#e4f4f8!important}
.desktop-menubar .desktop-fullscreen-exit:hover{background:#ffffff16!important}
.desktop-window-content:has(>.remote-files){padding:0}
.remote-files{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
.files-slot{display:flex;flex:1;min-height:0;min-width:0;width:100%}
.files-slot>.file-pane{width:100%;border:0;border-radius:0}
@media(max-width:850px){.server-overview .overview-edit{top:16px;right:16px}}


.desktop-light .desktop-canvas {
  background: radial-gradient(ellipse at 91% 4%, #b4bcf29c, transparent 54%),
    radial-gradient(ellipse at 85% 100%, #9adde1b0, transparent 58%),
    linear-gradient(133deg, #f2f7ff, #dce8f8 54%, #c7e4ee);
}
@media (max-width: 1050px) {
  .desktop-window { inset: 13px 13px 89px; }
  .desktop-wallpaper-copy { right: calc(24px + var(--desktop-dock-right, 0px)); }
}
@media (max-height: 780px) {
  .desktop-wallpaper-copy { top: auto; bottom: calc(18px + var(--desktop-dock-bottom, 92px)); }
}
@media (max-width: 790px) {
  .desktop-wallpaper-copy { display: none; }
}
.desktop-light .desktop-menubar{background:#e8f0f8;color:#18364c;border-bottom:1px solid #c8d9e8}
.desktop-light .desktop-menubar .desktop-fullscreen-exit,.desktop-light .desktop-menubar .connection-target{color:#315a78!important}
.desktop-light .desktop-menubar-title{color:#21465e}
.desktop-light .desktop-secure{color:#246859}
.network-settings-list { display: flex; flex-direction: column; min-width: 0; }
.network-interface {
  display: grid !important; grid-template-columns: minmax(80px, 1fr) minmax(0, 3fr);
  align-items: start; gap: 12px; padding: 8px 0;
}
.network-interface + .network-interface { border-top: 1px solid var(--line); }
.network-interface:last-child { padding-bottom: 0; }
.network-interface-name { font-weight: 600; overflow-wrap: anywhere; }
.network-settings-values { white-space: pre-wrap; overflow-wrap: anywhere; font: var(--font-code)/1.55 Consolas, monospace; }
.network-warning { white-space: normal; line-height: 1.6; }
.desktop-window-content:has(>.docker-page){padding:0}
.docker-page{display:flex;flex:1;flex-direction:row!important;min-height:0;min-width:0;overflow:hidden;container:docker / inline-size;font-size:14px}
.docker-tabs{display:flex;flex-direction:column;flex:0 0 134px;gap:3px;padding:14px 7px;background:var(--bg);border-right:1px solid var(--line)}
.docker-tabs .docker-nav-item{display:flex;justify-content:flex-start;gap:8px;width:100%;border:0!important;background:transparent!important;padding:8px!important;text-align:left}
.docker-tabs .docker-nav-item[aria-pressed=true]{color:var(--accent)!important;background:var(--accent-bg)!important;box-shadow:inset 3px 0 var(--accent)}
.docker-main{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;gap:10px;overflow:auto;padding:16px;background:var(--surface)}
.docker-section-title{font-size:21px;font-weight:650}
.docker-toolbar,.docker-container-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.docker-toolbar{flex:none}
.docker-search-field{align-items:center;gap:4px;order:-1}
.docker-search-field .action-glyph{width:15px;height:15px}
.docker-filter{min-width:70px;max-width:130px;font-size:13px}
.docker-inventory{min-height:0;min-width:0;overflow:auto}
.docker-image-row{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:8px;padding:9px 8px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.docker-container-stats{white-space:pre-wrap;font-variant-numeric:tabular-nums;line-height:1.65}
.docker-container-stats>div{display:flex;gap:12px;justify-content:space-between;max-width:320px;border-bottom:1px solid var(--line);padding:5px 0}
.docker-columns{font-size:12px;font-weight:600;color:var(--muted);background:var(--bg);border-block:1px solid var(--line)}
.docker-container-head,.docker-page .docker-container-row{display:grid!important;grid-template-columns:minmax(70px,1fr) minmax(64px,.8fr) minmax(85px,1.2fr) minmax(70px,1fr);align-items:center;gap:8px;padding:9px 8px!important}
.docker-page .docker-container-row,.docker-page .docker-volume-row,.docker-page .docker-port-row{color:var(--text)!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;text-align:left;white-space:normal!important;flex:none}
.docker-page .docker-container-row:hover,.docker-page .docker-volume-row:hover,.docker-page .docker-port-row:hover{background:var(--accent-bg)!important}
.docker-volume-head,.docker-page .docker-volume-row{display:grid!important;grid-template-columns:1.1fr .8fr 1fr;align-items:center;gap:8px;padding:9px 8px!important}
.docker-page .docker-port-row{display:grid!important;grid-template-columns:1fr 2fr 1fr;align-items:center;gap:8px;padding:9px 8px!important}
.docker-container-list,.docker-volume-list{display:flex;flex-direction:column;gap:0}
.docker-back{align-self:flex-start}
.docker-no-matches{display:none;padding:14px 8px}
.docker-inventory:not(:has(.docker-container-row,.docker-project-group)) .docker-no-matches{display:block}
.docker-project-group{width:100%;justify-content:flex-start;min-height:34px;text-align:left;border-radius:0!important;border:0!important;border-bottom:1px solid var(--line)!important;background:var(--bg)!important}
.docker-project-group::before{content:"▸";margin-inline-end:8px;color:var(--muted)}
.docker-project-group[aria-pressed=true]::before{content:"▾"}
.docker-resource-name.compose-member{padding-inline-start:16px}
.docker-container-row .docker-resource-state::before{content:"";display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:var(--muted)}
.docker-resource-state.running::before{background:#209360}
.docker-summary,.docker-status{font-size:12px}
.docker-status:empty,.docker-error:empty{display:none}
.docker-error{overflow:auto;max-height:100px;flex:none;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
.docker-resource-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.docker-resource-state,.docker-resource-image{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.docker-resource-ports{font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}
.docker-detail{display:flex;flex-direction:column;gap:12px;flex:1;min-width:0;min-height:0;overflow:auto;border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:14px}
.docker-detail-name{font-size:17px;font-weight:600;overflow-wrap:anywhere}
.docker-container-id{font-size:12px;overflow-wrap:anywhere}
.docker-detail-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.docker-detail-tabs .button{border:0!important;border-radius:0!important;background:transparent!important}
.docker-detail-tabs .button[aria-pressed=true]{color:var(--accent)!important;box-shadow:inset 0 -2px var(--accent)}
.docker-inspection,.docker-log-panel{display:flex;flex-direction:column;gap:12px;min-height:0}
.docker-configuration-summary{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.docker-port-details,.docker-mount-details,.docker-volume-details{font-family:var(--mono,monospace);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.docker-log-output{font-family:var(--mono,monospace);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;max-height:420px;overflow:auto;background:var(--bg);padding:10px;border-radius:6px}
/* Terminal colors in captured output, chosen for contrast on --bg in each theme. */
:root,.theme-dark{--ansi-0:#6e7681;--ansi-1:#ff7b72;--ansi-2:#3fb950;--ansi-3:#d29922;--ansi-4:#58a6ff;--ansi-5:#bc8cff;--ansi-6:#39c5cf;--ansi-7:#b1bac4;--ansi-8:#8b949e;--ansi-9:#ffa198;--ansi-10:#56d364;--ansi-11:#e3b341;--ansi-12:#79c0ff;--ansi-13:#d2a8ff;--ansi-14:#56d4dd;--ansi-15:#f0f6fc}
.theme-light{--ansi-0:#24292f;--ansi-1:#cf222e;--ansi-2:#116329;--ansi-3:#7d4e00;--ansi-4:#0969da;--ansi-5:#8250df;--ansi-6:#1b7c83;--ansi-7:#6e7781;--ansi-8:#57606a;--ansi-9:#a40e26;--ansi-10:#1a7f37;--ansi-11:#633c01;--ansi-12:#0550ae;--ansi-13:#6639ba;--ansi-14:#0e6b74;--ansi-15:#8c959f}
.ansi-fg-0{color:var(--ansi-0)}.ansi-fg-1{color:var(--ansi-1)}.ansi-fg-2{color:var(--ansi-2)}.ansi-fg-3{color:var(--ansi-3)}.ansi-fg-4{color:var(--ansi-4)}.ansi-fg-5{color:var(--ansi-5)}.ansi-fg-6{color:var(--ansi-6)}.ansi-fg-7{color:var(--ansi-7)}.ansi-fg-8{color:var(--ansi-8)}.ansi-fg-9{color:var(--ansi-9)}.ansi-fg-10{color:var(--ansi-10)}.ansi-fg-11{color:var(--ansi-11)}.ansi-fg-12{color:var(--ansi-12)}.ansi-fg-13{color:var(--ansi-13)}.ansi-fg-14{color:var(--ansi-14)}.ansi-fg-15{color:var(--ansi-15)}
.ansi-bg-0{background:var(--ansi-0)}.ansi-bg-1{background:var(--ansi-1)}.ansi-bg-2{background:var(--ansi-2)}.ansi-bg-3{background:var(--ansi-3)}.ansi-bg-4{background:var(--ansi-4)}.ansi-bg-5{background:var(--ansi-5)}.ansi-bg-6{background:var(--ansi-6)}.ansi-bg-7{background:var(--ansi-7)}.ansi-bg-8{background:var(--ansi-8)}.ansi-bg-9{background:var(--ansi-9)}.ansi-bg-10{background:var(--ansi-10)}.ansi-bg-11{background:var(--ansi-11)}.ansi-bg-12{background:var(--ansi-12)}.ansi-bg-13{background:var(--ansi-13)}.ansi-bg-14{background:var(--ansi-14)}.ansi-bg-15{background:var(--ansi-15)}
.ansi-fg-inverse{color:var(--bg)}.ansi-bg-inverse{background:var(--text)}.ansi-bold{font-weight:600}.ansi-dim{opacity:.7}.ansi-italic{font-style:italic}.ansi-underline{text-decoration:underline}.ansi-strike{text-decoration:line-through}.ansi-conceal{color:transparent}.ansi-underline.ansi-strike{text-decoration:underline line-through}
.docker-log-time{color:var(--muted)}
.docker-log-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.docker-volumes,.docker-ports{display:flex;flex:1;min-height:0;flex-direction:column;overflow:auto;gap:10px}
.docker-volume-details{padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:7px;flex:none}
.docker-volume-details:empty{display:none}
.docker-config-form,.docker-action-review{display:flex;flex-direction:column;gap:14px;min-width:0;overflow-wrap:anywhere}
@container docker (max-width:690px){
  .docker-tabs{flex-basis:100px;padding:10px 3px}
  .docker-tabs .docker-nav-item{gap:4px;padding:6px!important}
  .docker-main{padding:10px}
}
@container docker (max-width:530px){
  .docker-tabs{flex-basis:72px}
  .docker-nav-item .action-glyph{display:none}
  .docker-container-head,.docker-page .docker-container-row{grid-template-columns:1fr 1fr;gap:4px}
  .docker-container-head>:nth-child(n+3),.docker-container-row>.docker-resource-ports,.docker-container-row>.docker-resource-image{display:none}
}

/* Desktop theme boundaries */
.server-desktop.theme-dark,.server-desktop.theme-light{color:var(--text)}

/* Compact desktop applications. */
.desktop-window-titlebar:has(.terminal-controls)>.desktop-window-title{display:none}
.desktop-window-titlebar:has(.terminal-controls){gap:6px;padding-left:10px;padding-right:6px;overflow:visible}
.terminal-controls{display:flex;align-items:center;gap:5px;flex:1;min-width:0;min-height:0;height:32px}
.terminal-controls .terminal-tabs{display:flex;align-items:center;flex:1;min-width:0;height:30px;min-height:0;padding:0;margin:0;border:0;background:transparent;gap:4px}
.terminal-controls .terminal-tab-list{flex:1;min-width:0;overflow:auto;scrollbar-width:none}
.terminal-controls .terminal-tab{height:26px;min-height:26px;padding:3px 8px!important;max-width:180px;overflow:hidden;text-overflow:ellipsis;font-size:13px;white-space:nowrap}
.terminal-controls .terminal-tab-close{width:20px!important;height:20px!important;min-width:20px!important;padding:3px!important}
.terminal-controls .terminal-status{font-size:12px;white-space:nowrap}.terminal-controls .terminal-status.running{display:none}
.terminal-controls .icon-button{width:25px!important;height:25px!important;min-width:25px!important;padding:4px!important}
.desktop-window-content:has(>.terminal-module:not(.hidden)){padding:0}.desktop-window-content>.terminal-module{border:0;border-radius:0}
.desktop-window-content:has(> .monitor-page) { padding: 0; }
.monitor-page { display: flex; flex: 1; min-width: 0; min-height: 0; overflow: hidden; }
.monitor-sidebar {
  display: flex; flex: 0 0 clamp(206px, calc(194px + 2.5%), 216px); flex-direction: column;
  gap: 4px; overflow: auto; padding: 8px; background: var(--surface); border-inline-end: 1px solid var(--line);
}
.monitor-section-link {
  display: grid !important; grid-template-columns: 17px minmax(0, 1fr); align-content: center;
  grid-template-rows: auto auto; align-items: center; column-gap: 8px; row-gap: 1px;
  min-height: 49px; flex: none; min-width: 0; padding: 6px 7px !important; text-align: start;
}
.monitor-section-link .action-glyph { grid-area: 1 / 1 / 3 / 2; width: 17px; height: 17px; color: var(--accent); }
.monitor-section-link:hover { background: var(--raised) !important; }
.monitor-section-link[aria-pressed=true] { background: var(--accent-bg) !important; color: var(--accent) !important; }
.monitor-section-label { grid-area: 1 / 2; font-weight: 600; font-size: var(--font-label); overflow-wrap: anywhere; }
.monitor-section-summary { grid-area: 2 / 2; text-align: start; color: var(--muted); white-space: normal; overflow-wrap: anywhere; font-size: var(--font-small); font-variant-numeric: tabular-nums; }
.monitor-section-summary:empty, .monitor-card-detail:empty, .monitor-sample-error:empty { display: none; }
.monitor-content { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; gap: 14px; padding: 14px 16px; }
.monitor-content > * { flex-shrink: 0; }
.monitor-content > .services-page, .monitor-content > .system-logs-page { flex: 1 1 auto; }
.monitor-content.monitor-processes { container: monitor-processes / inline-size; }
.monitor-content:has(> .monitor-process-inventory) { overflow: hidden; gap: 10px; }
.monitor-process-inventory, .monitor-port-details { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.monitor-content > .monitor-process-inventory { flex: 1; min-height: 0; }
.monitor-process-toolbar, .monitor-process-actions { display: flex; flex: none; align-items: center; flex-wrap: wrap; gap: 8px; }
.monitor-process-actions { max-width: 100%; margin-inline-start: auto; }
.monitor-process-filter { flex: 1 1 138px; min-width: 0; max-width: 360px; }
.monitor-process-feedback { flex: none; }
.monitor-process-status:empty, .monitor-process-error:empty { display: none; }
.monitor-process-error { white-space: pre-wrap; overflow-wrap: anywhere; }
.monitor-process-table { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.monitor-process-viewport { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: auto; overflow-anchor: none; overscroll-behavior: contain; scrollbar-gutter: stable; }
.monitor-process-spacer { flex: none; }
.monitor-process-viewport .monitor-process-row { box-sizing: border-box; overflow: hidden; }
.monitor-process-viewport .monitor-process-row > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monitor-process-row {
  --process-columns: minmax(0, .75fr) minmax(0, 2.6fr) minmax(0, .75fr) minmax(0, .7fr) minmax(0, 1fr);
  display: grid !important; grid-template-columns: var(--process-columns) minmax(0, 1.7fr);
  flex: none; align-items: center; gap: 8px; min-height: 34px; min-width: 0; padding: 6px 10px;
  border-bottom: 1px solid var(--line); font-size: var(--font-label); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.monitor-process-row > :nth-child(4), .monitor-process-row > :nth-child(5) { text-align: end; }
.monitor-process-ports, .monitor-process-port-heading { padding-inline-start: 8px; }
.monitor-process-ports:empty::before { content: '—'; color: var(--muted); }
.monitor-process-header { overflow: hidden; scrollbar-gutter: stable; background: var(--raised); color: var(--muted); font-size: var(--font-small); }
@container monitor-processes (max-width: 510px) {
  .monitor-process-row { grid-template-columns: var(--process-columns); gap: 3px 8px; }
  .monitor-process-port-heading, .monitor-process-ports:empty { display: none; }
  .monitor-process-ports { grid-column: 2 / -1; padding-inline-start: 0; color: var(--muted); font-size: var(--font-small); }
}
.monitor-services .service-row { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.15fr); }
.monitor-services .service-state { overflow-wrap: anywhere; }
.monitor-services .services-page > .software-error:empty { display: none; }
.monitor-heading { font-size: var(--font-title); }
.monitor-sample-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.monitor-metric-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr)); }
.monitor-load-card { container-type: inline-size; padding-inline: 12px; }
.monitor-load-periods { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.monitor-load-period { flex: 1 0 auto; gap: 4px; white-space: nowrap; }
.monitor-load-period .metric-value { font-size: clamp(16px, 12cqi, 25px); }
.monitor-overview .resource-trend-plots { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.disks-page { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.disks-status:empty, .disks-error:empty { display: none; }
.disks-toolbar,.services-filters,.software-sources,.install-sources,.compose-toolbar,.compose-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:none}
.disk-filter{min-width:100px;flex:1}.disk-device-list,.disk-mount-list{display:flex;flex-direction:column;gap:6px}
.disk-device-row{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,84px),1fr));gap:8px;padding:10px;border:1px solid var(--line);border-radius:6px;font-size:13px;min-width:0;background:var(--surface)}
.disk-device-row>span{overflow-wrap:anywhere}.disk-name{font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}
.disk-mount-row{display:flex!important;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;padding:12px!important;border:1px solid var(--line)!important;border-radius:7px!important;background:var(--surface)!important;color:var(--text)!important;white-space:normal!important;font-size:13px;opacity:1!important}
.services-page .operation-services{min-height:0}.services-page .operations-toolbar{flex-wrap:wrap;gap:6px}.services-page .services-filters{margin:10px 0}
.services-filters [aria-pressed=true],.software-sources [aria-pressed=true],.install-sources [aria-pressed=true],.compose-project-row[aria-pressed=true]{background:var(--accent-bg)!important;border-color:var(--accent)!important}
.services-page .operations-details{max-height:220px;overflow:auto}.services-page .software-error:empty{display:none}.services-page .service-state{min-width:170px;font-size:12px}
.command-input{min-height:140px;font:13px monospace}.package-source-page{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:auto}
.software-sources{padding-bottom:10px;border-bottom:1px solid var(--line)}
.software-install-form,.compose-install-form,.native-install-fields{display:flex;flex-direction:column;gap:12px;min-width:0}
.compose-preview{font:13px/1.55 monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);padding:12px;border:1px solid var(--line);border-radius:6px;max-height:280px;overflow:auto}
.compose-projects{display:flex;flex-direction:column;flex:1;min-height:0;gap:12px;overflow:auto}.compose-project-list{display:flex;flex-direction:column;gap:6px}
.compose-project-row{text-align:left;white-space:normal!important;overflow-wrap:anywhere}.compose-project-path,.compose-install-path{font-size:12px;overflow-wrap:anywhere}
.docker-toolbar{gap:8px}.docker-toolbar .docker-filter{width:clamp(105px,23cqw,220px);max-width:100%}
@media(max-width:1100px){.disk-device-row>span:nth-child(n+4){font-size:12px}.services-page .service-row{flex-wrap:wrap}.services-page .service-state{min-width:0}}

/* Each theme scope owns inherited text as well as palette variables. */
.theme-dark,.theme-light{color:var(--text)}
.theme-dark{color-scheme:dark;--file-row-line:#242c37;--line-hover:#435165;--danger:#f09494}

.services-page .operation-services{flex:1;max-height:none;min-height:0}
.services-page .service-list{flex:1;min-height:140px}

/* App Center, scoped to the desktop app window. */
.app-center-content{container:app-center / inline-size;display:flex!important;flex:1;min-height:0;min-width:0;gap:14px;overflow:hidden}
.app-center-toolbar{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap;flex-shrink:0}
.app-center-navigation{display:flex!important;gap:4px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--bg)}
.app-center-nav-button{background:transparent!important;border-color:transparent!important;min-width:82px}
.app-center-nav-button[aria-pressed=true]{background:var(--accent-bg)!important;color:var(--accent)!important;border-color:var(--line)!important}
.app-center-search{flex:1!important;min-width:190px!important;min-height:38px!important}
.app-center-custom-install{font-size:13px!important}
.app-center-error:empty{display:none}
.app-center-error{white-space:pre-wrap;max-height:78px;overflow:auto;flex-shrink:0}
.app-center-discover,.app-center-installed,.app-center-detail{display:flex!important;flex:1;min-height:0;min-width:0;gap:16px;overflow:auto;padding:1px 3px 18px}
.app-center-catalog {
  display: grid !important; grid-template-columns: clamp(148px, 20cqw, 184px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr); gap: 16px; flex: 1; min-height: 0; min-width: 0;
}
.app-center-categories {
  display: flex !important; flex-direction: column; gap: 3px; min-width: 0;
  padding: 7px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); overflow: auto;
}
.app-center-categories .button {
  flex: none; justify-content: flex-start !important; text-align: left !important;
  white-space: normal !important; overflow-wrap: anywhere; font-size: 13px !important;
  padding: 7px 9px !important; background: transparent !important; border-color: transparent !important;
}
.app-center-categories .button:hover { background: var(--raised) !important; }
.app-center-categories .button[aria-pressed=true] {
  color: var(--accent) !important; background: var(--accent-bg) !important;
  border-color: var(--line-hover) !important;
}
@container app-center (max-width: 520px) {
  .app-center-catalog { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
  .app-center-categories { flex-direction: row !important; overflow: auto hidden; }
  .app-center-categories .button { white-space: nowrap !important; }
  .app-center-detail-header, .app-center-context-filter { flex-wrap: wrap; }
}
.app-center-section-heading{display:flex!important;align-items:center;justify-content:space-between;flex-shrink:0}
.app-center-app-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr));gap:14px;flex-shrink:0;min-width:0}
.app-center-app-card{display:flex!important;min-width:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface);transition:border-color .12s,box-shadow .12s}
.app-center-app-card:hover{border-color:var(--line-hover);box-shadow:0 6px 18px #00000013}
.app-center-card-open{display:flex!important;flex-direction:column;align-items:stretch!important;text-align:left!important;white-space:normal!important;gap:14px!important;min-width:0;width:100%;padding:18px 18px 12px!important;background:transparent!important;border:0!important;border-radius:0!important;color:var(--text)!important}
.app-center-card-open:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.app-center-card-identity{display:flex!important;align-items:center;gap:12px;min-width:0}
.app-center-card-identity>div{gap:3px;min-width:0}
.app-center-app-icon{display:flex!important;align-items:center;justify-content:center;flex:0 0 48px!important;width:48px;height:48px;border-radius:12px;font:600 23px/1 'Segoe UI',sans-serif!important;letter-spacing:-1px;color:#fff;box-shadow:inset 0 1px #ffffff25}
.app-center-color-green{background:#218447}.app-center-color-mint{background:#1d7f69}.app-center-color-red{background:#b6414d}.app-center-color-blue{background:#376f9f}.app-center-color-teal{background:#317a83}.app-center-color-orange{background:#b75f2f}.app-center-color-cyan{background:#238298}.app-center-color-purple{background:#7556ac}
.app-center-app-icon.small{flex-basis:38px!important;width:38px;height:38px;border-radius:10px;font-size:18px!important}
.app-center-card-name{font-size:16px!important;font-weight:600;line-height:1.35}
.app-center-card-category{font-size:12px!important;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-center-card-summary{font-size:13px!important;font-weight:400;line-height:1.6;min-height:42px;color:var(--muted)}
.app-center-card-footer{display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding:0 18px 16px;flex-shrink:0}
.app-center-installed-badge{font-size:12px;color:var(--muted)}
.app-center-install-button{color:var(--accent)!important;background:var(--accent-bg)!important;border-color:transparent!important;min-width:76px}
.app-center-detail-header>.app-center-install-button{align-self:center}
.app-center-empty{padding:16px;color:var(--muted);text-align:center;font-size:14px}
.app-center-context-filter{display:flex!important;align-items:center;justify-content:space-between;gap:12px;background:var(--accent-bg);border-radius:8px;padding:8px 12px;flex-shrink:0}
.app-center-back{align-self:flex-start;background:transparent!important;border-color:transparent!important;color:var(--muted)!important}
.app-center-back .glyph-chevron-right{transform:rotate(180deg)}
.app-center-detail-header{display:flex!important;align-items:flex-start;gap:20px;padding:18px 0 24px;border-bottom:1px solid var(--line);flex-shrink:0}
.app-center-detail-header>.app-center-app-icon{flex-basis:80px!important;width:80px;height:80px;font-size:38px!important;border-radius:19px}
.app-center-detail-identity{flex:1;gap:5px;min-width:0}
.app-center-detail-name{font-size:28px;font-weight:600;line-height:1.2}
.app-center-detail-summary{font-size:15px;margin-top:8px}
.app-center-detail-section{gap:12px;padding:12px 0;flex-shrink:0}
.app-center-detail-uses{font-size:15px;line-height:1.8}
.app-center-website{font-size:14px;color:var(--accent);overflow-wrap:anywhere}
.app-center-inventory-toolbar{display:flex!important;align-items:center;gap:14px;flex-wrap:wrap;flex-shrink:0}
.app-center-inventory-toolbar>.section-title{flex:1}
.app-center-inventory-toolbar>.icon-button{display:none!important}
.app-center-inventory-list{display:flex!important;min-height:0;gap:8px}
.app-center-installed-row{display:flex!important;align-items:center;gap:14px;border:1px solid var(--line);border-radius:10px;padding:12px 14px;flex-shrink:0;min-width:0;flex-wrap:wrap;background:var(--surface)}
.app-center-installed-name{gap:3px;min-width:150px;flex:1;font-weight:500}
.app-center-installed-name>.subtle{font-size:12px;font-weight:400}
.app-center-source-badge{font-size:12px;padding:3px 8px;border:1px solid var(--line);border-radius:6px;white-space:nowrap}
.app-center-installed-version{font-size:12px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-center-installed-actions{display:flex!important;gap:6px;flex-shrink:0}
.app-center-installed-actions .button{font-size:12px!important}
.install-app-heading{display:flex!important;align-items:center;gap:14px;padding-bottom:15px;border-bottom:1px solid var(--line)}
.install-app-heading>div{gap:5px}
.install-app-name{font-size:21px;font-weight:600}
.install-method-heading{font-size:13px;font-weight:500;margin-top:6px}
.install-sources{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.install-source-card{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;gap:7px;white-space:normal!important;text-align:left;padding:14px!important;min-height:114px}
.install-source-card>.action-icon{width:20px;height:20px}
.install-source-card[aria-pressed=true]{border-color:var(--accent)!important;background:var(--accent-bg)!important}
.install-source-name{font-size:13px;font-weight:600}
.install-source-note{font-size:12px;font-weight:400;color:var(--muted);overflow-wrap:anywhere;line-height:1.5}
.install-package-name{padding:10px 12px;background:var(--input);border:1px solid var(--line);border-radius:7px;font:13px/1.5 monospace}
@media(max-width:1050px){.app-center-custom-install{font-size:0!important;gap:0!important}.app-center-custom-install>.action-icon{font-size:14px}.app-center-toolbar{gap:7px}}
@media(max-width:720px){.app-center-app-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,215px),1fr))}.app-center-detail-header{gap:12px}.app-center-installed-version{max-width:120px}}

.app-center-card-open{display:grid!important;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:12px!important;row-gap:4px!important}
.app-center-card-open>.app-center-app-icon{grid-column:1;grid-row:1/3}.app-center-card-name{grid-column:2;grid-row:1;align-self:end}.app-center-card-category{grid-column:2;grid-row:2;align-self:start}.app-center-card-summary{grid-column:1/-1;grid-row:3;margin-top:9px}

/* One shared workspace header and one address row for desktop Files. */
.page-header.workspace-header {
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  gap: 9px;
  justify-content: flex-start;
  background: var(--nav-bg);
}
.workspace-header .page-header-title {
  font-size: 13px;
  flex: 0 1 auto;
  max-width: min(24%, 210px);
  padding-inline-end: 10px;
  border-inline-end: 1px solid var(--line);
}
.workspace-header .workbench-tabs {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  border: 0;
  padding: 2px 0;
  background: transparent;
  scrollbar-width: none;
}
.workspace-header .workbench-tab {
  height: 34px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 7px;
}
.workspace-header .workbench-tab.active { border-color: var(--line); }
.workspace-header .workbench-tab.active::after { display: none; }
.workspace-header .workbench-tab-select { gap: 6px; min-height: 30px !important; padding: 4px 8px !important; }
.workspace-header .workbench-tab-close { margin-right: 3px; }
.workspace-header .connection-controls { gap: 7px; }
.workspace-header .connection-button { min-height: 29px !important; padding: 3px 8px !important; }
.desktop-menubar-title { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-menubar .connection-target { color: #c5ddeb; }
.desktop-menubar .desktop-secure { margin-left: 0; }
.desktop-app-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: none;
}
.desktop-window-titlebar:has(.desktop-app-tools) .desktop-window-actions { margin-left: 0; }
.files-titlebar {
  container: files-toolbar / inline-size;
  position: relative;
  gap: 5px;
  height: 40px;
  min-height: 40px;
  padding-inline: 10px 6px;
}
.files-titlebar:has(.files-search-options) { z-index: 2; }
.files-titlebar > .desktop-window-title { flex: none; margin-inline-end: 4px; }
.files-window-tools { flex: 1; min-width: 0; gap: 3px; margin-left: 0; }
.files-window-tools:not(:has(.pathbar)) { flex: none; margin-left: auto; }
.files-window-tools .icon-button {
  flex: none;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 5px !important;
}
@container files-toolbar (max-width: 620px) {
  .files-titlebar:has(.pathbar) > .desktop-window-title {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    pointer-events: none;
  }
  .files-window-tools :is(.path-copy, .path-refresh, .view-switch) { display: none !important; }
  .files-window-tools .pathbar:has(.files-search-field) .files-history { display: none !important; }
}
@container files-toolbar (max-width: 420px) {
  .files-titlebar:has(.pathbar) > .desktop-window-mark,
  .files-search-field > .folder-search-icon { display: none !important; }
  .files-window-tools .icon-button { width: 24px !important; min-width: 24px !important; }
}
.breadcrumb {
  flex: none !important;
  min-height: 32px !important;
  padding: 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-size: var(--font-body) !important;
  white-space: nowrap !important;
}
.breadcrumb.current { color: var(--text) !important; font-weight: 600; }
.breadcrumbs .glyph-chevron-right {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.breadcrumb:enabled:is(:hover, :focus-visible) {
  background: var(--accent-bg) !important;
  color: var(--accent) !important;
  cursor: pointer;
}
.breadcrumb:enabled:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
.files-window-tools .pathbar { position: relative; flex: 1; min-width: 0; gap: 3px; padding: 0; flex-wrap: nowrap; }
.files-window-tools .path-location { min-width: 46px; }
.files-history { display: flex; align-items: center; gap: 2px; flex: none; }
.files-history-back .glyph-chevron-right { transform: rotate(180deg); }
.folder-search-icon { position: relative; display: flex; width: 18px; height: 17px; flex: none; }
.folder-search-icon .glyph-folder { width: 15px; height: 15px; }
.folder-search-icon .glyph-search { position: absolute; inset: auto 0 0 auto; width: 11px; height: 11px; }
.files-search-toggle { position: relative; }
.files-search-toggle > .glyph-folder { width: 15px; height: 15px; }
.files-search-toggle > .glyph-search { position: absolute; right: 4px; bottom: 3px; width: 11px; height: 11px; }
.files-search-toggle[aria-pressed="true"],
.files-search-options-toggle[aria-pressed="true"],
.files-search-options-toggle.filtered { background: var(--accent-bg) !important; color: var(--accent) !important; }
.files-search-field {
  display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 34px; padding-inline: 7px 3px;
  color: var(--muted); background: var(--input); border: 1px solid var(--line); border-radius: 5px;
}
.files-search-field:focus-within { border-color: var(--accent); }
.files-window-tools .pathbar:has(.files-search-field) :is(.files-favorite, .path-copy, .path-refresh, .view-switch) { display: none !important; }
.files-search-field .files-search-input {
  flex: 1; min-width: 24px; width: 100%; min-height: 30px !important; height: 30px !important;
  padding: 0 3px !important; border: 0 !important; box-shadow: none !important; background: transparent !important;
}
.files-search-options {
  position: absolute; z-index: 61; inset: calc(100% - 3px) 8px auto auto;
  display: flex; flex-direction: column; gap: 9px; width: min(344px, calc(100% - 16px));
  max-height: min(380px, calc(var(--app-window-height, 400px) - 100px)); overflow: auto;
  padding: 12px; border: 1px solid var(--line-hover); border-radius: 9px;
  background: var(--surface); box-shadow: 0 10px 28px #0005;
}
.files-search-options-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.files-search-options .section-title { font-size: var(--font-label); }
.files-filter-choice[aria-pressed="true"] {
  border-color: var(--accent) !important; background: var(--accent-bg) !important; color: var(--accent) !important;
}
.files-pane:has(.files-search-field) .file-expander { visibility: hidden; }
.files-path-actions { display: flex; align-items: center; flex: none; gap: 2px; }
.files-path-actions .view-switch { margin: 0 2px; }
.files-pane .file-header { height: 29px; }
.files-pane .file-header button { height: 27px !important; }
.files-pane .file-information { flex-direction: row !important; align-items: center; gap: 12px; padding: 5px 10px; }
.files-pane .file-information-title { min-width: 0; }
.files-pane .file-information-metadata { min-width: 0; margin-left: auto; }
.files-pane .file-information-path { display: none; }
@media (max-width: 1100px) { .workspace-header .page-header-title { display: none; } }
@media (max-width: 850px) {
  .page-header.workspace-header { gap: 5px; padding-inline: 7px; }
  .workspace-header .workbench-tabs { gap: 3px; }
  .workspace-header .workbench-tab-select { padding-inline: 5px !important; font-size: 12px !important; }
  .workspace-header .workbench-tab-select > .action-glyph { display: none; }
}
@media (max-width: 720px) {
  .workspace-header .connection-state, .monitor-sampling-interval { display: none; }
}

/* Floating desktop windows and Files locations. */
.desktop-window[data-positioned] {
  inset: var(--app-window-y) auto auto var(--app-window-x);
  width: var(--app-window-width);
  height: var(--app-window-height);
}
.desktop-window-titlebar { max-width: var(--desktop-work-width, 100%); user-select: none; touch-action: none; cursor: default; }
.desktop-window-titlebar button, .desktop-window-titlebar input { cursor: auto; }
/* Leave room to grab either end of a partially visible titlebar. */
.desktop-window[data-window-overhang] > .desktop-window-titlebar { padding-inline: 16px; }
.desktop-window[data-window-dragging] { user-select: none; }
.desktop-resize-handle { position: absolute; z-index: 1; touch-action: none; }
.desktop-window.maximized .desktop-resize-handle { display: none; }
.desktop-resize-handle.edge-n, .desktop-resize-handle.edge-s { left: 10px; right: 10px; height: 5px; cursor: ns-resize; }
.desktop-resize-handle.edge-e, .desktop-resize-handle.edge-w { top: 10px; bottom: 10px; width: 5px; cursor: ew-resize; }
.desktop-resize-handle.edge-ne, .desktop-resize-handle.edge-nw,
.desktop-resize-handle.edge-se, .desktop-resize-handle.edge-sw { width: 10px; height: 10px; }
.desktop-resize-handle.edge-ne, .desktop-resize-handle.edge-sw { cursor: nesw-resize; }
.desktop-resize-handle.edge-nw, .desktop-resize-handle.edge-se { cursor: nwse-resize; }
.desktop-resize-handle.edge-n, .desktop-resize-handle.edge-ne, .desktop-resize-handle.edge-nw { top: 0; }
.desktop-resize-handle.edge-s, .desktop-resize-handle.edge-se, .desktop-resize-handle.edge-sw { bottom: 0; }
.desktop-resize-handle.edge-e, .desktop-resize-handle.edge-ne, .desktop-resize-handle.edge-se { right: 0; }
.desktop-resize-handle.edge-w, .desktop-resize-handle.edge-nw, .desktop-resize-handle.edge-sw { left: 0; }

.files-body { display: flex; flex: 1; min-height: 0; min-width: 0; }
.files-sidebar {
  display: flex;
  flex: 0 0 clamp(106px, 17%, 178px);
  min-width: 0;
  min-height: 0;
  gap: 3px;
  padding: 9px 6px;
  overflow: auto;
  background: color-mix(in srgb, var(--surface) 86%, var(--accent-bg));
  border-inline-end: 1px solid var(--line);
}
.files-sidebar-heading { padding: 8px 6px 3px; color: var(--muted); font-size: 12px; font-weight: 600; flex: none; }
.files-place {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  min-width: 0 !important;
  min-height: 29px !important;
  gap: 6px !important;
  padding: 4px 6px !important;
  border-radius: 6px !important;
  background: transparent !important;
  border-color: transparent !important;
  color: var(--text) !important;
  text-align: left !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  flex-shrink: 0;
}
.files-place:hover { background: var(--raised) !important; }
.files-place[aria-pressed=true] { background: var(--accent-bg) !important; color: var(--accent) !important; }
.files-place .action-glyph { width: 15px; height: 15px; flex: none; color: var(--accent); }
.files-place span:not(.action-glyph):not(.folder-color-dot) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-favorite-row { display: flex; align-items: center; min-width: 0; gap: 2px; flex-shrink: 0; }
.files-favorite-row .files-place { flex: 1; }
.files-favorite-row .files-favorite-remove { width: 22px !important; min-width: 22px !important; height: 24px !important; padding: 4px !important; }
.files-favorite-remove { opacity: .65; }
.files-favorite-remove:hover, .files-favorite-remove:focus-visible { opacity: 1; }
.files-favorite .glyph-star-filled, .files-favorite[aria-pressed=true] .glyph-star { display: none; }
.files-favorite[aria-pressed=true] .glyph-star-filled { display: inline-block; color: var(--accent); }
.files-sidebar-toggle[aria-pressed=true] { background: var(--raised) !important; }
.folder-color-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--folder-tag); }
.file-name:not(.file-tagged) > .folder-color-dot { display: none; }
.file-name.file-tagged > .glyph-folder.file-entry-icon { color: var(--folder-tag); }
.files-favorites { position: relative; display: flex; flex-direction: column; gap: 2px; flex: none; min-height: 51px; padding-bottom: 6px; }
.files-favorite-row { position: relative; }
.files-favorite-row[data-favorite-drop]::after, .files-favorites[data-favorite-drop=append]::after {
  content: ''; position: absolute; z-index: 1; left: 4px; right: 4px; height: 2px;
  border-radius: 2px; background: var(--accent); pointer-events: none;
}
.files-favorite-row[data-favorite-drop=before]::after { top: -1px; }
.files-favorite-row[data-favorite-drop=after]::after { bottom: -1px; }
.files-favorites[data-favorite-drop=append]::after { bottom: 1px; }
.files-tag-link > .folder-color-dot { margin-inline: 3px 4px; }
.tag-all { --folder-tag: conic-gradient(#ee646b, #ed9251, #dba928, #46af72, #4299eb, #b276dd, #ee646b); }
.files-tags-view { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.files-tags-toolbar { display: flex; align-items: center; flex: none; gap: 8px; min-height: 39px; padding: 5px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.files-tags-list { overflow: auto; min-height: 0; padding: 5px 10px; }
.files-tags-empty { padding: 14px 6px; }
.files-tag-result { display: flex; align-items: center; gap: 4px; min-width: 0; border-bottom: 1px solid var(--file-row-line); }
.files-tag-item { display: grid !important; grid-template-columns: 8px minmax(0, 1fr); column-gap: 10px; row-gap: 1px; flex: 1; min-width: 0; padding-block: 6px !important; }
.files-tag-item > .folder-color-dot { grid-row: span 2; }
.files-tag-item-path { grid-column: 2; font-size: var(--font-small); }
.tag-red { --folder-tag: #ee646b; }
.tag-orange { --folder-tag: #ed9251; }
.tag-yellow { --folder-tag: #dba928; }
.tag-green { --folder-tag: #46af72; }
.tag-blue { --folder-tag: #5b99ec; }
.tag-purple { --folder-tag: #a580eb; }
.tag-gray { --folder-tag: #8c97a5; }
.file-color-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 1px; padding: 3px 2px; }
.file-color-menu .file-color-swatch {
  display: grid !important; place-items: center; flex: none; width: 24px; height: 25px;
  min-width: 24px; min-height: 0; padding: 0 !important; border: 1px solid transparent !important;
  border-radius: 5px !important; color: var(--muted) !important; background: transparent !important;
}
.file-color-swatch .folder-color-dot { width: 13px; height: 13px; }
.file-color-menu .file-color-swatch:hover:not(:disabled),
.file-color-menu .file-color-swatch:focus-visible { background: var(--raised) !important; border-color: var(--line-hover) !important; }
.file-color-menu .file-color-swatch[aria-pressed=true] .folder-color-dot { outline: 1px solid var(--text); outline-offset: 2px; }
.file-color-clear .action-glyph { width: 12px; height: 12px; min-width: 0; min-height: 0; }
.desktop-context-menu .file-appearance-menu {
  border-block: 1px solid var(--line); padding-block: 4px; margin-block: 2px;
}
.action-glyph.folder-custom-mark,
.desktop-file .desktop-app-icon.folder-custom-mark::before { mask-image: var(--folder-icon-mask); }
[data-desktop-icon-family=color] .action-glyph.folder-custom-mark,
[data-desktop-icon-family=color] .desktop-file .desktop-app-icon.folder-custom-mark::before {
  background: var(--folder-icon-colors);
  mask-image: var(--folder-color-mask);
}
.file-folder-symbol { color: var(--accent); }
.desktop-file .desktop-tagged { position: relative; }
.desktop-file .desktop-tagged::after {
  content: ''; position: absolute; inset: 4px 4px auto auto; width: 8px; height: 8px;
  background: var(--folder-tag); border-radius: 50%; box-shadow: 0 0 0 1px var(--surface);
}
.folder-customize-preview { display: flex; gap: 12px; align-items: center; }
.folder-icon-preview {
  display: grid !important; place-items: center; width: 46px; height: 46px; flex: none;
  border: 1px solid var(--line); border-radius: 10px; background: var(--raised);
  color: var(--folder-tag, var(--accent));
}
.folder-icon-preview .action-glyph { width: 25px; height: 25px; }
.folder-customize-name { gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.folder-icon-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.folder-icon-search { position: relative; flex: 1 1 155px; min-width: 0; }
.folder-icon-search input { width: 100%; min-width: 0; padding-inline-start: 34px !important; }
.folder-icon-search .action-glyph {
  position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); color: var(--muted);
}
.folder-icon-styles {
  display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line);
  border-radius: 7px; background: var(--input);
}
.folder-icon-styles .folder-icon-style {
  min-height: 27px; padding: 3px 10px !important; border: 1px solid transparent !important;
  background: transparent !important; color: var(--muted) !important;
}
.folder-icon-styles .folder-icon-style[aria-pressed=true] {
  background: var(--accent-bg) !important; color: var(--text) !important;
}
.folder-icon-gallery {
  display: flex; flex-direction: column; gap: 12px; block-size: min(315px, 39vh);
  min-height: 104px; overflow-y: auto; scrollbar-gutter: stable; padding: 10px 2px 2px;
  border-top: 1px solid var(--line);
}
.folder-icon-group { flex: none; gap: 5px; }
.folder-icon-group-label { color: var(--muted); font-size: var(--font-small); font-weight: 600; }
.folder-icon-options { display: grid !important; grid-template-columns: repeat(auto-fill, 40px); gap: 4px; }
.folder-icon-options .folder-icon-option {
  display: grid !important; place-items: center; width: 40px; height: 36px;
  min-width: 0; min-height: 0; padding: 0 !important; border: 1px solid transparent !important;
  border-radius: 7px; background: transparent !important; color: var(--muted) !important;
}
.folder-icon-option .action-glyph { width: 22px; height: 22px; }
.folder-icon-options .folder-icon-option:hover:not(:disabled) {
  background: var(--raised) !important; color: var(--text) !important;
}
.folder-icon-options .folder-icon-option:focus-visible,
.folder-icon-styles .folder-icon-style:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.folder-icon-options .folder-icon-option[aria-pressed=true] {
  background: var(--accent-bg) !important; border-color: var(--accent) !important; color: var(--accent) !important;
}
.folder-icon-empty { align-self: center; margin-block: auto; color: var(--muted); font-size: var(--font-label); }

/* Desktop window motion uses snapshots of the window, with the dock still live. */
.desktop-motion-state { display: none !important; }
html.desktop-motion { view-transition-name: none; }
::view-transition { pointer-events: none; }
.desktop-motion::view-transition { clip-path: inset(var(--desktop-frame-inset, 0px)); }
::view-transition-group(arcnix-desktop-window) {
  animation-duration: 240ms;
  animation-timing-function: cubic-bezier(.22,.82,.25,1);
}
::view-transition-image-pair(arcnix-desktop-window) { isolation: isolate; }
::view-transition-old(arcnix-desktop-window), ::view-transition-new(arcnix-desktop-window) { mix-blend-mode: normal; }
::view-transition-old(arcnix-desktop-window) { animation: desktop-window-fade-out 160ms ease-out both; }
::view-transition-new(arcnix-desktop-window) { animation: desktop-window-enter 240ms cubic-bezier(.18,.86,.24,1) both; }
.desktop-motion-switch::view-transition-new(arcnix-desktop-window) { animation-name: desktop-window-switch; animation-duration: 200ms; }
.desktop-motion-switch::view-transition-old(arcnix-desktop-window) { animation-name: desktop-window-slide-out; }
.desktop-motion-minimize::view-transition-old(arcnix-desktop-window) {
  animation: desktop-window-minimize 230ms cubic-bezier(.3,.1,.42,1) both;
  transform-origin: 50% 65%;
}
.desktop-motion-close::view-transition-old(arcnix-desktop-window) { animation-name: desktop-window-close; animation-duration: 180ms; }
.desktop-motion-resize::view-transition-new(arcnix-desktop-window) { animation-name: desktop-window-fade-in; }
.desktop-shortcut .desktop-app-icon { transition: transform 170ms cubic-bezier(.2,.75,.25,1); }
@media (hover: hover) {
  .desktop-shortcut:hover .desktop-app-icon { transform: scale(1.04); }
}
@keyframes desktop-window-enter {
  from { opacity: 0; transform: translate(var(--desktop-motion-x, 0px), var(--desktop-motion-y, 32px)) scale(.88); }
  to { opacity: 1; transform: none; }
}
@keyframes desktop-window-switch { from { opacity: 0; transform: translateX(20px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes desktop-window-slide-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-12px); } }
@keyframes desktop-window-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes desktop-window-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes desktop-window-minimize {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translate(var(--desktop-motion-x, 0px), var(--desktop-motion-y, 62px)) scale(.76); }
}
@keyframes desktop-window-close { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(12px) scale(.93); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(arcnix-desktop-window), ::view-transition-old(arcnix-desktop-window), ::view-transition-new(arcnix-desktop-window) { animation: none !important; }
  .desktop-shortcut .desktop-app-icon, .desktop-dock-app .desktop-app-icon { transition: none !important; }
  .desktop-shortcut:hover .desktop-app-icon, .desktop-dock-app:hover .desktop-app-icon { transform: none; }
}


.desktop-transfers {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}
.desktop-transfers .transfer-progress-button {
  display: grid;
  grid-template-columns: 14px 22px auto;
  align-items: center;
  gap: 4px;
  height: 26px;
  min-height: 26px;
  padding: 2px 5px;
  border-radius: 5px;
}
.desktop-transfers .action-glyph { width: 14px; height: 14px; flex: none; }
.transfer-summary-track, .transfer-summary-fill { grid-row: 1; grid-column: 2; height: 3px; border-radius: 3px; }
.transfer-summary-track { width: 22px; height: 3px; border-radius: 3px; overflow: hidden; background: var(--line); }
.transfer-summary-fill { justify-self: start; background: var(--accent); }
.transfer-summary-percent { min-width: 3ch; text-align: end; font-size: var(--font-small); font-variant-numeric: tabular-nums; }
.desktop-menubar .transfer-progress-button { color: inherit; }
.files-download-drop { display: none !important; }
html[data-files-downloading] .files-download-drop {
  display: flex !important;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding-inline: 6px;
  border: 1px dashed var(--accent);
  border-radius: 5px;
  color: var(--text);
  background: var(--raised);
  font-size: var(--font-small);
  white-space: nowrap;
}
.transfer-progress-modal {
  width: min(760px, 100%);
}
.transfer-progress-modal .modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}
.transfer-progress-modal .queue-list { max-height: min(390px, 50dvh); }
@media (max-width: 950px) {
  .desktop-transfers .transfer-progress-button { grid-template-columns: 14px 14px auto; }
  .desktop-transfers .transfer-summary-track { width: 14px; }
}
@media (max-width: 720px) {
  .desktop-transfers .transfer-progress-button { grid-template-columns: 14px 14px; }
  .desktop-transfers .transfer-summary-percent { display: none; }
}
.app-browser { --tile-tint: #3e9ac5; --tile-shade: #155777; }
.app-browser .desktop-app-icon { color: #e7fbff; }
.app-browser > .desktop-window-titlebar > .desktop-window-title { display: none; }
.app-browser > .desktop-window-content { padding: 0; }
.browser-toolbar { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; }
.browser-toolbar > .icon-button { width: 28px !important; height: 28px !important; min-width: 28px !important; flex: none; }
.browser-toolbar .browser-back .action-glyph { transform: rotate(180deg); }
.browser-toolbar .browser-address {
  height: 28px;
  min-width: 24px;
  flex: 1;
  margin-inline: 3px;
  padding: 3px 8px !important;
  font-size: var(--font-label);
}
.browser-star.saved .action-glyph { color: #d99b20; }
.browser-page { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.browser-tabs {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: none;
  gap: 3px;
  min-height: 34px;
  padding: 3px 6px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.browser-tab-strip { display: flex; align-items: stretch; min-width: 0; overflow: auto hidden; scrollbar-width: none; }
.browser-tab { display: flex; align-items: center; max-width: 220px; min-width: 82px; flex: 0 1 180px; border: 1px solid transparent; border-radius: 6px 6px 0 0; }
.browser-tab.active { background: var(--panel); border-color: var(--line); border-bottom-color: transparent; }
.browser-tab-label { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: start; font-size: var(--font-label); }
.browser-close-tab { flex: none; min-width: 25px !important; }
.browser-tab .browser-close-tab:not(:hover) { color: var(--muted); }
.browser-bookmark-panel { max-height: 170px; overflow: auto; flex: none; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.browser-bookmark-row { display: flex; align-items: center; gap: 5px; }
.browser-bookmark-link { min-width: 0; flex: 1; text-align: start; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-surface { flex: 1; min-height: 0; min-width: 0; position: relative; display: grid !important; place-items: center; overflow: hidden; }
.browser-start { display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--muted); }
.browser-start .action-glyph { width: 36px; height: 36px; color: var(--accent); }
.browser-error-panel { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(94%, 520px); max-height: 100%; overflow: auto; padding: 12px; text-align: center; }
.browser-error { white-space: pre-wrap; overflow-wrap: anywhere; }
.browser-error-panel .choice-list { justify-content: center; }
.browser-diagnostic:empty { display: none; }
.browser-resource-warning { flex: none; display: flex; flex-direction: column; padding: 4px 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.browser-resource-warning-row { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.browser-page:has(.browser-surface.loading) .browser-tabs::after { content: ''; position: absolute; inset: 0 auto auto 0; width: 32%; height: 2px; background: var(--accent); }

.app-image { --tile-tint: #368478; --tile-shade: #205b59; }
.desktop-window:is(.app-image, .app-document) > .desktop-window-content { padding: 0; overflow: hidden; }
.image-viewer, .pdf-reader { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; background: var(--surface); }
.viewer-toolbar, .viewer-status { flex: none; display: flex; align-items: center; padding: 5px 10px; gap: 10px; }
.viewer-toolbar { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.viewer-controls { display: flex; align-items: center; gap: 3px; padding-left: 8px; border-left: 1px solid var(--line); }
.viewer-controls .icon-button { width: 34px !important; height: 34px !important; }
.viewer-controls .action-glyph { width: 18px; height: 18px; }
.viewer-controls :is(.viewer-previous, .viewer-next) { width: 36px !important; height: 36px !important; }
.viewer-controls :is(.viewer-previous, .viewer-next) .action-glyph { width: 24px; height: 24px; }
.viewer-previous .glyph-chevron-right { transform: rotate(180deg); }
.viewer-left .glyph-refresh { transform: scaleX(-1); }
.viewer-fit[aria-pressed=true] { color: var(--accent); }
.viewer-stage { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; isolation: isolate; background: #202326; color: #e4e7e8; touch-action: none; user-select: none; }
.viewer-stage.can-pan { cursor: grab; }
.viewer-stage.panning { cursor: grabbing; }
.viewer-stage .viewer-picture { position: absolute; top: 50%; left: 50%; max-width: none; max-height: none; transform: translate(-50%, -50%); }
.viewer-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; overflow-wrap: anywhere; }
.viewer-placeholder .action-glyph { width: 36px; height: 36px; opacity: .65; }
.viewer-status { min-width: 0; gap: 14px; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.viewer-filename { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pdf-page-number { width: 52px; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; }
.pdf-total { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.pdf-stage { display: block; flex: 1 1 0; min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; background: #303338; color: #e4e7e8; padding: 12px; }
.pdf-sheet { margin: 0 auto; flex: none; }
.pdf-sheet img { display: block; width: 100%; height: auto; background: white; box-shadow: 0 1px 6px #0005; }
.pdf-unlock { display: flex; gap: 6px; align-items: center; }
.pdf-fit[aria-pressed=true], .pdf-width[aria-pressed=true] { color: var(--accent); }
.desktop-window-layer:has(> .viewer-expanded) { inset: 0; }
.desktop-window-layer:has(> .viewer-expanded) ~ .desktop-dock-zone { visibility: hidden; }
.desktop-window.viewer-expanded { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
.viewer-expanded > :is(.desktop-window-titlebar, .desktop-resize-handle) { display: none; }
.app-player { --tile-tint: #795db8; --tile-shade: #4a376f; }
.app-player > .desktop-window-content { padding: 0; }
.remote-player { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; overflow: clip; }
.remote-player-screen { flex: 1; min-height: 0; min-width: 0; overflow: clip; position: relative; background: #000; }
.remote-player:has(.player-idle) .remote-player-screen { display: none !important; }
.player-idle { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #101116; color: #ebeaf7; }
.player-idle-stage {
  display: flex; flex: 1; min-height: 0; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(ellipse at 50% 46%, #343044 0%, #1c1c29 40%, #101116 80%);
}
.player-open-disc {
  display: grid !important; place-items: center; width: clamp(52px, 9vh, 84px); aspect-ratio: 1;
  padding: 0 !important; margin-bottom: 6px; border-radius: 50% !important;
  border: 1px solid #817393 !important; background: #454052 !important; color: #f2ebff !important;
  box-shadow: 0 8px 28px #0b0b134d;
}
.player-open-disc:hover { background: #595066 !important; }
.player-open-disc .action-glyph { width: 42%; height: 42%; margin-left: 4%; }
.player-idle-title { font-size: 19px; font-weight: 600; line-height: 1.2; }
.player-clock { font-size: 12px; color: #bbb6ca; font-variant-numeric: tabular-nums; }
.player-idle-controls { flex: none; gap: 9px; padding: 12px 18px; background: #191a21; }
.player-empty-timeline { height: 3px; border-radius: 3px; background: #43444e; }
.player-idle-transport { align-items: center; gap: 12px; }
.player-idle-transport > .action-glyph { color: #878391; width: 16px; height: 16px; }
.player-browse { margin-left: auto; background: #35313f !important; color: #eee9fa !important; border: 1px solid #57515e !important; }
.desktop-modal-backdrop .file-picker-dialog {
  container-type: inline-size;
  width: min(632px, 100%); height: min(500px, 100%);
  --modal-min-width: 440px; --modal-min-height: 320px;
}
.file-picker-dialog .modal-body { flex: 1; padding: 0; overflow: hidden; }
.file-picker-browser { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; }
.file-picker-browser .pathbar { flex-wrap: nowrap; padding: 8px 12px; }
.file-picker-browser > .files-body { border-block-start: 1px solid var(--line); }
.file-picker-browser .files-sidebar { flex-basis: clamp(112px, 24%, 148px); }
.file-picker-list-pane { flex: 1; min-width: 0; min-height: 0; }
.file-picker-browser .file-header, .file-picker-browser .file-picker-row { padding-inline: 16px; }
.file-picker-browser .file-header { height: 29px; border-block-start: 0; font-size: var(--font-small); color: var(--muted); background: var(--raised); }
.file-picker-row > .file-name { color: var(--text); background: transparent; border: 0; }
.file-picker-row:hover { background: var(--raised) !important; }
.file-picker-row.row-selected { background: var(--accent-bg) !important; }
.file-picker-message { margin: auto; padding: 18px; color: var(--muted); font-size: var(--font-small); overflow-wrap: anywhere; }
.file-picker-message:empty { display: none; }
.file-picker-dialog .modal-footer { gap: 8px 14px; padding-inline: 14px; }
.file-picker-filter { position: relative; margin-inline-end: auto; min-width: 0; }
.file-picker-formats {
  position: absolute; z-index: 1; inset: auto auto calc(100% + 6px) 0;
  width: calc(100cqw - 28px); max-height: min(290px, 52vh); overflow: auto; gap: 8px;
  padding: 8px; border: 1px solid var(--line-hover); border-radius: 6px;
  background: var(--surface); box-shadow: 0 8px 20px #0004;
}
.file-picker-custom-format { display: flex; gap: 6px; }
.file-picker-custom-format > input { flex: 1; min-width: 0; }
.file-picker-actions { display: flex; gap: 8px; }
.file-picker-save-name { display: flex; flex: 1; min-width: 0; align-items: center; gap: 8px; }
.file-picker-save-name input { flex: 1; min-width: 0; }
.remote-player-screen video { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none !important; object-fit: contain; }
.player-feedback {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); z-index: 1;
  display: grid !important; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #101010b8; color: #fff; pointer-events: none;
}
.remote-player-screen:not(:has(video)) .player-feedback,
.player-feedback:not([data-symbol="play"], [data-symbol="pause"]),
.player-feedback:not([data-symbol="play"]) .glyph-play,
.player-feedback:not([data-symbol="pause"]) .glyph-pause { display: none !important; }
.player-feedback .action-glyph { width: 28px; height: 28px; }
.player-control-bar {
  display: flex; flex: none; align-items: center; gap: 10px; min-width: 0;
  padding: 5px 10px; background: var(--surface); color: var(--text);
  border-block-start: 1px solid var(--line);
}
.player-control-bar button {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px;
  padding: 0; border: 0; border-radius: 5px; background: transparent; color: inherit;
}
.player-control-bar button:hover:enabled { background: var(--accent-bg); }
.player-control-bar button:focus-visible { outline: 2px solid var(--accent); }
.player-control-bar .action-glyph { width: 16px; height: 16px; pointer-events: none; }
.player-time { white-space: nowrap; font-size: var(--font-small); font-variant-numeric: tabular-nums; }
.player-control-bar input { height: 26px; min-width: 0; padding: 0; accent-color: var(--accent); }
.player-seek { flex: 1 1 0; }
.player-volume { width: clamp(36px, 11%, 84px); }
.remote-player-status, .remote-player-error { padding: 12px 14px; overflow-wrap: anywhere; }
.remote-player-status:empty, .remote-player-error { display: none; }
.remote-player:has(.playback-failed) .remote-player-error { display: block; color: var(--danger); }

.file-row:has(.file-inline-name) .file-label { display: none; }
.details-view .file-row:has(.file-inline-name) .file-name { flex: none; margin: 0; }
.file-inline-name { flex: 1; min-width: 0; width: 100%; height: 28px; padding-inline: 4px; font: inherit; user-select: text; }
.icons-view .file-inline-name { flex: none; text-align: center; }

.trash-panel, .trash-items, .trash-details { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.trash-panel { padding: 12px; flex: 1; overflow: auto; }
.trash-items { overflow: auto; }
.trash-details { flex: 1; }
.trash-item, .trash-confirm, .trash-controls { display: flex; align-items: center; gap: 8px; }
.trash-item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.trash-original, .trash-confirm { overflow-wrap: anywhere; white-space: pre-wrap; }
.trash-error { color: var(--danger); }
.trash-error:empty, .trash-status:empty { display: none; }

.app-files > .desktop-window-content { padding: 0; }
.files-window-content { container: files-toolbar / inline-size; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.files-tabs {
  display: flex; align-items: center; flex: 1 1 0; gap: 4px;
  min-width: 0; height: 100%; padding-inline: 4px; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.files-tab {
  display: flex; align-items: center; flex: 0 0 auto; gap: 4px;
  min-width: 64px; max-width: 184px; height: 30px; padding-inline: 8px 4px;
  border: 1px solid transparent; border-radius: 8px; color: var(--muted);
}
.files-tab.selected {
  background: var(--accent-bg); border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
  color: var(--text);
}
.files-tab:not(.selected):hover { background: var(--raised); color: var(--text); }
.terminal-parked-surface { flex: 1; min-height: 0; overflow: hidden; padding: 10px; pointer-events: none; }
.window-tab-select { touch-action: none; }
.window-tab-item[data-tab-dragging] { opacity: .55; }
.window-tab-item .window-tab-select:focus { outline: none !important; }
.window-tab-item:has(.window-tab-select:focus-visible) {
  outline: 2px solid var(--accent); outline-offset: -2px;
}
.window-tab-strip:has(> .window-tab-slot) > [data-tab-dragging] { display: none; }
.window-tab-slot {
  position: relative; flex: none; align-self: center; max-width: 100%;
  border-radius: 4px; background: color-mix(in srgb, var(--accent) 9%, transparent);
  pointer-events: none;
}
.window-tab-slot::before {
  content: ''; position: absolute; inset: 1px auto 1px 0; width: 2px;
  border-radius: 2px; background: var(--accent);
}
.window-tab-preview {
  position: fixed; top: 0; left: 0; z-index: 2147483647; pointer-events: none;
  box-sizing: border-box; display: flex; align-items: center; overflow: hidden;
  border: 1px solid; border-radius: 6px; box-shadow: 0 4px 12px #0004;
  white-space: nowrap; user-select: none;
}
.files-tab-drag-source { display: flex; align-items: center; flex: 1; min-width: 0; }
.files-trash .trash-item > [data-gly-context] { width: 100%; }
.files-trash [data-gly-layer="context-point"] {
  min-width: 160px; background: var(--raised); border: 1px solid var(--line); color: var(--text);
}
.files-trash [data-gly-menu-item]:hover, .files-trash [data-gly-menu-item]:focus-visible {
  background: var(--accent-bg) !important;
}
.files-tab .files-tab-select {
  display: flex !important; align-items: center; flex: 1; min-width: 0; min-height: 24px;
  color: inherit !important; text-align: start; user-select: none; cursor: grab;
}
.files-tab-select > * { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.files-tab .files-tab-close {
  flex: none; width: 20px; min-width: 20px; height: 20px; min-height: 20px; padding: 4px !important;
}
.files-window-tools { flex: none; width: 100%; min-height: 38px; padding: 3px 8px; border-bottom: 1px solid var(--line); }
.files-window-tools:not(:has(.pathbar)) { margin-left: 0; }
.files-inactive-preview { display: flex; flex: 1; min-width: 0; flex-direction: column; overflow: auto; }
.files-inactive-preview.icons-view { display: grid !important; align-content: start; gap: 6px; padding: 8px; }
.files-inactive-preview.icons-view .files-inactive-entry {
  min-width: 0; height: calc(var(--file-icon-size) + 66px); flex-direction: column; align-items: center; justify-content: center; border: 0;
}
.files-inactive-entry .file-label { max-width: 100%; }
.files-inactive-path, .files-inactive-entry { padding: 6px 12px; gap: 8px; border-bottom: 1px solid var(--line); }
.files-inactive-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-window-content [data-files-item-target] {
  background: var(--accent-bg) !important; outline: 1px solid var(--accent); outline-offset: -1px;
}
.files-drag-ghost {
  position: fixed; z-index: 10000; top: 0; left: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; max-width: 240px; min-height: 32px;
  padding: 4px 9px; border: 1px solid #6481a9; border-radius: 6px;
  color: #eef4ff; background: #24394f; white-space: nowrap; overflow: hidden;
}
.trash-location-tools { display: flex; align-items: center; gap: 8px; flex: 1; padding-inline-start: 4px; }
.trash-location-tools .icon-button { margin-inline-start: auto; }
.app-files .trash-panel { padding: 8px 12px; }

.app-files .files-trash { padding: 0; gap: 0; }
.files-trash :is(.trash-status, .trash-error, .trash-confirm) { padding: 8px 12px; }
.trash-empty {
  display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: safe center;
  gap: 16px; padding: 20px 12px; text-align: center;
}
.trash-empty .action-glyph {
  width: clamp(64px, 13vh, 112px); height: clamp(64px, 13vh, 112px); color: var(--muted);
}
.trash-empty-title { color: var(--text); font-size: clamp(18px, 2.4vh, 23px); font-weight: 650; }
.files-trash .trash-items { gap: 0; }
.files-trash .trash-item { padding: 0; }
.trash-columns, .files-trash .trash-file-row {
  display: grid !important; grid-template-columns: minmax(80px, 1fr) minmax(0, 1.5fr) minmax(96px, .7fr);
  align-items: center; gap: 12px; width: 100%; min-height: 32px; padding: 4px 12px !important;
  border-radius: 0 !important; text-align: start;
}
.trash-columns { color: var(--muted); border-bottom: 1px solid var(--line); font-size: var(--font-small); }
.files-trash .trash-file-row:hover { background: var(--raised) !important; }
.files-trash .trash-file-row:focus { background: var(--accent-bg) !important; }
.trash-file-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.trash-file-name .action-glyph { flex: none; }
.trash-file-name > :last-child, .trash-file-row .trash-original {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Keep text selection off controls, desktop chrome, and live monitor readouts. */
button,
[data-gly-menu-item],
.preference-check,
.page-header,
.navigation-rail,
.context-sidebar,
.modal-header,
.context-popover,
.pane-menu,
.desktop-menubar,
.desktop-wallpaper-image,
.desktop-wallpaper-copy,
.desktop-shortcuts,
.desktop-dock,
.theme-thumbnail,
.desktop-settings-tabs,
.desktop-setting-label,
.files-sidebar-heading,
.file-header,
.files-inactive-preview,
.trash-columns,
.trash-empty,
.player-idle,
.monitor-sidebar,
.monitor-content > .help-heading,
.monitor-sample-status,
.monitor-metric-grid,
.monitor-process-header,
.resource-trends {
  user-select: none;
}

.connection-target,
.server-search input,
.desktop-window-titlebar input { user-select: text; }

.desktop-wallpaper-image,
:is(.desktop-dock, .desktop-shortcuts, .theme-thumbnail) img { -webkit-user-drag: none; }

.remote-editor-modal { width: 900px; }
.remote-editor { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.editor-path { font: var(--font-code)/1.5 Consolas, monospace; overflow-wrap: anywhere; }
.remote-editor-content { display: block; width: 100%; height: 48vh; min-height: 180px; padding: 12px; font: var(--font-code)/1.65 Consolas, monospace; resize: vertical; tab-size: 4; white-space: pre; overflow: auto; border: 1px solid var(--line); border-radius: 5px; background: var(--input); color: var(--text); }
.remote-editor-content:focus { border-color: var(--accent); outline: none; }
.editor-feedback { font-size: var(--font-label); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.editor-discard { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; }
.app-editor { --tile-tint: #467fbc; --tile-shade: #234866; }
.desktop-window.app-editor { container: editor-window / inline-size; }
.desktop-editor { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.editor-menubar { display: flex; align-items: center; gap: 1px; }
.editor-menu-trigger { padding: 3px 7px !important; border-radius: 4px; font-size: var(--font-label) !important; }
.editor-menu-trigger:hover, .editor-menu-trigger[aria-expanded=true] { background: var(--raised) !important; }
.editor-menu-popup:not(:popover-open) { display: none !important; }
.editor-menu-popup {
  position: fixed; inset: auto; margin: 0; display: flex; flex-direction: column;
  min-width: 170px; max-height: 70vh; overflow: auto; padding: 4px;
  border: 1px solid var(--line-hover); border-radius: 6px;
  background: var(--surface); color: var(--text); box-shadow: 0 6px 20px #0004;
}
.editor-menu-popup .editor-modes { display: contents; }
.editor-menu-popup button {
  width: 100%; min-height: 28px !important; padding: 4px 10px !important; border: 0 !important;
  border-radius: 3px !important; background: transparent !important; color: inherit !important;
  text-align: start; font: inherit !important; justify-content: flex-start;
}
.editor-menu-popup button:is(:hover, :focus-visible):enabled { background: var(--raised) !important; }
.editor-menu-popup button[data-shortcut] { display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.editor-menu-popup button[data-shortcut]::after {
  content: attr(data-shortcut) / ''; margin-inline-start: auto;
  color: var(--muted); font-size: var(--font-small);
}
.editor-menu-popup button[aria-pressed=true]::after { content: '✓'; float: right; margin-inline-start: 12px; }
.editor-tabbar {
  display: flex; align-items: center; gap: 4px; min-width: 0; flex: none; padding: 2px 6px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.editor-tab-strip { display: flex; align-items: center; flex: 1; gap: 4px; min-width: 0; }
.editor-tabbar:not(:has(.editor-tab-item, .window-tab-slot)) { display: none; }
.app-editor .desktop-window-title { flex: 0 1 auto; min-width: 0; }
.app-editor .desktop-window-actions { gap: 2px; }
.app-editor .desktop-window-actions > .icon-button { width: 25px !important; min-width: 25px !important; padding: 5px !important; }
@container editor-window (max-width: 360px) {
  .app-editor .desktop-window-titlebar { gap: 4px; padding-inline: 6px; }
  .app-editor .desktop-window-title { position: absolute; max-width: 0; }
  .app-editor .desktop-window-actions { gap: 1px; }
  .app-editor .desktop-window-actions > .icon-button { width: 23px !important; min-width: 23px !important; }
}
.window-tab-strip { position: relative; overflow: auto hidden; scrollbar-width: none; }
.window-tabs-overflow { flex: none; }
.window-tabs-overflow .window-tabs-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  width: auto !important; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.window-tabs-more::before { content: attr(data-tab-count); font-size: var(--font-small); }
.window-tabs-more .glyph-chevron-right { width: 12px; height: 12px; transform: rotate(90deg); }
.window-tabs-overflow:not([data-tabs-overflow]), .window-tabs-menu:not(:popover-open) { display: none !important; }
.window-tabs-menu {
  position: fixed; inset: auto; margin: 0; box-sizing: border-box;
  overflow: auto; overscroll-behavior: contain; padding: 4px;
  border: 1px solid var(--line-hover); border-radius: 8px;
  background: var(--surface); color: var(--text); box-shadow: 0 10px 28px #0005;
}
.window-tabs-menu button {
  display: block; flex: none; width: 100%; min-height: 32px; padding: 7px 9px !important;
  text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.window-tabs-menu button:hover { background: var(--raised) !important; }
.window-tabs-menu button[aria-current=true] { background: var(--accent-bg) !important; color: var(--accent) !important; }
.editor-tab-item { display: flex; align-items: center; flex: none; max-width: 232px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.editor-tab-item.active { background: var(--accent-bg); border-color: var(--line-hover); color: var(--accent); }
.editor-tab { display: flex !important; align-items: center; min-width: 0; gap: 6px; height: 29px; padding: 3px 8px !important; font-size: var(--font-label) !important; }
.editor-tab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-tab.dirty::before { content: ''; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.editor-tab-close { height: 23px !important; min-width: 23px !important; width: 23px !important; flex: none; margin-right: 3px; padding: 4px !important; }
.editor-empty { display: flex; flex: 1; flex-direction: column; gap: 8px; align-items: center; justify-content: center; }
.editor-file-drop[data-files-item-target] { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
.app-editor > .desktop-window-content { padding: 0; }
.desktop-editor .remote-editor { gap: 0; flex: 1; min-height: 0; }
.editor-sheet {
  --editor-gutter-width: 46px;
  --editor-line-height: 22px;
  position: relative; isolation: isolate; flex: 1; min-height: 0; overflow: hidden;
  background: var(--input); color: var(--text);
}
.editor-sheet, .editor-sheet .remote-editor-content, .editor-code-lines, .editor-numbers {
  font: var(--font-code)/var(--editor-line-height) 'Cascadia Mono', Consolas, monospace;
  font-variant-ligatures: none; letter-spacing: normal; tab-size: 4;
}
.editor-sheet .remote-editor-content {
  position: absolute; z-index: 2; left: var(--editor-gutter-width); top: 0;
  width: calc(100% - var(--editor-gutter-width)); height: 100%; min-height: 0; margin: 0;
  padding: 10px 14px; border: 0; border-radius: 0; outline: 0; resize: none;
  white-space: pre; overflow-wrap: normal; overflow: auto; background: transparent;
  color: var(--text); caret-color: var(--text); scrollbar-gutter: stable;
  scrollbar-color: color-mix(in srgb, var(--muted) 56%, var(--input)) var(--input);
}
.editor-sheet .remote-editor-content:focus { outline: 0; box-shadow: none; }
.editor-sheet.editor-highlighted:not(.editor-composing) .remote-editor-content { color: transparent; }
.editor-sheet .remote-editor-content::selection { background: color-mix(in srgb, var(--accent) 34%, transparent); }
.editor-active-line {
  position: absolute; left: 0; right: 0; height: var(--editor-line-height);
  background: color-mix(in srgb, var(--accent) 7%, var(--input)); pointer-events: none;
}
.editor-active-line[hidden] { display: none; }
.editor-gutter, .editor-code-clip {
  position: absolute; top: 0; overflow: hidden; pointer-events: none; user-select: none;
}
.editor-gutter {
  left: 0; width: var(--editor-gutter-width); border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 65%, transparent); color: var(--muted);
}
.editor-numbers { white-space: pre; text-align: right; padding-right: 10px; }
.editor-sheet.hide-line-numbers { --editor-gutter-width: 0px !important; }
.editor-sheet.hide-line-numbers .editor-gutter { display: none; }
.editor-code-clip { left: var(--editor-gutter-width); display: none; }
.editor-highlighted:not(.editor-composing) .editor-code-clip { display: block; }
.editor-code-lines { width: max-content; white-space: pre; }
.editor-code-lines > div { height: var(--editor-line-height); unicode-bidi: plaintext; }
.editor-code-lines :is(.cm-keyword, .cm-meta, .cm-header) { color: light-dark(#704496, #c7a6dd); }
.editor-code-lines :is(.cm-string, .cm-string-2, .cm-qualifier) { color: light-dark(#356445, #a6c6a0); }
.editor-code-lines :is(.cm-number, .cm-atom, .cm-builtin) { color: light-dark(#8a531e, #d8b17f); }
.editor-code-lines :is(.cm-def, .cm-property, .cm-attribute) { color: light-dark(#275e95, #94b9dc); }
.editor-code-lines :is(.cm-tag, .cm-type, .cm-variable-3, .cm-link) { color: light-dark(#256a70, #88c7c3); }
.editor-code-lines .cm-comment { color: var(--muted); }
.editor-statusbar {
  display: flex; flex: none; min-height: 27px; align-items: center; flex-wrap: wrap; gap: 3px 14px;
  padding: 3px 12px; border-top: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: var(--font-small); font-variant-numeric: tabular-nums;
}
.editor-statusbar .editor-feedback { margin-right: auto; font-size: inherit; }
.editor-position { display: inline-flex; gap: 4px; align-items: baseline; }
.editor-line-value { margin-right: 4px; }
.editor-mode-name:empty, .editor-mode-name:not(:empty) + .editor-plain-label, .editor-format:empty { display: none; }
.editor-format { padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.desktop-editor .editor-preview-host { border: 0; border-radius: 0; }
.desktop-editor .editor-discard { margin: 8px 12px 0; }
@media (forced-colors: active) {
  .editor-sheet.editor-highlighted:not(.editor-composing) .remote-editor-content { color: CanvasText; }
  .editor-sheet.editor-highlighted:not(.editor-composing) .editor-code-clip { display: none; }
}
.editor-toolbar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 10px; }
.editor-toolbar .editor-path { flex: 1; min-width: 0; }
.editor-modes { display: flex; flex: none; align-items: center; gap: 5px; }
.editor-modes [aria-pressed=true] { background: var(--accent-bg) !important; color: var(--accent) !important; }
.editor-preview-host { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.remote-editor-modal .editor-preview-host { min-height: 230px; max-height: 52vh; }
.markdown-preview { width: 100%; max-width: 78ch; min-height: 100%; margin: 0 auto; padding: 16px 20px; user-select: text; overflow-wrap: anywhere; line-height: 1.65; }
.markdown-preview > :first-child { margin-top: 0; }
.markdown-preview > :last-child { margin-bottom: 0; }
.markdown-preview :is(h1, h2, h3, h4, h5, h6) { line-height: 1.25; margin: 1.1em 0 .55em; }
.markdown-preview :is(h1, h2) { border-bottom: 1px solid var(--line); padding-bottom: .3em; }
.markdown-preview :is(pre, blockquote) { border-radius: 5px; background: var(--input); padding: 9px 12px; }
.markdown-preview pre { overflow: auto; overflow-wrap: normal; }
.markdown-preview code { font: var(--font-code) 'Cascadia Code', Consolas, monospace; }
.markdown-preview :not(pre) > code { background: var(--input); border-radius: 3px; padding: 2px 4px; }
.markdown-preview blockquote { margin-inline: 0; border-inline-start: 3px solid var(--accent); color: var(--muted); }
.markdown-preview table { border-collapse: collapse; }
.markdown-preview :is(th, td) { border: 1px solid var(--line); padding: 4px 10px; }
.markdown-preview input[type=checkbox] { display: inline; width: auto; height: auto; margin: 0 5px 0 0; }

.editor-read-error { display: flex; flex: 1; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; }

.local-demo-intro { display: flex; flex-direction: column; gap: 12px; line-height: 1.55; }
.local-demo-heading { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.local-demo-heading > .icon { color: var(--accent); }
.local-demo-advice { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-inline-start: 3px solid var(--accent); border-radius: 6px; background: color-mix(in srgb, var(--accent) 8%, transparent); }