@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
@@ -2674,9 +2674,11 @@ body {
2674
2674
  padding-right: env(safe-area-inset-right, 0px);
2675
2675
  }
2676
2676
 
2677
- /* Home indicator: a View without a footer pads its own body. A footer holds a
2678
- BottomBar, which pads itself, so the body must not do it twice. */
2679
- .muka-view__body:not(:has(.muka-view__footer)) {
2677
+ /* Home indicator: the body pads for it only when nothing inside does. A
2678
+ BottomBar pads itself, whether it sits in the footer slot or in the content
2679
+ (a chat composer pinned under a message list), so the body must not do it
2680
+ twice; doing so left a strip of body colour under the bar. */
2681
+ .muka-view__body:not(:has(.muka-view__footer, .muka-bottombar:not(.muka-bottombar--no-safe-area))) {
2680
2682
  padding-bottom: env(safe-area-inset-bottom, 0px);
2681
2683
  }
2682
2684
 
@@ -5605,81 +5607,6 @@ body {
5605
5607
  }
5606
5608
 
5607
5609
 
5608
- /* Skeleton */
5609
- /* Skeleton Component Styles */
5610
-
5611
- .muka-skeleton {
5612
- background-color: var(--color-surface-level1);
5613
- display: block;
5614
- }
5615
-
5616
- /* Variants */
5617
- .muka-skeleton--text {
5618
- height: 1em;
5619
- border-radius: var(--radius-md);
5620
- width: 100%;
5621
- }
5622
-
5623
- .muka-skeleton--circular {
5624
- width: 2.5rem;
5625
- height: 2.5rem;
5626
- border-radius: var(--radius-full);
5627
- }
5628
-
5629
- .muka-skeleton--rectangular {
5630
- height: 7.5rem;
5631
- border-radius: var(--radius-md);
5632
- width: 100%;
5633
- }
5634
-
5635
- /* Last line in multi-line text is shorter */
5636
- .muka-skeleton--last-line {
5637
- width: 80%;
5638
- }
5639
-
5640
- /* Lines container */
5641
- .muka-skeleton__lines {
5642
- display: flex;
5643
- flex-direction: column;
5644
- gap: var(--spacing-2);
5645
- }
5646
-
5647
- /* Shimmer animation */
5648
- @keyframes muka-skeleton-shimmer {
5649
- 0% {
5650
- background-position: -200% 0;
5651
- }
5652
- 100% {
5653
- background-position: 200% 0;
5654
- }
5655
- }
5656
-
5657
- .muka-skeleton--shimmer {
5658
- background: linear-gradient(
5659
- 90deg,
5660
- var(--color-surface-level1) 25%,
5661
- var(--color-surface-level2) 50%,
5662
- var(--color-surface-level1) 75%
5663
- );
5664
- background-size: 200% 100%;
5665
- animation: muka-skeleton-shimmer 1.5s ease-in-out infinite;
5666
- }
5667
-
5668
- /* Pulse animation */
5669
- @keyframes muka-skeleton-pulse {
5670
- 0%, 100% {
5671
- opacity: 1;
5672
- }
5673
- 50% {
5674
- opacity: 0.4;
5675
- }
5676
- }
5677
-
5678
- .muka-skeleton--pulse {
5679
- animation: muka-skeleton-pulse 1.5s ease-in-out infinite;
5680
- }
5681
-
5682
-
5683
5610
  /* SiteHeader */
5684
5611
  /* SiteHeader Component Styles */
5685
5612
 
@@ -5787,6 +5714,81 @@ body {
5787
5714
  }
5788
5715
 
5789
5716
 
5717
+ /* Skeleton */
5718
+ /* Skeleton Component Styles */
5719
+
5720
+ .muka-skeleton {
5721
+ background-color: var(--color-surface-level1);
5722
+ display: block;
5723
+ }
5724
+
5725
+ /* Variants */
5726
+ .muka-skeleton--text {
5727
+ height: 1em;
5728
+ border-radius: var(--radius-md);
5729
+ width: 100%;
5730
+ }
5731
+
5732
+ .muka-skeleton--circular {
5733
+ width: 2.5rem;
5734
+ height: 2.5rem;
5735
+ border-radius: var(--radius-full);
5736
+ }
5737
+
5738
+ .muka-skeleton--rectangular {
5739
+ height: 7.5rem;
5740
+ border-radius: var(--radius-md);
5741
+ width: 100%;
5742
+ }
5743
+
5744
+ /* Last line in multi-line text is shorter */
5745
+ .muka-skeleton--last-line {
5746
+ width: 80%;
5747
+ }
5748
+
5749
+ /* Lines container */
5750
+ .muka-skeleton__lines {
5751
+ display: flex;
5752
+ flex-direction: column;
5753
+ gap: var(--spacing-2);
5754
+ }
5755
+
5756
+ /* Shimmer animation */
5757
+ @keyframes muka-skeleton-shimmer {
5758
+ 0% {
5759
+ background-position: -200% 0;
5760
+ }
5761
+ 100% {
5762
+ background-position: 200% 0;
5763
+ }
5764
+ }
5765
+
5766
+ .muka-skeleton--shimmer {
5767
+ background: linear-gradient(
5768
+ 90deg,
5769
+ var(--color-surface-level1) 25%,
5770
+ var(--color-surface-level2) 50%,
5771
+ var(--color-surface-level1) 75%
5772
+ );
5773
+ background-size: 200% 100%;
5774
+ animation: muka-skeleton-shimmer 1.5s ease-in-out infinite;
5775
+ }
5776
+
5777
+ /* Pulse animation */
5778
+ @keyframes muka-skeleton-pulse {
5779
+ 0%, 100% {
5780
+ opacity: 1;
5781
+ }
5782
+ 50% {
5783
+ opacity: 0.4;
5784
+ }
5785
+ }
5786
+
5787
+ .muka-skeleton--pulse {
5788
+ animation: muka-skeleton-pulse 1.5s ease-in-out infinite;
5789
+ }
5790
+
5791
+
5790
5792
  /* Sheet */
5791
5793
  /* Sheet Component Styles */
5792
5794
 
@@ -6063,29 +6065,6 @@ body {
6063
6065
  }
6064
6066
 
6065
6067
 
6066
- /* Section */
6067
- /* Section Component - Layout tokens (section.padding) */
6068
-
6069
- .muka-section {
6070
- box-sizing: border-box;
6071
- }
6072
-
6073
- .muka-section--padding-compact {
6074
- padding-block: var(--section-padding-vertical-compact);
6075
- padding-inline: var(--section-padding-horizontal-compact);
6076
- }
6077
-
6078
- .muka-section--padding-default {
6079
- padding-block: var(--section-padding-vertical-default);
6080
- padding-inline: var(--section-padding-horizontal-default);
6081
- }
6082
-
6083
- .muka-section--padding-spacious {
6084
- padding-block: var(--section-padding-vertical-spacious);
6085
- padding-inline: var(--section-padding-horizontal-spacious);
6086
- }
6087
-
6088
-
6089
6068
  /* SegmentGroup */
6090
6069
  /* SegmentGroup Component Styles - Using Muka Design Tokens */
6091
6070
 
@@ -6274,6 +6253,29 @@ body {
6274
6253
  }
6275
6254
 
6276
6255
 
6256
+ /* Section */
6257
+ /* Section Component - Layout tokens (section.padding) */
6258
+
6259
+ .muka-section {
6260
+ box-sizing: border-box;
6261
+ }
6262
+
6263
+ .muka-section--padding-compact {
6264
+ padding-block: var(--section-padding-vertical-compact);
6265
+ padding-inline: var(--section-padding-horizontal-compact);
6266
+ }
6267
+
6268
+ .muka-section--padding-default {
6269
+ padding-block: var(--section-padding-vertical-default);
6270
+ padding-inline: var(--section-padding-horizontal-default);
6271
+ }
6272
+
6273
+ .muka-section--padding-spacious {
6274
+ padding-block: var(--section-padding-vertical-spacious);
6275
+ padding-inline: var(--section-padding-horizontal-spacious);
6276
+ }
6277
+
6278
+
6277
6279
  /* SearchInput */
6278
6280
  /* SearchInput Component Styles */
6279
6281
 
@@ -6836,50 +6838,193 @@ body {
6836
6838
  }
6837
6839
 
6838
6840
 
6839
- /* Radio */
6840
- /* Radio Component Styles - Using Muka Design Tokens */
6841
+ /* RadioTile */
6842
+ /* RadioTile Component Styles - Using Muka Design Tokens */
6841
6843
 
6842
- /* Wrapper - clickable label container */
6843
- .muka-radio {
6844
- display: inline-flex;
6844
+ /* Base tile styles - horizontal */
6845
+ .muka-radio-tile {
6846
+ display: flex;
6845
6847
  align-items: center;
6846
6848
  gap: var(--spacing-4);
6849
+ padding: var(--spacing-4);
6850
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
6851
+ border-radius: var(--input-field-radius-lg);
6852
+ background-color: var(--color-surface-level3);
6847
6853
  cursor: pointer;
6848
- user-select: none;
6854
+ transition: border-color 0.15s ease, border-width 0.15s ease;
6855
+ overflow: hidden;
6856
+ box-sizing: border-box;
6849
6857
  }
6850
6858
 
6851
- .muka-radio--disabled {
6859
+ .muka-radio-tile--disabled {
6852
6860
  cursor: not-allowed;
6853
6861
  opacity: 0.6;
6854
6862
  }
6855
6863
 
6856
- /* Control container */
6857
- .muka-radio__control {
6858
- position: relative;
6859
- display: inline-flex;
6864
+ /* Selected state */
6865
+ .muka-radio-tile[data-checked] {
6866
+ border-width: var(--border-width-bold);
6867
+ border-color: var(--color-action-default);
6868
+ }
6869
+
6870
+ /* Vertical layout */
6871
+ .muka-radio-tile--vertical {
6872
+ flex-direction: column;
6860
6873
  align-items: center;
6861
- justify-content: center;
6874
+ gap: var(--spacing-2);
6875
+ position: relative;
6876
+ width: 160px;
6877
+ }
6878
+
6879
+ /* Radio container */
6880
+ .muka-radio-tile__radio {
6862
6881
  flex-shrink: 0;
6863
6882
  }
6864
6883
 
6865
- /* Hidden native input */
6866
- .muka-radio__input {
6884
+ /* Corner-positioned radio for vertical */
6885
+ .muka-radio-tile__radio--corner {
6867
6886
  position: absolute;
6868
- width: 1px;
6869
- height: 1px;
6870
- padding: 0;
6871
- margin: -1px;
6872
- overflow: hidden;
6873
- clip: rect(0, 0, 0, 0);
6874
- white-space: nowrap;
6875
- border: 0;
6887
+ top: var(--spacing-4);
6888
+ left: var(--spacing-4);
6876
6889
  }
6877
6890
 
6878
- /* Visual indicator (circle) */
6879
- .muka-radio__indicator {
6880
- display: flex;
6881
- align-items: center;
6882
- justify-content: center;
6891
+ /* Adjust corner position when selected (border is thicker) */
6892
+ .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
6893
+ top: calc(var(--spacing-4) - 1px);
6894
+ left: calc(var(--spacing-4) - 1px);
6895
+ }
6896
+
6897
+ /* Icon */
6898
+ .muka-radio-tile__icon {
6899
+ display: flex;
6900
+ align-items: center;
6901
+ justify-content: center;
6902
+ flex-shrink: 0;
6903
+ width: var(--icon-size-default);
6904
+ height: var(--icon-size-default);
6905
+ color: var(--color-text-default-default);
6906
+ }
6907
+
6908
+ .muka-radio-tile__icon svg {
6909
+ width: 100%;
6910
+ height: 100%;
6911
+ }
6912
+
6913
+ /* Image */
6914
+ .muka-radio-tile__image {
6915
+ flex-shrink: 0;
6916
+ overflow: hidden;
6917
+ border-radius: var(--border-radius-sm);
6918
+ }
6919
+
6920
+ .muka-radio-tile__image img {
6921
+ display: block;
6922
+ width: 100%;
6923
+ height: 100%;
6924
+ object-fit: cover;
6925
+ }
6926
+
6927
+ /* Horizontal image sizing */
6928
+ .muka-radio-tile__image--horizontal {
6929
+ width: 40px;
6930
+ height: 40px;
6931
+ }
6932
+
6933
+ /* Vertical image sizing */
6934
+ .muka-radio-tile--vertical .muka-radio-tile__image {
6935
+ width: 100%;
6936
+ aspect-ratio: 4/3;
6937
+ }
6938
+
6939
+ /* Content container */
6940
+ .muka-radio-tile__content {
6941
+ display: flex;
6942
+ flex-direction: column;
6943
+ flex: 1;
6944
+ min-width: 0;
6945
+ gap: var(--spacing-1);
6946
+ }
6947
+
6948
+ /* Label */
6949
+ .muka-radio-tile__label {
6950
+ font-family: var(--text-body-lg-regular-fontFamily);
6951
+ font-weight: var(--text-body-lg-regular-fontWeight);
6952
+ font-size: var(--text-body-lg-regular-fontSize);
6953
+ line-height: var(--text-body-lg-regular-lineHeight);
6954
+ color: var(--color-text-default-default);
6955
+ }
6956
+
6957
+ .muka-radio-tile__label--bold {
6958
+ font-family: var(--text-label-lg-semibold-fontFamily);
6959
+ font-weight: var(--text-label-lg-semibold-fontWeight);
6960
+ font-size: var(--text-label-lg-semibold-fontSize);
6961
+ line-height: var(--text-label-lg-semibold-lineHeight);
6962
+ }
6963
+
6964
+ .muka-radio-tile__label--center {
6965
+ text-align: center;
6966
+ }
6967
+
6968
+ /* Caption */
6969
+ .muka-radio-tile__caption {
6970
+ font-family: var(--text-body-base-regular-fontFamily);
6971
+ font-weight: var(--text-body-base-regular-fontWeight);
6972
+ font-size: var(--text-body-base-regular-fontSize);
6973
+ line-height: var(--text-body-base-regular-lineHeight);
6974
+ color: var(--color-text-subtle-default);
6975
+ }
6976
+
6977
+ /* Disabled states */
6978
+ .muka-radio-tile--disabled .muka-radio-tile__label,
6979
+ .muka-radio-tile--disabled .muka-radio-tile__icon {
6980
+ color: var(--color-text-subtle-default);
6981
+ }
6982
+
6983
+
6984
+ /* Radio */
6985
+ /* Radio Component Styles - Using Muka Design Tokens */
6986
+
6987
+ /* Wrapper - clickable label container */
6988
+ .muka-radio {
6989
+ display: inline-flex;
6990
+ align-items: center;
6991
+ gap: var(--spacing-4);
6992
+ cursor: pointer;
6993
+ user-select: none;
6994
+ }
6995
+
6996
+ .muka-radio--disabled {
6997
+ cursor: not-allowed;
6998
+ opacity: 0.6;
6999
+ }
7000
+
7001
+ /* Control container */
7002
+ .muka-radio__control {
7003
+ position: relative;
7004
+ display: inline-flex;
7005
+ align-items: center;
7006
+ justify-content: center;
7007
+ flex-shrink: 0;
7008
+ }
7009
+
7010
+ /* Hidden native input */
7011
+ .muka-radio__input {
7012
+ position: absolute;
7013
+ width: 1px;
7014
+ height: 1px;
7015
+ padding: 0;
7016
+ margin: -1px;
7017
+ overflow: hidden;
7018
+ clip: rect(0, 0, 0, 0);
7019
+ white-space: nowrap;
7020
+ border: 0;
7021
+ }
7022
+
7023
+ /* Visual indicator (circle) */
7024
+ .muka-radio__indicator {
7025
+ display: flex;
7026
+ align-items: center;
7027
+ justify-content: center;
6883
7028
  width: var(--radio-size-default);
6884
7029
  height: var(--radio-size-default);
6885
7030
  border-radius: var(--border-radius-full);
@@ -6980,223 +7125,80 @@ body {
6980
7125
  }
6981
7126
 
6982
7127
 
6983
- /* RadioTile */
6984
- /* RadioTile Component Styles - Using Muka Design Tokens */
7128
+ /* PullToRefresh */
7129
+ /* PullToRefresh Component Styles */
6985
7130
 
6986
- /* Base tile styles - horizontal */
6987
- .muka-radio-tile {
7131
+ .muka-pull-to-refresh {
7132
+ position: relative;
6988
7133
  display: flex;
6989
- align-items: center;
6990
- gap: var(--spacing-4);
6991
- padding: var(--spacing-4);
6992
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
6993
- border-radius: var(--input-field-radius-lg);
6994
- background-color: var(--color-surface-level3);
6995
- cursor: pointer;
6996
- transition: border-color 0.15s ease, border-width 0.15s ease;
7134
+ flex-direction: column;
7135
+ width: 100%;
7136
+ height: 100%;
6997
7137
  overflow: hidden;
6998
- box-sizing: border-box;
6999
- }
7000
-
7001
- .muka-radio-tile--disabled {
7002
- cursor: not-allowed;
7003
- opacity: 0.6;
7004
7138
  }
7005
7139
 
7006
- /* Selected state */
7007
- .muka-radio-tile[data-checked] {
7008
- border-width: var(--border-width-bold);
7009
- border-color: var(--color-action-default);
7140
+ .muka-pull-to-refresh__indicator {
7141
+ position: absolute;
7142
+ top: 0;
7143
+ left: 0;
7144
+ right: 0;
7145
+ display: flex;
7146
+ align-items: flex-end;
7147
+ justify-content: center;
7148
+ padding-bottom: var(--spacing-2);
7149
+ color: var(--color-text-subtle-default);
7150
+ overflow: hidden;
7151
+ pointer-events: none;
7152
+ z-index: 1;
7010
7153
  }
7011
7154
 
7012
- /* Vertical layout */
7013
- .muka-radio-tile--vertical {
7014
- flex-direction: column;
7155
+ .muka-pull-to-refresh__chevron {
7156
+ display: inline-flex;
7015
7157
  align-items: center;
7016
- gap: var(--spacing-2);
7017
- position: relative;
7018
- width: 160px;
7158
+ justify-content: center;
7159
+ transition: transform 0.16s ease;
7019
7160
  }
7020
7161
 
7021
- /* Radio container */
7022
- .muka-radio-tile__radio {
7023
- flex-shrink: 0;
7162
+ .muka-pull-to-refresh__scroller {
7163
+ flex: 1 1 auto;
7164
+ min-height: 0;
7165
+ width: 100%;
7166
+ overflow-x: clip;
7167
+ overflow-y: auto;
7168
+ -webkit-overflow-scrolling: touch;
7169
+ overscroll-behavior-y: contain;
7170
+ touch-action: pan-y;
7171
+ will-change: transform;
7024
7172
  }
7025
7173
 
7026
- /* Corner-positioned radio for vertical */
7027
- .muka-radio-tile__radio--corner {
7028
- position: absolute;
7029
- top: var(--spacing-4);
7030
- left: var(--spacing-4);
7031
- }
7032
7174
 
7033
- /* Adjust corner position when selected (border is thicker) */
7034
- .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
7035
- top: calc(var(--spacing-4) - 1px);
7036
- left: calc(var(--spacing-4) - 1px);
7037
- }
7175
+ /* ProgressAccordeon */
7176
+ /* ProgressAccordeon Component Styles — Using Muka Design Tokens */
7038
7177
 
7039
- /* Icon */
7040
- .muka-radio-tile__icon {
7178
+ /* ─── Root ──────────────────────────────────────────────── */
7179
+ .muka-progress-accordeon {
7180
+ container-type: inline-size;
7041
7181
  display: flex;
7042
- align-items: center;
7043
- justify-content: center;
7044
- flex-shrink: 0;
7045
- width: var(--icon-size-default);
7046
- height: var(--icon-size-default);
7047
- color: var(--color-text-default-default);
7048
- }
7049
-
7050
- .muka-radio-tile__icon svg {
7182
+ flex-direction: column;
7183
+ align-items: stretch;
7051
7184
  width: 100%;
7052
- height: 100%;
7185
+ /* Top padding provides the vertical rhythm between stacked steps */
7186
+ padding-top: var(--spacing-8);
7053
7187
  }
7054
7188
 
7055
- /* Image */
7056
- .muka-radio-tile__image {
7057
- flex-shrink: 0;
7058
- overflow: hidden;
7059
- border-radius: var(--border-radius-sm);
7189
+ /* Per-state gap: content-bearing steps are tighter, header-only steps looser */
7190
+ .muka-progress-accordeon--current,
7191
+ .muka-progress-accordeon--current.muka-progress-accordeon--expanded,
7192
+ .muka-progress-accordeon--past.muka-progress-accordeon--expanded,
7193
+ .muka-progress-accordeon--upcoming.muka-progress-accordeon--expanded {
7194
+ gap: var(--spacing-6);
7060
7195
  }
7061
7196
 
7062
- .muka-radio-tile__image img {
7063
- display: block;
7064
- width: 100%;
7065
- height: 100%;
7066
- object-fit: cover;
7067
- }
7068
-
7069
- /* Horizontal image sizing */
7070
- .muka-radio-tile__image--horizontal {
7071
- width: 40px;
7072
- height: 40px;
7073
- }
7074
-
7075
- /* Vertical image sizing */
7076
- .muka-radio-tile--vertical .muka-radio-tile__image {
7077
- width: 100%;
7078
- aspect-ratio: 4/3;
7079
- }
7080
-
7081
- /* Content container */
7082
- .muka-radio-tile__content {
7083
- display: flex;
7084
- flex-direction: column;
7085
- flex: 1;
7086
- min-width: 0;
7087
- gap: var(--spacing-1);
7088
- }
7089
-
7090
- /* Label */
7091
- .muka-radio-tile__label {
7092
- font-family: var(--text-body-lg-regular-fontFamily);
7093
- font-weight: var(--text-body-lg-regular-fontWeight);
7094
- font-size: var(--text-body-lg-regular-fontSize);
7095
- line-height: var(--text-body-lg-regular-lineHeight);
7096
- color: var(--color-text-default-default);
7097
- }
7098
-
7099
- .muka-radio-tile__label--bold {
7100
- font-family: var(--text-label-lg-semibold-fontFamily);
7101
- font-weight: var(--text-label-lg-semibold-fontWeight);
7102
- font-size: var(--text-label-lg-semibold-fontSize);
7103
- line-height: var(--text-label-lg-semibold-lineHeight);
7104
- }
7105
-
7106
- .muka-radio-tile__label--center {
7107
- text-align: center;
7108
- }
7109
-
7110
- /* Caption */
7111
- .muka-radio-tile__caption {
7112
- font-family: var(--text-body-base-regular-fontFamily);
7113
- font-weight: var(--text-body-base-regular-fontWeight);
7114
- font-size: var(--text-body-base-regular-fontSize);
7115
- line-height: var(--text-body-base-regular-lineHeight);
7116
- color: var(--color-text-subtle-default);
7117
- }
7118
-
7119
- /* Disabled states */
7120
- .muka-radio-tile--disabled .muka-radio-tile__label,
7121
- .muka-radio-tile--disabled .muka-radio-tile__icon {
7122
- color: var(--color-text-subtle-default);
7123
- }
7124
-
7125
-
7126
- /* PullToRefresh */
7127
- /* PullToRefresh Component Styles */
7128
-
7129
- .muka-pull-to-refresh {
7130
- position: relative;
7131
- display: flex;
7132
- flex-direction: column;
7133
- width: 100%;
7134
- height: 100%;
7135
- overflow: hidden;
7136
- }
7137
-
7138
- .muka-pull-to-refresh__indicator {
7139
- position: absolute;
7140
- top: 0;
7141
- left: 0;
7142
- right: 0;
7143
- display: flex;
7144
- align-items: flex-end;
7145
- justify-content: center;
7146
- padding-bottom: var(--spacing-2);
7147
- color: var(--color-text-subtle-default);
7148
- overflow: hidden;
7149
- pointer-events: none;
7150
- z-index: 1;
7151
- }
7152
-
7153
- .muka-pull-to-refresh__chevron {
7154
- display: inline-flex;
7155
- align-items: center;
7156
- justify-content: center;
7157
- transition: transform 0.16s ease;
7158
- }
7159
-
7160
- .muka-pull-to-refresh__scroller {
7161
- flex: 1 1 auto;
7162
- min-height: 0;
7163
- width: 100%;
7164
- overflow-x: clip;
7165
- overflow-y: auto;
7166
- -webkit-overflow-scrolling: touch;
7167
- overscroll-behavior-y: contain;
7168
- touch-action: pan-y;
7169
- will-change: transform;
7170
- }
7171
-
7172
-
7173
- /* ProgressAccordeon */
7174
- /* ProgressAccordeon Component Styles — Using Muka Design Tokens */
7175
-
7176
- /* ─── Root ──────────────────────────────────────────────── */
7177
- .muka-progress-accordeon {
7178
- container-type: inline-size;
7179
- display: flex;
7180
- flex-direction: column;
7181
- align-items: stretch;
7182
- width: 100%;
7183
- /* Top padding provides the vertical rhythm between stacked steps */
7184
- padding-top: var(--spacing-8);
7185
- }
7186
-
7187
- /* Per-state gap: content-bearing steps are tighter, header-only steps looser */
7188
- .muka-progress-accordeon--current,
7189
- .muka-progress-accordeon--current.muka-progress-accordeon--expanded,
7190
- .muka-progress-accordeon--past.muka-progress-accordeon--expanded,
7191
- .muka-progress-accordeon--upcoming.muka-progress-accordeon--expanded {
7192
- gap: var(--spacing-6);
7193
- }
7194
-
7195
- .muka-progress-accordeon--upcoming,
7196
- .muka-progress-accordeon--past.muka-progress-accordeon--collapsed,
7197
- .muka-progress-accordeon--upcoming.muka-progress-accordeon--collapsed,
7198
- .muka-progress-accordeon--current.muka-progress-accordeon--collapsed {
7199
- gap: var(--spacing-8);
7197
+ .muka-progress-accordeon--upcoming,
7198
+ .muka-progress-accordeon--past.muka-progress-accordeon--collapsed,
7199
+ .muka-progress-accordeon--upcoming.muka-progress-accordeon--collapsed,
7200
+ .muka-progress-accordeon--current.muka-progress-accordeon--collapsed {
7201
+ gap: var(--spacing-8);
7200
7202
  }
7201
7203
 
7202
7204
  /* Collapsible steps group header + slot. The header↔content gap lives inside the
@@ -10048,6 +10050,25 @@ button.muka-progress-tracker__tab:focus-visible {
10048
10050
  white-space: nowrap;
10049
10051
  }
10050
10052
 
10053
+ /*
10054
+ * Trailing content: time, BadgeNumber, a dot. Stacks vertically (a time above
10055
+ * a badge, as in a chat inbox), aligned to the end, and never shrinks the label
10056
+ * below it: the label ellipsises instead.
10057
+ */
10058
+ .muka-listitem__trailing {
10059
+ display: flex;
10060
+ flex-direction: column;
10061
+ align-items: flex-end;
10062
+ justify-content: center;
10063
+ gap: var(--spacing-1);
10064
+ flex-shrink: 0;
10065
+ font-family: var(--alias-font-plain-family);
10066
+ font-size: var(--text-body-sm-fontSize);
10067
+ line-height: var(--text-body-sm-lineHeight);
10068
+ color: var(--color-text-subtle-default);
10069
+ white-space: nowrap;
10070
+ }
10071
+
10051
10072
  /* Trailing chevron */
10052
10073
  .muka-listitem__chevron {
10053
10074
  display: inline-flex;
@@ -15060,221 +15081,65 @@ button.muka-chat-photo-grid__tile:focus-visible {
15060
15081
  }
15061
15082
 
15062
15083
 
15063
- /* ChatAttachmentChip */
15064
- /* ChatAttachmentChip Component Styles */
15084
+ /* Card */
15085
+ /* Card Component Styles - Using Muka Design Tokens */
15065
15086
 
15066
- .muka-chat-attachment-chip {
15067
- position: relative;
15068
- display: inline-flex;
15069
- align-items: center;
15070
- gap: var(--spacing-1);
15071
- max-width: 240px;
15072
- padding: var(--spacing-2) var(--spacing-3);
15073
- background-color: var(--color-surface-level1);
15074
- border: var(--border-width-regular) solid var(--color-border-default);
15075
- border-radius: var(--radius-md);
15087
+ .muka-card {
15088
+ background-color: var(--card-color-default-background);
15089
+ color: var(--card-color-default-foreground);
15090
+ border: var(--border-width-regular) solid var(--card-color-default-border);
15091
+ box-shadow: var(--card-shadow-default);
15092
+ transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
15076
15093
  overflow: hidden;
15077
15094
  }
15078
15095
 
15079
- .muka-chat-attachment-chip--uploading {
15080
- padding-bottom: calc(var(--spacing-2) + 2px);
15096
+ /* Padding variants */
15097
+ .muka-card--padding-none {
15098
+ padding: 0;
15081
15099
  }
15082
15100
 
15083
- .muka-chat-attachment-chip--error {
15084
- border-color: var(--color-state-error-default, var(--color-text-default-default));
15101
+ .muka-card--padding-sm {
15102
+ padding: var(--card-padding-sm);
15085
15103
  }
15086
15104
 
15087
- .muka-chat-attachment-chip--disabled {
15088
- opacity: 0.5;
15089
- pointer-events: none;
15105
+ .muka-card--padding-md {
15106
+ padding: var(--card-padding-md);
15090
15107
  }
15091
15108
 
15092
- /* ─── Body (icon + text) ───────────────────────────────── */
15093
-
15094
- .muka-chat-attachment-chip__body {
15095
- display: inline-flex;
15096
- align-items: center;
15097
- gap: var(--spacing-2);
15098
- min-width: 0;
15099
- flex: 1 1 auto;
15100
- background: none;
15101
- border: none;
15102
- padding: 0;
15103
- margin: 0;
15104
- text-align: left;
15105
- color: inherit;
15106
- font: inherit;
15107
- cursor: default;
15108
- -webkit-tap-highlight-color: transparent;
15109
+ .muka-card--padding-lg {
15110
+ padding: var(--card-padding-lg);
15109
15111
  }
15110
15112
 
15111
- .muka-chat-attachment-chip--interactive .muka-chat-attachment-chip__body {
15112
- cursor: pointer;
15113
+ /* Radius variants */
15114
+ .muka-card--radius-sm {
15115
+ border-radius: var(--card-radius-sm);
15113
15116
  }
15114
15117
 
15115
- .muka-chat-attachment-chip--interactive .muka-chat-attachment-chip__body:focus-visible {
15116
- outline: 2px solid var(--color-action-default);
15117
- outline-offset: 2px;
15118
- border-radius: var(--radius-sm);
15118
+ .muka-card--radius-md {
15119
+ border-radius: var(--card-radius-md);
15119
15120
  }
15120
15121
 
15121
- .muka-chat-attachment-chip__icon {
15122
- display: inline-flex;
15123
- align-items: center;
15124
- justify-content: center;
15125
- flex-shrink: 0;
15126
- color: var(--color-text-subtle-default);
15122
+ .muka-card--radius-lg {
15123
+ border-radius: var(--card-radius-lg);
15127
15124
  }
15128
15125
 
15129
- .muka-chat-attachment-chip__text {
15130
- display: flex;
15131
- flex-direction: column;
15132
- min-width: 0;
15133
- flex: 1 1 auto;
15126
+ /* Interactive variant */
15127
+ .muka-card--interactive {
15128
+ cursor: pointer;
15129
+ user-select: none;
15134
15130
  }
15135
15131
 
15136
- .muka-chat-attachment-chip__name {
15137
- color: var(--color-text-default-default);
15138
- font-family: var(--text-body-sm-regular-fontFamily);
15139
- font-weight: var(--text-body-sm-regular-fontWeight);
15140
- font-size: var(--text-body-sm-regular-fontSize);
15141
- line-height: var(--text-body-sm-regular-lineHeight);
15142
- white-space: nowrap;
15143
- overflow: hidden;
15144
- text-overflow: ellipsis;
15132
+ .muka-card--interactive:hover {
15133
+ background-color: var(--card-color-hover-background);
15134
+ border-color: var(--card-color-hover-border);
15135
+ box-shadow: var(--card-shadow-hover);
15145
15136
  }
15146
15137
 
15147
- .muka-chat-attachment-chip__meta {
15148
- color: var(--color-text-subtle-default);
15149
- font-family: var(--text-body-sm-regular-fontFamily);
15150
- font-weight: var(--text-body-sm-regular-fontWeight);
15151
- font-size: var(--text-body-sm-regular-fontSize);
15152
- line-height: var(--text-body-sm-regular-lineHeight);
15153
- white-space: nowrap;
15154
- overflow: hidden;
15155
- text-overflow: ellipsis;
15156
- }
15157
-
15158
- .muka-chat-attachment-chip--error .muka-chat-attachment-chip__meta {
15159
- color: var(--color-state-error-default, var(--color-text-default-default));
15160
- }
15161
-
15162
- /* ─── Remove button ────────────────────────────────────── */
15163
-
15164
- .muka-chat-attachment-chip__remove {
15165
- display: inline-flex;
15166
- align-items: center;
15167
- justify-content: center;
15168
- width: 20px;
15169
- height: 20px;
15170
- border: none;
15171
- background: none;
15172
- padding: 0;
15173
- border-radius: var(--radius-sm);
15174
- cursor: pointer;
15175
- color: var(--color-text-subtle-default);
15176
- flex-shrink: 0;
15177
- -webkit-tap-highlight-color: transparent;
15178
- }
15179
-
15180
- .muka-chat-attachment-chip__remove:hover:not(:disabled) {
15181
- color: var(--color-text-default-default);
15182
- background-color: var(--color-surface-level2);
15183
- }
15184
-
15185
- .muka-chat-attachment-chip__remove:focus-visible {
15186
- outline: 2px solid var(--color-action-default);
15187
- outline-offset: 2px;
15188
- }
15189
-
15190
- .muka-chat-attachment-chip__remove:disabled {
15191
- cursor: not-allowed;
15192
- opacity: 0.5;
15193
- }
15194
-
15195
- /* ─── Progress bar ─────────────────────────────────────── */
15196
-
15197
- .muka-chat-attachment-chip__progress {
15198
- position: absolute;
15199
- left: 0;
15200
- right: 0;
15201
- bottom: 0;
15202
- height: 2px;
15203
- background-color: var(--color-surface-level2);
15204
- overflow: hidden;
15205
- }
15206
-
15207
- .muka-chat-attachment-chip__progress-fill {
15208
- display: block;
15209
- height: 100%;
15210
- background-color: var(--color-action-default);
15211
- transition: width 0.16s ease;
15212
- }
15213
-
15214
- .muka-chat-attachment-chip--error .muka-chat-attachment-chip__progress-fill {
15215
- background-color: var(--color-state-error-default, var(--color-text-default-default));
15216
- }
15217
-
15218
-
15219
- /* Card */
15220
- /* Card Component Styles - Using Muka Design Tokens */
15221
-
15222
- .muka-card {
15223
- background-color: var(--card-color-default-background);
15224
- color: var(--card-color-default-foreground);
15225
- border: var(--border-width-regular) solid var(--card-color-default-border);
15226
- box-shadow: var(--card-shadow-default);
15227
- transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
15228
- overflow: hidden;
15229
- }
15230
-
15231
- /* Padding variants */
15232
- .muka-card--padding-none {
15233
- padding: 0;
15234
- }
15235
-
15236
- .muka-card--padding-sm {
15237
- padding: var(--card-padding-sm);
15238
- }
15239
-
15240
- .muka-card--padding-md {
15241
- padding: var(--card-padding-md);
15242
- }
15243
-
15244
- .muka-card--padding-lg {
15245
- padding: var(--card-padding-lg);
15246
- }
15247
-
15248
- /* Radius variants */
15249
- .muka-card--radius-sm {
15250
- border-radius: var(--card-radius-sm);
15251
- }
15252
-
15253
- .muka-card--radius-md {
15254
- border-radius: var(--card-radius-md);
15255
- }
15256
-
15257
- .muka-card--radius-lg {
15258
- border-radius: var(--card-radius-lg);
15259
- }
15260
-
15261
- /* Interactive variant */
15262
- .muka-card--interactive {
15263
- cursor: pointer;
15264
- user-select: none;
15265
- }
15266
-
15267
- .muka-card--interactive:hover {
15268
- background-color: var(--card-color-hover-background);
15269
- border-color: var(--card-color-hover-border);
15270
- box-shadow: var(--card-shadow-hover);
15271
- }
15272
-
15273
- .muka-card--interactive:active,
15274
- .muka-card--interactive.muka-card--pressed {
15275
- background-color: var(--card-color-pressed-background);
15276
- border-color: var(--card-color-pressed-border);
15277
- box-shadow: var(--card-shadow-pressed);
15138
+ .muka-card--interactive:active,
15139
+ .muka-card--interactive.muka-card--pressed {
15140
+ background-color: var(--card-color-pressed-background);
15141
+ border-color: var(--card-color-pressed-border);
15142
+ box-shadow: var(--card-shadow-pressed);
15278
15143
  }
15279
15144
 
15280
15145
  .muka-card--interactive:focus-visible {
@@ -15362,105 +15227,261 @@ button.muka-chat-photo-grid__tile:focus-visible {
15362
15227
  }
15363
15228
 
15364
15229
 
15365
- /* Button */
15366
- /* Button Component Styles - Using Muka Design Tokens */
15230
+ /* ChatAttachmentChip */
15231
+ /* ChatAttachmentChip Component Styles */
15367
15232
 
15368
- /* Base button styles */
15369
- .muka-button {
15370
- /* Layout */
15233
+ .muka-chat-attachment-chip {
15234
+ position: relative;
15371
15235
  display: inline-flex;
15372
15236
  align-items: center;
15373
- justify-content: center;
15374
-
15375
- /* Typography - using semantic tokens */
15376
- font-family: var(--alias-font-brand-family);
15377
- font-weight: var(--alias-font-brand-weight-semibold);
15378
- text-decoration: none;
15379
-
15380
- /* Interaction */
15381
- border: none;
15382
- cursor: pointer;
15383
- user-select: none;
15384
- transition: all 0.2s ease;
15385
-
15386
- /* Accessibility */
15387
- outline: none;
15388
- position: relative;
15389
- }
15390
-
15391
- /* Focus styles for accessibility */
15392
- .muka-button:focus-visible {
15393
- outline: 2px solid var(--color-border-focus);
15394
- outline-offset: 2px;
15237
+ gap: var(--spacing-1);
15238
+ max-width: 240px;
15239
+ padding: var(--spacing-2) var(--spacing-3);
15240
+ background-color: var(--color-surface-level1);
15241
+ border: var(--border-width-regular) solid var(--color-border-default);
15242
+ border-radius: var(--radius-md);
15243
+ overflow: hidden;
15395
15244
  }
15396
15245
 
15397
- /* Size variants
15398
- Height is driven by min-height; vertical padding is 0 and the label carries
15399
- tight (Figma) line-height. Horizontal spacing matches Figma's nested model:
15400
- the button's padding is the outer container inset, and the label's own
15401
- padding is the icon-to-text gap (so text-only buttons keep both insets). */
15402
- .muka-button--sm {
15403
- padding: 0 var(--button-padding-sm-x);
15404
- border-radius: var(--button-radius-sm);
15405
- font-size: var(--text-label-sm-semibold-fontSize);
15406
- line-height: var(--text-label-sm-semibold-lineHeight);
15407
- min-height: 32px;
15246
+ .muka-chat-attachment-chip--uploading {
15247
+ padding-bottom: calc(var(--spacing-2) + 2px);
15408
15248
  }
15409
15249
 
15410
- .muka-button--sm .muka-button__label {
15411
- padding: 0 var(--button-gap-sm);
15250
+ .muka-chat-attachment-chip--error {
15251
+ border-color: var(--color-state-error-default, var(--color-text-default-default));
15412
15252
  }
15413
15253
 
15414
- .muka-button--md {
15415
- padding: 0 var(--button-padding-md-x);
15416
- border-radius: var(--button-radius-md);
15417
- font-size: var(--text-label-sm-semibold-fontSize);
15418
- line-height: var(--text-label-sm-semibold-lineHeight);
15419
- min-height: 40px;
15254
+ .muka-chat-attachment-chip--disabled {
15255
+ opacity: 0.5;
15256
+ pointer-events: none;
15420
15257
  }
15421
15258
 
15422
- .muka-button--md .muka-button__label {
15423
- padding: 0 var(--button-gap-md);
15424
- }
15259
+ /* ─── Body (icon + text) ───────────────────────────────── */
15425
15260
 
15426
- .muka-button--lg {
15427
- padding: 0 var(--button-padding-lg-x);
15428
- border-radius: var(--button-radius-lg);
15429
- font-size: var(--text-label-lg-semibold-fontSize);
15430
- line-height: var(--text-label-lg-semibold-lineHeight);
15431
- min-height: 48px;
15261
+ .muka-chat-attachment-chip__body {
15262
+ display: inline-flex;
15263
+ align-items: center;
15264
+ gap: var(--spacing-2);
15265
+ min-width: 0;
15266
+ flex: 1 1 auto;
15267
+ background: none;
15268
+ border: none;
15269
+ padding: 0;
15270
+ margin: 0;
15271
+ text-align: left;
15272
+ color: inherit;
15273
+ font: inherit;
15274
+ cursor: default;
15275
+ -webkit-tap-highlight-color: transparent;
15432
15276
  }
15433
15277
 
15434
- .muka-button--lg .muka-button__label {
15435
- padding: 0 var(--button-gap-lg);
15278
+ .muka-chat-attachment-chip--interactive .muka-chat-attachment-chip__body {
15279
+ cursor: pointer;
15436
15280
  }
15437
15281
 
15438
- .muka-button--xl {
15439
- padding: 0 var(--button-padding-xl-x);
15440
- border-radius: var(--button-radius-xl);
15441
- font-size: var(--text-label-2xl-semibold-fontSize);
15442
- line-height: var(--text-label-2xl-semibold-lineHeight);
15443
- min-height: 64px;
15282
+ .muka-chat-attachment-chip--interactive .muka-chat-attachment-chip__body:focus-visible {
15283
+ outline: 2px solid var(--color-action-default);
15284
+ outline-offset: 2px;
15285
+ border-radius: var(--radius-sm);
15444
15286
  }
15445
15287
 
15446
- .muka-button--xl .muka-button__label {
15447
- padding: 0 var(--button-gap-xl);
15288
+ .muka-chat-attachment-chip__icon {
15289
+ display: inline-flex;
15290
+ align-items: center;
15291
+ justify-content: center;
15292
+ flex-shrink: 0;
15293
+ color: var(--color-text-subtle-default);
15448
15294
  }
15449
15295
 
15450
- /* Primary variant - your main CTA button */
15451
- .muka-button--primary {
15452
- background-color: var(--button-color-primary-background-default);
15453
- color: var(--button-color-primary-foreground-default);
15454
- box-shadow: var(--button-color-primary-shadow-default);
15296
+ .muka-chat-attachment-chip__text {
15297
+ display: flex;
15298
+ flex-direction: column;
15299
+ min-width: 0;
15300
+ flex: 1 1 auto;
15455
15301
  }
15456
15302
 
15457
- .muka-button--primary:hover:not(:disabled) {
15458
- background-color: var(--button-color-primary-background-hover);
15459
- color: var(--button-color-primary-foreground-hover);
15460
- box-shadow: var(--button-color-primary-shadow-hover);
15303
+ .muka-chat-attachment-chip__name {
15304
+ color: var(--color-text-default-default);
15305
+ font-family: var(--text-body-sm-regular-fontFamily);
15306
+ font-weight: var(--text-body-sm-regular-fontWeight);
15307
+ font-size: var(--text-body-sm-regular-fontSize);
15308
+ line-height: var(--text-body-sm-regular-lineHeight);
15309
+ white-space: nowrap;
15310
+ overflow: hidden;
15311
+ text-overflow: ellipsis;
15461
15312
  }
15462
15313
 
15463
- /* `[data-state="open"]` keeps a Button pressed while it's an open disclosure
15314
+ .muka-chat-attachment-chip__meta {
15315
+ color: var(--color-text-subtle-default);
15316
+ font-family: var(--text-body-sm-regular-fontFamily);
15317
+ font-weight: var(--text-body-sm-regular-fontWeight);
15318
+ font-size: var(--text-body-sm-regular-fontSize);
15319
+ line-height: var(--text-body-sm-regular-lineHeight);
15320
+ white-space: nowrap;
15321
+ overflow: hidden;
15322
+ text-overflow: ellipsis;
15323
+ }
15324
+
15325
+ .muka-chat-attachment-chip--error .muka-chat-attachment-chip__meta {
15326
+ color: var(--color-state-error-default, var(--color-text-default-default));
15327
+ }
15328
+
15329
+ /* ─── Remove button ────────────────────────────────────── */
15330
+
15331
+ .muka-chat-attachment-chip__remove {
15332
+ display: inline-flex;
15333
+ align-items: center;
15334
+ justify-content: center;
15335
+ width: 20px;
15336
+ height: 20px;
15337
+ border: none;
15338
+ background: none;
15339
+ padding: 0;
15340
+ border-radius: var(--radius-sm);
15341
+ cursor: pointer;
15342
+ color: var(--color-text-subtle-default);
15343
+ flex-shrink: 0;
15344
+ -webkit-tap-highlight-color: transparent;
15345
+ }
15346
+
15347
+ .muka-chat-attachment-chip__remove:hover:not(:disabled) {
15348
+ color: var(--color-text-default-default);
15349
+ background-color: var(--color-surface-level2);
15350
+ }
15351
+
15352
+ .muka-chat-attachment-chip__remove:focus-visible {
15353
+ outline: 2px solid var(--color-action-default);
15354
+ outline-offset: 2px;
15355
+ }
15356
+
15357
+ .muka-chat-attachment-chip__remove:disabled {
15358
+ cursor: not-allowed;
15359
+ opacity: 0.5;
15360
+ }
15361
+
15362
+ /* ─── Progress bar ─────────────────────────────────────── */
15363
+
15364
+ .muka-chat-attachment-chip__progress {
15365
+ position: absolute;
15366
+ left: 0;
15367
+ right: 0;
15368
+ bottom: 0;
15369
+ height: 2px;
15370
+ background-color: var(--color-surface-level2);
15371
+ overflow: hidden;
15372
+ }
15373
+
15374
+ .muka-chat-attachment-chip__progress-fill {
15375
+ display: block;
15376
+ height: 100%;
15377
+ background-color: var(--color-action-default);
15378
+ transition: width 0.16s ease;
15379
+ }
15380
+
15381
+ .muka-chat-attachment-chip--error .muka-chat-attachment-chip__progress-fill {
15382
+ background-color: var(--color-state-error-default, var(--color-text-default-default));
15383
+ }
15384
+
15385
+
15386
+ /* Button */
15387
+ /* Button Component Styles - Using Muka Design Tokens */
15388
+
15389
+ /* Base button styles */
15390
+ .muka-button {
15391
+ /* Layout */
15392
+ display: inline-flex;
15393
+ align-items: center;
15394
+ justify-content: center;
15395
+
15396
+ /* Typography - using semantic tokens */
15397
+ font-family: var(--alias-font-brand-family);
15398
+ font-weight: var(--alias-font-brand-weight-semibold);
15399
+ text-decoration: none;
15400
+
15401
+ /* Interaction */
15402
+ border: none;
15403
+ cursor: pointer;
15404
+ user-select: none;
15405
+ transition: all 0.2s ease;
15406
+
15407
+ /* Accessibility */
15408
+ outline: none;
15409
+ position: relative;
15410
+ }
15411
+
15412
+ /* Focus styles for accessibility */
15413
+ .muka-button:focus-visible {
15414
+ outline: 2px solid var(--color-border-focus);
15415
+ outline-offset: 2px;
15416
+ }
15417
+
15418
+ /* Size variants
15419
+ Height is driven by min-height; vertical padding is 0 and the label carries
15420
+ tight (Figma) line-height. Horizontal spacing matches Figma's nested model:
15421
+ the button's padding is the outer container inset, and the label's own
15422
+ padding is the icon-to-text gap (so text-only buttons keep both insets). */
15423
+ .muka-button--sm {
15424
+ padding: 0 var(--button-padding-sm-x);
15425
+ border-radius: var(--button-radius-sm);
15426
+ font-size: var(--text-label-sm-semibold-fontSize);
15427
+ line-height: var(--text-label-sm-semibold-lineHeight);
15428
+ min-height: 32px;
15429
+ }
15430
+
15431
+ .muka-button--sm .muka-button__label {
15432
+ padding: 0 var(--button-gap-sm);
15433
+ }
15434
+
15435
+ .muka-button--md {
15436
+ padding: 0 var(--button-padding-md-x);
15437
+ border-radius: var(--button-radius-md);
15438
+ font-size: var(--text-label-sm-semibold-fontSize);
15439
+ line-height: var(--text-label-sm-semibold-lineHeight);
15440
+ min-height: 40px;
15441
+ }
15442
+
15443
+ .muka-button--md .muka-button__label {
15444
+ padding: 0 var(--button-gap-md);
15445
+ }
15446
+
15447
+ .muka-button--lg {
15448
+ padding: 0 var(--button-padding-lg-x);
15449
+ border-radius: var(--button-radius-lg);
15450
+ font-size: var(--text-label-lg-semibold-fontSize);
15451
+ line-height: var(--text-label-lg-semibold-lineHeight);
15452
+ min-height: 48px;
15453
+ }
15454
+
15455
+ .muka-button--lg .muka-button__label {
15456
+ padding: 0 var(--button-gap-lg);
15457
+ }
15458
+
15459
+ .muka-button--xl {
15460
+ padding: 0 var(--button-padding-xl-x);
15461
+ border-radius: var(--button-radius-xl);
15462
+ font-size: var(--text-label-2xl-semibold-fontSize);
15463
+ line-height: var(--text-label-2xl-semibold-lineHeight);
15464
+ min-height: 64px;
15465
+ }
15466
+
15467
+ .muka-button--xl .muka-button__label {
15468
+ padding: 0 var(--button-gap-xl);
15469
+ }
15470
+
15471
+ /* Primary variant - your main CTA button */
15472
+ .muka-button--primary {
15473
+ background-color: var(--button-color-primary-background-default);
15474
+ color: var(--button-color-primary-foreground-default);
15475
+ box-shadow: var(--button-color-primary-shadow-default);
15476
+ }
15477
+
15478
+ .muka-button--primary:hover:not(:disabled) {
15479
+ background-color: var(--button-color-primary-background-hover);
15480
+ color: var(--button-color-primary-foreground-hover);
15481
+ box-shadow: var(--button-color-primary-shadow-hover);
15482
+ }
15483
+
15484
+ /* `[data-state="open"]` keeps a Button pressed while it's an open disclosure
15464
15485
  trigger (Radix Menu/Popover set this on the trigger). `[aria-pressed="true"]`
15465
15486
  gives toggle buttons a visible selected state, so the toggle is not conveyed
15466
15487
  to sighted users by the accessibility tree alone. */
@@ -15808,696 +15829,714 @@ button.muka-chat-photo-grid__tile:focus-visible {
15808
15829
  }
15809
15830
 
15810
15831
 
15811
- /* BottomBar */
15812
- /* BottomBar Component Styles */
15832
+ /* BadgeNumber */
15833
+ /* BadgeNumber Component Styles - Using Muka Design Tokens */
15813
15834
 
15814
- .muka-bottombar {
15815
- width: 100%;
15816
- background-color: var(--bottombar-color-background);
15835
+ .muka-badge-number {
15836
+ display: inline-flex;
15837
+ align-items: center;
15838
+ justify-content: center;
15839
+ border-radius: var(--border-radius-full);
15840
+ white-space: nowrap;
15841
+ user-select: none;
15842
+ box-sizing: border-box;
15817
15843
  }
15818
15844
 
15819
- /* Push content above the iPhone home indicator. Opt out via disableSafeArea. */
15820
- .muka-bottombar:not(.muka-bottombar--floating):not(.muka-bottombar--no-safe-area) {
15821
- padding-bottom: env(safe-area-inset-bottom);
15845
+ /*
15846
+ * Sizes — fixed height, matching min-width (so a single digit renders as a
15847
+ * circle), horizontal padding, and bold label typography. Vertical centering
15848
+ * is handled by the fixed height + align-items: center.
15849
+ */
15850
+ .muka-badge-number--2xs {
15851
+ height: var(--badge-number-size-2xs);
15852
+ min-width: var(--badge-number-size-2xs);
15853
+ padding: 0 var(--badge-number-padding-2xs);
15854
+ font-family: var(--text-label-xs-bold-fontFamily);
15855
+ font-weight: var(--text-label-xs-bold-fontWeight);
15856
+ font-size: var(--text-label-xs-bold-fontSize);
15857
+ line-height: var(--text-label-xs-bold-lineHeight);
15822
15858
  }
15823
15859
 
15824
- /* Floating variant: ensure margin-bottom is at least the safe-area inset. */
15825
- .muka-bottombar--floating:not(.muka-bottombar--no-safe-area) {
15826
- padding-bottom: max(var(--bottombar-floating-margin-bottom), env(safe-area-inset-bottom));
15860
+ .muka-badge-number--xs {
15861
+ height: var(--badge-number-size-xs);
15862
+ min-width: var(--badge-number-size-xs);
15863
+ padding: 0 var(--badge-number-padding-xs);
15864
+ font-family: var(--text-label-sm-bold-fontFamily);
15865
+ font-weight: var(--text-label-sm-bold-fontWeight);
15866
+ font-size: var(--text-label-sm-bold-fontSize);
15867
+ line-height: var(--text-label-sm-bold-lineHeight);
15827
15868
  }
15828
15869
 
15829
- /* ─── Divider (non-floating) ──────────────────────────── */
15830
-
15831
- .muka-bottombar__divider {
15832
- height: var(--border-width-regular);
15833
- background-color: var(--bottombar-color-border);
15834
- width: 100%;
15870
+ .muka-badge-number--sm {
15871
+ height: var(--badge-number-size-sm);
15872
+ min-width: var(--badge-number-size-sm);
15873
+ padding: 0 var(--badge-number-padding-sm);
15874
+ font-family: var(--text-label-md-bold-fontFamily);
15875
+ font-weight: var(--text-label-md-bold-fontWeight);
15876
+ font-size: var(--text-label-md-bold-fontSize);
15877
+ line-height: var(--text-label-md-bold-lineHeight);
15835
15878
  }
15836
15879
 
15837
- /* ─── Content container ───────────────────────────────── */
15838
-
15839
- .muka-bottombar__content {
15840
- display: flex;
15841
- align-items: center;
15880
+ .muka-badge-number--md {
15881
+ height: var(--badge-number-size-md);
15882
+ min-width: var(--badge-number-size-md);
15883
+ padding: 0 var(--badge-number-padding-md);
15884
+ font-family: var(--text-label-lg-bold-fontFamily);
15885
+ font-weight: var(--text-label-lg-bold-fontWeight);
15886
+ font-size: var(--text-label-lg-bold-fontSize);
15887
+ line-height: var(--text-label-lg-bold-lineHeight);
15842
15888
  }
15843
15889
 
15844
- /* ─── Actions variant (horizontal) ───────────────────── */
15845
-
15846
- .muka-bottombar--actions .muka-bottombar__content {
15847
- flex-direction: row;
15848
- gap: var(--bottombar-actions-gap);
15849
- padding: var(--bottombar-actions-padding-t) var(--bottombar-actions-padding-x) var(--bottombar-actions-padding-x);
15890
+ .muka-badge-number--lg {
15891
+ height: var(--badge-number-size-lg);
15892
+ min-width: var(--badge-number-size-lg);
15893
+ padding: 0 var(--badge-number-padding-lg);
15894
+ font-family: var(--text-label-2xl-bold-fontFamily);
15895
+ font-weight: var(--text-label-2xl-bold-fontWeight);
15896
+ font-size: var(--text-label-2xl-bold-fontSize);
15897
+ line-height: var(--text-label-2xl-bold-lineHeight);
15850
15898
  }
15851
15899
 
15852
- .muka-bottombar--actions .muka-bottombar__content > * {
15853
- flex: 1;
15900
+ .muka-badge-number__label {
15901
+ /*
15902
+ * The badge sets a tight line-height for compact sizing, which would clip
15903
+ * glyph descenders; give the label a roomier line-height. Vertical centering
15904
+ * is unaffected because the badge height is fixed and content is centered.
15905
+ */
15906
+ line-height: normal;
15854
15907
  }
15855
15908
 
15856
- /* ─── Actions-vertical variant (stacked) ─────────────── */
15857
-
15858
- .muka-bottombar--actions-vertical .muka-bottombar__content {
15859
- flex-direction: column;
15860
- gap: var(--bottombar-actions-gap);
15861
- padding: var(--bottombar-actions-padding-t) var(--bottombar-actions-padding-x) var(--bottombar-actions-padding-x);
15909
+ /* Neutral variant */
15910
+ .muka-badge-number--neutral {
15911
+ background-color: var(--color-surface-level1);
15912
+ color: var(--color-text-default-default);
15862
15913
  }
15863
15914
 
15864
- .muka-bottombar--actions-vertical .muka-bottombar__content > * {
15865
- width: 100%;
15915
+ /* Info variant */
15916
+ .muka-badge-number--info {
15917
+ background-color: var(--color-state-info-contrast);
15918
+ color: var(--color-text-default-inverse);
15866
15919
  }
15867
15920
 
15868
- /* ─── Message (actions variants only) ────────────────── */
15869
-
15870
- /* Below 1024px the message takes its own line above the buttons. */
15871
- .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content {
15872
- flex-wrap: wrap;
15873
- row-gap: var(--bottombar-actions-message-gap);
15921
+ /* Success variant */
15922
+ .muka-badge-number--success {
15923
+ background-color: var(--color-state-success-contrast);
15924
+ color: var(--color-text-default-inverse);
15874
15925
  }
15875
15926
 
15876
- .muka-bottombar--actions-vertical.muka-bottombar--with-message .muka-bottombar__content {
15877
- row-gap: var(--bottombar-actions-message-gap);
15927
+ /* Warning variant */
15928
+ .muka-badge-number--warning {
15929
+ background-color: var(--color-state-warning-contrast);
15930
+ color: var(--color-text-default-inverse);
15878
15931
  }
15879
15932
 
15880
- .muka-bottombar--with-message .muka-bottombar__content > .muka-bottombar__message {
15881
- flex: 1 0 100%;
15882
- width: 100%;
15933
+ /* Error variant */
15934
+ .muka-badge-number--error {
15935
+ background-color: var(--color-state-error-contrast);
15936
+ color: var(--color-text-default-inverse);
15883
15937
  }
15884
15938
 
15885
- .muka-bottombar__message {
15886
- margin: 0;
15939
+ /* Dot: something new, without a count */
15940
+ .muka-badge-number--dot {
15941
+ width: var(--spacing-2);
15942
+ height: var(--spacing-2);
15887
15943
  min-width: 0;
15888
- overflow-wrap: anywhere;
15889
- font-family: var(--text-body-sm-regular-fontFamily);
15890
- font-weight: var(--text-body-sm-regular-fontWeight);
15891
- font-size: var(--text-body-sm-regular-fontSize);
15892
- line-height: var(--text-body-sm-regular-lineHeight);
15944
+ padding: 0;
15893
15945
  }
15894
15946
 
15895
- .muka-bottombar__message--neutral {
15896
- color: var(--bottombar-color-message-neutral);
15897
- }
15898
15947
 
15899
- .muka-bottombar__message--success {
15900
- color: var(--bottombar-color-message-success);
15901
- }
15948
+ /* Badge */
15949
+ /* Badge Component Styles - Using Muka Design Tokens */
15902
15950
 
15903
- .muka-bottombar__message--warning {
15904
- color: var(--bottombar-color-message-warning);
15951
+ .muka-badge {
15952
+ display: inline-flex;
15953
+ align-items: center;
15954
+ border-radius: var(--border-radius-full);
15955
+ white-space: nowrap;
15956
+ user-select: none;
15957
+ box-sizing: border-box;
15905
15958
  }
15906
15959
 
15907
- /* From 1024px the horizontal bar puts the message left, the buttons right at
15908
- their own width. The vertical variant keeps stacking. */
15909
- @media (min-width: 1024px) {
15910
- .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content {
15911
- flex-wrap: nowrap;
15912
- }
15913
-
15914
- .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content > * {
15915
- flex: 0 0 auto;
15916
- }
15917
-
15918
- .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content > .muka-bottombar__message {
15919
- flex: 1 1 auto;
15920
- width: auto;
15921
- }
15960
+ /*
15961
+ * Sizes — height, gap, type, and default (label-edge) horizontal padding.
15962
+ * Mirrors Chip so the two components share sizing, fonts, and spacing.
15963
+ * Vertical centering is handled by the fixed height + align-items: center.
15964
+ * The leading side gets a tighter padding when an icon/dot is present, via the
15965
+ * --has-icon / --has-dot modifiers below.
15966
+ */
15967
+ .muka-badge--sm {
15968
+ height: var(--badge-size-height-sm);
15969
+ gap: var(--badge-gap-sm);
15970
+ padding: 0 var(--badge-padding-label-sm);
15971
+ font-family: var(--text-label-sm-regular-fontFamily);
15972
+ font-weight: var(--text-label-sm-regular-fontWeight);
15973
+ font-size: var(--text-label-sm-regular-fontSize);
15974
+ line-height: var(--text-label-sm-regular-lineHeight);
15922
15975
  }
15923
15976
 
15924
- /* ─── Size modifiers (actions variants only) ─────────── */
15925
-
15926
- /* ─── Navigation variant ──────────────────────────────── */
15927
-
15928
- .muka-bottombar--navigation .muka-bottombar__content {
15929
- flex-direction: row;
15977
+ .muka-badge--md {
15978
+ height: var(--badge-size-height-md);
15979
+ gap: var(--badge-gap-md);
15980
+ padding: 0 var(--badge-padding-label-md);
15981
+ font-family: var(--text-label-md-regular-fontFamily);
15982
+ font-weight: var(--text-label-md-regular-fontWeight);
15983
+ font-size: var(--text-label-md-regular-fontSize);
15984
+ line-height: var(--text-label-md-regular-lineHeight);
15930
15985
  }
15931
15986
 
15932
- /* ─── Chat variant (houses a ChatComposer) ───────────── */
15933
-
15934
- .muka-bottombar--chat .muka-bottombar__content {
15935
- flex-direction: row;
15936
- width: 100%;
15937
- margin: 0 auto;
15987
+ .muka-badge--lg {
15988
+ height: var(--badge-size-height-lg);
15989
+ gap: var(--badge-gap-lg);
15990
+ padding: 0 var(--badge-padding-label-lg);
15991
+ font-family: var(--text-label-lg-regular-fontFamily);
15992
+ font-weight: var(--text-label-lg-regular-fontWeight);
15993
+ font-size: var(--text-label-lg-regular-fontSize);
15994
+ line-height: var(--text-label-lg-regular-lineHeight);
15938
15995
  }
15939
15996
 
15940
- /*
15941
- * `--bottombar-chat-max-width` is the conversation column (it derives from
15942
- * `chat.column.max-width`, the same token `ChatMessageList` caps its column
15943
- * with). The cap here carries the padding on top of it, so it is the
15944
- * composer's own edges — not the padding around it — that land on the column.
15945
- */
15946
-
15947
- /*
15948
- * Docked chat pads its content; the floating card supplies its own padding.
15949
- * The inline half is the section gutter `ChatMessageList` pads its scroller
15950
- * with, so below the cap — where the column runs full-bleed — the composer
15951
- * keeps to the same gutters as the messages.
15952
- */
15953
- .muka-bottombar--chat:not(.muka-bottombar--floating) .muka-bottombar__content {
15954
- padding: var(--bottombar-chat-padding)
15955
- var(--section-padding-horizontal-default, var(--spacing-4));
15956
- max-width: calc(
15957
- var(--bottombar-chat-max-width) + 2 * var(--section-padding-horizontal-default, var(--spacing-4))
15958
- );
15997
+ /* Tighter leading padding when a leading icon or dot is present */
15998
+ .muka-badge--sm.muka-badge--has-icon,
15999
+ .muka-badge--sm.muka-badge--has-dot {
16000
+ padding-left: var(--badge-padding-leading-sm);
16001
+ }
16002
+ .muka-badge--md.muka-badge--has-icon,
16003
+ .muka-badge--md.muka-badge--has-dot {
16004
+ padding-left: var(--badge-padding-leading-md);
16005
+ }
16006
+ .muka-badge--lg.muka-badge--has-icon,
16007
+ .muka-badge--lg.muka-badge--has-dot {
16008
+ padding-left: var(--badge-padding-leading-lg);
15959
16009
  }
15960
16010
 
15961
- /* Floating chat card widens to the chat cap (overrides the md default below). */
15962
- .muka-bottombar--chat.muka-bottombar--floating .muka-bottombar__content {
15963
- max-width: calc(var(--bottombar-chat-max-width) + 2 * var(--bottombar-floating-padding));
16011
+ /* Icon-only — square, sized to the badge height (Figma: 24 / 32 / 40).
16012
+ * Padding resets at size+icon-only specificity so `--has-icon` leading padding
16013
+ * cannot win and shift the icon off-center. */
16014
+ .muka-badge--icon-only {
16015
+ justify-content: center;
16016
+ align-items: center;
16017
+ gap: 0;
15964
16018
  }
15965
16019
 
15966
- /* ─── Tab item ────────────────────────────────────────── */
16020
+ .muka-badge--sm.muka-badge--icon-only,
16021
+ .muka-badge--md.muka-badge--icon-only,
16022
+ .muka-badge--lg.muka-badge--icon-only {
16023
+ padding: 0;
16024
+ }
15967
16025
 
15968
- .muka-bottombar__tab {
15969
- flex: 1;
15970
- display: flex;
15971
- flex-direction: column;
15972
- align-items: center;
15973
- gap: var(--bottombar-tab-gap);
15974
- padding: var(--bottombar-tab-padding-y) 0;
15975
- background: none;
15976
- border: none;
15977
- cursor: pointer;
15978
- color: var(--bottombar-color-tab-inactive);
15979
- transition: color 0.15s ease;
15980
- -webkit-tap-highlight-color: transparent;
16026
+ .muka-badge--sm.muka-badge--icon-only {
16027
+ width: var(--badge-size-height-sm);
15981
16028
  }
15982
16029
 
15983
- .muka-bottombar__tab:focus-visible {
15984
- outline: 2px solid var(--color-action-default);
15985
- outline-offset: -2px;
15986
- border-radius: var(--border-radius-sm);
16030
+ .muka-badge--md.muka-badge--icon-only {
16031
+ width: var(--badge-size-height-md);
15987
16032
  }
15988
16033
 
15989
- .muka-bottombar__tab--active {
15990
- color: var(--bottombar-color-tab-active);
16034
+ .muka-badge--lg.muka-badge--icon-only {
16035
+ width: var(--badge-size-height-lg);
15991
16036
  }
15992
16037
 
15993
- .muka-bottombar__tab-icon {
15994
- display: flex;
16038
+ /* Leading icon slot — Figma icon sizes: sm 16, md 20, lg 24 (matches Chip) */
16039
+ .muka-badge__icon {
16040
+ display: inline-flex;
15995
16041
  align-items: center;
15996
16042
  justify-content: center;
15997
- width: var(--bottombar-tab-icon-size);
15998
- height: var(--bottombar-tab-icon-size);
16043
+ flex-shrink: 0;
15999
16044
  }
16000
16045
 
16001
- .muka-bottombar__tab-icon svg {
16046
+ .muka-badge--sm .muka-badge__icon {
16047
+ width: var(--icon-size-xs);
16048
+ height: var(--icon-size-xs);
16049
+ }
16050
+ .muka-badge--md .muka-badge__icon {
16051
+ width: var(--icon-size-sm);
16052
+ height: var(--icon-size-sm);
16053
+ }
16054
+ .muka-badge--lg .muka-badge__icon {
16055
+ width: var(--icon-size-default);
16056
+ height: var(--icon-size-default);
16057
+ }
16058
+
16059
+ /* Force the passed content (raw <svg> or an <Icon> wrapper) to the slot size,
16060
+ so callers don't have to size the icon to match each badge size. The
16061
+ .muka-icon selector is intentionally 2 classes deep to override .muka-icon--md. */
16062
+ .muka-badge__icon .muka-icon,
16063
+ .muka-badge__icon svg {
16002
16064
  width: 100%;
16003
16065
  height: 100%;
16004
16066
  }
16005
16067
 
16006
- .muka-bottombar__tab-label {
16007
- font-family: var(--text-label-sm-regular-fontFamily);
16008
- font-weight: var(--text-label-sm-regular-fontWeight);
16009
- font-size: var(--text-label-sm-regular-fontSize);
16010
- line-height: var(--text-label-sm-regular-lineHeight);
16068
+ /* Icons inherit the badge's per-variant foreground color */
16069
+ .muka-badge .muka-icon {
16070
+ color: inherit;
16011
16071
  }
16012
16072
 
16013
- /* ─── Floating modifier ───────────────────────────────── */
16014
-
16015
- .muka-bottombar--floating {
16016
- background: linear-gradient(
16017
- to bottom,
16018
- var(--bottombar-floating-backdrop-start),
16019
- var(--bottombar-floating-backdrop-end)
16020
- );
16021
- padding: var(--bottombar-floating-padding-top) var(--bottombar-floating-margin-x) var(--bottombar-floating-margin-bottom);
16022
-
16023
- /* The transparent frosted margin around the pill overlays scrolling content;
16024
- let scroll/taps fall through to that content, keeping only the pill itself
16025
- interactive (re-enabled on __content below). */
16026
- pointer-events: none;
16073
+ /* Dot indicator */
16074
+ .muka-badge__dot {
16075
+ flex-shrink: 0;
16076
+ border-radius: var(--border-radius-full);
16027
16077
  }
16028
16078
 
16029
- .muka-bottombar--floating .muka-bottombar__content {
16030
- pointer-events: auto;
16079
+ .muka-badge--sm .muka-badge__dot {
16080
+ width: var(--badge-size-dot-sm);
16081
+ height: var(--badge-size-dot-sm);
16031
16082
  }
16032
16083
 
16033
- .muka-bottombar--floating .muka-bottombar__content {
16034
- background-color: var(--bottombar-color-background);
16035
- border-radius: var(--bottombar-floating-radius);
16036
- padding: var(--bottombar-floating-padding);
16037
- box-shadow: var(--bottombar-floating-shadow);
16038
- max-width: var(--bottombar-floating-max-width);
16039
- width: 100%;
16040
- margin: 0 auto;
16084
+ .muka-badge--md .muka-badge__dot {
16085
+ width: var(--badge-size-dot-md);
16086
+ height: var(--badge-size-dot-md);
16041
16087
  }
16042
16088
 
16043
- /* Override content padding inside floating per variant */
16044
- .muka-bottombar--floating.muka-bottombar--actions .muka-bottombar__content {
16045
- padding: var(--bottombar-floating-padding);
16089
+ .muka-badge--lg .muka-badge__dot {
16090
+ width: var(--badge-size-dot-lg);
16091
+ height: var(--badge-size-dot-lg);
16046
16092
  }
16047
16093
 
16048
- .muka-bottombar--floating.muka-bottombar--navigation .muka-bottombar__content {
16049
- padding: var(--bottombar-navigation-floating-padding);
16094
+ .muka-badge__label {
16095
+ flex: 0 1 auto;
16096
+ min-width: 0;
16097
+ overflow: hidden;
16098
+ text-overflow: ellipsis;
16099
+ /*
16100
+ * The badge sets a tight line-height for compact sizing, but the label's
16101
+ * `overflow: hidden` (needed for ellipsis) then clips glyph descenders (g, y, p). Give the
16102
+ * label its own roomier line-height so descenders render; vertical centering is unaffected
16103
+ * because the badge height is fixed and content is centered via align-items: center.
16104
+ */
16105
+ line-height: normal;
16050
16106
  }
16051
16107
 
16052
- /* ─── Desktop: Sidebar transformation ─────────────────── */
16108
+ /* Neutral variant */
16109
+ .muka-badge--neutral {
16110
+ background-color: var(--color-surface-level1);
16111
+ color: var(--color-text-default-default);
16112
+ }
16053
16113
 
16054
- @media (min-width: 1024px) {
16055
- .muka-bottombar--desktop-sidebar {
16056
- position: fixed;
16057
- left: 0;
16058
- top: 0;
16059
- bottom: 0;
16060
- width: 240px;
16061
- height: 100vh;
16062
- background-color: var(--bottombar-color-background);
16063
- border-right: var(--border-width-regular) solid var(--bottombar-color-border);
16064
- z-index: 10;
16065
- }
16114
+ .muka-badge--neutral .muka-badge__dot {
16115
+ background-color: var(--color-text-subtle-default);
16116
+ }
16066
16117
 
16067
- .muka-bottombar--desktop-sidebar .muka-bottombar__divider {
16068
- display: none;
16069
- }
16118
+ /* Info variant */
16119
+ .muka-badge--info {
16120
+ background-color: var(--color-state-info-background);
16121
+ color: var(--color-state-info-contrast);
16122
+ }
16070
16123
 
16071
- .muka-bottombar--desktop-sidebar .muka-bottombar__content {
16072
- flex-direction: column;
16073
- align-items: stretch;
16074
- padding: var(--spacing-4) var(--spacing-3);
16075
- /* The rail runs to the top of the screen: clear the status bar there. */
16076
- padding-top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
16077
- gap: var(--spacing-1);
16078
- }
16124
+ .muka-badge--info .muka-badge__dot {
16125
+ background-color: var(--color-state-info-default);
16126
+ }
16079
16127
 
16080
- .muka-bottombar--desktop-sidebar .muka-bottombar__tab {
16081
- flex: 0 0 auto;
16082
- flex-direction: row;
16083
- justify-content: flex-start;
16084
- gap: var(--spacing-3);
16085
- padding: var(--spacing-3);
16086
- border-radius: var(--border-radius-md);
16087
- }
16128
+ /* Success variant */
16129
+ .muka-badge--success {
16130
+ background-color: var(--color-state-success-background);
16131
+ color: var(--color-state-success-contrast);
16132
+ }
16088
16133
 
16089
- .muka-bottombar--desktop-sidebar .muka-bottombar__tab:hover {
16090
- background-color: var(--color-surface-level2);
16091
- }
16134
+ .muka-badge--success .muka-badge__dot {
16135
+ background-color: var(--color-state-success-default);
16136
+ }
16092
16137
 
16093
- .muka-bottombar--desktop-sidebar .muka-bottombar__tab-label {
16094
- font-family: var(--text-label-md-regular-fontFamily);
16095
- font-weight: var(--text-label-md-regular-fontWeight);
16096
- font-size: var(--text-label-md-regular-fontSize);
16097
- line-height: var(--text-label-md-regular-lineHeight);
16098
- }
16138
+ /* Warning variant */
16139
+ .muka-badge--warning {
16140
+ background-color: var(--color-state-warning-background);
16141
+ color: var(--color-state-warning-contrast);
16142
+ }
16099
16143
 
16100
- /* When floating and sidebar, remove the floating card styles */
16101
- .muka-bottombar--desktop-sidebar.muka-bottombar--floating {
16102
- padding: 0;
16103
- }
16144
+ .muka-badge--warning .muka-badge__dot {
16145
+ background-color: var(--color-state-warning-default);
16146
+ }
16104
16147
 
16105
- .muka-bottombar--desktop-sidebar.muka-bottombar--floating .muka-bottombar__content {
16106
- background-color: transparent;
16107
- border-radius: 0;
16108
- box-shadow: none;
16109
- }
16148
+ /* Error variant */
16149
+ .muka-badge--error {
16150
+ background-color: var(--color-state-error-background);
16151
+ color: var(--color-state-error-contrast);
16110
16152
  }
16111
16153
 
16112
- /* ─── Desktop: Top Navigation transformation ──────────── */
16154
+ .muka-badge--error .muka-badge__dot {
16155
+ background-color: var(--color-state-error-default);
16156
+ }
16113
16157
 
16114
- @media (min-width: 1024px) {
16115
- .muka-bottombar--desktop-topnav {
16116
- position: fixed;
16117
- top: 0;
16118
- left: 0;
16119
- right: 0;
16120
- width: 100%;
16121
- height: auto;
16122
- background-color: var(--bottombar-color-background);
16123
- border-bottom: var(--border-width-regular) solid var(--bottombar-color-border);
16124
- z-index: 10;
16125
- }
16126
16158
 
16127
- .muka-bottombar--desktop-topnav .muka-bottombar__divider {
16128
- display: none;
16129
- }
16159
+ /* BottomBar */
16160
+ /* BottomBar Component Styles */
16130
16161
 
16131
- .muka-bottombar--desktop-topnav .muka-bottombar__content {
16132
- flex-direction: row;
16133
- justify-content: center;
16134
- gap: var(--spacing-1);
16135
- padding: 0 var(--spacing-4);
16136
- max-width: var(--container-max-width-large, 1200px);
16137
- margin: 0 auto;
16138
- }
16162
+ .muka-bottombar {
16163
+ width: 100%;
16164
+ background-color: var(--bottombar-color-background);
16165
+ }
16139
16166
 
16140
- .muka-bottombar--desktop-topnav .muka-bottombar__tab {
16141
- flex: 0 0 auto;
16142
- flex-direction: row;
16143
- gap: var(--spacing-2);
16144
- padding: var(--spacing-3) var(--spacing-4);
16145
- border-radius: 0;
16146
- border-bottom: 2px solid transparent;
16147
- }
16167
+ /* Push content above the iPhone home indicator. Opt out via disableSafeArea. */
16168
+ .muka-bottombar:not(.muka-bottombar--floating):not(.muka-bottombar--no-safe-area) {
16169
+ padding-bottom: env(safe-area-inset-bottom);
16170
+ }
16148
16171
 
16149
- .muka-bottombar--desktop-topnav .muka-bottombar__tab--active {
16150
- border-bottom-color: var(--color-action-default);
16151
- }
16172
+ /* Floating variant: ensure margin-bottom is at least the safe-area inset. */
16173
+ .muka-bottombar--floating:not(.muka-bottombar--no-safe-area) {
16174
+ padding-bottom: max(var(--bottombar-floating-margin-bottom), env(safe-area-inset-bottom));
16175
+ }
16152
16176
 
16153
- .muka-bottombar--desktop-topnav .muka-bottombar__tab:hover {
16154
- background-color: var(--color-surface-level2);
16155
- }
16177
+ /* ─── Divider (non-floating) ──────────────────────────── */
16156
16178
 
16157
- .muka-bottombar--desktop-topnav .muka-bottombar__tab-label {
16158
- font-family: var(--text-label-md-regular-fontFamily);
16159
- font-weight: var(--text-label-md-regular-fontWeight);
16160
- font-size: var(--text-label-md-regular-fontSize);
16161
- line-height: var(--text-label-md-regular-lineHeight);
16162
- }
16179
+ .muka-bottombar__divider {
16180
+ height: var(--border-width-regular);
16181
+ background-color: var(--bottombar-color-border);
16182
+ width: 100%;
16183
+ }
16163
16184
 
16164
- /* When floating and topnav, remove the floating card styles */
16165
- .muka-bottombar--desktop-topnav.muka-bottombar--floating {
16166
- padding: 0;
16167
- }
16185
+ /* ─── Content container ───────────────────────────────── */
16168
16186
 
16169
- .muka-bottombar--desktop-topnav.muka-bottombar--floating .muka-bottombar__content {
16170
- background-color: transparent;
16171
- border-radius: 0;
16172
- box-shadow: none;
16173
- }
16187
+ .muka-bottombar__content {
16188
+ display: flex;
16189
+ align-items: center;
16174
16190
  }
16175
16191
 
16176
- /* ─── Print ────────────────────────────────────────────── */
16192
+ /* ─── Actions variant (horizontal) ───────────────────── */
16177
16193
 
16178
- @media print {
16179
- .muka-bottombar {
16180
- display: none;
16181
- }
16194
+ .muka-bottombar--actions .muka-bottombar__content {
16195
+ flex-direction: row;
16196
+ gap: var(--bottombar-actions-gap);
16197
+ padding: var(--bottombar-actions-padding-t) var(--bottombar-actions-padding-x) var(--bottombar-actions-padding-x);
16182
16198
  }
16183
16199
 
16200
+ .muka-bottombar--actions .muka-bottombar__content > * {
16201
+ flex: 1;
16202
+ }
16184
16203
 
16185
- /* BadgeNumber */
16186
- /* BadgeNumber Component Styles - Using Muka Design Tokens */
16204
+ /* ─── Actions-vertical variant (stacked) ─────────────── */
16187
16205
 
16188
- .muka-badge-number {
16189
- display: inline-flex;
16190
- align-items: center;
16191
- justify-content: center;
16192
- border-radius: var(--border-radius-full);
16193
- white-space: nowrap;
16194
- user-select: none;
16195
- box-sizing: border-box;
16206
+ .muka-bottombar--actions-vertical .muka-bottombar__content {
16207
+ flex-direction: column;
16208
+ gap: var(--bottombar-actions-gap);
16209
+ padding: var(--bottombar-actions-padding-t) var(--bottombar-actions-padding-x) var(--bottombar-actions-padding-x);
16196
16210
  }
16197
16211
 
16198
- /*
16199
- * Sizes — fixed height, matching min-width (so a single digit renders as a
16200
- * circle), horizontal padding, and bold label typography. Vertical centering
16201
- * is handled by the fixed height + align-items: center.
16202
- */
16203
- .muka-badge-number--2xs {
16204
- height: var(--badge-number-size-2xs);
16205
- min-width: var(--badge-number-size-2xs);
16206
- padding: 0 var(--badge-number-padding-2xs);
16207
- font-family: var(--text-label-xs-bold-fontFamily);
16208
- font-weight: var(--text-label-xs-bold-fontWeight);
16209
- font-size: var(--text-label-xs-bold-fontSize);
16210
- line-height: var(--text-label-xs-bold-lineHeight);
16212
+ .muka-bottombar--actions-vertical .muka-bottombar__content > * {
16213
+ width: 100%;
16211
16214
  }
16212
16215
 
16213
- .muka-badge-number--xs {
16214
- height: var(--badge-number-size-xs);
16215
- min-width: var(--badge-number-size-xs);
16216
- padding: 0 var(--badge-number-padding-xs);
16217
- font-family: var(--text-label-sm-bold-fontFamily);
16218
- font-weight: var(--text-label-sm-bold-fontWeight);
16219
- font-size: var(--text-label-sm-bold-fontSize);
16220
- line-height: var(--text-label-sm-bold-lineHeight);
16221
- }
16216
+ /* ─── Message (actions variants only) ────────────────── */
16222
16217
 
16223
- .muka-badge-number--sm {
16224
- height: var(--badge-number-size-sm);
16225
- min-width: var(--badge-number-size-sm);
16226
- padding: 0 var(--badge-number-padding-sm);
16227
- font-family: var(--text-label-md-bold-fontFamily);
16228
- font-weight: var(--text-label-md-bold-fontWeight);
16229
- font-size: var(--text-label-md-bold-fontSize);
16230
- line-height: var(--text-label-md-bold-lineHeight);
16218
+ /* Below 1024px the message takes its own line above the buttons. */
16219
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content {
16220
+ flex-wrap: wrap;
16221
+ row-gap: var(--bottombar-actions-message-gap);
16231
16222
  }
16232
16223
 
16233
- .muka-badge-number--md {
16234
- height: var(--badge-number-size-md);
16235
- min-width: var(--badge-number-size-md);
16236
- padding: 0 var(--badge-number-padding-md);
16237
- font-family: var(--text-label-lg-bold-fontFamily);
16238
- font-weight: var(--text-label-lg-bold-fontWeight);
16239
- font-size: var(--text-label-lg-bold-fontSize);
16240
- line-height: var(--text-label-lg-bold-lineHeight);
16224
+ .muka-bottombar--actions-vertical.muka-bottombar--with-message .muka-bottombar__content {
16225
+ row-gap: var(--bottombar-actions-message-gap);
16241
16226
  }
16242
16227
 
16243
- .muka-badge-number--lg {
16244
- height: var(--badge-number-size-lg);
16245
- min-width: var(--badge-number-size-lg);
16246
- padding: 0 var(--badge-number-padding-lg);
16247
- font-family: var(--text-label-2xl-bold-fontFamily);
16248
- font-weight: var(--text-label-2xl-bold-fontWeight);
16249
- font-size: var(--text-label-2xl-bold-fontSize);
16250
- line-height: var(--text-label-2xl-bold-lineHeight);
16228
+ .muka-bottombar--with-message .muka-bottombar__content > .muka-bottombar__message {
16229
+ flex: 1 0 100%;
16230
+ width: 100%;
16251
16231
  }
16252
16232
 
16253
- .muka-badge-number__label {
16254
- /*
16255
- * The badge sets a tight line-height for compact sizing, which would clip
16256
- * glyph descenders; give the label a roomier line-height. Vertical centering
16257
- * is unaffected because the badge height is fixed and content is centered.
16258
- */
16259
- line-height: normal;
16233
+ .muka-bottombar__message {
16234
+ margin: 0;
16235
+ min-width: 0;
16236
+ overflow-wrap: anywhere;
16237
+ font-family: var(--text-body-sm-regular-fontFamily);
16238
+ font-weight: var(--text-body-sm-regular-fontWeight);
16239
+ font-size: var(--text-body-sm-regular-fontSize);
16240
+ line-height: var(--text-body-sm-regular-lineHeight);
16260
16241
  }
16261
16242
 
16262
- /* Neutral variant */
16263
- .muka-badge-number--neutral {
16264
- background-color: var(--color-surface-level1);
16265
- color: var(--color-text-default-default);
16243
+ .muka-bottombar__message--neutral {
16244
+ color: var(--bottombar-color-message-neutral);
16266
16245
  }
16267
16246
 
16268
- /* Info variant */
16269
- .muka-badge-number--info {
16270
- background-color: var(--color-state-info-contrast);
16271
- color: var(--color-text-default-inverse);
16247
+ .muka-bottombar__message--success {
16248
+ color: var(--bottombar-color-message-success);
16272
16249
  }
16273
16250
 
16274
- /* Success variant */
16275
- .muka-badge-number--success {
16276
- background-color: var(--color-state-success-contrast);
16277
- color: var(--color-text-default-inverse);
16251
+ .muka-bottombar__message--warning {
16252
+ color: var(--bottombar-color-message-warning);
16278
16253
  }
16279
16254
 
16280
- /* Warning variant */
16281
- .muka-badge-number--warning {
16282
- background-color: var(--color-state-warning-contrast);
16283
- color: var(--color-text-default-inverse);
16284
- }
16255
+ /* From 1024px the horizontal bar puts the message left, the buttons right at
16256
+ their own width. The vertical variant keeps stacking. */
16257
+ @media (min-width: 1024px) {
16258
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content {
16259
+ flex-wrap: nowrap;
16260
+ }
16285
16261
 
16286
- /* Error variant */
16287
- .muka-badge-number--error {
16288
- background-color: var(--color-state-error-contrast);
16289
- color: var(--color-text-default-inverse);
16262
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content > * {
16263
+ flex: 0 0 auto;
16264
+ }
16265
+
16266
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content > .muka-bottombar__message {
16267
+ flex: 1 1 auto;
16268
+ width: auto;
16269
+ }
16290
16270
  }
16291
16271
 
16272
+ /* ─── Size modifiers (actions variants only) ─────────── */
16292
16273
 
16293
- /* Badge */
16294
- /* Badge Component Styles - Using Muka Design Tokens */
16274
+ /* ─── Navigation variant ──────────────────────────────── */
16295
16275
 
16296
- .muka-badge {
16297
- display: inline-flex;
16298
- align-items: center;
16299
- border-radius: var(--border-radius-full);
16300
- white-space: nowrap;
16301
- user-select: none;
16302
- box-sizing: border-box;
16276
+ .muka-bottombar--navigation .muka-bottombar__content {
16277
+ flex-direction: row;
16303
16278
  }
16304
16279
 
16305
- /*
16306
- * Sizes — height, gap, type, and default (label-edge) horizontal padding.
16307
- * Mirrors Chip so the two components share sizing, fonts, and spacing.
16308
- * Vertical centering is handled by the fixed height + align-items: center.
16309
- * The leading side gets a tighter padding when an icon/dot is present, via the
16310
- * --has-icon / --has-dot modifiers below.
16311
- */
16312
- .muka-badge--sm {
16313
- height: var(--badge-size-height-sm);
16314
- gap: var(--badge-gap-sm);
16315
- padding: 0 var(--badge-padding-label-sm);
16316
- font-family: var(--text-label-sm-regular-fontFamily);
16317
- font-weight: var(--text-label-sm-regular-fontWeight);
16318
- font-size: var(--text-label-sm-regular-fontSize);
16319
- line-height: var(--text-label-sm-regular-lineHeight);
16320
- }
16280
+ /* ─── Chat variant (houses a ChatComposer) ───────────── */
16321
16281
 
16322
- .muka-badge--md {
16323
- height: var(--badge-size-height-md);
16324
- gap: var(--badge-gap-md);
16325
- padding: 0 var(--badge-padding-label-md);
16326
- font-family: var(--text-label-md-regular-fontFamily);
16327
- font-weight: var(--text-label-md-regular-fontWeight);
16328
- font-size: var(--text-label-md-regular-fontSize);
16329
- line-height: var(--text-label-md-regular-lineHeight);
16282
+ .muka-bottombar--chat .muka-bottombar__content {
16283
+ flex-direction: row;
16284
+ width: 100%;
16285
+ margin: 0 auto;
16330
16286
  }
16331
16287
 
16332
- .muka-badge--lg {
16333
- height: var(--badge-size-height-lg);
16334
- gap: var(--badge-gap-lg);
16335
- padding: 0 var(--badge-padding-label-lg);
16336
- font-family: var(--text-label-lg-regular-fontFamily);
16337
- font-weight: var(--text-label-lg-regular-fontWeight);
16338
- font-size: var(--text-label-lg-regular-fontSize);
16339
- line-height: var(--text-label-lg-regular-lineHeight);
16340
- }
16288
+ /*
16289
+ * `--bottombar-chat-max-width` is the conversation column (it derives from
16290
+ * `chat.column.max-width`, the same token `ChatMessageList` caps its column
16291
+ * with). The cap here carries the padding on top of it, so it is the
16292
+ * composer's own edges — not the padding around it — that land on the column.
16293
+ */
16341
16294
 
16342
- /* Tighter leading padding when a leading icon or dot is present */
16343
- .muka-badge--sm.muka-badge--has-icon,
16344
- .muka-badge--sm.muka-badge--has-dot {
16345
- padding-left: var(--badge-padding-leading-sm);
16346
- }
16347
- .muka-badge--md.muka-badge--has-icon,
16348
- .muka-badge--md.muka-badge--has-dot {
16349
- padding-left: var(--badge-padding-leading-md);
16350
- }
16351
- .muka-badge--lg.muka-badge--has-icon,
16352
- .muka-badge--lg.muka-badge--has-dot {
16353
- padding-left: var(--badge-padding-leading-lg);
16295
+ /*
16296
+ * Docked chat pads its content; the floating card supplies its own padding.
16297
+ * The inline half is the section gutter `ChatMessageList` pads its scroller
16298
+ * with, so below the cap — where the column runs full-bleed — the composer
16299
+ * keeps to the same gutters as the messages.
16300
+ */
16301
+ .muka-bottombar--chat:not(.muka-bottombar--floating) .muka-bottombar__content {
16302
+ padding: var(--bottombar-chat-padding)
16303
+ var(--section-padding-horizontal-default, var(--spacing-4));
16304
+ max-width: calc(
16305
+ var(--bottombar-chat-max-width) + 2 * var(--section-padding-horizontal-default, var(--spacing-4))
16306
+ );
16354
16307
  }
16355
16308
 
16356
- /* Icon-only — square, sized to the badge height (Figma: 24 / 32 / 40).
16357
- * Padding resets at size+icon-only specificity so `--has-icon` leading padding
16358
- * cannot win and shift the icon off-center. */
16359
- .muka-badge--icon-only {
16360
- justify-content: center;
16361
- align-items: center;
16362
- gap: 0;
16309
+ /* Floating chat card widens to the chat cap (overrides the md default below). */
16310
+ .muka-bottombar--chat.muka-bottombar--floating .muka-bottombar__content {
16311
+ max-width: calc(var(--bottombar-chat-max-width) + 2 * var(--bottombar-floating-padding));
16363
16312
  }
16364
16313
 
16365
- .muka-badge--sm.muka-badge--icon-only,
16366
- .muka-badge--md.muka-badge--icon-only,
16367
- .muka-badge--lg.muka-badge--icon-only {
16368
- padding: 0;
16369
- }
16314
+ /* ─── Tab item ────────────────────────────────────────── */
16370
16315
 
16371
- .muka-badge--sm.muka-badge--icon-only {
16372
- width: var(--badge-size-height-sm);
16316
+ .muka-bottombar__tab {
16317
+ flex: 1;
16318
+ display: flex;
16319
+ flex-direction: column;
16320
+ align-items: center;
16321
+ gap: var(--bottombar-tab-gap);
16322
+ padding: var(--bottombar-tab-padding-y) 0;
16323
+ background: none;
16324
+ border: none;
16325
+ cursor: pointer;
16326
+ color: var(--bottombar-color-tab-inactive);
16327
+ transition: color 0.15s ease;
16328
+ -webkit-tap-highlight-color: transparent;
16373
16329
  }
16374
16330
 
16375
- .muka-badge--md.muka-badge--icon-only {
16376
- width: var(--badge-size-height-md);
16331
+ .muka-bottombar__tab:focus-visible {
16332
+ outline: 2px solid var(--color-action-default);
16333
+ outline-offset: -2px;
16334
+ border-radius: var(--border-radius-sm);
16377
16335
  }
16378
16336
 
16379
- .muka-badge--lg.muka-badge--icon-only {
16380
- width: var(--badge-size-height-lg);
16337
+ .muka-bottombar__tab--active {
16338
+ color: var(--bottombar-color-tab-active);
16381
16339
  }
16382
16340
 
16383
- /* Leading icon slot — Figma icon sizes: sm 16, md 20, lg 24 (matches Chip) */
16384
- .muka-badge__icon {
16385
- display: inline-flex;
16341
+ .muka-bottombar__tab-icon {
16342
+ position: relative;
16343
+ display: flex;
16386
16344
  align-items: center;
16387
16345
  justify-content: center;
16388
- flex-shrink: 0;
16389
- }
16390
-
16391
- .muka-badge--sm .muka-badge__icon {
16392
- width: var(--icon-size-xs);
16393
- height: var(--icon-size-xs);
16394
- }
16395
- .muka-badge--md .muka-badge__icon {
16396
- width: var(--icon-size-sm);
16397
- height: var(--icon-size-sm);
16398
- }
16399
- .muka-badge--lg .muka-badge__icon {
16400
- width: var(--icon-size-default);
16401
- height: var(--icon-size-default);
16346
+ width: var(--bottombar-tab-icon-size);
16347
+ height: var(--bottombar-tab-icon-size);
16402
16348
  }
16403
16349
 
16404
- /* Force the passed content (raw <svg> or an <Icon> wrapper) to the slot size,
16405
- so callers don't have to size the icon to match each badge size. The
16406
- .muka-icon selector is intentionally 2 classes deep to override .muka-icon--md. */
16407
- .muka-badge__icon .muka-icon,
16408
- .muka-badge__icon svg {
16350
+ .muka-bottombar__tab-icon svg {
16409
16351
  width: 100%;
16410
16352
  height: 100%;
16411
16353
  }
16412
16354
 
16413
- /* Icons inherit the badge's per-variant foreground color */
16414
- .muka-badge .muka-icon {
16415
- color: inherit;
16355
+ /* A count on the icon's top-right corner (unread messages). */
16356
+ .muka-bottombar__tab-badge {
16357
+ position: absolute;
16358
+ top: calc(-1 * var(--spacing-1));
16359
+ left: 60%;
16360
+ display: flex;
16361
+ pointer-events: none;
16416
16362
  }
16417
16363
 
16418
- /* Dot indicator */
16419
- .muka-badge__dot {
16420
- flex-shrink: 0;
16421
- border-radius: var(--border-radius-full);
16364
+ .muka-bottombar__tab-label {
16365
+ font-family: var(--text-label-sm-regular-fontFamily);
16366
+ font-weight: var(--text-label-sm-regular-fontWeight);
16367
+ font-size: var(--text-label-sm-regular-fontSize);
16368
+ line-height: var(--text-label-sm-regular-lineHeight);
16422
16369
  }
16423
16370
 
16424
- .muka-badge--sm .muka-badge__dot {
16425
- width: var(--badge-size-dot-sm);
16426
- height: var(--badge-size-dot-sm);
16427
- }
16371
+ /* ─── Floating modifier ───────────────────────────────── */
16428
16372
 
16429
- .muka-badge--md .muka-badge__dot {
16430
- width: var(--badge-size-dot-md);
16431
- height: var(--badge-size-dot-md);
16432
- }
16373
+ .muka-bottombar--floating {
16374
+ background: linear-gradient(
16375
+ to bottom,
16376
+ var(--bottombar-floating-backdrop-start),
16377
+ var(--bottombar-floating-backdrop-end)
16378
+ );
16379
+ padding: var(--bottombar-floating-padding-top) var(--bottombar-floating-margin-x) var(--bottombar-floating-margin-bottom);
16433
16380
 
16434
- .muka-badge--lg .muka-badge__dot {
16435
- width: var(--badge-size-dot-lg);
16436
- height: var(--badge-size-dot-lg);
16381
+ /* The transparent frosted margin around the pill overlays scrolling content;
16382
+ let scroll/taps fall through to that content, keeping only the pill itself
16383
+ interactive (re-enabled on __content below). */
16384
+ pointer-events: none;
16437
16385
  }
16438
16386
 
16439
- .muka-badge__label {
16440
- flex: 0 1 auto;
16441
- min-width: 0;
16442
- overflow: hidden;
16443
- text-overflow: ellipsis;
16444
- /*
16445
- * The badge sets a tight line-height for compact sizing, but the label's
16446
- * `overflow: hidden` (needed for ellipsis) then clips glyph descenders (g, y, p). Give the
16447
- * label its own roomier line-height so descenders render; vertical centering is unaffected
16448
- * because the badge height is fixed and content is centered via align-items: center.
16449
- */
16450
- line-height: normal;
16387
+ .muka-bottombar--floating .muka-bottombar__content {
16388
+ pointer-events: auto;
16451
16389
  }
16452
16390
 
16453
- /* Neutral variant */
16454
- .muka-badge--neutral {
16455
- background-color: var(--color-surface-level1);
16456
- color: var(--color-text-default-default);
16391
+ .muka-bottombar--floating .muka-bottombar__content {
16392
+ background-color: var(--bottombar-color-background);
16393
+ border-radius: var(--bottombar-floating-radius);
16394
+ padding: var(--bottombar-floating-padding);
16395
+ box-shadow: var(--bottombar-floating-shadow);
16396
+ max-width: var(--bottombar-floating-max-width);
16397
+ width: 100%;
16398
+ margin: 0 auto;
16457
16399
  }
16458
16400
 
16459
- .muka-badge--neutral .muka-badge__dot {
16460
- background-color: var(--color-text-subtle-default);
16401
+ /* Override content padding inside floating per variant */
16402
+ .muka-bottombar--floating.muka-bottombar--actions .muka-bottombar__content {
16403
+ padding: var(--bottombar-floating-padding);
16461
16404
  }
16462
16405
 
16463
- /* Info variant */
16464
- .muka-badge--info {
16465
- background-color: var(--color-state-info-background);
16466
- color: var(--color-state-info-contrast);
16406
+ .muka-bottombar--floating.muka-bottombar--navigation .muka-bottombar__content {
16407
+ padding: var(--bottombar-navigation-floating-padding);
16467
16408
  }
16468
16409
 
16469
- .muka-badge--info .muka-badge__dot {
16470
- background-color: var(--color-state-info-default);
16471
- }
16410
+ /* ─── Desktop: Sidebar transformation ─────────────────── */
16472
16411
 
16473
- /* Success variant */
16474
- .muka-badge--success {
16475
- background-color: var(--color-state-success-background);
16476
- color: var(--color-state-success-contrast);
16477
- }
16412
+ @media (min-width: 1024px) {
16413
+ .muka-bottombar--desktop-sidebar {
16414
+ position: fixed;
16415
+ left: 0;
16416
+ top: 0;
16417
+ bottom: 0;
16418
+ width: 240px;
16419
+ height: 100vh;
16420
+ background-color: var(--bottombar-color-background);
16421
+ border-right: var(--border-width-regular) solid var(--bottombar-color-border);
16422
+ z-index: 10;
16423
+ }
16478
16424
 
16479
- .muka-badge--success .muka-badge__dot {
16480
- background-color: var(--color-state-success-default);
16481
- }
16425
+ .muka-bottombar--desktop-sidebar .muka-bottombar__divider {
16426
+ display: none;
16427
+ }
16482
16428
 
16483
- /* Warning variant */
16484
- .muka-badge--warning {
16485
- background-color: var(--color-state-warning-background);
16486
- color: var(--color-state-warning-contrast);
16487
- }
16429
+ .muka-bottombar--desktop-sidebar .muka-bottombar__content {
16430
+ flex-direction: column;
16431
+ align-items: stretch;
16432
+ padding: var(--spacing-4) var(--spacing-3);
16433
+ /* The rail runs to the top of the screen: clear the status bar there. */
16434
+ padding-top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
16435
+ gap: var(--spacing-1);
16436
+ }
16488
16437
 
16489
- .muka-badge--warning .muka-badge__dot {
16490
- background-color: var(--color-state-warning-default);
16438
+ .muka-bottombar--desktop-sidebar .muka-bottombar__tab {
16439
+ flex: 0 0 auto;
16440
+ flex-direction: row;
16441
+ justify-content: flex-start;
16442
+ gap: var(--spacing-3);
16443
+ padding: var(--spacing-3);
16444
+ border-radius: var(--border-radius-md);
16445
+ }
16446
+
16447
+ .muka-bottombar--desktop-sidebar .muka-bottombar__tab:hover {
16448
+ background-color: var(--color-surface-level2);
16449
+ }
16450
+
16451
+ .muka-bottombar--desktop-sidebar .muka-bottombar__tab-label {
16452
+ font-family: var(--text-label-md-regular-fontFamily);
16453
+ font-weight: var(--text-label-md-regular-fontWeight);
16454
+ font-size: var(--text-label-md-regular-fontSize);
16455
+ line-height: var(--text-label-md-regular-lineHeight);
16456
+ }
16457
+
16458
+ /* When floating and sidebar, remove the floating card styles */
16459
+ .muka-bottombar--desktop-sidebar.muka-bottombar--floating {
16460
+ padding: 0;
16461
+ }
16462
+
16463
+ .muka-bottombar--desktop-sidebar.muka-bottombar--floating .muka-bottombar__content {
16464
+ background-color: transparent;
16465
+ border-radius: 0;
16466
+ box-shadow: none;
16467
+ }
16491
16468
  }
16492
16469
 
16493
- /* Error variant */
16494
- .muka-badge--error {
16495
- background-color: var(--color-state-error-background);
16496
- color: var(--color-state-error-contrast);
16470
+ /* ─── Desktop: Top Navigation transformation ──────────── */
16471
+
16472
+ @media (min-width: 1024px) {
16473
+ .muka-bottombar--desktop-topnav {
16474
+ position: fixed;
16475
+ top: 0;
16476
+ left: 0;
16477
+ right: 0;
16478
+ width: 100%;
16479
+ height: auto;
16480
+ background-color: var(--bottombar-color-background);
16481
+ border-bottom: var(--border-width-regular) solid var(--bottombar-color-border);
16482
+ z-index: 10;
16483
+ }
16484
+
16485
+ .muka-bottombar--desktop-topnav .muka-bottombar__divider {
16486
+ display: none;
16487
+ }
16488
+
16489
+ .muka-bottombar--desktop-topnav .muka-bottombar__content {
16490
+ flex-direction: row;
16491
+ justify-content: center;
16492
+ gap: var(--spacing-1);
16493
+ padding: 0 var(--spacing-4);
16494
+ max-width: var(--container-max-width-large, 1200px);
16495
+ margin: 0 auto;
16496
+ }
16497
+
16498
+ .muka-bottombar--desktop-topnav .muka-bottombar__tab {
16499
+ flex: 0 0 auto;
16500
+ flex-direction: row;
16501
+ gap: var(--spacing-2);
16502
+ padding: var(--spacing-3) var(--spacing-4);
16503
+ border-radius: 0;
16504
+ border-bottom: 2px solid transparent;
16505
+ }
16506
+
16507
+ .muka-bottombar--desktop-topnav .muka-bottombar__tab--active {
16508
+ border-bottom-color: var(--color-action-default);
16509
+ }
16510
+
16511
+ .muka-bottombar--desktop-topnav .muka-bottombar__tab:hover {
16512
+ background-color: var(--color-surface-level2);
16513
+ }
16514
+
16515
+ .muka-bottombar--desktop-topnav .muka-bottombar__tab-label {
16516
+ font-family: var(--text-label-md-regular-fontFamily);
16517
+ font-weight: var(--text-label-md-regular-fontWeight);
16518
+ font-size: var(--text-label-md-regular-fontSize);
16519
+ line-height: var(--text-label-md-regular-lineHeight);
16520
+ }
16521
+
16522
+ /* When floating and topnav, remove the floating card styles */
16523
+ .muka-bottombar--desktop-topnav.muka-bottombar--floating {
16524
+ padding: 0;
16525
+ }
16526
+
16527
+ .muka-bottombar--desktop-topnav.muka-bottombar--floating .muka-bottombar__content {
16528
+ background-color: transparent;
16529
+ border-radius: 0;
16530
+ box-shadow: none;
16531
+ }
16497
16532
  }
16498
16533
 
16499
- .muka-badge--error .muka-badge__dot {
16500
- background-color: var(--color-state-error-default);
16534
+ /* ─── Print ────────────────────────────────────────────── */
16535
+
16536
+ @media print {
16537
+ .muka-bottombar {
16538
+ display: none;
16539
+ }
16501
16540
  }
16502
16541
 
16503
16542