@d86e/hive-panel 0.3.11 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/public/panel.css CHANGED
@@ -6,17 +6,6 @@
6
6
  * so a host can override the variables on :root, body, a wrapper, or .hive.
7
7
  */
8
8
 
9
- :where(:root) {
10
- --hive-bg: #0b0f17;
11
- --hive-fg: #e6edf3;
12
- --hive-line: #232b38;
13
- --hive-accent: #58c4dc;
14
- --hive-ok: #7ee787;
15
- --hive-warn: #f0b429;
16
- --hive-danger: #ff7b72;
17
- --hive-info: #79c0ff;
18
- }
19
-
20
9
  .hive,
21
10
  .hive *,
22
11
  .hive *::before,
@@ -26,12 +15,12 @@
26
15
 
27
16
  .hive {
28
17
  /* Derived helpers; the four required variables use inline fallbacks. */
29
- --hive-fg-soft: color-mix(in srgb, var(--hive-fg, #e6edf3) 62%, transparent);
30
- --hive-fg-faint: color-mix(in srgb, var(--hive-fg, #e6edf3) 40%, transparent);
31
- --hive-surface: color-mix(in srgb, var(--hive-fg, #e6edf3) 4%, transparent);
32
- --hive-surface-strong: color-mix(in srgb, var(--hive-fg, #e6edf3) 8%, transparent);
33
- --hive-surface-hover: color-mix(in srgb, var(--hive-fg, #e6edf3) 11%, transparent);
34
- --hive-accent-soft: color-mix(in srgb, var(--hive-accent, #58c4dc) 17%, transparent);
18
+ --hive-fg-soft: color-mix(in srgb, var(--hive-fg) 62%, transparent);
19
+ --hive-fg-faint: color-mix(in srgb, var(--hive-fg) 40%, transparent);
20
+ --hive-surface: color-mix(in srgb, var(--hive-fg) 4%, transparent);
21
+ --hive-surface-strong: color-mix(in srgb, var(--hive-fg) 8%, transparent);
22
+ --hive-surface-hover: color-mix(in srgb, var(--hive-fg) 11%, transparent);
23
+ --hive-accent-soft: color-mix(in srgb, var(--hive-accent) 17%, transparent);
35
24
  --hive-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
36
25
 
37
26
  display: flex;
@@ -40,16 +29,16 @@
40
29
  height: 100%;
41
30
  min-height: 480px;
42
31
  overflow: hidden;
43
- border: 1px solid var(--hive-line, #232b38);
44
- border-radius: 12px;
45
- background: var(--hive-bg, #0b0f17);
46
- color: var(--hive-fg, #e6edf3);
47
- font: 13px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
48
- color-scheme: dark;
32
+ border: 1px solid var(--hive-line);
33
+ border-radius: var(--hive-radius-lg);
34
+ background: var(--hive-bg);
35
+ color: var(--hive-fg);
36
+ font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
37
+ color-scheme: light dark;
49
38
  }
50
39
 
51
40
  .hive ::selection {
52
- background: color-mix(in srgb, var(--hive-accent, #58c4dc) 35%, transparent);
41
+ background: color-mix(in srgb, var(--hive-accent) 35%, transparent);
53
42
  }
54
43
 
55
44
  /* ------------------------------------------------------------------ top bar */
@@ -61,8 +50,8 @@
61
50
  align-items: center;
62
51
  gap: 8px 12px;
63
52
  padding: 9px 14px;
64
- border-bottom: 1px solid var(--hive-line, #232b38);
65
- background: color-mix(in srgb, var(--hive-fg, #e6edf3) 2%, transparent);
53
+ border-bottom: 1px solid var(--hive-line);
54
+ background: color-mix(in srgb, var(--hive-fg) 2%, transparent);
66
55
  }
67
56
 
68
57
  .hive-ident {
@@ -73,7 +62,7 @@
73
62
  }
74
63
 
75
64
  .hive-brand {
76
- color: var(--hive-accent, #58c4dc);
65
+ color: var(--hive-accent);
77
66
  font-size: 10px;
78
67
  font-weight: 750;
79
68
  letter-spacing: 0.18em;
@@ -100,7 +89,7 @@
100
89
 
101
90
  .hive-badge {
102
91
  padding: 2px 8px;
103
- border: 1px solid var(--hive-line, #232b38);
92
+ border: 1px solid var(--hive-line);
104
93
  border-radius: 999px;
105
94
  font-size: 10px;
106
95
  font-weight: 650;
@@ -111,9 +100,9 @@
111
100
  }
112
101
 
113
102
  .hive-badge.is-free {
114
- border-color: color-mix(in srgb, var(--hive-accent, #58c4dc) 45%, transparent);
103
+ border-color: color-mix(in srgb, var(--hive-accent) 45%, transparent);
115
104
  background: var(--hive-accent-soft);
116
- color: var(--hive-accent, #58c4dc);
105
+ color: var(--hive-accent);
117
106
  }
118
107
 
119
108
  .hive-badge.is-freeze {
@@ -137,7 +126,7 @@
137
126
  .hive-stat {
138
127
  padding: 1px 7px;
139
128
  border: 1px solid transparent;
140
- border-radius: 6px;
129
+ border-radius: var(--hive-radius-sm);
141
130
  background: var(--hive-surface);
142
131
  color: var(--hive-fg-soft);
143
132
  font-size: 10.5px;
@@ -147,12 +136,12 @@
147
136
  }
148
137
 
149
138
  .hive-stat strong {
150
- color: var(--hive-fg, #e6edf3);
139
+ color: var(--hive-fg);
151
140
  font-weight: 650;
152
141
  }
153
142
 
154
143
  .hive-stat.is-total {
155
- color: var(--hive-fg, #e6edf3);
144
+ color: var(--hive-fg);
156
145
  }
157
146
 
158
147
  .hive-stat.is-warn {
@@ -198,10 +187,10 @@
198
187
  .hive-btn {
199
188
  appearance: none;
200
189
  padding: 4px 10px;
201
- border: 1px solid var(--hive-line, #232b38);
202
- border-radius: 7px;
190
+ border: 1px solid var(--hive-line);
191
+ border-radius: var(--hive-radius-md);
203
192
  background: var(--hive-surface-strong);
204
- color: var(--hive-fg, #e6edf3);
193
+ color: var(--hive-fg);
205
194
  font: inherit;
206
195
  font-size: 11.5px;
207
196
  font-weight: 550;
@@ -211,7 +200,7 @@
211
200
  }
212
201
 
213
202
  .hive-btn:hover {
214
- border-color: color-mix(in srgb, var(--hive-accent, #58c4dc) 55%, var(--hive-line, #232b38));
203
+ border-color: color-mix(in srgb, var(--hive-accent) 55%, var(--hive-line));
215
204
  background: var(--hive-accent-soft);
216
205
  }
217
206
 
@@ -220,7 +209,7 @@
220
209
  }
221
210
 
222
211
  .hive-btn:focus-visible {
223
- outline: 2px solid var(--hive-accent, #58c4dc);
212
+ outline: 2px solid var(--hive-accent);
224
213
  outline-offset: 1px;
225
214
  }
226
215
 
@@ -249,13 +238,13 @@
249
238
  }
250
239
 
251
240
  .hive-agents {
252
- border-right: 1px solid var(--hive-line, #232b38);
253
- background: color-mix(in srgb, var(--hive-fg, #e6edf3) 1.5%, transparent);
241
+ border-right: 1px solid var(--hive-line);
242
+ background: color-mix(in srgb, var(--hive-fg) 1.5%, transparent);
254
243
  }
255
244
 
256
245
  .hive-events {
257
- border-left: 1px solid var(--hive-line, #232b38);
258
- background: color-mix(in srgb, var(--hive-fg, #e6edf3) 1.5%, transparent);
246
+ border-left: 1px solid var(--hive-line);
247
+ background: color-mix(in srgb, var(--hive-fg) 1.5%, transparent);
259
248
  }
260
249
 
261
250
  .hive-pane-head {
@@ -264,7 +253,7 @@
264
253
  align-items: center;
265
254
  gap: 7px;
266
255
  padding: 8px 12px;
267
- border-bottom: 1px solid var(--hive-line, #232b38);
256
+ border-bottom: 1px solid var(--hive-line);
268
257
  color: var(--hive-fg-soft);
269
258
  font-size: 10px;
270
259
  font-weight: 650;
@@ -303,7 +292,7 @@
303
292
  padding: 10px;
304
293
  overflow-x: hidden;
305
294
  overflow-y: auto;
306
- scrollbar-color: var(--hive-line, #232b38) transparent;
295
+ scrollbar-color: var(--hive-line) transparent;
307
296
  scrollbar-width: thin;
308
297
  }
309
298
 
@@ -318,8 +307,8 @@
318
307
 
319
308
  .hive-agent {
320
309
  padding: 8px 10px;
321
- border: 1px solid var(--hive-line, #232b38);
322
- border-radius: 8px;
310
+ border: 1px solid var(--hive-line);
311
+ border-radius: var(--hive-radius-md);
323
312
  background: var(--hive-surface);
324
313
  }
325
314
 
@@ -342,19 +331,18 @@
342
331
  flex: 0 0 auto;
343
332
  border-radius: 50%;
344
333
  background: var(--hive-fg-faint);
345
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--hive-fg, #e6edf3) 5%, transparent);
334
+ box-shadow: none;
346
335
  }
347
336
 
348
337
  .hive-dot.is-working {
349
- background: var(--hive-accent, #58c4dc);
350
- box-shadow: 0 0 0 3px var(--hive-accent-soft);
338
+ background: var(--hive-accent);
339
+ box-shadow: none;
351
340
  }
352
341
 
353
342
  .hive-dot.is-idle {
354
343
  background: var(--hive-fg-faint);
355
344
  }
356
345
 
357
- .hive-dot.is-blocked,
358
346
  .hive-dot.is-failed {
359
347
  background: var(--hive-danger);
360
348
  }
@@ -379,10 +367,7 @@
379
367
 
380
368
  /* -------------------------------------------------------------------- lanes */
381
369
 
382
- .hive-board {
383
- background:
384
- linear-gradient(180deg, color-mix(in srgb, var(--hive-accent, #58c4dc) 3%, transparent), transparent 160px);
385
- }
370
+ .hive-board { background: var(--hive-bg); }
386
371
 
387
372
  .hive-lanes {
388
373
  display: flex;
@@ -393,7 +378,7 @@
393
378
  padding: 10px;
394
379
  overflow-x: auto;
395
380
  overflow-y: hidden;
396
- scrollbar-color: var(--hive-line, #232b38) transparent;
381
+ scrollbar-color: var(--hive-line) transparent;
397
382
  scrollbar-width: thin;
398
383
  }
399
384
 
@@ -403,9 +388,9 @@
403
388
  flex-direction: column;
404
389
  min-height: 0;
405
390
  overflow: hidden;
406
- border: 1px solid var(--hive-line, #232b38);
407
- border-radius: 10px;
408
- background: color-mix(in srgb, var(--hive-fg, #e6edf3) 2%, transparent);
391
+ border: 1px solid var(--hive-line);
392
+ border-radius: var(--hive-radius-md);
393
+ background: color-mix(in srgb, var(--hive-fg) 2%, transparent);
409
394
  }
410
395
 
411
396
  .hive-lane-head {
@@ -414,7 +399,7 @@
414
399
  align-items: center;
415
400
  gap: 7px;
416
401
  padding: 8px 10px;
417
- border-bottom: 1px solid var(--hive-line, #232b38);
402
+ border-bottom: 1px solid var(--hive-line);
418
403
  color: var(--hive-fg-soft);
419
404
  font-size: 10px;
420
405
  font-weight: 700;
@@ -425,17 +410,17 @@
425
410
  .hive-lane-head::before {
426
411
  width: 3px;
427
412
  height: 10px;
428
- border-radius: 2px;
413
+ border-radius: var(--hive-radius-sm);
429
414
  background: var(--hive-fg-faint);
430
415
  content: "";
431
416
  }
432
417
 
433
418
  .hive-lane-name {
434
- color: var(--hive-fg, #e6edf3);
419
+ color: var(--hive-fg);
435
420
  }
436
421
 
437
422
  .hive-lane-pending .hive-lane-head::before {
438
- background: var(--hive-accent, #58c4dc);
423
+ background: var(--hive-accent);
439
424
  }
440
425
 
441
426
  .hive-lane-claimed .hive-lane-head::before {
@@ -446,10 +431,6 @@
446
431
  background: var(--hive-ok);
447
432
  }
448
433
 
449
- .hive-lane-blocked .hive-lane-head::before {
450
- background: var(--hive-warn);
451
- }
452
-
453
434
  .hive-lane-failed .hive-lane-head::before {
454
435
  background: var(--hive-danger);
455
436
  }
@@ -463,26 +444,26 @@
463
444
  padding: 7px;
464
445
  overflow-x: hidden;
465
446
  overflow-y: auto;
466
- scrollbar-color: var(--hive-line, #232b38) transparent;
447
+ scrollbar-color: var(--hive-line) transparent;
467
448
  scrollbar-width: thin;
468
449
  }
469
450
 
470
451
  .hive-card {
471
452
  padding: 8px 9px;
472
- border: 1px solid var(--hive-line, #232b38);
473
- border-radius: 8px;
453
+ border: 1px solid var(--hive-line);
454
+ border-radius: var(--hive-radius-md);
474
455
  background: var(--hive-surface);
475
456
  cursor: pointer;
476
457
  transition: border-color 120ms ease, background 120ms ease;
477
458
  }
478
459
 
479
460
  .hive-card:hover {
480
- border-color: color-mix(in srgb, var(--hive-accent, #58c4dc) 55%, var(--hive-line, #232b38));
461
+ border-color: color-mix(in srgb, var(--hive-accent) 55%, var(--hive-line));
481
462
  background: var(--hive-surface-hover);
482
463
  }
483
464
 
484
465
  .hive-card:focus-visible {
485
- outline: 2px solid var(--hive-accent, #58c4dc);
466
+ outline: 2px solid var(--hive-accent);
486
467
  outline-offset: 1px;
487
468
  }
488
469
 
@@ -510,8 +491,8 @@
510
491
  max-width: 100%;
511
492
  overflow: hidden;
512
493
  padding: 1px 5px;
513
- border: 1px solid var(--hive-line, #232b38);
514
- border-radius: 4px;
494
+ border: 1px solid var(--hive-line);
495
+ border-radius: var(--hive-radius-sm);
515
496
  background: var(--hive-surface-strong);
516
497
  color: var(--hive-fg-soft);
517
498
  font-family: var(--hive-mono);
@@ -524,10 +505,10 @@
524
505
  margin-top: 6px;
525
506
  padding: 3px 6px;
526
507
  overflow-wrap: anywhere;
527
- border-left: 2px solid var(--hive-danger);
528
- border-radius: 0 4px 4px 0;
508
+ border-left: 1px solid var(--hive-danger);
509
+ border-radius: 0 var(--hive-radius-sm) var(--hive-radius-sm) 0;
529
510
  background: color-mix(in srgb, var(--hive-danger) 10%, transparent);
530
- color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg, #e6edf3));
511
+ color: color-mix(in srgb, var(--hive-danger) 82%, var(--hive-fg));
531
512
  font-size: 10.5px;
532
513
  }
533
514
 
@@ -560,7 +541,7 @@
560
541
  gap: 2px 7px;
561
542
  padding: 6px 7px;
562
543
  border: 1px solid transparent;
563
- border-radius: 6px;
544
+ border-radius: var(--hive-radius-sm);
564
545
  background: var(--hive-surface);
565
546
  font-size: 10.5px;
566
547
  }
@@ -575,7 +556,7 @@
575
556
  .hive-event-kind {
576
557
  justify-self: start;
577
558
  overflow: hidden;
578
- color: var(--hive-accent, #58c4dc);
559
+ color: var(--hive-accent);
579
560
  font-weight: 600;
580
561
  text-overflow: ellipsis;
581
562
  white-space: nowrap;
@@ -600,12 +581,12 @@
600
581
  display: flex;
601
582
  flex-direction: column;
602
583
  width: min(440px, 92vw);
603
- border-left: 1px solid var(--hive-line, #232b38);
604
- background: color-mix(in srgb, var(--hive-bg, #0b0f17) 97%, var(--hive-fg, #e6edf3) 3%);
605
- color: var(--hive-fg, #e6edf3);
606
- box-shadow: -24px 0 64px rgb(0 0 0 / 45%);
607
- font: 13px/1.45 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
608
- color-scheme: dark;
584
+ border-left: 1px solid var(--hive-line);
585
+ background: color-mix(in srgb, var(--hive-bg) 97%, var(--hive-fg) 3%);
586
+ color: var(--hive-fg);
587
+ box-shadow: none;
588
+ font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
589
+ color-scheme: light dark;
609
590
  animation: hive-drawer-in 150ms ease-out;
610
591
  }
611
592
 
@@ -614,7 +595,7 @@
614
595
  align-items: flex-start;
615
596
  gap: 10px;
616
597
  padding: 14px;
617
- border-bottom: 1px solid var(--hive-line, #232b38);
598
+ border-bottom: 1px solid var(--hive-line);
618
599
  }
619
600
 
620
601
  .hive-drawer-titlebox {
@@ -635,7 +616,7 @@
635
616
  .hive-drawer-title {
636
617
  margin: 3px 0 0;
637
618
  overflow-wrap: anywhere;
638
- color: var(--hive-fg, #e6edf3);
619
+ color: var(--hive-fg);
639
620
  font-size: 15px;
640
621
  font-weight: 650;
641
622
  line-height: 1.35;
@@ -654,7 +635,7 @@
654
635
  min-height: 0;
655
636
  padding: 14px;
656
637
  overflow-y: auto;
657
- scrollbar-color: var(--hive-line, #232b38) transparent;
638
+ scrollbar-color: var(--hive-line) transparent;
658
639
  scrollbar-width: thin;
659
640
  }
660
641
 
@@ -683,15 +664,15 @@
683
664
  margin: 0;
684
665
  padding: 10px;
685
666
  overflow: auto;
686
- border: 1px solid var(--hive-line, #232b38);
687
- border-radius: 8px;
688
- background: color-mix(in srgb, var(--hive-fg, #e6edf3) 3%, transparent);
667
+ border: 1px solid var(--hive-line);
668
+ border-radius: var(--hive-radius-md);
669
+ background: color-mix(in srgb, var(--hive-fg) 3%, transparent);
689
670
  color: var(--hive-fg-soft);
690
671
  font-family: var(--hive-mono);
691
672
  font-size: 10.5px;
692
673
  line-height: 1.55;
693
674
  overflow-wrap: anywhere;
694
- scrollbar-color: var(--hive-line, #232b38) transparent;
675
+ scrollbar-color: var(--hive-line) transparent;
695
676
  scrollbar-width: thin;
696
677
  white-space: pre-wrap;
697
678
  }
@@ -734,11 +715,11 @@
734
715
 
735
716
  .hive-agents {
736
717
  border-right: 0;
737
- border-bottom: 1px solid var(--hive-line, #232b38);
718
+ border-bottom: 1px solid var(--hive-line);
738
719
  }
739
720
 
740
721
  .hive-events {
741
- border-top: 1px solid var(--hive-line, #232b38);
722
+ border-top: 1px solid var(--hive-line);
742
723
  border-left: 0;
743
724
  }
744
725
 
@@ -756,3 +737,352 @@
756
737
  width: 100vw;
757
738
  }
758
739
  }
740
+ /* DSH design-token bridge. Neutral grayscale fallbacks keep standalone pages readable. */
741
+ .hive, .hive-portal, .hive-dialog {
742
+ --hive-bg: var(--dsw-alias-bg-base, #fff);
743
+ --hive-bg-layer-1: var(--dsw-alias-bg-layer-1, #fff);
744
+ --hive-bg-layer-2: var(--dsw-alias-bg-layer-2, #fff);
745
+ --hive-bg-layer-3: var(--dsw-alias-bg-layer-3, #f5f5f5);
746
+ --hive-line: var(--dsw-alias-border-l1, #d9d9d9);
747
+ --hive-line-2: var(--dsw-alias-border-l2, #e8e8e8);
748
+ --hive-fg: var(--dsw-alias-label-primary, #000);
749
+ --hive-fg-soft: var(--dsw-alias-label-secondary, #4d4d4d);
750
+ --hive-fg-faint: var(--dsw-alias-label-tertiary, #808080);
751
+ --hive-accent: var(--dsw-alias-brand-primary, #000);
752
+ --hive-hover: var(--dsw-alias-interactive-bg-hover, #f2f2f2);
753
+ --hive-selected: var(--dsw-alias-border-selected, #000);
754
+ --hive-danger: var(--dsw-alias-state-error-primary, #000);
755
+ --hive-ok: var(--dsw-alias-state-success-primary, #000);
756
+ --hive-warn: var(--dsw-alias-state-warn-primary, #000);
757
+ --hive-info: var(--dsw-alias-brand-primary, #000);
758
+ --hive-radius-sm: var(--dsw-radius-sm, 4px);
759
+ --hive-radius-md: var(--dsw-radius-md, 8px);
760
+ --hive-radius-lg: var(--dsw-radius-lg, 12px);
761
+ --hive-elevation: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));
762
+ --hive-surface: var(--hive-bg-layer-1);
763
+ --hive-surface-strong: var(--hive-bg-layer-2);
764
+ --hive-surface-hover: var(--hive-hover);
765
+ --hive-accent-soft: color-mix(in srgb, var(--hive-accent) 14%, transparent);
766
+ --hive-label-on-brand: var(--hive-bg);
767
+ --hive-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
768
+ }
769
+
770
+ /* Tokenized component treatment. */
771
+ .hive { background: var(--hive-bg); color: var(--hive-fg); border-color: var(--hive-line); border-radius: var(--hive-radius-lg); }
772
+ .hive-bar { background: var(--hive-bg-layer-1); border-bottom-color: var(--hive-line); gap: 8px; }
773
+ .hive-main,
774
+ .hive-board { background: var(--hive-bg); }
775
+ .hive-agents,
776
+ .hive-events { background: var(--hive-bg-layer-1); border-color: var(--hive-line); }
777
+ .hive-lane { background: var(--hive-bg-layer-1); border-color: var(--hive-line); border-radius: var(--hive-radius-md); }
778
+ .hive-card { background: var(--hive-bg-layer-1); border: 1px solid var(--hive-line); border-radius: var(--hive-radius-md); box-shadow: none; }
779
+ .hive-card:hover { background: var(--hive-hover); border-color: var(--hive-line); }
780
+ .hive-btn { background: transparent; border: 1px solid var(--hive-line); color: var(--hive-fg); border-radius: var(--hive-radius-md); }
781
+ .hive-btn:hover { background: var(--hive-hover); border-color: var(--hive-line); color: var(--hive-fg); }
782
+ .hive-btn-ghost { background: transparent; border-color: transparent; color: var(--hive-fg-soft); }
783
+ .hive-btn-ghost:hover { background: var(--hive-hover); border-color: transparent; color: var(--hive-fg); }
784
+ .hive-btn-danger { background: transparent; border-color: var(--hive-danger); color: var(--hive-danger); }
785
+ .hive-btn-danger:hover:not(:disabled) { background: var(--hive-hover); border-color: var(--hive-danger); color: var(--hive-danger); }
786
+ .hive-settings-primary,
787
+ .hive-add-submit { background: var(--hive-accent); border-color: var(--hive-accent); color: var(--hive-label-on-brand); }
788
+ .hive-settings-primary:hover:not(:disabled),
789
+ .hive-add-submit:hover:not(:disabled) { background: var(--hive-accent); border-color: var(--hive-accent); color: var(--hive-label-on-brand); }
790
+ .hive-settings-secondary { background: transparent; border-color: var(--hive-line); color: var(--hive-fg); }
791
+ .hive-settings-secondary:hover { background: var(--hive-hover); border-color: var(--hive-line); color: var(--hive-fg); }
792
+ .hive-input,
793
+ .hive-textarea,
794
+ .hive-limits-input { background: var(--hive-bg-layer-1); border: 1px solid var(--hive-line); color: var(--hive-fg); border-radius: var(--hive-radius-sm); }
795
+ .hive-input:focus,
796
+ .hive-textarea:focus,
797
+ .hive-limits-input:focus { outline: 1px solid var(--hive-selected); outline-offset: 0; }
798
+ .hive-dialog,
799
+ .hive-add-dialog,
800
+ .hive-settings-dialog,
801
+ .hive-card-dialog { background: var(--hive-bg-layer-2); border: 1px solid var(--hive-line); border-radius: var(--hive-radius-lg); box-shadow: var(--hive-elevation); color: var(--hive-fg); }
802
+ .hive-toast { background: var(--hive-bg-layer-2); border: 1px solid var(--hive-line); border-radius: var(--hive-radius-lg); box-shadow: none; color: var(--hive-fg); }
803
+ .hive-drawer { background: var(--hive-bg-layer-2); border-left: 1px solid var(--hive-line); box-shadow: none; }
804
+ .hive-json,
805
+ .hive-plan-raw,
806
+ .hive-plan-item,
807
+ .hive-scope,
808
+ .hive-init-card,
809
+ .hive-limits-error,
810
+ .hive-settings-note { background: var(--hive-bg-layer-1); border-color: var(--hive-line); border-radius: var(--hive-radius-sm); }
811
+ .hive-limits-row { border-top-color: var(--hive-line-2); }
812
+ .hive-limits-row:not(.is-head):hover { background: var(--hive-hover); }
813
+ .hive-settings-tab[aria-selected="true"] { border-bottom-color: var(--hive-selected); }
814
+ .hive-lane-head,
815
+ .hive-dialog-head,
816
+ .hive-dialog-foot,
817
+ .hive-drawer-head,
818
+ .hive-settings-tabs { border-color: var(--hive-line-2); }
819
+ .hive-freeze-banner { background: transparent; border-bottom-color: var(--hive-warn); color: var(--hive-warn); }
820
+ .hive-freeze-banner .hive-btn { background: transparent; border-color: var(--hive-line); color: var(--hive-fg); }
821
+ .hive-queen-hint { background: var(--hive-bg-layer-1); border-color: var(--hive-line); }
822
+ .hive-supervisor-inline,
823
+ .hive-stat,
824
+ .hive-status,
825
+ .hive-queen-badge {
826
+ display: inline-flex;
827
+ align-items: center;
828
+ gap: 6px;
829
+ height: 22px;
830
+ padding: 0 8px;
831
+ border: 1px solid var(--hive-line);
832
+ border-radius: 999px;
833
+ background: transparent;
834
+ color: var(--hive-fg-soft);
835
+ font-size: 12px;
836
+ font-weight: 400;
837
+ line-height: 1;
838
+ white-space: nowrap;
839
+ }
840
+ .hive-supervisor-inline { gap: 6px; }
841
+ .hive-supervisor-inline-label { color: var(--hive-fg-soft); font-weight: 400; }
842
+ .hive-supervisor-inline-state { display: inline-flex; align-items: center; gap: 6px; color: var(--hive-fg-soft); font-size: 12px; font-weight: 400; }
843
+ .hive-supervisor-inline-state::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--hive-fg-faint); content: ""; }
844
+ .hive-supervisor-inline-state.is-running::before { background: var(--hive-accent); }
845
+ .hive-supervisor-inline-state.is-backoff::before { background: var(--hive-warn); }
846
+ .hive-supervisor-inline-state.is-paused::before { background: var(--hive-fg-faint); }
847
+ .hive-supervisor-inline-resume { height: auto; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--hive-fg-soft); font-size: 12px; line-height: 1; }
848
+ .hive-supervisor-inline-resume:hover { background: transparent; color: var(--hive-fg); }
849
+ .hive-stats { flex-wrap: wrap; gap: 8px; }
850
+ .hive-stat.is-warn { color: var(--hive-fg-soft); background: transparent; }
851
+ .hive-stat strong { color: var(--hive-fg-soft); font-weight: 400; }
852
+ .hive-status { color: var(--hive-fg-soft); }
853
+ .hive-status::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--hive-danger); content: ""; font-size: 0; }
854
+ .hive-status.is-info::before { background: var(--hive-accent); }
855
+ .hive-queen-badge { color: var(--hive-fg-soft); }
856
+
857
+
858
+ .hive-portal {
859
+ position: fixed;
860
+ inset: 0;
861
+ z-index: 2147483600;
862
+ pointer-events: none;
863
+ }
864
+
865
+ .hive-portal > .hive-overlay { pointer-events: auto; }
866
+
867
+ /* Buttons: two explicit tiers. */
868
+ .hive-btn {
869
+ display: inline-flex;
870
+ align-items: center;
871
+ justify-content: center;
872
+ gap: 6px;
873
+ height: 28px;
874
+ padding: 0 12px;
875
+ border: 1px solid var(--hive-line-2);
876
+ border-radius: var(--hive-radius-md);
877
+ background: transparent;
878
+ color: var(--hive-fg);
879
+ font-size: 14px;
880
+ font-weight: 600;
881
+ line-height: 1.5;
882
+ }
883
+
884
+ .hive-btn:hover {
885
+ border-color: var(--hive-line-2);
886
+ background: var(--hive-hover);
887
+ color: var(--hive-fg);
888
+ }
889
+
890
+ .hive-btn-ghost {
891
+ border-color: transparent;
892
+ background: transparent;
893
+ color: var(--hive-fg-soft);
894
+ }
895
+
896
+ .hive-btn-ghost:hover {
897
+ border-color: transparent;
898
+ background: var(--hive-hover);
899
+ color: var(--hive-fg);
900
+ }
901
+
902
+ .hive-btn-danger {
903
+ border-color: var(--hive-danger);
904
+ background: transparent;
905
+ color: var(--hive-danger);
906
+ }
907
+
908
+ .hive-btn-danger:hover:not(:disabled) {
909
+ border-color: var(--hive-danger);
910
+ background: var(--hive-hover);
911
+ color: var(--hive-danger);
912
+ }
913
+
914
+ .hive-settings-primary,
915
+ .hive-add-submit {
916
+ border-color: var(--hive-accent);
917
+ background: var(--hive-accent);
918
+ color: var(--hive-label-on-brand);
919
+ font-weight: 600;
920
+ }
921
+
922
+ .hive-settings-primary:hover:not(:disabled),
923
+ .hive-add-submit:hover:not(:disabled) {
924
+ border-color: var(--hive-accent);
925
+ background: color-mix(in srgb, var(--hive-accent) 92%, #000);
926
+ color: var(--hive-label-on-brand);
927
+ }
928
+
929
+ .hive-settings-primary:active:not(:disabled),
930
+ .hive-add-submit:active:not(:disabled) {
931
+ border-color: var(--hive-accent);
932
+ background: color-mix(in srgb, var(--hive-accent) 84%, #000);
933
+ color: var(--hive-label-on-brand);
934
+ }
935
+
936
+ .hive-settings-primary:focus-visible,
937
+ .hive-add-submit:focus-visible {
938
+ outline: 2px solid var(--hive-accent);
939
+ outline-offset: 2px;
940
+ }
941
+
942
+ .hive-settings-secondary {
943
+ border-color: var(--hive-line-2);
944
+ background: transparent;
945
+ color: var(--hive-fg);
946
+ }
947
+
948
+ .hive-settings-secondary:hover {
949
+ border-color: var(--hive-line-2);
950
+ background: var(--hive-hover);
951
+ color: var(--hive-fg);
952
+ }
953
+
954
+ .hive-icon-button,
955
+ .hive-dialog-close {
956
+ height: 28px;
957
+ padding: 0;
958
+ border: 0;
959
+ background: transparent;
960
+ color: var(--hive-fg-soft);
961
+ }
962
+
963
+ .hive-icon-button:hover,
964
+ .hive-dialog-close:hover {
965
+ border: 0;
966
+ background: var(--hive-hover);
967
+ color: var(--hive-fg);
968
+ }
969
+
970
+ .hive-role-remove {
971
+ height: 28px;
972
+ min-height: 28px;
973
+ padding: 0;
974
+ border-color: transparent;
975
+ background: transparent;
976
+ color: var(--hive-danger);
977
+ }
978
+
979
+ /* Dialogs are portaled to the document body; keep them above the panel. */
980
+ .hive-dialog,
981
+ .hive-add-dialog,
982
+ .hive-settings-dialog,
983
+ .hive-card-dialog {
984
+ border: 1px solid var(--hive-line);
985
+ background: var(--hive-bg-layer-2);
986
+ box-shadow: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));
987
+ }
988
+
989
+ /* toolbar action rhythm */
990
+ .hive-actions { gap: 8px; }
991
+ .hive-actions > .hive-btn { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
992
+
993
+ /* Dialog form containment: portal content must not create horizontal scroll. */
994
+ .hive-portal,
995
+ .hive-portal *,
996
+ .hive-portal *::before,
997
+ .hive-portal *::after { box-sizing: border-box; }
998
+
999
+ .hive-portal .hive-dialog { max-width: 92vw; overflow-x: hidden; }
1000
+ .hive-portal .hive-dialog-head,
1001
+ .hive-portal .hive-dialog-body,
1002
+ .hive-portal .hive-dialog-foot { padding-left: 16px; padding-right: 16px; }
1003
+ .hive-portal .hive-dialog-body { width: auto; min-width: 0; max-width: 100%; }
1004
+ .hive-portal .hive-dialog-body > * { margin-left: 0; margin-right: 0; max-width: 100%; min-width: 0; }
1005
+ .hive-portal .hive-field,
1006
+ .hive-portal .hive-field-row,
1007
+ .hive-portal .hive-settings-section,
1008
+ .hive-portal .hive-settings-tabpanel,
1009
+ .hive-portal .hive-limits-table { width: 100%; max-width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }
1010
+ .hive-portal .hive-field-row > .hive-field { width: auto; flex: 1 1 160px; }
1011
+ .hive-portal .hive-input,
1012
+ .hive-portal .hive-textarea,
1013
+ .hive-portal select { width: 100%; min-width: 0; max-width: 100%; }
1014
+ .hive-portal .hive-limits-row {
1015
+ width: 100%;
1016
+ max-width: 100%;
1017
+ min-width: 0;
1018
+ grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;
1019
+ }
1020
+ .hive-portal .hive-limits-cell,
1021
+ .hive-portal .hive-limits-role,
1022
+ .hive-portal .hive-dialog-title,
1023
+ .hive-portal .hive-card-subline,
1024
+ .hive-portal .hive-settings-role-name { min-width: 0; overflow-wrap: anywhere; }
1025
+ .hive-portal .hive-dialog-foot { flex-wrap: wrap; }
1026
+
1027
+ .hive-portal .hive-dialog-body { overflow-x: hidden; }
1028
+ .hive-portal .hive-settings-tabs { flex-wrap: wrap; }
1029
+ .hive-portal .hive-card-actions,
1030
+ .hive-portal .hive-settings-form-actions { max-width: 100%; }
1031
+
1032
+ /* Native <dialog>: top layer, browser-managed backdrop and focus trap. */
1033
+ .hive-dialog,
1034
+ .hive-dialog *,
1035
+ .hive-dialog *::before,
1036
+ .hive-dialog *::after { box-sizing: border-box; }
1037
+
1038
+ dialog.hive-dialog {
1039
+ position: fixed;
1040
+ inset: 0;
1041
+ margin: auto;
1042
+ padding: 0;
1043
+ width: min(560px, 100%);
1044
+ max-width: 92vw;
1045
+ max-height: 80vh;
1046
+ overflow: hidden;
1047
+ border: 1px solid var(--hive-line);
1048
+ border-radius: var(--hive-radius-lg);
1049
+ background: var(--hive-bg-layer-2);
1050
+ color: var(--hive-fg);
1051
+ box-shadow: var(--dsw-elevation-panel, 0 12px 32px rgba(0, 0, 0, 0.18));
1052
+ color-scheme: light dark;
1053
+ }
1054
+
1055
+ dialog.hive-card-dialog { width: min(720px, 92vw); }
1056
+
1057
+ dialog.hive-dialog::backdrop {
1058
+ background: var(--dsw-alias-bg-mask-1, rgba(0, 0, 0, 0.24));
1059
+ backdrop-filter: var(--dsw-mask-blur, none);
1060
+ }
1061
+
1062
+ dialog.hive-dialog .hive-dialog-head,
1063
+ dialog.hive-dialog .hive-dialog-body,
1064
+ dialog.hive-dialog .hive-dialog-foot { padding-left: 16px; padding-right: 16px; }
1065
+ dialog.hive-dialog .hive-dialog-body { width: auto; min-width: 0; max-width: 100%; overflow-x: hidden; }
1066
+ dialog.hive-dialog .hive-dialog-body > * { margin-left: 0; margin-right: 0; max-width: 100%; min-width: 0; }
1067
+ dialog.hive-dialog .hive-field,
1068
+ dialog.hive-dialog .hive-field-row,
1069
+ dialog.hive-dialog .hive-settings-section,
1070
+ dialog.hive-dialog .hive-settings-tabpanel,
1071
+ dialog.hive-dialog .hive-limits-table { width: 100%; max-width: 100%; min-width: 0; margin-left: 0; margin-right: 0; }
1072
+ dialog.hive-dialog .hive-field-row > .hive-field { width: auto; flex: 1 1 160px; }
1073
+ dialog.hive-dialog .hive-input,
1074
+ dialog.hive-dialog .hive-textarea,
1075
+ dialog.hive-dialog select { width: 100%; min-width: 0; max-width: 100%; }
1076
+ dialog.hive-dialog .hive-limits-row {
1077
+ width: 100%;
1078
+ max-width: 100%;
1079
+ min-width: 0;
1080
+ grid-template-columns: minmax(0, 1fr) 96px 48px 48px 28px;
1081
+ }
1082
+ dialog.hive-dialog .hive-limits-cell,
1083
+ dialog.hive-dialog .hive-limits-role,
1084
+ dialog.hive-dialog .hive-dialog-title,
1085
+ dialog.hive-dialog .hive-card-subline,
1086
+ dialog.hive-dialog .hive-settings-role-name { min-width: 0; overflow-wrap: anywhere; }
1087
+ dialog.hive-dialog .hive-dialog-foot { flex-wrap: wrap; }
1088
+