magpie-multi-usage 0.0.0-stage → 0.1.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.
package/src/ui/app.css ADDED
@@ -0,0 +1,877 @@
1
+ /* Magpie native usage surface — quiet neutral canvas, floating segmented pills,
2
+ 4-tile hairline summary, compact two-tone bars, and Finder-style stat lists. */
3
+
4
+ :root {
5
+ color-scheme: light dark;
6
+ --bg: var(--magpie-bg, #f4f4f6);
7
+ --card: var(--magpie-surface, #ffffff);
8
+ --card-2: #f9f9fb;
9
+ --pill: #f1f1f4;
10
+ --pill-hover: #e9e9ee;
11
+ --seg-track: #e6e6eb;
12
+ --seg-thumb: var(--card);
13
+ --seg-edge: 0 1px 2px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(0, 0, 0, .08);
14
+ --ctl-fg: #63636b;
15
+ --line: var(--magpie-border, #e3e3e8);
16
+ --line-2: #ececf0;
17
+ --fg: var(--magpie-fg, #1c1c21);
18
+ --fg-2: #4b4b53;
19
+ --muted: var(--magpie-muted, #85858d);
20
+ --faint: #b9b9c2;
21
+ --accent: var(--magpie-accent, #4f46e5);
22
+ --accent-soft: #eeedfd;
23
+ --accent-fg: #ffffff;
24
+ --mark: var(--fg);
25
+ --green: #189a58;
26
+ --green-soft: #e4f6ec;
27
+ --red: #d64545;
28
+ --red-soft: #fbe9e9;
29
+ --amber: #b45309;
30
+ --amber-soft: #fbf0df;
31
+ --shadow: 0 16px 44px rgba(20, 22, 30, .16), 0 2px 8px rgba(20, 22, 30, .06), 0 0 0 .5px rgba(20, 22, 30, .1);
32
+ --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
33
+ --code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
34
+ --ease: cubic-bezier(.23, 1, .32, 1);
35
+ }
36
+
37
+ @media (prefers-color-scheme: dark) {
38
+ :root:not([data-theme="light"]) {
39
+ --bg: var(--magpie-bg, #1a1a1e);
40
+ --card: var(--magpie-surface, #232327);
41
+ --card-2: #1f1f23;
42
+ --pill: #2d2d33;
43
+ --pill-hover: #36363d;
44
+ --seg-track: rgba(255, 255, 255, .045);
45
+ --seg-thumb: rgba(255, 255, 255, .15);
46
+ --seg-edge: inset 0 .5px 0 rgba(255, 255, 255, .08), 0 1px 2px rgba(0, 0, 0, .3);
47
+ --ctl-fg: #a1a1aa;
48
+ --line: var(--magpie-border, #333339);
49
+ --line-2: #2c2c32;
50
+ --fg: var(--magpie-fg, #ededf1);
51
+ --fg-2: #b9b9c1;
52
+ --muted: var(--magpie-muted, #9c9ca6);
53
+ --faint: #787882;
54
+ --accent: var(--magpie-accent, #a5b4fc);
55
+ --accent-soft: #2b2c47;
56
+ --accent-fg: #14142a;
57
+ --green: #6fd99b;
58
+ --green-soft: #1e3a2b;
59
+ --red: #f28b82;
60
+ --red-soft: #45272a;
61
+ --amber: #f2b544;
62
+ --amber-soft: #3f3220;
63
+ --shadow: 0 16px 44px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(255, 255, 255, .1);
64
+ }
65
+ }
66
+
67
+ :root[data-theme="dark"] {
68
+ --bg: var(--magpie-bg, #1a1a1e);
69
+ --card: var(--magpie-surface, #232327);
70
+ --card-2: #1f1f23;
71
+ --pill: #2d2d33;
72
+ --pill-hover: #36363d;
73
+ --seg-track: rgba(255, 255, 255, .045);
74
+ --seg-thumb: rgba(255, 255, 255, .15);
75
+ --seg-edge: inset 0 .5px 0 rgba(255, 255, 255, .08), 0 1px 2px rgba(0, 0, 0, .3);
76
+ --ctl-fg: #a1a1aa;
77
+ --line: var(--magpie-border, #333339);
78
+ --line-2: #2c2c32;
79
+ --fg: var(--magpie-fg, #ededf1);
80
+ --fg-2: #b9b9c1;
81
+ --muted: var(--magpie-muted, #9c9ca6);
82
+ --faint: #787882;
83
+ --accent: var(--magpie-accent, #a5b4fc);
84
+ --accent-soft: #2b2c47;
85
+ --accent-fg: #14142a;
86
+ --green: #6fd99b;
87
+ --green-soft: #1e3a2b;
88
+ --red: #f28b82;
89
+ --red-soft: #45272a;
90
+ --amber: #f2b544;
91
+ --amber-soft: #3f3220;
92
+ --shadow: 0 16px 44px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(255, 255, 255, .1);
93
+ }
94
+
95
+ * {
96
+ box-sizing: border-box;
97
+ }
98
+
99
+ html, body {
100
+ margin: 0;
101
+ min-height: 100%;
102
+ background: var(--bg);
103
+ color: var(--fg);
104
+ font: 13px/1.45 var(--font);
105
+ -webkit-font-smoothing: antialiased;
106
+ }
107
+
108
+ button {
109
+ font: inherit;
110
+ color: inherit;
111
+ background: none;
112
+ border: 0;
113
+ cursor: pointer;
114
+ appearance: none;
115
+ -webkit-appearance: none;
116
+ }
117
+
118
+ button:disabled {
119
+ opacity: .55;
120
+ cursor: default;
121
+ }
122
+
123
+ button:focus-visible,
124
+ input:focus-visible,
125
+ select:focus-visible {
126
+ outline: 2px solid var(--accent);
127
+ outline-offset: 1px;
128
+ }
129
+
130
+ .muted {
131
+ color: var(--muted);
132
+ }
133
+
134
+ .mono {
135
+ font-family: var(--code);
136
+ font-size: 12px;
137
+ }
138
+
139
+ .hidden {
140
+ display: none !important;
141
+ }
142
+
143
+ /* Magpie centered page container */
144
+ .view {
145
+ max-width: 1232px;
146
+ margin: 0 auto;
147
+ padding: 10px 16px 28px;
148
+ display: flex;
149
+ flex-direction: column;
150
+ }
151
+
152
+ /* Compact 34px Magpie usage-head */
153
+ .usage-head {
154
+ display: flex;
155
+ align-items: center;
156
+ flex-wrap: wrap;
157
+ gap: 8px;
158
+ min-height: 34px;
159
+ margin: 2px 0 8px;
160
+ }
161
+
162
+ .segs {
163
+ display: inline-flex;
164
+ align-items: center;
165
+ padding: 2px;
166
+ background: var(--seg-track);
167
+ border-radius: 8px;
168
+ gap: 1px;
169
+ max-width: 100%;
170
+ overflow-x: auto;
171
+ scrollbar-width: none;
172
+ }
173
+
174
+ .segs::-webkit-scrollbar {
175
+ display: none;
176
+ }
177
+
178
+ .segs .opt {
179
+ height: 24px;
180
+ padding: 0 10px;
181
+ border-radius: 6px;
182
+ font-size: 12px;
183
+ font-weight: 500;
184
+ color: var(--ctl-fg);
185
+ display: inline-flex;
186
+ align-items: center;
187
+ gap: 5px;
188
+ white-space: nowrap;
189
+ transition: color .14s var(--ease), background-color .14s var(--ease);
190
+ }
191
+
192
+ .segs .opt:hover:not(.on) {
193
+ color: var(--fg-2);
194
+ }
195
+
196
+ .segs .opt.on {
197
+ background: var(--seg-thumb);
198
+ color: var(--mark);
199
+ box-shadow: var(--seg-edge);
200
+ }
201
+
202
+ .segs-compact .opt {
203
+ height: 22px;
204
+ padding: 0 9px;
205
+ font-size: 11.5px;
206
+ }
207
+
208
+ .dot {
209
+ width: 6px;
210
+ height: 6px;
211
+ border-radius: 50%;
212
+ flex: none;
213
+ display: inline-block;
214
+ }
215
+
216
+ .dot-ok { background: var(--green); }
217
+ .dot-stale { background: var(--amber); }
218
+ .dot-error { background: var(--red); }
219
+ .dot-empty { background: var(--faint); }
220
+
221
+ .head-right {
222
+ margin-left: auto;
223
+ display: flex;
224
+ align-items: center;
225
+ gap: 8px;
226
+ }
227
+
228
+ .usage-cost {
229
+ display: inline-flex;
230
+ align-items: baseline;
231
+ gap: 6px;
232
+ font-variant-numeric: tabular-nums;
233
+ color: var(--muted);
234
+ font-size: 12px;
235
+ white-space: nowrap;
236
+ }
237
+
238
+ .usage-cost b {
239
+ font-size: 15px;
240
+ font-weight: 600;
241
+ color: var(--fg);
242
+ }
243
+
244
+ .head-actions {
245
+ display: inline-flex;
246
+ align-items: center;
247
+ gap: 2px;
248
+ }
249
+
250
+ .icon-btn {
251
+ width: 26px;
252
+ height: 26px;
253
+ border-radius: 7px;
254
+ display: inline-flex;
255
+ align-items: center;
256
+ justify-content: center;
257
+ color: var(--muted);
258
+ transition: background-color .12s, color .12s;
259
+ }
260
+
261
+ .icon-btn:hover {
262
+ background: var(--pill);
263
+ color: var(--fg);
264
+ }
265
+
266
+ .icon-btn.spin svg {
267
+ animation: spin .85s linear infinite;
268
+ }
269
+
270
+ @keyframes spin {
271
+ to { transform: rotate(360deg); }
272
+ }
273
+
274
+ .text-btn {
275
+ height: 26px;
276
+ padding: 0 8px;
277
+ border-radius: 6px;
278
+ font-size: 12px;
279
+ color: var(--ctl-fg);
280
+ display: inline-flex;
281
+ align-items: center;
282
+ transition: background-color .12s, color .12s;
283
+ }
284
+
285
+ .text-btn:hover {
286
+ background: var(--pill);
287
+ color: var(--fg);
288
+ }
289
+
290
+ /* Inline banners */
291
+ .banners {
292
+ display: flex;
293
+ flex-direction: column;
294
+ gap: 6px;
295
+ margin-bottom: 8px;
296
+ }
297
+
298
+ .banners:empty {
299
+ display: none;
300
+ }
301
+
302
+ .banner {
303
+ display: flex;
304
+ align-items: center;
305
+ gap: 8px;
306
+ padding: 7px 12px;
307
+ border-radius: 10px;
308
+ font-size: 12px;
309
+ color: var(--fg-2);
310
+ border: 1px solid var(--line);
311
+ background: var(--card);
312
+ }
313
+
314
+ .banner-warn {
315
+ background: var(--amber-soft);
316
+ border-color: color-mix(in srgb, var(--amber) 24%, var(--line));
317
+ }
318
+
319
+ .banner-info {
320
+ background: color-mix(in srgb, var(--accent-soft) 55%, var(--card));
321
+ border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
322
+ }
323
+
324
+ .banner-action {
325
+ margin-left: auto;
326
+ color: var(--accent);
327
+ font-size: 12px;
328
+ font-weight: 500;
329
+ white-space: nowrap;
330
+ padding: 2px 6px;
331
+ border-radius: 5px;
332
+ }
333
+
334
+ .banner-action:hover {
335
+ background: var(--pill);
336
+ }
337
+
338
+ /* 4-tile .stats hairline grid */
339
+ .stats {
340
+ display: grid;
341
+ grid-template-columns: repeat(4, minmax(0, 1fr));
342
+ gap: 1px;
343
+ background: var(--line);
344
+ border: 1px solid var(--line);
345
+ border-radius: 12px;
346
+ overflow: hidden;
347
+ }
348
+
349
+ .kpi {
350
+ background: var(--card);
351
+ padding: 12px 14px 11px;
352
+ display: flex;
353
+ flex-direction: column;
354
+ min-width: 0;
355
+ }
356
+
357
+ .kpi b {
358
+ font-size: 20px;
359
+ font-weight: 600;
360
+ letter-spacing: -.015em;
361
+ font-variant-numeric: tabular-nums;
362
+ line-height: 1.15;
363
+ white-space: nowrap;
364
+ overflow: hidden;
365
+ text-overflow: ellipsis;
366
+ }
367
+
368
+ .kpi b.cost-val {
369
+ color: var(--green);
370
+ }
371
+
372
+ .kpi span {
373
+ font-size: 11px;
374
+ font-weight: 600;
375
+ letter-spacing: .05em;
376
+ text-transform: uppercase;
377
+ color: var(--muted);
378
+ margin-top: 3px;
379
+ }
380
+
381
+ .kpi small {
382
+ font-size: 11px;
383
+ color: var(--muted);
384
+ margin-top: 3px;
385
+ font-variant-numeric: tabular-nums;
386
+ white-space: nowrap;
387
+ overflow: hidden;
388
+ text-overflow: ellipsis;
389
+ }
390
+
391
+ /* Compact .chart card */
392
+ .chart {
393
+ margin-top: 8px;
394
+ padding: 12px 14px 8px;
395
+ background: var(--card);
396
+ border: 1px solid var(--line);
397
+ border-radius: 12px;
398
+ }
399
+
400
+ .chart-top {
401
+ display: flex;
402
+ justify-content: space-between;
403
+ align-items: baseline;
404
+ gap: 10px;
405
+ margin: 0 0 6px;
406
+ font-size: 11px;
407
+ font-variant-numeric: tabular-nums;
408
+ }
409
+
410
+ .chart-readout {
411
+ color: var(--muted);
412
+ min-width: 0;
413
+ overflow: hidden;
414
+ text-overflow: ellipsis;
415
+ white-space: nowrap;
416
+ }
417
+
418
+ .chart .peak {
419
+ font-size: 10.5px;
420
+ color: var(--faint);
421
+ flex: none;
422
+ }
423
+
424
+ .chart .bars {
425
+ display: flex;
426
+ align-items: flex-end;
427
+ gap: 4px;
428
+ height: 76px;
429
+ border-bottom: 1px solid var(--line-2);
430
+ }
431
+
432
+ .chart .bar {
433
+ flex: 1 1 0;
434
+ min-width: 3px;
435
+ height: 100%;
436
+ display: flex;
437
+ flex-direction: column;
438
+ justify-content: flex-end;
439
+ border-radius: 3px 3px 0 0;
440
+ overflow: hidden;
441
+ cursor: pointer;
442
+ transition: background-color .12s;
443
+ }
444
+
445
+ .chart .bar:hover {
446
+ background: var(--pill);
447
+ }
448
+
449
+ .chart .bar i {
450
+ display: block;
451
+ background: var(--accent);
452
+ }
453
+
454
+ .chart .bar i.in {
455
+ opacity: .38;
456
+ }
457
+
458
+ .chart .labels {
459
+ display: flex;
460
+ gap: 4px;
461
+ margin-top: 5px;
462
+ font-size: 10.5px;
463
+ color: var(--muted);
464
+ font-variant-numeric: tabular-nums;
465
+ }
466
+
467
+ .chart .labels span {
468
+ flex: 1 1 0;
469
+ min-width: 0;
470
+ text-align: center;
471
+ white-space: nowrap;
472
+ }
473
+
474
+ .chart .labels span:last-child {
475
+ display: flex;
476
+ justify-content: flex-end;
477
+ }
478
+
479
+ /* Section header & Finder-style .list cards */
480
+ .sec-head {
481
+ display: flex;
482
+ align-items: center;
483
+ justify-content: space-between;
484
+ gap: 8px;
485
+ margin: 14px 3px 6px;
486
+ }
487
+
488
+ .sec-head-tabs {
489
+ margin-top: 14px;
490
+ margin-bottom: 7px;
491
+ }
492
+
493
+ .sec-title {
494
+ font-size: 11px;
495
+ font-weight: 600;
496
+ letter-spacing: .05em;
497
+ text-transform: uppercase;
498
+ color: var(--muted);
499
+ }
500
+
501
+ .sec-meta {
502
+ font-size: 11px;
503
+ color: var(--faint);
504
+ font-variant-numeric: tabular-nums;
505
+ white-space: nowrap;
506
+ }
507
+
508
+ .list {
509
+ background: var(--card);
510
+ border: 1px solid var(--line);
511
+ border-radius: 12px;
512
+ overflow: hidden;
513
+ }
514
+
515
+ .row.stat {
516
+ display: flex;
517
+ align-items: center;
518
+ gap: 10px;
519
+ min-height: 44px;
520
+ padding: 7px 14px 7px 12px;
521
+ transition: background-color .12s;
522
+ }
523
+
524
+ .row.stat + .row.stat {
525
+ border-top: 1px solid var(--line-2);
526
+ }
527
+
528
+ .row.stat.clickable {
529
+ cursor: pointer;
530
+ }
531
+
532
+ .row.stat.clickable:hover {
533
+ background: var(--card-2);
534
+ }
535
+
536
+ .row.stat.selected {
537
+ background: color-mix(in srgb, var(--accent-soft) 65%, var(--card));
538
+ }
539
+
540
+ .row.stat .ic {
541
+ width: 20px;
542
+ height: 20px;
543
+ border-radius: 6px;
544
+ background: var(--pill);
545
+ color: var(--fg-2);
546
+ display: inline-flex;
547
+ align-items: center;
548
+ justify-content: center;
549
+ flex: none;
550
+ align-self: flex-start;
551
+ margin-top: 3px;
552
+ }
553
+
554
+ .row.stat .who {
555
+ flex: 0 0 285px;
556
+ min-width: 0;
557
+ }
558
+
559
+ .row.stat .name-line {
560
+ display: flex;
561
+ align-items: center;
562
+ gap: 6px;
563
+ min-width: 0;
564
+ }
565
+
566
+ .row.stat .name {
567
+ font-weight: 500;
568
+ letter-spacing: -.005em;
569
+ white-space: nowrap;
570
+ overflow: hidden;
571
+ text-overflow: ellipsis;
572
+ color: var(--fg);
573
+ }
574
+
575
+ .row.stat .name.mono {
576
+ font-family: var(--code);
577
+ font-size: 12px;
578
+ }
579
+
580
+ .row.stat .pill-tag {
581
+ font-size: 10.5px;
582
+ font-weight: 500;
583
+ padding: 1px 6px;
584
+ border-radius: 999px;
585
+ background: var(--pill);
586
+ color: var(--muted);
587
+ flex: none;
588
+ }
589
+
590
+ .row.stat .pill-tag.stale {
591
+ background: var(--amber-soft);
592
+ color: var(--amber);
593
+ }
594
+
595
+ .row.stat .pill-tag.error {
596
+ background: var(--red-soft);
597
+ color: var(--red);
598
+ }
599
+
600
+ .row.stat .sub {
601
+ font-size: 11px;
602
+ color: var(--muted);
603
+ margin-top: 1px;
604
+ white-space: nowrap;
605
+ overflow: hidden;
606
+ text-overflow: ellipsis;
607
+ font-variant-numeric: tabular-nums;
608
+ }
609
+
610
+ .row.stat .share {
611
+ flex: 1 1 auto;
612
+ min-width: 48px;
613
+ height: 4px;
614
+ border-radius: 2px;
615
+ background: var(--pill);
616
+ overflow: hidden;
617
+ margin: 0 6px;
618
+ }
619
+
620
+ .row.stat .share i {
621
+ display: block;
622
+ height: 100%;
623
+ border-radius: 2px;
624
+ background: var(--accent);
625
+ opacity: .72;
626
+ }
627
+
628
+ .row.stat .num {
629
+ display: flex;
630
+ flex-direction: column;
631
+ align-items: flex-end;
632
+ flex: none;
633
+ min-width: 92px;
634
+ font-variant-numeric: tabular-nums;
635
+ }
636
+
637
+ .row.stat .num b {
638
+ font-weight: 600;
639
+ font-size: 13px;
640
+ }
641
+
642
+ .row.stat .num small {
643
+ font-size: 10.5px;
644
+ color: var(--muted);
645
+ white-space: nowrap;
646
+ }
647
+
648
+ .row.stat .cost {
649
+ flex: none;
650
+ min-width: 62px;
651
+ text-align: right;
652
+ color: var(--green);
653
+ font-variant-numeric: tabular-nums;
654
+ font-size: 12px;
655
+ font-weight: 500;
656
+ }
657
+
658
+ .empty-state {
659
+ padding: 20px 14px;
660
+ text-align: center;
661
+ color: var(--muted);
662
+ font-size: 12.5px;
663
+ }
664
+
665
+ /* Subtle relay status footer */
666
+ .sync-footer {
667
+ margin-top: 14px;
668
+ padding: 0 3px;
669
+ display: flex;
670
+ flex-wrap: wrap;
671
+ justify-content: space-between;
672
+ align-items: center;
673
+ gap: 8px;
674
+ font-size: 11px;
675
+ color: var(--faint);
676
+ font-variant-numeric: tabular-nums;
677
+ }
678
+
679
+ /* Magpie-style centered Settings modal */
680
+ .drawer-backdrop {
681
+ position: fixed;
682
+ inset: 0;
683
+ background: rgba(15, 16, 22, .42);
684
+ z-index: 40;
685
+ }
686
+
687
+ .sheet {
688
+ position: fixed;
689
+ top: 50%;
690
+ left: 50%;
691
+ transform: translate(-50%, -50%);
692
+ width: min(460px, calc(100vw - 24px));
693
+ max-height: calc(100vh - 32px);
694
+ overflow-y: auto;
695
+ background: var(--card);
696
+ border: 1px solid var(--line);
697
+ border-radius: 14px;
698
+ box-shadow: var(--shadow);
699
+ z-index: 50;
700
+ display: flex;
701
+ flex-direction: column;
702
+ }
703
+
704
+ .sheet-header {
705
+ display: flex;
706
+ justify-content: space-between;
707
+ align-items: center;
708
+ padding: 14px 18px 10px;
709
+ border-bottom: 1px solid var(--line-2);
710
+ }
711
+
712
+ .sheet-header h2 {
713
+ margin: 0;
714
+ font-size: 14px;
715
+ font-weight: 600;
716
+ }
717
+
718
+ .sheet-body {
719
+ padding: 14px 18px 18px;
720
+ display: flex;
721
+ flex-direction: column;
722
+ gap: 11px;
723
+ }
724
+
725
+ .field {
726
+ display: flex;
727
+ flex-direction: column;
728
+ gap: 4px;
729
+ }
730
+
731
+ .field label {
732
+ font-size: 11.5px;
733
+ font-weight: 500;
734
+ color: var(--muted);
735
+ }
736
+
737
+ .field input[type="text"],
738
+ .field input[type="password"],
739
+ .field input[type="number"],
740
+ .field select {
741
+ width: 100%;
742
+ background: var(--card-2);
743
+ color: var(--fg);
744
+ border: 1px solid var(--line);
745
+ border-radius: 7px;
746
+ padding: 7px 10px;
747
+ font: inherit;
748
+ font-size: 12.5px;
749
+ }
750
+
751
+ .field input[readonly] {
752
+ opacity: .75;
753
+ }
754
+
755
+ .field-row {
756
+ display: grid;
757
+ grid-template-columns: repeat(2, minmax(0, 1fr));
758
+ gap: 10px;
759
+ }
760
+
761
+ .field-help {
762
+ margin: 2px 0 0;
763
+ font-size: 11.5px;
764
+ line-height: 1.45;
765
+ }
766
+
767
+ .token-status-row {
768
+ display: flex;
769
+ justify-content: space-between;
770
+ align-items: center;
771
+ gap: 8px;
772
+ font-size: 11.5px;
773
+ }
774
+
775
+ .link-btn {
776
+ color: var(--red);
777
+ font-size: 11.5px;
778
+ font-weight: 500;
779
+ padding: 0;
780
+ }
781
+
782
+ .link-btn:hover {
783
+ text-decoration: underline;
784
+ }
785
+
786
+ .checkbox-row {
787
+ display: flex;
788
+ align-items: center;
789
+ gap: 8px;
790
+ font-size: 12.5px;
791
+ cursor: pointer;
792
+ }
793
+
794
+ .feedback {
795
+ padding: 8px 11px;
796
+ border-radius: 8px;
797
+ font-size: 12px;
798
+ line-height: 1.45;
799
+ border: 1px solid var(--line);
800
+ }
801
+
802
+ .feedback.ok {
803
+ border-color: color-mix(in srgb, var(--green) 36%, var(--line));
804
+ background: var(--green-soft);
805
+ color: var(--fg);
806
+ }
807
+
808
+ .feedback.err {
809
+ border-color: color-mix(in srgb, var(--red) 36%, var(--line));
810
+ background: var(--red-soft);
811
+ color: var(--fg);
812
+ }
813
+
814
+ .sheet-footer {
815
+ display: flex;
816
+ justify-content: flex-end;
817
+ gap: 8px;
818
+ padding-top: 6px;
819
+ }
820
+
821
+ .pill-btn {
822
+ height: 28px;
823
+ padding: 0 12px;
824
+ border-radius: 7px;
825
+ background: var(--pill);
826
+ color: var(--fg);
827
+ font-size: 12px;
828
+ font-weight: 500;
829
+ transition: background-color .12s;
830
+ }
831
+
832
+ .pill-btn:hover {
833
+ background: var(--pill-hover);
834
+ }
835
+
836
+ .pill-btn-primary {
837
+ background: var(--accent);
838
+ color: var(--accent-fg);
839
+ }
840
+
841
+ .pill-btn-primary:hover {
842
+ filter: brightness(1.06);
843
+ }
844
+
845
+ @media (max-width: 820px) {
846
+ .stats {
847
+ grid-template-columns: repeat(2, minmax(0, 1fr));
848
+ }
849
+ .row.stat .who {
850
+ flex: 1 1 140px;
851
+ }
852
+ .row.stat .share {
853
+ display: none;
854
+ }
855
+ .row.stat .num small {
856
+ display: none;
857
+ }
858
+ }
859
+
860
+ @media (max-width: 520px) {
861
+ .usage-cost span {
862
+ display: none;
863
+ }
864
+ .row.stat .cost {
865
+ min-width: 52px;
866
+ }
867
+ .field-row {
868
+ grid-template-columns: 1fr;
869
+ }
870
+ }
871
+
872
+ @media (prefers-reduced-motion: reduce) {
873
+ *, *::before, *::after {
874
+ transition-duration: 0.01ms !important;
875
+ animation-duration: 0.01ms !important;
876
+ }
877
+ }