@partrunner-ai/ui 2.0.1 → 2.2.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.
package/styles/theme.css CHANGED
@@ -2632,6 +2632,12 @@
2632
2632
  background: var(--pr-surface);
2633
2633
  box-shadow: inset 0 0 0 1px var(--pr-border);
2634
2634
  }
2635
+ /* A compound table already inside a Card or a TableFrame: the frame is the surface. */
2636
+ .pr-table__scroll--bare {
2637
+ border-radius: 0;
2638
+ background: none;
2639
+ box-shadow: none;
2640
+ }
2635
2641
  .pr-table__scroll:focus-visible {
2636
2642
  outline: none;
2637
2643
  box-shadow: inset 0 0 0 2px var(--pr-accent);
@@ -3443,3 +3449,1041 @@ button.pr-stepper__dot:focus-visible {
3443
3449
  .pr-sheet__title {
3444
3450
  letter-spacing: var(--pr-tracking-display, -0.022em);
3445
3451
  }
3452
+
3453
+ /* ───────────────────────── PageHeader ───────────────────────── */
3454
+
3455
+ /* Stacks on small screens, spreads title/actions from 640px up. Text colours
3456
+ come from --pr-fg/--pr-fg-muted rather than fixed brand greys: opacity over
3457
+ a themed surface does not produce a legible grey, and the tokens are
3458
+ audited in both themes. */
3459
+ .pr-page-header {
3460
+ display: flex;
3461
+ flex-direction: column;
3462
+ gap: 16px;
3463
+ margin-block-end: 24px;
3464
+ }
3465
+
3466
+ .pr-page-header__text {
3467
+ min-width: 0;
3468
+ }
3469
+
3470
+ .pr-page-header__eyebrow {
3471
+ display: inline-flex;
3472
+ align-items: center;
3473
+ gap: 6px;
3474
+ padding: 4px 10px;
3475
+ border: 1px solid var(--pr-glass-border);
3476
+ border-radius: 999px;
3477
+ background: color-mix(in srgb, var(--pr-surface) 70%, transparent);
3478
+ -webkit-backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
3479
+ backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
3480
+ box-shadow: var(--pr-shadow-sm);
3481
+ font-size: 11px;
3482
+ font-weight: 600;
3483
+ text-transform: uppercase;
3484
+ letter-spacing: 0.14em;
3485
+ color: var(--pr-fg-muted);
3486
+ }
3487
+
3488
+ .pr-page-header__eyebrow + .pr-page-header__title {
3489
+ margin-block-start: 8px;
3490
+ }
3491
+
3492
+ .pr-page-header__title {
3493
+ margin: 0;
3494
+ font-size: 24px;
3495
+ font-weight: 700;
3496
+ letter-spacing: var(--pr-tracking-display, -0.022em);
3497
+ line-height: 1.25;
3498
+ color: var(--pr-fg);
3499
+ }
3500
+
3501
+ .pr-page-header__subtitle {
3502
+ margin: 6px 0 0;
3503
+ font-size: 14px;
3504
+ line-height: 1.375;
3505
+ color: var(--pr-fg-muted);
3506
+ }
3507
+
3508
+ .pr-page-header__actions {
3509
+ display: flex;
3510
+ flex-wrap: wrap;
3511
+ align-items: center;
3512
+ gap: 8px;
3513
+ }
3514
+
3515
+ @media (min-width: 640px) {
3516
+ .pr-page-header {
3517
+ flex-direction: row;
3518
+ align-items: flex-end;
3519
+ justify-content: space-between;
3520
+ }
3521
+
3522
+ .pr-page-header__title {
3523
+ font-size: 30px;
3524
+ }
3525
+ }
3526
+
3527
+ /* ───────────────────────── StatTile ───────────────────────── */
3528
+
3529
+ /* The tone wash mixes the tone into the current surface, so the tile stays on
3530
+ the semantic surface in both themes instead of sitting on fixed white.
3531
+ The trend chip is the one place with fixed light-theme colours: its 11px
3532
+ text needs AA and the tone foregrounds only clear AA under .dark. */
3533
+ .pr-stat-tile {
3534
+ position: relative;
3535
+ overflow: hidden;
3536
+ padding: 16px;
3537
+ border: 1px solid var(--pr-glass-border);
3538
+ border-radius: var(--pr-radius-md, 0.5rem);
3539
+ background: color-mix(in srgb, var(--pr-surface) 90%, transparent);
3540
+ box-shadow: var(--pr-shadow-sm);
3541
+ transition:
3542
+ transform 200ms var(--pr-ease, ease),
3543
+ box-shadow 200ms var(--pr-ease, ease);
3544
+ }
3545
+
3546
+ .pr-stat-tile:hover {
3547
+ transform: translateY(-2px);
3548
+ box-shadow: var(--pr-shadow-card);
3549
+ }
3550
+
3551
+ .pr-stat-tile--yellow {
3552
+ background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-yellow-bg));
3553
+ }
3554
+ .pr-stat-tile--amber {
3555
+ background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-amber-bg));
3556
+ }
3557
+ .pr-stat-tile--blue {
3558
+ background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-blue-bg));
3559
+ }
3560
+ .pr-stat-tile--purple {
3561
+ background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-purple-bg));
3562
+ }
3563
+ .pr-stat-tile--green {
3564
+ background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-green-bg));
3565
+ }
3566
+ .pr-stat-tile--rose {
3567
+ background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-rose-bg));
3568
+ }
3569
+
3570
+ .pr-stat-tile__body {
3571
+ display: flex;
3572
+ align-items: flex-start;
3573
+ justify-content: space-between;
3574
+ gap: 12px;
3575
+ }
3576
+
3577
+ .pr-stat-tile__main {
3578
+ min-width: 0;
3579
+ flex: 1;
3580
+ }
3581
+
3582
+ .pr-stat-tile__label {
3583
+ margin: 0;
3584
+ font-size: 11px;
3585
+ font-weight: 600;
3586
+ text-transform: uppercase;
3587
+ letter-spacing: 0.12em;
3588
+ color: var(--pr-fg-muted);
3589
+ }
3590
+
3591
+ .pr-stat-tile__value {
3592
+ margin: 8px 0 0;
3593
+ font-size: 24px;
3594
+ font-weight: 700;
3595
+ letter-spacing: var(--pr-tracking-display, -0.022em);
3596
+ line-height: 1;
3597
+ color: var(--pr-fg);
3598
+ }
3599
+
3600
+ .pr-stat-tile__hint {
3601
+ margin: 6px 0 0;
3602
+ font-size: 12px;
3603
+ line-height: 1.375;
3604
+ color: var(--pr-fg-muted);
3605
+ }
3606
+
3607
+ .pr-stat-tile__icon {
3608
+ display: flex;
3609
+ flex-shrink: 0;
3610
+ align-items: center;
3611
+ justify-content: center;
3612
+ width: 36px;
3613
+ height: 36px;
3614
+ border-radius: var(--pr-radius-sm, 0.375rem);
3615
+ }
3616
+
3617
+ .pr-stat-tile__icon svg {
3618
+ width: 18px;
3619
+ height: 18px;
3620
+ }
3621
+
3622
+ /* Icon-chip pairs use the audited tone bg/fg pairs. The light-theme tone
3623
+ foregrounds sit below AA for text but only ever paint an 18px icon here,
3624
+ which is governed by the 3:1 non-text minimum. */
3625
+ .pr-stat-tile--yellow .pr-stat-tile__icon {
3626
+ background: var(--pr-tone-yellow-bg);
3627
+ color: var(--pr-tone-yellow-fg);
3628
+ }
3629
+ .pr-stat-tile--amber .pr-stat-tile__icon {
3630
+ background: var(--pr-tone-amber-bg);
3631
+ color: var(--pr-tone-amber-fg);
3632
+ }
3633
+ .pr-stat-tile--blue .pr-stat-tile__icon {
3634
+ background: var(--pr-tone-blue-bg);
3635
+ color: var(--pr-tone-blue-fg);
3636
+ }
3637
+ .pr-stat-tile--purple .pr-stat-tile__icon {
3638
+ background: var(--pr-tone-purple-bg);
3639
+ color: var(--pr-tone-purple-fg);
3640
+ }
3641
+ .pr-stat-tile--green .pr-stat-tile__icon {
3642
+ background: var(--pr-tone-green-bg);
3643
+ color: var(--pr-tone-green-fg);
3644
+ }
3645
+ .pr-stat-tile--rose .pr-stat-tile__icon {
3646
+ background: var(--pr-tone-rose-bg);
3647
+ color: var(--pr-tone-rose-fg);
3648
+ }
3649
+ .pr-stat-tile--neutral .pr-stat-tile__icon {
3650
+ background: var(--pr-border);
3651
+ color: var(--pr-fg-muted);
3652
+ }
3653
+
3654
+ .pr-stat-tile__meta {
3655
+ display: flex;
3656
+ align-items: center;
3657
+ justify-content: space-between;
3658
+ gap: 8px;
3659
+ margin-block-start: 12px;
3660
+ }
3661
+
3662
+ .pr-stat-tile__trend {
3663
+ display: inline-flex;
3664
+ align-items: center;
3665
+ gap: 4px;
3666
+ padding: 2px 8px;
3667
+ border-radius: 999px;
3668
+ font-size: 11px;
3669
+ font-weight: 600;
3670
+ }
3671
+
3672
+ .pr-stat-tile__trend svg {
3673
+ width: 12px;
3674
+ height: 12px;
3675
+ }
3676
+
3677
+ .pr-stat-tile__trend--up {
3678
+ background: #d1fae5;
3679
+ color: #047857;
3680
+ }
3681
+
3682
+ .pr-stat-tile__trend--down {
3683
+ background: #ffe4e6;
3684
+ color: #be123c;
3685
+ }
3686
+
3687
+ .dark .pr-stat-tile__trend--up {
3688
+ background: var(--pr-tone-green-bg);
3689
+ color: var(--pr-tone-green-fg);
3690
+ }
3691
+
3692
+ .dark .pr-stat-tile__trend--down {
3693
+ background: var(--pr-tone-rose-bg);
3694
+ color: var(--pr-tone-rose-fg);
3695
+ }
3696
+
3697
+ .pr-stat-tile__footer {
3698
+ min-width: 0;
3699
+ overflow: hidden;
3700
+ font-size: 11px;
3701
+ color: var(--pr-fg-faint);
3702
+ text-overflow: ellipsis;
3703
+ white-space: nowrap;
3704
+ }
3705
+
3706
+ @media (min-width: 640px) {
3707
+ .pr-stat-tile {
3708
+ padding: 20px;
3709
+ }
3710
+
3711
+ .pr-stat-tile__value {
3712
+ font-size: 28px;
3713
+ }
3714
+ }
3715
+
3716
+ /* ───────────────────────── Toolbar ───────────────────────── */
3717
+
3718
+ /* Glass surface, same recipe as the shell chrome at half the blur: separates
3719
+ from the page background without weight, and follows the theme. */
3720
+ .pr-toolbar {
3721
+ display: flex;
3722
+ flex-wrap: wrap;
3723
+ align-items: center;
3724
+ gap: 8px;
3725
+ padding: 10px 12px;
3726
+ border: 1px solid var(--pr-glass-border);
3727
+ border-radius: var(--pr-radius-md, 0.5rem);
3728
+ background: color-mix(in srgb, var(--pr-surface) 75%, transparent);
3729
+ -webkit-backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
3730
+ backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
3731
+ box-shadow: var(--pr-shadow-sm);
3732
+ }
3733
+
3734
+ /* ───────────────────────── IconButton ───────────────────────── */
3735
+
3736
+ /* Icon-only button with an accessibility contract: the touch target is at
3737
+ least 44x44 on small screens for every size, and on all screens unless
3738
+ `compact` is set. Desktop sizes step down visually while the pointer
3739
+ stays coarse. */
3740
+ .pr-icon-btn {
3741
+ display: inline-flex;
3742
+ align-items: center;
3743
+ justify-content: center;
3744
+ min-width: 44px;
3745
+ min-height: 44px;
3746
+ padding: 0;
3747
+ border: none;
3748
+ border-radius: var(--pr-radius-md, 0.5rem);
3749
+ background: transparent;
3750
+ cursor: pointer;
3751
+ transition:
3752
+ background-color 160ms var(--pr-ease, ease),
3753
+ color 160ms var(--pr-ease, ease),
3754
+ box-shadow 160ms var(--pr-ease, ease);
3755
+ }
3756
+
3757
+ .pr-icon-btn:focus-visible {
3758
+ outline: none;
3759
+ box-shadow: var(--pr-focus-ring);
3760
+ }
3761
+
3762
+ .pr-icon-btn:active:not(:disabled) {
3763
+ transform: scale(0.96);
3764
+ }
3765
+
3766
+ .pr-icon-btn:disabled,
3767
+ .pr-icon-btn[aria-disabled='true'] {
3768
+ opacity: 0.6;
3769
+ cursor: not-allowed;
3770
+ pointer-events: none;
3771
+ }
3772
+
3773
+ @media (min-width: 640px) {
3774
+ .pr-icon-btn--sm {
3775
+ min-width: 36px;
3776
+ min-height: 36px;
3777
+ }
3778
+
3779
+ .pr-icon-btn--md {
3780
+ min-width: 40px;
3781
+ min-height: 40px;
3782
+ }
3783
+
3784
+ .pr-icon-btn--lg {
3785
+ min-width: 48px;
3786
+ min-height: 48px;
3787
+ }
3788
+
3789
+ .pr-icon-btn--compact {
3790
+ min-width: 32px;
3791
+ min-height: 32px;
3792
+ }
3793
+ }
3794
+
3795
+ .pr-icon-btn svg {
3796
+ width: 18px;
3797
+ height: 18px;
3798
+ }
3799
+
3800
+ .pr-icon-btn--default,
3801
+ .pr-icon-btn--subtle {
3802
+ color: var(--pr-fg-muted);
3803
+ }
3804
+
3805
+ .pr-icon-btn--default:hover,
3806
+ .pr-icon-btn--subtle:hover {
3807
+ background: var(--pr-glass-bg);
3808
+ color: var(--pr-fg);
3809
+ box-shadow: var(--pr-shadow-sm);
3810
+ }
3811
+
3812
+ .pr-icon-btn--ghost {
3813
+ color: var(--pr-fg-muted);
3814
+ }
3815
+
3816
+ .pr-icon-btn--ghost:hover {
3817
+ background: var(--pr-glass-bg);
3818
+ color: var(--pr-fg);
3819
+ }
3820
+
3821
+ .pr-icon-btn--primary {
3822
+ color: var(--pr-accent);
3823
+ }
3824
+
3825
+ .pr-icon-btn--primary:hover {
3826
+ background: color-mix(in srgb, var(--pr-accent) 15%, transparent);
3827
+ color: var(--pr-accent-strong);
3828
+ box-shadow: var(--pr-shadow-sm);
3829
+ }
3830
+
3831
+ .pr-icon-btn--danger {
3832
+ color: var(--pr-danger);
3833
+ }
3834
+
3835
+ .pr-icon-btn--danger:hover {
3836
+ background: color-mix(in srgb, var(--pr-danger) 12%, transparent);
3837
+ color: var(--pr-danger);
3838
+ box-shadow: var(--pr-shadow-sm);
3839
+ }
3840
+
3841
+ /* ───────────────────────── ConfirmDialog ───────────────────────── */
3842
+
3843
+ .pr-confirm-dialog__actions {
3844
+ display: flex;
3845
+ flex-direction: column-reverse;
3846
+ gap: 8px;
3847
+ }
3848
+
3849
+ .pr-confirm-dialog__icon-row {
3850
+ display: flex;
3851
+ justify-content: center;
3852
+ padding-block: 8px;
3853
+ }
3854
+
3855
+ .pr-confirm-dialog__icon {
3856
+ display: inline-flex;
3857
+ align-items: center;
3858
+ justify-content: center;
3859
+ width: 48px;
3860
+ height: 48px;
3861
+ border-radius: var(--pr-radius-md, 0.5rem);
3862
+ }
3863
+
3864
+ .pr-confirm-dialog__icon svg {
3865
+ width: 24px;
3866
+ height: 24px;
3867
+ }
3868
+
3869
+ .pr-confirm-dialog__icon--danger {
3870
+ background: color-mix(in srgb, var(--pr-danger) 12%, transparent);
3871
+ color: var(--pr-danger);
3872
+ }
3873
+
3874
+ .pr-confirm-dialog__icon--accent {
3875
+ background: var(--pr-tone-yellow-bg);
3876
+ color: var(--pr-tone-yellow-fg);
3877
+ }
3878
+
3879
+ @media (min-width: 640px) {
3880
+ .pr-confirm-dialog__actions {
3881
+ flex-direction: row;
3882
+ justify-content: flex-end;
3883
+ }
3884
+ }
3885
+
3886
+ /* ───────────────────────── Page ───────────────────────── */
3887
+
3888
+ /* The page container: Crystal rhythm (16 → 24 → 32px), centred and capped, with
3889
+ one vertical stack between its children so screens stop deciding padding and
3890
+ width per file. */
3891
+ .pr-page {
3892
+ display: flex;
3893
+ flex-direction: column;
3894
+ gap: 24px;
3895
+ width: 100%;
3896
+ max-width: 1280px;
3897
+ margin-inline: auto;
3898
+ padding: 16px;
3899
+ color: var(--pr-fg);
3900
+ font-family: var(--pr-font-body, inherit);
3901
+ }
3902
+ .pr-page--narrow { max-width: 768px; }
3903
+ .pr-page--wide { max-width: 1536px; }
3904
+ .pr-page--full { max-width: none; }
3905
+ /* The page's gap is the rhythm. A header directly inside it drops its own bottom
3906
+ margin, or the recipe's first step would sit 48px above the KPIs; a header
3907
+ outside a Page keeps the margin it always had. */
3908
+ .pr-page > .pr-page-header { margin-block-end: 0; }
3909
+
3910
+ @media (min-width: 640px) {
3911
+ .pr-page { padding: 24px; }
3912
+ }
3913
+ @media (min-width: 1024px) {
3914
+ .pr-page { padding: 32px; }
3915
+ }
3916
+
3917
+ /* ───────────────────────── SectionHeading ───────────────────────── */
3918
+
3919
+ /* The step below PageHeader: an 18px Barlow title (the display face starts at
3920
+ 24px), an optional eyebrow and description, actions on the end edge. */
3921
+ .pr-section-heading {
3922
+ display: flex;
3923
+ flex-direction: column;
3924
+ gap: 12px;
3925
+ color: var(--pr-fg);
3926
+ font-family: var(--pr-font-body, inherit);
3927
+ }
3928
+ .pr-section-heading__text { min-width: 0; }
3929
+ .pr-section-heading__eyebrow {
3930
+ margin: 0 0 6px;
3931
+ font-size: 11px;
3932
+ font-weight: 600;
3933
+ letter-spacing: 0.12em;
3934
+ text-transform: uppercase;
3935
+ color: var(--pr-fg-muted);
3936
+ }
3937
+ .pr-section-heading__title {
3938
+ margin: 0;
3939
+ font-family: var(--pr-font-body, inherit);
3940
+ font-size: 18px;
3941
+ font-weight: 650;
3942
+ line-height: 1.3;
3943
+ letter-spacing: var(--pr-tracking-display, -0.022em);
3944
+ color: var(--pr-fg);
3945
+ text-wrap: balance;
3946
+ }
3947
+ .pr-section-heading__description {
3948
+ margin: 4px 0 0;
3949
+ font-size: 14px;
3950
+ line-height: 1.4;
3951
+ color: var(--pr-fg-muted);
3952
+ text-wrap: pretty;
3953
+ }
3954
+ .pr-section-heading__actions {
3955
+ display: flex;
3956
+ flex-wrap: wrap;
3957
+ align-items: center;
3958
+ gap: 8px;
3959
+ }
3960
+
3961
+ @media (min-width: 640px) {
3962
+ .pr-section-heading {
3963
+ flex-direction: row;
3964
+ align-items: flex-end;
3965
+ justify-content: space-between;
3966
+ }
3967
+ }
3968
+
3969
+ /* ───────────────────────── StatTileGrid ───────────────────────── */
3970
+
3971
+ /* One column on a phone, two on a tablet, then the requested count. */
3972
+ .pr-stat-grid {
3973
+ display: grid;
3974
+ grid-template-columns: minmax(0, 1fr);
3975
+ gap: 12px;
3976
+ }
3977
+
3978
+ @media (min-width: 640px) {
3979
+ .pr-stat-grid {
3980
+ grid-template-columns: repeat(2, minmax(0, 1fr));
3981
+ gap: 16px;
3982
+ }
3983
+ }
3984
+ @media (min-width: 1024px) {
3985
+ .pr-stat-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
3986
+ .pr-stat-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
3987
+ .pr-stat-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
3988
+ .pr-stat-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
3989
+ .pr-stat-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
3990
+ }
3991
+
3992
+ /* ───────────────────────── Toolbar parts ───────────────────────── */
3993
+
3994
+ .pr-toolbar__group {
3995
+ display: inline-flex;
3996
+ flex-wrap: wrap;
3997
+ align-items: center;
3998
+ gap: 8px;
3999
+ }
4000
+ /* Pushes what follows to the end edge from 640px up. Below, the bar wraps and
4001
+ the gap would only add a blank line. */
4002
+ .pr-toolbar__spacer {
4003
+ display: none;
4004
+ flex: 1 1 0;
4005
+ min-width: 0;
4006
+ }
4007
+
4008
+ @media (min-width: 640px) {
4009
+ .pr-toolbar__spacer { display: block; }
4010
+ }
4011
+
4012
+ /* ───────────────────────── SearchField ───────────────────────── */
4013
+
4014
+ /* The width lives on the field wrapper (`containerClassName`), never on the
4015
+ input: with a leading icon the wrapper is the layout box. */
4016
+ .pr-search-field { width: 100%; }
4017
+
4018
+ @media (min-width: 640px) {
4019
+ .pr-search-field:not(.pr-search-field--block) { width: 16rem; }
4020
+ }
4021
+
4022
+ /* ───────────────────────── FilterChip ───────────────────────── */
4023
+
4024
+ .pr-filter-chip-row {
4025
+ display: flex;
4026
+ flex-wrap: wrap;
4027
+ align-items: center;
4028
+ gap: 8px;
4029
+ }
4030
+
4031
+ /* One tap filters the list. Quiet outline at rest; the active chip is ink on
4032
+ the page, and the count rides the label in tabular figures. 40px tall: the
4033
+ chip is a control, so it keeps the package's interaction floor. */
4034
+ .pr-filter-chip {
4035
+ display: inline-flex;
4036
+ align-items: center;
4037
+ gap: 6px;
4038
+ min-height: 40px;
4039
+ padding: 0 12px;
4040
+ border: 1px solid var(--pr-border);
4041
+ border-radius: var(--pr-radius-md, 0.75rem);
4042
+ background: var(--pr-surface);
4043
+ color: var(--pr-fg-muted);
4044
+ font-family: var(--pr-font-body, inherit);
4045
+ font-size: 13px;
4046
+ font-weight: 600;
4047
+ line-height: 1;
4048
+ white-space: nowrap;
4049
+ cursor: pointer;
4050
+ transition:
4051
+ background-color 160ms var(--pr-ease, ease),
4052
+ border-color 160ms var(--pr-ease, ease),
4053
+ color 160ms var(--pr-ease, ease),
4054
+ box-shadow 160ms var(--pr-ease, ease);
4055
+ }
4056
+ .pr-filter-chip:hover:not(:disabled) {
4057
+ border-color: var(--pr-border-strong);
4058
+ color: var(--pr-fg);
4059
+ }
4060
+ .pr-filter-chip:focus-visible {
4061
+ outline: none;
4062
+ box-shadow: var(--pr-focus-ring);
4063
+ }
4064
+ .pr-filter-chip[aria-pressed='true'] {
4065
+ background: var(--pr-fg);
4066
+ border-color: var(--pr-fg);
4067
+ color: var(--pr-bg);
4068
+ }
4069
+ .pr-filter-chip:disabled {
4070
+ opacity: 0.6;
4071
+ cursor: not-allowed;
4072
+ }
4073
+ .pr-filter-chip__dot,
4074
+ .pr-filter-chip__icon { flex: 0 0 auto; }
4075
+ .pr-filter-chip__count {
4076
+ font-size: 12px;
4077
+ font-weight: 600;
4078
+ font-variant-numeric: tabular-nums;
4079
+ color: var(--pr-fg-faint);
4080
+ }
4081
+ .pr-filter-chip[aria-pressed='true'] .pr-filter-chip__count {
4082
+ color: inherit;
4083
+ opacity: 0.7;
4084
+ }
4085
+
4086
+ @media (prefers-reduced-motion: reduce) {
4087
+ .pr-filter-chip { transition: none; }
4088
+ }
4089
+
4090
+ /* ───────────────────────── SegmentedControl ───────────────────────── */
4091
+
4092
+ /* A quiet track with the checked option lifted onto the surface. Each option
4093
+ is a 40px control (44 for `lg`) and the track adds nothing around them, so
4094
+ the control is exactly as tall as the inputs and filter triggers beside it in
4095
+ a toolbar row. The unchecked options show the track wash; the checked one
4096
+ sits on the surface with the track's own radius. */
4097
+ .pr-segmented {
4098
+ display: inline-flex;
4099
+ align-items: stretch;
4100
+ gap: 0;
4101
+ padding: 0;
4102
+ border-radius: var(--pr-radius-md, 0.75rem);
4103
+ background: color-mix(in srgb, var(--pr-fg) 6%, transparent);
4104
+ color: var(--pr-fg);
4105
+ font-family: var(--pr-font-body, inherit);
4106
+ }
4107
+ .pr-segmented--block { display: flex; width: 100%; }
4108
+ .pr-segmented__option {
4109
+ position: relative;
4110
+ display: inline-flex;
4111
+ align-items: center;
4112
+ justify-content: center;
4113
+ gap: 6px;
4114
+ min-height: 40px;
4115
+ padding: 0 14px;
4116
+ border: 1px solid transparent;
4117
+ border-radius: var(--pr-radius-md, 0.75rem);
4118
+ background: transparent;
4119
+ color: var(--pr-fg-muted);
4120
+ font: inherit;
4121
+ font-size: 13px;
4122
+ font-weight: 600;
4123
+ line-height: 1;
4124
+ white-space: nowrap;
4125
+ cursor: pointer;
4126
+ transition:
4127
+ background-color 160ms var(--pr-ease, ease),
4128
+ border-color 160ms var(--pr-ease, ease),
4129
+ color 160ms var(--pr-ease, ease),
4130
+ box-shadow 160ms var(--pr-ease, ease);
4131
+ }
4132
+ .pr-segmented--lg .pr-segmented__option {
4133
+ min-height: 44px;
4134
+ padding: 0 16px;
4135
+ font-size: 14px;
4136
+ }
4137
+ .pr-segmented--block .pr-segmented__option { flex: 1 1 0; }
4138
+ .pr-segmented__option:hover:not(:disabled) { color: var(--pr-fg); }
4139
+ .pr-segmented__option[aria-checked='true'] {
4140
+ background: var(--pr-surface);
4141
+ border-color: var(--pr-border);
4142
+ color: var(--pr-fg);
4143
+ box-shadow: var(--pr-shadow-xs);
4144
+ }
4145
+ .pr-segmented__option:focus-visible {
4146
+ z-index: 1;
4147
+ outline: none;
4148
+ box-shadow: var(--pr-focus-ring);
4149
+ }
4150
+ .pr-segmented__option:disabled {
4151
+ opacity: 0.5;
4152
+ cursor: not-allowed;
4153
+ }
4154
+ .pr-segmented__icon { flex: 0 0 auto; }
4155
+ .pr-segmented__count {
4156
+ font-size: 12px;
4157
+ font-weight: 600;
4158
+ font-variant-numeric: tabular-nums;
4159
+ color: var(--pr-fg-faint);
4160
+ }
4161
+ .pr-segmented__option[aria-checked='true'] .pr-segmented__count { color: var(--pr-fg-muted); }
4162
+
4163
+ @media (prefers-reduced-motion: reduce) {
4164
+ .pr-segmented__option { transition: none; }
4165
+ }
4166
+
4167
+ /* ───────────────────────── StatusDot ───────────────────────── */
4168
+
4169
+ /* The colour a Badge of the same tone paints, as a dot beside visible text. */
4170
+ .pr-status-dot {
4171
+ display: inline-block;
4172
+ flex: 0 0 auto;
4173
+ width: 8px;
4174
+ height: 8px;
4175
+ border-radius: 999px;
4176
+ background: var(--pr-fg-faint);
4177
+ }
4178
+ .pr-status-dot--md { width: 10px; height: 10px; }
4179
+ .pr-status-dot--neutral { background: var(--pr-fg-faint); }
4180
+ .pr-status-dot--yellow { background: var(--pr-tone-yellow-fg); }
4181
+ .pr-status-dot--blue { background: var(--pr-tone-blue-fg); }
4182
+ .pr-status-dot--amber { background: var(--pr-tone-amber-fg); }
4183
+ .pr-status-dot--purple { background: var(--pr-tone-purple-fg); }
4184
+ .pr-status-dot--green { background: var(--pr-tone-green-fg); }
4185
+ .pr-status-dot--rose { background: var(--pr-tone-rose-fg); }
4186
+ .pr-status-dot--danger { background: var(--pr-danger); }
4187
+ .pr-status-dot--success { background: var(--pr-success); }
4188
+ .pr-status-dot--warning { background: var(--pr-warning); }
4189
+ .pr-status-dot--info { background: var(--pr-info); }
4190
+
4191
+ /* ───────────────────────── IconTile ───────────────────────── */
4192
+
4193
+ /* The same chip StatTile paints its icon in, on its own: neutral by default,
4194
+ the audited tone pairs otherwise. Non-text, so the 3:1 floor governs. */
4195
+ .pr-icon-tile {
4196
+ display: inline-flex;
4197
+ flex: 0 0 auto;
4198
+ align-items: center;
4199
+ justify-content: center;
4200
+ width: 36px;
4201
+ height: 36px;
4202
+ border-radius: var(--pr-radius-sm, 0.625rem);
4203
+ background: var(--pr-border);
4204
+ color: var(--pr-fg-muted);
4205
+ }
4206
+ .pr-icon-tile--sm { width: 28px; height: 28px; border-radius: var(--pr-radius-xs, 0.375rem); }
4207
+ .pr-icon-tile--lg { width: 44px; height: 44px; border-radius: var(--pr-radius-md, 0.75rem); }
4208
+ .pr-icon-tile--yellow { background: var(--pr-tone-yellow-bg); color: var(--pr-tone-yellow-fg); }
4209
+ .pr-icon-tile--blue { background: var(--pr-tone-blue-bg); color: var(--pr-tone-blue-fg); }
4210
+ .pr-icon-tile--amber { background: var(--pr-tone-amber-bg); color: var(--pr-tone-amber-fg); }
4211
+ .pr-icon-tile--purple { background: var(--pr-tone-purple-bg); color: var(--pr-tone-purple-fg); }
4212
+ .pr-icon-tile--green { background: var(--pr-tone-green-bg); color: var(--pr-tone-green-fg); }
4213
+ .pr-icon-tile--rose { background: var(--pr-tone-rose-bg); color: var(--pr-tone-rose-fg); }
4214
+ .pr-icon-tile--danger {
4215
+ background: color-mix(in srgb, var(--pr-danger) 14%, transparent);
4216
+ color: var(--pr-danger);
4217
+ }
4218
+ .pr-icon-tile--success {
4219
+ background: color-mix(in srgb, var(--pr-success) 14%, transparent);
4220
+ color: var(--pr-success);
4221
+ }
4222
+ .pr-icon-tile--warning {
4223
+ background: color-mix(in srgb, var(--pr-warning) 14%, transparent);
4224
+ color: var(--pr-warning);
4225
+ }
4226
+ .pr-icon-tile--info {
4227
+ background: color-mix(in srgb, var(--pr-info) 14%, transparent);
4228
+ color: var(--pr-info);
4229
+ }
4230
+
4231
+ /* ───────────────────────── Avatar ───────────────────────── */
4232
+
4233
+ /* A person by initials in a stable tint. The root is the named image; the
4234
+ initials inside are decoration. */
4235
+ .pr-avatar {
4236
+ position: relative;
4237
+ display: inline-flex;
4238
+ flex: 0 0 auto;
4239
+ align-items: center;
4240
+ justify-content: center;
4241
+ overflow: hidden;
4242
+ width: 24px;
4243
+ height: 24px;
4244
+ border-radius: 999px;
4245
+ background: var(--pr-tone-blue-bg);
4246
+ color: var(--pr-tone-blue-fg);
4247
+ font-family: var(--pr-font-body, inherit);
4248
+ font-size: 9px;
4249
+ font-weight: 700;
4250
+ line-height: 1;
4251
+ letter-spacing: 0.02em;
4252
+ user-select: none;
4253
+ }
4254
+ .pr-avatar--xs { width: 20px; height: 20px; font-size: 8px; }
4255
+ .pr-avatar--md { width: 32px; height: 32px; font-size: 11px; }
4256
+ .pr-avatar--lg { width: 40px; height: 40px; font-size: 13px; }
4257
+ .pr-avatar--yellow { background: var(--pr-tone-yellow-bg); color: var(--pr-tone-yellow-fg); }
4258
+ .pr-avatar--blue { background: var(--pr-tone-blue-bg); color: var(--pr-tone-blue-fg); }
4259
+ .pr-avatar--amber { background: var(--pr-tone-amber-bg); color: var(--pr-tone-amber-fg); }
4260
+ .pr-avatar--purple { background: var(--pr-tone-purple-bg); color: var(--pr-tone-purple-fg); }
4261
+ .pr-avatar--green { background: var(--pr-tone-green-bg); color: var(--pr-tone-green-fg); }
4262
+ .pr-avatar--rose { background: var(--pr-tone-rose-bg); color: var(--pr-tone-rose-fg); }
4263
+ .pr-avatar__image {
4264
+ display: block;
4265
+ width: 100%;
4266
+ height: 100%;
4267
+ object-fit: cover;
4268
+ }
4269
+ .pr-avatar__initials { display: inline-block; }
4270
+
4271
+ /* ───────────────────────── TableFrame ───────────────────────── */
4272
+
4273
+ /* A strict assembly of Card, CardHeader and a bleeding CardContent. `clip`
4274
+ rounds the corners without making the frame a scroll container, so a pinned
4275
+ header inside a capped table keeps working. */
4276
+ .pr-table-frame { position: relative; }
4277
+ .pr-card.pr-table-frame { overflow: clip; }
4278
+ .pr-table-frame__header { align-items: center; }
4279
+ .pr-table-frame__title {
4280
+ display: inline-flex;
4281
+ align-items: center;
4282
+ gap: 8px;
4283
+ min-width: 0;
4284
+ max-width: 100%;
4285
+ }
4286
+ .pr-table-frame__title-text {
4287
+ min-width: 0;
4288
+ overflow: hidden;
4289
+ text-overflow: ellipsis;
4290
+ white-space: nowrap;
4291
+ }
4292
+ .pr-table-frame__icon {
4293
+ flex: 0 0 auto;
4294
+ color: var(--pr-fg-muted);
4295
+ }
4296
+ .pr-table-frame__count { font-variant-numeric: tabular-nums; }
4297
+ /* The header and the rows meet on one line; a frame with no header starts at the rows. */
4298
+ .pr-table-frame__body { border-top: 1px solid var(--pr-border); }
4299
+ .pr-table-frame__body:first-child { border-top: 0; }
4300
+ /* Any table inside the frame drops its own surface: the frame is the border. */
4301
+ .pr-table-frame .pr-table__shell {
4302
+ border: 0;
4303
+ border-radius: 0;
4304
+ background: none;
4305
+ }
4306
+ .pr-table-frame .pr-table__scroll--compound {
4307
+ border-radius: 0;
4308
+ background: none;
4309
+ box-shadow: none;
4310
+ }
4311
+ /* The bleeding body ends with a negative margin the footer cancels, so the two
4312
+ meet exactly; the footer then bleeds to the same edges. */
4313
+ .pr-table-frame__footer {
4314
+ margin-top: var(--pr-card-pad, 0px);
4315
+ margin-inline: calc(-1 * var(--pr-card-pad, 0px));
4316
+ margin-bottom: calc(-1 * var(--pr-card-pad, 0px));
4317
+ padding: 12px var(--pr-card-pad, 16px);
4318
+ border-top: 1px solid var(--pr-border);
4319
+ background: var(--pr-surface);
4320
+ }
4321
+
4322
+ /* The compound sibling of `Table loading`: same rows, announced once. */
4323
+ .pr-table-skeleton { display: block; }
4324
+
4325
+ /* ───────────────────────── DateRangeFilter ───────────────────────── */
4326
+
4327
+ /* One pill names the window of a list and opens the presets plus a calendar
4328
+ for a custom range. The trigger shares its box with the MultiSelect filter
4329
+ so a toolbar row aligns; an active window takes the same yellow tint. */
4330
+ .pr-date-range {
4331
+ position: relative;
4332
+ display: inline-flex;
4333
+ min-width: 0;
4334
+ font-family: var(--pr-font-body, inherit);
4335
+ }
4336
+ .pr-date-range__trigger {
4337
+ display: inline-flex;
4338
+ align-items: center;
4339
+ gap: 8px;
4340
+ min-height: 40px;
4341
+ padding: 0 10px;
4342
+ border: 1px solid var(--pr-border);
4343
+ border-radius: var(--pr-radius-md, 0.75rem);
4344
+ background: var(--pr-surface);
4345
+ color: var(--pr-fg);
4346
+ font-size: 12px;
4347
+ font-weight: 500;
4348
+ line-height: 1;
4349
+ white-space: nowrap;
4350
+ cursor: pointer;
4351
+ transition-property: border-color, box-shadow, background-color;
4352
+ transition-duration: 160ms;
4353
+ transition-timing-function: var(--pr-ease, ease);
4354
+ }
4355
+ .pr-date-range__trigger--md {
4356
+ padding: 0 12px;
4357
+ font-size: 14px;
4358
+ }
4359
+ .pr-date-range__trigger:hover { border-color: var(--pr-border-strong); }
4360
+ .pr-date-range__trigger--active {
4361
+ background: var(--pr-tone-yellow-bg);
4362
+ border-color: var(--pr-tone-yellow-border);
4363
+ font-weight: 650;
4364
+ }
4365
+ .pr-date-range__trigger--open,
4366
+ .pr-date-range__trigger:focus-visible {
4367
+ outline: none;
4368
+ border-color: var(--pr-accent-strong);
4369
+ box-shadow: var(--pr-focus-ring);
4370
+ }
4371
+ .pr-date-range__icon,
4372
+ .pr-date-range__chevron {
4373
+ flex: 0 0 auto;
4374
+ color: var(--pr-fg-faint);
4375
+ }
4376
+ .pr-date-range__trigger--active .pr-date-range__icon { color: var(--pr-fg-muted); }
4377
+ .pr-date-range__chevron { transition: transform 160ms var(--pr-ease, ease); }
4378
+ .pr-date-range__trigger--open .pr-date-range__chevron { transform: rotate(180deg); }
4379
+ .pr-date-range__value {
4380
+ min-width: 0;
4381
+ overflow: hidden;
4382
+ text-overflow: ellipsis;
4383
+ white-space: nowrap;
4384
+ }
4385
+ /* The panel owns its inset (popover padding is `none`): the calendar is 348px wide. */
4386
+ .pr-date-range__content {
4387
+ width: min(372px, calc(100vw - 16px));
4388
+ padding: 6px;
4389
+ }
4390
+ .pr-date-range__presets {
4391
+ display: flex;
4392
+ flex-direction: column;
4393
+ gap: 2px;
4394
+ padding: 2px;
4395
+ }
4396
+ .pr-date-range__preset {
4397
+ display: flex;
4398
+ align-items: center;
4399
+ justify-content: space-between;
4400
+ gap: 12px;
4401
+ width: 100%;
4402
+ min-height: 40px;
4403
+ padding: 0 10px;
4404
+ border: 0;
4405
+ border-radius: var(--pr-radius-sm, 0.625rem);
4406
+ background: transparent;
4407
+ color: var(--pr-fg-muted);
4408
+ font: inherit;
4409
+ font-size: 14px;
4410
+ text-align: left;
4411
+ cursor: pointer;
4412
+ transition-property: background-color, color;
4413
+ transition-duration: 160ms;
4414
+ transition-timing-function: var(--pr-ease, ease);
4415
+ }
4416
+ .pr-date-range__preset:hover {
4417
+ background: var(--pr-surface);
4418
+ color: var(--pr-fg);
4419
+ }
4420
+ .pr-date-range__preset:focus-visible {
4421
+ outline: none;
4422
+ box-shadow: var(--pr-focus-ring);
4423
+ }
4424
+ .pr-date-range__preset[aria-pressed='true'] {
4425
+ color: var(--pr-fg);
4426
+ font-weight: 650;
4427
+ }
4428
+ /* A preset whose range fails the invariant or the limits stays visible, muted. */
4429
+ .pr-date-range__preset:disabled {
4430
+ opacity: 0.5;
4431
+ cursor: not-allowed;
4432
+ }
4433
+ .pr-date-range__trigger[data-invalid] { border-style: dashed; }
4434
+ .pr-date-range__check {
4435
+ flex: 0 0 auto;
4436
+ color: var(--pr-fg);
4437
+ }
4438
+ .pr-date-range__custom {
4439
+ margin-top: 6px;
4440
+ padding: 10px 6px 6px;
4441
+ border-top: 1px solid var(--pr-border);
4442
+ }
4443
+ .pr-date-range__custom-title {
4444
+ margin: 0 0 8px;
4445
+ padding: 0 4px;
4446
+ font-size: 11px;
4447
+ font-weight: 600;
4448
+ letter-spacing: 0.12em;
4449
+ text-transform: uppercase;
4450
+ color: var(--pr-fg-muted);
4451
+ }
4452
+ .pr-date-range__bounds {
4453
+ display: grid;
4454
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4455
+ gap: 8px;
4456
+ margin: 0 0 8px;
4457
+ padding: 0 4px;
4458
+ }
4459
+ .pr-date-range__bound dt {
4460
+ font-size: 11px;
4461
+ font-weight: 600;
4462
+ letter-spacing: 0.08em;
4463
+ text-transform: uppercase;
4464
+ color: var(--pr-fg-faint);
4465
+ }
4466
+ .pr-date-range__bound dd {
4467
+ margin: 2px 0 0;
4468
+ font-size: 13px;
4469
+ font-weight: 600;
4470
+ font-variant-numeric: tabular-nums;
4471
+ color: var(--pr-fg);
4472
+ }
4473
+ /* The calendar sits inside the panel, which is already a surface. */
4474
+ .pr-date-range__calendar {
4475
+ width: 100%;
4476
+ padding: 0;
4477
+ border: 0;
4478
+ border-radius: 0;
4479
+ background: transparent;
4480
+ box-shadow: none;
4481
+ }
4482
+ .pr-date-range__actions {
4483
+ display: flex;
4484
+ justify-content: flex-end;
4485
+ gap: 8px;
4486
+ margin-top: 8px;
4487
+ padding-top: 8px;
4488
+ border-top: 1px solid var(--pr-border);
4489
+ }