Repository navigation
Expand file tree
/
Copy pathnewtab.css
More file actions
1095 lines (1051 loc) · 88.5 KB
/
Copy pathnewtab.css
File metadata and controls
1095 lines (1051 loc) · 88.5 KB
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
/* Lambda OS — dark command-center theme. Dark-only by design (it's a new-tab "OS"). */
:root {
color-scheme: dark;
--bg: #05070d;
--panel: rgba(13, 19, 33, 0.72);
--panel-solid: #0d1321;
--panel-hi: rgba(26, 36, 58, 0.8);
--line: rgba(130, 190, 255, 0.12);
--line-hi: rgba(130, 190, 255, 0.28);
--text: #e6edf7;
--text-2: #b4c0d3;
--muted: #7d8aa3;
--accent: #38e1ff;
--accent-2: #8b7bff;
--glow: 0 0 24px rgba(56, 225, 255, 0.25);
/* status (fixed, always paired with icon + label) */
--good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
/* graph categories (dark-mode categorical slots) */
--c-site: #3987e5; --c-rack: #d95926; --c-device: #199e70; --c-ticket: #c98500; --c-part: #d55181; --c-person: #9085e9;
--src-jira: #3987e5; --src-netbox: #199e70; --src-slack: #d55181;
--r: 14px;
--font: system-ui, -apple-system, "Segoe UI", sans-serif;
--mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0; background: radial-gradient(1200px 700px at 50% 40%, #0b1430 0%, var(--bg) 60%) fixed, var(--bg);
color: var(--text); font: 13px/1.45 var(--font); overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
kbd { font: 11px var(--mono); color: var(--muted); border: 1px solid var(--line-hi); border-radius: 5px; padding: 1px 6px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.bg-grid {
position: fixed; inset: 0; pointer-events: none; opacity: 0.35;
background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
background-size: 48px 48px;
mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
/* ---------- Top bar ---------- */
.topbar {
position: relative; z-index: 3; height: 64px; padding: 0 20px;
display: grid; grid-template-columns: 300px 1fr auto; align-items: center; gap: 20px;
border-bottom: 1px solid var(--line); background: rgba(5, 7, 13, 0.6); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-size: 19px; font-weight: 700;
background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #04060c; box-shadow: var(--glow);
}
.brand-name { letter-spacing: 0.22em; font-weight: 600; font-size: 13px; }
.brand-name b { color: var(--accent); font-weight: 700; margin-left: 2px; }
.mock-badge { font: 600 9px var(--mono); letter-spacing: 0.1em; color: var(--warning); border: 1px solid rgba(250,178,25,.4); padding: 2px 6px; border-radius: 4px; }
.cmd-trigger {
justify-self: center; width: min(620px, 100%); height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
border: 1px solid var(--line-hi); border-radius: 12px; background: rgba(20, 30, 52, 0.55); color: var(--muted); text-align: left;
transition: border-color .15s, box-shadow .15s;
}
.cmd-trigger:hover { border-color: var(--accent); box-shadow: var(--glow); }
.cmd-trigger span:nth-child(2) { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cmd-icon { color: var(--accent); font-size: 16px; }
.top-right { display: flex; align-items: center; gap: 18px; }
.sources { display: flex; gap: 6px; }
.source-pill { display: flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); font-size: 11px; color: var(--text-2); }
.source-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.source-pill.off i, .source-pill.wait i { background: var(--muted); box-shadow: none; }
.clock { display: flex; flex-direction: column; align-items: flex-end; font: 600 18px var(--mono); line-height: 1.1; }
.clock small { font: 11px var(--font); color: var(--muted); }
/* ---------- Layout ---------- */
.layout {
position: relative; z-index: 1; height: calc(100vh - 64px); padding: 16px 20px 20px;
display: grid; grid-template-columns: 330px minmax(0, 1fr) 360px; gap: 16px;
}
.col { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(14px); min-height: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 8px; }
.panel-head h2 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 8px; }
/* ---------- Left ---------- */
.greeting h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.greeting p { margin-top: 2px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi-label { font-size: 11px; color: var(--muted); }
.kpi-value { font-size: 24px; font-weight: 600; margin-top: 2px; }
.kpi-delta { font-size: 11px; color: var(--text-2); }
.kpi-delta .up-bad, .kpi-delta .down-bad { color: var(--serious); }
.kpi-delta .up-good, .kpi-delta .down-good { color: var(--good); }
.kpi svg { display: block; width: 100%; height: 30px; margin-top: 6px; overflow: visible; }
.kpi svg path.line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.kpi svg path.area { fill: url(#sparkFill); stroke: none; }
.kpi svg circle { fill: var(--accent); stroke: var(--panel-solid); stroke-width: 2; }
.kpi .spark-hit { fill: transparent; stroke: none; }
.kpi .spark-tip { position: absolute; right: 10px; top: 10px; font: 11px var(--mono); color: var(--text-2); pointer-events: none; }
.queue-panel { flex: 1; display: flex; flex-direction: column; }
.queue { overflow-y: auto; padding: 0 8px 8px; }
.qitem { display: grid; grid-template-columns: 4px 1fr auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; cursor: pointer; }
.qitem:hover { background: var(--panel-hi); }
.qbar { width: 4px; height: 100%; min-height: 32px; border-radius: 4px; }
.qkey { font: 11px var(--mono); color: var(--accent); }
.qsum { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qmeta { font-size: 11px; color: var(--muted); }
.sla { font: 600 11px var(--mono); text-align: right; white-space: nowrap; }
.sla small { display: block; font: 10px var(--font); color: var(--muted); font-weight: 400; }
/* status chip: icon + label + color, never color alone */
.status { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-good { color: var(--good); } .st-warning { color: var(--warning); } .st-serious { color: var(--serious); } .st-critical { color: var(--critical); }
.health { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); }
.health b { font-size: 10px; }
/* ---------- Stage ---------- */
.stage { display: flex; flex-direction: column; overflow: hidden; }
.stage-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: rgba(5,7,13,.5); padding: 3px; border-radius: 10px; border: 1px solid var(--line); }
.tab { padding: 5px 12px; border-radius: 7px; color: var(--muted); font-size: 12px; }
.tab.active { background: var(--panel-hi); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-hi); }
.stage-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--text-2); }
.stage-legend span { display: inline-flex; align-items: center; gap: 5px; }
.stage-legend svg { width: 10px; height: 10px; }
.stage-body { position: relative; flex: 1; min-height: 0; }
.view { position: absolute; inset: 0; width: 100%; height: 100%; display: none; cursor: grab; }
.view.active { display: block; }
.view:active { cursor: grabbing; }
.stage-hint { position: absolute; left: 14px; bottom: 10px; font-size: 11px; pointer-events: none; }
.tooltip {
position: absolute; pointer-events: none; z-index: 3; padding: 8px 10px; border-radius: 9px; max-width: 260px;
background: rgba(8, 12, 22, 0.94); border: 1px solid var(--line-hi); font-size: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.tooltip b { display: block; font-size: 12px; }
.tooltip span { color: var(--muted); font-size: 11px; }
.site-card {
position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(340px, calc(100% - 24px)); z-index: 2;
background: rgba(8, 12, 22, 0.88); border: 1px solid var(--line-hi); border-radius: 12px; backdrop-filter: blur(16px);
padding: 14px; overflow-y: auto; animation: slideIn .25s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card-head h3 { font-size: 18px; font-weight: 600; }
.card-head .code { font: 600 11px var(--mono); color: var(--accent); letter-spacing: .1em; }
.x { width: 26px; height: 26px; border-radius: 7px; color: var(--muted); font-size: 16px; }
.x:hover { background: var(--panel-hi); color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.stat { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; }
.stat b { display: block; font-size: 15px; font-weight: 600; }
.stat span { font-size: 10px; color: var(--muted); }
.section-title { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; display: flex; justify-content: space-between; }
.inv { display: grid; grid-template-columns: 1fr 92px 54px; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; }
.inv-bar { position: relative; height: 6px; border-radius: 4px; background: rgba(255,255,255,.06); }
.inv-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.inv-bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text-2); border-radius: 1px; }
.inv-num { font: 11px var(--mono); text-align: right; color: var(--text-2); }
.mini-ticket { display: flex; gap: 8px; align-items: baseline; padding: 6px 6px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.mini-ticket:hover { background: var(--panel-hi); }
.mini-ticket .qkey { flex-shrink: 0; }
.mini-ticket .qsum { flex: 1; }
.links { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line-hi); font-size: 12px; color: var(--text); }
.btn:hover { border-color: var(--accent); box-shadow: var(--glow); }
.btn.primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #04060c; border: 0; font-weight: 600; }
/* ---------- Right ---------- */
.feed-panel { flex: 1.4; display: flex; flex-direction: column; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--critical); box-shadow: 0 0 10px var(--critical); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.feed-filters { display: flex; gap: 4px; }
.chip { font-size: 11px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }
.chip i { width: 6px; height: 6px; border-radius: 2px; }
.chip.on { color: var(--text); border-color: var(--line-hi); background: var(--panel-hi); }
.feed { overflow-y: auto; padding: 0 8px 8px; }
.fitem { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 8px 6px; border-radius: 9px; cursor: pointer; }
.fitem:hover { background: var(--panel-hi); }
.fitem.new { animation: feedIn .5s ease; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); background: rgba(56,225,255,.12); } }
.src { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font: 700 10px var(--mono); color: #fff; }
.src-jira { background: var(--src-jira); } .src-netbox { background: var(--src-netbox); } .src-slack { background: var(--src-slack); }
.ftext { font-size: 12px; line-height: 1.35; }
.ftime { font: 10px var(--mono); color: var(--muted); white-space: nowrap; }
.sites-panel { flex: 1; display: flex; flex-direction: column; }
.site-list { overflow-y: auto; padding: 0 8px 8px; }
.srow { display: grid; grid-template-columns: 48px 1fr 70px 24px; gap: 8px; align-items: center; padding: 6px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.srow:hover, .srow.sel { background: var(--panel-hi); }
.srow .code { font: 600 11px var(--mono); color: var(--accent); }
.srow .bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.06); position: relative; }
.srow .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--c-site); }
.srow .n { font: 11px var(--mono); text-align: right; color: var(--text-2); }
/* ---------- Palette ---------- */
.palette-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(2, 4, 10, 0.6); backdrop-filter: blur(6px); display: flex; justify-content: center; padding-top: 12vh; }
.palette-backdrop[hidden], .drawer[hidden], .site-card[hidden], .tooltip[hidden] { display: none; }
.palette { width: min(680px, calc(100% - 32px)); max-height: 70vh; display: flex; flex-direction: column; background: rgba(10, 15, 28, 0.96); border: 1px solid var(--line-hi); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6), var(--glow); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--accent); font-size: 18px; }
.palette-input input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: 16px var(--font); }
.palette-body { overflow-y: auto; padding: 8px; }
.pgroup { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.presult { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.presult.active, .presult:hover { background: var(--panel-hi); box-shadow: inset 0 0 0 1px var(--line-hi); }
.picon { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font: 700 11px var(--mono); background: rgba(255,255,255,.05); }
.ptitle { font-size: 13px; }
.psub { font-size: 11px; color: var(--muted); }
.answer { margin: 6px; padding: 14px; border-radius: 12px; border: 1px solid rgba(139,123,255,.35); background: linear-gradient(180deg, rgba(139,123,255,.10), rgba(56,225,255,.04)); }
.answer-head { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
.answer-text { font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.answer-text .caret { display: inline-block; width: 7px; height: 15px; background: var(--accent); vertical-align: -2px; animation: pulse 1s infinite; }
.answer table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; }
.answer td, .answer th { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.answer th { color: var(--muted); font-weight: 500; font-size: 11px; }
.answer th.num { text-align: right; }
.answer td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.phint { padding: 10px; font-size: 11px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
/* ---------- Drawer ---------- */
.drawer {
position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 15; padding: 20px; overflow-y: auto;
background: rgba(8, 12, 22, 0.97); border-left: 1px solid var(--line-hi); box-shadow: -30px 0 80px rgba(0,0,0,.5); animation: slideIn .25s ease;
}
.drawer h3 { font-size: 19px; font-weight: 600; margin: 4px 0 10px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 12px; margin-top: 10px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.kv a, .linkish { color: var(--accent); cursor: pointer; text-decoration: none; }
.timeline { margin-top: 8px; border-left: 1px solid var(--line-hi); padding-left: 14px; }
.timeline li { position: relative; padding: 6px 0; font-size: 12px; }
.timeline li::before { content: ""; position: absolute; left: -18px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline small { color: var(--muted); display: block; }
/* ---------- Responsive ---------- */
@media (max-width: 1280px) { .layout { grid-template-columns: 290px minmax(0,1fr) 300px; } .sources { display: none; } }
@media (max-width: 1000px) {
body { overflow: auto; }
.topbar { grid-template-columns: auto 1fr; height: auto; padding: 10px 16px; }
.top-right { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; gap: 10px; } /* narrow windows: buttons move to a second row instead of disappearing */
.top-right .clock { display: none; }
.layout { height: auto; grid-template-columns: 1fr; padding: 12px 16px; }
.stage { height: 520px; } .queue-panel, .feed-panel, .sites-panel { max-height: 420px; }
.cmd-trigger span:nth-child(2) { display: none; }
.brand .mock-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
/* ---------- Toast ---------- */
.toast {
position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 30; pointer-events: none;
padding: 10px 16px; border-radius: 10px; background: rgba(10, 15, 28, 0.96); border: 1px solid var(--line-hi); font-size: 12px;
box-shadow: 0 10px 40px rgba(0,0,0,.5); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.linkish-row { cursor: pointer; border-radius: 6px; }
.linkish-row:hover { background: var(--panel-hi); }
/* ---------- v0.2: live data ---------- */
:root { --idle: #898781; }
.st-idle { color: var(--idle); }
.mock-badge.live { color: var(--good); border-color: rgba(12,163,12,.5); }
.source-pill { background: none; cursor: default; }
.source-pill.stale i, .source-pill.error i { background: var(--critical); box-shadow: 0 0 8px var(--critical); }
.source-pill.stale i { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.source-pill.error, .source-pill.stale { cursor: pointer; color: var(--text); border-color: var(--line-hi); }
.source-pill.demo i { background: var(--warning); box-shadow: none; }
.updated { font-size: 11px; color: var(--muted); padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.updated:hover { color: var(--text); border-color: var(--line-hi); }
.updated.fresh { color: #04060c; background: var(--accent); border-color: var(--accent); }
.gear { width: 28px; height: 28px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.gear:hover { color: var(--text); background: var(--panel-hi); }
.queue-note { font-size: 11px; padding: 0 14px 6px; }
.srow.dim { opacity: .6; }
.srow .sname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-legend .chip { cursor: pointer; }
.stage-legend .chip svg { width: 10px; height: 10px; }
.stage-legend .chip:not(.on)[data-kind] { opacity: .45; text-decoration: line-through; }
.small { font-size: 11px; margin-top: 4px; }
.note { color: var(--warning); }
.inv { grid-template-columns: minmax(0, 1fr) 80px 76px; }
.inv-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-num small { font-size: 10px; }
.boot { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg); }
.boot-card { width: min(520px, calc(100% - 32px)); padding: 28px; border-radius: 16px; border: 1px solid var(--line-hi); background: var(--panel); text-align: center; }
.boot-card .brand-mark { margin: 0 auto 14px; width: 44px; height: 44px; font-size: 24px; animation: pulse 1.6s infinite; }
.boot-card h2 { font-size: 18px; margin-bottom: 6px; }
.boot-card .links { justify-content: center; }
.boot-src { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 10px; margin-top: 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 12px; }
.boot-src span { color: var(--text-2); }
/* ---------- v0.3: deployments, second brain, agenda, inbox ---------- */
:root { --src-mail: #c98500; --src-netsuite: #9085e9; --src-atium: #e0663a; --src-grafana: #f2a01c; --dep: #3ccf6e; }
.src-mail { background: var(--src-mail); color: #0b0b0b; } .src-netsuite { background: var(--src-netsuite); }
.kpis { grid-template-columns: 1fr 1fr; }
.kpi { padding: 10px 12px; } .kpi-value { font-size: 21px; }
.agenda-panel { flex-shrink: 0; }
.agenda { padding: 0 8px 8px; }
.ev { display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.ev:hover { background: var(--panel-hi); }
.ev.now { background: rgba(56,225,255,.08); box-shadow: inset 2px 0 0 var(--accent); }
.ev-time { font: 11px var(--mono); color: var(--accent); }
.ev-time small { display: block; color: var(--muted); font: 10px var(--font); }
.ev-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tagchip { font: 600 10px var(--mono); padding: 2px 6px; border-radius: 5px; border: 1px solid rgba(60,207,110,.4); color: var(--dep); }
.tagchip:hover { background: rgba(60,207,110,.12); }
.qtabs { display: flex; gap: 2px; }
.qtabs button { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 8px; border-radius: 7px; font-weight: 600; }
.qtabs button.on { color: var(--text); background: var(--panel-hi); box-shadow: inset 0 0 0 1px var(--line-hi); }
.qtabs b { color: var(--accent); font-weight: 700; margin-left: 2px; }
.qitem.inbox { grid-template-columns: 26px 1fr auto; }
.qitem.dep .sla small { margin-top: 2px; }
.pbar { display: inline-block; width: 64px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); vertical-align: middle; position: relative; overflow: hidden; }
.pbar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.star { font-size: 14px; line-height: 1; color: var(--muted); padding: 0 2px; }
.star:hover, .star.on { color: #fab219; }
h3 .star { font-size: 18px; vertical-align: 2px; }
.dprog { display: flex; gap: 10px; align-items: center; margin: 12px 0 4px; font-size: 12px; color: var(--text-2); }
.dprog .pbar { width: 140px; height: 7px; }
.clickrow { cursor: pointer; } .clickrow:hover td { background: rgba(255,255,255,.04); }
.inv.ns { grid-template-columns: minmax(0,1fr) auto; }
/* second brain */
.view.brain { background: radial-gradient(circle at 50% 45%, rgba(139,123,255,.08), transparent 65%); }
/* deployments timeline */
.dview { overflow: auto; padding: 0 0 36px; cursor: default; }
.dtools { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; background: rgba(10,15,28,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.dtools .chip { cursor: pointer; } .dtools .chip small { color: var(--muted); }
.dsep { width: 1px; height: 18px; background: var(--line-hi); margin: 0 4px; }
.dgrid { --left: 300px; }
.dhead, .drow { display: grid; grid-template-columns: var(--left) 1fr; }
.dhead { position: sticky; top: 49px; z-index: 1; height: 26px; background: rgba(10,15,28,.85); border-bottom: 1px solid var(--line); }
.dtrack { position: relative; min-height: 26px; margin-right: 16px; }
.dmonth { position: absolute; top: 6px; font: 10px var(--mono); color: var(--muted); transform: translateX(-2px); white-space: nowrap; }
.dgridline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.dtoday { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); box-shadow: var(--glow); opacity: .8; }
.dtoday em { position: absolute; top: 6px; left: 4px; font: 600 10px var(--mono); color: var(--accent); font-style: normal; }
.dgroup { display: flex; gap: 8px; align-items: center; padding: 10px 12px 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); cursor: pointer; }
.dgroup span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.drow { border-bottom: 1px solid rgba(130,190,255,.05); cursor: pointer; }
.drow:hover { background: var(--panel-hi); }
.dinfo { display: flex; gap: 6px; align-items: flex-start; padding: 7px 10px 7px 12px; min-width: 0; }
.dtitle { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmeta { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmeta b { color: var(--accent); font-weight: 600; font-family: var(--mono); }
.dmeta .status { font-size: 10.5px; }
.drow .dtrack { min-height: 44px; }
.dbar { position: absolute; top: 13px; height: 18px; border-radius: 5px; background: color-mix(in srgb, var(--c) 30%, transparent); border: 1px solid var(--c); overflow: hidden; min-width: 6px; }
.dbar i { position: absolute; inset: 0 auto 0 0; background: var(--c); opacity: .75; }
.dbar b { position: relative; font: 600 10px/16px var(--mono); padding-left: 5px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.dbar.nostart { border-style: dashed; }
.dbar.over { background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(208,59,59,.35) 4px 6px); }
.dnodate { position: absolute; top: 14px; left: 8px; font-size: 11px; }
.dempty { padding: 30px; text-align: center; }
@media (max-width: 1280px) { .dgrid { --left: 230px; } }
/* six KPI tiles: three per row so the queue keeps its room */
.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpi { padding: 8px 9px; }
.kpi-label { font-size: 10px; line-height: 1.25; min-height: 25px; }
.kpi-value { font-size: 18px; }
.kpi-delta { font-size: 10px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kpi svg { height: 22px; margin-top: 4px; }
.dtoday em { top: 14px; }
.source-pill.grant { color: #04060c; background: var(--warning); border-color: var(--warning); font-weight: 600; }
.source-pill.grant i { background: #04060c; box-shadow: none; }
.stage-legend .seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 99px; border: 1px solid var(--line); }
.stage-legend .seg .chip { border: 0; }
.source-pill { white-space: nowrap; }
.top-right { min-width: 0; gap: 12px; }
.sources { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.clock { flex-shrink: 0; }
/* feed + inbox: full source names instead of two-letter badges */
.fitem { display: block; padding: 8px 10px; }
.fmeta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.srctag { display: inline-block; font: 600 10px/1.6 var(--font); letter-spacing: .02em; padding: 0 7px; border-radius: 99px; color: #fff; vertical-align: 1px; }
.srctag.src-mail { color: #0b0b0b; }
.srctag.src-news { background: var(--accent); color: #fff; }
.qitem.news .qsum { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qitem.news .qkey { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qitem.news .news-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.qitem.inbox { grid-template-columns: 1fr auto; }
.qitem.news { grid-template-columns: 1fr auto; align-items: start; }
.feed-filters { flex-wrap: wrap; justify-content: flex-end; }
/* real map imagery */
.globegl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-attrib { position: absolute; right: 8px; bottom: 6px; z-index: 2; font-size: 9.5px; color: rgba(230,237,247,.7); background: rgba(5,7,13,.55); padding: 1px 6px; border-radius: 4px; pointer-events: none; max-width: 60%; text-align: right; }
.site-card:not([hidden]) ~ .map-attrib { right: 364px; }
/* ===================== v0.4: themes & customization ===================== */
/* Light theme: explicit choice, or the OS setting when the theme is 'system'. */
:root[data-theme="light"] { --bg: #f3f5fa; --panel: rgba(255, 255, 255, 0.86); --panel-solid: #ffffff; --panel-hi: rgba(20, 50, 110, 0.07);
--line: rgba(20, 40, 80, 0.11); --line-hi: rgba(20, 40, 80, 0.22); --text: #0e1626; --text-2: #3a4558; --muted: #687387;
--c-site: #2a78d6; --c-rack: #eb6834; --c-device: #1baf7a; --c-ticket: #b07700; --c-part: #d0548a; --c-person: #6250d6;
--src-jira: #2a78d6; --src-netbox: #138a60; --src-slack: #c43f78; --src-mail: #b07700; --src-netsuite: #6250d6; --idle: #898781;
--glass: rgba(255, 255, 255, 0.72); --glass-strong: rgba(255, 255, 255, 0.98); --field: rgba(255, 255, 255, 0.9); --track: rgba(10,20,40,.09);
--glow: 0 0 0 1px rgba(8,145,178,.15), 0 6px 20px rgba(20,40,80,.10);
color-scheme: light; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bg: #f3f5fa; --panel: rgba(255, 255, 255, 0.86); --panel-solid: #ffffff; --panel-hi: rgba(20, 50, 110, 0.07);
--line: rgba(20, 40, 80, 0.11); --line-hi: rgba(20, 40, 80, 0.22); --text: #0e1626; --text-2: #3a4558; --muted: #687387;
--c-site: #2a78d6; --c-rack: #eb6834; --c-device: #1baf7a; --c-ticket: #b07700; --c-part: #d0548a; --c-person: #6250d6;
--src-jira: #2a78d6; --src-netbox: #138a60; --src-slack: #c43f78; --src-mail: #b07700; --src-netsuite: #6250d6; --idle: #898781;
--glass: rgba(255, 255, 255, 0.72); --glass-strong: rgba(255, 255, 255, 0.98); --field: rgba(255, 255, 255, 0.9); --track: rgba(10,20,40,.09);
--glow: 0 0 0 1px rgba(8,145,178,.15), 0 6px 20px rgba(20,40,80,.10);
color-scheme: light; } }
/* The stage (globe, map, second brain, timeline, site card) stays dark in both themes so imagery and glow read well. */
.stage { --bg: #05070d; --panel: rgba(13, 19, 33, 0.72); --panel-solid: #0d1321; --panel-hi: rgba(26, 36, 58, 0.8);
--line: rgba(130, 190, 255, 0.12); --line-hi: rgba(130, 190, 255, 0.28); --text: #e6edf7; --text-2: #b4c0d3; --muted: #7d8aa3;
--c-site: #3987e5; --c-rack: #d95926; --c-device: #199e70; --c-ticket: #c98500; --c-part: #d55181; --c-person: #9085e9;
--src-jira: #3987e5; --src-netbox: #199e70; --src-slack: #d55181; --src-mail: #c98500; --src-netsuite: #9085e9; --idle: #898781;
--glass: rgba(5, 7, 13, 0.6); --glass-strong: rgba(10, 15, 28, 0.96); --field: rgba(20, 30, 52, 0.55); --track: rgba(255,255,255,.08);
color-scheme: dark; --glow: 0 0 24px rgba(56, 225, 255, 0.25); color: var(--text); }
:root[data-accent="cyan"] { --accent: #38e1ff; --accent-2: #8b7bff; --glow: 0 0 24px rgba(56,225,255,0.25); }
:root[data-theme="light"][data-accent="cyan"] { --accent: #0784a3; --accent-2: #6250d6; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"])[data-accent="cyan"] { --accent: #0784a3; --accent-2: #6250d6; } }
:root[data-accent="cyan"] .stage { --accent: #38e1ff; --accent-2: #8b7bff; --glow: 0 0 24px rgba(56,225,255,0.25); }
:root[data-accent="violet"] { --accent: #a796ff; --accent-2: #38e1ff; --glow: 0 0 24px rgba(167,150,255,0.25); }
:root[data-theme="light"][data-accent="violet"] { --accent: #6250d6; --accent-2: #0784a3; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"])[data-accent="violet"] { --accent: #6250d6; --accent-2: #0784a3; } }
:root[data-accent="violet"] .stage { --accent: #a796ff; --accent-2: #38e1ff; --glow: 0 0 24px rgba(167,150,255,0.25); }
:root[data-accent="green"] { --accent: #3ccf6e; --accent-2: #38e1ff; --glow: 0 0 24px rgba(60,207,110,0.25); }
:root[data-theme="light"][data-accent="green"] { --accent: #15803d; --accent-2: #0784a3; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"])[data-accent="green"] { --accent: #15803d; --accent-2: #0784a3; } }
:root[data-accent="green"] .stage { --accent: #3ccf6e; --accent-2: #38e1ff; --glow: 0 0 24px rgba(60,207,110,0.25); }
:root[data-accent="orange"] { --accent: #ff9d5c; --accent-2: #ffd166; --glow: 0 0 24px rgba(255,157,92,0.25); }
:root[data-theme="light"][data-accent="orange"] { --accent: #c2410c; --accent-2: #9a6700; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"])[data-accent="orange"] { --accent: #c2410c; --accent-2: #9a6700; } }
:root[data-accent="orange"] .stage { --accent: #ff9d5c; --accent-2: #ffd166; --glow: 0 0 24px rgba(255,157,92,0.25); }
:root[data-accent="pink"] { --accent: #ff7eb6; --accent-2: #a796ff; --glow: 0 0 24px rgba(255,126,182,0.25); }
:root[data-theme="light"][data-accent="pink"] { --accent: #be185d; --accent-2: #6250d6; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"])[data-accent="pink"] { --accent: #be185d; --accent-2: #6250d6; } }
:root[data-accent="pink"] .stage { --accent: #ff7eb6; --accent-2: #a796ff; --glow: 0 0 24px rgba(255,126,182,0.25); }
:root[data-accent="blue"] { --accent: #5aa2ff; --accent-2: #38e1ff; --glow: 0 0 24px rgba(90,162,255,0.25); }
:root[data-theme="light"][data-accent="blue"] { --accent: #1d4ed8; --accent-2: #0784a3; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"])[data-accent="blue"] { --accent: #1d4ed8; --accent-2: #0784a3; } }
:root[data-accent="blue"] .stage { --accent: #5aa2ff; --accent-2: #38e1ff; --glow: 0 0 24px rgba(90,162,255,0.25); }
:root[data-theme="light"] body { background: radial-gradient(1200px 700px at 50% 40%, #e6edfb 0%, var(--bg) 60%) fixed, var(--bg); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body { background: radial-gradient(1200px 700px at 50% 40%, #e6edfb 0%, var(--bg) 60%) fixed, var(--bg); } }
:root[data-theme="light"] .bg-grid { opacity: .5; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .bg-grid { opacity: .5; } }
:root[data-theme="light"] .topbar { background: var(--glass); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .topbar { background: var(--glass); } }
:root[data-theme="light"] .cmd-trigger { background: var(--field); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .cmd-trigger { background: var(--field); } }
:root[data-theme="light"] .palette { background: var(--glass-strong); box-shadow: 0 30px 80px rgba(20,40,80,.25); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .palette { background: var(--glass-strong); box-shadow: 0 30px 80px rgba(20,40,80,.25); } }
:root[data-theme="light"] .palette-backdrop { background: rgba(230, 236, 248, 0.55); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .palette-backdrop { background: rgba(230, 236, 248, 0.55); } }
:root[data-theme="light"] .drawer { background: var(--glass-strong); box-shadow: -30px 0 80px rgba(20,40,80,.18); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .drawer { background: var(--glass-strong); box-shadow: -30px 0 80px rgba(20,40,80,.18); } }
:root[data-theme="light"] .toast { background: var(--glass-strong); color: var(--text); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .toast { background: var(--glass-strong); color: var(--text); } }
:root[data-theme="light"] .brand-mark { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .brand-mark { color: #fff; } }
:root[data-theme="light"] .answer { border-color: color-mix(in srgb, var(--accent-2) 35%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .answer { border-color: color-mix(in srgb, var(--accent-2) 35%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent); } }
:root[data-theme="light"] .wrap input[type=text], :root[data-theme="light"] .wrap input[type=password], :root[data-theme="light"] .wrap input[type=url], :root[data-theme="light"] .wrap input[type=email], :root[data-theme="light"] .wrap textarea, :root[data-theme="light"] .wrap select { background: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .wrap input[type=text], :root:not([data-theme="dark"]) .wrap input[type=password], :root:not([data-theme="dark"]) .wrap input[type=url], :root:not([data-theme="dark"]) .wrap input[type=email], :root:not([data-theme="dark"]) .wrap textarea, :root:not([data-theme="dark"]) .wrap select { background: #fff; } }
:root[data-theme="light"] .mock-badge.live { color: #0a7d0a; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .mock-badge.live { color: #0a7d0a; } }
:root[data-theme="light"] .btn.primary { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn.primary { color: #fff; } }
:root[data-theme="light"] .source-pill.grant { color: #3a2a00; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .source-pill.grant { color: #3a2a00; } }
/* shared tokens instead of hard-coded dark glass */
.pbar, .srow .bar { background: var(--track); }
/* Density */
:root[data-density="compact"] .layout { gap: 10px; padding: 10px 14px 14px; height: calc(100vh - 54px); }
:root[data-density="compact"] .col { gap: 10px; }
:root[data-density="compact"] .qitem { padding: 5px 8px; }
:root[data-density="compact"] .fitem { padding: 5px 8px; }
:root[data-density="compact"] .kpi { padding: 6px 8px; }
:root[data-density="compact"] .panel-head { padding: 8px 12px 6px; }
:root[data-density="compact"] .greeting h1 { font-size: 20px; }
:root[data-density="compact"] .topbar { height: 54px; }
/* Text size (side columns, drawer and palette; the stage keeps its scale so pointer math stays exact) */
:root[data-text="small"] :is(.col-left, .col-right, .drawer, .palette) { zoom: 0.92; }
:root[data-text="large"] :is(.col-left, .col-right, .drawer, .palette) { zoom: 1.1; }
/* Glow off: flatter, calmer */
:root[data-glow="off"] { --glow: none; }
:root[data-glow="off"] .stage { --glow: none; }
:root[data-glow="off"] :is(.live-dot, .source-pill i) { box-shadow: none; }
/* Reduced motion (the OS setting is honoured too) */
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before { animation: none !important; transition: none !important; }
/* top-bar look toggle */
.lookbtn { width: 28px; height: 28px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.lookbtn:hover { color: var(--text); background: var(--panel-hi); }
/* AI answers */
.answer.ai .ai-text p { margin: 0 0 8px; }
.answer.ai .ai-text ul, .answer.ai .ai-text ol { margin: 4px 0 8px; padding-left: 20px; }
.answer.ai .ai-text li { margin: 2px 0; }
.answer.ai .aih { font-weight: 600; margin: 10px 0 4px; }
.answer.ai .ai-text code { font: 12px var(--mono); background: var(--panel-hi); padding: 0 4px; border-radius: 4px; }
.answer.ai .aicode { font: 12px/1.45 var(--mono); background: var(--panel-hi); padding: 8px 10px; border-radius: 8px; overflow-x: auto; white-space: pre; }
.answer-text.ai-text { white-space: normal; }
.ai-foot { display: flex; gap: 6px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.ai-foot .chip { cursor: pointer; }
.ai-foot .muted { margin-left: auto; }
.ai-sent { margin-top: 10px; max-height: 260px; overflow: auto; font: 11px/1.45 var(--mono); white-space: pre-wrap; background: var(--panel-hi); border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--text-2); }
/* daily brief */
.briefbtn { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-hi); color: var(--text-2); white-space: nowrap; }
.briefbtn:hover { color: var(--text); border-color: var(--accent); }
.brief-backdrop { position: fixed; inset: 0; z-index: 18; background: rgba(2,4,10,.55); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 5vh 16px; overflow-y: auto; }
.brief-backdrop[hidden] { display: none; }
.brief { width: min(1080px, 100%); background: var(--glass-strong, rgba(10,15,28,.96)); border: 1px solid var(--line-hi); border-radius: 18px; padding: 22px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: slideIn .25s ease; }
.brief-head { display: flex; justify-content: space-between; gap: 12px; }
.brief-head h2 { font-size: 24px; font-weight: 600; margin: 4px 0 2px; }
.brief-head .code { font: 600 11px var(--mono); color: var(--accent); letter-spacing: .12em; }
.bstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 16px 0 6px; }
.bstat { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.bstat b { display: block; font-size: 22px; font-weight: 600; }
.bstat span { font-size: 11px; color: var(--muted); }
.bstat.bad b { color: var(--critical); } .bstat.warn b { color: var(--warning); } .bstat.good b { color: var(--good); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 4px 22px; }
.bsec .mini-ticket { padding: 5px 4px; }
.bsec .mini-ticket .pbar { width: 46px; }
:root[data-theme="light"] .brief-backdrop { background: rgba(230,236,248,.6); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .brief-backdrop { background: rgba(230,236,248,.6); } }
/* alert center */
.top-right { position: relative; }
.bellbtn { position: relative; width: 30px; height: 28px; border-radius: 8px; font-size: 14px; filter: grayscale(1) opacity(.7); }
.bellbtn.has, .bellbtn:hover { filter: none; background: var(--panel-hi); }
.bellbtn b { position: absolute; top: -3px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--critical); color: #fff; font: 700 10px/16px var(--font); }
.bellbtn b:empty { display: none; }
.alertpop { position: absolute; top: 40px; right: 0; z-index: 25; width: min(420px, 92vw); max-height: 70vh; overflow-y: auto; background: var(--glass-strong, rgba(10,15,28,.97));
border: 1px solid var(--line-hi); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.45); padding: 6px; animation: slideIn .18s ease; }
.alertpop[hidden] { display: none; }
.apop-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 8px; }
.apop-head .chip { cursor: pointer; margin-left: 4px; }
.aitem { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: start; padding: 8px; border-radius: 10px; cursor: pointer; }
.aitem:hover { background: var(--panel-hi); }
.adot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; background: transparent; }
.aitem.unread .adot { background: var(--accent); } .aitem.unread.urgent .adot { background: var(--critical); }
.atitle { font-size: 12.5px; font-weight: 600; } .aitem:not(.unread) .atitle { font-weight: 400; color: var(--text-2); }
.amsg { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* AI panel */
.aibtn { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 99px; white-space: nowrap; color: #fff;
background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: var(--glow); }
.aibtn:hover { filter: brightness(1.1); }
.aipanel { position: fixed; top: 74px; right: 16px; bottom: 16px; z-index: 16; width: min(480px, calc(100vw - 32px)); display: flex; flex-direction: column;
background: var(--glass-strong, rgba(10,15,28,.97)); border: 1px solid var(--line-hi); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: slideIn .2s ease; }
.aipanel[hidden] { display: none; }
.aip-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.aip-head .chip { cursor: pointer; margin-right: 4px; }
.aip-msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.aip-hello { text-align: center; padding: 20px 6px; }
.aip-hello .brand-mark { margin: 0 auto 10px; width: 40px; height: 40px; font-size: 22px; }
.aip-hello h3 { font-size: 16px; margin-bottom: 4px; }
.aip-suggest { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.aip-suggest .chip { cursor: pointer; font-size: 12px; padding: 5px 10px; }
.aip-msg.user { align-self: flex-end; max-width: 85%; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); padding: 8px 12px; border-radius: 14px 14px 4px 14px; font-size: 13px; }
.aip-msg.assistant { align-self: stretch; font-size: 13px; line-height: 1.5; }
.aip-msg .ai-text p { margin: 0 0 8px; } .aip-msg .ai-text ul, .aip-msg .ai-text ol { margin: 4px 0 8px; padding-left: 20px; }
.aip-msg .ai-text table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 6px 0; }
.aip-msg .ai-text td, .aip-msg .ai-text th { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.aip-msg .ai-text code { font: 12px var(--mono); background: var(--panel-hi); padding: 0 4px; border-radius: 4px; }
.aip-msg .aih { font-weight: 600; margin: 8px 0 4px; }
.aip-meta { margin-top: 4px; }
.aip-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; } .aip-tools .chip { cursor: pointer; }
.aip-paste { width: 100%; margin-top: 8px; resize: vertical; min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line-hi); background: var(--field); color: var(--text); font: 12.5px var(--font); outline: none; }
.aip-paste:focus { border-color: var(--accent); border-style: solid; }
.aip-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.aip-input textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line-hi); background: var(--field); color: var(--text); font: 13px var(--font); outline: none; }
.aip-input textarea:focus { border-color: var(--accent); }
.aip-input .btn { align-self: flex-end; } .aip-input .btn.stop { background: var(--critical); color: #fff; }
/* not-connected / stale notes */
.src-note { list-style: none; font-size: 11.5px; padding: 6px 14px; line-height: 1.4; }
.src-note .linkish { font-weight: 600; margin-left: 4px; }
.bwarn { margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warning) 45%, transparent); background: color-mix(in srgb, var(--warning) 10%, transparent); }
.bwarn > b { color: var(--warning); }
.bwarn-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; }
.bwarn p { margin-top: 8px; }
.updbtn { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; color: #fff; background: #2a78d6; }
.updbtn:hover { filter: brightness(1.1); }
.updbtn[hidden] { display: none; }
/* site card: actions right under the title */
.site-card .card-actions { margin: 10px 0 6px; gap: 6px; }
.site-card .card-actions .btn { padding: 5px 10px; font-size: 11.5px; }
/* top bar: keep every source pill visible */
.top-right { gap: 8px; }
.sources { gap: 4px; flex-shrink: 1; }
.source-pill { padding: 2px 7px; font-size: 10.5px; gap: 5px; }
.updated { padding: 2px 8px; font: 600 11px var(--mono); flex-shrink: 0; }
.aibtn, .briefbtn, .bellbtn, .lookbtn, .gear, .updbtn { flex-shrink: 0; }
@media (max-width: 1500px) { .source-pill { padding: 2px 6px; } .clock { font-size: 16px; } .briefbtn { padding: 4px 8px; } }
/* sources: dots for healthy, pills only for what needs you */
.sources { overflow: visible; flex-shrink: 0; align-items: center; }
.src-dots { display: inline-flex; gap: 5px; align-items: center; padding: 0 4px; }
.src-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 6px var(--good); cursor: help; }
.src-dot.off { background: var(--muted); box-shadow: none; opacity: .5; }
.src-dot.demo { background: var(--warning); box-shadow: none; }
:root[data-glow="off"] .src-dot { box-shadow: none; }
.topbar { grid-template-columns: auto minmax(200px, 1fr) auto; }
/* cross-platform: monospace fallbacks for Windows/Linux, and thin themed scrollbars (Windows/Linux default to bright, chunky ones) */
:root { --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Cascadia Mono", "DejaVu Sans Mono", "Liberation Mono", monospace;
--font: system-ui, -apple-system, "Segoe UI", Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif; }
* { scrollbar-width: thin; scrollbar-color: var(--line-hi) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-hi); border-radius: 8px; } ::-webkit-scrollbar-thumb:hover { background: var(--muted); }
/* status strip under the top bar: every source by name */
.statusbar { position: relative; z-index: 2; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 20px;
border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); overflow-x: auto; scrollbar-width: none; }
.statusbar::-webkit-scrollbar { display: none; }
.sb-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.statusbar .sources { display: flex; gap: 6px; flex-wrap: nowrap; overflow: visible; }
.statusbar .source-pill { flex-shrink: 0; font-size: 11px; padding: 2px 9px; }
.statusbar .source-pill.ok { color: var(--text-2); }
.statusbar .source-pill.off { opacity: .55; }
.statusbar .updated { margin-left: auto; flex-shrink: 0; }
.layout { height: calc(100vh - 64px - 30px); }
:root[data-density="compact"] .layout { height: calc(100vh - 54px - 30px); }
@media (max-width: 1000px) { .layout { height: auto; } }
/* dark theme: define the glass/field tokens on :root too (they were only set for the stage and the light theme) */
:root { --glass: rgba(5, 7, 13, 0.82); --glass-strong: rgba(10, 15, 28, 0.985); --field: rgba(20, 30, 52, 0.55); --track: rgba(255,255,255,.08); }
:root[data-theme="light"] { --glass: rgba(255, 255, 255, 0.72); --glass-strong: rgba(255, 255, 255, 0.98); --field: rgba(255, 255, 255, 0.9); --track: rgba(10,20,40,.09); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --glass: rgba(255, 255, 255, 0.72); --glass-strong: rgba(255, 255, 255, 0.98); --field: rgba(255, 255, 255, 0.9); --track: rgba(10,20,40,.09); } }
.aipanel, .alertpop, .brief { backdrop-filter: blur(18px); }
a.btn { text-decoration: none; display: inline-flex; align-items: center; } a.btn.primary, a.btn.primary:visited { color: #04060c; }
.mini-ticket.po-stale { opacity: .6; }
.qitem.vol { cursor: default; align-items: start; grid-template-columns: 1fr auto; }
.vol-in-card { list-style: none; margin: 0; padding: 0; }
.queue-panel .panel-head { flex-wrap: wrap; row-gap: 4px; }
.queue-panel #queueCount { margin-left: auto; white-space: nowrap; }
/* Volunteer requests: short rows in the left column, full view in a wide drawer */
.qitem.vol { cursor: pointer; }
.qitem.vol .qsum { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vol-all { list-style: none; padding: 4px 8px 6px; }
.vol-all .btn { width: 100%; justify-content: center; }
.drawer.wide { width: min(720px, 100%); padding: 24px 28px; }
.drawer.wide h3 { font-size: 22px; margin: 4px 0 6px; }
.volcard { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 16px 0; background: var(--panel); scroll-margin-top: 12px; }
.volcard.focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.volhead { display: flex; align-items: baseline; gap: 10px; }
.volsite { font: 700 20px var(--mono); color: var(--accent); }
.volname { font-size: 18px; font-weight: 600; flex: 1; }
.volmeta { margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
.voltext { margin: 12px 0 14px; font-size: 15px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.vol-empty { font-size: 14px; font-weight: 600; margin: 4px 0 12px; }
.vol-grid { overflow-x: auto; margin: 4px 0 12px; }
.vol-grid table { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.vol-grid th { font-weight: 600; color: var(--muted); text-align: center; min-width: 28px; line-height: 1.25; }
.vol-grid th.we { opacity: .6; }
.vol-grid .who { text-align: left; white-space: nowrap; padding-right: 10px; font-size: 13px; color: var(--text); }
.vol-grid th.who { white-space: normal; max-width: 120px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.vol-grid td { text-align: center; height: 26px; border-radius: 6px; background: var(--panel-hi); }
.vol-grid td.who { background: none; }
.vol-grid td i { font-style: normal; font-weight: 700; color: #04060c; background: var(--accent); border-radius: 6px; display: block; line-height: 26px; }
.vol-grid tr.me td.who { color: var(--good); font-weight: 700; }
.vol-grid tr.me td i { background: var(--good); }
.volcard .links { gap: 8px; margin-top: 4px; }
.volcard .links .btn { font-size: 13px; padding: 7px 14px; }
/* ---------- Layout v0.8.8: fleet numbers above the fleet; the left column is "my day" ---------- */
.col-center { gap: 12px; }
.col-center > .stage { flex: 1; min-height: 0; }
.kpis.kpi-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; flex-shrink: 0; }
.kpi-strip .kpi { padding: 8px 10px; }
.kpi-strip .kpi-label { min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-strip .kpi-delta { -webkit-line-clamp: 1; }
.kpi-strip .kpi svg { height: 18px; margin-top: 2px; }
@media (max-width: 1360px) { .kpis.kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.col-left { gap: 12px; }
.greeting h1 { font-size: 21px; }
.agenda-panel .agenda { max-height: 132px; overflow-y: auto; }
.queue-panel { min-height: 260px; }
.queue-panel .panel-head { padding: 10px 10px 6px; }
.qtabs { display: grid; grid-template-columns: repeat(5, auto); gap: 3px; width: 100%; padding: 3px; border-radius: 10px; background: var(--panel-hi); }
.qtabs button { padding: 7px 5px; text-align: center; letter-spacing: 0; text-transform: none; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qtabs b { display: inline-block; min-width: 16px; margin-left: 3px; padding: 0 4px; border-radius: 99px; font-size: 10px; line-height: 15px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.qtabs b:empty { display: none; }
.queue-panel #queueCount { font-size: 11px; padding: 0 4px; }
@media (min-width: 1281px) { .layout { grid-template-columns: 350px minmax(0, 1fr) 340px; } }
.qtabs { display: flex; }
.qtabs button { flex: 1 1 auto; padding: 7px 3px; overflow: visible; text-overflow: clip; font-size: 11px; }
.qtabs b { margin-left: 2px; padding: 0 3px; min-width: 14px; }
.qtabs .nicon { display: none; }
/* Five tabs: tight, plain counts; in the narrow left column (≤1280px) News becomes 📰 */
.qtabs { gap: 1px; padding: 2px; } .qtabs button { padding: 6px 1px; font-size: 10.5px; letter-spacing: -.01em; }
.qtabs b { min-width: 0; margin-left: 2px; padding: 0 2px; background: none; }
@media (max-width: 1280px) { .queue-panel .panel-head { padding-left: 5px; padding-right: 5px; } .qtabs .ntxt { display: none; } .qtabs .nicon { display: inline; } }
/* Smart processing (optional AI) */
.smart-tag { flex-shrink: 0; font-size: 11px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--text-2); cursor: help; white-space: nowrap; }
.smart-tag.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.smart-tag.warn { color: var(--warning); }
.qmeta.ai-why { color: var(--accent); }
.volai { margin: -6px 0 14px; font-size: 13px; color: var(--accent); }
/* Grafana health */
.src-grafana { background: var(--src-grafana); color: #1a1100; }
.hstats .stat b { font-size: 18px; }
.alert-dot { font: 600 10px var(--font); color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 50%, transparent); border-radius: 99px; padding: 0 5px; margin-left: 4px; }
.alert-dot.crit { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 50%, transparent); }
/* Bigger view (expand button on the middle panel) */
.stage-head { position: relative; padding-right: 52px; }
.stage-expand { position: absolute; right: 12px; top: 10px; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: rgba(5,7,13,.5); color: var(--text-2); font-size: 15px; line-height: 1; cursor: pointer; }
.stage-expand:hover { color: var(--text); border-color: var(--line-hi); }
body.stage-max .layout { grid-template-columns: minmax(0, 1fr) !important; }
body.stage-max .col-left, body.stage-max .col-right, body.stage-max .kpi-strip { display: none !important; }
body.stage-max .stage-expand { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
/* Site health view */
.hview { padding: 14px 16px 40px; }
.tab-badge { margin-left: 4px; padding: 0 6px; border-radius: 99px; font-size: 10px; background: var(--critical); color: #fff; }
.hhead { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hsums { display: flex; flex-wrap: wrap; gap: 8px; }
.hsum { display: flex; align-items: baseline; gap: 6px; padding: 6px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; color: var(--text-2); }
.hsum b { font-size: 17px; color: var(--text); }
.hsum.crit { border-color: color-mix(in srgb, var(--critical) 55%, transparent); } .hsum.crit b { color: var(--critical); }
.hsum.warn b { color: var(--warning); } .hsum.ok b { color: var(--good); }
.hctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.htable-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.htable { width: 100%; border-collapse: collapse; font-size: 13px; }
.htable th { position: sticky; top: 0; background: var(--panel-solid); color: var(--muted); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; text-align: center; padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.htable th:first-child { text-align: left; }
.htable td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.htable tr:last-child td { border-bottom: 0; }
.htable tr.lvl-critical td:first-child { box-shadow: inset 3px 0 0 var(--critical); }
.htable tr.lvl-warning td:first-child { box-shadow: inset 3px 0 0 var(--warning); }
.hsite { text-align: left !important; cursor: pointer; } .hsite .dot { font-size: 10px; margin-right: 6px; }
.hsite b { font-family: var(--mono); color: var(--accent); }
.hcell[data-hcell] { cursor: pointer; } .hcell[data-hcell]:hover { background: var(--panel-hi); }
.hcell b { font-size: 15px; } .hcell small { display: block; font-size: 10px; color: var(--muted); }
.hcell .ok { color: var(--good); opacity: .7; }
.hpow { color: var(--text-2); font-variant-numeric: tabular-nums; }
.hnote { margin-top: 10px; }
.hempty { max-width: 560px; margin: 40px auto; text-align: center; }
.htable th { white-space: normal; line-height: 1.25; padding: 8px 5px; font-size: 10px; letter-spacing: .05em; }
.htable td { padding: 8px 5px; }
.htable .hsite .muted { font-size: 12px; }
@media (max-width: 1500px) { .htable .hsite .muted { display: none; } }
.urgent-row { background: color-mix(in srgb, var(--critical) 12%, transparent); }
.htable td.hnodata { text-align: left; font-size: 12px; }
.htable tr.lvl-nodata b { opacity: .6; }
/* Top cards: change since yesterday + two-week mini chart */
.kpi-delta { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.kd { font-size: 11px; font-weight: 700; white-space: nowrap; }
.kd small { font-weight: 500; color: var(--muted); }
.kd.bad { color: var(--critical); } .kd.good { color: var(--good); } .kd.neutral { color: var(--accent); } .kd.flat { color: var(--muted); font-weight: 500; }
.kflow { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.kpi-sub { font-size: 10.5px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.kpi-strip .kpi-delta { -webkit-line-clamp: unset; display: flex; }
.kpi .spark-span { position: absolute; right: 9px; top: 8px; font-size: 9px; color: var(--muted); opacity: .7; pointer-events: none; }
.kpi-strip .kpi svg { height: 26px; }
.kflow { font-size: 10.5px; } .kflow b { margin-right: 1px; }
.spark-wait { margin-top: 6px; height: 22px; display: flex; align-items: flex-end; font-size: 9.5px; color: var(--muted); border-bottom: 1px dashed var(--line-hi); }
/* Chart hover label: a solid strip over the card's title (the title comes back when you move off the chart) */
.kpi .spark-tip { left: 6px; right: 6px; top: 6px; padding: 5px 8px; border-radius: 8px; background: var(--panel-solid); border: 1px solid var(--line-hi);
color: var(--text); font: 600 11px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.kpi .spark-tip { white-space: normal; line-height: 1.35; }
/* Slim top cards: label, number + arrow, chart */
.kpi.slim { padding: 7px 10px 6px; }
.kpi.slim .kpi-label { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 0; }
.kpi.slim .kpi-row { display: flex; align-items: baseline; gap: 6px; margin-top: 1px; }
.kpi.slim .kpi-value { font-size: 20px; font-weight: 600; line-height: 1.15; }
.kpi.slim .kd { font-size: 11px; }
.kpi.slim svg { height: 20px; margin-top: 3px; }
.kpi.slim .spark-wait { height: 20px; margin-top: 3px; }
/* Site picker (top bar) */
.topmid { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.topmid .cmd-trigger { justify-self: auto; flex: 0 1 620px; min-width: 0; }
.sitepick { position: relative; flex: none; }
.sitebtn { height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-hi); background: rgba(20, 30, 52, 0.55); color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.sitebtn:hover { border-color: var(--accent); color: var(--text); }
.sitebtn.on { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }
.sitepop { position: absolute; top: 46px; left: 0; z-index: 30; width: 300px; max-height: 70vh; display: flex; flex-direction: column; padding: 8px;
background: var(--glass-strong, rgba(10,15,28,.97)); border: 1px solid var(--line-hi); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.sitepop[hidden] { display: none; }
.sp-head { font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 2px 6px 6px; }
.sp-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; font-size: 12px; cursor: pointer; color: var(--text-2); }
.sp-row:hover { background: var(--panel-hi); color: var(--text); }
.sp-row.cur { color: var(--text); }
.sp-row small { color: var(--muted); margin-left: auto; font-size: 10px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-row.site b { font: 600 11px var(--mono); color: var(--accent); }
.sp-row.site span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-row[hidden] { display: none; }
.sp-only { font-size: 10px; padding: 1px 6px; border-radius: 99px; border: 1px solid var(--line-hi); color: var(--muted); opacity: 0; }
.sp-row:hover .sp-only { opacity: 1; }
.sp-only:hover { color: var(--text); border-color: var(--accent); }
.sp-sep { height: 1px; background: var(--line); margin: 6px 0; }
.sp-find { margin: 0 2px 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-hi); background: var(--field, rgba(0,0,0,.25)); color: var(--text); font-size: 12px; }
.sp-list { overflow-y: auto; min-height: 0; flex: 1; }
.sp-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
.sp-foot .btn[disabled] { opacity: .5; cursor: default; }
:root[data-theme="light"] .sitebtn { background: var(--field); }
.sp-why { font-size: 10px; color: var(--muted); padding: 0 6px 4px 30px; line-height: 1.35; }
.sp-star { font-size: 13px; line-height: 1; padding: 0 2px; color: var(--muted); }
.sp-star.on { color: var(--warning); }
.sp-star:hover { color: var(--warning); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .sitebtn { background: var(--field); } }
.sp-row:focus-within .sp-only { opacity: 1; }
.boot-error { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 10px 16px; background: var(--critical); color: #fff; font-size: 13px; }
.boot-error a { color: #fff; text-decoration: underline; margin-left: 6px; }
/* Live feed source filters: one compact row */
/* Live feed: source filters get their own full-width row under the title (they used to scroll under it) */
.feed-panel .panel-head { flex-wrap: wrap; row-gap: 6px; }
.feed-filters { flex: 1 0 100%; flex-wrap: wrap !important; max-width: none; overflow: visible; }
.feed-filters .chip { font-size: 10.5px; padding: 2px 7px; flex-shrink: 0; }
.source-pill.sum { cursor: default; }
/* Globe toolbar: one row; the colour key is a popover */
.stage-legend { flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.stage-legend::-webkit-scrollbar { display: none; }
.stage-legend > * { flex-shrink: 0; }
.keywrap { position: relative; }
.keypop { position: fixed; z-index: 12; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border-radius: 10px;
background: var(--glass-strong, rgba(10,15,28,.97)); border: 1px solid var(--line-hi); box-shadow: 0 12px 40px rgba(0,0,0,.4); font-size: 11.5px; color: var(--text-2); }
.keypop[hidden] { display: none; }
/* Settings: address checks */
input.bad { border-color: var(--critical) !important; box-shadow: 0 0 0 1px var(--critical); }
.field-err { color: var(--critical); font-size: 12px; margin: 4px 0 0; }
.field-err[hidden] { display: none; }
/* First-run tour */
.tour { position: fixed; inset: 0; z-index: 70; }
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(2, 4, 10, .62); border: 2px solid var(--accent); pointer-events: none; transition: all .2s ease; }
.tour-card { position: fixed; width: 360px; max-width: calc(100vw - 24px); padding: 14px 16px; border-radius: 14px; background: var(--panel-solid, #0d1424); border: 1px solid var(--line-hi); box-shadow: 0 20px 60px rgba(0,0,0,.5); color: var(--text); }
.tour-card h3 { margin: 4px 0 6px; font-size: 15px; }
.tour-card p { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.tour-btns { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tour-btns span { display: flex; gap: 6px; }
.feed-filters { justify-content: flex-start !important; }
.keywrap > .keypop { display: none !important; } /* template only; the open key is #keyPop */
#keyPop { z-index: 40; }
#keyPop span { display: inline-flex; align-items: center; gap: 6px; }
#keyPop svg { width: 10px; height: 10px; flex-shrink: 0; }
/* Yard Central */
.yard-row { display: flex; gap: 8px; align-items: baseline; margin: 10px 0 4px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.yard-tag { font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8bd17c; flex-shrink: 0; }
.yard-chip { font: 500 10px var(--mono); padding: 1px 6px; border-radius: 99px; border: 1px solid var(--line-hi); color: var(--text-2); white-space: nowrap; }
.yard-chip.locked { border-color: rgba(250,178,25,.5); color: var(--warning); }
.yard-chip.warn { border-color: rgba(250,178,25,.7); color: var(--warning); background: rgba(250,178,25,.08); }
.yard-chip.mine { border-color: rgba(139,209,124,.55); color: #8bd17c; }
.yard-slot:empty { display: none; }
.yard-warn { margin-top: 6px; color: var(--warning); font-size: 12px; }
.yard-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px 8px; list-style: none; }
.yard-filter .chip b { margin-left: 3px; }
.yard-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); margin: 2px 0 6px; }
.yard-sum b { color: var(--text-1, inherit); }
.answer td .yard-chip { margin-left: 0; }
.fitem[data-feed] { cursor: pointer; }
.fitem[data-feed]:focus-visible { outline: 2px solid var(--accent, #7aa2f7); outline-offset: -2px; }
.feed-msg { white-space: pre-wrap; word-break: break-word; margin: 10px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--text-2); }
.feed-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
/* Site health host list (drawer) */
.hsummary { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.hsummary span { font-size: 12px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--text-2); }
.hsummary b { margin-right: 3px; }
.hlist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hrow { padding: 9px 12px; border-top: 1px solid var(--line); }
.hrow:first-child { border-top: 0; }
.hrow:hover { background: var(--panel-hi); }
.hrow-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hrow-top .mono { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.hrow-what { font-size: 12.5px; text-align: right; flex-shrink: 0; max-width: 55%; }
.hrow-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 4px; font-size: 11.5px; color: var(--text-2); }
.hrow-sub .hdot { margin: 0 7px; opacity: .45; }
.hrow-sub .tagchip { font-size: 10.5px; padding: 1px 6px; }
.hrow-sub .yard-chip { font-size: 10.5px; }
/* Second brain: node types on the first line, All/Your sites · Fit · 2D/3D on the next */
.stage-legend:has(.lbreak) { flex-wrap: wrap; overflow: visible; row-gap: 6px; }
.stage-legend .lbreak { flex-basis: 100%; height: 0; padding: 0; margin: 0; }
/* "Needs you" bar: only when an app needs something only you can do */
.needbar { margin: 6px 24px 0; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(250,178,25,.45); background: rgba(250,178,25,.08); display: flex; flex-direction: column; gap: 6px; }
.needbar[hidden] { display: none; }
.needbar.flash { animation: nbflash 1.2s ease 1; }
@keyframes nbflash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px rgba(250,178,25,.45); } }
.nb-head { font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--warning); }
.nb-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.nb-icon { font-size: 14px; }
.nb-text { flex: 1 1 260px; min-width: 0; }
.nb-text u { text-decoration: underline dotted; cursor: help; }
.nb-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.nb-btns .btn { padding: 4px 10px; font-size: 12px; }
.nb-btns .btn.ghost { background: none; border-color: transparent; color: var(--text-2); }
.source-pill.attn { cursor: pointer; }
.source-pill.attn.pulse { animation: pillpulse 2.4s ease-in-out infinite; }
@keyframes pillpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(250,178,25,0); } 50% { box-shadow: 0 0 0 4px rgba(250,178,25,.28); } }
.source-pill.old { cursor: pointer; color: var(--text-2); border-style: dashed; }
.source-pill.old i { background: var(--muted) !important; box-shadow: none !important; }
html[data-motion="reduced"] .source-pill.attn.pulse, html[data-motion="reduced"] .needbar.flash { animation: none; }
@media (prefers-reduced-motion: reduce) { .source-pill.attn.pulse, .needbar.flash { animation: none; } }
/* Tour: which apps do you use? */
.tour-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 13px; }
.tour-apps label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.tour-apps label.core { color: var(--text-2); }
.spin-dot { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--accent, #7aa2f7); animation: spindot 1s ease-in-out infinite; vertical-align: middle; }
@keyframes spindot { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .spin-dot { animation: none; } }
/* First-load checklist */
.boot-list { list-style: none; margin: 16px 0 8px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.boot-app { display: grid; grid-template-columns: 20px 92px 1fr; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; }
.boot-app.ready { border-color: rgba(60,207,110,.35); }
.boot-app.signin, .boot-app.allow, .boot-app.failed { border-color: rgba(250,178,25,.4); }
.ba-ico { display: grid; place-items: center; }
.boot-note { margin-top: 6px; }
/* Panels whose app is still loading */
.src-note.loading { list-style: none; display: flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--text-2); font-size: 12.5px; }
div.src-note.loading, p.src-note.loading { justify-content: center; padding: 28px 14px; }
.kpi.loading .kpi-value { opacity: .6; }
.kpi.loading .spark-wait { display: flex; align-items: center; gap: 4px; }
/* Linked: everything an item is connected to (bottom of ticket, device, deployment, part and cluster cards) */
.linked { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
.linked .section-title { align-items: center; }
.lk-brain { text-transform: none; letter-spacing: 0; font-size: 11px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); }
.lk-brain:hover { text-decoration: underline; }
.lk-row, .lk-app { display: grid; grid-template-columns: 112px 1fr; gap: 4px 10px; align-items: start; padding: 4px 0; font-size: 12px; }
.lk-label { color: var(--muted); font-size: 11px; padding-top: 4px; line-height: 1.3; }
.lk-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; }
.lk { font: inherit; font-size: 11.5px; color: var(--text); background: var(--panel-hi); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px;
display: inline-flex; align-items: center; gap: 5px; max-width: 100%; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk:hover { border-color: var(--line-hi); background: var(--panel); }
.lk .mono { font-family: var(--mono); font-size: 11px; }
.lk-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--idle); }
.lk-dot.st-good { background: var(--good); } .lk-dot.st-warning { background: var(--warning); } .lk-dot.st-serious { background: var(--serious); } .lk-dot.st-critical { background: var(--critical); }
.lk-more { padding-left: 2px; }
.lk-app > :not(.lk-label) { min-width: 0; }
.lk-app .lk-wait, .lk-app > .muted { padding-top: 4px; display: inline-block; }
.lk-list .mini-ticket { padding: 4px 6px; }
.lk-list .mini-ticket .qsum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lk-list .mini-ticket .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38%; flex-shrink: 0; }
.lk-done { opacity: .62; }
.lk-foot { margin-top: 6px; }
/* Trace: one item's history on a timeline */
.tview { --tr-lw: 112px; padding: 12px 16px 28px; flex-direction: column; gap: 10px; cursor: default; }
.tview.active { display: flex; }
.tview.dragging, .tview.dragging * { cursor: grabbing !important; user-select: none; }
.tr-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tr-trail { font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 0; }
.tr-trail .linkish { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); font: inherit; }
.tr-search input { width: 300px; max-width: 60vw; background: var(--panel-hi); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 6px 10px; font: inherit; font-size: 12px; }
.tr-search input:focus { outline: none; border-color: var(--accent); }
.tr-search.big input { width: 100%; max-width: 560px; padding: 10px 12px; font-size: 14px; }
.tr-title { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.tr-title h3 { margin: 2px 0 0; font-size: 17px; }
.tr-range { display: flex; gap: 6px; align-items: center; }
.tr-body { display: grid; grid-template-columns: 230px 1fr; gap: 14px; min-height: 0; flex: 1; }
.tr-rel { border-right: 1px solid var(--line); padding-right: 12px; overflow: auto; max-height: 100%; }
.tr-rel .section-title:first-child { margin-top: 0; }
.tr-ritem { display: flex; gap: 6px; align-items: flex-start; padding: 3px 0; }
.tr-ritem input { margin-top: 3px; accent-color: var(--accent); }
.tr-ritem.done .tr-rname { opacity: .62; }
.tr-rname { all: unset; cursor: pointer; display: flex; flex-direction: column; min-width: 0; font-size: 12px; }
.tr-rname:hover .mono { color: var(--accent); }
.tr-rname small { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 185px; }
.tr-desk { display: inline !important; color: #d9a23a !important; margin-left: 4px; }
.tr-mod { font-size: 11px; padding: 2px 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-help { margin-top: 10px; }
.tr-main { min-width: 0; display: flex; flex-direction: column; }
.tr-axis, .tr-lane { display: grid; grid-template-columns: var(--tr-lw) 1fr; }
.tr-axis { height: 22px; border-bottom: 1px solid var(--line); }
.tr-track { position: relative; overflow: hidden; }
.tr-tick { position: absolute; top: 3px; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; }
.tr-tick::after { content: ''; position: absolute; left: 50%; top: 15px; height: 5px; border-left: 1px solid var(--line-hi); }
.tr-now { position: absolute; top: 3px; transform: translateX(-50%); font-size: 10px; color: var(--accent); font-weight: 600; }
.tr-lanes { position: relative; cursor: grab; }
.tr-lane { border-bottom: 1px solid var(--line); }
.tr-lane .tr-track { background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(130,190,255,.04) calc(10% - 1px) 10%); }
.tr-lname { font-size: 11px; color: var(--text-2); padding: 8px 8px 0 0; display: flex; gap: 6px; align-items: baseline; border-left: 3px solid var(--lc, transparent); padding-left: 8px; }
.tr-axis .tr-lname { border: 0; }
.tr-lname small { color: var(--muted); }
.tr-nowline { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--accent); opacity: .55; pointer-events: none; }
.tr-pt { position: absolute; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; border: 1.5px solid var(--panel); background: var(--lc); padding: 0; cursor: pointer; z-index: 2; }
.tr-pt.small { width: 8px; height: 8px; margin-left: -4px; margin-top: 1.5px; }
.tr-pt.cmt { border-radius: 2px; transform: rotate(45deg); }
.tr-pt.hollow { background: var(--panel); border-color: var(--lc); }
.tr-pt.t-critical { background: var(--critical); } .tr-pt.t-warning { background: var(--warning); } .tr-pt.t-good { background: var(--good); } .tr-pt.t-auto { opacity: .45; }
.tr-pt:hover, .tr-pt.sel { box-shadow: 0 0 0 3px rgba(56,225,255,.35); z-index: 3; }
.tr-span { position: absolute; height: 15px; border-radius: 4px; border: 0; padding: 0 5px; font: 600 10px var(--mono); color: #05070d; background: var(--lc); cursor: pointer;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; opacity: .9; }
.tr-span.t-idle { opacity: .5; } .tr-span.t-critical { background: var(--critical); color: #fff; }
.tr-span.open { background-image: linear-gradient(90deg, transparent 85%, rgba(255,255,255,.45)); }
.tr-span.main { outline: 1.5px solid #fff; outline-offset: 1px; opacity: 1; }
.tr-span:hover, .tr-span.sel { opacity: 1; box-shadow: 0 0 0 2px rgba(56,225,255,.45); }
.tr-none { padding: 30px 0 0 var(--tr-lw); }
.tr-status { padding: 8px 0 0 var(--tr-lw); }
.tr-detail { margin: 10px 0 0 var(--tr-lw); padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--lc); border-radius: 8px; background: var(--panel-hi); font-size: 12.5px; }
.tr-detail p { margin: 6px 0 0; color: var(--text-2); white-space: pre-wrap; }
.tr-detail .links { margin-top: 8px; }
.tr-empty { max-width: 720px; padding: 18px 4px; }
.tr-empty h3 { margin: 0 0 6px; font-size: 18px; }
.tr-empty .tr-search { margin: 14px 0 6px; }
.lk-acts { display: inline-flex; gap: 12px; }
@media (max-width: 1280px) { .tr-body { grid-template-columns: 180px 1fr; } .tview { --tr-lw: 92px; } .tr-rname small { max-width: 140px; } }