@assistant-ui/react 0.4.3 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +1,18 @@
1
1
  /* src/styles/base.css */
2
- .aui-root *,
3
- .aui-root ::before,
4
- .aui-root ::after {
2
+ :where(.aui-root) *,
3
+ :where(.aui-root) ::before,
4
+ :where(.aui-root) ::after {
5
5
  box-sizing: border-box;
6
6
  border-width: 0;
7
7
  border-style: solid;
8
8
  border-color: #e5e7eb;
9
9
  }
10
- .aui-root ::before,
11
- .aui-root ::after {
10
+ :where(.aui-root) ::before,
11
+ :where(.aui-root) ::after {
12
12
  --aui-content: "";
13
13
  }
14
- .aui-root html,
15
- .aui-root :host {
14
+ :where(.aui-root) html,
15
+ :where(.aui-root) :host {
16
16
  line-height: 1.5;
17
17
  -webkit-text-size-adjust: 100%;
18
18
  -moz-tab-size: 4;
@@ -30,40 +30,40 @@
30
30
  font-variation-settings: normal;
31
31
  -webkit-tap-highlight-color: transparent;
32
32
  }
33
- .aui-root body {
33
+ :where(.aui-root) body {
34
34
  margin: 0;
35
35
  line-height: inherit;
36
36
  }
37
- .aui-root hr {
37
+ :where(.aui-root) hr {
38
38
  height: 0;
39
39
  color: inherit;
40
40
  border-top-width: 1px;
41
41
  }
42
- .aui-root abbr:where([title]) {
42
+ :where(.aui-root) abbr:where([title]) {
43
43
  -webkit-text-decoration: underline dotted;
44
44
  text-decoration: underline dotted;
45
45
  }
46
- .aui-root h1,
47
- .aui-root h2,
48
- .aui-root h3,
49
- .aui-root h4,
50
- .aui-root h5,
51
- .aui-root h6 {
46
+ :where(.aui-root) h1,
47
+ :where(.aui-root) h2,
48
+ :where(.aui-root) h3,
49
+ :where(.aui-root) h4,
50
+ :where(.aui-root) h5,
51
+ :where(.aui-root) h6 {
52
52
  font-size: inherit;
53
53
  font-weight: inherit;
54
54
  }
55
- .aui-root a {
55
+ :where(.aui-root) a {
56
56
  color: inherit;
57
57
  text-decoration: inherit;
58
58
  }
59
- .aui-root b,
60
- .aui-root strong {
59
+ :where(.aui-root) b,
60
+ :where(.aui-root) strong {
61
61
  font-weight: bolder;
62
62
  }
63
- .aui-root code,
64
- .aui-root kbd,
65
- .aui-root samp,
66
- .aui-root pre {
63
+ :where(.aui-root) code,
64
+ :where(.aui-root) kbd,
65
+ :where(.aui-root) samp,
66
+ :where(.aui-root) pre {
67
67
  font-family:
68
68
  ui-monospace,
69
69
  SFMono-Regular,
@@ -77,32 +77,32 @@
77
77
  font-variation-settings: normal;
78
78
  font-size: 1em;
79
79
  }
80
- .aui-root small {
80
+ :where(.aui-root) small {
81
81
  font-size: 80%;
82
82
  }
83
- .aui-root sub,
84
- .aui-root sup {
83
+ :where(.aui-root) sub,
84
+ :where(.aui-root) sup {
85
85
  font-size: 75%;
86
86
  line-height: 0;
87
87
  position: relative;
88
88
  vertical-align: baseline;
89
89
  }
90
- .aui-root sub {
90
+ :where(.aui-root) sub {
91
91
  bottom: -0.25em;
92
92
  }
93
- .aui-root sup {
93
+ :where(.aui-root) sup {
94
94
  top: -0.5em;
95
95
  }
96
- .aui-root table {
96
+ :where(.aui-root) table {
97
97
  text-indent: 0;
98
98
  border-color: inherit;
99
99
  border-collapse: collapse;
100
100
  }
101
- .aui-root button,
102
- .aui-root input,
103
- .aui-root optgroup,
104
- .aui-root select,
105
- .aui-root textarea {
101
+ :where(.aui-root) button,
102
+ :where(.aui-root) input,
103
+ :where(.aui-root) optgroup,
104
+ :where(.aui-root) select,
105
+ :where(.aui-root) textarea {
106
106
  font-family: inherit;
107
107
  font-feature-settings: inherit;
108
108
  font-variation-settings: inherit;
@@ -114,119 +114,119 @@
114
114
  margin: 0;
115
115
  padding: 0;
116
116
  }
117
- .aui-root button,
118
- .aui-root select {
117
+ :where(.aui-root) button,
118
+ :where(.aui-root) select {
119
119
  text-transform: none;
120
120
  }
121
- .aui-root button,
122
- .aui-root input:where([type=button]),
123
- .aui-root input:where([type=reset]),
124
- .aui-root input:where([type=submit]) {
121
+ :where(.aui-root) button,
122
+ :where(.aui-root) input:where([type=button]),
123
+ :where(.aui-root) input:where([type=reset]),
124
+ :where(.aui-root) input:where([type=submit]) {
125
125
  -webkit-appearance: button;
126
126
  background-color: transparent;
127
127
  background-image: none;
128
128
  }
129
- .aui-root :-moz-focusring {
129
+ :where(.aui-root) :-moz-focusring {
130
130
  outline: auto;
131
131
  }
132
- .aui-root :-moz-ui-invalid {
132
+ :where(.aui-root) :-moz-ui-invalid {
133
133
  box-shadow: none;
134
134
  }
135
- .aui-root progress {
135
+ :where(.aui-root) progress {
136
136
  vertical-align: baseline;
137
137
  }
138
- .aui-root ::-webkit-inner-spin-button,
139
- .aui-root ::-webkit-outer-spin-button {
138
+ :where(.aui-root) ::-webkit-inner-spin-button,
139
+ :where(.aui-root) ::-webkit-outer-spin-button {
140
140
  height: auto;
141
141
  }
142
- .aui-root [type=search] {
142
+ :where(.aui-root) [type=search] {
143
143
  -webkit-appearance: textfield;
144
144
  outline-offset: -2px;
145
145
  }
146
- .aui-root ::-webkit-search-decoration {
146
+ :where(.aui-root) ::-webkit-search-decoration {
147
147
  -webkit-appearance: none;
148
148
  }
149
- .aui-root ::-webkit-file-upload-button {
149
+ :where(.aui-root) ::-webkit-file-upload-button {
150
150
  -webkit-appearance: button;
151
151
  font: inherit;
152
152
  }
153
- .aui-root summary {
153
+ :where(.aui-root) summary {
154
154
  display: list-item;
155
155
  }
156
- .aui-root blockquote,
157
- .aui-root dl,
158
- .aui-root dd,
159
- .aui-root h1,
160
- .aui-root h2,
161
- .aui-root h3,
162
- .aui-root h4,
163
- .aui-root h5,
164
- .aui-root h6,
165
- .aui-root hr,
166
- .aui-root figure,
167
- .aui-root p,
168
- .aui-root pre {
156
+ :where(.aui-root) blockquote,
157
+ :where(.aui-root) dl,
158
+ :where(.aui-root) dd,
159
+ :where(.aui-root) h1,
160
+ :where(.aui-root) h2,
161
+ :where(.aui-root) h3,
162
+ :where(.aui-root) h4,
163
+ :where(.aui-root) h5,
164
+ :where(.aui-root) h6,
165
+ :where(.aui-root) hr,
166
+ :where(.aui-root) figure,
167
+ :where(.aui-root) p,
168
+ :where(.aui-root) pre {
169
169
  margin: 0;
170
170
  }
171
- .aui-root fieldset {
171
+ :where(.aui-root) fieldset {
172
172
  margin: 0;
173
173
  padding: 0;
174
174
  }
175
- .aui-root legend {
175
+ :where(.aui-root) legend {
176
176
  padding: 0;
177
177
  }
178
- .aui-root ol,
179
- .aui-root ul,
180
- .aui-root menu {
178
+ :where(.aui-root) ol,
179
+ :where(.aui-root) ul,
180
+ :where(.aui-root) menu {
181
181
  list-style: none;
182
182
  margin: 0;
183
183
  padding: 0;
184
184
  }
185
- .aui-root dialog {
185
+ :where(.aui-root) dialog {
186
186
  padding: 0;
187
187
  }
188
- .aui-root textarea {
188
+ :where(.aui-root) textarea {
189
189
  resize: vertical;
190
190
  }
191
- .aui-root input::-moz-placeholder,
192
- .aui-root textarea::-moz-placeholder {
191
+ :where(.aui-root) input::-moz-placeholder,
192
+ :where(.aui-root) textarea::-moz-placeholder {
193
193
  opacity: 1;
194
194
  color: #9ca3af;
195
195
  }
196
- .aui-root input::placeholder,
197
- .aui-root textarea::placeholder {
196
+ :where(.aui-root) input::placeholder,
197
+ :where(.aui-root) textarea::placeholder {
198
198
  opacity: 1;
199
199
  color: #9ca3af;
200
200
  }
201
- .aui-root button,
202
- .aui-root [role=button] {
201
+ :where(.aui-root) button,
202
+ :where(.aui-root) [role=button] {
203
203
  cursor: pointer;
204
204
  }
205
- .aui-root :disabled {
205
+ :where(.aui-root) :disabled {
206
206
  cursor: default;
207
207
  }
208
- .aui-root img,
209
- .aui-root svg,
210
- .aui-root video,
211
- .aui-root canvas,
212
- .aui-root audio,
213
- .aui-root iframe,
214
- .aui-root embed,
215
- .aui-root object {
208
+ :where(.aui-root) img,
209
+ :where(.aui-root) svg,
210
+ :where(.aui-root) video,
211
+ :where(.aui-root) canvas,
212
+ :where(.aui-root) audio,
213
+ :where(.aui-root) iframe,
214
+ :where(.aui-root) embed,
215
+ :where(.aui-root) object {
216
216
  display: block;
217
217
  vertical-align: middle;
218
218
  }
219
- .aui-root img,
220
- .aui-root video {
219
+ :where(.aui-root) img,
220
+ :where(.aui-root) video {
221
221
  max-width: 100%;
222
222
  height: auto;
223
223
  }
224
- .aui-root [hidden] {
224
+ :where(.aui-root) [hidden] {
225
225
  display: none;
226
226
  }
227
- .aui-root *,
228
- .aui-root ::before,
229
- .aui-root ::after {
227
+ :where(.aui-root) *,
228
+ :where(.aui-root) ::before,
229
+ :where(.aui-root) ::after {
230
230
  --aui-border-spacing-x: 0;
231
231
  --aui-border-spacing-y: 0;
232
232
  --aui-translate-x: 0;
@@ -267,7 +267,7 @@
267
267
  --aui-contain-paint: ;
268
268
  --aui-contain-style: ;
269
269
  }
270
- .aui-root ::backdrop {
270
+ :where(.aui-root) ::backdrop {
271
271
  --aui-border-spacing-x: 0;
272
272
  --aui-border-spacing-y: 0;
273
273
  --aui-translate-x: 0;
@@ -327,7 +327,7 @@
327
327
  background-color: hsl(var(--aui-background));
328
328
  color: hsl(var(--aui-foreground));
329
329
  }
330
- .aui-root .aui-button {
330
+ .aui-button {
331
331
  display: inline-flex;
332
332
  align-items: center;
333
333
  justify-content: center;
@@ -346,7 +346,7 @@
346
346
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
347
347
  transition-duration: 150ms;
348
348
  }
349
- .aui-root .aui-button:focus-visible {
349
+ .aui-button:focus-visible {
350
350
  outline: 2px solid transparent;
351
351
  outline-offset: 2px;
352
352
  --aui-ring-offset-shadow: var(--aui-ring-inset) 0 0 0 var(--aui-ring-offset-width) var(--aui-ring-offset-color);
@@ -357,11 +357,11 @@
357
357
  var(--aui-shadow, 0 0 #0000);
358
358
  --aui-ring-color: hsl(var(--aui-ring)) ;
359
359
  }
360
- .aui-root .aui-button:disabled {
360
+ .aui-button:disabled {
361
361
  pointer-events: none;
362
362
  opacity: 0.5;
363
363
  }
364
- .aui-root .aui-button-primary {
364
+ .aui-button-primary {
365
365
  background-color: hsl(var(--aui-primary));
366
366
  color: hsl(var(--aui-primary-foreground));
367
367
  --aui-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
@@ -371,10 +371,10 @@
371
371
  var(--aui-ring-shadow, 0 0 #0000),
372
372
  var(--aui-shadow);
373
373
  }
374
- .aui-root .aui-button-primary:hover {
374
+ .aui-button-primary:hover {
375
375
  background-color: hsl(var(--aui-primary) / 0.9);
376
376
  }
377
- .aui-root .aui-button-outline {
377
+ .aui-button-outline {
378
378
  border-width: 1px;
379
379
  border-color: hsl(var(--aui-input));
380
380
  background-color: hsl(var(--aui-background));
@@ -385,27 +385,27 @@
385
385
  var(--aui-ring-shadow, 0 0 #0000),
386
386
  var(--aui-shadow);
387
387
  }
388
- .aui-root .aui-button-outline:hover {
388
+ .aui-button-outline:hover {
389
389
  background-color: hsl(var(--aui-accent));
390
390
  color: hsl(var(--aui-accent-foreground));
391
391
  }
392
- .aui-root .aui-button-ghost:hover {
392
+ .aui-button-ghost:hover {
393
393
  background-color: hsl(var(--aui-accent));
394
394
  color: hsl(var(--aui-accent-foreground));
395
395
  }
396
- .aui-root .aui-button-medium {
396
+ .aui-button-medium {
397
397
  height: 2.25rem;
398
398
  padding-left: 1rem;
399
399
  padding-right: 1rem;
400
400
  padding-top: 0.5rem;
401
401
  padding-bottom: 0.5rem;
402
402
  }
403
- .aui-root .aui-button-icon {
403
+ .aui-button-icon {
404
404
  width: 1.5rem;
405
405
  height: 1.5rem;
406
406
  padding: 0.25rem;
407
407
  }
408
- .aui-root .aui-sr-only {
408
+ .aui-sr-only {
409
409
  position: absolute;
410
410
  width: 1px;
411
411
  height: 1px;
@@ -416,7 +416,7 @@
416
416
  white-space: nowrap;
417
417
  border-width: 0;
418
418
  }
419
- .aui-root .aui-avatar-root {
419
+ .aui-avatar-root {
420
420
  position: relative;
421
421
  display: flex;
422
422
  height: 2.5rem;
@@ -425,12 +425,12 @@
425
425
  overflow: hidden;
426
426
  border-radius: 9999px;
427
427
  }
428
- .aui-root .aui-avatar-image {
428
+ .aui-avatar-image {
429
429
  aspect-ratio: 1 / 1;
430
430
  height: 100%;
431
431
  width: 100%;
432
432
  }
433
- .aui-root .aui-avatar-fallback {
433
+ .aui-avatar-fallback {
434
434
  display: flex;
435
435
  height: 100%;
436
436
  width: 100%;
@@ -439,7 +439,7 @@
439
439
  border-radius: 9999px;
440
440
  background-color: hsl(var(--aui-muted));
441
441
  }
442
- .aui-root .aui-tooltip-content {
442
+ .aui-tooltip-content {
443
443
  z-index: 50;
444
444
  overflow: hidden;
445
445
  border-radius: calc(var(--aui-radius) - 2px);
@@ -461,7 +461,7 @@
461
461
  --aui-enter-opacity: 0;
462
462
  --aui-enter-scale: .95 ;
463
463
  }
464
- .aui-root .aui-tooltip-content[data-state=closed] {
464
+ .aui-tooltip-content[data-state=closed] {
465
465
  animation-name: aui-exit;
466
466
  animation-duration: 150ms;
467
467
  --aui-exit-opacity: initial;
@@ -472,29 +472,29 @@
472
472
  --aui-exit-opacity: 0;
473
473
  --aui-exit-scale: .95 ;
474
474
  }
475
- .aui-root .aui-tooltip-content[data-side=bottom] {
475
+ .aui-tooltip-content[data-side=bottom] {
476
476
  --aui-enter-translate-y: -0.5rem ;
477
477
  }
478
- .aui-root .aui-tooltip-content[data-side=left] {
478
+ .aui-tooltip-content[data-side=left] {
479
479
  --aui-enter-translate-x: 0.5rem ;
480
480
  }
481
- .aui-root .aui-tooltip-content[data-side=right] {
481
+ .aui-tooltip-content[data-side=right] {
482
482
  --aui-enter-translate-x: -0.5rem ;
483
483
  }
484
- .aui-root .aui-tooltip-content[data-side=top] {
484
+ .aui-tooltip-content[data-side=top] {
485
485
  --aui-enter-translate-y: 0.5rem ;
486
486
  }
487
487
 
488
488
  /* src/styles/tailwindcss/thread.css */
489
- .aui-root.aui-thread-root {
489
+ .aui-thread-root {
490
490
  box-sizing: border-box;
491
491
  height: 100%;
492
492
  background-color: hsl(var(--aui-background));
493
493
  }
494
- .aui-root.aui-thread-root > .aui-thread-viewport {
494
+ .aui-thread-root > .aui-thread-viewport {
495
495
  background-color: inherit;
496
496
  }
497
- .aui-root .aui-thread-viewport {
497
+ .aui-thread-viewport {
498
498
  display: flex;
499
499
  height: 100%;
500
500
  flex-direction: column;
@@ -506,7 +506,7 @@
506
506
  padding-right: 1rem;
507
507
  padding-top: 2rem;
508
508
  }
509
- .aui-root .aui-thread-viewport-footer {
509
+ .aui-thread-viewport-footer {
510
510
  position: sticky;
511
511
  bottom: 0px;
512
512
  margin-top: 1rem;
@@ -522,15 +522,15 @@
522
522
  background-color: inherit;
523
523
  padding-bottom: 1rem;
524
524
  }
525
- .aui-root .aui-thread-scroll-to-bottom {
525
+ .aui-thread-scroll-to-bottom {
526
526
  position: absolute;
527
527
  top: -2rem;
528
528
  border-radius: 9999px;
529
529
  }
530
- .aui-root .aui-thread-scroll-to-bottom:disabled {
530
+ .aui-thread-scroll-to-bottom:disabled {
531
531
  visibility: hidden;
532
532
  }
533
- .aui-root .aui-thread-welcome-root {
533
+ .aui-thread-welcome-root {
534
534
  display: flex;
535
535
  width: 100%;
536
536
  max-width: 42rem;
@@ -538,7 +538,7 @@
538
538
  flex-basis: 100%;
539
539
  flex-direction: column;
540
540
  }
541
- .aui-root .aui-thread-welcome-center {
541
+ .aui-thread-welcome-center {
542
542
  display: flex;
543
543
  width: 100%;
544
544
  flex-grow: 1;
@@ -546,11 +546,11 @@
546
546
  align-items: center;
547
547
  justify-content: center;
548
548
  }
549
- .aui-root .aui-thread-welcome-message {
549
+ .aui-thread-welcome-message {
550
550
  margin-top: 1rem;
551
551
  font-weight: 500;
552
552
  }
553
- .aui-root .aui-thread-welcome-suggestion-container {
553
+ .aui-thread-welcome-suggestion-container {
554
554
  margin-top: 1rem;
555
555
  display: flex;
556
556
  width: 100%;
@@ -558,7 +558,7 @@
558
558
  justify-content: center;
559
559
  gap: 1rem;
560
560
  }
561
- .aui-root .aui-thread-welcome-suggestion {
561
+ .aui-thread-welcome-suggestion {
562
562
  display: flex;
563
563
  max-width: 24rem;
564
564
  flex-grow: 1;
@@ -573,7 +573,7 @@
573
573
  padding-top: 0.75rem;
574
574
  padding-bottom: 0.75rem;
575
575
  }
576
- .aui-root .aui-thread-welcome-suggestion-text {
576
+ .aui-thread-welcome-suggestion-text {
577
577
  overflow: hidden;
578
578
  display: -webkit-box;
579
579
  -webkit-box-orient: vertical;
@@ -583,7 +583,7 @@
583
583
  line-height: 1.25rem;
584
584
  font-weight: 600;
585
585
  }
586
- .aui-root .aui-composer-root {
586
+ .aui-composer-root {
587
587
  position: relative;
588
588
  display: flex;
589
589
  width: 100%;
@@ -594,7 +594,7 @@
594
594
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
595
595
  transition-duration: 150ms;
596
596
  }
597
- .aui-root .aui-composer-root:focus-within {
597
+ .aui-composer-root:focus-within {
598
598
  --aui-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
599
599
  --aui-shadow-colored: 0 1px 2px 0 var(--aui-shadow-color);
600
600
  box-shadow:
@@ -602,7 +602,7 @@
602
602
  var(--aui-ring-shadow, 0 0 #0000),
603
603
  var(--aui-shadow);
604
604
  }
605
- .aui-root .aui-composer-input {
605
+ .aui-composer-input {
606
606
  width: 100%;
607
607
  height: 100%;
608
608
  max-height: 10rem;
@@ -615,14 +615,14 @@
615
615
  outline: 2px solid transparent;
616
616
  outline-offset: 2px;
617
617
  }
618
- .aui-root .aui-composer-input::-moz-placeholder {
618
+ .aui-composer-input::-moz-placeholder {
619
619
  color: hsl(var(--aui-muted-foreground));
620
620
  }
621
- .aui-root .aui-composer-input::placeholder {
621
+ .aui-composer-input::placeholder {
622
622
  color: hsl(var(--aui-muted-foreground));
623
623
  }
624
- .aui-root .aui-composer-send,
625
- .aui-root .aui-composer-cancel {
624
+ .aui-composer-send,
625
+ .aui-composer-cancel {
626
626
  position: absolute;
627
627
  bottom: 0px;
628
628
  right: 0px;
@@ -634,38 +634,38 @@
634
634
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
635
635
  transition-duration: 150ms;
636
636
  }
637
- .aui-root .aui-user-message-root {
637
+ .aui-user-message-root {
638
638
  display: grid;
639
639
  grid-auto-rows: auto;
640
640
  grid-template-columns: minmax(72px, 1fr) auto;
641
641
  row-gap: 0.5rem;
642
642
  }
643
- .aui-root .aui-user-message-root > * {
643
+ .aui-user-message-root > * {
644
644
  grid-column-start: 2;
645
645
  }
646
- .aui-root .aui-user-message-root {
646
+ .aui-user-message-root {
647
647
  width: 100%;
648
648
  max-width: 42rem;
649
649
  padding-top: 1rem;
650
650
  padding-bottom: 1rem;
651
651
  }
652
- .aui-root .aui-user-message-root > .aui-user-action-bar-root {
652
+ :where(.aui-user-message-root) > .aui-user-action-bar-root {
653
653
  grid-column-start: 1;
654
654
  margin-right: 0.75rem;
655
655
  margin-top: 0.625rem;
656
656
  }
657
- .aui-root .aui-user-message-root > .aui-user-message-content {
657
+ :where(.aui-user-message-root) > .aui-user-message-content {
658
658
  grid-column-start: 2;
659
659
  grid-row-start: 1;
660
660
  }
661
- .aui-root .aui-user-message-root > .aui-branch-picker-root {
661
+ :where(.aui-user-message-root) > .aui-branch-picker-root {
662
662
  grid-column: 1 / -1;
663
663
  grid-column-start: 1;
664
664
  grid-row-start: 2;
665
665
  margin-right: -0.25rem;
666
666
  justify-content: flex-end;
667
667
  }
668
- .aui-root .aui-user-message-content {
668
+ .aui-user-message-content {
669
669
  max-width: 36rem;
670
670
  overflow-wrap: break-word;
671
671
  border-radius: 1.5rem;
@@ -676,12 +676,12 @@
676
676
  padding-bottom: 0.625rem;
677
677
  color: hsl(var(--aui-foreground));
678
678
  }
679
- .aui-root .aui-user-action-bar-root {
679
+ .aui-user-action-bar-root {
680
680
  display: flex;
681
681
  flex-direction: column;
682
682
  align-items: flex-end;
683
683
  }
684
- .aui-root .aui-edit-composer-root {
684
+ .aui-edit-composer-root {
685
685
  margin-top: 1rem;
686
686
  margin-bottom: 1rem;
687
687
  display: flex;
@@ -692,7 +692,7 @@
692
692
  border-radius: 0.75rem;
693
693
  background-color: hsl(var(--aui-muted));
694
694
  }
695
- .aui-root .aui-edit-composer-input {
695
+ .aui-edit-composer-input {
696
696
  display: flex;
697
697
  height: 2rem;
698
698
  width: 100%;
@@ -704,7 +704,7 @@
704
704
  outline: 2px solid transparent;
705
705
  outline-offset: 2px;
706
706
  }
707
- .aui-root .aui-edit-composer-footer {
707
+ .aui-edit-composer-footer {
708
708
  margin-left: 0.75rem;
709
709
  margin-right: 0.75rem;
710
710
  margin-bottom: 0.75rem;
@@ -714,7 +714,7 @@
714
714
  gap: 0.5rem;
715
715
  align-self: flex-end;
716
716
  }
717
- .aui-root .aui-assistant-message-root {
717
+ .aui-assistant-message-root {
718
718
  display: grid;
719
719
  grid-template-columns: auto auto 1fr;
720
720
  grid-template-rows: auto 1fr;
@@ -724,42 +724,42 @@
724
724
  padding-top: 1rem;
725
725
  padding-bottom: 1rem;
726
726
  }
727
- .aui-root .aui-assistant-message-root > .aui-avatar-root {
727
+ :where(.aui-assistant-message-root) > .aui-avatar-root {
728
728
  grid-column-start: 1;
729
729
  grid-row: 1 / -1;
730
730
  grid-row-start: 1;
731
731
  margin-right: 1rem;
732
732
  }
733
- .aui-root .aui-assistant-message-root > .aui-branch-picker-root {
733
+ :where(.aui-assistant-message-root) > .aui-branch-picker-root {
734
734
  grid-column-start: 2;
735
735
  grid-row-start: 2;
736
736
  margin-left: -0.5rem;
737
737
  margin-right: 0.5rem;
738
738
  }
739
- .aui-root .aui-assistant-message-root > .aui-assistant-action-bar-root {
739
+ :where(.aui-assistant-message-root) > .aui-assistant-action-bar-root {
740
740
  grid-column-start: 3;
741
741
  grid-row-start: 2;
742
742
  margin-left: -0.25rem;
743
743
  }
744
- .aui-root .aui-assistant-message-root > .aui-assistant-message-content {
744
+ :where(.aui-assistant-message-root) > .aui-assistant-message-content {
745
745
  grid-column: span 2 / span 2;
746
746
  grid-column-start: 2;
747
747
  grid-row-start: 1;
748
748
  margin-top: 0.375rem;
749
749
  margin-bottom: 0.375rem;
750
750
  }
751
- .aui-root .aui-assistant-message-content {
751
+ .aui-assistant-message-content {
752
752
  max-width: 36rem;
753
753
  overflow-wrap: break-word;
754
754
  line-height: 1.75rem;
755
755
  color: hsl(var(--aui-foreground));
756
756
  }
757
- .aui-root .aui-assistant-action-bar-root {
757
+ .aui-assistant-action-bar-root {
758
758
  display: flex;
759
759
  gap: 0.25rem;
760
760
  color: hsl(var(--aui-muted-foreground));
761
761
  }
762
- .aui-root .aui-assistant-action-bar-root[data-floating] {
762
+ :where(.aui-assistant-action-bar-root)[data-floating] {
763
763
  position: absolute;
764
764
  border-radius: calc(var(--aui-radius) - 2px);
765
765
  border-width: 1px;
@@ -772,17 +772,17 @@
772
772
  var(--aui-ring-shadow, 0 0 #0000),
773
773
  var(--aui-shadow);
774
774
  }
775
- .aui-root .aui-branch-picker-root {
775
+ .aui-branch-picker-root {
776
776
  display: inline-flex;
777
777
  align-items: center;
778
778
  font-size: 0.75rem;
779
779
  line-height: 1rem;
780
780
  color: hsl(var(--aui-muted-foreground));
781
781
  }
782
- .aui-root .aui-branch-picker-state {
782
+ .aui-branch-picker-state {
783
783
  font-weight: 500;
784
784
  }
785
- .aui-root .aui-text {
785
+ .aui-text {
786
786
  white-space: pre-line;
787
787
  }
788
788
  @keyframes aui-pulse {
@@ -790,7 +790,7 @@
790
790
  opacity: .5;
791
791
  }
792
792
  }
793
- .aui-root .aui-text-in-progress::after {
793
+ .aui-text-in-progress::after {
794
794
  animation: aui-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
795
795
  font-family:
796
796
  ui-sans-serif,
@@ -803,10 +803,10 @@
803
803
  --aui-content: "\25cf";
804
804
  content: var(--aui-content);
805
805
  }
806
- .aui-root .aui-text-in-progress:where([dir=ltr], [dir=ltr] *)::after {
806
+ .aui-text-in-progress:where([dir=ltr], [dir=ltr] *)::after {
807
807
  margin-left: 0.25rem;
808
808
  }
809
- .aui-root .aui-text-in-progress:where([dir=rtl], [dir=rtl] *)::after {
809
+ .aui-text-in-progress:where([dir=rtl], [dir=rtl] *)::after {
810
810
  margin-right: 0.25rem;
811
811
  }
812
812