@revikornmann/muka-ui 0.50.0 → 0.51.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.
Files changed (56) hide show
  1. package/dist/cjs/components/BadgeNumber/BadgeNumber.css +8 -0
  2. package/dist/cjs/components/BadgeNumber/BadgeNumber.js +3 -3
  3. package/dist/cjs/components/BadgeNumber/BadgeNumber.js.map +1 -1
  4. package/dist/cjs/components/BottomBar/BottomBar.css +10 -0
  5. package/dist/cjs/components/BottomBar/BottomBar.js +4 -2
  6. package/dist/cjs/components/BottomBar/BottomBar.js.map +1 -1
  7. package/dist/cjs/components/FileUpload/FileUpload.js +31 -13
  8. package/dist/cjs/components/FileUpload/FileUpload.js.map +1 -1
  9. package/dist/cjs/components/FileUpload/FileUploadItem.js +11 -3
  10. package/dist/cjs/components/FileUpload/FileUploadItem.js.map +1 -1
  11. package/dist/cjs/components/FileUpload/index.js.map +1 -1
  12. package/dist/cjs/components/ListItem/ListItem.css +19 -0
  13. package/dist/cjs/components/ListItem/ListItem.js +3 -3
  14. package/dist/cjs/components/ListItem/ListItem.js.map +1 -1
  15. package/dist/cjs/components/View/View.css +5 -3
  16. package/dist/cjs/components/index.js.map +1 -1
  17. package/dist/esm/components/BadgeNumber/BadgeNumber.css +8 -0
  18. package/dist/esm/components/BadgeNumber/BadgeNumber.js +3 -3
  19. package/dist/esm/components/BadgeNumber/BadgeNumber.js.map +1 -1
  20. package/dist/esm/components/BottomBar/BottomBar.css +10 -0
  21. package/dist/esm/components/BottomBar/BottomBar.js +4 -2
  22. package/dist/esm/components/BottomBar/BottomBar.js.map +1 -1
  23. package/dist/esm/components/FileUpload/FileUpload.js +32 -14
  24. package/dist/esm/components/FileUpload/FileUpload.js.map +1 -1
  25. package/dist/esm/components/FileUpload/FileUploadItem.js +10 -2
  26. package/dist/esm/components/FileUpload/FileUploadItem.js.map +1 -1
  27. package/dist/esm/components/FileUpload/index.js.map +1 -1
  28. package/dist/esm/components/ListItem/ListItem.css +19 -0
  29. package/dist/esm/components/ListItem/ListItem.js +3 -3
  30. package/dist/esm/components/ListItem/ListItem.js.map +1 -1
  31. package/dist/esm/components/View/View.css +5 -3
  32. package/dist/esm/components/index.js.map +1 -1
  33. package/dist/styles/components/BadgeNumber.css +8 -0
  34. package/dist/styles/components/BottomBar.css +10 -0
  35. package/dist/styles/components/ListItem.css +19 -0
  36. package/dist/styles/components/View.css +5 -3
  37. package/dist/styles/index.css +1154 -1115
  38. package/dist/styles/muka-dark.css +1154 -1115
  39. package/dist/styles/muka-light.css +1154 -1115
  40. package/dist/styles/wireframe-dark.css +1154 -1115
  41. package/dist/styles/wireframe-light.css +1154 -1115
  42. package/dist/types/components/BadgeNumber/BadgeNumber.d.ts +7 -1
  43. package/dist/types/components/BadgeNumber/BadgeNumber.d.ts.map +1 -1
  44. package/dist/types/components/BottomBar/BottomBar.d.ts +7 -0
  45. package/dist/types/components/BottomBar/BottomBar.d.ts.map +1 -1
  46. package/dist/types/components/FileUpload/FileUpload.d.ts +46 -6
  47. package/dist/types/components/FileUpload/FileUpload.d.ts.map +1 -1
  48. package/dist/types/components/FileUpload/FileUploadItem.d.ts +19 -0
  49. package/dist/types/components/FileUpload/FileUploadItem.d.ts.map +1 -1
  50. package/dist/types/components/FileUpload/index.d.ts +1 -1
  51. package/dist/types/components/FileUpload/index.d.ts.map +1 -1
  52. package/dist/types/components/ListItem/ListItem.d.ts +8 -1
  53. package/dist/types/components/ListItem/ListItem.d.ts.map +1 -1
  54. package/dist/types/components/index.d.ts +1 -1
  55. package/dist/types/components/index.d.ts.map +1 -1
  56. package/package.json +1 -1
@@ -2609,9 +2609,11 @@ body {
2609
2609
  padding-right: env(safe-area-inset-right, 0px);
2610
2610
  }
2611
2611
 
2612
- /* Home indicator: a View without a footer pads its own body. A footer holds a
2613
- BottomBar, which pads itself, so the body must not do it twice. */
2614
- .muka-view__body:not(:has(.muka-view__footer)) {
2612
+ /* Home indicator: the body pads for it only when nothing inside does. A
2613
+ BottomBar pads itself, whether it sits in the footer slot or in the content
2614
+ (a chat composer pinned under a message list), so the body must not do it
2615
+ twice; doing so left a strip of body colour under the bar. */
2616
+ .muka-view__body:not(:has(.muka-view__footer, .muka-bottombar:not(.muka-bottombar--no-safe-area))) {
2615
2617
  padding-bottom: env(safe-area-inset-bottom, 0px);
2616
2618
  }
2617
2619
 
@@ -5540,81 +5542,6 @@ body {
5540
5542
  }
5541
5543
 
5542
5544
 
5543
- /* Skeleton */
5544
- /* Skeleton Component Styles */
5545
-
5546
- .muka-skeleton {
5547
- background-color: var(--color-surface-level1);
5548
- display: block;
5549
- }
5550
-
5551
- /* Variants */
5552
- .muka-skeleton--text {
5553
- height: 1em;
5554
- border-radius: var(--radius-md);
5555
- width: 100%;
5556
- }
5557
-
5558
- .muka-skeleton--circular {
5559
- width: 2.5rem;
5560
- height: 2.5rem;
5561
- border-radius: var(--radius-full);
5562
- }
5563
-
5564
- .muka-skeleton--rectangular {
5565
- height: 7.5rem;
5566
- border-radius: var(--radius-md);
5567
- width: 100%;
5568
- }
5569
-
5570
- /* Last line in multi-line text is shorter */
5571
- .muka-skeleton--last-line {
5572
- width: 80%;
5573
- }
5574
-
5575
- /* Lines container */
5576
- .muka-skeleton__lines {
5577
- display: flex;
5578
- flex-direction: column;
5579
- gap: var(--spacing-2);
5580
- }
5581
-
5582
- /* Shimmer animation */
5583
- @keyframes muka-skeleton-shimmer {
5584
- 0% {
5585
- background-position: -200% 0;
5586
- }
5587
- 100% {
5588
- background-position: 200% 0;
5589
- }
5590
- }
5591
-
5592
- .muka-skeleton--shimmer {
5593
- background: linear-gradient(
5594
- 90deg,
5595
- var(--color-surface-level1) 25%,
5596
- var(--color-surface-level2) 50%,
5597
- var(--color-surface-level1) 75%
5598
- );
5599
- background-size: 200% 100%;
5600
- animation: muka-skeleton-shimmer 1.5s ease-in-out infinite;
5601
- }
5602
-
5603
- /* Pulse animation */
5604
- @keyframes muka-skeleton-pulse {
5605
- 0%, 100% {
5606
- opacity: 1;
5607
- }
5608
- 50% {
5609
- opacity: 0.4;
5610
- }
5611
- }
5612
-
5613
- .muka-skeleton--pulse {
5614
- animation: muka-skeleton-pulse 1.5s ease-in-out infinite;
5615
- }
5616
-
5617
-
5618
5545
  /* SiteHeader */
5619
5546
  /* SiteHeader Component Styles */
5620
5547
 
@@ -5722,6 +5649,81 @@ body {
5722
5649
  }
5723
5650
 
5724
5651
 
5652
+ /* Skeleton */
5653
+ /* Skeleton Component Styles */
5654
+
5655
+ .muka-skeleton {
5656
+ background-color: var(--color-surface-level1);
5657
+ display: block;
5658
+ }
5659
+
5660
+ /* Variants */
5661
+ .muka-skeleton--text {
5662
+ height: 1em;
5663
+ border-radius: var(--radius-md);
5664
+ width: 100%;
5665
+ }
5666
+
5667
+ .muka-skeleton--circular {
5668
+ width: 2.5rem;
5669
+ height: 2.5rem;
5670
+ border-radius: var(--radius-full);
5671
+ }
5672
+
5673
+ .muka-skeleton--rectangular {
5674
+ height: 7.5rem;
5675
+ border-radius: var(--radius-md);
5676
+ width: 100%;
5677
+ }
5678
+
5679
+ /* Last line in multi-line text is shorter */
5680
+ .muka-skeleton--last-line {
5681
+ width: 80%;
5682
+ }
5683
+
5684
+ /* Lines container */
5685
+ .muka-skeleton__lines {
5686
+ display: flex;
5687
+ flex-direction: column;
5688
+ gap: var(--spacing-2);
5689
+ }
5690
+
5691
+ /* Shimmer animation */
5692
+ @keyframes muka-skeleton-shimmer {
5693
+ 0% {
5694
+ background-position: -200% 0;
5695
+ }
5696
+ 100% {
5697
+ background-position: 200% 0;
5698
+ }
5699
+ }
5700
+
5701
+ .muka-skeleton--shimmer {
5702
+ background: linear-gradient(
5703
+ 90deg,
5704
+ var(--color-surface-level1) 25%,
5705
+ var(--color-surface-level2) 50%,
5706
+ var(--color-surface-level1) 75%
5707
+ );
5708
+ background-size: 200% 100%;
5709
+ animation: muka-skeleton-shimmer 1.5s ease-in-out infinite;
5710
+ }
5711
+
5712
+ /* Pulse animation */
5713
+ @keyframes muka-skeleton-pulse {
5714
+ 0%, 100% {
5715
+ opacity: 1;
5716
+ }
5717
+ 50% {
5718
+ opacity: 0.4;
5719
+ }
5720
+ }
5721
+
5722
+ .muka-skeleton--pulse {
5723
+ animation: muka-skeleton-pulse 1.5s ease-in-out infinite;
5724
+ }
5725
+
5726
+
5725
5727
  /* Sheet */
5726
5728
  /* Sheet Component Styles */
5727
5729
 
@@ -5998,29 +6000,6 @@ body {
5998
6000
  }
5999
6001
 
6000
6002
 
6001
- /* Section */
6002
- /* Section Component - Layout tokens (section.padding) */
6003
-
6004
- .muka-section {
6005
- box-sizing: border-box;
6006
- }
6007
-
6008
- .muka-section--padding-compact {
6009
- padding-block: var(--section-padding-vertical-compact);
6010
- padding-inline: var(--section-padding-horizontal-compact);
6011
- }
6012
-
6013
- .muka-section--padding-default {
6014
- padding-block: var(--section-padding-vertical-default);
6015
- padding-inline: var(--section-padding-horizontal-default);
6016
- }
6017
-
6018
- .muka-section--padding-spacious {
6019
- padding-block: var(--section-padding-vertical-spacious);
6020
- padding-inline: var(--section-padding-horizontal-spacious);
6021
- }
6022
-
6023
-
6024
6003
  /* SegmentGroup */
6025
6004
  /* SegmentGroup Component Styles - Using Muka Design Tokens */
6026
6005
 
@@ -6209,6 +6188,29 @@ body {
6209
6188
  }
6210
6189
 
6211
6190
 
6191
+ /* Section */
6192
+ /* Section Component - Layout tokens (section.padding) */
6193
+
6194
+ .muka-section {
6195
+ box-sizing: border-box;
6196
+ }
6197
+
6198
+ .muka-section--padding-compact {
6199
+ padding-block: var(--section-padding-vertical-compact);
6200
+ padding-inline: var(--section-padding-horizontal-compact);
6201
+ }
6202
+
6203
+ .muka-section--padding-default {
6204
+ padding-block: var(--section-padding-vertical-default);
6205
+ padding-inline: var(--section-padding-horizontal-default);
6206
+ }
6207
+
6208
+ .muka-section--padding-spacious {
6209
+ padding-block: var(--section-padding-vertical-spacious);
6210
+ padding-inline: var(--section-padding-horizontal-spacious);
6211
+ }
6212
+
6213
+
6212
6214
  /* SearchInput */
6213
6215
  /* SearchInput Component Styles */
6214
6216
 
@@ -6771,50 +6773,193 @@ body {
6771
6773
  }
6772
6774
 
6773
6775
 
6774
- /* Radio */
6775
- /* Radio Component Styles - Using Muka Design Tokens */
6776
+ /* RadioTile */
6777
+ /* RadioTile Component Styles - Using Muka Design Tokens */
6776
6778
 
6777
- /* Wrapper - clickable label container */
6778
- .muka-radio {
6779
- display: inline-flex;
6779
+ /* Base tile styles - horizontal */
6780
+ .muka-radio-tile {
6781
+ display: flex;
6780
6782
  align-items: center;
6781
6783
  gap: var(--spacing-4);
6784
+ padding: var(--spacing-4);
6785
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
6786
+ border-radius: var(--input-field-radius-lg);
6787
+ background-color: var(--color-surface-level3);
6782
6788
  cursor: pointer;
6783
- user-select: none;
6789
+ transition: border-color 0.15s ease, border-width 0.15s ease;
6790
+ overflow: hidden;
6791
+ box-sizing: border-box;
6784
6792
  }
6785
6793
 
6786
- .muka-radio--disabled {
6794
+ .muka-radio-tile--disabled {
6787
6795
  cursor: not-allowed;
6788
6796
  opacity: 0.6;
6789
6797
  }
6790
6798
 
6791
- /* Control container */
6792
- .muka-radio__control {
6793
- position: relative;
6794
- display: inline-flex;
6799
+ /* Selected state */
6800
+ .muka-radio-tile[data-checked] {
6801
+ border-width: var(--border-width-bold);
6802
+ border-color: var(--color-action-default);
6803
+ }
6804
+
6805
+ /* Vertical layout */
6806
+ .muka-radio-tile--vertical {
6807
+ flex-direction: column;
6795
6808
  align-items: center;
6796
- justify-content: center;
6809
+ gap: var(--spacing-2);
6810
+ position: relative;
6811
+ width: 160px;
6812
+ }
6813
+
6814
+ /* Radio container */
6815
+ .muka-radio-tile__radio {
6797
6816
  flex-shrink: 0;
6798
6817
  }
6799
6818
 
6800
- /* Hidden native input */
6801
- .muka-radio__input {
6819
+ /* Corner-positioned radio for vertical */
6820
+ .muka-radio-tile__radio--corner {
6802
6821
  position: absolute;
6803
- width: 1px;
6804
- height: 1px;
6805
- padding: 0;
6806
- margin: -1px;
6807
- overflow: hidden;
6808
- clip: rect(0, 0, 0, 0);
6809
- white-space: nowrap;
6810
- border: 0;
6822
+ top: var(--spacing-4);
6823
+ left: var(--spacing-4);
6811
6824
  }
6812
6825
 
6813
- /* Visual indicator (circle) */
6814
- .muka-radio__indicator {
6815
- display: flex;
6816
- align-items: center;
6817
- justify-content: center;
6826
+ /* Adjust corner position when selected (border is thicker) */
6827
+ .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
6828
+ top: calc(var(--spacing-4) - 1px);
6829
+ left: calc(var(--spacing-4) - 1px);
6830
+ }
6831
+
6832
+ /* Icon */
6833
+ .muka-radio-tile__icon {
6834
+ display: flex;
6835
+ align-items: center;
6836
+ justify-content: center;
6837
+ flex-shrink: 0;
6838
+ width: var(--icon-size-default);
6839
+ height: var(--icon-size-default);
6840
+ color: var(--color-text-default-default);
6841
+ }
6842
+
6843
+ .muka-radio-tile__icon svg {
6844
+ width: 100%;
6845
+ height: 100%;
6846
+ }
6847
+
6848
+ /* Image */
6849
+ .muka-radio-tile__image {
6850
+ flex-shrink: 0;
6851
+ overflow: hidden;
6852
+ border-radius: var(--border-radius-sm);
6853
+ }
6854
+
6855
+ .muka-radio-tile__image img {
6856
+ display: block;
6857
+ width: 100%;
6858
+ height: 100%;
6859
+ object-fit: cover;
6860
+ }
6861
+
6862
+ /* Horizontal image sizing */
6863
+ .muka-radio-tile__image--horizontal {
6864
+ width: 40px;
6865
+ height: 40px;
6866
+ }
6867
+
6868
+ /* Vertical image sizing */
6869
+ .muka-radio-tile--vertical .muka-radio-tile__image {
6870
+ width: 100%;
6871
+ aspect-ratio: 4/3;
6872
+ }
6873
+
6874
+ /* Content container */
6875
+ .muka-radio-tile__content {
6876
+ display: flex;
6877
+ flex-direction: column;
6878
+ flex: 1;
6879
+ min-width: 0;
6880
+ gap: var(--spacing-1);
6881
+ }
6882
+
6883
+ /* Label */
6884
+ .muka-radio-tile__label {
6885
+ font-family: var(--text-body-lg-regular-fontFamily);
6886
+ font-weight: var(--text-body-lg-regular-fontWeight);
6887
+ font-size: var(--text-body-lg-regular-fontSize);
6888
+ line-height: var(--text-body-lg-regular-lineHeight);
6889
+ color: var(--color-text-default-default);
6890
+ }
6891
+
6892
+ .muka-radio-tile__label--bold {
6893
+ font-family: var(--text-label-lg-semibold-fontFamily);
6894
+ font-weight: var(--text-label-lg-semibold-fontWeight);
6895
+ font-size: var(--text-label-lg-semibold-fontSize);
6896
+ line-height: var(--text-label-lg-semibold-lineHeight);
6897
+ }
6898
+
6899
+ .muka-radio-tile__label--center {
6900
+ text-align: center;
6901
+ }
6902
+
6903
+ /* Caption */
6904
+ .muka-radio-tile__caption {
6905
+ font-family: var(--text-body-base-regular-fontFamily);
6906
+ font-weight: var(--text-body-base-regular-fontWeight);
6907
+ font-size: var(--text-body-base-regular-fontSize);
6908
+ line-height: var(--text-body-base-regular-lineHeight);
6909
+ color: var(--color-text-subtle-default);
6910
+ }
6911
+
6912
+ /* Disabled states */
6913
+ .muka-radio-tile--disabled .muka-radio-tile__label,
6914
+ .muka-radio-tile--disabled .muka-radio-tile__icon {
6915
+ color: var(--color-text-subtle-default);
6916
+ }
6917
+
6918
+
6919
+ /* Radio */
6920
+ /* Radio Component Styles - Using Muka Design Tokens */
6921
+
6922
+ /* Wrapper - clickable label container */
6923
+ .muka-radio {
6924
+ display: inline-flex;
6925
+ align-items: center;
6926
+ gap: var(--spacing-4);
6927
+ cursor: pointer;
6928
+ user-select: none;
6929
+ }
6930
+
6931
+ .muka-radio--disabled {
6932
+ cursor: not-allowed;
6933
+ opacity: 0.6;
6934
+ }
6935
+
6936
+ /* Control container */
6937
+ .muka-radio__control {
6938
+ position: relative;
6939
+ display: inline-flex;
6940
+ align-items: center;
6941
+ justify-content: center;
6942
+ flex-shrink: 0;
6943
+ }
6944
+
6945
+ /* Hidden native input */
6946
+ .muka-radio__input {
6947
+ position: absolute;
6948
+ width: 1px;
6949
+ height: 1px;
6950
+ padding: 0;
6951
+ margin: -1px;
6952
+ overflow: hidden;
6953
+ clip: rect(0, 0, 0, 0);
6954
+ white-space: nowrap;
6955
+ border: 0;
6956
+ }
6957
+
6958
+ /* Visual indicator (circle) */
6959
+ .muka-radio__indicator {
6960
+ display: flex;
6961
+ align-items: center;
6962
+ justify-content: center;
6818
6963
  width: var(--radio-size-default);
6819
6964
  height: var(--radio-size-default);
6820
6965
  border-radius: var(--border-radius-full);
@@ -6915,223 +7060,80 @@ body {
6915
7060
  }
6916
7061
 
6917
7062
 
6918
- /* RadioTile */
6919
- /* RadioTile Component Styles - Using Muka Design Tokens */
7063
+ /* PullToRefresh */
7064
+ /* PullToRefresh Component Styles */
6920
7065
 
6921
- /* Base tile styles - horizontal */
6922
- .muka-radio-tile {
7066
+ .muka-pull-to-refresh {
7067
+ position: relative;
6923
7068
  display: flex;
6924
- align-items: center;
6925
- gap: var(--spacing-4);
6926
- padding: var(--spacing-4);
6927
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
6928
- border-radius: var(--input-field-radius-lg);
6929
- background-color: var(--color-surface-level3);
6930
- cursor: pointer;
6931
- transition: border-color 0.15s ease, border-width 0.15s ease;
7069
+ flex-direction: column;
7070
+ width: 100%;
7071
+ height: 100%;
6932
7072
  overflow: hidden;
6933
- box-sizing: border-box;
6934
- }
6935
-
6936
- .muka-radio-tile--disabled {
6937
- cursor: not-allowed;
6938
- opacity: 0.6;
6939
7073
  }
6940
7074
 
6941
- /* Selected state */
6942
- .muka-radio-tile[data-checked] {
6943
- border-width: var(--border-width-bold);
6944
- border-color: var(--color-action-default);
7075
+ .muka-pull-to-refresh__indicator {
7076
+ position: absolute;
7077
+ top: 0;
7078
+ left: 0;
7079
+ right: 0;
7080
+ display: flex;
7081
+ align-items: flex-end;
7082
+ justify-content: center;
7083
+ padding-bottom: var(--spacing-2);
7084
+ color: var(--color-text-subtle-default);
7085
+ overflow: hidden;
7086
+ pointer-events: none;
7087
+ z-index: 1;
6945
7088
  }
6946
7089
 
6947
- /* Vertical layout */
6948
- .muka-radio-tile--vertical {
6949
- flex-direction: column;
7090
+ .muka-pull-to-refresh__chevron {
7091
+ display: inline-flex;
6950
7092
  align-items: center;
6951
- gap: var(--spacing-2);
6952
- position: relative;
6953
- width: 160px;
7093
+ justify-content: center;
7094
+ transition: transform 0.16s ease;
6954
7095
  }
6955
7096
 
6956
- /* Radio container */
6957
- .muka-radio-tile__radio {
6958
- flex-shrink: 0;
7097
+ .muka-pull-to-refresh__scroller {
7098
+ flex: 1 1 auto;
7099
+ min-height: 0;
7100
+ width: 100%;
7101
+ overflow-x: clip;
7102
+ overflow-y: auto;
7103
+ -webkit-overflow-scrolling: touch;
7104
+ overscroll-behavior-y: contain;
7105
+ touch-action: pan-y;
7106
+ will-change: transform;
6959
7107
  }
6960
7108
 
6961
- /* Corner-positioned radio for vertical */
6962
- .muka-radio-tile__radio--corner {
6963
- position: absolute;
6964
- top: var(--spacing-4);
6965
- left: var(--spacing-4);
6966
- }
6967
7109
 
6968
- /* Adjust corner position when selected (border is thicker) */
6969
- .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
6970
- top: calc(var(--spacing-4) - 1px);
6971
- left: calc(var(--spacing-4) - 1px);
6972
- }
7110
+ /* ProgressAccordeon */
7111
+ /* ProgressAccordeon Component Styles — Using Muka Design Tokens */
6973
7112
 
6974
- /* Icon */
6975
- .muka-radio-tile__icon {
7113
+ /* ─── Root ──────────────────────────────────────────────── */
7114
+ .muka-progress-accordeon {
7115
+ container-type: inline-size;
6976
7116
  display: flex;
6977
- align-items: center;
6978
- justify-content: center;
6979
- flex-shrink: 0;
6980
- width: var(--icon-size-default);
6981
- height: var(--icon-size-default);
6982
- color: var(--color-text-default-default);
6983
- }
6984
-
6985
- .muka-radio-tile__icon svg {
7117
+ flex-direction: column;
7118
+ align-items: stretch;
6986
7119
  width: 100%;
6987
- height: 100%;
7120
+ /* Top padding provides the vertical rhythm between stacked steps */
7121
+ padding-top: var(--spacing-8);
6988
7122
  }
6989
7123
 
6990
- /* Image */
6991
- .muka-radio-tile__image {
6992
- flex-shrink: 0;
6993
- overflow: hidden;
6994
- border-radius: var(--border-radius-sm);
7124
+ /* Per-state gap: content-bearing steps are tighter, header-only steps looser */
7125
+ .muka-progress-accordeon--current,
7126
+ .muka-progress-accordeon--current.muka-progress-accordeon--expanded,
7127
+ .muka-progress-accordeon--past.muka-progress-accordeon--expanded,
7128
+ .muka-progress-accordeon--upcoming.muka-progress-accordeon--expanded {
7129
+ gap: var(--spacing-6);
6995
7130
  }
6996
7131
 
6997
- .muka-radio-tile__image img {
6998
- display: block;
6999
- width: 100%;
7000
- height: 100%;
7001
- object-fit: cover;
7002
- }
7003
-
7004
- /* Horizontal image sizing */
7005
- .muka-radio-tile__image--horizontal {
7006
- width: 40px;
7007
- height: 40px;
7008
- }
7009
-
7010
- /* Vertical image sizing */
7011
- .muka-radio-tile--vertical .muka-radio-tile__image {
7012
- width: 100%;
7013
- aspect-ratio: 4/3;
7014
- }
7015
-
7016
- /* Content container */
7017
- .muka-radio-tile__content {
7018
- display: flex;
7019
- flex-direction: column;
7020
- flex: 1;
7021
- min-width: 0;
7022
- gap: var(--spacing-1);
7023
- }
7024
-
7025
- /* Label */
7026
- .muka-radio-tile__label {
7027
- font-family: var(--text-body-lg-regular-fontFamily);
7028
- font-weight: var(--text-body-lg-regular-fontWeight);
7029
- font-size: var(--text-body-lg-regular-fontSize);
7030
- line-height: var(--text-body-lg-regular-lineHeight);
7031
- color: var(--color-text-default-default);
7032
- }
7033
-
7034
- .muka-radio-tile__label--bold {
7035
- font-family: var(--text-label-lg-semibold-fontFamily);
7036
- font-weight: var(--text-label-lg-semibold-fontWeight);
7037
- font-size: var(--text-label-lg-semibold-fontSize);
7038
- line-height: var(--text-label-lg-semibold-lineHeight);
7039
- }
7040
-
7041
- .muka-radio-tile__label--center {
7042
- text-align: center;
7043
- }
7044
-
7045
- /* Caption */
7046
- .muka-radio-tile__caption {
7047
- font-family: var(--text-body-base-regular-fontFamily);
7048
- font-weight: var(--text-body-base-regular-fontWeight);
7049
- font-size: var(--text-body-base-regular-fontSize);
7050
- line-height: var(--text-body-base-regular-lineHeight);
7051
- color: var(--color-text-subtle-default);
7052
- }
7053
-
7054
- /* Disabled states */
7055
- .muka-radio-tile--disabled .muka-radio-tile__label,
7056
- .muka-radio-tile--disabled .muka-radio-tile__icon {
7057
- color: var(--color-text-subtle-default);
7058
- }
7059
-
7060
-
7061
- /* PullToRefresh */
7062
- /* PullToRefresh Component Styles */
7063
-
7064
- .muka-pull-to-refresh {
7065
- position: relative;
7066
- display: flex;
7067
- flex-direction: column;
7068
- width: 100%;
7069
- height: 100%;
7070
- overflow: hidden;
7071
- }
7072
-
7073
- .muka-pull-to-refresh__indicator {
7074
- position: absolute;
7075
- top: 0;
7076
- left: 0;
7077
- right: 0;
7078
- display: flex;
7079
- align-items: flex-end;
7080
- justify-content: center;
7081
- padding-bottom: var(--spacing-2);
7082
- color: var(--color-text-subtle-default);
7083
- overflow: hidden;
7084
- pointer-events: none;
7085
- z-index: 1;
7086
- }
7087
-
7088
- .muka-pull-to-refresh__chevron {
7089
- display: inline-flex;
7090
- align-items: center;
7091
- justify-content: center;
7092
- transition: transform 0.16s ease;
7093
- }
7094
-
7095
- .muka-pull-to-refresh__scroller {
7096
- flex: 1 1 auto;
7097
- min-height: 0;
7098
- width: 100%;
7099
- overflow-x: clip;
7100
- overflow-y: auto;
7101
- -webkit-overflow-scrolling: touch;
7102
- overscroll-behavior-y: contain;
7103
- touch-action: pan-y;
7104
- will-change: transform;
7105
- }
7106
-
7107
-
7108
- /* ProgressAccordeon */
7109
- /* ProgressAccordeon Component Styles — Using Muka Design Tokens */
7110
-
7111
- /* ─── Root ──────────────────────────────────────────────── */
7112
- .muka-progress-accordeon {
7113
- container-type: inline-size;
7114
- display: flex;
7115
- flex-direction: column;
7116
- align-items: stretch;
7117
- width: 100%;
7118
- /* Top padding provides the vertical rhythm between stacked steps */
7119
- padding-top: var(--spacing-8);
7120
- }
7121
-
7122
- /* Per-state gap: content-bearing steps are tighter, header-only steps looser */
7123
- .muka-progress-accordeon--current,
7124
- .muka-progress-accordeon--current.muka-progress-accordeon--expanded,
7125
- .muka-progress-accordeon--past.muka-progress-accordeon--expanded,
7126
- .muka-progress-accordeon--upcoming.muka-progress-accordeon--expanded {
7127
- gap: var(--spacing-6);
7128
- }
7129
-
7130
- .muka-progress-accordeon--upcoming,
7131
- .muka-progress-accordeon--past.muka-progress-accordeon--collapsed,
7132
- .muka-progress-accordeon--upcoming.muka-progress-accordeon--collapsed,
7133
- .muka-progress-accordeon--current.muka-progress-accordeon--collapsed {
7134
- gap: var(--spacing-8);
7132
+ .muka-progress-accordeon--upcoming,
7133
+ .muka-progress-accordeon--past.muka-progress-accordeon--collapsed,
7134
+ .muka-progress-accordeon--upcoming.muka-progress-accordeon--collapsed,
7135
+ .muka-progress-accordeon--current.muka-progress-accordeon--collapsed {
7136
+ gap: var(--spacing-8);
7135
7137
  }
7136
7138
 
7137
7139
  /* Collapsible steps group header + slot. The header↔content gap lives inside the
@@ -9983,6 +9985,25 @@ button.muka-progress-tracker__tab:focus-visible {
9983
9985
  white-space: nowrap;
9984
9986
  }
9985
9987
 
9988
+ /*
9989
+ * Trailing content: time, BadgeNumber, a dot. Stacks vertically (a time above
9990
+ * a badge, as in a chat inbox), aligned to the end, and never shrinks the label
9991
+ * below it: the label ellipsises instead.
9992
+ */
9993
+ .muka-listitem__trailing {
9994
+ display: flex;
9995
+ flex-direction: column;
9996
+ align-items: flex-end;
9997
+ justify-content: center;
9998
+ gap: var(--spacing-1);
9999
+ flex-shrink: 0;
10000
+ font-family: var(--alias-font-plain-family);
10001
+ font-size: var(--text-body-sm-fontSize);
10002
+ line-height: var(--text-body-sm-lineHeight);
10003
+ color: var(--color-text-subtle-default);
10004
+ white-space: nowrap;
10005
+ }
10006
+
9986
10007
  /* Trailing chevron */
9987
10008
  .muka-listitem__chevron {
9988
10009
  display: inline-flex;
@@ -14995,221 +15016,65 @@ button.muka-chat-photo-grid__tile:focus-visible {
14995
15016
  }
14996
15017
 
14997
15018
 
14998
- /* ChatAttachmentChip */
14999
- /* ChatAttachmentChip Component Styles */
15019
+ /* Card */
15020
+ /* Card Component Styles - Using Muka Design Tokens */
15000
15021
 
15001
- .muka-chat-attachment-chip {
15002
- position: relative;
15003
- display: inline-flex;
15004
- align-items: center;
15005
- gap: var(--spacing-1);
15006
- max-width: 240px;
15007
- padding: var(--spacing-2) var(--spacing-3);
15008
- background-color: var(--color-surface-level1);
15009
- border: var(--border-width-regular) solid var(--color-border-default);
15010
- border-radius: var(--radius-md);
15022
+ .muka-card {
15023
+ background-color: var(--card-color-default-background);
15024
+ color: var(--card-color-default-foreground);
15025
+ border: var(--border-width-regular) solid var(--card-color-default-border);
15026
+ box-shadow: var(--card-shadow-default);
15027
+ transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
15011
15028
  overflow: hidden;
15012
15029
  }
15013
15030
 
15014
- .muka-chat-attachment-chip--uploading {
15015
- padding-bottom: calc(var(--spacing-2) + 2px);
15031
+ /* Padding variants */
15032
+ .muka-card--padding-none {
15033
+ padding: 0;
15016
15034
  }
15017
15035
 
15018
- .muka-chat-attachment-chip--error {
15019
- border-color: var(--color-state-error-default, var(--color-text-default-default));
15036
+ .muka-card--padding-sm {
15037
+ padding: var(--card-padding-sm);
15020
15038
  }
15021
15039
 
15022
- .muka-chat-attachment-chip--disabled {
15023
- opacity: 0.5;
15024
- pointer-events: none;
15040
+ .muka-card--padding-md {
15041
+ padding: var(--card-padding-md);
15025
15042
  }
15026
15043
 
15027
- /* ─── Body (icon + text) ───────────────────────────────── */
15028
-
15029
- .muka-chat-attachment-chip__body {
15030
- display: inline-flex;
15031
- align-items: center;
15032
- gap: var(--spacing-2);
15033
- min-width: 0;
15034
- flex: 1 1 auto;
15035
- background: none;
15036
- border: none;
15037
- padding: 0;
15038
- margin: 0;
15039
- text-align: left;
15040
- color: inherit;
15041
- font: inherit;
15042
- cursor: default;
15043
- -webkit-tap-highlight-color: transparent;
15044
+ .muka-card--padding-lg {
15045
+ padding: var(--card-padding-lg);
15044
15046
  }
15045
15047
 
15046
- .muka-chat-attachment-chip--interactive .muka-chat-attachment-chip__body {
15047
- cursor: pointer;
15048
+ /* Radius variants */
15049
+ .muka-card--radius-sm {
15050
+ border-radius: var(--card-radius-sm);
15048
15051
  }
15049
15052
 
15050
- .muka-chat-attachment-chip--interactive .muka-chat-attachment-chip__body:focus-visible {
15051
- outline: 2px solid var(--color-action-default);
15052
- outline-offset: 2px;
15053
- border-radius: var(--radius-sm);
15053
+ .muka-card--radius-md {
15054
+ border-radius: var(--card-radius-md);
15054
15055
  }
15055
15056
 
15056
- .muka-chat-attachment-chip__icon {
15057
- display: inline-flex;
15058
- align-items: center;
15059
- justify-content: center;
15060
- flex-shrink: 0;
15061
- color: var(--color-text-subtle-default);
15057
+ .muka-card--radius-lg {
15058
+ border-radius: var(--card-radius-lg);
15062
15059
  }
15063
15060
 
15064
- .muka-chat-attachment-chip__text {
15065
- display: flex;
15066
- flex-direction: column;
15067
- min-width: 0;
15068
- flex: 1 1 auto;
15061
+ /* Interactive variant */
15062
+ .muka-card--interactive {
15063
+ cursor: pointer;
15064
+ user-select: none;
15069
15065
  }
15070
15066
 
15071
- .muka-chat-attachment-chip__name {
15072
- color: var(--color-text-default-default);
15073
- font-family: var(--text-body-sm-regular-fontFamily);
15074
- font-weight: var(--text-body-sm-regular-fontWeight);
15075
- font-size: var(--text-body-sm-regular-fontSize);
15076
- line-height: var(--text-body-sm-regular-lineHeight);
15077
- white-space: nowrap;
15078
- overflow: hidden;
15079
- text-overflow: ellipsis;
15067
+ .muka-card--interactive:hover {
15068
+ background-color: var(--card-color-hover-background);
15069
+ border-color: var(--card-color-hover-border);
15070
+ box-shadow: var(--card-shadow-hover);
15080
15071
  }
15081
15072
 
15082
- .muka-chat-attachment-chip__meta {
15083
- color: var(--color-text-subtle-default);
15084
- font-family: var(--text-body-sm-regular-fontFamily);
15085
- font-weight: var(--text-body-sm-regular-fontWeight);
15086
- font-size: var(--text-body-sm-regular-fontSize);
15087
- line-height: var(--text-body-sm-regular-lineHeight);
15088
- white-space: nowrap;
15089
- overflow: hidden;
15090
- text-overflow: ellipsis;
15091
- }
15092
-
15093
- .muka-chat-attachment-chip--error .muka-chat-attachment-chip__meta {
15094
- color: var(--color-state-error-default, var(--color-text-default-default));
15095
- }
15096
-
15097
- /* ─── Remove button ────────────────────────────────────── */
15098
-
15099
- .muka-chat-attachment-chip__remove {
15100
- display: inline-flex;
15101
- align-items: center;
15102
- justify-content: center;
15103
- width: 20px;
15104
- height: 20px;
15105
- border: none;
15106
- background: none;
15107
- padding: 0;
15108
- border-radius: var(--radius-sm);
15109
- cursor: pointer;
15110
- color: var(--color-text-subtle-default);
15111
- flex-shrink: 0;
15112
- -webkit-tap-highlight-color: transparent;
15113
- }
15114
-
15115
- .muka-chat-attachment-chip__remove:hover:not(:disabled) {
15116
- color: var(--color-text-default-default);
15117
- background-color: var(--color-surface-level2);
15118
- }
15119
-
15120
- .muka-chat-attachment-chip__remove:focus-visible {
15121
- outline: 2px solid var(--color-action-default);
15122
- outline-offset: 2px;
15123
- }
15124
-
15125
- .muka-chat-attachment-chip__remove:disabled {
15126
- cursor: not-allowed;
15127
- opacity: 0.5;
15128
- }
15129
-
15130
- /* ─── Progress bar ─────────────────────────────────────── */
15131
-
15132
- .muka-chat-attachment-chip__progress {
15133
- position: absolute;
15134
- left: 0;
15135
- right: 0;
15136
- bottom: 0;
15137
- height: 2px;
15138
- background-color: var(--color-surface-level2);
15139
- overflow: hidden;
15140
- }
15141
-
15142
- .muka-chat-attachment-chip__progress-fill {
15143
- display: block;
15144
- height: 100%;
15145
- background-color: var(--color-action-default);
15146
- transition: width 0.16s ease;
15147
- }
15148
-
15149
- .muka-chat-attachment-chip--error .muka-chat-attachment-chip__progress-fill {
15150
- background-color: var(--color-state-error-default, var(--color-text-default-default));
15151
- }
15152
-
15153
-
15154
- /* Card */
15155
- /* Card Component Styles - Using Muka Design Tokens */
15156
-
15157
- .muka-card {
15158
- background-color: var(--card-color-default-background);
15159
- color: var(--card-color-default-foreground);
15160
- border: var(--border-width-regular) solid var(--card-color-default-border);
15161
- box-shadow: var(--card-shadow-default);
15162
- transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
15163
- overflow: hidden;
15164
- }
15165
-
15166
- /* Padding variants */
15167
- .muka-card--padding-none {
15168
- padding: 0;
15169
- }
15170
-
15171
- .muka-card--padding-sm {
15172
- padding: var(--card-padding-sm);
15173
- }
15174
-
15175
- .muka-card--padding-md {
15176
- padding: var(--card-padding-md);
15177
- }
15178
-
15179
- .muka-card--padding-lg {
15180
- padding: var(--card-padding-lg);
15181
- }
15182
-
15183
- /* Radius variants */
15184
- .muka-card--radius-sm {
15185
- border-radius: var(--card-radius-sm);
15186
- }
15187
-
15188
- .muka-card--radius-md {
15189
- border-radius: var(--card-radius-md);
15190
- }
15191
-
15192
- .muka-card--radius-lg {
15193
- border-radius: var(--card-radius-lg);
15194
- }
15195
-
15196
- /* Interactive variant */
15197
- .muka-card--interactive {
15198
- cursor: pointer;
15199
- user-select: none;
15200
- }
15201
-
15202
- .muka-card--interactive:hover {
15203
- background-color: var(--card-color-hover-background);
15204
- border-color: var(--card-color-hover-border);
15205
- box-shadow: var(--card-shadow-hover);
15206
- }
15207
-
15208
- .muka-card--interactive:active,
15209
- .muka-card--interactive.muka-card--pressed {
15210
- background-color: var(--card-color-pressed-background);
15211
- border-color: var(--card-color-pressed-border);
15212
- box-shadow: var(--card-shadow-pressed);
15073
+ .muka-card--interactive:active,
15074
+ .muka-card--interactive.muka-card--pressed {
15075
+ background-color: var(--card-color-pressed-background);
15076
+ border-color: var(--card-color-pressed-border);
15077
+ box-shadow: var(--card-shadow-pressed);
15213
15078
  }
15214
15079
 
15215
15080
  .muka-card--interactive:focus-visible {
@@ -15297,105 +15162,261 @@ button.muka-chat-photo-grid__tile:focus-visible {
15297
15162
  }
15298
15163
 
15299
15164
 
15300
- /* Button */
15301
- /* Button Component Styles - Using Muka Design Tokens */
15165
+ /* ChatAttachmentChip */
15166
+ /* ChatAttachmentChip Component Styles */
15302
15167
 
15303
- /* Base button styles */
15304
- .muka-button {
15305
- /* Layout */
15168
+ .muka-chat-attachment-chip {
15169
+ position: relative;
15306
15170
  display: inline-flex;
15307
15171
  align-items: center;
15308
- justify-content: center;
15309
-
15310
- /* Typography - using semantic tokens */
15311
- font-family: var(--alias-font-brand-family);
15312
- font-weight: var(--alias-font-brand-weight-semibold);
15313
- text-decoration: none;
15314
-
15315
- /* Interaction */
15316
- border: none;
15317
- cursor: pointer;
15318
- user-select: none;
15319
- transition: all 0.2s ease;
15320
-
15321
- /* Accessibility */
15322
- outline: none;
15323
- position: relative;
15324
- }
15325
-
15326
- /* Focus styles for accessibility */
15327
- .muka-button:focus-visible {
15328
- outline: 2px solid var(--color-border-focus);
15329
- outline-offset: 2px;
15172
+ gap: var(--spacing-1);
15173
+ max-width: 240px;
15174
+ padding: var(--spacing-2) var(--spacing-3);
15175
+ background-color: var(--color-surface-level1);
15176
+ border: var(--border-width-regular) solid var(--color-border-default);
15177
+ border-radius: var(--radius-md);
15178
+ overflow: hidden;
15330
15179
  }
15331
15180
 
15332
- /* Size variants
15333
- Height is driven by min-height; vertical padding is 0 and the label carries
15334
- tight (Figma) line-height. Horizontal spacing matches Figma's nested model:
15335
- the button's padding is the outer container inset, and the label's own
15336
- padding is the icon-to-text gap (so text-only buttons keep both insets). */
15337
- .muka-button--sm {
15338
- padding: 0 var(--button-padding-sm-x);
15339
- border-radius: var(--button-radius-sm);
15340
- font-size: var(--text-label-sm-semibold-fontSize);
15341
- line-height: var(--text-label-sm-semibold-lineHeight);
15342
- min-height: 32px;
15181
+ .muka-chat-attachment-chip--uploading {
15182
+ padding-bottom: calc(var(--spacing-2) + 2px);
15343
15183
  }
15344
15184
 
15345
- .muka-button--sm .muka-button__label {
15346
- padding: 0 var(--button-gap-sm);
15185
+ .muka-chat-attachment-chip--error {
15186
+ border-color: var(--color-state-error-default, var(--color-text-default-default));
15347
15187
  }
15348
15188
 
15349
- .muka-button--md {
15350
- padding: 0 var(--button-padding-md-x);
15351
- border-radius: var(--button-radius-md);
15352
- font-size: var(--text-label-sm-semibold-fontSize);
15353
- line-height: var(--text-label-sm-semibold-lineHeight);
15354
- min-height: 40px;
15189
+ .muka-chat-attachment-chip--disabled {
15190
+ opacity: 0.5;
15191
+ pointer-events: none;
15355
15192
  }
15356
15193
 
15357
- .muka-button--md .muka-button__label {
15358
- padding: 0 var(--button-gap-md);
15359
- }
15194
+ /* ─── Body (icon + text) ───────────────────────────────── */
15360
15195
 
15361
- .muka-button--lg {
15362
- padding: 0 var(--button-padding-lg-x);
15363
- border-radius: var(--button-radius-lg);
15364
- font-size: var(--text-label-lg-semibold-fontSize);
15365
- line-height: var(--text-label-lg-semibold-lineHeight);
15366
- min-height: 48px;
15196
+ .muka-chat-attachment-chip__body {
15197
+ display: inline-flex;
15198
+ align-items: center;
15199
+ gap: var(--spacing-2);
15200
+ min-width: 0;
15201
+ flex: 1 1 auto;
15202
+ background: none;
15203
+ border: none;
15204
+ padding: 0;
15205
+ margin: 0;
15206
+ text-align: left;
15207
+ color: inherit;
15208
+ font: inherit;
15209
+ cursor: default;
15210
+ -webkit-tap-highlight-color: transparent;
15367
15211
  }
15368
15212
 
15369
- .muka-button--lg .muka-button__label {
15370
- padding: 0 var(--button-gap-lg);
15213
+ .muka-chat-attachment-chip--interactive .muka-chat-attachment-chip__body {
15214
+ cursor: pointer;
15371
15215
  }
15372
15216
 
15373
- .muka-button--xl {
15374
- padding: 0 var(--button-padding-xl-x);
15375
- border-radius: var(--button-radius-xl);
15376
- font-size: var(--text-label-2xl-semibold-fontSize);
15377
- line-height: var(--text-label-2xl-semibold-lineHeight);
15378
- min-height: 64px;
15217
+ .muka-chat-attachment-chip--interactive .muka-chat-attachment-chip__body:focus-visible {
15218
+ outline: 2px solid var(--color-action-default);
15219
+ outline-offset: 2px;
15220
+ border-radius: var(--radius-sm);
15379
15221
  }
15380
15222
 
15381
- .muka-button--xl .muka-button__label {
15382
- padding: 0 var(--button-gap-xl);
15223
+ .muka-chat-attachment-chip__icon {
15224
+ display: inline-flex;
15225
+ align-items: center;
15226
+ justify-content: center;
15227
+ flex-shrink: 0;
15228
+ color: var(--color-text-subtle-default);
15383
15229
  }
15384
15230
 
15385
- /* Primary variant - your main CTA button */
15386
- .muka-button--primary {
15387
- background-color: var(--button-color-primary-background-default);
15388
- color: var(--button-color-primary-foreground-default);
15389
- box-shadow: var(--button-color-primary-shadow-default);
15231
+ .muka-chat-attachment-chip__text {
15232
+ display: flex;
15233
+ flex-direction: column;
15234
+ min-width: 0;
15235
+ flex: 1 1 auto;
15390
15236
  }
15391
15237
 
15392
- .muka-button--primary:hover:not(:disabled) {
15393
- background-color: var(--button-color-primary-background-hover);
15394
- color: var(--button-color-primary-foreground-hover);
15395
- box-shadow: var(--button-color-primary-shadow-hover);
15238
+ .muka-chat-attachment-chip__name {
15239
+ color: var(--color-text-default-default);
15240
+ font-family: var(--text-body-sm-regular-fontFamily);
15241
+ font-weight: var(--text-body-sm-regular-fontWeight);
15242
+ font-size: var(--text-body-sm-regular-fontSize);
15243
+ line-height: var(--text-body-sm-regular-lineHeight);
15244
+ white-space: nowrap;
15245
+ overflow: hidden;
15246
+ text-overflow: ellipsis;
15396
15247
  }
15397
15248
 
15398
- /* `[data-state="open"]` keeps a Button pressed while it's an open disclosure
15249
+ .muka-chat-attachment-chip__meta {
15250
+ color: var(--color-text-subtle-default);
15251
+ font-family: var(--text-body-sm-regular-fontFamily);
15252
+ font-weight: var(--text-body-sm-regular-fontWeight);
15253
+ font-size: var(--text-body-sm-regular-fontSize);
15254
+ line-height: var(--text-body-sm-regular-lineHeight);
15255
+ white-space: nowrap;
15256
+ overflow: hidden;
15257
+ text-overflow: ellipsis;
15258
+ }
15259
+
15260
+ .muka-chat-attachment-chip--error .muka-chat-attachment-chip__meta {
15261
+ color: var(--color-state-error-default, var(--color-text-default-default));
15262
+ }
15263
+
15264
+ /* ─── Remove button ────────────────────────────────────── */
15265
+
15266
+ .muka-chat-attachment-chip__remove {
15267
+ display: inline-flex;
15268
+ align-items: center;
15269
+ justify-content: center;
15270
+ width: 20px;
15271
+ height: 20px;
15272
+ border: none;
15273
+ background: none;
15274
+ padding: 0;
15275
+ border-radius: var(--radius-sm);
15276
+ cursor: pointer;
15277
+ color: var(--color-text-subtle-default);
15278
+ flex-shrink: 0;
15279
+ -webkit-tap-highlight-color: transparent;
15280
+ }
15281
+
15282
+ .muka-chat-attachment-chip__remove:hover:not(:disabled) {
15283
+ color: var(--color-text-default-default);
15284
+ background-color: var(--color-surface-level2);
15285
+ }
15286
+
15287
+ .muka-chat-attachment-chip__remove:focus-visible {
15288
+ outline: 2px solid var(--color-action-default);
15289
+ outline-offset: 2px;
15290
+ }
15291
+
15292
+ .muka-chat-attachment-chip__remove:disabled {
15293
+ cursor: not-allowed;
15294
+ opacity: 0.5;
15295
+ }
15296
+
15297
+ /* ─── Progress bar ─────────────────────────────────────── */
15298
+
15299
+ .muka-chat-attachment-chip__progress {
15300
+ position: absolute;
15301
+ left: 0;
15302
+ right: 0;
15303
+ bottom: 0;
15304
+ height: 2px;
15305
+ background-color: var(--color-surface-level2);
15306
+ overflow: hidden;
15307
+ }
15308
+
15309
+ .muka-chat-attachment-chip__progress-fill {
15310
+ display: block;
15311
+ height: 100%;
15312
+ background-color: var(--color-action-default);
15313
+ transition: width 0.16s ease;
15314
+ }
15315
+
15316
+ .muka-chat-attachment-chip--error .muka-chat-attachment-chip__progress-fill {
15317
+ background-color: var(--color-state-error-default, var(--color-text-default-default));
15318
+ }
15319
+
15320
+
15321
+ /* Button */
15322
+ /* Button Component Styles - Using Muka Design Tokens */
15323
+
15324
+ /* Base button styles */
15325
+ .muka-button {
15326
+ /* Layout */
15327
+ display: inline-flex;
15328
+ align-items: center;
15329
+ justify-content: center;
15330
+
15331
+ /* Typography - using semantic tokens */
15332
+ font-family: var(--alias-font-brand-family);
15333
+ font-weight: var(--alias-font-brand-weight-semibold);
15334
+ text-decoration: none;
15335
+
15336
+ /* Interaction */
15337
+ border: none;
15338
+ cursor: pointer;
15339
+ user-select: none;
15340
+ transition: all 0.2s ease;
15341
+
15342
+ /* Accessibility */
15343
+ outline: none;
15344
+ position: relative;
15345
+ }
15346
+
15347
+ /* Focus styles for accessibility */
15348
+ .muka-button:focus-visible {
15349
+ outline: 2px solid var(--color-border-focus);
15350
+ outline-offset: 2px;
15351
+ }
15352
+
15353
+ /* Size variants
15354
+ Height is driven by min-height; vertical padding is 0 and the label carries
15355
+ tight (Figma) line-height. Horizontal spacing matches Figma's nested model:
15356
+ the button's padding is the outer container inset, and the label's own
15357
+ padding is the icon-to-text gap (so text-only buttons keep both insets). */
15358
+ .muka-button--sm {
15359
+ padding: 0 var(--button-padding-sm-x);
15360
+ border-radius: var(--button-radius-sm);
15361
+ font-size: var(--text-label-sm-semibold-fontSize);
15362
+ line-height: var(--text-label-sm-semibold-lineHeight);
15363
+ min-height: 32px;
15364
+ }
15365
+
15366
+ .muka-button--sm .muka-button__label {
15367
+ padding: 0 var(--button-gap-sm);
15368
+ }
15369
+
15370
+ .muka-button--md {
15371
+ padding: 0 var(--button-padding-md-x);
15372
+ border-radius: var(--button-radius-md);
15373
+ font-size: var(--text-label-sm-semibold-fontSize);
15374
+ line-height: var(--text-label-sm-semibold-lineHeight);
15375
+ min-height: 40px;
15376
+ }
15377
+
15378
+ .muka-button--md .muka-button__label {
15379
+ padding: 0 var(--button-gap-md);
15380
+ }
15381
+
15382
+ .muka-button--lg {
15383
+ padding: 0 var(--button-padding-lg-x);
15384
+ border-radius: var(--button-radius-lg);
15385
+ font-size: var(--text-label-lg-semibold-fontSize);
15386
+ line-height: var(--text-label-lg-semibold-lineHeight);
15387
+ min-height: 48px;
15388
+ }
15389
+
15390
+ .muka-button--lg .muka-button__label {
15391
+ padding: 0 var(--button-gap-lg);
15392
+ }
15393
+
15394
+ .muka-button--xl {
15395
+ padding: 0 var(--button-padding-xl-x);
15396
+ border-radius: var(--button-radius-xl);
15397
+ font-size: var(--text-label-2xl-semibold-fontSize);
15398
+ line-height: var(--text-label-2xl-semibold-lineHeight);
15399
+ min-height: 64px;
15400
+ }
15401
+
15402
+ .muka-button--xl .muka-button__label {
15403
+ padding: 0 var(--button-gap-xl);
15404
+ }
15405
+
15406
+ /* Primary variant - your main CTA button */
15407
+ .muka-button--primary {
15408
+ background-color: var(--button-color-primary-background-default);
15409
+ color: var(--button-color-primary-foreground-default);
15410
+ box-shadow: var(--button-color-primary-shadow-default);
15411
+ }
15412
+
15413
+ .muka-button--primary:hover:not(:disabled) {
15414
+ background-color: var(--button-color-primary-background-hover);
15415
+ color: var(--button-color-primary-foreground-hover);
15416
+ box-shadow: var(--button-color-primary-shadow-hover);
15417
+ }
15418
+
15419
+ /* `[data-state="open"]` keeps a Button pressed while it's an open disclosure
15399
15420
  trigger (Radix Menu/Popover set this on the trigger). `[aria-pressed="true"]`
15400
15421
  gives toggle buttons a visible selected state, so the toggle is not conveyed
15401
15422
  to sighted users by the accessibility tree alone. */
@@ -15743,696 +15764,714 @@ button.muka-chat-photo-grid__tile:focus-visible {
15743
15764
  }
15744
15765
 
15745
15766
 
15746
- /* BottomBar */
15747
- /* BottomBar Component Styles */
15767
+ /* BadgeNumber */
15768
+ /* BadgeNumber Component Styles - Using Muka Design Tokens */
15748
15769
 
15749
- .muka-bottombar {
15750
- width: 100%;
15751
- background-color: var(--bottombar-color-background);
15770
+ .muka-badge-number {
15771
+ display: inline-flex;
15772
+ align-items: center;
15773
+ justify-content: center;
15774
+ border-radius: var(--border-radius-full);
15775
+ white-space: nowrap;
15776
+ user-select: none;
15777
+ box-sizing: border-box;
15752
15778
  }
15753
15779
 
15754
- /* Push content above the iPhone home indicator. Opt out via disableSafeArea. */
15755
- .muka-bottombar:not(.muka-bottombar--floating):not(.muka-bottombar--no-safe-area) {
15756
- padding-bottom: env(safe-area-inset-bottom);
15780
+ /*
15781
+ * Sizes — fixed height, matching min-width (so a single digit renders as a
15782
+ * circle), horizontal padding, and bold label typography. Vertical centering
15783
+ * is handled by the fixed height + align-items: center.
15784
+ */
15785
+ .muka-badge-number--2xs {
15786
+ height: var(--badge-number-size-2xs);
15787
+ min-width: var(--badge-number-size-2xs);
15788
+ padding: 0 var(--badge-number-padding-2xs);
15789
+ font-family: var(--text-label-xs-bold-fontFamily);
15790
+ font-weight: var(--text-label-xs-bold-fontWeight);
15791
+ font-size: var(--text-label-xs-bold-fontSize);
15792
+ line-height: var(--text-label-xs-bold-lineHeight);
15757
15793
  }
15758
15794
 
15759
- /* Floating variant: ensure margin-bottom is at least the safe-area inset. */
15760
- .muka-bottombar--floating:not(.muka-bottombar--no-safe-area) {
15761
- padding-bottom: max(var(--bottombar-floating-margin-bottom), env(safe-area-inset-bottom));
15795
+ .muka-badge-number--xs {
15796
+ height: var(--badge-number-size-xs);
15797
+ min-width: var(--badge-number-size-xs);
15798
+ padding: 0 var(--badge-number-padding-xs);
15799
+ font-family: var(--text-label-sm-bold-fontFamily);
15800
+ font-weight: var(--text-label-sm-bold-fontWeight);
15801
+ font-size: var(--text-label-sm-bold-fontSize);
15802
+ line-height: var(--text-label-sm-bold-lineHeight);
15762
15803
  }
15763
15804
 
15764
- /* ─── Divider (non-floating) ──────────────────────────── */
15765
-
15766
- .muka-bottombar__divider {
15767
- height: var(--border-width-regular);
15768
- background-color: var(--bottombar-color-border);
15769
- width: 100%;
15805
+ .muka-badge-number--sm {
15806
+ height: var(--badge-number-size-sm);
15807
+ min-width: var(--badge-number-size-sm);
15808
+ padding: 0 var(--badge-number-padding-sm);
15809
+ font-family: var(--text-label-md-bold-fontFamily);
15810
+ font-weight: var(--text-label-md-bold-fontWeight);
15811
+ font-size: var(--text-label-md-bold-fontSize);
15812
+ line-height: var(--text-label-md-bold-lineHeight);
15770
15813
  }
15771
15814
 
15772
- /* ─── Content container ───────────────────────────────── */
15773
-
15774
- .muka-bottombar__content {
15775
- display: flex;
15776
- align-items: center;
15815
+ .muka-badge-number--md {
15816
+ height: var(--badge-number-size-md);
15817
+ min-width: var(--badge-number-size-md);
15818
+ padding: 0 var(--badge-number-padding-md);
15819
+ font-family: var(--text-label-lg-bold-fontFamily);
15820
+ font-weight: var(--text-label-lg-bold-fontWeight);
15821
+ font-size: var(--text-label-lg-bold-fontSize);
15822
+ line-height: var(--text-label-lg-bold-lineHeight);
15777
15823
  }
15778
15824
 
15779
- /* ─── Actions variant (horizontal) ───────────────────── */
15780
-
15781
- .muka-bottombar--actions .muka-bottombar__content {
15782
- flex-direction: row;
15783
- gap: var(--bottombar-actions-gap);
15784
- padding: var(--bottombar-actions-padding-t) var(--bottombar-actions-padding-x) var(--bottombar-actions-padding-x);
15825
+ .muka-badge-number--lg {
15826
+ height: var(--badge-number-size-lg);
15827
+ min-width: var(--badge-number-size-lg);
15828
+ padding: 0 var(--badge-number-padding-lg);
15829
+ font-family: var(--text-label-2xl-bold-fontFamily);
15830
+ font-weight: var(--text-label-2xl-bold-fontWeight);
15831
+ font-size: var(--text-label-2xl-bold-fontSize);
15832
+ line-height: var(--text-label-2xl-bold-lineHeight);
15785
15833
  }
15786
15834
 
15787
- .muka-bottombar--actions .muka-bottombar__content > * {
15788
- flex: 1;
15835
+ .muka-badge-number__label {
15836
+ /*
15837
+ * The badge sets a tight line-height for compact sizing, which would clip
15838
+ * glyph descenders; give the label a roomier line-height. Vertical centering
15839
+ * is unaffected because the badge height is fixed and content is centered.
15840
+ */
15841
+ line-height: normal;
15789
15842
  }
15790
15843
 
15791
- /* ─── Actions-vertical variant (stacked) ─────────────── */
15792
-
15793
- .muka-bottombar--actions-vertical .muka-bottombar__content {
15794
- flex-direction: column;
15795
- gap: var(--bottombar-actions-gap);
15796
- padding: var(--bottombar-actions-padding-t) var(--bottombar-actions-padding-x) var(--bottombar-actions-padding-x);
15844
+ /* Neutral variant */
15845
+ .muka-badge-number--neutral {
15846
+ background-color: var(--color-surface-level1);
15847
+ color: var(--color-text-default-default);
15797
15848
  }
15798
15849
 
15799
- .muka-bottombar--actions-vertical .muka-bottombar__content > * {
15800
- width: 100%;
15850
+ /* Info variant */
15851
+ .muka-badge-number--info {
15852
+ background-color: var(--color-state-info-contrast);
15853
+ color: var(--color-text-default-inverse);
15801
15854
  }
15802
15855
 
15803
- /* ─── Message (actions variants only) ────────────────── */
15804
-
15805
- /* Below 1024px the message takes its own line above the buttons. */
15806
- .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content {
15807
- flex-wrap: wrap;
15808
- row-gap: var(--bottombar-actions-message-gap);
15856
+ /* Success variant */
15857
+ .muka-badge-number--success {
15858
+ background-color: var(--color-state-success-contrast);
15859
+ color: var(--color-text-default-inverse);
15809
15860
  }
15810
15861
 
15811
- .muka-bottombar--actions-vertical.muka-bottombar--with-message .muka-bottombar__content {
15812
- row-gap: var(--bottombar-actions-message-gap);
15862
+ /* Warning variant */
15863
+ .muka-badge-number--warning {
15864
+ background-color: var(--color-state-warning-contrast);
15865
+ color: var(--color-text-default-inverse);
15813
15866
  }
15814
15867
 
15815
- .muka-bottombar--with-message .muka-bottombar__content > .muka-bottombar__message {
15816
- flex: 1 0 100%;
15817
- width: 100%;
15868
+ /* Error variant */
15869
+ .muka-badge-number--error {
15870
+ background-color: var(--color-state-error-contrast);
15871
+ color: var(--color-text-default-inverse);
15818
15872
  }
15819
15873
 
15820
- .muka-bottombar__message {
15821
- margin: 0;
15874
+ /* Dot: something new, without a count */
15875
+ .muka-badge-number--dot {
15876
+ width: var(--spacing-2);
15877
+ height: var(--spacing-2);
15822
15878
  min-width: 0;
15823
- overflow-wrap: anywhere;
15824
- font-family: var(--text-body-sm-regular-fontFamily);
15825
- font-weight: var(--text-body-sm-regular-fontWeight);
15826
- font-size: var(--text-body-sm-regular-fontSize);
15827
- line-height: var(--text-body-sm-regular-lineHeight);
15879
+ padding: 0;
15828
15880
  }
15829
15881
 
15830
- .muka-bottombar__message--neutral {
15831
- color: var(--bottombar-color-message-neutral);
15832
- }
15833
15882
 
15834
- .muka-bottombar__message--success {
15835
- color: var(--bottombar-color-message-success);
15836
- }
15883
+ /* Badge */
15884
+ /* Badge Component Styles - Using Muka Design Tokens */
15837
15885
 
15838
- .muka-bottombar__message--warning {
15839
- color: var(--bottombar-color-message-warning);
15886
+ .muka-badge {
15887
+ display: inline-flex;
15888
+ align-items: center;
15889
+ border-radius: var(--border-radius-full);
15890
+ white-space: nowrap;
15891
+ user-select: none;
15892
+ box-sizing: border-box;
15840
15893
  }
15841
15894
 
15842
- /* From 1024px the horizontal bar puts the message left, the buttons right at
15843
- their own width. The vertical variant keeps stacking. */
15844
- @media (min-width: 1024px) {
15845
- .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content {
15846
- flex-wrap: nowrap;
15847
- }
15848
-
15849
- .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content > * {
15850
- flex: 0 0 auto;
15851
- }
15852
-
15853
- .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content > .muka-bottombar__message {
15854
- flex: 1 1 auto;
15855
- width: auto;
15856
- }
15895
+ /*
15896
+ * Sizes — height, gap, type, and default (label-edge) horizontal padding.
15897
+ * Mirrors Chip so the two components share sizing, fonts, and spacing.
15898
+ * Vertical centering is handled by the fixed height + align-items: center.
15899
+ * The leading side gets a tighter padding when an icon/dot is present, via the
15900
+ * --has-icon / --has-dot modifiers below.
15901
+ */
15902
+ .muka-badge--sm {
15903
+ height: var(--badge-size-height-sm);
15904
+ gap: var(--badge-gap-sm);
15905
+ padding: 0 var(--badge-padding-label-sm);
15906
+ font-family: var(--text-label-sm-regular-fontFamily);
15907
+ font-weight: var(--text-label-sm-regular-fontWeight);
15908
+ font-size: var(--text-label-sm-regular-fontSize);
15909
+ line-height: var(--text-label-sm-regular-lineHeight);
15857
15910
  }
15858
15911
 
15859
- /* ─── Size modifiers (actions variants only) ─────────── */
15860
-
15861
- /* ─── Navigation variant ──────────────────────────────── */
15862
-
15863
- .muka-bottombar--navigation .muka-bottombar__content {
15864
- flex-direction: row;
15912
+ .muka-badge--md {
15913
+ height: var(--badge-size-height-md);
15914
+ gap: var(--badge-gap-md);
15915
+ padding: 0 var(--badge-padding-label-md);
15916
+ font-family: var(--text-label-md-regular-fontFamily);
15917
+ font-weight: var(--text-label-md-regular-fontWeight);
15918
+ font-size: var(--text-label-md-regular-fontSize);
15919
+ line-height: var(--text-label-md-regular-lineHeight);
15865
15920
  }
15866
15921
 
15867
- /* ─── Chat variant (houses a ChatComposer) ───────────── */
15868
-
15869
- .muka-bottombar--chat .muka-bottombar__content {
15870
- flex-direction: row;
15871
- width: 100%;
15872
- margin: 0 auto;
15922
+ .muka-badge--lg {
15923
+ height: var(--badge-size-height-lg);
15924
+ gap: var(--badge-gap-lg);
15925
+ padding: 0 var(--badge-padding-label-lg);
15926
+ font-family: var(--text-label-lg-regular-fontFamily);
15927
+ font-weight: var(--text-label-lg-regular-fontWeight);
15928
+ font-size: var(--text-label-lg-regular-fontSize);
15929
+ line-height: var(--text-label-lg-regular-lineHeight);
15873
15930
  }
15874
15931
 
15875
- /*
15876
- * `--bottombar-chat-max-width` is the conversation column (it derives from
15877
- * `chat.column.max-width`, the same token `ChatMessageList` caps its column
15878
- * with). The cap here carries the padding on top of it, so it is the
15879
- * composer's own edges — not the padding around it — that land on the column.
15880
- */
15881
-
15882
- /*
15883
- * Docked chat pads its content; the floating card supplies its own padding.
15884
- * The inline half is the section gutter `ChatMessageList` pads its scroller
15885
- * with, so below the cap — where the column runs full-bleed — the composer
15886
- * keeps to the same gutters as the messages.
15887
- */
15888
- .muka-bottombar--chat:not(.muka-bottombar--floating) .muka-bottombar__content {
15889
- padding: var(--bottombar-chat-padding)
15890
- var(--section-padding-horizontal-default, var(--spacing-4));
15891
- max-width: calc(
15892
- var(--bottombar-chat-max-width) + 2 * var(--section-padding-horizontal-default, var(--spacing-4))
15893
- );
15932
+ /* Tighter leading padding when a leading icon or dot is present */
15933
+ .muka-badge--sm.muka-badge--has-icon,
15934
+ .muka-badge--sm.muka-badge--has-dot {
15935
+ padding-left: var(--badge-padding-leading-sm);
15936
+ }
15937
+ .muka-badge--md.muka-badge--has-icon,
15938
+ .muka-badge--md.muka-badge--has-dot {
15939
+ padding-left: var(--badge-padding-leading-md);
15940
+ }
15941
+ .muka-badge--lg.muka-badge--has-icon,
15942
+ .muka-badge--lg.muka-badge--has-dot {
15943
+ padding-left: var(--badge-padding-leading-lg);
15894
15944
  }
15895
15945
 
15896
- /* Floating chat card widens to the chat cap (overrides the md default below). */
15897
- .muka-bottombar--chat.muka-bottombar--floating .muka-bottombar__content {
15898
- max-width: calc(var(--bottombar-chat-max-width) + 2 * var(--bottombar-floating-padding));
15946
+ /* Icon-only — square, sized to the badge height (Figma: 24 / 32 / 40).
15947
+ * Padding resets at size+icon-only specificity so `--has-icon` leading padding
15948
+ * cannot win and shift the icon off-center. */
15949
+ .muka-badge--icon-only {
15950
+ justify-content: center;
15951
+ align-items: center;
15952
+ gap: 0;
15899
15953
  }
15900
15954
 
15901
- /* ─── Tab item ────────────────────────────────────────── */
15955
+ .muka-badge--sm.muka-badge--icon-only,
15956
+ .muka-badge--md.muka-badge--icon-only,
15957
+ .muka-badge--lg.muka-badge--icon-only {
15958
+ padding: 0;
15959
+ }
15902
15960
 
15903
- .muka-bottombar__tab {
15904
- flex: 1;
15905
- display: flex;
15906
- flex-direction: column;
15907
- align-items: center;
15908
- gap: var(--bottombar-tab-gap);
15909
- padding: var(--bottombar-tab-padding-y) 0;
15910
- background: none;
15911
- border: none;
15912
- cursor: pointer;
15913
- color: var(--bottombar-color-tab-inactive);
15914
- transition: color 0.15s ease;
15915
- -webkit-tap-highlight-color: transparent;
15961
+ .muka-badge--sm.muka-badge--icon-only {
15962
+ width: var(--badge-size-height-sm);
15916
15963
  }
15917
15964
 
15918
- .muka-bottombar__tab:focus-visible {
15919
- outline: 2px solid var(--color-action-default);
15920
- outline-offset: -2px;
15921
- border-radius: var(--border-radius-sm);
15965
+ .muka-badge--md.muka-badge--icon-only {
15966
+ width: var(--badge-size-height-md);
15922
15967
  }
15923
15968
 
15924
- .muka-bottombar__tab--active {
15925
- color: var(--bottombar-color-tab-active);
15969
+ .muka-badge--lg.muka-badge--icon-only {
15970
+ width: var(--badge-size-height-lg);
15926
15971
  }
15927
15972
 
15928
- .muka-bottombar__tab-icon {
15929
- display: flex;
15973
+ /* Leading icon slot — Figma icon sizes: sm 16, md 20, lg 24 (matches Chip) */
15974
+ .muka-badge__icon {
15975
+ display: inline-flex;
15930
15976
  align-items: center;
15931
15977
  justify-content: center;
15932
- width: var(--bottombar-tab-icon-size);
15933
- height: var(--bottombar-tab-icon-size);
15978
+ flex-shrink: 0;
15934
15979
  }
15935
15980
 
15936
- .muka-bottombar__tab-icon svg {
15981
+ .muka-badge--sm .muka-badge__icon {
15982
+ width: var(--icon-size-xs);
15983
+ height: var(--icon-size-xs);
15984
+ }
15985
+ .muka-badge--md .muka-badge__icon {
15986
+ width: var(--icon-size-sm);
15987
+ height: var(--icon-size-sm);
15988
+ }
15989
+ .muka-badge--lg .muka-badge__icon {
15990
+ width: var(--icon-size-default);
15991
+ height: var(--icon-size-default);
15992
+ }
15993
+
15994
+ /* Force the passed content (raw <svg> or an <Icon> wrapper) to the slot size,
15995
+ so callers don't have to size the icon to match each badge size. The
15996
+ .muka-icon selector is intentionally 2 classes deep to override .muka-icon--md. */
15997
+ .muka-badge__icon .muka-icon,
15998
+ .muka-badge__icon svg {
15937
15999
  width: 100%;
15938
16000
  height: 100%;
15939
16001
  }
15940
16002
 
15941
- .muka-bottombar__tab-label {
15942
- font-family: var(--text-label-sm-regular-fontFamily);
15943
- font-weight: var(--text-label-sm-regular-fontWeight);
15944
- font-size: var(--text-label-sm-regular-fontSize);
15945
- line-height: var(--text-label-sm-regular-lineHeight);
16003
+ /* Icons inherit the badge's per-variant foreground color */
16004
+ .muka-badge .muka-icon {
16005
+ color: inherit;
15946
16006
  }
15947
16007
 
15948
- /* ─── Floating modifier ───────────────────────────────── */
15949
-
15950
- .muka-bottombar--floating {
15951
- background: linear-gradient(
15952
- to bottom,
15953
- var(--bottombar-floating-backdrop-start),
15954
- var(--bottombar-floating-backdrop-end)
15955
- );
15956
- padding: var(--bottombar-floating-padding-top) var(--bottombar-floating-margin-x) var(--bottombar-floating-margin-bottom);
15957
-
15958
- /* The transparent frosted margin around the pill overlays scrolling content;
15959
- let scroll/taps fall through to that content, keeping only the pill itself
15960
- interactive (re-enabled on __content below). */
15961
- pointer-events: none;
16008
+ /* Dot indicator */
16009
+ .muka-badge__dot {
16010
+ flex-shrink: 0;
16011
+ border-radius: var(--border-radius-full);
15962
16012
  }
15963
16013
 
15964
- .muka-bottombar--floating .muka-bottombar__content {
15965
- pointer-events: auto;
16014
+ .muka-badge--sm .muka-badge__dot {
16015
+ width: var(--badge-size-dot-sm);
16016
+ height: var(--badge-size-dot-sm);
15966
16017
  }
15967
16018
 
15968
- .muka-bottombar--floating .muka-bottombar__content {
15969
- background-color: var(--bottombar-color-background);
15970
- border-radius: var(--bottombar-floating-radius);
15971
- padding: var(--bottombar-floating-padding);
15972
- box-shadow: var(--bottombar-floating-shadow);
15973
- max-width: var(--bottombar-floating-max-width);
15974
- width: 100%;
15975
- margin: 0 auto;
16019
+ .muka-badge--md .muka-badge__dot {
16020
+ width: var(--badge-size-dot-md);
16021
+ height: var(--badge-size-dot-md);
15976
16022
  }
15977
16023
 
15978
- /* Override content padding inside floating per variant */
15979
- .muka-bottombar--floating.muka-bottombar--actions .muka-bottombar__content {
15980
- padding: var(--bottombar-floating-padding);
16024
+ .muka-badge--lg .muka-badge__dot {
16025
+ width: var(--badge-size-dot-lg);
16026
+ height: var(--badge-size-dot-lg);
15981
16027
  }
15982
16028
 
15983
- .muka-bottombar--floating.muka-bottombar--navigation .muka-bottombar__content {
15984
- padding: var(--bottombar-navigation-floating-padding);
16029
+ .muka-badge__label {
16030
+ flex: 0 1 auto;
16031
+ min-width: 0;
16032
+ overflow: hidden;
16033
+ text-overflow: ellipsis;
16034
+ /*
16035
+ * The badge sets a tight line-height for compact sizing, but the label's
16036
+ * `overflow: hidden` (needed for ellipsis) then clips glyph descenders (g, y, p). Give the
16037
+ * label its own roomier line-height so descenders render; vertical centering is unaffected
16038
+ * because the badge height is fixed and content is centered via align-items: center.
16039
+ */
16040
+ line-height: normal;
15985
16041
  }
15986
16042
 
15987
- /* ─── Desktop: Sidebar transformation ─────────────────── */
16043
+ /* Neutral variant */
16044
+ .muka-badge--neutral {
16045
+ background-color: var(--color-surface-level1);
16046
+ color: var(--color-text-default-default);
16047
+ }
15988
16048
 
15989
- @media (min-width: 1024px) {
15990
- .muka-bottombar--desktop-sidebar {
15991
- position: fixed;
15992
- left: 0;
15993
- top: 0;
15994
- bottom: 0;
15995
- width: 240px;
15996
- height: 100vh;
15997
- background-color: var(--bottombar-color-background);
15998
- border-right: var(--border-width-regular) solid var(--bottombar-color-border);
15999
- z-index: 10;
16000
- }
16049
+ .muka-badge--neutral .muka-badge__dot {
16050
+ background-color: var(--color-text-subtle-default);
16051
+ }
16001
16052
 
16002
- .muka-bottombar--desktop-sidebar .muka-bottombar__divider {
16003
- display: none;
16004
- }
16053
+ /* Info variant */
16054
+ .muka-badge--info {
16055
+ background-color: var(--color-state-info-background);
16056
+ color: var(--color-state-info-contrast);
16057
+ }
16005
16058
 
16006
- .muka-bottombar--desktop-sidebar .muka-bottombar__content {
16007
- flex-direction: column;
16008
- align-items: stretch;
16009
- padding: var(--spacing-4) var(--spacing-3);
16010
- /* The rail runs to the top of the screen: clear the status bar there. */
16011
- padding-top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
16012
- gap: var(--spacing-1);
16013
- }
16059
+ .muka-badge--info .muka-badge__dot {
16060
+ background-color: var(--color-state-info-default);
16061
+ }
16014
16062
 
16015
- .muka-bottombar--desktop-sidebar .muka-bottombar__tab {
16016
- flex: 0 0 auto;
16017
- flex-direction: row;
16018
- justify-content: flex-start;
16019
- gap: var(--spacing-3);
16020
- padding: var(--spacing-3);
16021
- border-radius: var(--border-radius-md);
16022
- }
16063
+ /* Success variant */
16064
+ .muka-badge--success {
16065
+ background-color: var(--color-state-success-background);
16066
+ color: var(--color-state-success-contrast);
16067
+ }
16023
16068
 
16024
- .muka-bottombar--desktop-sidebar .muka-bottombar__tab:hover {
16025
- background-color: var(--color-surface-level2);
16026
- }
16069
+ .muka-badge--success .muka-badge__dot {
16070
+ background-color: var(--color-state-success-default);
16071
+ }
16027
16072
 
16028
- .muka-bottombar--desktop-sidebar .muka-bottombar__tab-label {
16029
- font-family: var(--text-label-md-regular-fontFamily);
16030
- font-weight: var(--text-label-md-regular-fontWeight);
16031
- font-size: var(--text-label-md-regular-fontSize);
16032
- line-height: var(--text-label-md-regular-lineHeight);
16033
- }
16073
+ /* Warning variant */
16074
+ .muka-badge--warning {
16075
+ background-color: var(--color-state-warning-background);
16076
+ color: var(--color-state-warning-contrast);
16077
+ }
16034
16078
 
16035
- /* When floating and sidebar, remove the floating card styles */
16036
- .muka-bottombar--desktop-sidebar.muka-bottombar--floating {
16037
- padding: 0;
16038
- }
16079
+ .muka-badge--warning .muka-badge__dot {
16080
+ background-color: var(--color-state-warning-default);
16081
+ }
16039
16082
 
16040
- .muka-bottombar--desktop-sidebar.muka-bottombar--floating .muka-bottombar__content {
16041
- background-color: transparent;
16042
- border-radius: 0;
16043
- box-shadow: none;
16044
- }
16083
+ /* Error variant */
16084
+ .muka-badge--error {
16085
+ background-color: var(--color-state-error-background);
16086
+ color: var(--color-state-error-contrast);
16045
16087
  }
16046
16088
 
16047
- /* ─── Desktop: Top Navigation transformation ──────────── */
16089
+ .muka-badge--error .muka-badge__dot {
16090
+ background-color: var(--color-state-error-default);
16091
+ }
16048
16092
 
16049
- @media (min-width: 1024px) {
16050
- .muka-bottombar--desktop-topnav {
16051
- position: fixed;
16052
- top: 0;
16053
- left: 0;
16054
- right: 0;
16055
- width: 100%;
16056
- height: auto;
16057
- background-color: var(--bottombar-color-background);
16058
- border-bottom: var(--border-width-regular) solid var(--bottombar-color-border);
16059
- z-index: 10;
16060
- }
16061
16093
 
16062
- .muka-bottombar--desktop-topnav .muka-bottombar__divider {
16063
- display: none;
16064
- }
16094
+ /* BottomBar */
16095
+ /* BottomBar Component Styles */
16065
16096
 
16066
- .muka-bottombar--desktop-topnav .muka-bottombar__content {
16067
- flex-direction: row;
16068
- justify-content: center;
16069
- gap: var(--spacing-1);
16070
- padding: 0 var(--spacing-4);
16071
- max-width: var(--container-max-width-large, 1200px);
16072
- margin: 0 auto;
16073
- }
16097
+ .muka-bottombar {
16098
+ width: 100%;
16099
+ background-color: var(--bottombar-color-background);
16100
+ }
16074
16101
 
16075
- .muka-bottombar--desktop-topnav .muka-bottombar__tab {
16076
- flex: 0 0 auto;
16077
- flex-direction: row;
16078
- gap: var(--spacing-2);
16079
- padding: var(--spacing-3) var(--spacing-4);
16080
- border-radius: 0;
16081
- border-bottom: 2px solid transparent;
16082
- }
16102
+ /* Push content above the iPhone home indicator. Opt out via disableSafeArea. */
16103
+ .muka-bottombar:not(.muka-bottombar--floating):not(.muka-bottombar--no-safe-area) {
16104
+ padding-bottom: env(safe-area-inset-bottom);
16105
+ }
16083
16106
 
16084
- .muka-bottombar--desktop-topnav .muka-bottombar__tab--active {
16085
- border-bottom-color: var(--color-action-default);
16086
- }
16107
+ /* Floating variant: ensure margin-bottom is at least the safe-area inset. */
16108
+ .muka-bottombar--floating:not(.muka-bottombar--no-safe-area) {
16109
+ padding-bottom: max(var(--bottombar-floating-margin-bottom), env(safe-area-inset-bottom));
16110
+ }
16087
16111
 
16088
- .muka-bottombar--desktop-topnav .muka-bottombar__tab:hover {
16089
- background-color: var(--color-surface-level2);
16090
- }
16112
+ /* ─── Divider (non-floating) ──────────────────────────── */
16091
16113
 
16092
- .muka-bottombar--desktop-topnav .muka-bottombar__tab-label {
16093
- font-family: var(--text-label-md-regular-fontFamily);
16094
- font-weight: var(--text-label-md-regular-fontWeight);
16095
- font-size: var(--text-label-md-regular-fontSize);
16096
- line-height: var(--text-label-md-regular-lineHeight);
16097
- }
16114
+ .muka-bottombar__divider {
16115
+ height: var(--border-width-regular);
16116
+ background-color: var(--bottombar-color-border);
16117
+ width: 100%;
16118
+ }
16098
16119
 
16099
- /* When floating and topnav, remove the floating card styles */
16100
- .muka-bottombar--desktop-topnav.muka-bottombar--floating {
16101
- padding: 0;
16102
- }
16120
+ /* ─── Content container ───────────────────────────────── */
16103
16121
 
16104
- .muka-bottombar--desktop-topnav.muka-bottombar--floating .muka-bottombar__content {
16105
- background-color: transparent;
16106
- border-radius: 0;
16107
- box-shadow: none;
16108
- }
16122
+ .muka-bottombar__content {
16123
+ display: flex;
16124
+ align-items: center;
16109
16125
  }
16110
16126
 
16111
- /* ─── Print ────────────────────────────────────────────── */
16127
+ /* ─── Actions variant (horizontal) ───────────────────── */
16112
16128
 
16113
- @media print {
16114
- .muka-bottombar {
16115
- display: none;
16116
- }
16129
+ .muka-bottombar--actions .muka-bottombar__content {
16130
+ flex-direction: row;
16131
+ gap: var(--bottombar-actions-gap);
16132
+ padding: var(--bottombar-actions-padding-t) var(--bottombar-actions-padding-x) var(--bottombar-actions-padding-x);
16117
16133
  }
16118
16134
 
16135
+ .muka-bottombar--actions .muka-bottombar__content > * {
16136
+ flex: 1;
16137
+ }
16119
16138
 
16120
- /* BadgeNumber */
16121
- /* BadgeNumber Component Styles - Using Muka Design Tokens */
16139
+ /* ─── Actions-vertical variant (stacked) ─────────────── */
16122
16140
 
16123
- .muka-badge-number {
16124
- display: inline-flex;
16125
- align-items: center;
16126
- justify-content: center;
16127
- border-radius: var(--border-radius-full);
16128
- white-space: nowrap;
16129
- user-select: none;
16130
- box-sizing: border-box;
16141
+ .muka-bottombar--actions-vertical .muka-bottombar__content {
16142
+ flex-direction: column;
16143
+ gap: var(--bottombar-actions-gap);
16144
+ padding: var(--bottombar-actions-padding-t) var(--bottombar-actions-padding-x) var(--bottombar-actions-padding-x);
16131
16145
  }
16132
16146
 
16133
- /*
16134
- * Sizes — fixed height, matching min-width (so a single digit renders as a
16135
- * circle), horizontal padding, and bold label typography. Vertical centering
16136
- * is handled by the fixed height + align-items: center.
16137
- */
16138
- .muka-badge-number--2xs {
16139
- height: var(--badge-number-size-2xs);
16140
- min-width: var(--badge-number-size-2xs);
16141
- padding: 0 var(--badge-number-padding-2xs);
16142
- font-family: var(--text-label-xs-bold-fontFamily);
16143
- font-weight: var(--text-label-xs-bold-fontWeight);
16144
- font-size: var(--text-label-xs-bold-fontSize);
16145
- line-height: var(--text-label-xs-bold-lineHeight);
16147
+ .muka-bottombar--actions-vertical .muka-bottombar__content > * {
16148
+ width: 100%;
16146
16149
  }
16147
16150
 
16148
- .muka-badge-number--xs {
16149
- height: var(--badge-number-size-xs);
16150
- min-width: var(--badge-number-size-xs);
16151
- padding: 0 var(--badge-number-padding-xs);
16152
- font-family: var(--text-label-sm-bold-fontFamily);
16153
- font-weight: var(--text-label-sm-bold-fontWeight);
16154
- font-size: var(--text-label-sm-bold-fontSize);
16155
- line-height: var(--text-label-sm-bold-lineHeight);
16156
- }
16151
+ /* ─── Message (actions variants only) ────────────────── */
16157
16152
 
16158
- .muka-badge-number--sm {
16159
- height: var(--badge-number-size-sm);
16160
- min-width: var(--badge-number-size-sm);
16161
- padding: 0 var(--badge-number-padding-sm);
16162
- font-family: var(--text-label-md-bold-fontFamily);
16163
- font-weight: var(--text-label-md-bold-fontWeight);
16164
- font-size: var(--text-label-md-bold-fontSize);
16165
- line-height: var(--text-label-md-bold-lineHeight);
16153
+ /* Below 1024px the message takes its own line above the buttons. */
16154
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content {
16155
+ flex-wrap: wrap;
16156
+ row-gap: var(--bottombar-actions-message-gap);
16166
16157
  }
16167
16158
 
16168
- .muka-badge-number--md {
16169
- height: var(--badge-number-size-md);
16170
- min-width: var(--badge-number-size-md);
16171
- padding: 0 var(--badge-number-padding-md);
16172
- font-family: var(--text-label-lg-bold-fontFamily);
16173
- font-weight: var(--text-label-lg-bold-fontWeight);
16174
- font-size: var(--text-label-lg-bold-fontSize);
16175
- line-height: var(--text-label-lg-bold-lineHeight);
16159
+ .muka-bottombar--actions-vertical.muka-bottombar--with-message .muka-bottombar__content {
16160
+ row-gap: var(--bottombar-actions-message-gap);
16176
16161
  }
16177
16162
 
16178
- .muka-badge-number--lg {
16179
- height: var(--badge-number-size-lg);
16180
- min-width: var(--badge-number-size-lg);
16181
- padding: 0 var(--badge-number-padding-lg);
16182
- font-family: var(--text-label-2xl-bold-fontFamily);
16183
- font-weight: var(--text-label-2xl-bold-fontWeight);
16184
- font-size: var(--text-label-2xl-bold-fontSize);
16185
- line-height: var(--text-label-2xl-bold-lineHeight);
16163
+ .muka-bottombar--with-message .muka-bottombar__content > .muka-bottombar__message {
16164
+ flex: 1 0 100%;
16165
+ width: 100%;
16186
16166
  }
16187
16167
 
16188
- .muka-badge-number__label {
16189
- /*
16190
- * The badge sets a tight line-height for compact sizing, which would clip
16191
- * glyph descenders; give the label a roomier line-height. Vertical centering
16192
- * is unaffected because the badge height is fixed and content is centered.
16193
- */
16194
- line-height: normal;
16168
+ .muka-bottombar__message {
16169
+ margin: 0;
16170
+ min-width: 0;
16171
+ overflow-wrap: anywhere;
16172
+ font-family: var(--text-body-sm-regular-fontFamily);
16173
+ font-weight: var(--text-body-sm-regular-fontWeight);
16174
+ font-size: var(--text-body-sm-regular-fontSize);
16175
+ line-height: var(--text-body-sm-regular-lineHeight);
16195
16176
  }
16196
16177
 
16197
- /* Neutral variant */
16198
- .muka-badge-number--neutral {
16199
- background-color: var(--color-surface-level1);
16200
- color: var(--color-text-default-default);
16178
+ .muka-bottombar__message--neutral {
16179
+ color: var(--bottombar-color-message-neutral);
16201
16180
  }
16202
16181
 
16203
- /* Info variant */
16204
- .muka-badge-number--info {
16205
- background-color: var(--color-state-info-contrast);
16206
- color: var(--color-text-default-inverse);
16182
+ .muka-bottombar__message--success {
16183
+ color: var(--bottombar-color-message-success);
16207
16184
  }
16208
16185
 
16209
- /* Success variant */
16210
- .muka-badge-number--success {
16211
- background-color: var(--color-state-success-contrast);
16212
- color: var(--color-text-default-inverse);
16186
+ .muka-bottombar__message--warning {
16187
+ color: var(--bottombar-color-message-warning);
16213
16188
  }
16214
16189
 
16215
- /* Warning variant */
16216
- .muka-badge-number--warning {
16217
- background-color: var(--color-state-warning-contrast);
16218
- color: var(--color-text-default-inverse);
16219
- }
16190
+ /* From 1024px the horizontal bar puts the message left, the buttons right at
16191
+ their own width. The vertical variant keeps stacking. */
16192
+ @media (min-width: 1024px) {
16193
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content {
16194
+ flex-wrap: nowrap;
16195
+ }
16220
16196
 
16221
- /* Error variant */
16222
- .muka-badge-number--error {
16223
- background-color: var(--color-state-error-contrast);
16224
- color: var(--color-text-default-inverse);
16197
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content > * {
16198
+ flex: 0 0 auto;
16199
+ }
16200
+
16201
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content > .muka-bottombar__message {
16202
+ flex: 1 1 auto;
16203
+ width: auto;
16204
+ }
16225
16205
  }
16226
16206
 
16207
+ /* ─── Size modifiers (actions variants only) ─────────── */
16227
16208
 
16228
- /* Badge */
16229
- /* Badge Component Styles - Using Muka Design Tokens */
16209
+ /* ─── Navigation variant ──────────────────────────────── */
16230
16210
 
16231
- .muka-badge {
16232
- display: inline-flex;
16233
- align-items: center;
16234
- border-radius: var(--border-radius-full);
16235
- white-space: nowrap;
16236
- user-select: none;
16237
- box-sizing: border-box;
16211
+ .muka-bottombar--navigation .muka-bottombar__content {
16212
+ flex-direction: row;
16238
16213
  }
16239
16214
 
16240
- /*
16241
- * Sizes — height, gap, type, and default (label-edge) horizontal padding.
16242
- * Mirrors Chip so the two components share sizing, fonts, and spacing.
16243
- * Vertical centering is handled by the fixed height + align-items: center.
16244
- * The leading side gets a tighter padding when an icon/dot is present, via the
16245
- * --has-icon / --has-dot modifiers below.
16246
- */
16247
- .muka-badge--sm {
16248
- height: var(--badge-size-height-sm);
16249
- gap: var(--badge-gap-sm);
16250
- padding: 0 var(--badge-padding-label-sm);
16251
- font-family: var(--text-label-sm-regular-fontFamily);
16252
- font-weight: var(--text-label-sm-regular-fontWeight);
16253
- font-size: var(--text-label-sm-regular-fontSize);
16254
- line-height: var(--text-label-sm-regular-lineHeight);
16255
- }
16215
+ /* ─── Chat variant (houses a ChatComposer) ───────────── */
16256
16216
 
16257
- .muka-badge--md {
16258
- height: var(--badge-size-height-md);
16259
- gap: var(--badge-gap-md);
16260
- padding: 0 var(--badge-padding-label-md);
16261
- font-family: var(--text-label-md-regular-fontFamily);
16262
- font-weight: var(--text-label-md-regular-fontWeight);
16263
- font-size: var(--text-label-md-regular-fontSize);
16264
- line-height: var(--text-label-md-regular-lineHeight);
16217
+ .muka-bottombar--chat .muka-bottombar__content {
16218
+ flex-direction: row;
16219
+ width: 100%;
16220
+ margin: 0 auto;
16265
16221
  }
16266
16222
 
16267
- .muka-badge--lg {
16268
- height: var(--badge-size-height-lg);
16269
- gap: var(--badge-gap-lg);
16270
- padding: 0 var(--badge-padding-label-lg);
16271
- font-family: var(--text-label-lg-regular-fontFamily);
16272
- font-weight: var(--text-label-lg-regular-fontWeight);
16273
- font-size: var(--text-label-lg-regular-fontSize);
16274
- line-height: var(--text-label-lg-regular-lineHeight);
16275
- }
16223
+ /*
16224
+ * `--bottombar-chat-max-width` is the conversation column (it derives from
16225
+ * `chat.column.max-width`, the same token `ChatMessageList` caps its column
16226
+ * with). The cap here carries the padding on top of it, so it is the
16227
+ * composer's own edges — not the padding around it — that land on the column.
16228
+ */
16276
16229
 
16277
- /* Tighter leading padding when a leading icon or dot is present */
16278
- .muka-badge--sm.muka-badge--has-icon,
16279
- .muka-badge--sm.muka-badge--has-dot {
16280
- padding-left: var(--badge-padding-leading-sm);
16281
- }
16282
- .muka-badge--md.muka-badge--has-icon,
16283
- .muka-badge--md.muka-badge--has-dot {
16284
- padding-left: var(--badge-padding-leading-md);
16285
- }
16286
- .muka-badge--lg.muka-badge--has-icon,
16287
- .muka-badge--lg.muka-badge--has-dot {
16288
- padding-left: var(--badge-padding-leading-lg);
16230
+ /*
16231
+ * Docked chat pads its content; the floating card supplies its own padding.
16232
+ * The inline half is the section gutter `ChatMessageList` pads its scroller
16233
+ * with, so below the cap — where the column runs full-bleed — the composer
16234
+ * keeps to the same gutters as the messages.
16235
+ */
16236
+ .muka-bottombar--chat:not(.muka-bottombar--floating) .muka-bottombar__content {
16237
+ padding: var(--bottombar-chat-padding)
16238
+ var(--section-padding-horizontal-default, var(--spacing-4));
16239
+ max-width: calc(
16240
+ var(--bottombar-chat-max-width) + 2 * var(--section-padding-horizontal-default, var(--spacing-4))
16241
+ );
16289
16242
  }
16290
16243
 
16291
- /* Icon-only — square, sized to the badge height (Figma: 24 / 32 / 40).
16292
- * Padding resets at size+icon-only specificity so `--has-icon` leading padding
16293
- * cannot win and shift the icon off-center. */
16294
- .muka-badge--icon-only {
16295
- justify-content: center;
16296
- align-items: center;
16297
- gap: 0;
16244
+ /* Floating chat card widens to the chat cap (overrides the md default below). */
16245
+ .muka-bottombar--chat.muka-bottombar--floating .muka-bottombar__content {
16246
+ max-width: calc(var(--bottombar-chat-max-width) + 2 * var(--bottombar-floating-padding));
16298
16247
  }
16299
16248
 
16300
- .muka-badge--sm.muka-badge--icon-only,
16301
- .muka-badge--md.muka-badge--icon-only,
16302
- .muka-badge--lg.muka-badge--icon-only {
16303
- padding: 0;
16304
- }
16249
+ /* ─── Tab item ────────────────────────────────────────── */
16305
16250
 
16306
- .muka-badge--sm.muka-badge--icon-only {
16307
- width: var(--badge-size-height-sm);
16251
+ .muka-bottombar__tab {
16252
+ flex: 1;
16253
+ display: flex;
16254
+ flex-direction: column;
16255
+ align-items: center;
16256
+ gap: var(--bottombar-tab-gap);
16257
+ padding: var(--bottombar-tab-padding-y) 0;
16258
+ background: none;
16259
+ border: none;
16260
+ cursor: pointer;
16261
+ color: var(--bottombar-color-tab-inactive);
16262
+ transition: color 0.15s ease;
16263
+ -webkit-tap-highlight-color: transparent;
16308
16264
  }
16309
16265
 
16310
- .muka-badge--md.muka-badge--icon-only {
16311
- width: var(--badge-size-height-md);
16266
+ .muka-bottombar__tab:focus-visible {
16267
+ outline: 2px solid var(--color-action-default);
16268
+ outline-offset: -2px;
16269
+ border-radius: var(--border-radius-sm);
16312
16270
  }
16313
16271
 
16314
- .muka-badge--lg.muka-badge--icon-only {
16315
- width: var(--badge-size-height-lg);
16272
+ .muka-bottombar__tab--active {
16273
+ color: var(--bottombar-color-tab-active);
16316
16274
  }
16317
16275
 
16318
- /* Leading icon slot — Figma icon sizes: sm 16, md 20, lg 24 (matches Chip) */
16319
- .muka-badge__icon {
16320
- display: inline-flex;
16276
+ .muka-bottombar__tab-icon {
16277
+ position: relative;
16278
+ display: flex;
16321
16279
  align-items: center;
16322
16280
  justify-content: center;
16323
- flex-shrink: 0;
16324
- }
16325
-
16326
- .muka-badge--sm .muka-badge__icon {
16327
- width: var(--icon-size-xs);
16328
- height: var(--icon-size-xs);
16329
- }
16330
- .muka-badge--md .muka-badge__icon {
16331
- width: var(--icon-size-sm);
16332
- height: var(--icon-size-sm);
16333
- }
16334
- .muka-badge--lg .muka-badge__icon {
16335
- width: var(--icon-size-default);
16336
- height: var(--icon-size-default);
16281
+ width: var(--bottombar-tab-icon-size);
16282
+ height: var(--bottombar-tab-icon-size);
16337
16283
  }
16338
16284
 
16339
- /* Force the passed content (raw <svg> or an <Icon> wrapper) to the slot size,
16340
- so callers don't have to size the icon to match each badge size. The
16341
- .muka-icon selector is intentionally 2 classes deep to override .muka-icon--md. */
16342
- .muka-badge__icon .muka-icon,
16343
- .muka-badge__icon svg {
16285
+ .muka-bottombar__tab-icon svg {
16344
16286
  width: 100%;
16345
16287
  height: 100%;
16346
16288
  }
16347
16289
 
16348
- /* Icons inherit the badge's per-variant foreground color */
16349
- .muka-badge .muka-icon {
16350
- color: inherit;
16290
+ /* A count on the icon's top-right corner (unread messages). */
16291
+ .muka-bottombar__tab-badge {
16292
+ position: absolute;
16293
+ top: calc(-1 * var(--spacing-1));
16294
+ left: 60%;
16295
+ display: flex;
16296
+ pointer-events: none;
16351
16297
  }
16352
16298
 
16353
- /* Dot indicator */
16354
- .muka-badge__dot {
16355
- flex-shrink: 0;
16356
- border-radius: var(--border-radius-full);
16299
+ .muka-bottombar__tab-label {
16300
+ font-family: var(--text-label-sm-regular-fontFamily);
16301
+ font-weight: var(--text-label-sm-regular-fontWeight);
16302
+ font-size: var(--text-label-sm-regular-fontSize);
16303
+ line-height: var(--text-label-sm-regular-lineHeight);
16357
16304
  }
16358
16305
 
16359
- .muka-badge--sm .muka-badge__dot {
16360
- width: var(--badge-size-dot-sm);
16361
- height: var(--badge-size-dot-sm);
16362
- }
16306
+ /* ─── Floating modifier ───────────────────────────────── */
16363
16307
 
16364
- .muka-badge--md .muka-badge__dot {
16365
- width: var(--badge-size-dot-md);
16366
- height: var(--badge-size-dot-md);
16367
- }
16308
+ .muka-bottombar--floating {
16309
+ background: linear-gradient(
16310
+ to bottom,
16311
+ var(--bottombar-floating-backdrop-start),
16312
+ var(--bottombar-floating-backdrop-end)
16313
+ );
16314
+ padding: var(--bottombar-floating-padding-top) var(--bottombar-floating-margin-x) var(--bottombar-floating-margin-bottom);
16368
16315
 
16369
- .muka-badge--lg .muka-badge__dot {
16370
- width: var(--badge-size-dot-lg);
16371
- height: var(--badge-size-dot-lg);
16316
+ /* The transparent frosted margin around the pill overlays scrolling content;
16317
+ let scroll/taps fall through to that content, keeping only the pill itself
16318
+ interactive (re-enabled on __content below). */
16319
+ pointer-events: none;
16372
16320
  }
16373
16321
 
16374
- .muka-badge__label {
16375
- flex: 0 1 auto;
16376
- min-width: 0;
16377
- overflow: hidden;
16378
- text-overflow: ellipsis;
16379
- /*
16380
- * The badge sets a tight line-height for compact sizing, but the label's
16381
- * `overflow: hidden` (needed for ellipsis) then clips glyph descenders (g, y, p). Give the
16382
- * label its own roomier line-height so descenders render; vertical centering is unaffected
16383
- * because the badge height is fixed and content is centered via align-items: center.
16384
- */
16385
- line-height: normal;
16322
+ .muka-bottombar--floating .muka-bottombar__content {
16323
+ pointer-events: auto;
16386
16324
  }
16387
16325
 
16388
- /* Neutral variant */
16389
- .muka-badge--neutral {
16390
- background-color: var(--color-surface-level1);
16391
- color: var(--color-text-default-default);
16326
+ .muka-bottombar--floating .muka-bottombar__content {
16327
+ background-color: var(--bottombar-color-background);
16328
+ border-radius: var(--bottombar-floating-radius);
16329
+ padding: var(--bottombar-floating-padding);
16330
+ box-shadow: var(--bottombar-floating-shadow);
16331
+ max-width: var(--bottombar-floating-max-width);
16332
+ width: 100%;
16333
+ margin: 0 auto;
16392
16334
  }
16393
16335
 
16394
- .muka-badge--neutral .muka-badge__dot {
16395
- background-color: var(--color-text-subtle-default);
16336
+ /* Override content padding inside floating per variant */
16337
+ .muka-bottombar--floating.muka-bottombar--actions .muka-bottombar__content {
16338
+ padding: var(--bottombar-floating-padding);
16396
16339
  }
16397
16340
 
16398
- /* Info variant */
16399
- .muka-badge--info {
16400
- background-color: var(--color-state-info-background);
16401
- color: var(--color-state-info-contrast);
16341
+ .muka-bottombar--floating.muka-bottombar--navigation .muka-bottombar__content {
16342
+ padding: var(--bottombar-navigation-floating-padding);
16402
16343
  }
16403
16344
 
16404
- .muka-badge--info .muka-badge__dot {
16405
- background-color: var(--color-state-info-default);
16406
- }
16345
+ /* ─── Desktop: Sidebar transformation ─────────────────── */
16407
16346
 
16408
- /* Success variant */
16409
- .muka-badge--success {
16410
- background-color: var(--color-state-success-background);
16411
- color: var(--color-state-success-contrast);
16412
- }
16347
+ @media (min-width: 1024px) {
16348
+ .muka-bottombar--desktop-sidebar {
16349
+ position: fixed;
16350
+ left: 0;
16351
+ top: 0;
16352
+ bottom: 0;
16353
+ width: 240px;
16354
+ height: 100vh;
16355
+ background-color: var(--bottombar-color-background);
16356
+ border-right: var(--border-width-regular) solid var(--bottombar-color-border);
16357
+ z-index: 10;
16358
+ }
16413
16359
 
16414
- .muka-badge--success .muka-badge__dot {
16415
- background-color: var(--color-state-success-default);
16416
- }
16360
+ .muka-bottombar--desktop-sidebar .muka-bottombar__divider {
16361
+ display: none;
16362
+ }
16417
16363
 
16418
- /* Warning variant */
16419
- .muka-badge--warning {
16420
- background-color: var(--color-state-warning-background);
16421
- color: var(--color-state-warning-contrast);
16422
- }
16364
+ .muka-bottombar--desktop-sidebar .muka-bottombar__content {
16365
+ flex-direction: column;
16366
+ align-items: stretch;
16367
+ padding: var(--spacing-4) var(--spacing-3);
16368
+ /* The rail runs to the top of the screen: clear the status bar there. */
16369
+ padding-top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
16370
+ gap: var(--spacing-1);
16371
+ }
16423
16372
 
16424
- .muka-badge--warning .muka-badge__dot {
16425
- background-color: var(--color-state-warning-default);
16373
+ .muka-bottombar--desktop-sidebar .muka-bottombar__tab {
16374
+ flex: 0 0 auto;
16375
+ flex-direction: row;
16376
+ justify-content: flex-start;
16377
+ gap: var(--spacing-3);
16378
+ padding: var(--spacing-3);
16379
+ border-radius: var(--border-radius-md);
16380
+ }
16381
+
16382
+ .muka-bottombar--desktop-sidebar .muka-bottombar__tab:hover {
16383
+ background-color: var(--color-surface-level2);
16384
+ }
16385
+
16386
+ .muka-bottombar--desktop-sidebar .muka-bottombar__tab-label {
16387
+ font-family: var(--text-label-md-regular-fontFamily);
16388
+ font-weight: var(--text-label-md-regular-fontWeight);
16389
+ font-size: var(--text-label-md-regular-fontSize);
16390
+ line-height: var(--text-label-md-regular-lineHeight);
16391
+ }
16392
+
16393
+ /* When floating and sidebar, remove the floating card styles */
16394
+ .muka-bottombar--desktop-sidebar.muka-bottombar--floating {
16395
+ padding: 0;
16396
+ }
16397
+
16398
+ .muka-bottombar--desktop-sidebar.muka-bottombar--floating .muka-bottombar__content {
16399
+ background-color: transparent;
16400
+ border-radius: 0;
16401
+ box-shadow: none;
16402
+ }
16426
16403
  }
16427
16404
 
16428
- /* Error variant */
16429
- .muka-badge--error {
16430
- background-color: var(--color-state-error-background);
16431
- color: var(--color-state-error-contrast);
16405
+ /* ─── Desktop: Top Navigation transformation ──────────── */
16406
+
16407
+ @media (min-width: 1024px) {
16408
+ .muka-bottombar--desktop-topnav {
16409
+ position: fixed;
16410
+ top: 0;
16411
+ left: 0;
16412
+ right: 0;
16413
+ width: 100%;
16414
+ height: auto;
16415
+ background-color: var(--bottombar-color-background);
16416
+ border-bottom: var(--border-width-regular) solid var(--bottombar-color-border);
16417
+ z-index: 10;
16418
+ }
16419
+
16420
+ .muka-bottombar--desktop-topnav .muka-bottombar__divider {
16421
+ display: none;
16422
+ }
16423
+
16424
+ .muka-bottombar--desktop-topnav .muka-bottombar__content {
16425
+ flex-direction: row;
16426
+ justify-content: center;
16427
+ gap: var(--spacing-1);
16428
+ padding: 0 var(--spacing-4);
16429
+ max-width: var(--container-max-width-large, 1200px);
16430
+ margin: 0 auto;
16431
+ }
16432
+
16433
+ .muka-bottombar--desktop-topnav .muka-bottombar__tab {
16434
+ flex: 0 0 auto;
16435
+ flex-direction: row;
16436
+ gap: var(--spacing-2);
16437
+ padding: var(--spacing-3) var(--spacing-4);
16438
+ border-radius: 0;
16439
+ border-bottom: 2px solid transparent;
16440
+ }
16441
+
16442
+ .muka-bottombar--desktop-topnav .muka-bottombar__tab--active {
16443
+ border-bottom-color: var(--color-action-default);
16444
+ }
16445
+
16446
+ .muka-bottombar--desktop-topnav .muka-bottombar__tab:hover {
16447
+ background-color: var(--color-surface-level2);
16448
+ }
16449
+
16450
+ .muka-bottombar--desktop-topnav .muka-bottombar__tab-label {
16451
+ font-family: var(--text-label-md-regular-fontFamily);
16452
+ font-weight: var(--text-label-md-regular-fontWeight);
16453
+ font-size: var(--text-label-md-regular-fontSize);
16454
+ line-height: var(--text-label-md-regular-lineHeight);
16455
+ }
16456
+
16457
+ /* When floating and topnav, remove the floating card styles */
16458
+ .muka-bottombar--desktop-topnav.muka-bottombar--floating {
16459
+ padding: 0;
16460
+ }
16461
+
16462
+ .muka-bottombar--desktop-topnav.muka-bottombar--floating .muka-bottombar__content {
16463
+ background-color: transparent;
16464
+ border-radius: 0;
16465
+ box-shadow: none;
16466
+ }
16432
16467
  }
16433
16468
 
16434
- .muka-badge--error .muka-badge__dot {
16435
- background-color: var(--color-state-error-default);
16469
+ /* ─── Print ────────────────────────────────────────────── */
16470
+
16471
+ @media print {
16472
+ .muka-bottombar {
16473
+ display: none;
16474
+ }
16436
16475
  }
16437
16476
 
16438
16477