@rungent/react 0.0.0-stage → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1833 @@
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
+ .rungent-root .rungent-composer-input:focus-visible {
1073
+ outline: none;
1074
+ }
1075
+
1076
+ .rungent-composer-bar {
1077
+ display: flex;
1078
+ align-items: center;
1079
+ gap: 2px;
1080
+ min-height: 40px;
1081
+ padding: 4px 6px 6px 8px;
1082
+ }
1083
+
1084
+ .rungent-composer-bar .rungent-icon-button {
1085
+ width: 30px;
1086
+ height: 30px;
1087
+ }
1088
+
1089
+ .rungent-composer-spacer {
1090
+ flex: 1;
1091
+ }
1092
+
1093
+ .rungent-send {
1094
+ display: grid;
1095
+ place-items: center;
1096
+ width: 30px;
1097
+ height: 30px;
1098
+ flex: none;
1099
+ padding: 0;
1100
+ border: 0;
1101
+ border-radius: 50%;
1102
+ background: var(--rungent-accent);
1103
+ color: var(--rungent-accent-fg);
1104
+ cursor: pointer;
1105
+ }
1106
+
1107
+ .rungent-send:disabled {
1108
+ background: var(--rungent-surface);
1109
+ color: var(--rungent-muted);
1110
+ cursor: default;
1111
+ }
1112
+
1113
+ .rungent-send[data-stop] {
1114
+ background: var(--rungent-fg);
1115
+ color: var(--rungent-bg);
1116
+ }
1117
+
1118
+ .rungent-ring-wrap {
1119
+ position: relative;
1120
+ display: inline-flex;
1121
+ }
1122
+
1123
+ .rungent-ring {
1124
+ display: grid;
1125
+ place-items: center;
1126
+ width: 30px;
1127
+ height: 30px;
1128
+ padding: 0;
1129
+ border: 0;
1130
+ border-radius: 8px;
1131
+ background: transparent;
1132
+ cursor: default;
1133
+ }
1134
+
1135
+ .rungent-ring:hover {
1136
+ background: var(--rungent-surface);
1137
+ }
1138
+
1139
+ .rungent-ring svg {
1140
+ transform: rotate(-90deg);
1141
+ }
1142
+
1143
+ .rungent-ring circle {
1144
+ fill: none;
1145
+ stroke-width: 2.5;
1146
+ }
1147
+
1148
+ .rungent-ring-track {
1149
+ stroke: var(--rungent-border);
1150
+ }
1151
+
1152
+ .rungent-ring-value {
1153
+ stroke: var(--rungent-success);
1154
+ stroke-linecap: round;
1155
+ transition: stroke-dashoffset 300ms ease;
1156
+ }
1157
+
1158
+ .rungent-ring[data-level="medium"] .rungent-ring-value {
1159
+ stroke: #f59e0b;
1160
+ }
1161
+
1162
+ .rungent-ring[data-level="high"] .rungent-ring-value {
1163
+ stroke: #ef4444;
1164
+ }
1165
+
1166
+ /* Left-aligned with the ring, which sits at the composer's left. */
1167
+ .rungent-ring-tip {
1168
+ position: absolute;
1169
+ left: 0;
1170
+ bottom: calc(100% + 8px);
1171
+ z-index: 1;
1172
+ display: flex;
1173
+ flex-direction: column;
1174
+ gap: 2px;
1175
+ width: max-content;
1176
+ max-width: 240px;
1177
+ padding: 8px 10px;
1178
+ border: 1px solid var(--rungent-border);
1179
+ border-radius: 8px;
1180
+ background: var(--rungent-bg);
1181
+ box-shadow: var(--rungent-shadow);
1182
+ font-size: 12px;
1183
+ }
1184
+
1185
+ @media (prefers-reduced-motion: reduce) {
1186
+ .rungent-ring-value,
1187
+ .rungent-trace-head > .rungent-icon,
1188
+ .rungent-step-row > .rungent-icon {
1189
+ transition: none;
1190
+ }
1191
+ }
1192
+
1193
+ /* Markdown */
1194
+
1195
+ .rungent-markdown[data-streaming] > :last-child:is(p, h1, h2, h3, h4, h5, h6, blockquote)::after,
1196
+ .rungent-markdown[data-streaming] > :last-child:is(ul, ol) > li:last-child::after {
1197
+ content: "";
1198
+ display: inline-block;
1199
+ width: 2px;
1200
+ height: 1em;
1201
+ margin-left: 2px;
1202
+ vertical-align: text-bottom;
1203
+ background: currentColor;
1204
+ animation: rungent-caret 1s steps(1, end) infinite;
1205
+ }
1206
+
1207
+ @keyframes rungent-caret {
1208
+ 50% {
1209
+ opacity: 0;
1210
+ }
1211
+ }
1212
+
1213
+ .rungent-markdown > :first-child {
1214
+ margin-top: 0;
1215
+ }
1216
+
1217
+ .rungent-markdown > :last-child {
1218
+ margin-bottom: 0;
1219
+ }
1220
+
1221
+ .rungent-markdown p,
1222
+ .rungent-markdown ul,
1223
+ .rungent-markdown ol,
1224
+ .rungent-markdown pre,
1225
+ .rungent-markdown table,
1226
+ .rungent-markdown blockquote {
1227
+ margin: 0 0 10px;
1228
+ }
1229
+
1230
+ .rungent-markdown h1,
1231
+ .rungent-markdown h2,
1232
+ .rungent-markdown h3,
1233
+ .rungent-markdown h4 {
1234
+ margin: 18px 0 8px;
1235
+ line-height: 1.3;
1236
+ }
1237
+
1238
+ .rungent-markdown h1 {
1239
+ font-size: 22px;
1240
+ }
1241
+
1242
+ .rungent-markdown h2 {
1243
+ font-size: 18px;
1244
+ }
1245
+
1246
+ .rungent-markdown h3 {
1247
+ font-size: 15px;
1248
+ }
1249
+
1250
+ .rungent-markdown h1,
1251
+ .rungent-markdown h2,
1252
+ .rungent-markdown h3,
1253
+ .rungent-markdown h4,
1254
+ .rungent-markdown h5,
1255
+ .rungent-markdown h6 {
1256
+ font-weight: 600;
1257
+ }
1258
+
1259
+ .rungent-markdown h4,
1260
+ .rungent-markdown h5,
1261
+ .rungent-markdown h6 {
1262
+ font-size: 14px;
1263
+ }
1264
+
1265
+ .rungent-markdown ul,
1266
+ .rungent-markdown ol {
1267
+ padding-left: 22px;
1268
+ }
1269
+
1270
+ .rungent-markdown ul {
1271
+ list-style: disc;
1272
+ }
1273
+
1274
+ .rungent-markdown ol {
1275
+ list-style: decimal;
1276
+ }
1277
+
1278
+ .rungent-markdown li {
1279
+ display: list-item;
1280
+ }
1281
+
1282
+ .rungent-markdown li + li,
1283
+ .rungent-markdown li > ul,
1284
+ .rungent-markdown li > ol {
1285
+ margin-top: 2px;
1286
+ }
1287
+
1288
+ .rungent-markdown li > ul,
1289
+ .rungent-markdown li > ol {
1290
+ margin-bottom: 0;
1291
+ }
1292
+
1293
+ .rungent-markdown strong {
1294
+ font-weight: 600;
1295
+ }
1296
+
1297
+ .rungent-markdown em {
1298
+ font-style: italic;
1299
+ }
1300
+
1301
+ .rungent-markdown hr {
1302
+ height: 0;
1303
+ margin: 14px 0;
1304
+ border: 0;
1305
+ border-top: 1px solid var(--rungent-border);
1306
+ }
1307
+
1308
+ .rungent-markdown a {
1309
+ color: var(--rungent-accent);
1310
+ text-decoration: underline;
1311
+ text-underline-offset: 2px;
1312
+ }
1313
+
1314
+ .rungent-markdown code {
1315
+ padding: 1px 4px;
1316
+ border-radius: 4px;
1317
+ background: var(--rungent-surface);
1318
+ font-family: var(--rungent-mono);
1319
+ font-size: 0.92em;
1320
+ }
1321
+
1322
+ .rungent-markdown pre {
1323
+ font-family: var(--rungent-mono);
1324
+ font-size: 12px;
1325
+ line-height: 1.5;
1326
+ padding: 10px 12px;
1327
+ border-radius: 8px;
1328
+ background: var(--rungent-surface);
1329
+ overflow-x: auto;
1330
+ }
1331
+
1332
+ .rungent-markdown pre code {
1333
+ padding: 0;
1334
+ background: none;
1335
+ }
1336
+
1337
+ .rungent-markdown blockquote {
1338
+ margin-left: 0;
1339
+ margin-right: 0;
1340
+ padding-left: 12px;
1341
+ border-left: 3px solid var(--rungent-border);
1342
+ color: var(--rungent-muted);
1343
+ }
1344
+
1345
+ .rungent-markdown table {
1346
+ display: block;
1347
+ max-width: 100%;
1348
+ border-collapse: collapse;
1349
+ overflow-x: auto;
1350
+ }
1351
+
1352
+ .rungent-markdown th,
1353
+ .rungent-markdown td {
1354
+ padding: 4px 10px;
1355
+ border: 1px solid var(--rungent-border);
1356
+ text-align: left;
1357
+ vertical-align: top;
1358
+ }
1359
+
1360
+ .rungent-markdown th {
1361
+ font-weight: 600;
1362
+ }
1363
+
1364
+ .rungent-markdown img {
1365
+ display: inline-block;
1366
+ max-width: 100%;
1367
+ height: auto;
1368
+ }
1369
+
1370
+ .rungent-markdown .rungent-cite {
1371
+ display: inline-grid;
1372
+ place-items: center;
1373
+ min-width: 18px;
1374
+ height: 18px;
1375
+ margin: 0 1px;
1376
+ padding: 0 4px;
1377
+ border-radius: 9px;
1378
+ background: var(--rungent-accent-soft);
1379
+ color: var(--rungent-accent);
1380
+ font-size: 11px;
1381
+ font-weight: 600;
1382
+ line-height: 1;
1383
+ text-decoration: none;
1384
+ vertical-align: 1px;
1385
+ }
1386
+
1387
+ /* Dock */
1388
+
1389
+ .rungent-launcher {
1390
+ position: fixed;
1391
+ right: 20px;
1392
+ bottom: 20px;
1393
+ z-index: 2147483000;
1394
+ display: grid;
1395
+ place-items: center;
1396
+ width: 48px;
1397
+ height: 48px;
1398
+ border: 0;
1399
+ border-radius: 50%;
1400
+ background: var(--rungent-accent);
1401
+ box-shadow: var(--rungent-shadow);
1402
+ color: var(--rungent-accent-fg);
1403
+ font-size: 20px;
1404
+ cursor: pointer;
1405
+ }
1406
+
1407
+ /* The shell lays the page and the panel side by side; the panel takes its room from the page. */
1408
+ .rungent-shell {
1409
+ display: flex;
1410
+ width: 100%;
1411
+ min-width: 0;
1412
+ min-height: 0;
1413
+ }
1414
+
1415
+ .rungent-shell-page {
1416
+ flex: 1 1 auto;
1417
+ min-width: 0;
1418
+ }
1419
+
1420
+ .rungent-shell[data-layout="expanded"] > .rungent-shell-page {
1421
+ display: none;
1422
+ }
1423
+
1424
+ /* Sticky, so it stays in view while the page scrolls the window; `--rungent-dock-top` clears a fixed header. */
1425
+ .rungent-dock {
1426
+ position: sticky;
1427
+ top: var(--rungent-dock-top, 0px);
1428
+ flex: 0 0 var(--rungent-dock-width);
1429
+ align-self: flex-start;
1430
+ display: flex;
1431
+ flex-direction: column;
1432
+ width: var(--rungent-dock-width);
1433
+ height: calc(100dvh - var(--rungent-dock-top, 0px));
1434
+ max-height: 100%;
1435
+ border-left: 1px solid var(--rungent-border);
1436
+ background: var(--rungent-bg);
1437
+ }
1438
+
1439
+ /* Only an opening the user asked for animates; a dock mounted open just shows. */
1440
+ .rungent-dock[data-entering] {
1441
+ animation: rungent-dock-open 240ms cubic-bezier(0.4, 0, 0.2, 1);
1442
+ }
1443
+
1444
+ .rungent-shell[data-layout="expanded"] > .rungent-dock {
1445
+ flex: 1 1 auto;
1446
+ width: auto;
1447
+ border-left: 0;
1448
+ }
1449
+
1450
+ /* Unwrapped: the panel is fixed at the window's right edge; expanded, it fills the window. */
1451
+ .rungent-shell[data-fixed] > .rungent-dock {
1452
+ position: fixed;
1453
+ top: var(--rungent-dock-top, 0px);
1454
+ right: 0;
1455
+ z-index: 2147483000;
1456
+ height: calc(100dvh - var(--rungent-dock-top, 0px));
1457
+ max-height: none;
1458
+ }
1459
+
1460
+ .rungent-shell[data-fixed][data-layout="expanded"] > .rungent-dock {
1461
+ left: 0;
1462
+ width: auto;
1463
+ }
1464
+
1465
+ @keyframes rungent-dock-open {
1466
+ from {
1467
+ flex-basis: 0;
1468
+ width: 0;
1469
+ opacity: 0.4;
1470
+ }
1471
+ }
1472
+
1473
+ .rungent-resize {
1474
+ position: absolute;
1475
+ top: 0;
1476
+ bottom: 0;
1477
+ left: -3px;
1478
+ z-index: 1;
1479
+ width: 6px;
1480
+ cursor: ew-resize;
1481
+ touch-action: none;
1482
+ }
1483
+
1484
+ .rungent-resize:hover,
1485
+ .rungent-resize:focus-visible {
1486
+ outline: none;
1487
+ background:
1488
+ linear-gradient(var(--rungent-accent), var(--rungent-accent)) center / 2px 100% no-repeat;
1489
+ }
1490
+
1491
+ .rungent-dock-header {
1492
+ display: flex;
1493
+ align-items: center;
1494
+ gap: 4px;
1495
+ min-height: 52px;
1496
+ padding: 8px 8px 8px 16px;
1497
+ border-bottom: 1px solid var(--rungent-border);
1498
+ }
1499
+
1500
+ .rungent-dock-title {
1501
+ flex: 1;
1502
+ margin: 0;
1503
+ font-size: 15px;
1504
+ font-weight: 600;
1505
+ }
1506
+
1507
+ .rungent-dock .rungent-thread {
1508
+ flex: 1;
1509
+ min-width: 0;
1510
+ }
1511
+
1512
+ .rungent-history {
1513
+ flex: 1;
1514
+ padding: 8px;
1515
+ overflow-y: auto;
1516
+ }
1517
+
1518
+ .rungent-history > p {
1519
+ padding: 8px;
1520
+ }
1521
+
1522
+ .rungent-history-list {
1523
+ margin: 0;
1524
+ padding: 0;
1525
+ list-style: none;
1526
+ }
1527
+
1528
+ .rungent-history-row {
1529
+ display: flex;
1530
+ align-items: center;
1531
+ border-radius: 8px;
1532
+ }
1533
+
1534
+ .rungent-history-row:hover {
1535
+ background: var(--rungent-surface);
1536
+ }
1537
+
1538
+ /* Revealed on hover where there is a pointer that hovers; always shown on touch screens. */
1539
+ @media (hover: hover) {
1540
+ .rungent-history-row .rungent-icon-button {
1541
+ visibility: hidden;
1542
+ }
1543
+
1544
+ .rungent-history-row:hover .rungent-icon-button,
1545
+ .rungent-history-row .rungent-icon-button:focus-visible {
1546
+ visibility: visible;
1547
+ }
1548
+ }
1549
+
1550
+ .rungent-history-item {
1551
+ display: flex;
1552
+ flex: 1;
1553
+ align-items: baseline;
1554
+ gap: 8px;
1555
+ min-width: 0;
1556
+ padding: 8px;
1557
+ border: 0;
1558
+ background: none;
1559
+ color: var(--rungent-fg);
1560
+ font: inherit;
1561
+ text-align: left;
1562
+ cursor: pointer;
1563
+ }
1564
+
1565
+ .rungent-history-item[aria-current="true"] {
1566
+ font-weight: 600;
1567
+ }
1568
+
1569
+ .rungent-history-title {
1570
+ flex: 1;
1571
+ overflow: hidden;
1572
+ text-overflow: ellipsis;
1573
+ white-space: nowrap;
1574
+ }
1575
+
1576
+ /* Search palette */
1577
+
1578
+ .rungent-overlay {
1579
+ position: fixed;
1580
+ inset: 0;
1581
+ z-index: 2147483001;
1582
+ background: var(--rungent-overlay);
1583
+ }
1584
+
1585
+ .rungent-palette {
1586
+ position: fixed;
1587
+ top: 12vh;
1588
+ left: 50%;
1589
+ z-index: 2147483002;
1590
+ display: flex;
1591
+ flex-direction: column;
1592
+ width: min(640px, calc(100vw - 24px));
1593
+ max-height: 70vh;
1594
+ border: 1px solid var(--rungent-border);
1595
+ border-radius: 14px;
1596
+ background: var(--rungent-bg);
1597
+ box-shadow: var(--rungent-shadow);
1598
+ transform: translateX(-50%);
1599
+ overflow: hidden;
1600
+ }
1601
+
1602
+ @media (max-width: 640px) {
1603
+ .rungent-palette {
1604
+ top: 0;
1605
+ width: 100vw;
1606
+ max-height: 100dvh;
1607
+ border-radius: 0;
1608
+ }
1609
+ }
1610
+
1611
+ .rungent-palette-input {
1612
+ width: 100%;
1613
+ padding: 16px 18px;
1614
+ border: 0;
1615
+ border-bottom: 1px solid var(--rungent-border);
1616
+ background: transparent;
1617
+ color: var(--rungent-fg);
1618
+ font: inherit;
1619
+ font-size: 16px;
1620
+ }
1621
+
1622
+ .rungent-palette-input:focus-visible {
1623
+ outline: none;
1624
+ }
1625
+
1626
+ .rungent-options {
1627
+ flex: 1;
1628
+ padding: 6px;
1629
+ overflow-y: auto;
1630
+ }
1631
+
1632
+ .rungent-options:empty {
1633
+ display: none;
1634
+ }
1635
+
1636
+ .rungent-group {
1637
+ margin: 8px 10px 4px;
1638
+ color: var(--rungent-muted);
1639
+ font-size: 11px;
1640
+ font-weight: 600;
1641
+ letter-spacing: 0.04em;
1642
+ text-transform: uppercase;
1643
+ }
1644
+
1645
+ .rungent-option {
1646
+ display: flex;
1647
+ flex-direction: column;
1648
+ gap: 2px;
1649
+ padding: 8px 10px;
1650
+ border-radius: 8px;
1651
+ cursor: pointer;
1652
+ }
1653
+
1654
+ .rungent-option[aria-selected="true"] {
1655
+ background: var(--rungent-accent-soft);
1656
+ }
1657
+
1658
+ .rungent-hit-title {
1659
+ font-weight: 500;
1660
+ }
1661
+
1662
+ .rungent-hit-excerpt {
1663
+ overflow: hidden;
1664
+ color: var(--rungent-muted);
1665
+ font-size: 12px;
1666
+ text-overflow: ellipsis;
1667
+ white-space: nowrap;
1668
+ }
1669
+
1670
+ .rungent-hit-excerpt mark {
1671
+ border-radius: 2px;
1672
+ background: var(--rungent-mark);
1673
+ color: inherit;
1674
+ }
1675
+
1676
+ .rungent-ask {
1677
+ color: var(--rungent-accent);
1678
+ font-weight: 500;
1679
+ }
1680
+
1681
+ .rungent-palette-status {
1682
+ padding: 8px 18px;
1683
+ border-top: 1px solid var(--rungent-border);
1684
+ color: var(--rungent-muted);
1685
+ font-size: 12px;
1686
+ }
1687
+
1688
+ .rungent-palette-status:empty {
1689
+ display: none;
1690
+ }
1691
+
1692
+ /* Help viewer and settings */
1693
+
1694
+ .rungent-help {
1695
+ display: block;
1696
+ max-width: 760px;
1697
+ }
1698
+
1699
+ .rungent-settings {
1700
+ display: block;
1701
+ max-width: 640px;
1702
+ }
1703
+
1704
+ .rungent-settings-title {
1705
+ margin: 0;
1706
+ font-size: 18px;
1707
+ font-weight: 600;
1708
+ }
1709
+
1710
+ .rungent-settings-hint {
1711
+ margin: 6px 0 0;
1712
+ }
1713
+
1714
+ .rungent-settings-note {
1715
+ margin: 10px 0 0;
1716
+ }
1717
+
1718
+ .rungent-confirm {
1719
+ margin-top: 14px;
1720
+ }
1721
+
1722
+ .rungent-confirm > p {
1723
+ margin: 0;
1724
+ }
1725
+
1726
+ .rungent-chain {
1727
+ display: flex;
1728
+ flex-direction: column;
1729
+ gap: 10px;
1730
+ margin: 14px 0 0;
1731
+ padding: 0;
1732
+ list-style: none;
1733
+ }
1734
+
1735
+ .rungent-endpoint-head {
1736
+ display: flex;
1737
+ align-items: center;
1738
+ gap: 4px;
1739
+ margin-bottom: 10px;
1740
+ }
1741
+
1742
+ .rungent-endpoint-index {
1743
+ display: inline-grid;
1744
+ place-items: center;
1745
+ width: 22px;
1746
+ height: 22px;
1747
+ border-radius: 50%;
1748
+ background: var(--rungent-surface);
1749
+ color: var(--rungent-muted);
1750
+ font-size: 12px;
1751
+ font-weight: 600;
1752
+ }
1753
+
1754
+ .rungent-endpoint-name {
1755
+ flex: 1;
1756
+ margin-left: 6px;
1757
+ font-weight: 600;
1758
+ }
1759
+
1760
+ .rungent-fields {
1761
+ display: grid;
1762
+ grid-template-columns: 130px minmax(0, 1fr);
1763
+ align-items: center;
1764
+ gap: 8px 12px;
1765
+ }
1766
+
1767
+ .rungent-fields .rungent-label {
1768
+ margin: 0;
1769
+ color: var(--rungent-muted);
1770
+ font-weight: 400;
1771
+ }
1772
+
1773
+ @media (max-width: 480px) {
1774
+ .rungent-fields {
1775
+ grid-template-columns: minmax(0, 1fr);
1776
+ gap: 4px;
1777
+ }
1778
+
1779
+ .rungent-fields > span:empty {
1780
+ display: none;
1781
+ }
1782
+ }
1783
+
1784
+ /* Expanded and narrow layouts, after the history list they rearrange. */
1785
+
1786
+ .rungent-dock-body {
1787
+ display: flex;
1788
+ flex: 1;
1789
+ min-height: 0;
1790
+ }
1791
+
1792
+ .rungent-dock-body[data-expanded] > .rungent-history {
1793
+ flex: 0 0 260px;
1794
+ border-right: 1px solid var(--rungent-border);
1795
+ }
1796
+
1797
+ .rungent-dock-main {
1798
+ display: flex;
1799
+ flex: 1;
1800
+ justify-content: center;
1801
+ min-width: 0;
1802
+ }
1803
+
1804
+ .rungent-dock-main > .rungent-thread {
1805
+ width: 100%;
1806
+ max-width: 820px;
1807
+ }
1808
+
1809
+ @media (max-width: 640px) {
1810
+ .rungent-dock,
1811
+ .rungent-shell[data-layout="expanded"] > .rungent-dock {
1812
+ position: fixed;
1813
+ inset: 0;
1814
+ z-index: 2147483000;
1815
+ width: 100vw;
1816
+ height: 100dvh;
1817
+ padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
1818
+ env(safe-area-inset-left);
1819
+ border-left: 0;
1820
+ }
1821
+
1822
+ .rungent-resize,
1823
+ .rungent-expand,
1824
+ .rungent-dock-body[data-expanded] > .rungent-history {
1825
+ display: none;
1826
+ }
1827
+ }
1828
+
1829
+ @media (prefers-reduced-motion: reduce) {
1830
+ .rungent-dock {
1831
+ animation: none;
1832
+ }
1833
+ }