Repository navigation
Expand file tree
/
Copy pathconsole.css
More file actions
6320 lines (6290 loc) · 158 KB
/
Copy pathconsole.css
File metadata and controls
6320 lines (6290 loc) · 158 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
/* Instrument Sans and the type scale follow the OpenClaw console. */
@font-face {
font-family: "Instrument Sans";
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url("./fonts/instrument-sans-latin.woff2") format("woff2");
}
:root {
color-scheme: light;
font-family: var(--font-sans);
font-size: var(--text-base);
line-height: 1.5;
font-synthesis: none;
color: var(--text);
background: var(--color-canvas);
/* Colour roles shared by the Console, its controls and its navigation. */
--color-bg: #f7f5f0;
/* Themes with a translucent background resolve it over Canvas once, for both root and body. */
--color-canvas: var(--color-bg);
--color-surface: #ffffff;
--color-surface-2: #f1f4f6;
--color-surface-hover: #eaf1f6;
--color-border: #d4d9dc;
--color-border-strong: #7e8c99;
--color-text: #293847;
--color-text-strong: #202e40;
--color-text-muted: #566573;
--color-accent: #b53d2a;
--color-accent-hover: #963322;
--color-accent-subtle: rgba(181, 61, 42, 0.09);
--color-on-accent: #ffffff;
--color-link: #245784;
--color-success: #166534;
--color-success-subtle: rgba(22, 101, 52, 0.08);
--color-warning: #92400e;
--color-warning-subtle: #fff4df;
--color-danger: #b91c1c;
--color-danger-subtle: rgba(185, 28, 28, 0.08);
--color-info: #193e61;
--color-info-subtle: #e8f1f9;
/* One tint and opacity for the translucent backdrop and its colour over the page canvas. */
--color-overlay-mix: #0f172a 40%;
--color-overlay: color-mix(in srgb, var(--color-overlay-mix), transparent);
--color-focus: var(--color-link);
/* Inverse surfaces use the same palette with light text, selection and focus. */
--color-surface-inverse: var(--color-text-strong);
--color-on-inverse: var(--color-surface);
--color-on-inverse-muted: color-mix(in srgb, var(--color-surface) 82%, var(--color-info));
--color-inverse-hover: color-mix(in srgb, var(--color-surface-inverse) 86%, var(--color-surface));
--color-inverse-selected: color-mix(in srgb, var(--color-link) 65%, var(--color-surface-inverse));
--color-inverse-marker: color-mix(in srgb, var(--color-accent) 48%, var(--color-surface));
--color-focus-inverse: color-mix(in srgb, var(--color-focus) 25%, var(--color-surface));
/* Type: size and its line height. */
--font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
--text-xs: 11px;
--text-xs--line-height: 1.4;
--text-sm: 12px;
--text-sm--line-height: 1.5;
--text-md: 13px;
--text-md--line-height: 1.5;
--text-base: 14px;
--text-base--line-height: 1.5;
--text-lg: 16px;
--text-lg--line-height: 1.4;
--text-xl: 18px;
--text-xl--line-height: 1.3;
--text-2xl: 24px;
--text-2xl--line-height: 1.2;
--text-display: clamp(27px, 3vw, 36px);
--text-display--line-height: 1.12;
--weight-regular: 400;
--weight-medium: 500;
--weight-semibold: 600;
--tracking-tight: -0.02em;
--tracking-caps: 0.08em;
/* Spacing: 4px grid. */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--space-8: 32px;
--space-10: 40px;
--space-12: 48px;
/* Shape, elevation, motion, focus, controls, layout. */
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--radius-pill: 999px;
--shadow-1: 0 8px 24px rgba(60, 42, 24, 0.09);
--shadow-2: 0 16px 48px rgba(60, 42, 24, 0.18);
--duration-fast: 120ms;
--duration-base: 200ms;
--ease: cubic-bezier(0.2, 0, 0, 1);
--focus-ring: 2px solid var(--color-focus);
--focus-offset: 2px;
--focus-offset-inset: -3px;
--control-h: 40px;
--control-h-sm: 32px;
--touch-min: 44px;
--content-max: 1300px;
--form-max: 960px;
--prose-max: 640px;
--sidebar-w: 258px;
/* Breakpoints (media queries cannot read custom properties): phone <= 520px,
tablet <= 760px, desktop <= 1100px. */
/* Older names, kept as aliases until every rule uses the tokens above. */
--bg: var(--color-bg);
--surface: var(--color-surface);
--surface-muted: var(--color-surface-2);
--hover: var(--color-surface-hover);
--text: var(--color-text);
--text-strong: var(--color-text-strong);
--muted: var(--color-text-muted);
--line: var(--color-border);
--input-border: var(--color-border-strong);
--accent: var(--color-accent);
--accent-subtle: var(--color-accent-subtle);
--primary: var(--color-accent);
--primary-hover: var(--color-accent-hover);
--on-primary: var(--color-on-accent);
--success: var(--color-success);
--success-subtle: var(--color-success-subtle);
--danger: var(--color-danger);
--danger-subtle: var(--color-danger-subtle);
--warning: var(--color-warning);
--warning-subtle: var(--color-warning-subtle);
--overlay: var(--color-overlay);
--shadow: var(--shadow-1);
--radius: var(--radius-md);
/* Keep desktop pages aligned when a classic scrollbar comes and goes (finding 1520). */
scrollbar-gutter: stable;
}
@media (prefers-reduced-motion: reduce) {
:root {
--duration-fast: 1ms;
--duration-base: 1ms;
}
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--color-canvas);
}
button,
input,
select,
textarea {
font: inherit;
}
input,
select,
textarea,
dialog {
color: var(--text);
background: var(--surface);
}
input::placeholder,
textarea::placeholder {
color: var(--muted);
opacity: 1;
}
input[type="checkbox"],
input[type="radio"] {
accent-color: var(--accent);
}
button,
a,
input {
-webkit-tap-highlight-color: transparent;
}
button,
a {
touch-action: manipulation;
}
/* Links keep their underline in prose. A component can set its own link treatment. */
:where(a) {
color: var(--color-link);
text-decoration: underline;
text-underline-offset: 2px;
text-decoration-color: color-mix(in srgb, currentColor 60%, transparent);
}
:where(a:hover) {
text-decoration-color: currentColor;
}
/* Button hierarchy (UX plan C2). A plain button is the secondary tone, edged at 3:1 against the
surface; .button gives a link the same chrome. Tones: --primary (accent fill, at most one per
view), --ghost (no edge: toolbars and Refresh), --danger (destructive), --link (inline text).
--sm is the toolbar size. .primary, .overview-primary and .danger are older names for
--primary and --danger, kept until every caller and test uses the new ones. */
button,
.button,
.primary,
.overview-primary {
color: inherit;
cursor: pointer;
background: var(--color-surface);
border: 1px solid var(--color-border-strong);
border-radius: var(--radius-md);
padding: var(--space-2) var(--space-3);
font-weight: var(--weight-medium);
}
/* Low specificity, so a tone's own colour wins. */
:where(a.button, a.primary, a.overview-primary) {
display: inline-flex;
align-items: center;
gap: var(--space-2);
color: var(--color-text-strong);
text-decoration: none;
}
button:not(:disabled, [aria-disabled="true"]):hover,
a.button:hover {
background: var(--color-surface-hover);
}
.button--primary,
.primary,
.overview-primary {
background: var(--color-accent);
border-color: var(--color-accent);
color: var(--color-on-accent);
}
a.button--primary,
a.primary,
a.overview-primary {
color: var(--color-on-accent);
}
/* Tone hovers name the element so they outrank the plain button hover above. */
button.button--primary:not(:disabled, [aria-disabled="true"]):hover,
button.primary:not(:disabled, [aria-disabled="true"]):hover,
a.button--primary:hover,
a.primary:hover,
a.overview-primary:hover {
background: var(--color-accent-hover);
border-color: var(--color-accent-hover);
}
.button--ghost {
border-color: transparent;
background: transparent;
}
.button--danger,
.danger {
color: var(--color-danger);
border-color: var(--color-danger);
}
button.button--danger:not(:disabled, [aria-disabled="true"]):hover,
button.danger:not(:disabled, [aria-disabled="true"]):hover {
color: var(--color-danger);
background: var(--color-danger-subtle);
}
.button--danger:disabled {
background: var(--color-surface-2);
color: var(--color-text-muted);
border-color: var(--color-border);
}
.button--link {
padding: var(--space-1) var(--space-2);
border-color: transparent;
background: none;
}
/* Disclosures that open more detail read as link buttons, not accent text. */
.button--link,
.native-document > summary,
.plugin-access-details > summary {
color: var(--color-link);
text-decoration: underline;
text-underline-offset: 3px;
}
button.button--link:not(:disabled):hover,
a.button.button--link:hover {
background: none;
}
.button--sm {
min-height: var(--control-h-sm);
padding: var(--space-1) var(--space-3);
font-size: var(--text-md);
line-height: var(--text-md--line-height);
}
/* One disabled style and one busy cursor: disabled means "not now", busy means "working". The busy
cursor is for buttons only: a whole page or list marked busy keeps its cursor, so a load that
settles quickly never flashes it (findings 1444, 1447). */
button:disabled {
cursor: not-allowed;
opacity: 0.6;
}
.agent-card[inert] button {
cursor: not-allowed;
opacity: 0.6;
}
[aria-busy="true"] button:disabled,
button[aria-busy="true"] {
cursor: progress;
}
/* One focus ring for every control. Rows and panes that sit against an edge use the inset offset
(.focus-inset, or listed here); wrappers that draw the ring for a borderless child use the
normal one. Items inside a scrolling list or tab strip are inset too: the scroller clips
anything drawn outside it. */
:focus-visible {
outline: var(--focus-ring);
outline-offset: var(--focus-offset);
}
.focus-inset:focus-visible,
.focus-inset:has(input:focus-visible),
.agent-tabs button:focus-visible,
.log-pane:focus-visible,
.plugin-list-item:focus-visible,
.repository-card-toggle:focus-visible,
.repository-result:has(input:focus-visible),
.slack-directory-result.active,
.version-item:focus-visible {
outline: var(--focus-ring);
outline-offset: var(--focus-offset-inset);
}
.slack-directory-input:has(input:focus-visible),
.resource-linked:has(.resource-name :focus-visible),
.repository-option:has(:focus-visible),
.repository-profile:has(:focus-visible) {
outline: var(--focus-ring);
outline-offset: var(--focus-offset);
}
[hidden] {
display: none !important;
}
h1,
h2,
p {
margin-top: 0;
}
h1 {
color: var(--text-strong);
font-size: var(--text-2xl);
font-weight: var(--weight-semibold);
letter-spacing: var(--tracking-tight);
margin-bottom: var(--space-3);
}
h2 {
color: var(--text-strong);
font-size: var(--text-xl);
font-weight: var(--weight-medium);
}
p {
line-height: 1.6;
}
.muted,
.scope {
color: var(--muted);
}
.startup {
/* Padding, not margin: a margin collapses through #app and body, so the page jumps when it is replaced. */
margin: 0;
padding: calc(14vh + var(--space-8)) var(--space-8);
color: var(--muted);
text-align: center;
/* A load that settles within the loading delay never flashes its status (finding 1444). Full
loads took up to 274 ms, past the 250 ms other statuses wait, so the boot status waits
400 ms (finding 1519). Visibility, not opacity: it appears whole, never half-faded. */
animation: loading-delay 400ms;
}
#app > p.startup[role="status"]:has(+ .startup-recovery > button:not([hidden])) {
padding-block-end: var(--space-4);
}
#app > .startup-recovery {
padding: 0 var(--space-8) var(--space-8);
color: var(--muted);
text-align: center;
animation: loading-delay 400ms;
}
#app > .startup-recovery > button {
margin-bottom: var(--space-4);
}
/* A page held on screen, inert, while a navigation's reads run. Past 300 ms it dims and shows
a progress cursor, so a slow return does not look stuck; opacity and cursor only, so nothing
moves (finding 1447). A refocus recheck does not set .holding and keeps its look. */
.content.holding:has(> [aria-live="polite"][inert]) {
cursor: progress;
}
.content.holding > [aria-live="polite"][inert] {
animation: held-busy 200ms ease-out 300ms both;
}
@keyframes held-busy {
from {
opacity: 1;
}
to {
opacity: 0.6;
}
}
@media (prefers-reduced-motion: reduce) {
.content.holding > [aria-live="polite"][inert] {
animation-duration: 1ms;
}
}
/* Loading text that appears only if its read outlasts 250 ms (findings 1444, 1449). */
.delayed-status {
animation: loading-delay 250ms;
}
@keyframes loading-delay {
from,
to {
visibility: hidden;
}
}
/* The same delay for the text of a node that can take focus: transparent, not hidden, so a
screen reader still reads it (finding 1656). */
.delayed-text {
animation: loading-delay-text 250ms;
}
@keyframes loading-delay-text {
from,
to {
opacity: 0;
}
}
/* Sign-in (UX spec 3.12): one card, a 16 px gutter on a phone, and the build in a muted footer. */
.auth {
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius-lg);
width: calc(100% - 2 * var(--space-4));
max-width: 410px;
margin: 14vh auto var(--space-4);
padding: var(--space-8);
}
.auth h1 {
font-size: var(--text-2xl);
margin-bottom: var(--space-2);
}
.auth .auth-intro {
margin-bottom: 0;
}
.auth .brand {
margin-bottom: var(--space-10);
}
.auth-footer {
margin: var(--space-6) auto var(--space-10);
padding: 0 var(--space-4);
text-align: center;
font-size: var(--text-sm);
line-height: var(--text-sm--line-height);
color: var(--color-text-muted);
}
@media (max-width: 520px) {
.auth {
padding: var(--space-6);
}
}
/* The wordmark, shared by navigation and sign-in. */
.brand {
display: flex;
align-items: center;
gap: var(--space-2);
font-size: var(--text-base);
font-weight: var(--weight-semibold);
color: var(--color-text-strong);
margin-bottom: var(--space-10);
}
.brand img {
flex: none;
object-fit: contain;
}
.brand-name {
min-width: 0;
overflow-wrap: anywhere;
}
.brand--bar .brand-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.auth label {
display: block;
font-weight: var(--weight-medium);
margin: var(--space-6) 0 var(--space-2);
}
.auth input {
display: block;
width: 100%;
min-height: var(--control-h);
border: 1px solid var(--input-border);
border-radius: var(--radius);
padding: var(--space-2) var(--space-3);
background: var(--surface);
color: inherit;
}
.hint {
display: block;
margin-top: var(--space-2);
font-size: var(--text-md);
color: var(--muted);
}
.auth .primary,
.auth .button--primary {
width: 100%;
margin-top: var(--space-8);
}
.auth-providers button {
width: 100%;
margin-top: var(--space-4);
}
.auth-provider-icon {
width: 18px;
height: 18px;
margin-right: var(--space-3);
vertical-align: middle;
background: var(--color-surface);
}
.auth-google-colors {
width: 100%;
height: 100%;
background: conic-gradient(
#ff4641,
#fd5061 40deg,
#fd5061 60deg,
#3186ff 85deg,
#3186ff 117deg,
#00a5b7 142deg,
#0ebc5f 167deg,
#0ebc5f 200deg,
#6cc500 226deg,
#fc0 253deg,
#ffd314 268deg,
#fc0 292deg,
#ff4641 327deg
);
}
.auth .auth-recovery {
display: block;
margin: var(--space-5) auto 0;
}
.error {
color: var(--danger);
margin-top: var(--space-5);
/* Refusals name long setting paths and request IDs; wrap them in a phone-width card. */
overflow-wrap: anywhere;
}
/* A field's own error sits under its control, above its help, not after the form (finding
1903): danger text, linked by aria-describedby, with aria-invalid on the control. */
.field-error {
margin: var(--space-1) 0 0;
font-size: var(--text-md);
color: var(--color-danger);
overflow-wrap: anywhere;
}
[aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]) {
border-color: var(--color-danger);
}
/* Status block (UX plan C1): an error, warning or notice. A stripe in the tone's colour on its
subtle wash; the text stays in the body colour, and only the label takes the tone. Built by
statusBlock() in dom.mjs; data-tone is info, success, warning or danger. */
.status {
--status-tone: var(--color-text-muted);
--status-wash: var(--color-surface-2);
padding: var(--space-3) var(--space-4);
border: 1px solid var(--color-border);
border-left: 3px solid var(--status-tone);
border-radius: var(--radius-md);
background: var(--status-wash);
color: var(--color-text);
font-size: var(--text-base);
line-height: var(--text-base--line-height);
/* Refusals name long setting paths and request IDs; wrap them in a phone-width card. */
overflow-wrap: anywhere;
/* A refusal scrolled into view keeps room for its focus ring. */
scroll-margin-block: var(--space-4);
}
/* An empty block shows nothing. One that is a live region (alert or status) keeps its place in
the accessibility tree with no box, so the message later written into the same node is
announced; display: none would drop it from the tree. One without a live role goes. An
explicit hidden attribute still hides either. */
.status:empty {
margin: 0;
padding: 0;
border: 0;
}
.status:empty:not([role="alert"], [role="status"]) {
display: none;
}
/* An error keeps the gap .error gave it from the control above. :where() leaves a component's
own margin (.log-error) in charge. */
.status:where([data-tone="danger"]) {
margin-top: var(--space-4);
}
.status[data-tone="info"] {
--status-tone: var(--color-info);
--status-wash: var(--color-info-subtle);
}
.status[data-tone="success"] {
--status-tone: var(--color-success);
--status-wash: var(--color-success-subtle);
}
.status[data-tone="warning"] {
--status-tone: var(--color-warning);
--status-wash: var(--color-warning-subtle);
}
.status[data-tone="danger"] {
--status-tone: var(--color-danger);
--status-wash: var(--color-danger-subtle);
}
/* A stopped or superseded first deployment is informational. */
.status:has(> .provisioning-neutral) {
--status-tone: var(--color-info);
--status-wash: var(--color-info-subtle);
}
.status-label {
margin: 0 0 var(--space-1);
color: var(--status-tone);
font-size: var(--text-base);
line-height: var(--text-base--line-height);
font-weight: var(--weight-semibold);
}
.status-body,
.status > ul {
margin: 0;
}
.status > ul {
padding-left: var(--space-5);
}
.status-actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
margin-top: var(--space-3);
}
/* Phone: a status block's actions stack full width, each a full touch target (spec 4). */
@media (max-width: 520px) {
.status-actions {
flex-direction: column;
align-items: stretch;
}
.status-actions > :is(a, button) {
justify-content: center;
min-height: var(--touch-min);
}
}
.shell {
min-height: 100dvh;
display: grid;
grid-template-columns: 258px minmax(0, 1fr);
}
.sidebar,
.topbar,
.dialog-header {
--focus-ring: 2px solid var(--color-focus-inverse);
background: var(--color-surface-inverse);
color: var(--color-on-inverse);
}
.sidebar {
padding: var(--space-6) var(--space-4) var(--space-4);
display: flex;
flex-direction: column;
position: sticky;
top: 0;
height: 100dvh;
min-height: 0;
align-self: start;
overflow-y: auto;
z-index: 3;
/* Keep the account control in the viewport as the document scrolls. Page content,
rather than the navigation, supplies the browser's scroll anchor. */
overflow-anchor: none;
}
.sidebar .brand,
.topbar .brand,
.runtime-debug h2 {
color: inherit;
}
/* Navigation logos share a 48 px limit. Contain preserves wide artwork when max-width
constrains it; narrow artwork uses its natural aspect ratio. */
.sidebar .brand img,
.topbar .brand img {
width: auto;
height: 48px;
max-width: 48px;
}
/* The inverse mascot has its contour in the artwork. Forced colours use the original mark. */
.brand-mascot {
display: flex;
flex: none;
}
@media (forced-colors: none) {
.brand:has(.brand-mascot) {
gap: var(--space-1);
}
.topbar:has(.brand-mascot) {
column-gap: 0;
}
.brand--bar:has(.brand-mascot) {
font-size: clamp(var(--text-base), 4.4vw, var(--text-xl));
line-height: var(--text-lg--line-height);
}
}
.sidebar .brand {
padding: var(--space-2) var(--space-3) 0;
margin-bottom: var(--space-6);
}
.occ-version {
color: var(--color-on-inverse-muted);
font-size: var(--text-sm);
text-transform: none;
letter-spacing: normal;
font-family: var(--font-mono);
}
.runtime-debug {
margin: var(--space-6) var(--space-2) var(--space-3);
min-height: 0;
overflow-y: auto;
font-size: var(--text-sm);
}
.runtime-debug h2 {
font-size: var(--text-md);
}
.runtime-debug code {
font-size: var(--text-xs);
overflow-wrap: anywhere;
}
.runtime-debug details {
margin-top: var(--space-4);
}
.runtime-debug summary {
cursor: pointer;
}
.runtime-debug dt {
margin-top: var(--space-3);
color: var(--color-on-inverse-muted);
}
.runtime-debug dd {
margin: var(--space-1) 0 0;
}
.nav {
display: grid;
gap: var(--space-1);
}
.nav a {
display: flex;
gap: var(--space-3);
align-items: center;
min-height: 36px;
padding: 0 var(--space-3);
text-decoration: none;
color: var(--color-on-inverse-muted);
border-radius: var(--radius-md);
}
.nav a:hover,
:is(.account-toggle, .mobile-toggle, .topbar-avatar, .drawer-close):not(:disabled):hover {
color: var(--color-on-inverse);
background: var(--color-inverse-hover);
}
/* The marker sits inside the link, so labels stay aligned even in forced colours. */
.nav a[aria-current="page"] {
position: relative;
background: var(--color-inverse-selected);
color: var(--color-on-inverse);
font-weight: var(--weight-semibold);
border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.nav a[aria-current="page"]::before {
content: "";
position: absolute;
inset-block: 0;
inset-inline-start: 0;
border-inline-start: 3px solid var(--color-inverse-marker);
}
@media (forced-colors: active) {
.nav a[aria-current="page"]::before {
border-color: Highlight;
}
}
.nav-icon {
font-size: 16px;
width: 16px;
text-align: center;
}
.external-link-icon {
width: 16px;
height: 16px;
margin-left: auto;
flex: none;
}
.account {
margin-top: auto;
position: relative;
padding-top: var(--space-6);
}
/* The account row: initials avatar, name and email, chevron. */
.account-toggle {
width: 100%;
text-align: left;
padding: var(--space-3);
border-color: var(--color-inverse-hover);
background: transparent;
font-weight: var(--weight-regular);
display: flex;
align-items: center;
gap: var(--space-3);
}
.account-avatar {
flex: none;
display: inline-grid;
place-items: center;
width: 32px;
height: 32px;
border-radius: var(--radius-pill);
background: var(--color-info-subtle);
color: var(--color-info);
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
line-height: 1;
}
.account-text {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.account-name,
.account-email {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.account-name {
font-size: var(--text-base);
line-height: var(--text-base--line-height);
font-weight: var(--weight-medium);
}
.account-email {
font-size: var(--text-sm);
line-height: var(--text-sm--line-height);
}
.account-chevron {
flex-shrink: 0;
}
.account-email,
.account-chevron {
color: var(--color-on-inverse-muted);
}
.menu {
/* Account menus use the page surface, including when opened from the navigation. */
--focus-ring: 2px solid var(--color-focus);
padding: var(--space-2);
background: var(--surface);
color: var(--color-text);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
min-width: 225px;
}
.account > .menu {
position: absolute;
bottom: calc(100% - var(--space-6) + var(--space-2));
left: 0;
right: 0;
}
.menu button {
display: block;
width: 100%;
text-align: left;
border: 0;
padding: var(--space-3);
font-size: var(--text-base);
overflow-wrap: anywhere;
}
.menu [aria-checked="true"] {
background: var(--accent-subtle);
color: var(--accent);
font-weight: var(--weight-semibold);
}
.menu .muted {
margin: var(--space-3);
font-size: var(--text-md);
}
.content {
padding: var(--space-8);
max-width: 1300px;
width: 100%;
}
/* Page header (UX spec 3.2). Collections: the title and its scope line at the left, the actions
(compact Namespace control, Refresh) at the right on the title block's last line. */
.page-header {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: end;
gap: var(--space-4) var(--space-6);
margin-bottom: var(--space-8);
}
.page-title {
min-width: 0;
}
.page-header h1 {
margin-bottom: var(--space-1);
font-size: var(--text-2xl);
line-height: var(--text-2xl--line-height);
letter-spacing: var(--tracking-tight);
overflow-wrap: anywhere;
}
.page-actions {
display: flex;
align-items: center;
gap: var(--space-3);
flex-wrap: wrap;
max-width: 100%;
}
/* An Agent's page and Create Agent: ← Agents, the title with the actions at its right, then the
meta row (ID, Namespace) across the width. The Agent's name is the page's largest type. */
.page-header--subpage {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
grid-template-areas:
"back back"
"title actions"
"meta meta";
align-items: start;
gap: var(--space-2) var(--space-6);
}
.page-back {
grid-area: back;
justify-self: start;
/* The arrow lines up with the title, not the ghost button's padding. */
margin-left: calc(-1 * var(--space-3));
color: var(--color-text-muted);
}
.page-header--subpage h1 {
grid-area: title;
justify-self: start;
}
.page-header--subpage .page-actions {
grid-area: actions;
justify-content: end;
}
.page-header--agent h1 {
margin-bottom: 0;
font-size: var(--text-display);
line-height: var(--text-display--line-height);
}
.page-header--create h1 {
margin-bottom: 0;
}
.page-meta {
grid-area: meta;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
color: var(--color-text-muted);
font-size: var(--text-sm);
line-height: var(--text-sm--line-height);
}
.page-meta-id {
display: inline-flex;
align-items: center;
gap: var(--space-1);
min-width: 0;
}
.page-meta-id .resource-id {
font-size: var(--text-xs);
}
/* The separator before the Namespace control; none when the control is hidden. */
.page-meta-id::after {
content: "·" / "";
margin-left: var(--space-1);
}
.page-meta:not(:has(> .namespace-selector:not([hidden]))) .page-meta-id::after {
content: none;
}
/* Below 1100 px the row can wrap, and a wrapped separator would trail the ID. */
@media (max-width: 1100px) {
.page-meta-id::after {
content: none;
}
}
.page-meta-copy {
display: inline-flex;
align-items: center;
justify-content: center;
width: var(--control-h-sm);
padding: 0;
color: var(--color-text-muted);
}
.copy-icon {
width: 16px;
height: 16px;
}
.page-meta-copied:empty {
display: none;
}
@media (max-width: 1100px) {
/* Give the title its own row before the sidebar and actions squeeze it. On phones,
← Agents shares the actions row (spec 3.2 and 4: header bottom <= 240 px at 390). */
.page-header--subpage {
grid-template-areas:
"back actions"
"title title"
"meta meta";
align-items: center;
}