@rungent/react 0.0.0 → 0.7.1

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.
@@ -0,0 +1,1885 @@
1
+ /* rungent/react/styles.css — every color and size is a CSS variable; override them on .rungent-root. */
2
+
3
+ .rungent-root {
4
+ --rungent-bg: #ffffff;
5
+ --rungent-fg: #18181b;
6
+ --rungent-muted: #71717a;
7
+ --rungent-surface: #f6f6f7;
8
+ --rungent-border: #e4e4e7;
9
+ --rungent-accent: #4f46e5;
10
+ --rungent-accent-fg: #ffffff;
11
+ --rungent-accent-soft: #eef2ff;
12
+ --rungent-danger: #dc2626;
13
+ --rungent-danger-soft: #fef2f2;
14
+ --rungent-warning: #b45309;
15
+ --rungent-warning-soft: #fffbeb;
16
+ --rungent-success: #15803d;
17
+ --rungent-mark: #fef08a;
18
+ --rungent-overlay: rgb(9 9 11 / 0.4);
19
+ --rungent-shadow: 0 12px 40px rgb(0 0 0 / 0.14), 0 2px 6px rgb(0 0 0 / 0.06);
20
+ --rungent-radius: 10px;
21
+ --rungent-font:
22
+ ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei",
23
+ sans-serif;
24
+ --rungent-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
25
+ --rungent-dock-width: 420px;
26
+ color-scheme: light;
27
+ font-family: var(--rungent-font);
28
+ font-size: 14px;
29
+ line-height: 1.5;
30
+ color: var(--rungent-fg);
31
+ }
32
+
33
+ .rungent-root[data-rungent-theme="dark"] {
34
+ --rungent-bg: #18181b;
35
+ --rungent-fg: #f4f4f5;
36
+ --rungent-muted: #a1a1aa;
37
+ --rungent-surface: #232327;
38
+ --rungent-border: #34343a;
39
+ --rungent-accent: #818cf8;
40
+ --rungent-accent-fg: #111127;
41
+ --rungent-accent-soft: #25254a;
42
+ --rungent-danger: #f87171;
43
+ --rungent-danger-soft: #3a1d1d;
44
+ --rungent-warning: #fbbf24;
45
+ --rungent-warning-soft: #3a2e12;
46
+ --rungent-success: #4ade80;
47
+ --rungent-mark: #854d0e;
48
+ --rungent-overlay: rgb(0 0 0 / 0.6);
49
+ --rungent-shadow: 0 12px 40px rgb(0 0 0 / 0.5);
50
+ color-scheme: dark;
51
+ }
52
+
53
+ @media (prefers-color-scheme: dark) {
54
+ .rungent-root[data-rungent-theme="system"] {
55
+ --rungent-bg: #18181b;
56
+ --rungent-fg: #f4f4f5;
57
+ --rungent-muted: #a1a1aa;
58
+ --rungent-surface: #232327;
59
+ --rungent-border: #34343a;
60
+ --rungent-accent: #818cf8;
61
+ --rungent-accent-fg: #111127;
62
+ --rungent-accent-soft: #25254a;
63
+ --rungent-danger: #f87171;
64
+ --rungent-danger-soft: #3a1d1d;
65
+ --rungent-warning: #fbbf24;
66
+ --rungent-warning-soft: #3a2e12;
67
+ --rungent-success: #4ade80;
68
+ --rungent-mark: #854d0e;
69
+ --rungent-overlay: rgb(0 0 0 / 0.6);
70
+ --rungent-shadow: 0 12px 40px rgb(0 0 0 / 0.5);
71
+ color-scheme: dark;
72
+ }
73
+ }
74
+
75
+ .rungent-root *,
76
+ .rungent-root *::before,
77
+ .rungent-root *::after {
78
+ box-sizing: border-box;
79
+ }
80
+
81
+ .rungent-root :focus-visible {
82
+ outline: 2px solid var(--rungent-accent);
83
+ outline-offset: 2px;
84
+ }
85
+
86
+ /* Shared pieces */
87
+
88
+ .rungent-muted {
89
+ color: var(--rungent-muted);
90
+ }
91
+
92
+ .rungent-visually-hidden {
93
+ position: absolute;
94
+ width: 1px;
95
+ height: 1px;
96
+ margin: -1px;
97
+ padding: 0;
98
+ overflow: hidden;
99
+ clip-path: inset(50%);
100
+ white-space: nowrap;
101
+ border: 0;
102
+ }
103
+
104
+ .rungent-icon {
105
+ flex: none;
106
+ fill: none;
107
+ stroke: currentColor;
108
+ stroke-width: 2;
109
+ stroke-linecap: round;
110
+ stroke-linejoin: round;
111
+ }
112
+
113
+ .rungent-small {
114
+ font-size: 12px;
115
+ }
116
+
117
+ .rungent-mono {
118
+ font-family: var(--rungent-mono);
119
+ font-size: 12px;
120
+ }
121
+
122
+ .rungent-button {
123
+ display: inline-flex;
124
+ align-items: center;
125
+ justify-content: center;
126
+ gap: 6px;
127
+ min-height: 32px;
128
+ padding: 0 12px;
129
+ border: 1px solid var(--rungent-border);
130
+ border-radius: 8px;
131
+ background: var(--rungent-bg);
132
+ color: var(--rungent-fg);
133
+ font: inherit;
134
+ font-weight: 500;
135
+ cursor: pointer;
136
+ white-space: nowrap;
137
+ }
138
+
139
+ .rungent-button:hover:not(:disabled) {
140
+ background: var(--rungent-surface);
141
+ }
142
+
143
+ .rungent-button:disabled {
144
+ opacity: 0.5;
145
+ cursor: default;
146
+ }
147
+
148
+ .rungent-primary {
149
+ border-color: var(--rungent-accent);
150
+ background: var(--rungent-accent);
151
+ color: var(--rungent-accent-fg);
152
+ }
153
+
154
+ .rungent-primary:hover:not(:disabled) {
155
+ background: var(--rungent-accent);
156
+ filter: brightness(1.08);
157
+ }
158
+
159
+ .rungent-primary[data-danger] {
160
+ border-color: var(--rungent-danger);
161
+ background: var(--rungent-danger);
162
+ color: #fff;
163
+ }
164
+
165
+ .rungent-ghost {
166
+ border-color: transparent;
167
+ background: transparent;
168
+ color: var(--rungent-muted);
169
+ }
170
+
171
+ .rungent-ghost[aria-pressed="true"] {
172
+ background: var(--rungent-surface);
173
+ color: var(--rungent-fg);
174
+ }
175
+
176
+ .rungent-icon-button {
177
+ display: inline-grid;
178
+ place-items: center;
179
+ width: 32px;
180
+ height: 32px;
181
+ flex: none;
182
+ border: 0;
183
+ border-radius: 8px;
184
+ background: transparent;
185
+ color: var(--rungent-muted);
186
+ font: inherit;
187
+ font-size: 18px;
188
+ line-height: 1;
189
+ cursor: pointer;
190
+ }
191
+
192
+ /* Where a pointer hovers: on touch screens a tapped button would keep its hover look. */
193
+ @media (hover: hover) {
194
+ .rungent-icon-button:hover:not(:disabled) {
195
+ background: var(--rungent-surface);
196
+ color: var(--rungent-fg);
197
+ }
198
+ }
199
+
200
+ .rungent-icon-button:disabled {
201
+ opacity: 0.35;
202
+ cursor: default;
203
+ }
204
+
205
+ .rungent-input {
206
+ width: 100%;
207
+ min-height: 34px;
208
+ padding: 6px 10px;
209
+ border: 1px solid var(--rungent-border);
210
+ border-radius: 8px;
211
+ background: var(--rungent-bg);
212
+ color: var(--rungent-fg);
213
+ font: inherit;
214
+ }
215
+
216
+ .rungent-input::placeholder {
217
+ color: var(--rungent-muted);
218
+ }
219
+
220
+ .rungent-input[aria-invalid="true"],
221
+ .rungent-choices[aria-invalid="true"] {
222
+ border-color: var(--rungent-danger);
223
+ }
224
+
225
+ .rungent-card {
226
+ border: 1px solid var(--rungent-border);
227
+ border-radius: var(--rungent-radius);
228
+ background: var(--rungent-bg);
229
+ padding: 14px;
230
+ }
231
+
232
+ .rungent-card-eyebrow {
233
+ margin: 0 0 2px;
234
+ color: var(--rungent-muted);
235
+ font-size: 12px;
236
+ font-weight: 500;
237
+ }
238
+
239
+ .rungent-card-title {
240
+ margin: 0;
241
+ font-size: 15px;
242
+ font-weight: 600;
243
+ }
244
+
245
+ .rungent-badges {
246
+ display: flex;
247
+ flex-wrap: wrap;
248
+ gap: 6px;
249
+ margin-top: 8px;
250
+ }
251
+
252
+ .rungent-badge {
253
+ display: inline-flex;
254
+ align-items: center;
255
+ padding: 1px 8px;
256
+ border-radius: 999px;
257
+ background: var(--rungent-surface);
258
+ color: var(--rungent-muted);
259
+ font-size: 12px;
260
+ font-weight: 500;
261
+ }
262
+
263
+ .rungent-badge[data-effect="delete"],
264
+ .rungent-badge[data-risk="high"] {
265
+ background: var(--rungent-danger-soft);
266
+ color: var(--rungent-danger);
267
+ }
268
+
269
+ .rungent-badge[data-risk="medium"] {
270
+ background: var(--rungent-warning-soft);
271
+ color: var(--rungent-warning);
272
+ }
273
+
274
+ .rungent-badge[data-effect="create"],
275
+ .rungent-badge[data-effect="update"],
276
+ .rungent-recommended {
277
+ background: var(--rungent-accent-soft);
278
+ color: var(--rungent-accent);
279
+ }
280
+
281
+ .rungent-recommended {
282
+ margin-left: 6px;
283
+ }
284
+
285
+ .rungent-actions {
286
+ display: flex;
287
+ flex-wrap: wrap;
288
+ align-items: center;
289
+ justify-content: flex-end;
290
+ gap: 8px;
291
+ margin-top: 14px;
292
+ }
293
+
294
+ .rungent-actions > .rungent-small {
295
+ margin-right: auto;
296
+ }
297
+
298
+ .rungent-note {
299
+ margin: 12px 0 0;
300
+ color: var(--rungent-muted);
301
+ }
302
+
303
+ .rungent-error {
304
+ margin: 0;
305
+ padding: 8px 12px;
306
+ border-radius: 8px;
307
+ background: var(--rungent-danger-soft);
308
+ color: var(--rungent-danger);
309
+ }
310
+
311
+ .rungent-spinner {
312
+ display: inline-block;
313
+ width: 12px;
314
+ height: 12px;
315
+ flex: none;
316
+ border: 2px solid var(--rungent-border);
317
+ border-top-color: var(--rungent-accent);
318
+ border-radius: 50%;
319
+ animation: rungent-spin 0.8s linear infinite;
320
+ }
321
+
322
+ @keyframes rungent-spin {
323
+ to {
324
+ transform: rotate(360deg);
325
+ }
326
+ }
327
+
328
+ @media (prefers-reduced-motion: reduce) {
329
+ .rungent-spinner {
330
+ animation-duration: 2.4s;
331
+ }
332
+ }
333
+
334
+ /*
335
+ * Scrollbars: thin, on a transparent track, the thumb hidden until the user scrolls
336
+ * (`[data-rungent-scrolling]`, set by `watchScrollbar`) or points at the area. Works outside
337
+ * `.rungent-root` too: the thumb is the text color, faded, unless `--rungent-scroll-thumb` says.
338
+ * Chromium and Safari draw `::-webkit-scrollbar` (no arrow buttons); Firefox the standard
339
+ * properties, which would make Chromium draw its own thin bar with arrows instead.
340
+ */
341
+ .rungent-scroll::-webkit-scrollbar {
342
+ width: 8px;
343
+ height: 8px;
344
+ background: transparent;
345
+ }
346
+
347
+ .rungent-scroll::-webkit-scrollbar-track,
348
+ .rungent-scroll::-webkit-scrollbar-corner {
349
+ background: transparent;
350
+ }
351
+
352
+ .rungent-scroll::-webkit-scrollbar-thumb {
353
+ border: 2px solid transparent;
354
+ border-radius: 8px;
355
+ background: transparent;
356
+ background-clip: padding-box;
357
+ }
358
+
359
+ @media (hover: hover) {
360
+ .rungent-scroll:hover::-webkit-scrollbar-thumb {
361
+ background-color: var(
362
+ --rungent-scroll-thumb,
363
+ color-mix(in srgb, currentColor 20%, transparent)
364
+ );
365
+ }
366
+ }
367
+
368
+ .rungent-scroll[data-rungent-scrolling]::-webkit-scrollbar-thumb {
369
+ background-color: var(--rungent-scroll-thumb, color-mix(in srgb, currentColor 35%, transparent));
370
+ }
371
+
372
+ @supports not selector(::-webkit-scrollbar) {
373
+ .rungent-scroll {
374
+ scrollbar-width: thin;
375
+ scrollbar-color: transparent transparent;
376
+ }
377
+
378
+ @media (hover: hover) {
379
+ .rungent-scroll:hover {
380
+ scrollbar-color: var(
381
+ --rungent-scroll-thumb,
382
+ color-mix(in srgb, currentColor 20%, transparent)
383
+ )
384
+ transparent;
385
+ }
386
+ }
387
+
388
+ .rungent-scroll[data-rungent-scrolling] {
389
+ scrollbar-color: var(--rungent-scroll-thumb, color-mix(in srgb, currentColor 35%, transparent))
390
+ transparent;
391
+ }
392
+ }
393
+
394
+ /* Approval */
395
+
396
+ .rungent-approval[data-risk="high"],
397
+ .rungent-approval[data-effect="delete"] {
398
+ border-color: var(--rungent-danger);
399
+ }
400
+
401
+ .rungent-facts {
402
+ display: grid;
403
+ grid-template-columns: auto minmax(0, 1fr);
404
+ gap: 4px 12px;
405
+ margin: 12px 0 0;
406
+ }
407
+
408
+ .rungent-fact {
409
+ display: contents;
410
+ }
411
+
412
+ .rungent-facts dt {
413
+ color: var(--rungent-muted);
414
+ }
415
+
416
+ .rungent-facts dd {
417
+ margin: 0;
418
+ overflow-wrap: anywhere;
419
+ }
420
+
421
+ .rungent-changes {
422
+ margin: 10px 0 0;
423
+ padding-left: 18px;
424
+ list-style: disc;
425
+ }
426
+
427
+ .rungent-arguments {
428
+ margin-top: 10px;
429
+ }
430
+
431
+ .rungent-arguments summary {
432
+ color: var(--rungent-muted);
433
+ font-size: 12px;
434
+ cursor: pointer;
435
+ }
436
+
437
+ /* Form */
438
+
439
+ .rungent-question {
440
+ margin-top: 14px;
441
+ }
442
+
443
+ .rungent-label {
444
+ display: block;
445
+ margin-bottom: 4px;
446
+ font-weight: 500;
447
+ }
448
+
449
+ .rungent-required {
450
+ color: var(--rungent-danger);
451
+ }
452
+
453
+ .rungent-choices {
454
+ margin: 0;
455
+ padding: 0;
456
+ border: 0;
457
+ border-radius: 8px;
458
+ }
459
+
460
+ .rungent-choices[aria-invalid="true"] {
461
+ padding: 6px;
462
+ border: 1px solid var(--rungent-danger);
463
+ }
464
+
465
+ .rungent-choices legend {
466
+ padding: 0;
467
+ }
468
+
469
+ .rungent-choice {
470
+ display: flex;
471
+ align-items: flex-start;
472
+ gap: 8px;
473
+ padding: 4px 0;
474
+ cursor: pointer;
475
+ }
476
+
477
+ .rungent-choice input {
478
+ margin: 3px 0 0;
479
+ accent-color: var(--rungent-accent);
480
+ }
481
+
482
+ .rungent-choice-description {
483
+ display: block;
484
+ color: var(--rungent-muted);
485
+ font-size: 12px;
486
+ }
487
+
488
+ .rungent-choices .rungent-input {
489
+ margin-top: 4px;
490
+ }
491
+
492
+ .rungent-issue {
493
+ margin: 4px 0 0;
494
+ color: var(--rungent-danger);
495
+ font-size: 12px;
496
+ }
497
+
498
+ /* Thread */
499
+
500
+ .rungent-thread {
501
+ position: relative;
502
+ display: flex;
503
+ flex-direction: column;
504
+ min-height: 0;
505
+ height: 100%;
506
+ background: var(--rungent-bg);
507
+ }
508
+
509
+ .rungent-messages {
510
+ display: flex;
511
+ flex: 1;
512
+ flex-direction: column;
513
+ gap: 12px;
514
+ min-height: 0;
515
+ padding: 16px;
516
+ overflow-y: auto;
517
+ overscroll-behavior: contain;
518
+ }
519
+
520
+ .rungent-welcome {
521
+ display: flex;
522
+ flex-direction: column;
523
+ gap: 6px;
524
+ margin-top: auto;
525
+ padding: 24px 4px 8px;
526
+ }
527
+
528
+ .rungent-welcome p {
529
+ margin: 0;
530
+ }
531
+
532
+ .rungent-welcome-mark {
533
+ display: grid;
534
+ place-items: center;
535
+ width: 32px;
536
+ height: 32px;
537
+ border-radius: 10px;
538
+ background: var(--rungent-accent-soft);
539
+ color: var(--rungent-accent);
540
+ font-size: 16px;
541
+ }
542
+
543
+ .rungent-welcome-title {
544
+ margin: 6px 0 0;
545
+ font-size: 17px;
546
+ font-weight: 600;
547
+ }
548
+
549
+ .rungent-suggestions {
550
+ display: grid;
551
+ gap: 8px;
552
+ margin: 12px 0 0;
553
+ padding: 0;
554
+ list-style: none;
555
+ }
556
+
557
+ .rungent-suggestion {
558
+ width: 100%;
559
+ padding: 10px 12px;
560
+ border: 1px solid var(--rungent-border);
561
+ border-radius: var(--rungent-radius);
562
+ background: var(--rungent-bg);
563
+ color: var(--rungent-fg);
564
+ font: inherit;
565
+ text-align: left;
566
+ cursor: pointer;
567
+ }
568
+
569
+ .rungent-suggestion:hover {
570
+ border-color: var(--rungent-accent);
571
+ background: var(--rungent-accent-soft);
572
+ }
573
+
574
+ .rungent-composer-wrap {
575
+ position: relative;
576
+ }
577
+
578
+ .rungent-jump {
579
+ position: absolute;
580
+ left: 50%;
581
+ bottom: calc(100% + 8px);
582
+ transform: translateX(-50%);
583
+ padding: 4px 12px;
584
+ border: 1px solid var(--rungent-border);
585
+ border-radius: 999px;
586
+ background: var(--rungent-bg);
587
+ box-shadow: var(--rungent-shadow);
588
+ color: var(--rungent-fg);
589
+ font: inherit;
590
+ font-size: 12px;
591
+ cursor: pointer;
592
+ }
593
+
594
+ .rungent-message {
595
+ max-width: 100%;
596
+ overflow-wrap: anywhere;
597
+ }
598
+
599
+ .rungent-user {
600
+ align-self: flex-end;
601
+ max-width: 85%;
602
+ padding: 8px 12px;
603
+ border-radius: 14px 14px 4px 14px;
604
+ background: var(--rungent-accent);
605
+ color: var(--rungent-accent-fg);
606
+ white-space: pre-wrap;
607
+ }
608
+
609
+ .rungent-user-turn {
610
+ display: flex;
611
+ flex-direction: column;
612
+ align-items: flex-end;
613
+ gap: 6px;
614
+ align-self: flex-end;
615
+ max-width: 85%;
616
+ }
617
+
618
+ .rungent-user-turn .rungent-user {
619
+ max-width: 100%;
620
+ }
621
+
622
+ .rungent-feedback {
623
+ margin-top: 4px;
624
+ }
625
+
626
+ .rungent-feedback-buttons {
627
+ display: flex;
628
+ align-items: center;
629
+ gap: 2px;
630
+ margin-left: -6px;
631
+ }
632
+
633
+ .rungent-feedback-buttons > .rungent-small {
634
+ margin-left: 6px;
635
+ }
636
+
637
+ .rungent-feedback-button {
638
+ width: 28px;
639
+ height: 28px;
640
+ }
641
+
642
+ .rungent-feedback-button[aria-pressed="true"] {
643
+ background: var(--rungent-accent-soft);
644
+ color: var(--rungent-accent);
645
+ }
646
+
647
+ .rungent-feedback-form {
648
+ display: flex;
649
+ flex-wrap: wrap;
650
+ gap: 6px;
651
+ margin-top: 6px;
652
+ }
653
+
654
+ .rungent-feedback-form .rungent-input {
655
+ flex: 1 1 200px;
656
+ width: auto;
657
+ }
658
+
659
+ /* Attachments */
660
+
661
+ .rungent-attachments {
662
+ display: flex;
663
+ flex-wrap: wrap;
664
+ gap: 8px;
665
+ margin: 0 0 8px;
666
+ padding: 0;
667
+ list-style: none;
668
+ }
669
+
670
+ .rungent-attachments.rungent-sent {
671
+ justify-content: flex-end;
672
+ margin: 0;
673
+ }
674
+
675
+ .rungent-attachment {
676
+ position: relative;
677
+ display: flex;
678
+ align-items: center;
679
+ border: 1px solid var(--rungent-border);
680
+ border-radius: 8px;
681
+ background: var(--rungent-surface);
682
+ color: var(--rungent-fg);
683
+ text-decoration: none;
684
+ }
685
+
686
+ .rungent-attachment[data-status="failed"] {
687
+ border-color: var(--rungent-danger);
688
+ }
689
+
690
+ .rungent-thumb {
691
+ justify-content: center;
692
+ width: 56px;
693
+ height: 56px;
694
+ overflow: hidden;
695
+ }
696
+
697
+ .rungent-thumb-img {
698
+ display: block;
699
+ width: 100%;
700
+ height: 100%;
701
+ object-fit: cover;
702
+ }
703
+
704
+ .rungent-sent .rungent-thumb {
705
+ width: auto;
706
+ max-width: 200px;
707
+ height: 120px;
708
+ }
709
+
710
+ .rungent-sent .rungent-thumb-img {
711
+ width: auto;
712
+ max-width: 200px;
713
+ }
714
+
715
+ .rungent-chip {
716
+ gap: 6px;
717
+ min-height: 36px;
718
+ max-width: 240px;
719
+ padding: 0 4px 0 10px;
720
+ }
721
+
722
+ .rungent-sent .rungent-chip {
723
+ padding-right: 12px;
724
+ }
725
+
726
+ .rungent-chip > .rungent-icon {
727
+ color: var(--rungent-muted);
728
+ }
729
+
730
+ .rungent-attachment-name {
731
+ min-width: 0;
732
+ overflow: hidden;
733
+ font-size: 13px;
734
+ text-overflow: ellipsis;
735
+ white-space: nowrap;
736
+ }
737
+
738
+ .rungent-attachment-remove {
739
+ display: grid;
740
+ place-items: center;
741
+ width: 22px;
742
+ height: 22px;
743
+ flex: none;
744
+ padding: 0;
745
+ border: 0;
746
+ border-radius: 50%;
747
+ background: transparent;
748
+ color: var(--rungent-muted);
749
+ font: inherit;
750
+ font-size: 16px;
751
+ line-height: 1;
752
+ cursor: pointer;
753
+ }
754
+
755
+ .rungent-attachment-remove:hover {
756
+ background: var(--rungent-border);
757
+ color: var(--rungent-fg);
758
+ }
759
+
760
+ .rungent-thumb .rungent-attachment-remove {
761
+ position: absolute;
762
+ top: 3px;
763
+ right: 3px;
764
+ width: 20px;
765
+ height: 20px;
766
+ background: rgb(0 0 0 / 0.6);
767
+ color: #ffffff;
768
+ font-size: 14px;
769
+ }
770
+
771
+ .rungent-thumb .rungent-attachment-remove:hover {
772
+ background: rgb(0 0 0 / 0.8);
773
+ color: #ffffff;
774
+ }
775
+
776
+ .rungent-upload-error {
777
+ margin-bottom: 8px;
778
+ padding: 4px 10px;
779
+ }
780
+
781
+ .rungent-attach {
782
+ cursor: pointer;
783
+ }
784
+
785
+ .rungent-attach:focus-within {
786
+ outline: 2px solid var(--rungent-accent);
787
+ outline-offset: 2px;
788
+ }
789
+
790
+ .rungent-drop {
791
+ position: absolute;
792
+ inset: 8px;
793
+ z-index: 1;
794
+ display: grid;
795
+ place-items: center;
796
+ border: 2px dashed var(--rungent-accent);
797
+ border-radius: var(--rungent-radius);
798
+ background: color-mix(in srgb, var(--rungent-accent-soft) 85%, transparent);
799
+ color: var(--rungent-accent);
800
+ font-weight: 600;
801
+ pointer-events: none;
802
+ }
803
+
804
+ /* Trace: a run's steps */
805
+
806
+ .rungent-trace {
807
+ color: var(--rungent-muted);
808
+ font-size: 13px;
809
+ }
810
+
811
+ .rungent-trace-head,
812
+ .rungent-step-row {
813
+ display: flex;
814
+ align-items: center;
815
+ gap: 8px;
816
+ width: calc(100% + 12px);
817
+ min-height: 28px;
818
+ margin: 0 -6px;
819
+ padding: 3px 6px;
820
+ border: 0;
821
+ border-radius: 6px;
822
+ background: none;
823
+ color: inherit;
824
+ font: inherit;
825
+ text-align: left;
826
+ }
827
+
828
+ button.rungent-trace-head,
829
+ button.rungent-step-row {
830
+ cursor: pointer;
831
+ }
832
+
833
+ @media (hover: hover) {
834
+ button.rungent-trace-head:hover:not(:disabled),
835
+ button.rungent-step-row:hover {
836
+ background: var(--rungent-surface);
837
+ color: var(--rungent-fg);
838
+ }
839
+ }
840
+
841
+ .rungent-trace-head:disabled {
842
+ cursor: default;
843
+ }
844
+
845
+ .rungent-trace-title {
846
+ min-width: 0;
847
+ overflow: hidden;
848
+ text-overflow: ellipsis;
849
+ white-space: nowrap;
850
+ }
851
+
852
+ .rungent-trace[data-live] .rungent-trace-title {
853
+ color: var(--rungent-fg);
854
+ }
855
+
856
+ .rungent-trace-head > .rungent-icon,
857
+ .rungent-step-row > .rungent-icon {
858
+ margin-left: auto;
859
+ color: var(--rungent-muted);
860
+ transition: transform 0.15s;
861
+ }
862
+
863
+ .rungent-step-time + .rungent-icon {
864
+ margin-left: 0;
865
+ }
866
+
867
+ .rungent-trace-head[aria-expanded="true"] > .rungent-icon,
868
+ .rungent-step-row[aria-expanded="true"] > .rungent-icon {
869
+ transform: rotate(90deg);
870
+ }
871
+
872
+ .rungent-step-time {
873
+ flex: none;
874
+ margin-left: auto;
875
+ font-size: 12px;
876
+ font-variant-numeric: tabular-nums;
877
+ }
878
+
879
+ .rungent-steps {
880
+ margin: 2px 0 0 3px;
881
+ padding: 0 0 0 13px;
882
+ border-left: 1px solid var(--rungent-border);
883
+ list-style: none;
884
+ }
885
+
886
+ .rungent-step {
887
+ padding: 0;
888
+ }
889
+
890
+ .rungent-step-mark {
891
+ flex: none;
892
+ }
893
+
894
+ .rungent-status {
895
+ width: 8px;
896
+ height: 8px;
897
+ margin: 2px;
898
+ border-radius: 50%;
899
+ background: var(--rungent-success);
900
+ }
901
+
902
+ .rungent-status[data-status="failed"] {
903
+ background: var(--rungent-warning);
904
+ }
905
+
906
+ .rungent-status[data-status="waiting"] {
907
+ background: var(--rungent-accent);
908
+ }
909
+
910
+ .rungent-status[data-status="note"] {
911
+ background: var(--rungent-border);
912
+ }
913
+
914
+ .rungent-step-text {
915
+ display: flex;
916
+ flex-wrap: wrap;
917
+ align-items: baseline;
918
+ column-gap: 6px;
919
+ min-width: 0;
920
+ }
921
+
922
+ .rungent-step-label {
923
+ min-width: 0;
924
+ overflow-wrap: anywhere;
925
+ }
926
+
927
+ .rungent-step[data-live] .rungent-step-label {
928
+ color: var(--rungent-fg);
929
+ }
930
+
931
+ .rungent-step-fact {
932
+ font-size: 12px;
933
+ overflow-wrap: anywhere;
934
+ }
935
+
936
+ .rungent-step-fact::before {
937
+ content: "·";
938
+ margin-right: 6px;
939
+ }
940
+
941
+ .rungent-step-error {
942
+ margin: 0 0 4px 22px;
943
+ color: var(--rungent-warning);
944
+ font-size: 12px;
945
+ overflow-wrap: anywhere;
946
+ }
947
+
948
+ .rungent-step-body {
949
+ margin: 2px 0 6px 22px;
950
+ }
951
+
952
+ .rungent-step-hits {
953
+ margin: 0;
954
+ padding: 0 0 0 18px;
955
+ list-style: decimal;
956
+ font-size: 12px;
957
+ }
958
+
959
+ .rungent-step-hits li {
960
+ display: list-item;
961
+ padding: 1px 0;
962
+ }
963
+
964
+ .rungent-step-hits a {
965
+ color: var(--rungent-accent);
966
+ text-decoration: none;
967
+ }
968
+
969
+ .rungent-step-hits a:hover {
970
+ text-decoration: underline;
971
+ }
972
+
973
+ .rungent-step-reasoning {
974
+ max-height: calc(1.55em * 8);
975
+ padding: 6px 10px;
976
+ border-radius: 8px;
977
+ background: var(--rungent-surface);
978
+ font-size: 12.5px;
979
+ line-height: 1.55;
980
+ white-space: pre-wrap;
981
+ overflow-wrap: anywhere;
982
+ overflow-y: auto;
983
+ overscroll-behavior: contain;
984
+ }
985
+
986
+ .rungent-step-details {
987
+ margin-top: 4px;
988
+ font-size: 12px;
989
+ }
990
+
991
+ .rungent-step-details summary {
992
+ width: fit-content;
993
+ cursor: pointer;
994
+ }
995
+
996
+ .rungent-step-json-label {
997
+ margin: 6px 0 2px;
998
+ }
999
+
1000
+ .rungent-step-json {
1001
+ max-height: 240px;
1002
+ margin: 0;
1003
+ padding: 8px 10px;
1004
+ border-radius: 8px;
1005
+ background: var(--rungent-surface);
1006
+ color: var(--rungent-fg);
1007
+ font-family: var(--rungent-mono);
1008
+ font-size: 11.5px;
1009
+ line-height: 1.5;
1010
+ overflow: auto;
1011
+ }
1012
+
1013
+ .rungent-task {
1014
+ display: flex;
1015
+ align-items: center;
1016
+ gap: 10px;
1017
+ }
1018
+
1019
+ .rungent-task > span:nth-child(2) {
1020
+ flex: 1;
1021
+ }
1022
+
1023
+ /* Composer: one card, the text over a row of controls */
1024
+
1025
+ .rungent-composer {
1026
+ padding: 4px 12px 12px;
1027
+ background: var(--rungent-bg);
1028
+ }
1029
+
1030
+ .rungent-composer-box {
1031
+ display: flex;
1032
+ flex-direction: column;
1033
+ border: 1px solid var(--rungent-border);
1034
+ border-radius: 14px;
1035
+ background: var(--rungent-bg);
1036
+ box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
1037
+ }
1038
+
1039
+ .rungent-composer-box:focus-within {
1040
+ border-color: color-mix(in srgb, var(--rungent-accent) 55%, var(--rungent-border));
1041
+ }
1042
+
1043
+ .rungent-composer-box > .rungent-attachments {
1044
+ margin: 0;
1045
+ padding: 10px 10px 0;
1046
+ }
1047
+
1048
+ .rungent-composer-box > .rungent-upload-error {
1049
+ margin: 8px 10px 0;
1050
+ }
1051
+
1052
+ .rungent-composer-input {
1053
+ display: block;
1054
+ width: 100%;
1055
+ min-height: 0;
1056
+ margin: 0;
1057
+ padding: 10px 14px 4px;
1058
+ border: 0;
1059
+ border-radius: 14px 14px 0 0;
1060
+ background: transparent;
1061
+ color: var(--rungent-fg);
1062
+ font: inherit;
1063
+ line-height: 1.5;
1064
+ overflow-y: hidden;
1065
+ resize: none;
1066
+ }
1067
+
1068
+ .rungent-composer-input::placeholder {
1069
+ color: var(--rungent-muted);
1070
+ }
1071
+
1072
+ /* The card shows focus (focus-within above). Host form styles (`textarea:focus { border; box-shadow }`)
1073
+ must not draw a second ring around the text area alone. */
1074
+ .rungent-root .rungent-composer-input,
1075
+ .rungent-root .rungent-composer-input:focus,
1076
+ .rungent-root .rungent-composer-input:focus-visible {
1077
+ border: 0;
1078
+ outline: none;
1079
+ box-shadow: none;
1080
+ }
1081
+
1082
+ .rungent-composer-bar {
1083
+ display: flex;
1084
+ align-items: center;
1085
+ gap: 2px;
1086
+ min-height: 40px;
1087
+ padding: 4px 6px 6px 8px;
1088
+ }
1089
+
1090
+ .rungent-composer-bar .rungent-icon-button {
1091
+ width: 30px;
1092
+ height: 30px;
1093
+ }
1094
+
1095
+ .rungent-composer-spacer {
1096
+ flex: 1;
1097
+ }
1098
+
1099
+ /* The thinking switch: as quiet as the other controls while off, the accent while on. */
1100
+ .rungent-think {
1101
+ display: inline-flex;
1102
+ align-items: center;
1103
+ gap: 4px;
1104
+ height: 28px;
1105
+ flex: none;
1106
+ padding: 0 9px 0 7px;
1107
+ border: 1px solid transparent;
1108
+ border-radius: 999px;
1109
+ background: transparent;
1110
+ color: var(--rungent-muted);
1111
+ font: inherit;
1112
+ font-size: 12px;
1113
+ line-height: 1;
1114
+ cursor: pointer;
1115
+ }
1116
+
1117
+ @media (hover: hover) {
1118
+ .rungent-think:hover {
1119
+ background: var(--rungent-surface);
1120
+ color: var(--rungent-fg);
1121
+ }
1122
+ }
1123
+
1124
+ .rungent-think[aria-pressed="true"] {
1125
+ border-color: color-mix(in srgb, var(--rungent-accent) 35%, transparent);
1126
+ background: var(--rungent-accent-soft);
1127
+ color: var(--rungent-accent);
1128
+ }
1129
+
1130
+ .rungent-send {
1131
+ display: grid;
1132
+ place-items: center;
1133
+ width: 30px;
1134
+ height: 30px;
1135
+ flex: none;
1136
+ padding: 0;
1137
+ border: 0;
1138
+ border-radius: 50%;
1139
+ background: var(--rungent-accent);
1140
+ color: var(--rungent-accent-fg);
1141
+ cursor: pointer;
1142
+ }
1143
+
1144
+ .rungent-send:disabled {
1145
+ background: var(--rungent-surface);
1146
+ color: var(--rungent-muted);
1147
+ cursor: default;
1148
+ }
1149
+
1150
+ .rungent-send[data-stop] {
1151
+ background: var(--rungent-fg);
1152
+ color: var(--rungent-bg);
1153
+ }
1154
+
1155
+ .rungent-ring-wrap {
1156
+ position: relative;
1157
+ display: inline-flex;
1158
+ }
1159
+
1160
+ .rungent-ring {
1161
+ display: grid;
1162
+ place-items: center;
1163
+ width: 30px;
1164
+ height: 30px;
1165
+ padding: 0;
1166
+ border: 0;
1167
+ border-radius: 8px;
1168
+ background: transparent;
1169
+ cursor: default;
1170
+ }
1171
+
1172
+ .rungent-ring:hover {
1173
+ background: var(--rungent-surface);
1174
+ }
1175
+
1176
+ .rungent-ring svg {
1177
+ transform: rotate(-90deg);
1178
+ }
1179
+
1180
+ .rungent-ring circle {
1181
+ fill: none;
1182
+ stroke-width: 2.5;
1183
+ }
1184
+
1185
+ .rungent-ring-track {
1186
+ stroke: var(--rungent-border);
1187
+ }
1188
+
1189
+ .rungent-ring-value {
1190
+ stroke: var(--rungent-success);
1191
+ stroke-linecap: round;
1192
+ transition: stroke-dashoffset 300ms ease;
1193
+ }
1194
+
1195
+ .rungent-ring[data-level="medium"] .rungent-ring-value {
1196
+ stroke: #f59e0b;
1197
+ }
1198
+
1199
+ .rungent-ring[data-level="high"] .rungent-ring-value {
1200
+ stroke: #ef4444;
1201
+ }
1202
+
1203
+ /* Left-aligned with the ring, which sits at the composer's left. */
1204
+ .rungent-ring-tip {
1205
+ position: absolute;
1206
+ left: 0;
1207
+ bottom: calc(100% + 8px);
1208
+ z-index: 1;
1209
+ display: flex;
1210
+ flex-direction: column;
1211
+ gap: 2px;
1212
+ width: max-content;
1213
+ max-width: 240px;
1214
+ padding: 8px 10px;
1215
+ border: 1px solid var(--rungent-border);
1216
+ border-radius: 8px;
1217
+ background: var(--rungent-bg);
1218
+ box-shadow: var(--rungent-shadow);
1219
+ font-size: 12px;
1220
+ }
1221
+
1222
+ @media (prefers-reduced-motion: reduce) {
1223
+ .rungent-ring-value,
1224
+ .rungent-trace-head > .rungent-icon,
1225
+ .rungent-step-row > .rungent-icon {
1226
+ transition: none;
1227
+ }
1228
+ }
1229
+
1230
+ /* Markdown */
1231
+
1232
+ .rungent-markdown[data-streaming] > :last-child:is(p, h1, h2, h3, h4, h5, h6, blockquote)::after,
1233
+ .rungent-markdown[data-streaming] > :last-child:is(ul, ol) > li:last-child::after {
1234
+ content: "";
1235
+ display: inline-block;
1236
+ width: 2px;
1237
+ height: 1em;
1238
+ margin-left: 2px;
1239
+ vertical-align: text-bottom;
1240
+ background: currentColor;
1241
+ animation: rungent-caret 1s steps(1, end) infinite;
1242
+ }
1243
+
1244
+ @keyframes rungent-caret {
1245
+ 50% {
1246
+ opacity: 0;
1247
+ }
1248
+ }
1249
+
1250
+ .rungent-markdown > :first-child {
1251
+ margin-top: 0;
1252
+ }
1253
+
1254
+ .rungent-markdown > :last-child {
1255
+ margin-bottom: 0;
1256
+ }
1257
+
1258
+ .rungent-markdown p,
1259
+ .rungent-markdown ul,
1260
+ .rungent-markdown ol,
1261
+ .rungent-markdown pre,
1262
+ .rungent-markdown table,
1263
+ .rungent-markdown blockquote {
1264
+ margin: 0 0 10px;
1265
+ }
1266
+
1267
+ .rungent-markdown h1,
1268
+ .rungent-markdown h2,
1269
+ .rungent-markdown h3,
1270
+ .rungent-markdown h4 {
1271
+ margin: 18px 0 8px;
1272
+ line-height: 1.3;
1273
+ }
1274
+
1275
+ .rungent-markdown h1 {
1276
+ font-size: 22px;
1277
+ }
1278
+
1279
+ .rungent-markdown h2 {
1280
+ font-size: 18px;
1281
+ }
1282
+
1283
+ .rungent-markdown h3 {
1284
+ font-size: 15px;
1285
+ }
1286
+
1287
+ .rungent-markdown h1,
1288
+ .rungent-markdown h2,
1289
+ .rungent-markdown h3,
1290
+ .rungent-markdown h4,
1291
+ .rungent-markdown h5,
1292
+ .rungent-markdown h6 {
1293
+ font-weight: 600;
1294
+ }
1295
+
1296
+ .rungent-markdown h4,
1297
+ .rungent-markdown h5,
1298
+ .rungent-markdown h6 {
1299
+ font-size: 14px;
1300
+ }
1301
+
1302
+ .rungent-markdown ul,
1303
+ .rungent-markdown ol {
1304
+ padding-left: 22px;
1305
+ }
1306
+
1307
+ .rungent-markdown ul {
1308
+ list-style: disc;
1309
+ }
1310
+
1311
+ .rungent-markdown ol {
1312
+ list-style: decimal;
1313
+ }
1314
+
1315
+ .rungent-markdown li {
1316
+ display: list-item;
1317
+ }
1318
+
1319
+ .rungent-markdown li + li,
1320
+ .rungent-markdown li > ul,
1321
+ .rungent-markdown li > ol {
1322
+ margin-top: 2px;
1323
+ }
1324
+
1325
+ .rungent-markdown li > ul,
1326
+ .rungent-markdown li > ol {
1327
+ margin-bottom: 0;
1328
+ }
1329
+
1330
+ .rungent-markdown strong {
1331
+ font-weight: 600;
1332
+ }
1333
+
1334
+ .rungent-markdown em {
1335
+ font-style: italic;
1336
+ }
1337
+
1338
+ .rungent-markdown hr {
1339
+ height: 0;
1340
+ margin: 14px 0;
1341
+ border: 0;
1342
+ border-top: 1px solid var(--rungent-border);
1343
+ }
1344
+
1345
+ .rungent-markdown a {
1346
+ color: var(--rungent-accent);
1347
+ text-decoration: underline;
1348
+ text-underline-offset: 2px;
1349
+ }
1350
+
1351
+ .rungent-markdown code {
1352
+ padding: 1px 4px;
1353
+ border-radius: 4px;
1354
+ background: var(--rungent-surface);
1355
+ font-family: var(--rungent-mono);
1356
+ font-size: 0.92em;
1357
+ }
1358
+
1359
+ .rungent-markdown pre {
1360
+ font-family: var(--rungent-mono);
1361
+ font-size: 12px;
1362
+ line-height: 1.5;
1363
+ padding: 10px 12px;
1364
+ border-radius: 8px;
1365
+ background: var(--rungent-surface);
1366
+ overflow-x: auto;
1367
+ }
1368
+
1369
+ .rungent-markdown pre code {
1370
+ padding: 0;
1371
+ background: none;
1372
+ }
1373
+
1374
+ .rungent-markdown blockquote {
1375
+ margin-left: 0;
1376
+ margin-right: 0;
1377
+ padding-left: 12px;
1378
+ border-left: 3px solid var(--rungent-border);
1379
+ color: var(--rungent-muted);
1380
+ }
1381
+
1382
+ .rungent-markdown table {
1383
+ display: block;
1384
+ max-width: 100%;
1385
+ border-collapse: collapse;
1386
+ overflow-x: auto;
1387
+ }
1388
+
1389
+ .rungent-markdown th,
1390
+ .rungent-markdown td {
1391
+ padding: 4px 10px;
1392
+ border: 1px solid var(--rungent-border);
1393
+ text-align: left;
1394
+ vertical-align: top;
1395
+ }
1396
+
1397
+ .rungent-markdown th {
1398
+ font-weight: 600;
1399
+ }
1400
+
1401
+ .rungent-markdown img {
1402
+ display: inline-block;
1403
+ max-width: 100%;
1404
+ height: auto;
1405
+ }
1406
+
1407
+ .rungent-markdown .rungent-cite {
1408
+ display: inline-grid;
1409
+ place-items: center;
1410
+ min-width: 18px;
1411
+ height: 18px;
1412
+ margin: 0 1px;
1413
+ padding: 0 4px;
1414
+ border-radius: 9px;
1415
+ background: var(--rungent-accent-soft);
1416
+ color: var(--rungent-accent);
1417
+ font-size: 11px;
1418
+ font-weight: 600;
1419
+ line-height: 1;
1420
+ text-decoration: none;
1421
+ vertical-align: 1px;
1422
+ }
1423
+
1424
+ /* Dock */
1425
+
1426
+ .rungent-launcher {
1427
+ position: fixed;
1428
+ right: 20px;
1429
+ bottom: 20px;
1430
+ z-index: 2147483000;
1431
+ display: grid;
1432
+ place-items: center;
1433
+ width: 48px;
1434
+ height: 48px;
1435
+ border: 0;
1436
+ border-radius: 50%;
1437
+ background: var(--rungent-accent);
1438
+ box-shadow: var(--rungent-shadow);
1439
+ color: var(--rungent-accent-fg);
1440
+ font-size: 20px;
1441
+ cursor: pointer;
1442
+ }
1443
+
1444
+ /* The shell lays the page and the panel side by side; the panel takes its room from the page. */
1445
+ .rungent-shell {
1446
+ display: flex;
1447
+ width: 100%;
1448
+ min-width: 0;
1449
+ min-height: 0;
1450
+ }
1451
+
1452
+ .rungent-shell-page {
1453
+ flex: 1 1 auto;
1454
+ min-width: 0;
1455
+ }
1456
+
1457
+ .rungent-shell[data-layout="expanded"] > .rungent-shell-page {
1458
+ display: none;
1459
+ }
1460
+
1461
+ /* Sticky, so it stays in view while the page scrolls the window; `--rungent-dock-top` clears a fixed header. */
1462
+ .rungent-dock {
1463
+ position: sticky;
1464
+ top: var(--rungent-dock-top, 0px);
1465
+ flex: 0 0 var(--rungent-dock-width);
1466
+ align-self: flex-start;
1467
+ display: flex;
1468
+ flex-direction: column;
1469
+ width: var(--rungent-dock-width);
1470
+ height: calc(100dvh - var(--rungent-dock-top, 0px));
1471
+ max-height: 100%;
1472
+ border-left: 1px solid var(--rungent-border);
1473
+ background: var(--rungent-bg);
1474
+ }
1475
+
1476
+ /* Only an opening the user asked for animates; a dock mounted open just shows. */
1477
+ .rungent-dock[data-entering] {
1478
+ animation: rungent-dock-open 240ms cubic-bezier(0.4, 0, 0.2, 1);
1479
+ }
1480
+
1481
+ .rungent-shell[data-layout="expanded"] > .rungent-dock {
1482
+ flex: 1 1 auto;
1483
+ width: auto;
1484
+ border-left: 0;
1485
+ }
1486
+
1487
+ /* Unwrapped: the panel is fixed at the window's right edge; expanded, it fills the window. */
1488
+ .rungent-shell[data-fixed] > .rungent-dock {
1489
+ position: fixed;
1490
+ top: var(--rungent-dock-top, 0px);
1491
+ right: 0;
1492
+ z-index: 2147483000;
1493
+ height: calc(100dvh - var(--rungent-dock-top, 0px));
1494
+ max-height: none;
1495
+ }
1496
+
1497
+ .rungent-shell[data-fixed][data-layout="expanded"] > .rungent-dock {
1498
+ left: 0;
1499
+ width: auto;
1500
+ }
1501
+
1502
+ @keyframes rungent-dock-open {
1503
+ from {
1504
+ flex-basis: 0;
1505
+ width: 0;
1506
+ opacity: 0.4;
1507
+ }
1508
+ }
1509
+
1510
+ .rungent-resize {
1511
+ position: absolute;
1512
+ top: 0;
1513
+ bottom: 0;
1514
+ left: -3px;
1515
+ z-index: 1;
1516
+ width: 6px;
1517
+ cursor: ew-resize;
1518
+ touch-action: none;
1519
+ }
1520
+
1521
+ .rungent-resize:hover,
1522
+ .rungent-resize:focus-visible {
1523
+ outline: none;
1524
+ background:
1525
+ linear-gradient(var(--rungent-accent), var(--rungent-accent)) center / 2px 100% no-repeat;
1526
+ }
1527
+
1528
+ .rungent-dock-header {
1529
+ display: flex;
1530
+ align-items: center;
1531
+ gap: 4px;
1532
+ min-height: 52px;
1533
+ padding: 8px 8px 8px 16px;
1534
+ border-bottom: 1px solid var(--rungent-border);
1535
+ }
1536
+
1537
+ .rungent-dock-title {
1538
+ flex: 1;
1539
+ margin: 0;
1540
+ font-size: 15px;
1541
+ font-weight: 600;
1542
+ }
1543
+
1544
+ .rungent-dock .rungent-thread {
1545
+ flex: 1;
1546
+ min-width: 0;
1547
+ }
1548
+
1549
+ .rungent-history {
1550
+ flex: 1;
1551
+ padding: 8px;
1552
+ overflow-y: auto;
1553
+ }
1554
+
1555
+ .rungent-history > p {
1556
+ padding: 8px;
1557
+ }
1558
+
1559
+ .rungent-history-list {
1560
+ margin: 0;
1561
+ padding: 0;
1562
+ list-style: none;
1563
+ }
1564
+
1565
+ .rungent-history-row {
1566
+ display: flex;
1567
+ align-items: center;
1568
+ border-radius: 8px;
1569
+ }
1570
+
1571
+ .rungent-history-row:hover {
1572
+ background: var(--rungent-surface);
1573
+ }
1574
+
1575
+ /* Revealed on hover where there is a pointer that hovers; always shown on touch screens. */
1576
+ @media (hover: hover) {
1577
+ .rungent-history-row .rungent-icon-button {
1578
+ visibility: hidden;
1579
+ }
1580
+
1581
+ .rungent-history-row:hover .rungent-icon-button,
1582
+ .rungent-history-row .rungent-icon-button:focus-visible {
1583
+ visibility: visible;
1584
+ }
1585
+ }
1586
+
1587
+ .rungent-history-item {
1588
+ display: flex;
1589
+ flex: 1;
1590
+ align-items: baseline;
1591
+ gap: 8px;
1592
+ min-width: 0;
1593
+ padding: 8px;
1594
+ border: 0;
1595
+ background: none;
1596
+ color: var(--rungent-fg);
1597
+ font: inherit;
1598
+ text-align: left;
1599
+ cursor: pointer;
1600
+ }
1601
+
1602
+ .rungent-history-item[aria-current="true"] {
1603
+ font-weight: 600;
1604
+ }
1605
+
1606
+ .rungent-history-title {
1607
+ flex: 1;
1608
+ overflow: hidden;
1609
+ text-overflow: ellipsis;
1610
+ white-space: nowrap;
1611
+ }
1612
+
1613
+ /* Search palette */
1614
+
1615
+ .rungent-overlay {
1616
+ position: fixed;
1617
+ inset: 0;
1618
+ z-index: 2147483001;
1619
+ background: var(--rungent-overlay);
1620
+ }
1621
+
1622
+ .rungent-palette {
1623
+ position: fixed;
1624
+ top: 12vh;
1625
+ left: 50%;
1626
+ z-index: 2147483002;
1627
+ display: flex;
1628
+ flex-direction: column;
1629
+ width: min(640px, calc(100vw - 24px));
1630
+ max-height: 70vh;
1631
+ border: 1px solid var(--rungent-border);
1632
+ border-radius: 14px;
1633
+ background: var(--rungent-bg);
1634
+ box-shadow: var(--rungent-shadow);
1635
+ transform: translateX(-50%);
1636
+ overflow: hidden;
1637
+ }
1638
+
1639
+ @media (max-width: 640px) {
1640
+ .rungent-palette {
1641
+ top: 0;
1642
+ width: 100vw;
1643
+ max-height: 100dvh;
1644
+ border-radius: 0;
1645
+ }
1646
+ }
1647
+
1648
+ .rungent-palette-input {
1649
+ width: 100%;
1650
+ padding: 16px 18px;
1651
+ border: 0;
1652
+ border-bottom: 1px solid var(--rungent-border);
1653
+ background: transparent;
1654
+ color: var(--rungent-fg);
1655
+ font: inherit;
1656
+ font-size: 16px;
1657
+ }
1658
+
1659
+ .rungent-root .rungent-palette-input:focus,
1660
+ .rungent-root .rungent-palette-input:focus-visible {
1661
+ outline: none;
1662
+ box-shadow: none;
1663
+ border-bottom-color: var(--rungent-border);
1664
+ }
1665
+
1666
+ .rungent-options {
1667
+ flex: 1;
1668
+ padding: 6px;
1669
+ overflow-y: auto;
1670
+ }
1671
+
1672
+ .rungent-options:empty {
1673
+ display: none;
1674
+ }
1675
+
1676
+ .rungent-group {
1677
+ margin: 8px 10px 4px;
1678
+ color: var(--rungent-muted);
1679
+ font-size: 11px;
1680
+ font-weight: 600;
1681
+ letter-spacing: 0.04em;
1682
+ text-transform: uppercase;
1683
+ }
1684
+
1685
+ .rungent-option {
1686
+ display: flex;
1687
+ flex-direction: column;
1688
+ gap: 2px;
1689
+ padding: 8px 10px;
1690
+ border-radius: 8px;
1691
+ cursor: pointer;
1692
+ }
1693
+
1694
+ .rungent-option[aria-selected="true"] {
1695
+ background: var(--rungent-accent-soft);
1696
+ }
1697
+
1698
+ .rungent-hit-title {
1699
+ font-weight: 500;
1700
+ }
1701
+
1702
+ .rungent-hit-excerpt {
1703
+ overflow: hidden;
1704
+ color: var(--rungent-muted);
1705
+ font-size: 12px;
1706
+ text-overflow: ellipsis;
1707
+ white-space: nowrap;
1708
+ }
1709
+
1710
+ .rungent-hit-excerpt mark {
1711
+ border-radius: 2px;
1712
+ background: var(--rungent-mark);
1713
+ color: inherit;
1714
+ }
1715
+
1716
+ .rungent-ask {
1717
+ color: var(--rungent-accent);
1718
+ font-weight: 500;
1719
+ }
1720
+
1721
+ .rungent-palette-status {
1722
+ padding: 8px 18px;
1723
+ border-top: 1px solid var(--rungent-border);
1724
+ color: var(--rungent-muted);
1725
+ font-size: 12px;
1726
+ }
1727
+
1728
+ .rungent-palette-status:empty {
1729
+ display: none;
1730
+ }
1731
+
1732
+ /* Help viewer and settings */
1733
+
1734
+ .rungent-help {
1735
+ display: block;
1736
+ max-width: 760px;
1737
+ }
1738
+
1739
+ .rungent-settings {
1740
+ display: block;
1741
+ max-width: 640px;
1742
+ }
1743
+
1744
+ .rungent-settings-title {
1745
+ margin: 0;
1746
+ font-size: 18px;
1747
+ font-weight: 600;
1748
+ }
1749
+
1750
+ .rungent-settings-hint {
1751
+ margin: 6px 0 0;
1752
+ }
1753
+
1754
+ .rungent-settings-note {
1755
+ margin: 10px 0 0;
1756
+ }
1757
+
1758
+ .rungent-confirm {
1759
+ margin-top: 14px;
1760
+ }
1761
+
1762
+ .rungent-confirm > p {
1763
+ margin: 0;
1764
+ }
1765
+
1766
+ .rungent-chain {
1767
+ display: flex;
1768
+ flex-direction: column;
1769
+ gap: 10px;
1770
+ margin: 14px 0 0;
1771
+ padding: 0;
1772
+ list-style: none;
1773
+ }
1774
+
1775
+ .rungent-endpoint-head {
1776
+ display: flex;
1777
+ align-items: center;
1778
+ gap: 4px;
1779
+ margin-bottom: 10px;
1780
+ }
1781
+
1782
+ .rungent-endpoint-index {
1783
+ display: inline-grid;
1784
+ place-items: center;
1785
+ width: 22px;
1786
+ height: 22px;
1787
+ border-radius: 50%;
1788
+ background: var(--rungent-surface);
1789
+ color: var(--rungent-muted);
1790
+ font-size: 12px;
1791
+ font-weight: 600;
1792
+ }
1793
+
1794
+ .rungent-endpoint-name {
1795
+ flex: 1;
1796
+ margin-left: 6px;
1797
+ font-weight: 600;
1798
+ }
1799
+
1800
+ .rungent-fields {
1801
+ display: grid;
1802
+ grid-template-columns: 130px minmax(0, 1fr);
1803
+ align-items: center;
1804
+ gap: 8px 12px;
1805
+ }
1806
+
1807
+ .rungent-fields > p {
1808
+ margin: 0;
1809
+ }
1810
+
1811
+ /* Provider options typed as JSON. */
1812
+ .rungent-json {
1813
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1814
+ font-size: 12px;
1815
+ line-height: 1.5;
1816
+ resize: vertical;
1817
+ }
1818
+
1819
+ .rungent-fields .rungent-label {
1820
+ margin: 0;
1821
+ color: var(--rungent-muted);
1822
+ font-weight: 400;
1823
+ }
1824
+
1825
+ @media (max-width: 480px) {
1826
+ .rungent-fields {
1827
+ grid-template-columns: minmax(0, 1fr);
1828
+ gap: 4px;
1829
+ }
1830
+
1831
+ .rungent-fields > span:empty {
1832
+ display: none;
1833
+ }
1834
+ }
1835
+
1836
+ /* Expanded and narrow layouts, after the history list they rearrange. */
1837
+
1838
+ .rungent-dock-body {
1839
+ display: flex;
1840
+ flex: 1;
1841
+ min-height: 0;
1842
+ }
1843
+
1844
+ .rungent-dock-body[data-expanded] > .rungent-history {
1845
+ flex: 0 0 260px;
1846
+ border-right: 1px solid var(--rungent-border);
1847
+ }
1848
+
1849
+ .rungent-dock-main {
1850
+ display: flex;
1851
+ flex: 1;
1852
+ justify-content: center;
1853
+ min-width: 0;
1854
+ }
1855
+
1856
+ .rungent-dock-main > .rungent-thread {
1857
+ width: 100%;
1858
+ max-width: 820px;
1859
+ }
1860
+
1861
+ @media (max-width: 640px) {
1862
+ .rungent-dock,
1863
+ .rungent-shell[data-layout="expanded"] > .rungent-dock {
1864
+ position: fixed;
1865
+ inset: 0;
1866
+ z-index: 2147483000;
1867
+ width: 100vw;
1868
+ height: 100dvh;
1869
+ padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
1870
+ env(safe-area-inset-left);
1871
+ border-left: 0;
1872
+ }
1873
+
1874
+ .rungent-resize,
1875
+ .rungent-expand,
1876
+ .rungent-dock-body[data-expanded] > .rungent-history {
1877
+ display: none;
1878
+ }
1879
+ }
1880
+
1881
+ @media (prefers-reduced-motion: reduce) {
1882
+ .rungent-dock {
1883
+ animation: none;
1884
+ }
1885
+ }