Repository navigation
Expand file tree
/
Copy pathcomponents.css
More file actions
828 lines (797 loc) · 30.4 KB
/
Copy pathcomponents.css
File metadata and controls
828 lines (797 loc) · 30.4 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
[hidden] { display: none !important; }
/* =========================================================================
components.css — Speculum UI primitives, built on tokens.css.
Panel, PanelHeader, Stat, Meter, Sparkline, Badge, StatusPill,
DataTable, EmptyState, Skeleton, Ripple.
State colors mean state, never decoration. Sanctioned soft effects
(2026-10-03): panel inner-top highlight, hover border tint, status-pill
glow. Radial gauges remain out.
========================================================================= */
/* --- Panel --------------------------------------------------------------- */
.panel {
position: relative;
background: var(--surface-1);
border: 1px solid var(--border);
border-radius: var(--r-panel);
padding: var(--sp-4);
display: flex;
flex-direction: column;
gap: var(--sp-3);
min-width: 0;
min-height: 0;
box-shadow: inset 0 1px 0 var(--inner-hl); /* inner top highlight */
transition: border-color var(--dur-fast) ease;
}
/* subtle hover: border brightens toward the accent (30 % mix) */
.panel:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
/* table-oriented panel: header keeps padding, body sits flush */
.panel--flush { padding: 0; }
.panel--flush > .panel-head { padding: var(--sp-3) var(--sp-4); }
.panel--flush > .panel-body { padding: 0 var(--sp-4) var(--sp-4); }
/* the body takes the height the header does not: a panel stretched to its row
fills with content instead of leaving a gap under the chart or table.
flex-basis is `auto`, not 0: in an auto-height panel a 0 basis makes a canvas
size itself from its own width/height attributes, so the chart grew every
paint. `auto` keeps each child's specified size as its base and only takes
the space the row actually has left over. */
.panel-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.panel--body { flex: 1; min-height: 0; }
/* --- PanelHeader ----------------------------------------------------------- */
.panel-head {
display: flex;
align-items: center;
gap: var(--sp-2);
flex-wrap: wrap;
margin: 0;
padding-bottom: var(--sp-2);
border-bottom: 1px solid var(--border);
}
.panel-title {
margin: 0;
font-family: var(--font-display);
font-size: var(--fs-title);
font-weight: var(--fw-title);
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-1);
}
.panel-hint {
margin: 0;
font-size: var(--fs-meta);
color: var(--text-3);
}
.panel-head > .spacer { flex: 1; }
.panel-tools { display: flex; align-items: center; gap: var(--sp-2); }
/* stale: feed silent > 10 s — amber chip in the header, data stays visible */
.stale-chip {
display: none;
align-items: center;
gap: 6px;
font-size: var(--fs-meta);
color: var(--warn);
background: var(--warn-soft);
border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
border-radius: var(--r-ctl);
padding: 1px var(--sp-2);
white-space: nowrap;
}
.panel.is-stale .stale-chip { display: inline-flex; }
/* --- loading skeleton (no spinners) --------------------------------------- */
.skeleton {
display: block;
border-radius: 3px;
background: var(--surface-2);
border: 1px solid var(--border);
}
.skeleton--value { height: 24px; width: 72px; }
.skeleton--line { height: 10px; width: 100%; }
.skeleton--spark { height: 32px; width: 100%; }
.skeleton--block { height: 120px; width: 100%; }
.panel.is-loading .skeleton,
.panel.is-loading .skeleton * { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
.panel.is-loading .skeleton {
animation: sk-pulse 1.6s ease-in-out infinite;
}
}
@keyframes sk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
/* --- Stat (KPI tile) -------------------------------------------------------- */
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label {
font-size: var(--fs-meta);
font-weight: 500;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-3);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.stat-value {
display: flex;
align-items: baseline;
gap: var(--sp-1);
font-family: var(--font-mono); /* numbers are mono */
font-size: var(--fs-value);
font-weight: var(--fw-value);
letter-spacing: -0.01em;
color: var(--text-1);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.stat-value .unit {
font-size: var(--fs-label);
font-weight: 400;
color: var(--text-3);
}
/* value takes a status color only when it crosses a threshold */
.stat-value[data-status="warn"] { color: var(--warn); }
.stat-value[data-status="crit"] { color: var(--crit); }
.stat-delta {
font-size: var(--fs-meta);
color: var(--text-3);
white-space: nowrap;
}
.stat-delta .arrow-up { color: var(--text-2); }
.stat-delta .arrow-down { color: var(--text-2); }
.stat-spark { width: 100%; height: 28px; display: block; }
/* the decode-rate tile names the model its speed tracks: a muted, normal-case
suffix of the label line (flows inline, truncates with the line, adds no height) */
.stat-model {
margin-left: 6px;
font-weight: 400;
letter-spacing: 0;
text-transform: none;
color: var(--text-3);
}
.stat--sm .stat-value { font-size: var(--fs-label); }
/* --- Meter ------------------------------------------------------------------- */
.meter-row {
display: grid;
grid-template-columns: 92px 1fr auto;
gap: var(--sp-2);
align-items: center;
}
.meter-row-label {
font-size: var(--fs-label);
color: var(--text-2);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.meter-value {
font-family: var(--font-mono);
font-size: var(--fs-label);
color: var(--text-1);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.meter-value[data-status="warn"] { color: var(--warn); }
.meter-value[data-status="crit"] { color: var(--crit); }
.meter {
position: relative;
height: 8px;
border-radius: 3px;
background: var(--surface-2);
border: 1px solid var(--border);
min-width: 40px;
}
.meter-fill {
position: absolute;
top: 0; bottom: 0; left: 0;
width: 0%;
border-radius: 2px;
background: var(--accent);
transition: width var(--dur-slow) linear;
}
.meter-fill[data-status="ok"] { background: var(--ok); }
.meter-fill[data-status="warn"] { background: var(--warn); }
.meter-fill[data-status="crit"] { background: var(--crit); }
.meter-fill[data-status="idle"] { background: var(--idle); }
/* threshold tick: value, max, and warn/crit are always legible */
.meter-tick {
position: absolute;
top: -3px;
bottom: -3px;
width: 1px;
background: var(--border-strong);
}
.meter-tick[data-status="warn"] { background: var(--warn); }
.meter-tick[data-status="crit"] { background: var(--crit); }
/* --- Sparkline (canvas sized by the render layer) ----------------------------- */
.sparkline { display: block; width: 100%; }
/* --- Badge ---------------------------------------------------------------------- */
.badge {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: var(--fs-meta);
font-weight: 500;
line-height: 1;
padding: 3px var(--sp-2);
border: 1px solid var(--border);
border-radius: var(--r-ctl);
background: var(--surface-2);
color: var(--text-2);
white-space: nowrap;
max-width: 100%;
}
.badge > .bdot {
width: 7px;
height: 7px;
border-radius: 50%;
flex: none;
background: var(--idle);
}
.badge[data-status="ok"] {
color: var(--ok);
background: var(--ok-soft);
border-color: color-mix(in srgb, var(--ok) 35%, transparent);
}
.badge[data-status="ok"] > .bdot { background: var(--ok); }
.badge[data-status="warn"] {
color: var(--warn);
background: var(--warn-soft);
border-color: color-mix(in srgb, var(--warn) 35%, transparent);
}
.badge[data-status="warn"] > .bdot { background: var(--warn); }
.badge[data-status="crit"] {
color: var(--crit);
background: var(--crit-soft);
border-color: color-mix(in srgb, var(--crit) 40%, transparent);
}
.badge[data-status="crit"] > .bdot { background: var(--crit); }
.badge[data-status="idle"] { color: var(--text-3); }
.badge[data-status="idle"] > .bdot { background: var(--idle); }
/* engine badge: series swatch (meaning paired with the name, never color alone) */
.badge .swatch {
width: 10px;
height: 10px;
border-radius: 2px;
flex: none;
background: var(--swatch, var(--ser-1));
}
/* muted variant: stopped / unreachable engines, state stated in words */
.badge--muted {
color: var(--text-3);
background: transparent;
border-color: var(--border);
}
/* --- StatusPill (top-bar overall state) ------------------------------------------ */
.status-pill {
display: inline-flex;
align-items: center;
gap: 6px;
height: 24px;
padding: 0 10px;
border: 1px solid var(--border-strong);
border-radius: var(--r-ctl);
background: var(--surface-1);
font-size: var(--fs-label);
font-weight: 500;
color: var(--text-1);
white-space: nowrap;
}
.status-pill > .pdot {
width: 8px;
height: 8px;
border-radius: 50%;
flex: none;
background: var(--idle);
}
/* overall state: coloured by state, with a soft sanctioned glow */
.status-pill[data-state="live"] {
border-color: color-mix(in srgb, var(--ok) 45%, transparent);
box-shadow: 0 0 12px color-mix(in srgb, var(--ok) 30%, transparent);
}
.status-pill[data-state="live"] > .pdot { background: var(--ok); }
.status-pill[data-state="degraded"] {
border-color: color-mix(in srgb, var(--warn) 50%, transparent);
box-shadow: 0 0 12px color-mix(in srgb, var(--warn) 24%, transparent);
}
.status-pill[data-state="degraded"] > .pdot { background: var(--warn); }
.status-pill[data-state="offline"] {
border-color: color-mix(in srgb, var(--crit) 50%, transparent);
box-shadow: 0 0 12px color-mix(in srgb, var(--crit) 30%, transparent);
}
.status-pill[data-state="offline"] > .pdot { background: var(--crit); }
.status-pill[data-state="paused"] > .pdot { background: var(--idle); }
/* --- DataTable ---------------------------------------------------------------------- */
/* the wrapper takes whatever height the stretched panel has left; the table
itself keeps its natural height (rows are never stretched to fill) */
.table-wrap { flex: 1 1 auto; min-height: 0; }
.data-table {
width: 100%;
border-collapse: collapse;
font-size: var(--fs-label);
font-variant-numeric: tabular-nums;
}
.data-table th {
position: sticky;
top: 0;
z-index: 1;
background: var(--surface-1);
text-align: left;
font-family: var(--font-mono);
font-size: var(--fs-meta);
font-weight: 500;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-3);
padding: 5px var(--sp-2);
border-bottom: 1px solid var(--border-strong);
white-space: nowrap;
}
.data-table td {
padding: 4px var(--sp-2);
border-bottom: 1px solid var(--border);
color: var(--text-1);
vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table .col-num { text-align: right; font-family: var(--font-mono); }
.data-table .col-mono { font-family: var(--font-mono); font-size: var(--fs-meta); }
.data-table .col-sub { color: var(--text-3); }
.data-table tr[aria-hidden="true"] { display: none; }
.data-table-expand {
background: none;
border: none;
padding: 0 4px;
margin: 0;
cursor: pointer;
color: var(--text-3);
font-size: var(--fs-label);
line-height: 1;
}
.data-table-expand[aria-expanded="true"] { color: var(--accent); }
.data-table tr.is-expanded { background: var(--surface-2); }
.data-table tr.is-expanded td { border-bottom-color: transparent; }
.data-table .row-detail {
padding: var(--sp-2) var(--sp-3);
font-family: var(--font-mono);
font-size: var(--fs-meta);
color: var(--text-2);
background: var(--surface-2);
white-space: pre-wrap;
word-break: break-word;
}
.data-table .row-detail[hidden] { display: none; }
/* inline stat cells in panel headers (e.g. request-history summary) */
.head-stat {
display: inline-flex;
align-items: baseline;
gap: var(--sp-1);
font-size: var(--fs-meta);
color: var(--text-3);
white-space: nowrap;
}
.head-stat b {
font-family: var(--font-mono);
font-size: var(--fs-label);
font-weight: 600;
color: var(--text-1);
font-variant-numeric: tabular-nums;
}
.head-stat[data-status="warn"] b { color: var(--warn); }
.head-stat[data-status="crit"] b { color: var(--crit); }
/* --- EmptyState ------------------------------------------------------------------------ */
.empty-state {
display: flex;
align-items: center;
justify-content: center;
min-height: 72px;
color: var(--text-3);
font-size: var(--fs-label);
text-align: center;
}
/* --- filter chips (severity, time range) ------------------------------------------------- */
.chip {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: var(--fs-meta);
font-weight: 500;
color: var(--text-2);
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--r-ctl);
padding: 3px var(--sp-2);
cursor: pointer;
font-family: inherit;
}
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed="true"] {
color: var(--accent);
border-color: var(--accent);
background: var(--accent-soft);
}
.chip .swatch {
width: 8px;
height: 8px;
border-radius: 2px;
background: var(--swatch, var(--ser-1));
}
/* legend row: series swatch + name + inline state badge */
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.legend-item {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: var(--fs-label);
color: var(--text-2);
white-space: nowrap;
}
.legend-item .swatch {
width: 10px;
height: 10px;
border-radius: 2px;
flex: none;
background: var(--swatch, var(--ser-1));
}
/* --- settings menu (top bar) ----------------------------------------------------------------- */
.menu { position: relative; }
.menu-btn {
display: inline-flex;
align-items: center;
gap: 6px;
font-family: inherit;
font-size: var(--fs-label);
font-weight: 500;
color: var(--text-2);
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--r-ctl);
padding: 4px 10px;
cursor: pointer;
height: 30px;
}
.menu-btn:hover { border-color: var(--border-strong); color: var(--text-1); }
.menu-panel {
position: absolute;
right: 0;
top: calc(100% + 4px);
z-index: 50;
min-width: 220px;
background: var(--surface-1);
border: 1px solid var(--border-strong);
border-radius: var(--r-panel);
padding: var(--sp-2);
box-shadow: none;
}
.menu-panel[hidden] { display: none; }
.menu-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-3);
padding: 6px var(--sp-2);
border-radius: var(--r-ctl);
}
.menu-row:hover { background: var(--surface-2); }
.menu-row-label { font-size: var(--fs-label); color: var(--text-1); }
.menu-row-label small { display: block; font-size: var(--fs-meta); color: var(--text-3); }
/* segmented control (Off / On, theme pair, range 15m/1h/6h/24h) */
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-ctl); overflow: hidden; }
.segmented button {
appearance: none;
font-family: inherit;
font-size: var(--fs-meta);
font-weight: 500;
color: var(--text-2);
background: var(--surface-2);
border: none;
border-left: 1px solid var(--border);
padding: 3px 9px;
cursor: pointer;
}
.segmented button:first-child { border-left: none; }
.segmented button[aria-pressed="true"] {
color: var(--accent);
background: var(--accent-soft);
}
/* the same primitive in the top bar (Basic / Advanced): it must not shrink in
the status cluster, and reads as a control rather than as meta text */
.topbar .segmented { flex: none; white-space: nowrap; }
.topbar .segmented button { font-size: var(--fs-label); padding: 4px 10px; }
/* --- ripple (optional; see ripple.js) ----------------------------------------------------------- */
/* a single 400ms radial pulse on data update; off unless <html data-ripple="on"> */
html[data-ripple="on"] .panel::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
opacity: 0;
background: radial-gradient(
circle at 50% 50%,
color-mix(in srgb, var(--accent) 100%, transparent) 0%,
transparent 70%
);
}
html[data-ripple="on"] .panel.is-rippling::after {
animation: ripple-pulse var(--dur-slow) ease-out;
}
@keyframes ripple-pulse {
0% { opacity: 0.08; transform: scale(0.72); }
100% { opacity: 0; transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
html[data-ripple="on"] .panel.is-rippling::after { animation: none; }
}
/* --- panel-specific styles ------------------------------------------------------
KPI groups, throughput chart, GPU readouts, context rows, ledger mix bars,
engine cards, event table, KV pool. Material still comes from tokens. */
/* KPI strip: dense group columns, each a 2px top accent bar in its tone
(tone 1-4 = series palette: cyan / purple / green / yellow) */
.kpi-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
/* fixed row grid: label row + three 1fr tile rows, so tile N lines up
across all four groups even though they hold 2 or 3 tiles */
.kpi-group {
position: relative; display: grid; gap: var(--sp-2); min-width: 0;
grid-template-rows: auto 1fr 1fr 1fr;
}
.kpi-group::before {
content: "";
position: absolute;
top: 0; left: 0; right: 0;
height: 2px;
background: var(--gcol, var(--accent));
}
.kpi-group[data-tone="1"] { --gcol: var(--ser-1); }
.kpi-group[data-tone="2"] { --gcol: var(--ser-2); }
.kpi-group[data-tone="3"] { --gcol: var(--ser-3); }
.kpi-group[data-tone="4"] { --gcol: var(--ser-4); }
.kpi-group-label {
margin-top: 6px;
font-family: var(--font-display);
font-size: var(--fs-meta);
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--gcol, var(--text-2));
}
/* tile values sit in the group tone; threshold status wins over tone.
data-status="idle" = the engine is not serving (0 for a latency KPI):
muted, never red */
.kpi-group .stat-value { color: var(--gcol, var(--text-1)); }
.kpi-group .stat-value[data-status="warn"] { color: var(--warn); }
.kpi-group .stat-value[data-status="crit"] { color: var(--crit); }
.kpi-group .stat-value[data-status="idle"] { color: var(--text-3); }
.kpi-group .stat-spark { height: 28px; }
/* Throughput — the chart area takes the row height (fit() reads clientHeight, so
a taller box draws a taller chart); 232 px is the floor, not the fixed size */
.tp-wrap { position: relative; flex: 1 1 auto; min-height: 232px; display: flex; flex-direction: column; }
.tp-canvas { width: 100%; height: 232px; flex: 1 1 auto; display: block; }
.tp-tip {
position: absolute; top: 8px; z-index: 5; pointer-events: none;
background: var(--surface-2); border: 1px solid var(--border-strong);
border-radius: var(--r-ctl); padding: 6px 8px;
font-size: var(--fs-meta); color: var(--text-2); min-width: 132px;
}
.tp-tip .t { display: block; color: var(--text-1); font-family: var(--font-mono); margin-bottom: 4px; }
.tp-tip .row { display: flex; align-items: center; gap: 6px; }
.tp-tip .row b { margin-left: auto; color: var(--text-1); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tp-tip .swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }
/* quiet chart-area note for a DB range with nothing to draw (no backend, or a
failed/empty history read) — muted, never red */
.tp-note { font-size: var(--fs-meta); color: var(--text-3); margin: 0 0 var(--sp-1); }
/* GPU readouts */
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-5); }
.readout-col h3 {
margin: 0 0 var(--sp-1);
font-family: var(--font-mono);
font-size: var(--fs-meta);
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--text-3);
}
.readout {
display: flex; align-items: baseline; gap: var(--sp-2);
font-size: var(--fs-label); padding: 4px 0; border-bottom: 1px solid var(--border);
}
.readout span { color: var(--text-3); }
.readout b {
margin-left: auto; font-weight: 500; color: var(--text-1);
font-family: var(--font-mono);
font-variant-numeric: tabular-nums; white-space: nowrap;
overflow: hidden; text-overflow: ellipsis; max-width: 62%;
}
.readout b.na { color: var(--text-3); font-weight: 400; }
/* Context residency */
/* stacked request columns: cached (green) + fresh prefill (orange) +
generated (cyan), scaled to the max model window of the set */
.ctx-wrap { position: relative; flex: 1 1 auto; min-height: 300px; display: flex; flex-direction: column; }
.ctx-canvas { width: 100%; height: 300px; flex: 1 1 auto; display: block; }
.ctx-legend {
display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap;
font-size: var(--fs-meta); color: var(--text-3);
}
.ctx-legend .swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ctx-legend > .spacer { flex: 1; }
.ctx-list { display: grid; gap: var(--sp-2); max-height: 400px; overflow-y: auto; padding-right: 2px; }
.ctx-row {
display: grid;
grid-template-columns: minmax(72px, 112px) minmax(0, 148px) minmax(0, 1fr) auto;
gap: var(--sp-2); align-items: center;
}
.ctx-id {
font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--text-2);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ctx-used { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--text-1); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.ctx-row .meter { height: 10px; }
/* Token ledger */
/* label column (Generated / Fresh prefill / Cached) must not wrap */
.p-ledger .data-table th:first-child,
.p-ledger .data-table td:first-child { white-space: nowrap; }
.mix { display: flex; height: 10px; border-radius: 3px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.mix i { display: block; height: 100%; }
.ledger-note { font-size: var(--fs-meta); color: var(--text-3); margin: 0; }
/* Engine cards (inset boxes inside the Engines panel). auto-fit collapses the
empty tracks, so the cards fill the row instead of leaving a dead column when
the engine count is one short of the track count (3 cards in a 4-track row at
1440 px). A single engine now spans the row — that is the trade for the gap. */
.engine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-3); flex: 1 1 auto; }
.engine-card {
display: flex; flex-direction: column; gap: var(--sp-2);
background: var(--surface-2); border: 1px solid var(--border);
border-radius: var(--r-ctl); padding: var(--sp-3);
}
.engine-card .engine-spark { height: 48px !important; max-height: 48px; width: 100%; }
.engine-card .ec-head { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.engine-card .ec-head > .spacer { flex: 1; }
.engine-card .ec-name { font-size: var(--fs-label); font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.engine-card .ec-sub {
font-size: var(--fs-meta); color: var(--text-3); margin-top: 2px;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.engine-card.is-muted { opacity: 0.55; }
.ec-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.ec-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ec-stat span { font-size: var(--fs-meta); color: var(--text-3); }
.ec-stat b { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 600; color: var(--text-1); font-variant-numeric: tabular-nums; }
/* Events */
/* the page's scroll containers: thin, tone-matched scrollbars instead of the
platform's fat default bar */
.ev-wrap, .ctx-list, .pool-grid {
scrollbar-width: thin;
scrollbar-color: var(--border-strong) transparent;
}
.ev-wrap::-webkit-scrollbar, .ctx-list::-webkit-scrollbar,
.pool-grid::-webkit-scrollbar { width: 8px; height: 8px; }
.ev-wrap::-webkit-scrollbar-thumb, .ctx-list::-webkit-scrollbar-thumb,
.pool-grid::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.ev-wrap::-webkit-scrollbar-track, .ctx-list::-webkit-scrollbar-track,
.pool-grid::-webkit-scrollbar-track { background: transparent; }
/* the event list fills the row it shares with the KV pool: it takes the height
the panel has left, capped so a long buffer still scrolls inside the panel */
.ev-wrap { flex: 1 1 auto; min-height: 120px; max-height: 420px; overflow-y: auto; }
.ev-filter {
font-family: inherit;
font-size: var(--fs-meta);
color: var(--text-1);
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--r-ctl);
padding: 3px var(--sp-2);
width: 130px;
}
.ev-filter::placeholder { color: var(--text-3); }
.ev-msg { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--text-2); }
.lv-pill {
display: inline-block; min-width: 46px; text-align: center;
font-size: 10px; font-weight: 600; border-radius: 3px; padding: 2px 6px;
}
.lv-pill[data-sev="ok"] { color: var(--ok); background: var(--ok-soft); }
.lv-pill[data-sev="warn"] { color: var(--warn); background: var(--warn-soft); }
.lv-pill[data-sev="err"] { color: var(--crit); background: var(--crit-soft); }
.lv-pill[data-sev="alert"] { color: var(--crit); background: var(--crit-soft); }
.lv-pill[data-sev="req"] { color: var(--accent); background: var(--accent-soft); }
.lv-pill[data-sev="info"] { color: var(--text-2); background: var(--surface-2); }
/* KV slot pool — the tile area takes the height of the row it shares with
Events (tiles keep their 58 px height and pack from the top; any leftover is
inside the tile area, not beside the panel). The 420 px ceiling matches the
Events list, so a long slot list still scrolls inside its own panel. */
.pool-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
gap: var(--sp-2); flex: 1 1 auto; min-height: 120px; max-height: 420px;
align-content: start; overflow-y: auto; padding-right: 2px;
}
.pool-cell {
position: relative; height: 58px; overflow: hidden;
background: var(--surface-2); border: 1px solid var(--border); border-radius: 3px;
}
.pool-cell .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--accent); }
.pool-cell .pct { position: absolute; top: 3px; right: 4px; font-size: 10px; color: var(--text-2); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.pool-cell .sid { position: absolute; bottom: 3px; left: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; max-width: 90%; white-space: nowrap; }
/* --- responsive (panel-specific) -------------------------------------------------- */
@media (max-width: 1440px) {
.kpi-groups { gap: var(--sp-3); }
}
@media (max-width: 1024px) {
.kpi-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
.kpi-groups { grid-template-columns: 1fr; }
/* one column: no neighbour to line tiles up with, so drop the fixed
3-row grid (it left an empty row under 2-tile groups) */
.kpi-group { padding-top: var(--sp-1); grid-template-rows: none; }
.readout-grid { grid-template-columns: 1fr; }
.ctx-row { grid-template-columns: minmax(64px, 90px) minmax(0, 1fr) auto; }
.ctx-row .ctx-engine { display: none; }
}
/* slot id sits on the series-coloured fill: dark text keeps it legible */
.pool-cell .sid { color: #05070a; font-weight: 600; mix-blend-mode: normal; }
/* Alert strip (between the top bar and the deck; hidden when there are no alerts) */
.alert-strip {
width: min(1720px, 100%);
margin: var(--sp-2) auto 0;
padding: 0 24px;
display: flex;
flex-direction: column;
gap: 4px;
}
.alert-strip[hidden] { display: none; }
.alert-line {
display: flex;
align-items: center;
gap: var(--sp-2);
padding: 6px var(--sp-3);
border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
border-radius: 8px;
background: var(--warn-soft);
font-size: var(--fs-label);
color: var(--text-1, inherit);
}
.alert-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* Model load timeline: one lane per engine, one bar per load span */
.tl-note { font-size: var(--fs-meta); color: var(--text-3); margin: 0 0 var(--sp-1); }
.tl-lanes { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.tl-lane { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: var(--sp-2); }
.tl-label { font-size: var(--fs-label); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-track {
position: relative;
height: 14px;
border-radius: 3px;
background: var(--surface-2);
}
.tl-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; opacity: 0.85; }
.tl-bar:hover { opacity: 1; }
.tl-axis {
display: flex;
justify-content: space-between;
margin: var(--sp-1) 0 0 calc(110px + var(--sp-2));
font-family: var(--font-mono, monospace);
font-size: var(--fs-meta);
color: var(--text-3);
}
/* History storage */
.sto { display: flex; flex-direction: column; gap: 6px; }
.sto-note { font-size: var(--fs-meta); color: var(--text-3); margin: 0; }
.sto-row { display: flex; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-label); color: var(--text-2); }
.sto-row b { color: var(--text-1, inherit); font-weight: 500; font-family: var(--font-mono, monospace); }
.sto-rows b { font-size: var(--fs-meta); white-space: normal; text-align: right; }
.sto-proj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 2px 0; }
.sto-cell {
display: flex; flex-direction: column; gap: 2px;
padding: 6px var(--sp-2);
border: 1px solid var(--border);
border-radius: 6px;
font-size: var(--fs-meta);
color: var(--text-3);
}
.sto-cell b { font-size: var(--fs-label); color: var(--text-2); font-family: var(--font-mono, monospace); font-weight: 500; }
.sto-cell.is-current { border-color: var(--accent); background: var(--accent-soft); }
.sto-cell.is-current b { color: var(--accent-high); }
.sto-path { margin: 0; font-size: var(--fs-meta); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-1); }
/* plain action button / link, the Settings button's look (storage panel: export, prune) */
.btn {
display: inline-flex; align-items: center; gap: 6px;
font-family: inherit; font-size: var(--fs-label); font-weight: 500;
color: var(--text-2); background: var(--surface-2);
border: 1px solid var(--border); border-radius: var(--r-ctl);
padding: 4px 10px; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--border-strong); color: var(--text-1); }