-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathstyles.css
More file actions
10278 lines (9192 loc) · 266 KB
/
Copy pathstyles.css
File metadata and controls
10278 lines (9192 loc) · 266 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
/* Obsidian Agent - Styles (Kilo Code Pattern) */
/* Sidebar min-width: prevent buttons from being cut off (FEATURE-1907) */
.workspace-leaf-content[data-type="obsilo-agent-sidebar"] {
min-width: 320px;
}
/* ── Sandbox iframe (Self-Development Phase 3) ──────────────────────── */
.agent-sandbox-iframe {
display: none;
position: absolute;
width: 0;
height: 0;
border: 0;
}
/* Sidebar Container
*
* This block also carries the --vo-* design tokens: the "own layer" of the
* redesign, a single-source token set on top of Obsidian's theme variables so
* spacing, radius, elevation and status colours come from one place instead of
* hand-set pixels. The INTERACTIVE accent deliberately stays the user's theme
* (--interactive-accent) so custom community themes keep working. Only shadows
* need an explicit light/dark pair; everything else maps to theme-aware
* Obsidian vars. Dark overrides follow the same `.theme-dark` selector pattern
* the diff tokens already use.
*
* The tokens live INSIDE this rule rather than in a second
* `.obsidian-agent-sidebar` block on purpose: the Obsidian review bot's CSS
* lint (tier 7) fails on any duplicated bare selector. */
.obsidian-agent-sidebar {
display: flex;
flex-direction: column;
height: 100%;
padding: 0;
/* Allow text selection in chat (override Obsidian's default sidebar behavior) */
user-select: text;
-webkit-user-select: text;
/* Spacing scale */
--vo-space-1: 4px;
--vo-space-2: 8px;
--vo-space-3: 12px;
--vo-space-4: 16px;
--vo-space-5: 20px;
--vo-space-6: 24px;
/* Radii */
--vo-radius-sm: 8px;
--vo-radius-md: 12px;
--vo-radius-lg: 15px;
--vo-radius-pill: 999px;
/* Surfaces + hairlines (theme-aware via Obsidian vars) */
--vo-surface-1: var(--background-secondary);
--vo-surface-2: var(--background-secondary-alt);
--vo-line: var(--background-modifier-border);
--vo-line-strong: var(--background-modifier-border-hover, var(--background-modifier-border));
/* Elevation. Light values here, dark overridden below. */
--vo-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.04);
--vo-shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
/* Accent stays the user's theme; a soft tint for fills/backgrounds. */
--vo-accent: var(--interactive-accent);
--vo-accent-soft: color-mix(in srgb, var(--interactive-accent) 16%, transparent);
/* Status colours (theme-aware; used by tool activity + step timeline) */
--vo-status-run: var(--color-orange);
--vo-status-ok: var(--color-green);
--vo-status-err: var(--color-red);
}
.theme-dark .obsidian-agent-sidebar {
--vo-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
--vo-shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
}
/* Header */
.agent-header {
display: flex;
justify-content: space-between;
align-items: center;
/* Left padding matches the tab labels below (~12px) so the brand glyph
* lines up flush-left with the tab strip instead of sitting indented. */
padding: 12px 12px;
border-bottom: 1px solid var(--background-modifier-border);
flex-shrink: 0;
}
.agent-title {
display: flex;
align-items: center;
gap: 9px;
color: var(--text-normal);
}
/* Brand glyph: pink → violet gradient rounded square carrying a diagonal
* slash, the coloured square-slash mark from the Obsidian community listing.
* Brand colours are fixed by design (not theme-tinted) so the mark stays
* recognisable on every theme, the way an app icon does. */
.agent-brand-glyph {
position: relative;
width: 24px;
height: 24px;
flex-shrink: 0;
border-radius: 7px;
background: linear-gradient(145deg, #e6547f 0%, #a24bd8 55%, #7b5cf0 100%);
box-shadow: var(--vo-shadow-sm);
}
/* The slash, a rotated white bar, so we depend on no icon font. rotate(45deg)
* of a vertical bar leans bottom-left → top-right, i.e. a forward slash. */
.agent-brand-glyph::before {
content: "";
position: absolute;
left: 50%;
top: 50%;
width: 2px;
height: 13px;
border-radius: 2px;
background: #ffffff;
transform: translate(-50%, -50%) rotate(45deg);
}
/* Wordmark: the product name in the UI face, no longer monospace. */
.agent-brand-name {
font-family: var(--font-interface);
font-size: 15px;
font-weight: 600;
letter-spacing: -0.01em;
color: var(--text-normal);
}
/* Vault Health Badge (FEATURE-1901 / BUG-025 2026-04-19):
* The badge is now a header-button styled like its neighbours. Colour comes
* from the severity-* class and drives the lucide heart-pulse icon via
* currentColor. Hidden via the shared `agent-u-hidden` utility when no
* findings exist. */
.health-badge {
cursor: pointer;
}
.health-badge .toolbar-icon {
color: currentColor;
}
.health-badge:hover {
opacity: 0.85;
}
/* Vault Health Repair Modal (FEATURE-1901, FIX-15) */
.vault-health-modal {
max-width: 600px;
}
.vault-health-top-tabs {
display: flex;
gap: 6px;
margin-bottom: 12px;
border-bottom: 1px solid var(--background-modifier-border);
padding-bottom: 8px;
}
/* FIX-19-02-19: gleicher Tab-Standard wie die Settings (.agent-settings-tab).
Vorher erbten die Knoepfe Obsidians Default-Button-Look (graue Pille mit
Rahmen und Schatten), weil `.modal button` spezifischer ist als eine
einzelne Klasse. Deshalb hier mit `.modal`-Praefix und !important auf den
drei Eigenschaften, die der Default setzt. */
.modal .vault-health-top-tabs {
display: flex;
gap: 2px;
margin-bottom: 12px;
border-bottom: 1px solid var(--background-modifier-border);
padding: 0;
}
.modal button.vault-health-top-tab.vault-health-top-tab {
display: inline-flex;
align-items: center;
padding: 5px 12px;
background: transparent;
border: none;
box-shadow: none;
border-bottom: 2px solid transparent;
color: var(--text-muted);
font-size: 13px;
font-weight: 400;
cursor: pointer;
margin-bottom: -1px;
border-radius: 4px 4px 0 0;
transition: color 0.1s;
}
.modal button.vault-health-top-tab:hover { color: var(--text-normal); }
.modal button.vault-health-top-tab.is-active {
color: var(--text-normal);
border-bottom-color: var(--interactive-accent);
font-weight: 500;
}
/* Severity-Filter: dieselbe Sprache, eine Stufe leiser. */
.modal .vault-health-filter-row {
display: flex;
gap: 2px;
margin: 12px 0 8px;
flex-wrap: wrap;
}
.modal button.vault-health-filter-tab.vault-health-filter-tab {
padding: 4px 10px;
background: transparent;
border: none;
box-shadow: none;
border-bottom: 2px solid transparent;
color: var(--text-muted);
font-size: 12px;
cursor: pointer;
border-radius: 4px 4px 0 0;
}
.modal button.vault-health-filter-tab:hover { color: var(--text-normal); }
.modal button.vault-health-filter-tab.is-active {
color: var(--text-normal);
border-bottom-color: var(--interactive-accent);
font-weight: 500;
}
.vault-health-knowledge-review-toolbar {
display: flex;
gap: 6px;
margin: 8px 0 12px 0;
}
/* IMP-19-01-01: Auto-fix CTA above the severity filter pills.
Plain text + button; no background, no border. */
.vault-health-autofix-banner {
display: flex;
flex-direction: column;
gap: 4px;
margin: 4px 0 8px 0;
}
.vault-health-autofix-label {
display: flex;
align-items: baseline;
gap: 6px;
font-weight: 600;
}
/* FIX-19-05-08: gleiche Groesse/Farbe wie eine setting-item-description. */
.vault-health-autofix-desc {
color: var(--text-muted);
font-size: var(--font-ui-smaller);
line-height: 1.5;
}
.vault-health-autofix-btn {
align-self: flex-start;
margin-top: 6px;
}
/* IMP-19-01-02: sticky apply-bar at the top of the Findings tab.
Stays visible while the user scrolls through long finding lists.
FIX-19-05-08: der Apply-Knopf behaelt seine natuerliche Breite und steht
rechtsbuendig (Settings-Look). FIX-19-09 (Review-Bot Tier 7): die zwei
frueheren .vault-health-apply-sticky-Bloecke hier in-place gemergt. */
.vault-health-apply-sticky {
position: sticky;
top: 0;
z-index: 10;
margin: 8px 0 12px 0;
padding: 8px 0;
background: var(--background-primary);
border-bottom: 1px solid var(--background-modifier-border);
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
}
.vault-health-apply-sticky-btn { width: auto; }
.resolve-conflict-modal .resolve-conflict-confirm,
.batch-resolve-modal .batch-resolve-actions,
.batch-resolve-modal .batch-resolve-filter-row {
display: flex;
gap: 8px;
margin-top: 12px;
align-items: center;
}
/* FIX-19-05-05: Aktionen als vertikale Liste, jede mit erklaerender Caption. */
.resolve-conflict-modal .resolve-conflict-actions {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 14px;
}
.resolve-conflict-modal .resolve-conflict-action {
display: flex;
flex-direction: column;
gap: 3px;
}
.resolve-conflict-modal .resolve-conflict-action-caption {
font-size: var(--font-ui-smaller);
color: var(--text-muted);
line-height: 1.4;
}
/* FIX-19-05-05: "Warum ist diese Notiz hier"-Block. */
.resolve-conflict-modal .resolve-conflict-why {
padding: 0.6em 0.75em;
margin: 0.5em 0;
border-left: 3px solid var(--interactive-accent, var(--text-accent));
background: var(--background-secondary);
border-radius: var(--radius-s, 4px);
line-height: 1.5;
}
.resolve-conflict-modal .resolve-conflict-why p {
margin: 0;
}
.batch-resolve-modal .batch-resolve-filter-label {
margin-right: 12px;
}
.batch-resolve-modal .batch-resolve-counter,
.batch-resolve-modal .batch-resolve-preview {
margin: 8px 0;
color: var(--text-muted);
font-size: 13px;
}
/* FIX-19-05-07: native Setting-Zeilen im Modal (Scan/Re-Check-Toolbars).
Kein oberer Trennstrich (sie stehen am Kopf des Tabs), etwas kompakter. */
.vault-health-modal .vault-health-inline-setting {
border-top: none;
padding: 8px 0 12px;
}
.vault-health-severity {
display: inline-block;
min-width: 54px;
padding: 1px 6px;
border-radius: 3px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
margin-right: 6px;
}
.vault-health-severity.severity-high {
background: var(--color-red);
color: var(--text-on-accent);
}
.vault-health-severity.severity-medium {
background: var(--color-orange);
color: var(--text-on-accent);
}
.vault-health-severity.severity-low {
background: var(--text-faint);
color: var(--background-primary);
}
/* FIX-19-05-07: Sektionen im Settings-Register. Die Section-Kopfzeile liest
sich wie eine agent-settings-section-Ueberschrift (Uppercase, muted,
Unterlinie), der Rahmen bleibt fuer die Klappbarkeit dezent. */
.vault-health-section {
margin: 16px 0 8px;
border: none;
border-radius: 0;
}
.vault-health-section-header {
display: flex;
align-items: center;
gap: 6px;
padding: 0 0 4px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.06em;
color: var(--text-muted);
cursor: pointer;
user-select: none;
border-bottom: 1px solid var(--background-modifier-border);
}
.vault-health-section-header:hover { color: var(--text-normal); }
.vault-health-section-content {
padding: 4px 0 8px;
}
.vault-health-tag-info {
color: var(--text-muted);
font-size: 11px;
font-style: italic;
}
/* Individual finding rows -- FIX-19-05-07: Zeilenrhythmus wie ein
setting-item (Trennlinie, vertikaler Abstand), damit sich der Tab wie die
Settings liest. Titel + Confidence links, Aktionen rechts. */
.vault-health-finding-row {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 0 2px;
font-size: 13px;
border-top: 1px solid var(--background-modifier-border);
}
.vault-health-section-content > .vault-health-finding-row:first-child {
border-top: none;
}
.vault-health-finding-row input[type="checkbox"] {
flex-shrink: 0;
margin: 0;
}
.vault-health-note-link {
color: var(--text-accent);
cursor: pointer;
border-bottom: 1px dotted currentColor;
font-weight: 500;
line-height: 1.4;
}
.vault-health-note-link:hover {
color: var(--text-accent-hover);
}
.vault-health-path-count {
color: var(--text-muted);
font-size: 11px;
}
/* FIX-19-05-08: die Begruendung als setting-item-description-Register,
flush unter der Zeile (kein fester Einzug, da die Review-Zeilen keine
Checkbox haben und ein 26px-Versatz dort verrutschte). */
.vault-health-fix-preview {
padding: 0 0 8px 0;
font-size: var(--font-ui-smaller);
line-height: 1.5;
color: var(--text-muted);
}
.vault-health-finding-actions {
display: inline-flex;
align-items: center;
gap: 6px;
margin-left: auto;
flex-shrink: 0;
}
/* Primaeraktion "Fix with agent": normaler CTA-Knopf im Settings-Format. */
.vault-health-fix-with-agent-btn {
font-size: var(--font-ui-smaller);
}
/* Sekundaeres Ausblenden/Discuss-Icon: exakt das .agent-info-btn-Register der
Settings -- KEIN Hintergrund, kein Rahmen, auch nicht im Hover, nur die
Farbe wechselt. Doppelte Klasse (Spezifitaet 0,2,0) schlaegt Obsidians
`.modal button`-Default OHNE !important, genau wie bei .agent-info-btn. */
.vault-health-icon-btn.vault-health-icon-btn {
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
background-color: transparent;
border: none;
box-shadow: none;
padding: 0;
margin: 0;
cursor: pointer;
color: var(--text-faint);
line-height: 0;
border-radius: 0;
transition: color 0.15s ease;
}
.vault-health-icon-btn.vault-health-icon-btn:hover {
color: var(--text-normal);
background: transparent;
background-color: transparent;
box-shadow: none;
}
.vault-health-icon-btn svg { width: 16px; height: 16px; }
.vault-health-reset-btn {
font-size: 12px;
color: var(--text-muted);
}
.vault-health-search-row {
margin-bottom: 8px;
}
.vault-health-search-input {
width: 100%;
padding: 6px 10px;
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
background: var(--background-primary);
font-size: 13px;
}
.vault-health-dismissed-list {
max-height: 300px;
overflow-y: auto;
}
.vault-health-empty {
color: var(--text-muted);
font-size: 12px;
font-style: italic;
}
/* Buttons + results */
.vault-health-btn-row {
display: flex;
gap: 8px;
margin-top: 16px;
justify-content: flex-end;
}
.vault-health-progress {
color: var(--text-muted);
font-style: italic;
}
.vault-health-results {
list-style: none;
padding: 0;
margin: 12px 0;
}
.vault-health-results li {
padding: 3px 0;
font-size: 13px;
}
.vault-health-remaining {
font-size: 12px;
color: var(--text-muted);
margin-top: 8px;
}
.vault-health-error {
color: var(--color-red);
font-size: 12px;
}
.health-badge.severity-high {
color: var(--color-red);
}
.health-badge.severity-medium {
color: var(--color-orange);
}
.health-badge.severity-low {
color: var(--text-muted);
}
.agent-meta {
font-size: 12px;
color: var(--text-muted);
}
/* Chat Wrapper (contains messages + history panel overlay) */
.chat-wrapper {
flex: 1;
position: relative;
overflow: hidden;
min-height: 0;
}
/* Chat Messages (compact layout: padding/gap merged from former duplicate
"Compact chat" section so the selector appears only once) */
.chat-messages {
height: 100%;
overflow-y: auto;
padding: var(--vo-space-3) var(--vo-space-4);
padding-bottom: 140px; /* Safety margin: Input-Container ist ~120px hoch */
display: flex;
flex-direction: column;
gap: var(--vo-space-3);
}
.message {
display: flex;
flex-direction: column;
gap: 4px;
}
.message-content {
padding: 7px 10px;
border-radius: var(--vo-radius-sm);
max-width: 100%;
line-height: 1.55;
font-size: 14px;
user-select: text;
cursor: text;
transition: opacity 150ms ease-out;
}
/* v2.10.4: text selection in chat consolidated into one ruleset.
The view container already declares `user-select: text` (line 24);
the chat-specific selectors only need to keep that on through the
message subtree. Specificity is high enough to win over Obsidian's
default `.sidebar-view * { user-select: none }` without !important.
User feedback 2026-06-24: inline chat bubbles need the same rule.
When the panel mounts as a CM6 block widget the surrounding
`.cm-content` propagates the editor's `user-select: text` to the
widget, but Obsidian themes occasionally reset it on nested
markdown-rendered children. Re-declaring it on the inline-panel
bubble + descendants restores copy-from-response. */
.obsidian-agent-sidebar .message,
.obsidian-agent-sidebar .message-content,
.obsidian-agent-sidebar .user-message .message-content,
.obsidian-agent-sidebar .user-message .message-content *,
.obsidian-agent-sidebar .assistant-message .message-content,
.obsidian-agent-sidebar .assistant-message .message-content *,
.agent-inline-panel__body,
.agent-inline-panel__body *,
.agent-inline-panel__bubble,
.agent-inline-panel__bubble * {
user-select: text;
-webkit-user-select: text;
cursor: auto;
}
.message-content h1 {
margin-top: 0;
margin-bottom: 14px;
font-size: 20px;
font-weight: 700;
border-bottom: 1px solid var(--background-modifier-border);
padding-bottom: 6px;
}
.message-content h2 {
margin-top: 18px;
margin-bottom: 10px;
font-size: 17px;
font-weight: 600;
border-bottom: 1px solid var(--background-modifier-border);
padding-bottom: 4px;
}
.message-content h3 {
margin-top: 16px;
margin-bottom: 12px;
font-size: 16px;
font-weight: 600;
}
.message-content h4 {
margin-top: 16px;
margin-bottom: 8px;
font-size: 14px;
font-weight: 600;
color: var(--text-normal);
}
/* Tables */
.message-content table {
width: 100%;
border-collapse: collapse;
margin: 10px 0;
font-size: 13px;
}
.message-content th,
.message-content td {
border: 1px solid var(--background-modifier-border);
padding: 6px 10px;
text-align: left;
vertical-align: top;
}
.message-content th {
background: var(--background-secondary);
font-weight: 600;
}
.message-content tr:nth-child(even) {
background: var(--background-secondary-alt);
}
/* Callouts — smaller/subtler in chat context */
.message-content .callout {
margin: 10px 0 4px;
padding: 6px 10px;
font-size: 12px;
border-radius: 6px;
background: var(--background-secondary);
border-left: 3px solid var(--text-faint);
}
.message-content .callout .callout-title {
font-size: 12px;
font-weight: 600;
margin-bottom: 4px;
}
.message-content .callout .callout-icon {
width: 14px;
height: 14px;
}
.message-content p {
margin-bottom: 8px;
}
.message-content ul,
.message-content ol {
margin-left: 0;
padding-left: 16px;
margin-bottom: 8px;
}
.message-content li {
margin-bottom: 4px;
}
/* Keeping the question reachable is handled by the pinned-question BAR (see
* .vo-pinned-question), not by position: sticky on the bubble. Sticky was
* shipped first and failed in the field for a reason worth recording: the
* Copilot plugin ships an unscoped `.message{position:relative}` rule that
* outranks a same-specificity `.user-message` sticky purely by stylesheet
* order -- and, independently, flat sticky siblings would all pile up at
* top: 0 because they share one containing block. An overlay bar has neither
* problem. */
.user-message {
align-items: flex-end;
}
/* The prompt keeps its bubble (it is the marker the answer hangs off), but a
* neutral, quiet one. It used to be tinted with ~20% of the theme accent,
* which made the question shout louder than the answer it introduces. The
* answer stays unboxed and full width, so the two never compete. */
.user-message .message-content {
/* A very light grey box, mixed from the text colour rather than taken from
* a surface token: the chat ground IS --background-secondary, so a surface
* token rendered the bubble invisible. Mixing against the text colour keeps
* it a faint tint of the ground in light AND dark themes.
* The text itself stays --text-normal; muted made the question read like a
* disabled control next to the full-strength answer. */
background: color-mix(in srgb, var(--text-normal) 7%, transparent);
color: var(--text-normal);
align-self: flex-end;
max-width: 85%;
border-radius: 12px 12px 4px 12px;
padding: 7px 11px;
font-size: 13px;
cursor: text;
}
/* Pinned question bar: floats at the top of the chat while the CURRENT
* question is scrolled out of view, so the prompt stays reachable during a
* long answer (Claude-Code pattern). One line with ellipsis; click toggles
* the full text. Lives in .chat-wrapper (position: relative), z-index below
* the history panel's 10. Styled as a floating card on --background-primary,
* the same treatment the active tab uses, so it reads as deliberately ON
* TOP of the chat rather than as a band trying to blend in. */
.vo-pinned-question {
position: absolute;
top: var(--vo-space-2);
left: var(--vo-space-4);
right: var(--vo-space-4);
z-index: 3;
padding: 6px 12px;
background: var(--background-primary);
border: 1px solid var(--vo-line);
border-radius: var(--vo-radius-md);
box-shadow: var(--vo-shadow-md);
cursor: pointer;
user-select: none;
-webkit-user-select: none;
font-size: 13px;
color: var(--text-normal);
}
.vo-pinned-question-text {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
/* Expanded: full question, wrapped; very long prompts scroll inside the bar
* instead of covering the whole conversation. */
.vo-pinned-question.vo-pinned-question-expanded .vo-pinned-question-text {
white-space: normal;
max-height: 12em;
overflow-y: auto;
}
/* FEAT-24-08 / ADR-114 Steering-Hook: distinct visual for mid-run
corrections so the user can spot them in the chat history and tell
apart queued vs delivered vs discarded. */
.chat-message-steering {
align-items: flex-end;
}
.chat-message-steering .steering-marker {
display: flex;
align-items: center;
gap: 4px;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.4px;
color: var(--text-muted);
align-self: flex-end;
padding-right: 4px;
}
.chat-message-steering .steering-marker-icon {
display: inline-flex;
align-items: center;
--icon-size: 12px;
}
.chat-message-steering .steering-marker-icon svg {
width: 12px;
height: 12px;
}
.chat-message-steering .message-content {
border-left: 3px solid var(--interactive-accent-hover, var(--interactive-accent));
background: var(--background-modifier-form-field, var(--background-secondary));
color: var(--text-normal);
border-radius: 12px 12px 4px 12px;
}
.chat-message-steering .steering-footer {
display: flex;
align-items: center;
gap: 4px;
font-size: 11px;
color: var(--text-muted);
align-self: flex-end;
padding-right: 4px;
}
.chat-message-steering .steering-footer-icon {
display: inline-flex;
align-items: center;
}
.chat-message-steering .steering-footer-icon svg {
width: 12px;
height: 12px;
}
.chat-message-steering.steering-pending .steering-footer {
color: var(--text-muted);
font-style: italic;
}
.chat-message-steering.steering-delivered .steering-footer {
color: var(--text-success, var(--color-green));
}
.chat-message-steering.steering-discarded .message-content {
opacity: 0.6;
border-left-color: var(--text-error, var(--color-red));
}
.chat-message-steering.steering-discarded .steering-footer {
color: var(--text-error, var(--color-red));
}
.assistant-message .message-content {
background: transparent;
border: none;
color: var(--text-normal);
padding: 2px 0 4px;
font-size: 14px;
cursor: text;
}
/* Reusable brand mark: the pink → violet rounded square carrying the slash,
* the same square-slash used in the sidebar header and the community listing.
* A floating marker in the message gutter was tried first and had to be
* dropped: absolutely positioned beside a panel, it always collided with that
* panel's top-left corner. The mark now lives INSIDE the surfaces it belongs
* to (currently the plan panel header), which makes the collision structurally
* impossible. Sized by the element it is applied to via --vo-mark-size.
*
* Drawn in CSS on purpose: DOMPurify strips <svg> when a chat is rehydrated
* from history, so an icon-font/SVG mark would vanish in reloaded chats. */
.vo-brand-mark {
--vo-mark-size: 16px;
position: relative;
display: inline-block;
flex-shrink: 0;
width: var(--vo-mark-size);
height: var(--vo-mark-size);
border-radius: calc(var(--vo-mark-size) / 3.6);
background: linear-gradient(145deg, #e6547f 0%, #a24bd8 55%, #7b5cf0 100%);
}
/* The slash: a thin bar, centred then rotated. A gradient colour-band was
* tried first and renders as a chunky diagonal split of the square at these
* sizes, not as a slash; a fixed bar stays crisp at any size. */
.vo-brand-mark::before {
content: "";
position: absolute;
left: 50%;
top: 50%;
width: 2px;
height: calc(var(--vo-mark-size) * 0.58);
margin-left: -1px;
margin-top: calc(var(--vo-mark-size) * -0.29);
border-radius: 1px;
background: #ffffff;
transform: rotate(45deg);
}
/* Live token meter: ticks the estimated output while the model streams
* (Claude-Code-style count-up). The exact per-turn total still lands in the
* footer via TaskMonitor; this is the in-flight estimate for the current turn. */
.vo-live-meter {
display: inline-flex;
align-items: center;
gap: var(--vo-space-1);
width: fit-content;
margin: 2px 0 6px;
padding: 2px 8px;
border-radius: var(--vo-radius-pill);
background: var(--vo-surface-2);
color: var(--text-muted);
font-family: var(--font-monospace);
font-size: 11px;
}
/* Activity animation: the mark's own slash spins inside the icon box. More
* distinctive than a generic spinner, and it ties the running state to the
* product's mark. Only the bar rotates; the gradient square stays put. */
.vo-live-meter-icon {
--vo-mark-size: 14px;
}
.vo-live-meter-icon::before {
animation: vo-slash-spin 1.6s linear infinite;
}
/* Starts at the mark's resting 45deg so there is no jump when it begins. */
@keyframes vo-slash-spin {
from { transform: rotate(45deg); }
to { transform: rotate(405deg); }
}
.vo-live-meter-label {
color: var(--text-muted);
}
/* Token count, secondary to the activity word. Hidden until the model has
* produced output, so no stray separator shows during the first tool phase.
* Tabular figures keep the digits from jittering as the number climbs. */
.vo-live-meter-tokens {
color: var(--text-faint);
font-variant-numeric: tabular-nums;
}
.vo-live-meter-tokens:empty {
display: none;
}
.vo-live-meter-tokens::before {
content: "\00b7";
margin: 0 4px;
}
@media (prefers-reduced-motion: reduce) {
.vo-live-meter-icon::before { animation: none; }
}
.message-section {
margin-top: 12px;
}
.message-cta {
margin-top: 16px;
margin-bottom: 0;
font-size: 13px;
color: var(--text-muted);
}
/* Tool Cards */
.tool-message {
background: var(--background-secondary-alt);
border-left: 3px solid var(--interactive-accent);
}
.tool-card {
padding: 12px;
}
.tool-name {
font-weight: 600;
margin-bottom: 4px;
}
.tool-target {
font-size: 12px;
color: var(--text-muted);
font-family: var(--font-monospace);
}
.tool-status {
margin-top: 8px;
font-size: 11px;
font-weight: 600;
flex-shrink: 0;
}
.tool-status.approved {
color: var(--color-green);
}
/* Approval Buttons */
.approval-buttons {
display: flex;
gap: 8px;
margin-top: 8px;
}
.approve-btn {
flex: 1;
padding: 6px 12px;
border-radius: 6px;
border: none;
cursor: pointer;
font-weight: 600;
transition: all 0.2s;
background: var(--color-green);
color: white;
}
.approve-btn:hover {
opacity: 0.8;
}
.deny-btn {
flex: 1;
padding: 6px 12px;
border-radius: 6px;