@revikornmann/muka-ui 0.61.0 → 0.62.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.
@@ -5507,6 +5507,81 @@ body {
5507
5507
  }
5508
5508
 
5509
5509
 
5510
+ /* Skeleton */
5511
+ /* Skeleton Component Styles */
5512
+
5513
+ .muka-skeleton {
5514
+ background-color: var(--color-surface-level1);
5515
+ display: block;
5516
+ }
5517
+
5518
+ /* Variants */
5519
+ .muka-skeleton--text {
5520
+ height: 1em;
5521
+ border-radius: var(--radius-md);
5522
+ width: 100%;
5523
+ }
5524
+
5525
+ .muka-skeleton--circular {
5526
+ width: 2.5rem;
5527
+ height: 2.5rem;
5528
+ border-radius: var(--radius-full);
5529
+ }
5530
+
5531
+ .muka-skeleton--rectangular {
5532
+ height: 7.5rem;
5533
+ border-radius: var(--radius-md);
5534
+ width: 100%;
5535
+ }
5536
+
5537
+ /* Last line in multi-line text is shorter */
5538
+ .muka-skeleton--last-line {
5539
+ width: 80%;
5540
+ }
5541
+
5542
+ /* Lines container */
5543
+ .muka-skeleton__lines {
5544
+ display: flex;
5545
+ flex-direction: column;
5546
+ gap: var(--spacing-2);
5547
+ }
5548
+
5549
+ /* Shimmer animation */
5550
+ @keyframes muka-skeleton-shimmer {
5551
+ 0% {
5552
+ background-position: -200% 0;
5553
+ }
5554
+ 100% {
5555
+ background-position: 200% 0;
5556
+ }
5557
+ }
5558
+
5559
+ .muka-skeleton--shimmer {
5560
+ background: linear-gradient(
5561
+ 90deg,
5562
+ var(--color-surface-level1) 25%,
5563
+ var(--color-surface-level2) 50%,
5564
+ var(--color-surface-level1) 75%
5565
+ );
5566
+ background-size: 200% 100%;
5567
+ animation: muka-skeleton-shimmer 1.5s ease-in-out infinite;
5568
+ }
5569
+
5570
+ /* Pulse animation */
5571
+ @keyframes muka-skeleton-pulse {
5572
+ 0%, 100% {
5573
+ opacity: 1;
5574
+ }
5575
+ 50% {
5576
+ opacity: 0.4;
5577
+ }
5578
+ }
5579
+
5580
+ .muka-skeleton--pulse {
5581
+ animation: muka-skeleton-pulse 1.5s ease-in-out infinite;
5582
+ }
5583
+
5584
+
5510
5585
  /* SmsOtpField */
5511
5586
  /* SmsOtpField Component Styles - Using Muka Design Tokens */
5512
5587
 
@@ -5699,81 +5774,6 @@ body {
5699
5774
  }
5700
5775
 
5701
5776
 
5702
- /* Skeleton */
5703
- /* Skeleton Component Styles */
5704
-
5705
- .muka-skeleton {
5706
- background-color: var(--color-surface-level1);
5707
- display: block;
5708
- }
5709
-
5710
- /* Variants */
5711
- .muka-skeleton--text {
5712
- height: 1em;
5713
- border-radius: var(--radius-md);
5714
- width: 100%;
5715
- }
5716
-
5717
- .muka-skeleton--circular {
5718
- width: 2.5rem;
5719
- height: 2.5rem;
5720
- border-radius: var(--radius-full);
5721
- }
5722
-
5723
- .muka-skeleton--rectangular {
5724
- height: 7.5rem;
5725
- border-radius: var(--radius-md);
5726
- width: 100%;
5727
- }
5728
-
5729
- /* Last line in multi-line text is shorter */
5730
- .muka-skeleton--last-line {
5731
- width: 80%;
5732
- }
5733
-
5734
- /* Lines container */
5735
- .muka-skeleton__lines {
5736
- display: flex;
5737
- flex-direction: column;
5738
- gap: var(--spacing-2);
5739
- }
5740
-
5741
- /* Shimmer animation */
5742
- @keyframes muka-skeleton-shimmer {
5743
- 0% {
5744
- background-position: -200% 0;
5745
- }
5746
- 100% {
5747
- background-position: 200% 0;
5748
- }
5749
- }
5750
-
5751
- .muka-skeleton--shimmer {
5752
- background: linear-gradient(
5753
- 90deg,
5754
- var(--color-surface-level1) 25%,
5755
- var(--color-surface-level2) 50%,
5756
- var(--color-surface-level1) 75%
5757
- );
5758
- background-size: 200% 100%;
5759
- animation: muka-skeleton-shimmer 1.5s ease-in-out infinite;
5760
- }
5761
-
5762
- /* Pulse animation */
5763
- @keyframes muka-skeleton-pulse {
5764
- 0%, 100% {
5765
- opacity: 1;
5766
- }
5767
- 50% {
5768
- opacity: 0.4;
5769
- }
5770
- }
5771
-
5772
- .muka-skeleton--pulse {
5773
- animation: muka-skeleton-pulse 1.5s ease-in-out infinite;
5774
- }
5775
-
5776
-
5777
5777
  /* SiteHeader */
5778
5778
  /* SiteHeader Component Styles */
5779
5779
 
@@ -5919,88 +5919,6 @@ body {
5919
5919
  }
5920
5920
 
5921
5921
 
5922
- /* Sheet */
5923
- /* Sheet Component Styles */
5924
-
5925
- /* ─── Backdrop ────────────────────────────────────────── */
5926
-
5927
- .muka-sheet__overlay {
5928
- position: fixed;
5929
- inset: 0;
5930
- background-color: var(--color-surface-backdrop);
5931
- -webkit-backdrop-filter: blur(var(--effect-blur-backdrop));
5932
- backdrop-filter: blur(var(--effect-blur-backdrop));
5933
- z-index: 50;
5934
- }
5935
-
5936
- /* ─── Surface ─────────────────────────────────────────── */
5937
-
5938
- .muka-sheet {
5939
- position: fixed;
5940
- left: 0;
5941
- right: 0;
5942
- bottom: 0;
5943
- z-index: 51;
5944
-
5945
- display: flex;
5946
- flex-direction: column;
5947
-
5948
- max-height: 96dvh;
5949
-
5950
- background-color: var(--color-surface-level3);
5951
- border-top-left-radius: var(--radius-lg);
5952
- border-top-right-radius: var(--radius-lg);
5953
- box-shadow: var(--shadow-level5);
5954
-
5955
- outline: none;
5956
- }
5957
-
5958
- /* Safe-area bottom inset for the iPhone home indicator. */
5959
- .muka-sheet:not(.muka-sheet--no-safe-area) {
5960
- padding-bottom: env(safe-area-inset-bottom);
5961
- }
5962
-
5963
- /* ─── Drag handle ─────────────────────────────────────── */
5964
-
5965
- .muka-sheet__handle-container {
5966
- display: flex;
5967
- justify-content: center;
5968
- flex-shrink: 0;
5969
- padding: var(--spacing-3) 0;
5970
- }
5971
-
5972
- .muka-sheet__handle {
5973
- width: var(--dialog-drag-handle-width);
5974
- height: var(--dialog-drag-handle-height);
5975
- background-color: var(--dialog-drag-handle-color);
5976
- border-radius: var(--dialog-drag-handle-radius);
5977
- }
5978
-
5979
- /* ─── Body (scrollable) ───────────────────────────────── */
5980
-
5981
- .muka-sheet__body {
5982
- flex: 1 1 0%;
5983
- min-height: 0;
5984
- overflow-y: auto;
5985
- -webkit-overflow-scrolling: touch;
5986
- overscroll-behavior: contain;
5987
- }
5988
-
5989
- /* ─── Visually-hidden title (a11y) ────────────────────── */
5990
-
5991
- .muka-sheet__sr-title {
5992
- position: absolute;
5993
- width: 1px;
5994
- height: 1px;
5995
- padding: 0;
5996
- margin: -1px;
5997
- overflow: hidden;
5998
- clip: rect(0, 0, 0, 0);
5999
- white-space: nowrap;
6000
- border: 0;
6001
- }
6002
-
6003
-
6004
5922
  /* Select */
6005
5923
  /* Select Component Styles - Aligned with Input for consistency */
6006
5924
 
@@ -6406,22 +6324,104 @@ body {
6406
6324
  }
6407
6325
 
6408
6326
 
6409
- /* SearchInput */
6410
- /* SearchInput Component Styles */
6327
+ /* Sheet */
6328
+ /* Sheet Component Styles */
6411
6329
 
6412
- .muka-search-input {
6413
- display: flex;
6414
- align-items: center;
6415
- gap: var(--spacing-3);
6416
- width: 100%;
6330
+ /* ─── Backdrop ────────────────────────────────────────── */
6331
+
6332
+ .muka-sheet__overlay {
6333
+ position: fixed;
6334
+ inset: 0;
6335
+ background-color: var(--color-surface-backdrop);
6336
+ -webkit-backdrop-filter: blur(var(--effect-blur-backdrop));
6337
+ backdrop-filter: blur(var(--effect-blur-backdrop));
6338
+ z-index: 50;
6417
6339
  }
6418
6340
 
6419
- /* ─── Field wrapper ───────────────────────────────────── */
6341
+ /* ─── Surface ─────────────────────────────────────────── */
6420
6342
 
6421
- .muka-search-input__field {
6422
- flex: 1 1 auto;
6423
- display: flex;
6424
- align-items: center;
6343
+ .muka-sheet {
6344
+ position: fixed;
6345
+ left: 0;
6346
+ right: 0;
6347
+ bottom: 0;
6348
+ z-index: 51;
6349
+
6350
+ display: flex;
6351
+ flex-direction: column;
6352
+
6353
+ max-height: 96dvh;
6354
+
6355
+ background-color: var(--color-surface-level3);
6356
+ border-top-left-radius: var(--radius-lg);
6357
+ border-top-right-radius: var(--radius-lg);
6358
+ box-shadow: var(--shadow-level5);
6359
+
6360
+ outline: none;
6361
+ }
6362
+
6363
+ /* Safe-area bottom inset for the iPhone home indicator. */
6364
+ .muka-sheet:not(.muka-sheet--no-safe-area) {
6365
+ padding-bottom: env(safe-area-inset-bottom);
6366
+ }
6367
+
6368
+ /* ─── Drag handle ─────────────────────────────────────── */
6369
+
6370
+ .muka-sheet__handle-container {
6371
+ display: flex;
6372
+ justify-content: center;
6373
+ flex-shrink: 0;
6374
+ padding: var(--spacing-3) 0;
6375
+ }
6376
+
6377
+ .muka-sheet__handle {
6378
+ width: var(--dialog-drag-handle-width);
6379
+ height: var(--dialog-drag-handle-height);
6380
+ background-color: var(--dialog-drag-handle-color);
6381
+ border-radius: var(--dialog-drag-handle-radius);
6382
+ }
6383
+
6384
+ /* ─── Body (scrollable) ───────────────────────────────── */
6385
+
6386
+ .muka-sheet__body {
6387
+ flex: 1 1 0%;
6388
+ min-height: 0;
6389
+ overflow-y: auto;
6390
+ -webkit-overflow-scrolling: touch;
6391
+ overscroll-behavior: contain;
6392
+ }
6393
+
6394
+ /* ─── Visually-hidden title (a11y) ────────────────────── */
6395
+
6396
+ .muka-sheet__sr-title {
6397
+ position: absolute;
6398
+ width: 1px;
6399
+ height: 1px;
6400
+ padding: 0;
6401
+ margin: -1px;
6402
+ overflow: hidden;
6403
+ clip: rect(0, 0, 0, 0);
6404
+ white-space: nowrap;
6405
+ border: 0;
6406
+ }
6407
+
6408
+
6409
+ /* SearchInput */
6410
+ /* SearchInput Component Styles */
6411
+
6412
+ .muka-search-input {
6413
+ display: flex;
6414
+ align-items: center;
6415
+ gap: var(--spacing-3);
6416
+ width: 100%;
6417
+ }
6418
+
6419
+ /* ─── Field wrapper ───────────────────────────────────── */
6420
+
6421
+ .muka-search-input__field {
6422
+ flex: 1 1 auto;
6423
+ display: flex;
6424
+ align-items: center;
6425
6425
  gap: var(--spacing-2);
6426
6426
  background-color: var(--input-field-color-default-background);
6427
6427
  border: var(--border-width-regular) solid var(--input-field-color-default-border);
@@ -6575,56 +6575,6 @@ body {
6575
6575
  }
6576
6576
 
6577
6577
 
6578
- /* RecordingBar */
6579
- /* RecordingBar Component Styles */
6580
-
6581
- .muka-recording-bar {
6582
- display: flex;
6583
- align-items: center;
6584
- gap: var(--spacing-3);
6585
- width: 100%;
6586
- min-width: 0;
6587
- }
6588
-
6589
- .muka-recording-bar__dot {
6590
- flex: 0 0 auto;
6591
- width: 0.625rem;
6592
- height: 0.625rem;
6593
- border-radius: var(--radius-full, 9999px);
6594
- background: var(--alert-color-error-accent, var(--color-text-default-default));
6595
- animation: muka-recording-bar-pulse 1s ease-in-out infinite;
6596
- }
6597
-
6598
- .muka-recording-bar__time {
6599
- flex: 0 0 auto;
6600
- font-size: var(--text-label-sm-regular-fontSize);
6601
- line-height: var(--text-label-sm-leading);
6602
- font-variant-numeric: tabular-nums;
6603
- color: var(--color-text-default-default);
6604
- }
6605
-
6606
- .muka-recording-bar__wave {
6607
- flex: 1 1 auto;
6608
- min-width: 0;
6609
- }
6610
-
6611
- @keyframes muka-recording-bar-pulse {
6612
- 0%,
6613
- 100% {
6614
- opacity: 1;
6615
- }
6616
- 50% {
6617
- opacity: 0.3;
6618
- }
6619
- }
6620
-
6621
- @media (prefers-reduced-motion: reduce) {
6622
- .muka-recording-bar__dot {
6623
- animation: none;
6624
- }
6625
- }
6626
-
6627
-
6628
6578
  /* Scrollbar */
6629
6579
  /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
6630
6580
 
@@ -6968,178 +6918,84 @@ body {
6968
6918
  }
6969
6919
 
6970
6920
 
6971
- /* Radio */
6972
- /* Radio Component Styles - Using Muka Design Tokens */
6921
+ /* RecordingBar */
6922
+ /* RecordingBar Component Styles */
6973
6923
 
6974
- /* Wrapper - clickable label container */
6975
- .muka-radio {
6976
- display: inline-flex;
6924
+ .muka-recording-bar {
6925
+ display: flex;
6977
6926
  align-items: center;
6978
- gap: var(--spacing-4);
6979
- cursor: pointer;
6980
- user-select: none;
6927
+ gap: var(--spacing-3);
6928
+ width: 100%;
6929
+ min-width: 0;
6981
6930
  }
6982
6931
 
6983
- .muka-radio--disabled {
6984
- cursor: not-allowed;
6985
- opacity: 0.6;
6932
+ .muka-recording-bar__dot {
6933
+ flex: 0 0 auto;
6934
+ width: 0.625rem;
6935
+ height: 0.625rem;
6936
+ border-radius: var(--radius-full, 9999px);
6937
+ background: var(--alert-color-error-accent, var(--color-text-default-default));
6938
+ animation: muka-recording-bar-pulse 1s ease-in-out infinite;
6986
6939
  }
6987
6940
 
6988
- /* Control container */
6989
- .muka-radio__control {
6990
- position: relative;
6991
- display: inline-flex;
6992
- align-items: center;
6993
- justify-content: center;
6994
- flex-shrink: 0;
6941
+ .muka-recording-bar__time {
6942
+ flex: 0 0 auto;
6943
+ font-size: var(--text-label-sm-regular-fontSize);
6944
+ line-height: var(--text-label-sm-leading);
6945
+ font-variant-numeric: tabular-nums;
6946
+ color: var(--color-text-default-default);
6995
6947
  }
6996
6948
 
6997
- /* Hidden native input */
6998
- .muka-radio__input {
6999
- position: absolute;
7000
- width: 1px;
7001
- height: 1px;
7002
- padding: 0;
7003
- margin: -1px;
7004
- overflow: hidden;
7005
- clip: rect(0, 0, 0, 0);
7006
- white-space: nowrap;
7007
- border: 0;
6949
+ .muka-recording-bar__wave {
6950
+ flex: 1 1 auto;
6951
+ min-width: 0;
7008
6952
  }
7009
6953
 
7010
- /* Visual indicator (circle) */
7011
- .muka-radio__indicator {
7012
- display: flex;
7013
- align-items: center;
7014
- justify-content: center;
7015
- width: var(--radio-size-default);
7016
- height: var(--radio-size-default);
7017
- border-radius: var(--border-radius-full);
7018
- background-color: var(--radio-color-default-background);
7019
- border: var(--border-width-regular) solid var(--radio-color-default-border);
7020
- transition: all 0.15s ease;
7021
- box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.15);
6954
+ @keyframes muka-recording-bar-pulse {
6955
+ 0%,
6956
+ 100% {
6957
+ opacity: 1;
6958
+ }
6959
+ 50% {
6960
+ opacity: 0.3;
6961
+ }
7022
6962
  }
7023
6963
 
7024
- /* Size variants */
7025
- .muka-radio--sm .muka-radio__indicator {
7026
- width: var(--radio-size-sm);
7027
- height: var(--radio-size-sm);
6964
+ @media (prefers-reduced-motion: reduce) {
6965
+ .muka-recording-bar__dot {
6966
+ animation: none;
6967
+ }
7028
6968
  }
7029
6969
 
7030
- .muka-radio--lg .muka-radio__indicator {
7031
- width: var(--radio-size-lg);
7032
- height: var(--radio-size-lg);
7033
- }
7034
6970
 
7035
- /* Inner dot (shown when checked) */
7036
- .muka-radio__dot {
7037
- width: var(--radio-dot-size-default);
7038
- height: var(--radio-dot-size-default);
7039
- border-radius: var(--border-radius-full);
7040
- background-color: var(--radio-color-default-dot);
7041
- transform: scale(0);
7042
- transition: transform 0.15s ease;
7043
- }
6971
+ /* RadioTile */
6972
+ /* RadioTile Component Styles - Using Muka Design Tokens */
7044
6973
 
7045
- .muka-radio--sm .muka-radio__dot {
7046
- width: var(--radio-dot-size-sm);
7047
- height: var(--radio-dot-size-sm);
6974
+ /* Base tile styles - horizontal */
6975
+ .muka-radio-tile {
6976
+ display: flex;
6977
+ align-items: center;
6978
+ gap: var(--spacing-4);
6979
+ padding: var(--spacing-4);
6980
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
6981
+ border-radius: var(--input-field-radius-lg);
6982
+ background-color: var(--color-surface-level3);
6983
+ cursor: pointer;
6984
+ transition: border-color 0.15s ease, border-width 0.15s ease;
6985
+ overflow: hidden;
6986
+ box-sizing: border-box;
7048
6987
  }
7049
6988
 
7050
- .muka-radio--lg .muka-radio__dot {
7051
- width: var(--radio-dot-size-lg);
7052
- height: var(--radio-dot-size-lg);
6989
+ .muka-radio-tile--disabled {
6990
+ cursor: not-allowed;
6991
+ opacity: 0.6;
7053
6992
  }
7054
6993
 
7055
- /* Hover state - removed per design */
7056
-
7057
- /* Focus state */
7058
- .muka-radio__input:focus-visible + .muka-radio__indicator {
7059
- outline: 2px solid var(--color-border-focus);
7060
- outline-offset: 2px;
7061
- }
7062
-
7063
- /* Checked state */
7064
- .muka-radio__input:checked + .muka-radio__indicator {
7065
- background-color: var(--radio-color-checked-background);
7066
- border-width: var(--border-width-bold);
7067
- border-color: var(--radio-color-checked-border);
7068
- box-shadow: none;
7069
- }
7070
-
7071
- .muka-radio__input:checked + .muka-radio__indicator .muka-radio__dot {
7072
- background-color: var(--radio-color-checked-dot);
7073
- transform: scale(1);
7074
- }
7075
-
7076
- /* Disabled state */
7077
- .muka-radio--disabled .muka-radio__indicator {
7078
- background-color: var(--radio-color-disabled-background);
7079
- border-color: var(--radio-color-disabled-border);
7080
- box-shadow: none;
7081
- }
7082
-
7083
- .muka-radio__input:disabled:checked + .muka-radio__indicator .muka-radio__dot {
7084
- background-color: var(--radio-color-disabled-dot);
7085
- }
7086
-
7087
- /* Label text */
7088
- .muka-radio__label {
7089
- font-family: var(--text-label-lg-regular-fontFamily);
7090
- font-weight: var(--text-label-lg-regular-fontWeight);
7091
- font-size: var(--text-label-lg-regular-fontSize);
7092
- line-height: var(--text-label-lg-regular-lineHeight);
7093
- color: var(--color-text-default-default);
7094
- }
7095
-
7096
- .muka-radio--sm .muka-radio__label {
7097
- font-family: var(--text-label-md-regular-fontFamily);
7098
- font-weight: var(--text-label-md-regular-fontWeight);
7099
- font-size: var(--text-label-md-regular-fontSize);
7100
- line-height: var(--text-label-md-regular-lineHeight);
7101
- }
7102
-
7103
- .muka-radio--lg .muka-radio__label {
7104
- font-family: var(--text-label-xl-regular-fontFamily);
7105
- font-weight: var(--text-label-xl-regular-fontWeight);
7106
- font-size: var(--text-label-xl-regular-fontSize);
7107
- line-height: var(--text-label-xl-regular-lineHeight);
7108
- }
7109
-
7110
- .muka-radio--disabled .muka-radio__label {
7111
- color: var(--color-text-subtle-default);
7112
- }
7113
-
7114
-
7115
- /* RadioTile */
7116
- /* RadioTile Component Styles - Using Muka Design Tokens */
7117
-
7118
- /* Base tile styles - horizontal */
7119
- .muka-radio-tile {
7120
- display: flex;
7121
- align-items: center;
7122
- gap: var(--spacing-4);
7123
- padding: var(--spacing-4);
7124
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
7125
- border-radius: var(--input-field-radius-lg);
7126
- background-color: var(--color-surface-level3);
7127
- cursor: pointer;
7128
- transition: border-color 0.15s ease, border-width 0.15s ease;
7129
- overflow: hidden;
7130
- box-sizing: border-box;
7131
- }
7132
-
7133
- .muka-radio-tile--disabled {
7134
- cursor: not-allowed;
7135
- opacity: 0.6;
7136
- }
7137
-
7138
- /* Selected state */
7139
- .muka-radio-tile[data-checked] {
7140
- border-width: var(--border-width-bold);
7141
- border-color: var(--color-action-default);
7142
- }
6994
+ /* Selected state */
6995
+ .muka-radio-tile[data-checked] {
6996
+ border-width: var(--border-width-bold);
6997
+ border-color: var(--color-action-default);
6998
+ }
7143
6999
 
7144
7000
  /* Vertical layout */
7145
7001
  .muka-radio-tile--vertical {
@@ -7255,6 +7111,150 @@ body {
7255
7111
  }
7256
7112
 
7257
7113
 
7114
+ /* Radio */
7115
+ /* Radio Component Styles - Using Muka Design Tokens */
7116
+
7117
+ /* Wrapper - clickable label container */
7118
+ .muka-radio {
7119
+ display: inline-flex;
7120
+ align-items: center;
7121
+ gap: var(--spacing-4);
7122
+ cursor: pointer;
7123
+ user-select: none;
7124
+ }
7125
+
7126
+ .muka-radio--disabled {
7127
+ cursor: not-allowed;
7128
+ opacity: 0.6;
7129
+ }
7130
+
7131
+ /* Control container */
7132
+ .muka-radio__control {
7133
+ position: relative;
7134
+ display: inline-flex;
7135
+ align-items: center;
7136
+ justify-content: center;
7137
+ flex-shrink: 0;
7138
+ }
7139
+
7140
+ /* Hidden native input */
7141
+ .muka-radio__input {
7142
+ position: absolute;
7143
+ width: 1px;
7144
+ height: 1px;
7145
+ padding: 0;
7146
+ margin: -1px;
7147
+ overflow: hidden;
7148
+ clip: rect(0, 0, 0, 0);
7149
+ white-space: nowrap;
7150
+ border: 0;
7151
+ }
7152
+
7153
+ /* Visual indicator (circle) */
7154
+ .muka-radio__indicator {
7155
+ display: flex;
7156
+ align-items: center;
7157
+ justify-content: center;
7158
+ width: var(--radio-size-default);
7159
+ height: var(--radio-size-default);
7160
+ border-radius: var(--border-radius-full);
7161
+ background-color: var(--radio-color-default-background);
7162
+ border: var(--border-width-regular) solid var(--radio-color-default-border);
7163
+ transition: all 0.15s ease;
7164
+ box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.15);
7165
+ }
7166
+
7167
+ /* Size variants */
7168
+ .muka-radio--sm .muka-radio__indicator {
7169
+ width: var(--radio-size-sm);
7170
+ height: var(--radio-size-sm);
7171
+ }
7172
+
7173
+ .muka-radio--lg .muka-radio__indicator {
7174
+ width: var(--radio-size-lg);
7175
+ height: var(--radio-size-lg);
7176
+ }
7177
+
7178
+ /* Inner dot (shown when checked) */
7179
+ .muka-radio__dot {
7180
+ width: var(--radio-dot-size-default);
7181
+ height: var(--radio-dot-size-default);
7182
+ border-radius: var(--border-radius-full);
7183
+ background-color: var(--radio-color-default-dot);
7184
+ transform: scale(0);
7185
+ transition: transform 0.15s ease;
7186
+ }
7187
+
7188
+ .muka-radio--sm .muka-radio__dot {
7189
+ width: var(--radio-dot-size-sm);
7190
+ height: var(--radio-dot-size-sm);
7191
+ }
7192
+
7193
+ .muka-radio--lg .muka-radio__dot {
7194
+ width: var(--radio-dot-size-lg);
7195
+ height: var(--radio-dot-size-lg);
7196
+ }
7197
+
7198
+ /* Hover state - removed per design */
7199
+
7200
+ /* Focus state */
7201
+ .muka-radio__input:focus-visible + .muka-radio__indicator {
7202
+ outline: 2px solid var(--color-border-focus);
7203
+ outline-offset: 2px;
7204
+ }
7205
+
7206
+ /* Checked state */
7207
+ .muka-radio__input:checked + .muka-radio__indicator {
7208
+ background-color: var(--radio-color-checked-background);
7209
+ border-width: var(--border-width-bold);
7210
+ border-color: var(--radio-color-checked-border);
7211
+ box-shadow: none;
7212
+ }
7213
+
7214
+ .muka-radio__input:checked + .muka-radio__indicator .muka-radio__dot {
7215
+ background-color: var(--radio-color-checked-dot);
7216
+ transform: scale(1);
7217
+ }
7218
+
7219
+ /* Disabled state */
7220
+ .muka-radio--disabled .muka-radio__indicator {
7221
+ background-color: var(--radio-color-disabled-background);
7222
+ border-color: var(--radio-color-disabled-border);
7223
+ box-shadow: none;
7224
+ }
7225
+
7226
+ .muka-radio__input:disabled:checked + .muka-radio__indicator .muka-radio__dot {
7227
+ background-color: var(--radio-color-disabled-dot);
7228
+ }
7229
+
7230
+ /* Label text */
7231
+ .muka-radio__label {
7232
+ font-family: var(--text-label-lg-regular-fontFamily);
7233
+ font-weight: var(--text-label-lg-regular-fontWeight);
7234
+ font-size: var(--text-label-lg-regular-fontSize);
7235
+ line-height: var(--text-label-lg-regular-lineHeight);
7236
+ color: var(--color-text-default-default);
7237
+ }
7238
+
7239
+ .muka-radio--sm .muka-radio__label {
7240
+ font-family: var(--text-label-md-regular-fontFamily);
7241
+ font-weight: var(--text-label-md-regular-fontWeight);
7242
+ font-size: var(--text-label-md-regular-fontSize);
7243
+ line-height: var(--text-label-md-regular-lineHeight);
7244
+ }
7245
+
7246
+ .muka-radio--lg .muka-radio__label {
7247
+ font-family: var(--text-label-xl-regular-fontFamily);
7248
+ font-weight: var(--text-label-xl-regular-fontWeight);
7249
+ font-size: var(--text-label-xl-regular-fontSize);
7250
+ line-height: var(--text-label-xl-regular-lineHeight);
7251
+ }
7252
+
7253
+ .muka-radio--disabled .muka-radio__label {
7254
+ color: var(--color-text-subtle-default);
7255
+ }
7256
+
7257
+
7258
7258
  /* PullToRefresh */
7259
7259
  /* PullToRefresh Component Styles */
7260
7260
 
@@ -7302,24 +7302,282 @@ body {
7302
7302
  }
7303
7303
 
7304
7304
 
7305
- /* ProgressTracker */
7306
- /* ProgressTracker Component Styles — Using Muka Design Tokens */
7305
+ /* ProgressAccordeon */
7306
+ /* ProgressAccordeon Component Styles — Using Muka Design Tokens */
7307
7307
 
7308
7308
  /* ─── Root ──────────────────────────────────────────────── */
7309
- .muka-progress-tracker {
7309
+ .muka-progress-accordeon {
7310
+ container-type: inline-size;
7311
+ display: flex;
7312
+ flex-direction: column;
7313
+ align-items: stretch;
7310
7314
  width: 100%;
7315
+ /* Top padding provides the vertical rhythm between stacked steps */
7316
+ padding-top: var(--spacing-8);
7311
7317
  }
7312
7318
 
7313
- .muka-progress-tracker--horizontal {
7314
- padding-bottom: var(--spacing-7);
7319
+ /* Per-state gap: content-bearing steps are tighter, header-only steps looser */
7320
+ .muka-progress-accordeon--current,
7321
+ .muka-progress-accordeon--current.muka-progress-accordeon--expanded,
7322
+ .muka-progress-accordeon--past.muka-progress-accordeon--expanded,
7323
+ .muka-progress-accordeon--upcoming.muka-progress-accordeon--expanded {
7324
+ gap: var(--spacing-6);
7315
7325
  }
7316
7326
 
7317
- /* Scrollable: the root scrolls sideways when the steps don't fit. The inline
7318
- padding leaves room for the first and last labels, which hang past their
7319
- indicators; the scrollbar stays hidden (touch and trackpad still scroll). */
7320
- .muka-progress-tracker--scrollable {
7321
- overflow-x: auto;
7322
- overflow-y: hidden;
7327
+ .muka-progress-accordeon--upcoming,
7328
+ .muka-progress-accordeon--past.muka-progress-accordeon--collapsed,
7329
+ .muka-progress-accordeon--upcoming.muka-progress-accordeon--collapsed,
7330
+ .muka-progress-accordeon--current.muka-progress-accordeon--collapsed {
7331
+ gap: var(--spacing-8);
7332
+ }
7333
+
7334
+ /* Collapsible steps group header + slot. The header↔content gap lives inside the
7335
+ collapsing slot (as padding-top) so it collapses with the content, so the
7336
+ body gap itself is 0. */
7337
+ .muka-progress-accordeon__body {
7338
+ display: flex;
7339
+ flex-direction: column;
7340
+ gap: 0;
7341
+ width: 100%;
7342
+ }
7343
+
7344
+ /* ─── Header ─────────────────────────────────────────────── */
7345
+ .muka-progress-accordeon__header {
7346
+ display: flex;
7347
+ flex-direction: column;
7348
+ gap: var(--spacing-3);
7349
+ width: 100%;
7350
+ }
7351
+
7352
+ .muka-progress-accordeon__header-row {
7353
+ display: flex;
7354
+ align-items: flex-start;
7355
+ gap: var(--spacing-3);
7356
+ width: 100%;
7357
+ min-height: 40px;
7358
+ }
7359
+
7360
+ .muka-progress-accordeon__heading-group {
7361
+ display: flex;
7362
+ flex: 1 0 0;
7363
+ min-width: 0;
7364
+ align-items: flex-start;
7365
+ gap: var(--spacing-4);
7366
+ }
7367
+
7368
+ /* Steps with header controls (edit / chevron) are 40px tall; nudge the heading
7369
+ so a single line centres against the indicator + controls row. */
7370
+ .muka-progress-accordeon:has(.muka-progress-accordeon__controls)
7371
+ .muka-progress-accordeon__heading-group {
7372
+ padding-top: var(--spacing-1);
7373
+ }
7374
+
7375
+ .muka-progress-accordeon__controls {
7376
+ display: flex;
7377
+ flex-shrink: 0;
7378
+ align-items: center;
7379
+ gap: var(--spacing-3);
7380
+ }
7381
+
7382
+ /* ─── Step indicator (circle) ───────────────────────────── */
7383
+ .muka-progress-accordeon__indicator {
7384
+ width: 32px;
7385
+ height: 32px;
7386
+ flex-shrink: 0;
7387
+ border-radius: var(--border-radius-full);
7388
+ display: flex;
7389
+ align-items: center;
7390
+ justify-content: center;
7391
+ }
7392
+
7393
+ /* Past: dark accent-contrast circle with inverse checkmark */
7394
+ .muka-progress-accordeon__indicator--past {
7395
+ background-color: var(--alias-color-accent-contrast);
7396
+ color: var(--color-text-default-inverse);
7397
+ }
7398
+
7399
+ /* Current: accent circle with inverse bold number */
7400
+ .muka-progress-accordeon__indicator--current {
7401
+ background-color: var(--alias-color-accent-default);
7402
+ color: var(--color-text-default-inverse);
7403
+ }
7404
+
7405
+ /* Upcoming: sunken/muted circle with default-color number */
7406
+ .muka-progress-accordeon__indicator--upcoming {
7407
+ background-color: var(--color-surface-sunken);
7408
+ color: var(--color-text-default-default);
7409
+ }
7410
+
7411
+ .muka-progress-accordeon__check-icon {
7412
+ width: 20px;
7413
+ height: 20px;
7414
+ color: var(--color-text-default-inverse);
7415
+ }
7416
+
7417
+ .muka-progress-accordeon__number {
7418
+ font-family: var(--text-label-md-bold-fontFamily);
7419
+ font-weight: var(--text-label-md-bold-fontWeight);
7420
+ font-size: var(--text-label-md-bold-fontSize);
7421
+ line-height: var(--text-label-md-bold-lineHeight);
7422
+ text-align: center;
7423
+ user-select: none;
7424
+ }
7425
+
7426
+ /* Upcoming number is semibold (not bold) per Figma */
7427
+ .muka-progress-accordeon__indicator--upcoming .muka-progress-accordeon__number {
7428
+ font-family: var(--text-label-md-semibold-fontFamily);
7429
+ font-weight: var(--text-label-md-semibold-fontWeight);
7430
+ }
7431
+
7432
+ /* ─── Heading (responsive: heading/md on wide, heading/sm on narrow) ─────── */
7433
+ .muka-progress-accordeon__heading {
7434
+ flex: 1 0 0;
7435
+ min-width: 0;
7436
+ margin: 0;
7437
+ font-family: var(--text-heading-md-fontFamily);
7438
+ font-weight: var(--text-heading-md-fontWeight);
7439
+ font-size: var(--text-heading-md-fontSize);
7440
+ line-height: var(--text-heading-md-lineHeight);
7441
+ letter-spacing: var(--text-heading-md-letterSpacing);
7442
+ color: var(--color-text-default-default);
7443
+ }
7444
+
7445
+ /* ─── Description ────────────────────────────────────────── */
7446
+ /* Indented 48px (32px indicator + 16px gap) to align under the heading text */
7447
+ .muka-progress-accordeon__description {
7448
+ width: 100%;
7449
+ padding-left: 48px;
7450
+ font-family: var(--text-body-base-regular-fontFamily);
7451
+ font-weight: var(--text-body-base-regular-fontWeight);
7452
+ font-size: var(--text-body-base-regular-fontSize);
7453
+ line-height: var(--text-body-base-regular-lineHeight);
7454
+ color: var(--color-text-default-default);
7455
+ }
7456
+
7457
+ /* ─── Edit button ────────────────────────────────────────── */
7458
+ .muka-progress-accordeon__edit {
7459
+ flex-shrink: 0;
7460
+ }
7461
+
7462
+ /* Wide container shows the labelled button; the icon-only one is hidden */
7463
+ .muka-progress-accordeon__edit--narrow {
7464
+ display: none;
7465
+ }
7466
+
7467
+ /* ─── Content slot ───────────────────────────────────────── */
7468
+ .muka-progress-accordeon__slot {
7469
+ display: flex;
7470
+ flex-direction: column;
7471
+ align-items: stretch;
7472
+ width: 100%;
7473
+ }
7474
+
7475
+ /* ─── Collapse/expand animation (any expandable step) ──────
7476
+ Animates grid-template-rows 1fr ↔ 0fr so the panel (slot + actions) grows and
7477
+ shrinks to its intrinsic height. Opacity fades with the same duration.
7478
+ Under prefers-reduced-motion, --motion-duration-view is 0ms. */
7479
+ .muka-progress-accordeon__panel-wrapper {
7480
+ display: grid;
7481
+ grid-template-rows: 1fr;
7482
+ opacity: 1;
7483
+ transition:
7484
+ grid-template-rows var(--motion-duration-view) var(--motion-easing-enter),
7485
+ opacity var(--motion-duration-view) var(--motion-easing-enter);
7486
+ }
7487
+
7488
+ .muka-progress-accordeon__panel-wrapper--collapsed {
7489
+ grid-template-rows: 0fr;
7490
+ opacity: 0;
7491
+ transition:
7492
+ grid-template-rows var(--motion-duration-view) var(--motion-easing-exit),
7493
+ opacity calc(var(--motion-duration-view) * 0.6) var(--motion-easing-exit);
7494
+ }
7495
+
7496
+ /* The direct grid child clips and must have NO padding/border of its own —
7497
+ min-height:0 lets it shrink, and with no padding the 0fr track reaches a true
7498
+ 0 height (padding on the item would leave a residual gap when collapsed). */
7499
+ .muka-progress-accordeon__panel-clip {
7500
+ overflow: hidden;
7501
+ min-height: 0;
7502
+ }
7503
+
7504
+ /* Header↔content spacing + slot/actions gap live inside the clip so they
7505
+ collapse together with the panel. */
7506
+ .muka-progress-accordeon__panel {
7507
+ display: flex;
7508
+ flex-direction: column;
7509
+ align-items: stretch;
7510
+ gap: var(--spacing-6);
7511
+ padding-top: var(--spacing-4);
7512
+ width: 100%;
7513
+ }
7514
+
7515
+ /* ─── Action buttons (current state) ─────────────────────── */
7516
+ .muka-progress-accordeon__actions {
7517
+ display: flex;
7518
+ justify-content: flex-end;
7519
+ gap: var(--spacing-4);
7520
+ width: 100%;
7521
+ }
7522
+
7523
+ .muka-progress-accordeon__action {
7524
+ min-width: 160px;
7525
+ }
7526
+
7527
+ /* ─── Divider ────────────────────────────────────────────── */
7528
+ .muka-progress-accordeon__divider {
7529
+ width: 100%;
7530
+ }
7531
+
7532
+ /* ─── Responsive (narrow container) ──────────────────────── */
7533
+ @container (max-width: 480px) {
7534
+ /* Heading steps down to heading/sm. The 24px line-height is shorter than the
7535
+ 32px step indicator, so nudge the text down to keep a single line centred. */
7536
+ .muka-progress-accordeon__heading {
7537
+ font-size: var(--text-heading-sm-fontSize);
7538
+ line-height: var(--text-heading-sm-lineHeight);
7539
+ padding-top: var(--spacing-1);
7540
+ }
7541
+
7542
+ /* Edit button swaps to the icon-only variant */
7543
+ .muka-progress-accordeon__edit--wide {
7544
+ display: none;
7545
+ }
7546
+
7547
+ .muka-progress-accordeon__edit--narrow {
7548
+ display: inline-flex;
7549
+ }
7550
+
7551
+ /* Action buttons stretch to fill the row */
7552
+ .muka-progress-accordeon__actions {
7553
+ justify-content: stretch;
7554
+ }
7555
+
7556
+ .muka-progress-accordeon__action {
7557
+ flex: 1 0 0;
7558
+ min-width: 0;
7559
+ }
7560
+ }
7561
+
7562
+
7563
+ /* ProgressTracker */
7564
+ /* ProgressTracker Component Styles — Using Muka Design Tokens */
7565
+
7566
+ /* ─── Root ──────────────────────────────────────────────── */
7567
+ .muka-progress-tracker {
7568
+ width: 100%;
7569
+ }
7570
+
7571
+ .muka-progress-tracker--horizontal {
7572
+ padding-bottom: var(--spacing-7);
7573
+ }
7574
+
7575
+ /* Scrollable: the root scrolls sideways when the steps don't fit. The inline
7576
+ padding leaves room for the first and last labels, which hang past their
7577
+ indicators; the scrollbar stays hidden (touch and trackpad still scroll). */
7578
+ .muka-progress-tracker--scrollable {
7579
+ overflow-x: auto;
7580
+ overflow-y: hidden;
7323
7581
  -webkit-overflow-scrolling: touch;
7324
7582
  scrollbar-width: none;
7325
7583
  padding-inline: var(--spacing-12);
@@ -7866,264 +8124,6 @@ button.muka-progress-tracker__tab:focus-visible {
7866
8124
  }
7867
8125
 
7868
8126
 
7869
- /* ProgressAccordeon */
7870
- /* ProgressAccordeon Component Styles — Using Muka Design Tokens */
7871
-
7872
- /* ─── Root ──────────────────────────────────────────────── */
7873
- .muka-progress-accordeon {
7874
- container-type: inline-size;
7875
- display: flex;
7876
- flex-direction: column;
7877
- align-items: stretch;
7878
- width: 100%;
7879
- /* Top padding provides the vertical rhythm between stacked steps */
7880
- padding-top: var(--spacing-8);
7881
- }
7882
-
7883
- /* Per-state gap: content-bearing steps are tighter, header-only steps looser */
7884
- .muka-progress-accordeon--current,
7885
- .muka-progress-accordeon--current.muka-progress-accordeon--expanded,
7886
- .muka-progress-accordeon--past.muka-progress-accordeon--expanded,
7887
- .muka-progress-accordeon--upcoming.muka-progress-accordeon--expanded {
7888
- gap: var(--spacing-6);
7889
- }
7890
-
7891
- .muka-progress-accordeon--upcoming,
7892
- .muka-progress-accordeon--past.muka-progress-accordeon--collapsed,
7893
- .muka-progress-accordeon--upcoming.muka-progress-accordeon--collapsed,
7894
- .muka-progress-accordeon--current.muka-progress-accordeon--collapsed {
7895
- gap: var(--spacing-8);
7896
- }
7897
-
7898
- /* Collapsible steps group header + slot. The header↔content gap lives inside the
7899
- collapsing slot (as padding-top) so it collapses with the content, so the
7900
- body gap itself is 0. */
7901
- .muka-progress-accordeon__body {
7902
- display: flex;
7903
- flex-direction: column;
7904
- gap: 0;
7905
- width: 100%;
7906
- }
7907
-
7908
- /* ─── Header ─────────────────────────────────────────────── */
7909
- .muka-progress-accordeon__header {
7910
- display: flex;
7911
- flex-direction: column;
7912
- gap: var(--spacing-3);
7913
- width: 100%;
7914
- }
7915
-
7916
- .muka-progress-accordeon__header-row {
7917
- display: flex;
7918
- align-items: flex-start;
7919
- gap: var(--spacing-3);
7920
- width: 100%;
7921
- min-height: 40px;
7922
- }
7923
-
7924
- .muka-progress-accordeon__heading-group {
7925
- display: flex;
7926
- flex: 1 0 0;
7927
- min-width: 0;
7928
- align-items: flex-start;
7929
- gap: var(--spacing-4);
7930
- }
7931
-
7932
- /* Steps with header controls (edit / chevron) are 40px tall; nudge the heading
7933
- so a single line centres against the indicator + controls row. */
7934
- .muka-progress-accordeon:has(.muka-progress-accordeon__controls)
7935
- .muka-progress-accordeon__heading-group {
7936
- padding-top: var(--spacing-1);
7937
- }
7938
-
7939
- .muka-progress-accordeon__controls {
7940
- display: flex;
7941
- flex-shrink: 0;
7942
- align-items: center;
7943
- gap: var(--spacing-3);
7944
- }
7945
-
7946
- /* ─── Step indicator (circle) ───────────────────────────── */
7947
- .muka-progress-accordeon__indicator {
7948
- width: 32px;
7949
- height: 32px;
7950
- flex-shrink: 0;
7951
- border-radius: var(--border-radius-full);
7952
- display: flex;
7953
- align-items: center;
7954
- justify-content: center;
7955
- }
7956
-
7957
- /* Past: dark accent-contrast circle with inverse checkmark */
7958
- .muka-progress-accordeon__indicator--past {
7959
- background-color: var(--alias-color-accent-contrast);
7960
- color: var(--color-text-default-inverse);
7961
- }
7962
-
7963
- /* Current: accent circle with inverse bold number */
7964
- .muka-progress-accordeon__indicator--current {
7965
- background-color: var(--alias-color-accent-default);
7966
- color: var(--color-text-default-inverse);
7967
- }
7968
-
7969
- /* Upcoming: sunken/muted circle with default-color number */
7970
- .muka-progress-accordeon__indicator--upcoming {
7971
- background-color: var(--color-surface-sunken);
7972
- color: var(--color-text-default-default);
7973
- }
7974
-
7975
- .muka-progress-accordeon__check-icon {
7976
- width: 20px;
7977
- height: 20px;
7978
- color: var(--color-text-default-inverse);
7979
- }
7980
-
7981
- .muka-progress-accordeon__number {
7982
- font-family: var(--text-label-md-bold-fontFamily);
7983
- font-weight: var(--text-label-md-bold-fontWeight);
7984
- font-size: var(--text-label-md-bold-fontSize);
7985
- line-height: var(--text-label-md-bold-lineHeight);
7986
- text-align: center;
7987
- user-select: none;
7988
- }
7989
-
7990
- /* Upcoming number is semibold (not bold) per Figma */
7991
- .muka-progress-accordeon__indicator--upcoming .muka-progress-accordeon__number {
7992
- font-family: var(--text-label-md-semibold-fontFamily);
7993
- font-weight: var(--text-label-md-semibold-fontWeight);
7994
- }
7995
-
7996
- /* ─── Heading (responsive: heading/md on wide, heading/sm on narrow) ─────── */
7997
- .muka-progress-accordeon__heading {
7998
- flex: 1 0 0;
7999
- min-width: 0;
8000
- margin: 0;
8001
- font-family: var(--text-heading-md-fontFamily);
8002
- font-weight: var(--text-heading-md-fontWeight);
8003
- font-size: var(--text-heading-md-fontSize);
8004
- line-height: var(--text-heading-md-lineHeight);
8005
- letter-spacing: var(--text-heading-md-letterSpacing);
8006
- color: var(--color-text-default-default);
8007
- }
8008
-
8009
- /* ─── Description ────────────────────────────────────────── */
8010
- /* Indented 48px (32px indicator + 16px gap) to align under the heading text */
8011
- .muka-progress-accordeon__description {
8012
- width: 100%;
8013
- padding-left: 48px;
8014
- font-family: var(--text-body-base-regular-fontFamily);
8015
- font-weight: var(--text-body-base-regular-fontWeight);
8016
- font-size: var(--text-body-base-regular-fontSize);
8017
- line-height: var(--text-body-base-regular-lineHeight);
8018
- color: var(--color-text-default-default);
8019
- }
8020
-
8021
- /* ─── Edit button ────────────────────────────────────────── */
8022
- .muka-progress-accordeon__edit {
8023
- flex-shrink: 0;
8024
- }
8025
-
8026
- /* Wide container shows the labelled button; the icon-only one is hidden */
8027
- .muka-progress-accordeon__edit--narrow {
8028
- display: none;
8029
- }
8030
-
8031
- /* ─── Content slot ───────────────────────────────────────── */
8032
- .muka-progress-accordeon__slot {
8033
- display: flex;
8034
- flex-direction: column;
8035
- align-items: stretch;
8036
- width: 100%;
8037
- }
8038
-
8039
- /* ─── Collapse/expand animation (any expandable step) ──────
8040
- Animates grid-template-rows 1fr ↔ 0fr so the panel (slot + actions) grows and
8041
- shrinks to its intrinsic height. Opacity fades with the same duration.
8042
- Under prefers-reduced-motion, --motion-duration-view is 0ms. */
8043
- .muka-progress-accordeon__panel-wrapper {
8044
- display: grid;
8045
- grid-template-rows: 1fr;
8046
- opacity: 1;
8047
- transition:
8048
- grid-template-rows var(--motion-duration-view) var(--motion-easing-enter),
8049
- opacity var(--motion-duration-view) var(--motion-easing-enter);
8050
- }
8051
-
8052
- .muka-progress-accordeon__panel-wrapper--collapsed {
8053
- grid-template-rows: 0fr;
8054
- opacity: 0;
8055
- transition:
8056
- grid-template-rows var(--motion-duration-view) var(--motion-easing-exit),
8057
- opacity calc(var(--motion-duration-view) * 0.6) var(--motion-easing-exit);
8058
- }
8059
-
8060
- /* The direct grid child clips and must have NO padding/border of its own —
8061
- min-height:0 lets it shrink, and with no padding the 0fr track reaches a true
8062
- 0 height (padding on the item would leave a residual gap when collapsed). */
8063
- .muka-progress-accordeon__panel-clip {
8064
- overflow: hidden;
8065
- min-height: 0;
8066
- }
8067
-
8068
- /* Header↔content spacing + slot/actions gap live inside the clip so they
8069
- collapse together with the panel. */
8070
- .muka-progress-accordeon__panel {
8071
- display: flex;
8072
- flex-direction: column;
8073
- align-items: stretch;
8074
- gap: var(--spacing-6);
8075
- padding-top: var(--spacing-4);
8076
- width: 100%;
8077
- }
8078
-
8079
- /* ─── Action buttons (current state) ─────────────────────── */
8080
- .muka-progress-accordeon__actions {
8081
- display: flex;
8082
- justify-content: flex-end;
8083
- gap: var(--spacing-4);
8084
- width: 100%;
8085
- }
8086
-
8087
- .muka-progress-accordeon__action {
8088
- min-width: 160px;
8089
- }
8090
-
8091
- /* ─── Divider ────────────────────────────────────────────── */
8092
- .muka-progress-accordeon__divider {
8093
- width: 100%;
8094
- }
8095
-
8096
- /* ─── Responsive (narrow container) ──────────────────────── */
8097
- @container (max-width: 480px) {
8098
- /* Heading steps down to heading/sm. The 24px line-height is shorter than the
8099
- 32px step indicator, so nudge the text down to keep a single line centred. */
8100
- .muka-progress-accordeon__heading {
8101
- font-size: var(--text-heading-sm-fontSize);
8102
- line-height: var(--text-heading-sm-lineHeight);
8103
- padding-top: var(--spacing-1);
8104
- }
8105
-
8106
- /* Edit button swaps to the icon-only variant */
8107
- .muka-progress-accordeon__edit--wide {
8108
- display: none;
8109
- }
8110
-
8111
- .muka-progress-accordeon__edit--narrow {
8112
- display: inline-flex;
8113
- }
8114
-
8115
- /* Action buttons stretch to fill the row */
8116
- .muka-progress-accordeon__actions {
8117
- justify-content: stretch;
8118
- }
8119
-
8120
- .muka-progress-accordeon__action {
8121
- flex: 1 0 0;
8122
- min-width: 0;
8123
- }
8124
- }
8125
-
8126
-
8127
8127
  /* Progress */
8128
8128
  /* Progress Component Styles - Using Muka Design Tokens */
8129
8129
 
@@ -8410,37 +8410,6 @@ button.muka-progress-tracker__tab:focus-visible {
8410
8410
  }
8411
8411
 
8412
8412
 
8413
- /* Popover */
8414
- /* Popover Component Styles */
8415
-
8416
- .muka-popover__content {
8417
- background-color: var(--color-surface-level3);
8418
- border: var(--border-width-regular) solid var(--color-border-default);
8419
- border-radius: var(--radius-md);
8420
- padding: var(--spacing-4);
8421
- box-shadow: var(--shadow-level3);
8422
- max-width: 20rem;
8423
- z-index: 50;
8424
- animation: muka-popover-fade-in 150ms ease;
8425
- }
8426
-
8427
- @keyframes muka-popover-fade-in {
8428
- from {
8429
- opacity: 0;
8430
- transform: scale(0.96);
8431
- }
8432
- to {
8433
- opacity: 1;
8434
- transform: scale(1);
8435
- }
8436
- }
8437
-
8438
- /* Arrow */
8439
- .muka-popover__arrow {
8440
- fill: var(--color-surface-level3);
8441
- }
8442
-
8443
-
8444
8413
  /* PriceTag */
8445
8414
  /* PriceTag Component Styles - Using Muka Design Tokens */
8446
8415
 
@@ -8538,6 +8507,37 @@ button.muka-progress-tracker__tab:focus-visible {
8538
8507
  }
8539
8508
 
8540
8509
 
8510
+ /* Popover */
8511
+ /* Popover Component Styles */
8512
+
8513
+ .muka-popover__content {
8514
+ background-color: var(--color-surface-level3);
8515
+ border: var(--border-width-regular) solid var(--color-border-default);
8516
+ border-radius: var(--radius-md);
8517
+ padding: var(--spacing-4);
8518
+ box-shadow: var(--shadow-level3);
8519
+ max-width: 20rem;
8520
+ z-index: 50;
8521
+ animation: muka-popover-fade-in 150ms ease;
8522
+ }
8523
+
8524
+ @keyframes muka-popover-fade-in {
8525
+ from {
8526
+ opacity: 0;
8527
+ transform: scale(0.96);
8528
+ }
8529
+ to {
8530
+ opacity: 1;
8531
+ transform: scale(1);
8532
+ }
8533
+ }
8534
+
8535
+ /* Arrow */
8536
+ .muka-popover__arrow {
8537
+ fill: var(--color-surface-level3);
8538
+ }
8539
+
8540
+
8541
8541
  /* PlanningGantt */
8542
8542
  /* PlanningGantt (MUK-105) — one week per page, never scrolls horizontally. */
8543
8543
 
@@ -8935,6 +8935,103 @@ button.muka-progress-tracker__tab:focus-visible {
8935
8935
  }
8936
8936
 
8937
8937
 
8938
+ /* PieChart */
8939
+ /* PieChart Component Styles - Using Muka Design Tokens */
8940
+
8941
+ .muka-piechart {
8942
+ display: inline-flex;
8943
+ align-items: center;
8944
+ gap: var(--spacing-4);
8945
+ }
8946
+
8947
+ /* Legend layout */
8948
+ .muka-piechart--legend-right {
8949
+ flex-direction: row;
8950
+ }
8951
+
8952
+ .muka-piechart--legend-bottom {
8953
+ flex-direction: column;
8954
+ }
8955
+
8956
+ /* ========================================
8957
+ CHART
8958
+ ======================================== */
8959
+
8960
+ .muka-piechart__chart {
8961
+ position: relative;
8962
+ flex-shrink: 0;
8963
+ }
8964
+
8965
+ .muka-piechart__chart--sm {
8966
+ width: var(--piechart-size-diameter-sm);
8967
+ height: var(--piechart-size-diameter-sm);
8968
+ }
8969
+
8970
+ .muka-piechart__chart--md {
8971
+ width: var(--piechart-size-diameter-md);
8972
+ height: var(--piechart-size-diameter-md);
8973
+ }
8974
+
8975
+ .muka-piechart__chart--lg {
8976
+ width: var(--piechart-size-diameter-lg);
8977
+ height: var(--piechart-size-diameter-lg);
8978
+ }
8979
+
8980
+ .muka-piechart__svg {
8981
+ display: block;
8982
+ width: 100%;
8983
+ height: 100%;
8984
+ /* Start slices at 12 o'clock instead of 3 o'clock */
8985
+ transform: rotate(-90deg);
8986
+ }
8987
+
8988
+ .muka-piechart__track {
8989
+ fill: none;
8990
+ stroke: var(--piechart-color-track);
8991
+ }
8992
+
8993
+ .muka-piechart__segment {
8994
+ fill: none;
8995
+ }
8996
+
8997
+ /* ========================================
8998
+ LEGEND
8999
+ ======================================== */
9000
+
9001
+ .muka-piechart__legend {
9002
+ list-style: none;
9003
+ margin: 0;
9004
+ padding: 0;
9005
+ display: flex;
9006
+ flex-direction: column;
9007
+ gap: var(--spacing-1);
9008
+ }
9009
+
9010
+ .muka-piechart__legend-item {
9011
+ display: flex;
9012
+ align-items: center;
9013
+ gap: var(--spacing-2);
9014
+ font-family: var(--text-body-sm-regular-fontFamily);
9015
+ font-weight: var(--text-body-sm-regular-fontWeight);
9016
+ font-size: var(--text-body-sm-regular-fontSize);
9017
+ line-height: var(--text-body-sm-regular-lineHeight);
9018
+ color: var(--color-text-default-default);
9019
+ }
9020
+
9021
+ .muka-piechart__swatch {
9022
+ flex-shrink: 0;
9023
+ width: var(--spacing-3);
9024
+ height: var(--spacing-3);
9025
+ border-radius: var(--border-radius-sm);
9026
+ }
9027
+
9028
+ .muka-piechart__legend-value {
9029
+ margin-left: auto;
9030
+ padding-left: var(--spacing-2);
9031
+ color: var(--color-text-subtle-default);
9032
+ }
9033
+
9034
+
8938
9035
  /* PhotoUploader */
8939
9036
  /* PhotoUploader Component Styles - Using Muka Design Tokens */
8940
9037
 
@@ -9072,103 +9169,6 @@ button.muka-progress-tracker__tab:focus-visible {
9072
9169
  }
9073
9170
 
9074
9171
 
9075
- /* PieChart */
9076
- /* PieChart Component Styles - Using Muka Design Tokens */
9077
-
9078
- .muka-piechart {
9079
- display: inline-flex;
9080
- align-items: center;
9081
- gap: var(--spacing-4);
9082
- }
9083
-
9084
- /* Legend layout */
9085
- .muka-piechart--legend-right {
9086
- flex-direction: row;
9087
- }
9088
-
9089
- .muka-piechart--legend-bottom {
9090
- flex-direction: column;
9091
- }
9092
-
9093
- /* ========================================
9094
- CHART
9095
- ======================================== */
9096
-
9097
- .muka-piechart__chart {
9098
- position: relative;
9099
- flex-shrink: 0;
9100
- }
9101
-
9102
- .muka-piechart__chart--sm {
9103
- width: var(--piechart-size-diameter-sm);
9104
- height: var(--piechart-size-diameter-sm);
9105
- }
9106
-
9107
- .muka-piechart__chart--md {
9108
- width: var(--piechart-size-diameter-md);
9109
- height: var(--piechart-size-diameter-md);
9110
- }
9111
-
9112
- .muka-piechart__chart--lg {
9113
- width: var(--piechart-size-diameter-lg);
9114
- height: var(--piechart-size-diameter-lg);
9115
- }
9116
-
9117
- .muka-piechart__svg {
9118
- display: block;
9119
- width: 100%;
9120
- height: 100%;
9121
- /* Start slices at 12 o'clock instead of 3 o'clock */
9122
- transform: rotate(-90deg);
9123
- }
9124
-
9125
- .muka-piechart__track {
9126
- fill: none;
9127
- stroke: var(--piechart-color-track);
9128
- }
9129
-
9130
- .muka-piechart__segment {
9131
- fill: none;
9132
- }
9133
-
9134
- /* ========================================
9135
- LEGEND
9136
- ======================================== */
9137
-
9138
- .muka-piechart__legend {
9139
- list-style: none;
9140
- margin: 0;
9141
- padding: 0;
9142
- display: flex;
9143
- flex-direction: column;
9144
- gap: var(--spacing-1);
9145
- }
9146
-
9147
- .muka-piechart__legend-item {
9148
- display: flex;
9149
- align-items: center;
9150
- gap: var(--spacing-2);
9151
- font-family: var(--text-body-sm-regular-fontFamily);
9152
- font-weight: var(--text-body-sm-regular-fontWeight);
9153
- font-size: var(--text-body-sm-regular-fontSize);
9154
- line-height: var(--text-body-sm-regular-lineHeight);
9155
- color: var(--color-text-default-default);
9156
- }
9157
-
9158
- .muka-piechart__swatch {
9159
- flex-shrink: 0;
9160
- width: var(--spacing-3);
9161
- height: var(--spacing-3);
9162
- border-radius: var(--border-radius-sm);
9163
- }
9164
-
9165
- .muka-piechart__legend-value {
9166
- margin-left: auto;
9167
- padding-left: var(--spacing-2);
9168
- color: var(--color-text-subtle-default);
9169
- }
9170
-
9171
-
9172
9172
  /* PhotoDraftStrip */
9173
9173
  /* PhotoDraftStrip Component Styles */
9174
9174
 
@@ -10475,6 +10475,47 @@ li.muka-listitem {
10475
10475
  }
10476
10476
 
10477
10477
 
10478
+ /* Label */
10479
+ /* Label Component Styles - Using Muka Design Tokens */
10480
+
10481
+ .muka-label {
10482
+ display: inline-flex;
10483
+ align-items: center;
10484
+ color: var(--color-text-default-default);
10485
+ cursor: pointer;
10486
+ }
10487
+
10488
+ .muka-label--sm {
10489
+ font-family: var(--text-label-sm-semibold-fontFamily);
10490
+ font-weight: var(--text-label-sm-semibold-fontWeight);
10491
+ font-size: var(--text-label-sm-semibold-fontSize);
10492
+ line-height: var(--text-label-sm-semibold-lineHeight);
10493
+ }
10494
+
10495
+ .muka-label--md {
10496
+ font-family: var(--text-label-md-semibold-fontFamily);
10497
+ font-weight: var(--text-label-md-semibold-fontWeight);
10498
+ font-size: var(--text-label-md-semibold-fontSize);
10499
+ line-height: var(--text-label-md-semibold-lineHeight);
10500
+ }
10501
+
10502
+ .muka-label--lg {
10503
+ font-family: var(--text-label-lg-semibold-fontFamily);
10504
+ font-weight: var(--text-label-lg-semibold-fontWeight);
10505
+ font-size: var(--text-label-lg-semibold-fontSize);
10506
+ line-height: var(--text-label-lg-semibold-lineHeight);
10507
+ }
10508
+
10509
+ .muka-label--disabled {
10510
+ color: var(--color-text-subtle-default);
10511
+ cursor: not-allowed;
10512
+ }
10513
+
10514
+ .muka-label__required {
10515
+ color: var(--color-state-error-default);
10516
+ }
10517
+
10518
+
10478
10519
  /* LicensePlateInput */
10479
10520
  /* LicensePlateInput — Dutch RDW-style plate input
10480
10521
  *
@@ -10668,47 +10709,6 @@ li.muka-listitem {
10668
10709
  }
10669
10710
 
10670
10711
 
10671
- /* Label */
10672
- /* Label Component Styles - Using Muka Design Tokens */
10673
-
10674
- .muka-label {
10675
- display: inline-flex;
10676
- align-items: center;
10677
- color: var(--color-text-default-default);
10678
- cursor: pointer;
10679
- }
10680
-
10681
- .muka-label--sm {
10682
- font-family: var(--text-label-sm-semibold-fontFamily);
10683
- font-weight: var(--text-label-sm-semibold-fontWeight);
10684
- font-size: var(--text-label-sm-semibold-fontSize);
10685
- line-height: var(--text-label-sm-semibold-lineHeight);
10686
- }
10687
-
10688
- .muka-label--md {
10689
- font-family: var(--text-label-md-semibold-fontFamily);
10690
- font-weight: var(--text-label-md-semibold-fontWeight);
10691
- font-size: var(--text-label-md-semibold-fontSize);
10692
- line-height: var(--text-label-md-semibold-lineHeight);
10693
- }
10694
-
10695
- .muka-label--lg {
10696
- font-family: var(--text-label-lg-semibold-fontFamily);
10697
- font-weight: var(--text-label-lg-semibold-fontWeight);
10698
- font-size: var(--text-label-lg-semibold-fontSize);
10699
- line-height: var(--text-label-lg-semibold-lineHeight);
10700
- }
10701
-
10702
- .muka-label--disabled {
10703
- color: var(--color-text-subtle-default);
10704
- cursor: not-allowed;
10705
- }
10706
-
10707
- .muka-label__required {
10708
- color: var(--color-state-error-default);
10709
- }
10710
-
10711
-
10712
10712
  /* InputCounter */
10713
10713
  /* InputCounter — numeric field + joined decrement/increment buttons.
10714
10714
  Label, helper and error text reuse Input.css (../Input/Input.css).
@@ -12973,1173 +12973,1331 @@ li.muka-listitem {
12973
12973
  }
12974
12974
 
12975
12975
 
12976
- /* DataTable */
12977
- /* DataTable Component Styles - Using Muka Design Tokens */
12976
+ /* DataPieChart */
12977
+ /* DataPieChart Component Styles - Using Muka Design Tokens */
12978
12978
 
12979
- .muka-data-table-wrapper {
12980
- width: 100%;
12981
- overflow-x: auto;
12982
- -webkit-overflow-scrolling: touch;
12979
+ .muka-data-pie-chart {
12980
+ position: relative;
12981
+ display: inline-flex;
12982
+ align-items: center;
12983
+ justify-content: center;
12984
+ flex-shrink: 0;
12983
12985
  }
12984
12986
 
12985
- .muka-data-table {
12986
- /* Density-driven cell padding (overridden per size below). */
12987
- --dt-pad-x: var(--datatable-cell-padding-x-md);
12988
- --dt-pad-y: var(--datatable-cell-padding-y-md);
12989
-
12987
+ .muka-data-pie-chart__svg {
12988
+ display: block;
12990
12989
  width: 100%;
12991
- border-collapse: collapse;
12992
- border-spacing: 0;
12993
- /* auto layout so per-column min/max widths are honored and unsized columns flex */
12994
- table-layout: auto;
12995
- background-color: var(--datatable-row-background);
12996
- color: var(--datatable-row-foreground);
12990
+ height: 100%;
12991
+ /* Start the segment at 12 o'clock instead of 3 o'clock */
12992
+ transform: rotate(-90deg);
12997
12993
  }
12998
12994
 
12999
- .muka-data-table--size-sm {
13000
- --dt-pad-x: var(--datatable-cell-padding-x-sm);
13001
- --dt-pad-y: var(--datatable-cell-padding-y-sm);
12995
+ .muka-data-pie-chart__track {
12996
+ fill: none;
13002
12997
  }
13003
12998
 
13004
- .muka-data-table--size-lg {
13005
- --dt-pad-x: var(--datatable-cell-padding-x-lg);
13006
- --dt-pad-y: var(--datatable-cell-padding-y-lg);
12999
+ .muka-data-pie-chart__segment {
13000
+ fill: none;
13001
+ /* Subtle lift on the filled segment, matching the Figma elevation */
13002
+ filter: drop-shadow(0 2px 4px var(--color-black-alpha-5, rgba(0, 0, 0, 0.05)));
13003
+ /* Butt caps keep the always-rendered 0% arc invisible (round caps would draw a dot) */
13004
+ stroke-linecap: butt;
13005
+ /* view duration (300ms) reads at the 24px size; tokens zero it for reduced motion */
13006
+ transition: stroke-dasharray var(--motion-duration-view) var(--motion-easing-default);
13007
13007
  }
13008
13008
 
13009
- .muka-data-table__caption {
13010
- padding: var(--dt-pad-y) var(--dt-pad-x);
13011
- font-family: var(--text-body-base-bold-fontFamily);
13012
- font-weight: var(--text-body-base-bold-fontWeight);
13013
- font-size: var(--text-body-base-bold-fontSize);
13014
- line-height: var(--text-body-base-bold-lineHeight);
13015
- text-align: left;
13016
- caption-side: top;
13009
+ /* ─── Indeterminate (spinner) ─────────────────────────── */
13010
+ /* A masked ring filled with an angular (conic) gradient that rotates. The mask
13011
+ band matches the donut geometry (r=40, strokeWidth=16 → 64%–96% of radius) so
13012
+ it swaps seamlessly with the value-based progress donut. */
13013
+ .muka-data-pie-chart__spinner-track,
13014
+ .muka-data-pie-chart__spinner {
13015
+ position: absolute;
13016
+ inset: 0;
13017
+ border-radius: 50%;
13018
+ -webkit-mask: radial-gradient(farthest-side, transparent 63%, #000 65%, #000 95%, transparent 97%);
13019
+ mask: radial-gradient(farthest-side, transparent 63%, #000 65%, #000 95%, transparent 97%);
13017
13020
  }
13018
13021
 
13019
- /* ========================================
13020
- HEADER
13021
- ======================================== */
13022
+ .muka-data-pie-chart__spinner {
13023
+ animation: muka-data-pie-chart-spin 0.9s linear infinite;
13024
+ }
13022
13025
 
13023
- .muka-data-table__head {
13024
- border-bottom: var(--border-width-regular, 1px) solid var(--datatable-header-border);
13026
+ @keyframes muka-data-pie-chart-spin {
13027
+ to {
13028
+ transform: rotate(360deg);
13029
+ }
13025
13030
  }
13026
13031
 
13027
- .muka-data-table__th {
13028
- background-color: var(--datatable-header-background);
13029
- padding: var(--datatable-cell-padding-y-sm) var(--dt-pad-x);
13032
+ @media (prefers-reduced-motion: reduce) {
13033
+ .muka-data-pie-chart__spinner {
13034
+ animation-duration: 2.5s;
13035
+ }
13036
+ }
13037
+
13038
+ .muka-data-pie-chart__value {
13039
+ position: absolute;
13040
+ inset: 0;
13041
+ display: flex;
13042
+ align-items: center;
13043
+ justify-content: center;
13030
13044
  font-family: var(--text-body-base-bold-fontFamily);
13031
13045
  font-weight: var(--text-body-base-bold-fontWeight);
13032
13046
  font-size: var(--text-body-base-bold-fontSize);
13033
13047
  line-height: var(--text-body-base-bold-lineHeight);
13034
- color: var(--datatable-header-foreground);
13035
- vertical-align: middle;
13036
- text-align: left;
13048
+ color: var(--color-text-default-default);
13037
13049
  }
13038
13050
 
13039
- .muka-data-table__th-label {
13040
- display: flex;
13041
- align-items: center;
13042
- min-height: var(--datatable-cell-min-height); /* 32px slot — matches Figma header cell height */
13051
+
13052
+ /* Container */
13053
+ /* Container Component - Layout tokens (container.max-width, container.gap) */
13054
+
13055
+ .muka-container {
13056
+ box-sizing: border-box;
13057
+ width: 100%;
13058
+ margin-inline: auto;
13043
13059
  }
13044
13060
 
13045
- /* ========================================
13046
- BODY
13047
- ======================================== */
13061
+ /* Max-width variants */
13062
+ .muka-container--max-width-small {
13063
+ max-width: var(--container-max-width-small);
13064
+ }
13048
13065
 
13049
- .muka-data-table__row {
13050
- border-bottom: var(--border-width-regular, 1px) solid var(--datatable-row-border);
13051
- transition: background-color 0.15s ease;
13066
+ .muka-container--max-width-medium {
13067
+ max-width: var(--container-max-width-medium);
13052
13068
  }
13053
13069
 
13054
- /* Last body row: no bottom border (matches Table; avoids a double line at the table edge). */
13055
- .muka-data-table__body .muka-data-table__row:last-child {
13056
- border-bottom: none;
13070
+ .muka-container--max-width-large {
13071
+ max-width: var(--container-max-width-large);
13057
13072
  }
13058
13073
 
13059
- .muka-data-table__row:not(.muka-data-table__row--empty):not(.muka-data-table__row--selected):hover {
13060
- background-color: var(--datatable-row-hover-background);
13074
+ .muka-container--max-width-xlarge {
13075
+ max-width: var(--container-max-width-xlarge);
13061
13076
  }
13062
13077
 
13063
- /* Selected rows keep their tint, including on hover. */
13064
- .muka-data-table__row--selected,
13065
- .muka-data-table__row--selected:hover {
13066
- background-color: var(--datatable-row-selected-background);
13078
+ /* No gap — max-width only, no flex */
13079
+ .muka-container--gap-none {
13080
+ /* block layout by default */
13067
13081
  }
13068
13082
 
13069
- .muka-data-table__td {
13070
- padding: var(--dt-pad-y) var(--dt-pad-x);
13071
- font-family: var(--text-body-base-regular-fontFamily);
13072
- font-weight: var(--text-body-base-regular-fontWeight);
13073
- font-size: var(--text-body-base-regular-fontSize);
13074
- line-height: var(--text-body-base-regular-lineHeight);
13075
- color: var(--datatable-row-foreground);
13076
- vertical-align: middle;
13083
+ /* Gap variants — flex column with token gap */
13084
+ .muka-container--gap-compact {
13085
+ display: flex;
13086
+ flex-direction: column;
13087
+ gap: var(--container-gap-compact);
13077
13088
  }
13078
13089
 
13079
- .muka-data-table__cell-content {
13090
+ .muka-container--gap-default {
13080
13091
  display: flex;
13081
- align-items: center;
13082
- min-height: var(--datatable-cell-min-height); /* 32px slot — matches Figma body cell height */
13083
- word-break: break-word;
13092
+ flex-direction: column;
13093
+ gap: var(--container-gap-default);
13084
13094
  }
13085
13095
 
13086
- .muka-data-table__row--empty .muka-data-table__cell-content {
13087
- justify-content: center;
13088
- color: var(--color-text-subtle-default);
13096
+ .muka-container--gap-spacious {
13097
+ display: flex;
13098
+ flex-direction: column;
13099
+ gap: var(--container-gap-spacious);
13089
13100
  }
13090
13101
 
13091
- /* ========================================
13092
- BADGES — always the small (sm) scale
13093
- ======================================== */
13094
13102
 
13095
- /* Any Badge inside a DataTable renders at the small scale regardless of the
13096
- `size` prop passed to it — status pills stay compact and consistent across
13097
- every table density. Enforced here so callers can't accidentally scale them
13098
- up. Overrides the `.muka-badge--md`/`--lg` size rules by carrying a higher
13099
- specificity (2–3 classes vs. 1–2), independent of stylesheet import order. */
13100
- .muka-data-table .muka-badge {
13101
- height: var(--badge-size-height-sm);
13102
- gap: var(--badge-gap-sm);
13103
- padding: 0 var(--badge-padding-label-sm);
13104
- font-family: var(--text-label-sm-regular-fontFamily);
13105
- font-weight: var(--text-label-sm-regular-fontWeight);
13106
- font-size: var(--text-label-sm-regular-fontSize);
13107
- line-height: var(--text-label-sm-regular-lineHeight);
13108
- }
13109
-
13110
- /* Match the sm leading padding when a leading icon or dot is present. */
13111
- .muka-data-table .muka-badge.muka-badge--has-icon,
13112
- .muka-data-table .muka-badge.muka-badge--has-dot {
13113
- padding-left: var(--badge-padding-leading-sm);
13114
- }
13115
-
13116
- /* Icon and dot slots follow the sm scale too. */
13117
- .muka-data-table .muka-badge .muka-badge__icon {
13118
- width: var(--icon-size-xs);
13119
- height: var(--icon-size-xs);
13120
- }
13103
+ /* Combobox */
13104
+ /* Combobox — Figma Input Combobox (free-input chips + suggestion Menu) */
13121
13105
 
13122
- .muka-data-table .muka-badge .muka-badge__dot {
13123
- width: var(--badge-size-dot-sm);
13124
- height: var(--badge-size-dot-sm);
13106
+ .muka-combobox {
13107
+ display: inline-flex;
13108
+ flex-direction: column;
13109
+ gap: var(--spacing-2);
13110
+ min-width: 200px;
13125
13111
  }
13126
13112
 
13127
- /* ========================================
13128
- ALIGNMENT
13129
- ======================================== */
13130
-
13131
- .muka-data-table__th--center,
13132
- .muka-data-table__td--center {
13133
- text-align: center;
13113
+ .muka-combobox--full-width {
13114
+ width: 100%;
13134
13115
  }
13135
13116
 
13136
- .muka-data-table__th--center .muka-data-table__th-label,
13137
- .muka-data-table__th--center .muka-data-table__sort-button,
13138
- .muka-data-table__td--center .muka-data-table__cell-content {
13139
- justify-content: center;
13117
+ .muka-combobox__label {
13118
+ color: var(--color-text-default-default);
13119
+ cursor: pointer;
13140
13120
  }
13141
13121
 
13142
- .muka-data-table__th--right,
13143
- .muka-data-table__td--right {
13144
- text-align: right;
13122
+ .muka-combobox__label--sm {
13123
+ font-family: var(--text-label-sm-semibold-fontFamily);
13124
+ font-weight: var(--text-label-sm-semibold-fontWeight);
13125
+ font-size: var(--text-label-sm-semibold-fontSize);
13126
+ line-height: var(--text-label-sm-semibold-lineHeight);
13145
13127
  }
13146
13128
 
13147
- .muka-data-table__th--right .muka-data-table__th-label,
13148
- .muka-data-table__th--right .muka-data-table__sort-button,
13149
- .muka-data-table__td--right .muka-data-table__cell-content {
13150
- justify-content: flex-end;
13129
+ .muka-combobox__label--md {
13130
+ font-family: var(--text-label-md-semibold-fontFamily);
13131
+ font-weight: var(--text-label-md-semibold-fontWeight);
13132
+ font-size: var(--text-label-md-semibold-fontSize);
13133
+ line-height: var(--text-label-md-semibold-lineHeight);
13151
13134
  }
13152
13135
 
13153
- /* ========================================
13154
- COLUMN DIVIDERS (vertical)
13155
- ======================================== */
13156
-
13157
- .muka-data-table--column-dividers .muka-data-table__th:not(:last-child),
13158
- .muka-data-table--column-dividers .muka-data-table__td:not(:last-child) {
13159
- border-right: var(--border-width-regular, 1px) solid var(--datatable-divider-color);
13136
+ .muka-combobox__label--lg {
13137
+ font-family: var(--text-label-lg-semibold-fontFamily);
13138
+ font-weight: var(--text-label-lg-semibold-fontWeight);
13139
+ font-size: var(--text-label-lg-semibold-fontSize);
13140
+ line-height: var(--text-label-lg-semibold-lineHeight);
13160
13141
  }
13161
13142
 
13162
- /* ========================================
13163
- SORTING
13164
- ======================================== */
13165
-
13166
- .muka-data-table__sort-button {
13143
+ .muka-combobox__field {
13167
13144
  display: flex;
13168
13145
  align-items: center;
13169
- gap: var(--spacing-1);
13170
13146
  width: 100%;
13171
- min-height: var(--datatable-cell-min-height);
13172
- padding: 0;
13173
- margin: 0;
13174
- border: 0;
13175
- background: none;
13176
- font: inherit;
13177
- color: inherit;
13178
- text-align: inherit;
13179
- cursor: pointer;
13180
- user-select: none;
13181
- border-radius: var(--border-radius-md, 8px);
13147
+ position: relative;
13148
+ isolation: isolate;
13149
+ box-sizing: border-box;
13150
+ background-color: var(--input-field-color-default-background);
13151
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
13152
+ border-radius: var(--input-field-radius-lg);
13153
+ padding: var(--spacing-2);
13154
+ cursor: text;
13155
+ transition: border-color 0.12s ease, background-color 0.12s ease;
13182
13156
  }
13183
13157
 
13184
- .muka-data-table__sort-button:focus-visible {
13185
- outline: 2px solid var(--datatable-focus-ring);
13186
- outline-offset: 2px;
13158
+ .muka-combobox__field::after {
13159
+ content: '';
13160
+ position: absolute;
13161
+ inset: 0;
13162
+ border-radius: inherit;
13163
+ box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.08);
13164
+ pointer-events: none;
13187
13165
  }
13188
13166
 
13189
- /* The chevron only renders on the active sort column, so it's always full-strength. */
13190
- .muka-data-table__sort-icon {
13191
- display: inline-flex;
13192
- flex-shrink: 0;
13167
+ .muka-combobox__field--sm {
13168
+ min-height: var(--input-field-height-sm);
13169
+ border-radius: var(--input-field-radius-sm);
13193
13170
  }
13194
13171
 
13195
- /* ========================================
13196
- INTERACTIVE ROWS (clickable / link)
13197
- ======================================== */
13198
-
13199
- .muka-data-table__row--interactive {
13200
- cursor: pointer;
13201
- /* anchor for the stretched link overlay */
13202
- position: relative;
13172
+ .muka-combobox__field--md {
13173
+ min-height: var(--input-field-height-default);
13174
+ border-radius: var(--input-field-radius-md);
13203
13175
  }
13204
13176
 
13205
- .muka-data-table__row--interactive:focus-visible {
13206
- outline: 2px solid var(--datatable-focus-ring);
13207
- outline-offset: -2px;
13177
+ .muka-combobox__field--lg {
13178
+ min-height: var(--input-field-height-lg);
13179
+ border-radius: var(--input-field-radius-lg);
13208
13180
  }
13209
13181
 
13210
- .muka-data-table__row--interactive:active {
13211
- background-color: var(--datatable-row-pressed-background);
13182
+ .muka-combobox__field--focused:not(.muka-combobox__field--disabled) {
13183
+ border-width: var(--border-width-bold);
13184
+ border-color: var(--input-field-color-focus-border);
13185
+ background-color: var(--input-field-color-focus-background);
13186
+ padding: calc(var(--spacing-2) - 1px);
13212
13187
  }
13213
13188
 
13214
- /* Link rows: the first-cell anchor stretches to cover the whole row. */
13215
- .muka-data-table__row-link {
13216
- color: inherit;
13217
- text-decoration: none;
13189
+ .muka-combobox__field--error:not(.muka-combobox__field--disabled) {
13190
+ border-color: var(--color-state-error-contrast);
13218
13191
  }
13219
13192
 
13220
- .muka-data-table__row-link::after {
13221
- content: '';
13222
- position: absolute;
13223
- inset: 0;
13224
- z-index: 0;
13193
+ .muka-combobox__field--disabled {
13194
+ opacity: 0.5;
13195
+ cursor: not-allowed;
13225
13196
  }
13226
13197
 
13227
- .muka-data-table__row--link:hover {
13228
- background-color: var(--datatable-row-hover-background);
13198
+ .muka-combobox__field--multiline {
13199
+ align-items: flex-start;
13200
+ min-height: 7rem;
13229
13201
  }
13230
13202
 
13231
- .muka-data-table__row--link .muka-data-table__row-link:focus-visible {
13232
- outline: 2px solid var(--datatable-focus-ring);
13233
- outline-offset: -2px;
13203
+ .muka-combobox__chips {
13204
+ display: flex;
13205
+ flex: 1 1 auto;
13206
+ flex-wrap: wrap;
13207
+ gap: var(--spacing-2);
13208
+ align-items: center;
13209
+ min-width: 0;
13210
+ width: 100%;
13211
+ position: relative;
13212
+ z-index: 1;
13234
13213
  }
13235
13214
 
13236
- /* Disabled rows */
13237
- .muka-data-table__row--disabled {
13238
- cursor: default;
13239
- color: var(--color-text-muted-default);
13215
+ .muka-combobox__input {
13216
+ flex: 1 1 5rem;
13217
+ min-width: 5rem;
13218
+ min-height: 2rem;
13219
+ margin: 0;
13220
+ padding: 0 var(--spacing-1);
13221
+ border: none;
13222
+ outline: none;
13223
+ background: transparent;
13224
+ color: var(--input-field-color-default-foreground);
13225
+ caret-color: var(--input-field-color-default-foreground);
13226
+ font-family: var(--text-label-md-regular-fontFamily);
13227
+ font-size: var(--text-label-md-regular-fontSize);
13228
+ font-weight: var(--text-label-md-regular-fontWeight);
13229
+ line-height: var(--text-label-md-regular-lineHeight);
13240
13230
  }
13241
13231
 
13242
- .muka-data-table__row--disabled .muka-data-table__td {
13243
- color: var(--color-text-muted-default);
13232
+ .muka-combobox__input::placeholder {
13233
+ color: var(--color-text-subtle-default);
13244
13234
  }
13245
13235
 
13246
- /* ========================================
13247
- TRAILING ACTION COLUMN
13248
- ======================================== */
13249
-
13250
- /* Hug: the trailing action column shrinks to its content, so a text-label
13251
- button ("View") gets exactly the width it needs and an icon-only button
13252
- stays tight. `width: 1%` + `nowrap` is the classic auto-table hug. */
13253
- .muka-data-table__col--action {
13254
- width: 0;
13236
+ .muka-combobox__helper {
13237
+ margin: 0;
13238
+ color: var(--color-text-subtle-default);
13239
+ font-family: var(--text-label-sm-regular-fontFamily);
13240
+ font-size: var(--text-label-sm-regular-fontSize);
13241
+ font-weight: var(--text-label-sm-regular-fontWeight);
13242
+ line-height: var(--text-label-sm-regular-lineHeight);
13255
13243
  }
13256
13244
 
13257
- .muka-data-table__th--action,
13258
- .muka-data-table__td--action {
13259
- width: 1%;
13260
- white-space: nowrap;
13261
- padding-left: var(--spacing-2);
13262
- padding-right: var(--spacing-2);
13263
- text-align: right;
13264
- /* Sit above the row link overlay so the action stays independently clickable. */
13265
- position: relative;
13266
- z-index: 1;
13245
+ .muka-combobox__error {
13246
+ margin: 0;
13247
+ color: var(--color-state-error-default);
13248
+ font-family: var(--text-label-sm-regular-fontFamily);
13249
+ font-size: var(--text-label-sm-regular-fontSize);
13250
+ font-weight: var(--text-label-sm-regular-fontWeight);
13251
+ line-height: var(--text-label-sm-regular-lineHeight);
13267
13252
  }
13268
13253
 
13269
- .muka-data-table__action-content {
13270
- justify-content: flex-end;
13254
+ .muka-combobox__menu-anchor {
13255
+ position: absolute;
13256
+ inset: 0;
13257
+ z-index: 0;
13258
+ width: 100%;
13259
+ height: 100%;
13260
+ margin: 0;
13261
+ padding: 0;
13262
+ border: none;
13263
+ background: transparent;
13264
+ pointer-events: none;
13265
+ opacity: 0;
13271
13266
  }
13272
13267
 
13273
- /* Visually-hidden-friendly empty header slot keeps the row height consistent. */
13274
- .muka-data-table__action-header:empty {
13275
- min-height: var(--datatable-cell-min-height);
13268
+ .muka-combobox__menu {
13269
+ /* Prefer Menu token min-width (280px); may exceed the field when left-aligned. */
13270
+ min-width: var(--menu-content-min-width);
13271
+ width: max-content;
13272
+ max-width: min(100vw - 2rem, 24rem);
13276
13273
  }
13277
13274
 
13278
- /* ========================================
13279
- SELECTION — leading checkbox column
13280
- ======================================== */
13281
13275
 
13282
- .muka-data-table__col--select {
13283
- width: var(--datatable-selection-column-width);
13276
+ /* ChipSelectGroup */
13277
+ /* ChipSelectGroup — wrapping row of selectable chips (experimental) */
13278
+ .muka-chip-select-group {
13279
+ display: flex;
13280
+ flex-wrap: wrap;
13281
+ gap: var(--spacing-2);
13284
13282
  }
13285
13283
 
13286
- .muka-data-table__th--select,
13287
- .muka-data-table__td--select {
13288
- width: var(--datatable-selection-column-width);
13289
- padding-left: var(--spacing-4);
13290
- padding-right: var(--spacing-2);
13291
- /* Sit above the row link overlay so the checkbox stays independently clickable. */
13292
- position: relative;
13293
- z-index: 1;
13294
- }
13295
13284
 
13296
- .muka-data-table__select-control {
13285
+ /* Chip */
13286
+ /* Chip Component Styles - Using Muka Design Tokens (Figma: Chip, Chip/Trailing) */
13287
+
13288
+ /*
13289
+ * Internal custom properties (not public API):
13290
+ * --_chip-gap / --_chip-pad-start / --_chip-pad-end spacing per size and slot
13291
+ * --_chip-tr-* trailing button colours per variant
13292
+ */
13293
+ .muka-chip {
13297
13294
  display: inline-flex;
13298
13295
  align-items: center;
13296
+ gap: var(--_chip-gap);
13297
+ padding: 0 var(--_chip-pad-end) 0 var(--_chip-pad-start);
13298
+ border-radius: var(--border-radius-full);
13299
+ white-space: nowrap;
13300
+ user-select: none;
13301
+ border: var(--border-width-regular) solid transparent;
13302
+ box-sizing: border-box;
13303
+ flex-shrink: 0;
13299
13304
  }
13300
13305
 
13301
- /* ========================================
13302
- RESPONSIVE — two-column mobile layout
13303
- ======================================== */
13304
-
13305
- /* Desktop: the mobile-only stack cell/header/col are hidden. */
13306
- .muka-data-table__th--mobile-stack,
13307
- .muka-data-table__td--mobile-stack {
13308
- display: none;
13306
+ /*
13307
+ * Sizes: height, gap, type, and label-edge padding. The side that carries an
13308
+ * adornment gets its own padding: leading icon → chip.padding.leading, and the
13309
+ * right edge after a leading icon → chip.padding.labelEnd (Figma lg: 20). A
13310
+ * trailing button → chip.padding.trailing, which wins (declared later).
13311
+ */
13312
+ .muka-chip--sm {
13313
+ height: var(--chip-size-height-sm);
13314
+ --_chip-gap: var(--chip-gap-sm);
13315
+ --_chip-pad-start: var(--chip-padding-label-sm);
13316
+ --_chip-pad-end: var(--chip-padding-label-sm);
13317
+ font-family: var(--text-label-sm-regular-fontFamily);
13318
+ font-weight: var(--text-label-sm-regular-fontWeight);
13319
+ font-size: var(--text-label-sm-regular-fontSize);
13320
+ line-height: var(--text-label-sm-regular-lineHeight);
13309
13321
  }
13310
13322
 
13311
- /* Establish a container so the layout responds to the table's own width, not the
13312
- viewport — a DataTable in a narrow panel collapses even on a wide screen. */
13313
- .muka-data-table-wrapper--responsive {
13314
- container-type: inline-size;
13323
+ .muka-chip--md {
13324
+ height: var(--chip-size-height-md);
13325
+ --_chip-gap: var(--chip-gap-md);
13326
+ --_chip-pad-start: var(--chip-padding-label-md);
13327
+ --_chip-pad-end: var(--chip-padding-label-md);
13328
+ font-family: var(--text-label-md-regular-fontFamily);
13329
+ font-weight: var(--text-label-md-regular-fontWeight);
13330
+ font-size: var(--text-label-md-regular-fontSize);
13331
+ line-height: var(--text-label-md-regular-lineHeight);
13315
13332
  }
13316
13333
 
13317
- /* Below --breakpoint-md (768px) of the wrapper's width. @container can't read
13318
- custom properties, so the value is inlined as 767.98px. */
13319
- @container (max-width: 767.98px) {
13320
- /* Lift the table and body out of table layout. Without this the grid rows
13321
- below get wrapped in anonymous table cells that shrink-wrap them to
13322
- min-content, collapsing the flexible (1fr) stack track to 0. */
13323
- .muka-data-table--responsive {
13324
- display: block;
13325
- /* Collapsed cards always use md cell padding regardless of the table's `size`
13326
- — sm is too tight and lg wastes horizontal room, forcing the name to wrap. */
13327
- --dt-pad-x: var(--datatable-cell-padding-x-md);
13328
- --dt-pad-y: var(--datatable-cell-padding-y-md);
13329
- }
13334
+ .muka-chip--lg {
13335
+ height: var(--chip-size-height-lg);
13336
+ --_chip-gap: var(--chip-gap-lg);
13337
+ --_chip-pad-start: var(--chip-padding-label-lg);
13338
+ --_chip-pad-end: var(--chip-padding-label-lg);
13339
+ font-family: var(--text-label-lg-regular-fontFamily);
13340
+ font-weight: var(--text-label-lg-regular-fontWeight);
13341
+ font-size: var(--text-label-lg-regular-fontSize);
13342
+ line-height: var(--text-label-lg-regular-lineHeight);
13343
+ }
13330
13344
 
13331
- .muka-data-table--responsive .muka-data-table__body {
13332
- display: block;
13333
- }
13345
+ .muka-chip--sm.muka-chip--has-icon {
13346
+ --_chip-pad-start: var(--chip-padding-leading-sm);
13347
+ --_chip-pad-end: var(--chip-padding-labelEnd-sm);
13348
+ }
13349
+ .muka-chip--md.muka-chip--has-icon {
13350
+ --_chip-pad-start: var(--chip-padding-leading-md);
13351
+ --_chip-pad-end: var(--chip-padding-labelEnd-md);
13352
+ }
13353
+ .muka-chip--lg.muka-chip--has-icon {
13354
+ --_chip-pad-start: var(--chip-padding-leading-lg);
13355
+ --_chip-pad-end: var(--chip-padding-labelEnd-lg);
13356
+ }
13334
13357
 
13335
- .muka-data-table--responsive .muka-data-table__head {
13336
- display: none;
13337
- }
13358
+ .muka-chip--sm.muka-chip--has-trailing {
13359
+ --_chip-pad-end: var(--chip-padding-trailing-sm);
13360
+ }
13361
+ .muka-chip--md.muka-chip--has-trailing {
13362
+ --_chip-pad-end: var(--chip-padding-trailing-md);
13363
+ }
13364
+ .muka-chip--lg.muka-chip--has-trailing {
13365
+ --_chip-pad-end: var(--chip-padding-trailing-lg);
13366
+ }
13338
13367
 
13339
- .muka-data-table--responsive .muka-data-table__row {
13340
- display: grid;
13341
- grid-template-columns: 1fr auto auto;
13342
- align-items: center;
13343
- column-gap: var(--spacing-4);
13344
- padding: var(--dt-pad-y) var(--dt-pad-x);
13345
- }
13368
+ /* Leading icon slot — Figma icon sizes: sm 16, md 20, lg 24 */
13369
+ .muka-chip__icon {
13370
+ display: inline-flex;
13371
+ align-items: center;
13372
+ justify-content: center;
13373
+ flex-shrink: 0;
13374
+ }
13346
13375
 
13347
- /* Reset table cells; each visible mobile cell opts back in below. */
13348
- .muka-data-table--responsive .muka-data-table__td {
13349
- display: none;
13350
- padding: 0;
13351
- }
13376
+ .muka-chip--sm .muka-chip__icon {
13377
+ width: var(--icon-size-xs);
13378
+ height: var(--icon-size-xs);
13379
+ }
13380
+ .muka-chip--md .muka-chip__icon {
13381
+ width: var(--icon-size-sm);
13382
+ height: var(--icon-size-sm);
13383
+ }
13384
+ .muka-chip--lg .muka-chip__icon {
13385
+ width: var(--icon-size-default);
13386
+ height: var(--icon-size-default);
13387
+ }
13352
13388
 
13353
- /* Pin every visible cell to the single grid row. The stack cell sits after the
13354
- secondary cell in DOM order but targets an earlier column, so without this
13355
- auto-placement spills it onto a second row (breaking vertical centering). */
13356
- .muka-data-table--responsive .muka-data-table__td--select,
13357
- .muka-data-table--responsive .muka-data-table__td--mobile-stack,
13358
- .muka-data-table--responsive .muka-data-table__td--m-secondary,
13359
- .muka-data-table--responsive .muka-data-table__td--action {
13360
- grid-row: 1;
13361
- }
13389
+ /* Force the passed content (raw <svg> or an <Icon> wrapper) to the slot size,
13390
+ so callers don't have to size the icon to match each chip size. The
13391
+ .muka-icon selector is intentionally 2 classes deep to override .muka-icon--md. */
13392
+ .muka-chip__icon .muka-icon,
13393
+ .muka-chip__icon svg {
13394
+ width: 100%;
13395
+ height: 100%;
13396
+ }
13362
13397
 
13363
- .muka-data-table--responsive .muka-data-table__td--mobile-stack {
13364
- display: block;
13365
- grid-column: 1;
13366
- min-width: 0;
13367
- }
13398
+ .muka-chip__label {
13399
+ flex: 0 0 auto;
13400
+ /*
13401
+ * The chip sets a tight line-height (= font size) for compact sizing; the
13402
+ * label gets a roomier one so descenders (g, y, p) aren't clipped when it
13403
+ * truncates. Vertical centering is unaffected: the chip height is fixed and
13404
+ * content is centered via align-items: center.
13405
+ */
13406
+ line-height: normal;
13407
+ }
13368
13408
 
13369
- .muka-data-table--responsive .muka-data-table__td--m-secondary {
13370
- display: block;
13371
- grid-column: 2;
13372
- /* Hug the widest secondary content (e.g. a status badge). The desktop column's
13373
- min/max-width are inline styles, so `!important` is required to drop them and
13374
- let the `auto` grid track shrink to the badge — freeing space for the name. */
13375
- min-width: 0 !important;
13376
- max-width: none !important;
13377
- }
13409
+ /*
13410
+ * A chip keeps its full label by default (it doesn't shrink). With `truncate`
13411
+ * it may shrink to its container, and the label ends in an ellipsis.
13412
+ */
13413
+ .muka-chip--truncate {
13414
+ flex-shrink: 1;
13415
+ min-width: 0;
13416
+ max-width: 100%;
13417
+ }
13378
13418
 
13379
- .muka-data-table--responsive .muka-data-table__td--action {
13380
- display: block;
13381
- grid-column: 3;
13382
- width: auto;
13383
- }
13419
+ .muka-chip--truncate .muka-chip__label {
13420
+ flex: 0 1 auto;
13421
+ min-width: 0;
13422
+ overflow: hidden;
13423
+ text-overflow: ellipsis;
13424
+ }
13384
13425
 
13385
- /* Cell-content wrappers: drop the fixed row-height slot so rows stay compact. */
13386
- .muka-data-table--responsive .muka-data-table__td .muka-data-table__cell-content {
13387
- min-height: 0;
13388
- }
13426
+ /*
13427
+ * Label as a link or button (`href` / `onLabelClick`). It takes over the
13428
+ * chip's start padding (and end padding when there is no trailing button), so
13429
+ * the whole body up to the trailing button is its hit area.
13430
+ */
13431
+ .muka-chip__label-action,
13432
+ .muka-chip__label-group {
13433
+ display: inline-flex;
13434
+ align-items: center;
13435
+ gap: var(--_chip-gap);
13436
+ }
13389
13437
 
13390
- .muka-data-table--responsive .muka-data-table__td--m-secondary .muka-data-table__cell-content {
13391
- justify-content: flex-end;
13392
- }
13438
+ .muka-chip--truncate .muka-chip__label-action,
13439
+ .muka-chip--truncate .muka-chip__label-group {
13440
+ min-width: 0;
13441
+ }
13393
13442
 
13394
- /* Utility for cell content: hide a sub-element in the collapsed card. Use it to
13395
- drop a redundant text label next to a compact visual (e.g. the "75%" beside a
13396
- donut) so only the visual shows and the secondary column hugs to its width.
13397
- `display: none` also collapses any surrounding flex `gap`, leaving no gutter. */
13398
- .muka-data-table--responsive .muka-data-table__mobile-hidden {
13399
- display: none;
13400
- }
13443
+ .muka-chip__label-action {
13444
+ align-self: stretch;
13445
+ margin: 0;
13446
+ margin-left: calc(-1 * var(--_chip-pad-start));
13447
+ padding: 0 0 0 var(--_chip-pad-start);
13448
+ border: none;
13449
+ border-radius: var(--border-radius-full);
13450
+ background: none;
13451
+ color: inherit;
13452
+ font: inherit;
13453
+ text-decoration: none;
13454
+ text-align: inherit;
13455
+ cursor: pointer;
13456
+ }
13401
13457
 
13402
- /* Stacked primary column: first field is the title, the rest are subtitle lines. */
13403
- .muka-data-table__stack {
13404
- display: flex;
13405
- flex-direction: column;
13406
- gap: var(--spacing-1);
13407
- min-width: 0;
13408
- }
13409
-
13410
- /* A ProfileBadge in the collapsed card drops its avatar so the name sits
13411
- flush-left and lines up with the other stacked primary/secondary text
13412
- instead of being indented by the avatar. `display: none` also collapses the
13413
- ProfileBadge's flex gap, so no placeholder whitespace is left behind. */
13414
- .muka-data-table--responsive .muka-profile-badge__avatar {
13415
- display: none;
13416
- }
13417
-
13418
- .muka-data-table__stack-title {
13419
- font-family: var(--text-label-md-semibold-fontFamily);
13420
- font-weight: var(--text-label-md-semibold-fontWeight);
13421
- font-size: var(--text-label-md-semibold-fontSize);
13422
- line-height: var(--text-label-md-semibold-lineHeight);
13423
- color: var(--color-text-default-default);
13424
- overflow: hidden;
13425
- text-overflow: ellipsis;
13426
- }
13427
-
13428
- .muka-data-table__stack-line {
13429
- font-family: var(--text-body-sm-regular-fontFamily);
13430
- font-weight: var(--text-body-sm-regular-fontWeight);
13431
- font-size: var(--text-body-sm-regular-fontSize);
13432
- line-height: var(--text-body-sm-regular-lineHeight);
13433
- color: var(--color-text-subtle-default);
13434
- overflow: hidden;
13435
- text-overflow: ellipsis;
13436
- }
13437
-
13438
- /* The stack title may itself be the stretched link. */
13439
- .muka-data-table__stack-title .muka-data-table__row-link {
13440
- color: inherit;
13441
- text-decoration: none;
13442
- }
13443
-
13444
- /* Selection checkbox leads the mobile row: [checkbox | stack | secondary | action]. */
13445
- .muka-data-table--responsive .muka-data-table__td--select {
13446
- display: block;
13447
- grid-column: 1;
13448
- width: auto;
13449
- }
13450
-
13451
- .muka-data-table--responsive.muka-data-table--selectable .muka-data-table__row {
13452
- grid-template-columns: auto 1fr auto auto;
13453
- }
13454
-
13455
- .muka-data-table--responsive.muka-data-table--selectable .muka-data-table__td--mobile-stack {
13456
- grid-column: 2;
13457
- }
13458
-
13459
- .muka-data-table--responsive.muka-data-table--selectable .muka-data-table__td--m-secondary {
13460
- grid-column: 3;
13461
- }
13462
-
13463
- .muka-data-table--responsive.muka-data-table--selectable .muka-data-table__td--action {
13464
- grid-column: 4;
13465
- }
13458
+ .muka-chip--has-label-action:not(.muka-chip--has-trailing) .muka-chip__label-action {
13459
+ margin-right: calc(-1 * var(--_chip-pad-end));
13460
+ padding-right: var(--_chip-pad-end);
13466
13461
  }
13467
13462
 
13463
+ .muka-chip__label-action:focus-visible {
13464
+ outline: 2px solid var(--color-border-focus);
13465
+ outline-offset: 2px;
13466
+ }
13468
13467
 
13469
- /* DataPieChart */
13470
- /* DataPieChart Component Styles - Using Muka Design Tokens */
13471
-
13472
- .muka-data-pie-chart {
13468
+ /* Trailing button (dismiss / expand / switch) — circular. Figma sizes: sm 20, md 24, lg 32 */
13469
+ .muka-chip__trailing {
13473
13470
  position: relative;
13474
13471
  display: inline-flex;
13475
13472
  align-items: center;
13476
13473
  justify-content: center;
13477
13474
  flex-shrink: 0;
13475
+ padding: 0;
13476
+ margin: 0;
13477
+ border: var(--border-width-regular) solid var(--_chip-tr-border, transparent);
13478
+ border-radius: var(--border-radius-full);
13479
+ box-sizing: border-box;
13480
+ background-color: var(--_chip-tr-bg);
13481
+ color: var(--_chip-tr-fg);
13482
+ cursor: pointer;
13483
+ transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
13478
13484
  }
13479
13485
 
13480
- .muka-data-pie-chart__svg {
13481
- display: block;
13482
- width: 100%;
13483
- height: 100%;
13484
- /* Start the segment at 12 o'clock instead of 3 o'clock */
13485
- transform: rotate(-90deg);
13486
+ .muka-chip--sm .muka-chip__trailing {
13487
+ width: var(--icon-size-sm);
13488
+ height: var(--icon-size-sm);
13486
13489
  }
13487
-
13488
- .muka-data-pie-chart__track {
13489
- fill: none;
13490
+ .muka-chip--md .muka-chip__trailing {
13491
+ width: var(--icon-size-default);
13492
+ height: var(--icon-size-default);
13490
13493
  }
13491
-
13492
- .muka-data-pie-chart__segment {
13493
- fill: none;
13494
- /* Subtle lift on the filled segment, matching the Figma elevation */
13495
- filter: drop-shadow(0 2px 4px var(--color-black-alpha-5, rgba(0, 0, 0, 0.05)));
13496
- /* Butt caps keep the always-rendered 0% arc invisible (round caps would draw a dot) */
13497
- stroke-linecap: butt;
13498
- /* view duration (300ms) reads at the 24px size; tokens zero it for reduced motion */
13499
- transition: stroke-dasharray var(--motion-duration-view) var(--motion-easing-default);
13494
+ .muka-chip--lg .muka-chip__trailing {
13495
+ width: var(--icon-size-lg);
13496
+ height: var(--icon-size-lg);
13500
13497
  }
13501
13498
 
13502
- /* ─── Indeterminate (spinner) ─────────────────────────── */
13503
- /* A masked ring filled with an angular (conic) gradient that rotates. The mask
13504
- band matches the donut geometry (r=40, strokeWidth=16 → 64%–96% of radius) so
13505
- it swaps seamlessly with the value-based progress donut. */
13506
- .muka-data-pie-chart__spinner-track,
13507
- .muka-data-pie-chart__spinner {
13499
+ /* A touch target of at least the sm chip height (24px, WCAG 2.5.8) around the 20px circle */
13500
+ button.muka-chip__trailing::before {
13501
+ content: '';
13508
13502
  position: absolute;
13509
- inset: 0;
13510
- border-radius: 50%;
13511
- -webkit-mask: radial-gradient(farthest-side, transparent 63%, #000 65%, #000 95%, transparent 97%);
13512
- mask: radial-gradient(farthest-side, transparent 63%, #000 65%, #000 95%, transparent 97%);
13503
+ top: 50%;
13504
+ left: 50%;
13505
+ width: max(100%, var(--chip-size-height-sm));
13506
+ height: max(100%, var(--chip-size-height-sm));
13507
+ transform: translate(-50%, -50%);
13513
13508
  }
13514
13509
 
13515
- .muka-data-pie-chart__spinner {
13516
- animation: muka-data-pie-chart-spin 0.9s linear infinite;
13510
+ button.muka-chip__trailing:focus-visible {
13511
+ outline: 2px solid var(--color-border-focus);
13512
+ outline-offset: 2px;
13517
13513
  }
13518
13514
 
13519
- @keyframes muka-data-pie-chart-spin {
13520
- to {
13521
- transform: rotate(360deg);
13522
- }
13515
+ button.muka-chip__trailing:disabled {
13516
+ cursor: not-allowed;
13517
+ opacity: 0.5;
13523
13518
  }
13524
13519
 
13525
- @media (prefers-reduced-motion: reduce) {
13526
- .muka-data-pie-chart__spinner {
13527
- animation-duration: 2.5s;
13528
- }
13520
+ /* Trailing button states: its own hover / pressed, or the whole chip's when the chip is one button */
13521
+ button.muka-chip__trailing:hover:not(:disabled),
13522
+ .muka-chip--expandable:hover:not(:disabled) .muka-chip__trailing {
13523
+ border-color: var(--_chip-tr-border-hover, transparent);
13524
+ background-color: var(--_chip-tr-bg-hover);
13525
+ color: var(--_chip-tr-fg-hover);
13529
13526
  }
13530
13527
 
13531
- .muka-data-pie-chart__value {
13532
- position: absolute;
13533
- inset: 0;
13534
- display: flex;
13535
- align-items: center;
13536
- justify-content: center;
13537
- font-family: var(--text-body-base-bold-fontFamily);
13538
- font-weight: var(--text-body-base-bold-fontWeight);
13539
- font-size: var(--text-body-base-bold-fontSize);
13540
- line-height: var(--text-body-base-bold-lineHeight);
13541
- color: var(--color-text-default-default);
13528
+ button.muka-chip__trailing:active:not(:disabled),
13529
+ button.muka-chip__trailing[aria-expanded='true'],
13530
+ .muka-chip--expandable:active:not(:disabled) .muka-chip__trailing,
13531
+ .muka-chip--expandable[aria-expanded='true'] .muka-chip__trailing {
13532
+ border-color: var(--_chip-tr-border-hover, transparent);
13533
+ background-color: var(--_chip-tr-bg-pressed);
13534
+ color: var(--_chip-tr-fg-pressed);
13542
13535
  }
13543
13536
 
13544
-
13545
- /* Container */
13546
- /* Container Component - Layout tokens (container.max-width, container.gap) */
13547
-
13548
- .muka-container {
13549
- box-sizing: border-box;
13550
- width: 100%;
13551
- margin-inline: auto;
13537
+ /*
13538
+ * Whole-chip button (`trailing="expand" | "switch"`, Figma "Chip/Trailing
13539
+ * Expand"): typically a menu trigger. An open menu (aria-expanded) shows the
13540
+ * trailing button pressed, like Button's open state.
13541
+ */
13542
+ .muka-chip--expandable {
13543
+ margin: 0;
13544
+ text-align: inherit;
13545
+ cursor: pointer;
13552
13546
  }
13553
13547
 
13554
- /* Max-width variants */
13555
- .muka-container--max-width-small {
13556
- max-width: var(--container-max-width-small);
13548
+ .muka-chip--expandable:focus-visible {
13549
+ outline: 2px solid var(--color-border-focus);
13550
+ outline-offset: 2px;
13557
13551
  }
13558
13552
 
13559
- .muka-container--max-width-medium {
13560
- max-width: var(--container-max-width-medium);
13553
+ .muka-chip--expandable:disabled {
13554
+ cursor: not-allowed;
13561
13555
  }
13562
13556
 
13563
- .muka-container--max-width-large {
13564
- max-width: var(--container-max-width-large);
13557
+ .muka-chip--expandable .muka-chip__trailing {
13558
+ pointer-events: none;
13565
13559
  }
13566
13560
 
13567
- .muka-container--max-width-xlarge {
13568
- max-width: var(--container-max-width-xlarge);
13561
+ /* Variants: body fill, foreground, and the trailing button's colour steps */
13562
+ .muka-chip--default {
13563
+ background-color: var(--chip-neutral-background-default);
13564
+ color: var(--color-text-default-default);
13565
+ --_chip-tr-bg: var(--chip-trailing-default-background-default);
13566
+ --_chip-tr-bg-hover: var(--chip-trailing-default-background-hover);
13567
+ --_chip-tr-bg-pressed: var(--chip-trailing-default-background-pressed);
13568
+ --_chip-tr-fg: var(--chip-trailing-default-foreground-default);
13569
+ --_chip-tr-fg-hover: var(--chip-trailing-default-foreground-hover);
13570
+ --_chip-tr-fg-pressed: var(--chip-trailing-default-foreground-pressed);
13569
13571
  }
13570
13572
 
13571
- /* No gap — max-width only, no flex */
13572
- .muka-container--gap-none {
13573
- /* block layout by default */
13573
+ .muka-chip--success {
13574
+ background-color: var(--color-state-success-background);
13575
+ color: var(--color-state-success-contrast);
13576
+ --_chip-tr-bg: var(--chip-trailing-success-background-default);
13577
+ --_chip-tr-bg-hover: var(--chip-trailing-success-background-hover);
13578
+ --_chip-tr-bg-pressed: var(--chip-trailing-success-background-pressed);
13579
+ --_chip-tr-fg: var(--chip-trailing-success-foreground-default);
13580
+ --_chip-tr-fg-hover: var(--chip-trailing-success-foreground-hover);
13581
+ --_chip-tr-fg-pressed: var(--chip-trailing-success-foreground-pressed);
13574
13582
  }
13575
13583
 
13576
- /* Gap variants — flex column with token gap */
13577
- .muka-container--gap-compact {
13578
- display: flex;
13579
- flex-direction: column;
13580
- gap: var(--container-gap-compact);
13584
+ .muka-chip--warning {
13585
+ background-color: var(--color-state-warning-background);
13586
+ color: var(--color-state-warning-contrast);
13587
+ --_chip-tr-bg: var(--chip-trailing-warning-background-default);
13588
+ --_chip-tr-bg-hover: var(--chip-trailing-warning-background-hover);
13589
+ --_chip-tr-bg-pressed: var(--chip-trailing-warning-background-pressed);
13590
+ --_chip-tr-fg: var(--chip-trailing-warning-foreground-default);
13591
+ --_chip-tr-fg-hover: var(--chip-trailing-warning-foreground-hover);
13592
+ --_chip-tr-fg-pressed: var(--chip-trailing-warning-foreground-pressed);
13581
13593
  }
13582
13594
 
13583
- .muka-container--gap-default {
13584
- display: flex;
13585
- flex-direction: column;
13586
- gap: var(--container-gap-default);
13595
+ .muka-chip--error {
13596
+ background-color: var(--color-state-error-background);
13597
+ color: var(--color-state-error-contrast);
13598
+ --_chip-tr-bg: var(--chip-trailing-error-background-default);
13599
+ --_chip-tr-bg-hover: var(--chip-trailing-error-background-hover);
13600
+ --_chip-tr-bg-pressed: var(--chip-trailing-error-background-pressed);
13601
+ --_chip-tr-fg: var(--chip-trailing-error-foreground-default);
13602
+ --_chip-tr-fg-hover: var(--chip-trailing-error-foreground-hover);
13603
+ --_chip-tr-fg-pressed: var(--chip-trailing-error-foreground-pressed);
13587
13604
  }
13588
13605
 
13589
- .muka-container--gap-spacious {
13590
- display: flex;
13591
- flex-direction: column;
13592
- gap: var(--container-gap-spacious);
13593
- }
13594
-
13595
-
13596
- /* Combobox */
13597
- /* Combobox — Figma Input Combobox (free-input chips + suggestion Menu) */
13598
-
13599
- .muka-combobox {
13600
- display: inline-flex;
13601
- flex-direction: column;
13602
- gap: var(--spacing-2);
13603
- min-width: 200px;
13606
+ .muka-chip--info {
13607
+ background-color: var(--color-state-info-background);
13608
+ color: var(--color-state-info-contrast);
13609
+ --_chip-tr-bg: var(--chip-trailing-info-background-default);
13610
+ --_chip-tr-bg-hover: var(--chip-trailing-info-background-hover);
13611
+ --_chip-tr-bg-pressed: var(--chip-trailing-info-background-pressed);
13612
+ --_chip-tr-fg: var(--chip-trailing-info-foreground-default);
13613
+ --_chip-tr-fg-hover: var(--chip-trailing-info-foreground-hover);
13614
+ --_chip-tr-fg-pressed: var(--chip-trailing-info-foreground-pressed);
13604
13615
  }
13605
13616
 
13606
- .muka-combobox--full-width {
13607
- width: 100%;
13617
+ /* Ghost: no fill, subtle label; the trailing circle is outlined at rest (Figma Chip/Trailing Ghost) */
13618
+ .muka-chip--ghost {
13619
+ background-color: var(--chip-ghost-background-default);
13620
+ color: var(--chip-ghost-foreground-default);
13621
+ --_chip-tr-border: var(--chip-trailing-ghost-border-default);
13622
+ --_chip-tr-bg: var(--chip-trailing-ghost-background-default);
13623
+ --_chip-tr-bg-hover: var(--chip-trailing-ghost-background-hover);
13624
+ --_chip-tr-bg-pressed: var(--chip-trailing-ghost-background-pressed);
13625
+ --_chip-tr-fg: var(--chip-trailing-ghost-foreground-default);
13626
+ --_chip-tr-fg-hover: var(--chip-trailing-ghost-foreground-hover);
13627
+ --_chip-tr-fg-pressed: var(--chip-trailing-ghost-foreground-pressed);
13608
13628
  }
13609
13629
 
13610
- .muka-combobox__label {
13611
- color: var(--color-text-default-default);
13612
- cursor: pointer;
13630
+ /*
13631
+ * Body hover (Figma Chip State=Hover) — only on chips whose body does
13632
+ * something: the whole-chip button, or a label link/button (hovering just the
13633
+ * label, not the trailing button, which has its own states). A static chip
13634
+ * doesn't hover.
13635
+ */
13636
+ .muka-chip--default.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
13637
+ .muka-chip--default.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
13638
+ background-color: var(--chip-neutral-background-hover);
13613
13639
  }
13614
13640
 
13615
- .muka-combobox__label--sm {
13616
- font-family: var(--text-label-sm-semibold-fontFamily);
13617
- font-weight: var(--text-label-sm-semibold-fontWeight);
13618
- font-size: var(--text-label-sm-semibold-fontSize);
13619
- line-height: var(--text-label-sm-semibold-lineHeight);
13641
+ .muka-chip--ghost.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
13642
+ .muka-chip--ghost.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
13643
+ background-color: var(--chip-ghost-background-hover);
13644
+ color: var(--chip-ghost-foreground-hover);
13620
13645
  }
13621
13646
 
13622
- .muka-combobox__label--md {
13623
- font-family: var(--text-label-md-semibold-fontFamily);
13624
- font-weight: var(--text-label-md-semibold-fontWeight);
13625
- font-size: var(--text-label-md-semibold-fontSize);
13626
- line-height: var(--text-label-md-semibold-lineHeight);
13647
+ /* Icons (leading + trailing) inherit their slot's foreground color */
13648
+ .muka-chip .muka-icon {
13649
+ color: inherit;
13627
13650
  }
13628
13651
 
13629
- .muka-combobox__label--lg {
13630
- font-family: var(--text-label-lg-semibold-fontFamily);
13631
- font-weight: var(--text-label-lg-semibold-fontWeight);
13632
- font-size: var(--text-label-lg-semibold-fontSize);
13633
- line-height: var(--text-label-lg-semibold-lineHeight);
13634
- }
13635
13652
 
13636
- .muka-combobox__field {
13653
+ /* CheckboxTile */
13654
+ /* CheckboxTile Component Styles - Using Muka Design Tokens */
13655
+
13656
+ /* Base tile styles - horizontal */
13657
+ .muka-checkbox-tile {
13637
13658
  display: flex;
13638
13659
  align-items: center;
13639
- width: 100%;
13640
- position: relative;
13641
- isolation: isolate;
13642
- box-sizing: border-box;
13643
- background-color: var(--input-field-color-default-background);
13660
+ gap: var(--spacing-4);
13661
+ padding: var(--spacing-4);
13644
13662
  border: var(--border-width-regular) solid var(--input-field-color-default-border);
13645
13663
  border-radius: var(--input-field-radius-lg);
13646
- padding: var(--spacing-2);
13647
- cursor: text;
13648
- transition: border-color 0.12s ease, background-color 0.12s ease;
13649
- }
13650
-
13651
- .muka-combobox__field::after {
13652
- content: '';
13653
- position: absolute;
13654
- inset: 0;
13655
- border-radius: inherit;
13656
- box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.08);
13657
- pointer-events: none;
13658
- }
13659
-
13660
- .muka-combobox__field--sm {
13661
- min-height: var(--input-field-height-sm);
13662
- border-radius: var(--input-field-radius-sm);
13664
+ background-color: var(--color-surface-level3);
13665
+ cursor: pointer;
13666
+ transition: border-color 0.15s ease, border-width 0.15s ease;
13667
+ overflow: hidden;
13668
+ box-sizing: border-box;
13663
13669
  }
13664
13670
 
13665
- .muka-combobox__field--md {
13666
- min-height: var(--input-field-height-default);
13667
- border-radius: var(--input-field-radius-md);
13671
+ .muka-checkbox-tile--disabled {
13672
+ cursor: not-allowed;
13673
+ opacity: 0.6;
13668
13674
  }
13669
13675
 
13670
- .muka-combobox__field--lg {
13671
- min-height: var(--input-field-height-lg);
13672
- border-radius: var(--input-field-radius-lg);
13676
+ /* Selected state */
13677
+ .muka-checkbox-tile[data-checked] {
13678
+ border-width: var(--border-width-bold);
13679
+ border-color: var(--color-action-default);
13673
13680
  }
13674
13681
 
13675
- .muka-combobox__field--focused:not(.muka-combobox__field--disabled) {
13676
- border-width: var(--border-width-bold);
13677
- border-color: var(--input-field-color-focus-border);
13678
- background-color: var(--input-field-color-focus-background);
13679
- padding: calc(var(--spacing-2) - 1px);
13682
+ /* Vertical layout */
13683
+ .muka-checkbox-tile--vertical {
13684
+ flex-direction: column;
13685
+ align-items: center;
13686
+ gap: var(--spacing-2);
13687
+ position: relative;
13688
+ width: 160px;
13680
13689
  }
13681
13690
 
13682
- .muka-combobox__field--error:not(.muka-combobox__field--disabled) {
13683
- border-color: var(--color-state-error-contrast);
13691
+ /* Checkbox container */
13692
+ .muka-checkbox-tile__checkbox {
13693
+ flex-shrink: 0;
13684
13694
  }
13685
13695
 
13686
- .muka-combobox__field--disabled {
13687
- opacity: 0.5;
13688
- cursor: not-allowed;
13696
+ /* Corner-positioned checkbox for vertical */
13697
+ .muka-checkbox-tile__checkbox--corner {
13698
+ position: absolute;
13699
+ top: var(--spacing-4);
13700
+ left: var(--spacing-4);
13689
13701
  }
13690
13702
 
13691
- .muka-combobox__field--multiline {
13692
- align-items: flex-start;
13693
- min-height: 7rem;
13703
+ /* Adjust corner position when selected (border is thicker) */
13704
+ .muka-checkbox-tile[data-checked] .muka-checkbox-tile__checkbox--corner {
13705
+ top: calc(var(--spacing-4) - 1px);
13706
+ left: calc(var(--spacing-4) - 1px);
13694
13707
  }
13695
13708
 
13696
- .muka-combobox__chips {
13709
+ /* Icon */
13710
+ .muka-checkbox-tile__icon {
13697
13711
  display: flex;
13698
- flex: 1 1 auto;
13699
- flex-wrap: wrap;
13700
- gap: var(--spacing-2);
13701
13712
  align-items: center;
13702
- min-width: 0;
13703
- width: 100%;
13704
- position: relative;
13705
- z-index: 1;
13713
+ justify-content: center;
13714
+ flex-shrink: 0;
13715
+ width: var(--icon-size-default);
13716
+ height: var(--icon-size-default);
13717
+ color: var(--color-text-default-default);
13706
13718
  }
13707
13719
 
13708
- .muka-combobox__input {
13709
- flex: 1 1 5rem;
13710
- min-width: 5rem;
13711
- min-height: 2rem;
13712
- margin: 0;
13713
- padding: 0 var(--spacing-1);
13714
- border: none;
13715
- outline: none;
13716
- background: transparent;
13717
- color: var(--input-field-color-default-foreground);
13718
- caret-color: var(--input-field-color-default-foreground);
13719
- font-family: var(--text-label-md-regular-fontFamily);
13720
- font-size: var(--text-label-md-regular-fontSize);
13721
- font-weight: var(--text-label-md-regular-fontWeight);
13722
- line-height: var(--text-label-md-regular-lineHeight);
13720
+ .muka-checkbox-tile__icon svg {
13721
+ width: 100%;
13722
+ height: 100%;
13723
13723
  }
13724
13724
 
13725
- .muka-combobox__input::placeholder {
13726
- color: var(--color-text-subtle-default);
13725
+ /* Image */
13726
+ .muka-checkbox-tile__image {
13727
+ flex-shrink: 0;
13728
+ overflow: hidden;
13729
+ border-radius: var(--border-radius-sm);
13727
13730
  }
13728
13731
 
13729
- .muka-combobox__helper {
13730
- margin: 0;
13731
- color: var(--color-text-subtle-default);
13732
- font-family: var(--text-label-sm-regular-fontFamily);
13733
- font-size: var(--text-label-sm-regular-fontSize);
13734
- font-weight: var(--text-label-sm-regular-fontWeight);
13735
- line-height: var(--text-label-sm-regular-lineHeight);
13732
+ .muka-checkbox-tile__image img {
13733
+ display: block;
13734
+ width: 100%;
13735
+ height: 100%;
13736
+ object-fit: cover;
13736
13737
  }
13737
13738
 
13738
- .muka-combobox__error {
13739
- margin: 0;
13740
- color: var(--color-state-error-default);
13741
- font-family: var(--text-label-sm-regular-fontFamily);
13742
- font-size: var(--text-label-sm-regular-fontSize);
13743
- font-weight: var(--text-label-sm-regular-fontWeight);
13744
- line-height: var(--text-label-sm-regular-lineHeight);
13739
+ /* Horizontal image sizing */
13740
+ .muka-checkbox-tile__image--horizontal {
13741
+ width: 40px;
13742
+ height: 40px;
13745
13743
  }
13746
13744
 
13747
- .muka-combobox__menu-anchor {
13748
- position: absolute;
13749
- inset: 0;
13750
- z-index: 0;
13745
+ /* Vertical image sizing */
13746
+ .muka-checkbox-tile--vertical .muka-checkbox-tile__image {
13751
13747
  width: 100%;
13752
- height: 100%;
13753
- margin: 0;
13754
- padding: 0;
13755
- border: none;
13756
- background: transparent;
13757
- pointer-events: none;
13758
- opacity: 0;
13748
+ aspect-ratio: 4/3;
13759
13749
  }
13760
13750
 
13761
- .muka-combobox__menu {
13762
- /* Prefer Menu token min-width (280px); may exceed the field when left-aligned. */
13763
- min-width: var(--menu-content-min-width);
13764
- width: max-content;
13765
- max-width: min(100vw - 2rem, 24rem);
13751
+ /* Content container */
13752
+ .muka-checkbox-tile__content {
13753
+ display: flex;
13754
+ flex-direction: column;
13755
+ flex: 1;
13756
+ min-width: 0;
13757
+ gap: var(--spacing-2);
13766
13758
  }
13767
13759
 
13768
-
13769
- /* ChipSelectGroup */
13770
- /* ChipSelectGroup — wrapping row of selectable chips (experimental) */
13771
- .muka-chip-select-group {
13760
+ .muka-checkbox-tile__content-inner {
13772
13761
  display: flex;
13773
- flex-wrap: wrap;
13774
- gap: var(--spacing-2);
13762
+ flex-direction: column;
13763
+ gap: var(--spacing-1);
13775
13764
  }
13776
13765
 
13766
+ /* Chip slot (replaces badge; use Chip component) */
13767
+ .muka-checkbox-tile__chip {
13768
+ flex-shrink: 0;
13769
+ }
13777
13770
 
13778
- /* Chip */
13779
- /* Chip Component Styles - Using Muka Design Tokens (Figma: Chip, Chip/Trailing) */
13771
+ .muka-checkbox-tile__chip--vertical {
13772
+ margin-top: var(--spacing-1);
13773
+ }
13780
13774
 
13781
- /*
13782
- * Internal custom properties (not public API):
13783
- * --_chip-gap / --_chip-pad-start / --_chip-pad-end spacing per size and slot
13784
- * --_chip-tr-* trailing button colours per variant
13785
- */
13786
- .muka-chip {
13787
- display: inline-flex;
13788
- align-items: center;
13789
- gap: var(--_chip-gap);
13790
- padding: 0 var(--_chip-pad-end) 0 var(--_chip-pad-start);
13791
- border-radius: var(--border-radius-full);
13792
- white-space: nowrap;
13793
- user-select: none;
13794
- border: var(--border-width-regular) solid transparent;
13795
- box-sizing: border-box;
13796
- flex-shrink: 0;
13775
+ /* Label */
13776
+ .muka-checkbox-tile__label {
13777
+ font-family: var(--text-body-lg-regular-fontFamily);
13778
+ font-weight: var(--text-body-lg-regular-fontWeight);
13779
+ font-size: var(--text-body-lg-regular-fontSize);
13780
+ line-height: var(--text-body-lg-regular-lineHeight);
13781
+ color: var(--color-text-default-default);
13797
13782
  }
13798
13783
 
13799
- /*
13800
- * Sizes: height, gap, type, and label-edge padding. The side that carries an
13801
- * adornment gets its own padding: leading icon → chip.padding.leading, and the
13802
- * right edge after a leading icon → chip.padding.labelEnd (Figma lg: 20). A
13803
- * trailing button → chip.padding.trailing, which wins (declared later).
13804
- */
13805
- .muka-chip--sm {
13806
- height: var(--chip-size-height-sm);
13807
- --_chip-gap: var(--chip-gap-sm);
13808
- --_chip-pad-start: var(--chip-padding-label-sm);
13809
- --_chip-pad-end: var(--chip-padding-label-sm);
13810
- font-family: var(--text-label-sm-regular-fontFamily);
13811
- font-weight: var(--text-label-sm-regular-fontWeight);
13812
- font-size: var(--text-label-sm-regular-fontSize);
13813
- line-height: var(--text-label-sm-regular-lineHeight);
13784
+ .muka-checkbox-tile__label--bold {
13785
+ font-family: var(--text-label-lg-semibold-fontFamily);
13786
+ font-weight: var(--text-label-lg-semibold-fontWeight);
13787
+ font-size: var(--text-label-lg-semibold-fontSize);
13788
+ line-height: var(--text-label-lg-semibold-lineHeight);
13814
13789
  }
13815
13790
 
13816
- .muka-chip--md {
13817
- height: var(--chip-size-height-md);
13818
- --_chip-gap: var(--chip-gap-md);
13819
- --_chip-pad-start: var(--chip-padding-label-md);
13820
- --_chip-pad-end: var(--chip-padding-label-md);
13821
- font-family: var(--text-label-md-regular-fontFamily);
13822
- font-weight: var(--text-label-md-regular-fontWeight);
13823
- font-size: var(--text-label-md-regular-fontSize);
13824
- line-height: var(--text-label-md-regular-lineHeight);
13791
+ .muka-checkbox-tile__label--center {
13792
+ text-align: center;
13825
13793
  }
13826
13794
 
13827
- .muka-chip--lg {
13828
- height: var(--chip-size-height-lg);
13829
- --_chip-gap: var(--chip-gap-lg);
13830
- --_chip-pad-start: var(--chip-padding-label-lg);
13831
- --_chip-pad-end: var(--chip-padding-label-lg);
13832
- font-family: var(--text-label-lg-regular-fontFamily);
13833
- font-weight: var(--text-label-lg-regular-fontWeight);
13834
- font-size: var(--text-label-lg-regular-fontSize);
13835
- line-height: var(--text-label-lg-regular-lineHeight);
13795
+ /* Caption */
13796
+ .muka-checkbox-tile__caption {
13797
+ font-family: var(--text-body-base-regular-fontFamily);
13798
+ font-weight: var(--text-body-base-regular-fontWeight);
13799
+ font-size: var(--text-body-base-regular-fontSize);
13800
+ line-height: var(--text-body-base-regular-lineHeight);
13801
+ color: var(--color-text-subtle-default);
13836
13802
  }
13837
13803
 
13838
- .muka-chip--sm.muka-chip--has-icon {
13839
- --_chip-pad-start: var(--chip-padding-leading-sm);
13840
- --_chip-pad-end: var(--chip-padding-labelEnd-sm);
13841
- }
13842
- .muka-chip--md.muka-chip--has-icon {
13843
- --_chip-pad-start: var(--chip-padding-leading-md);
13844
- --_chip-pad-end: var(--chip-padding-labelEnd-md);
13845
- }
13846
- .muka-chip--lg.muka-chip--has-icon {
13847
- --_chip-pad-start: var(--chip-padding-leading-lg);
13848
- --_chip-pad-end: var(--chip-padding-labelEnd-lg);
13804
+ /* Disabled states */
13805
+ .muka-checkbox-tile--disabled .muka-checkbox-tile__label,
13806
+ .muka-checkbox-tile--disabled .muka-checkbox-tile__icon {
13807
+ color: var(--color-text-subtle-default);
13849
13808
  }
13850
13809
 
13851
- .muka-chip--sm.muka-chip--has-trailing {
13852
- --_chip-pad-end: var(--chip-padding-trailing-sm);
13853
- }
13854
- .muka-chip--md.muka-chip--has-trailing {
13855
- --_chip-pad-end: var(--chip-padding-trailing-md);
13810
+
13811
+ /* DataTable */
13812
+ /* DataTable Component Styles - Using Muka Design Tokens */
13813
+
13814
+ .muka-data-table-wrapper {
13815
+ width: 100%;
13816
+ overflow-x: auto;
13817
+ -webkit-overflow-scrolling: touch;
13856
13818
  }
13857
- .muka-chip--lg.muka-chip--has-trailing {
13858
- --_chip-pad-end: var(--chip-padding-trailing-lg);
13819
+
13820
+ .muka-data-table {
13821
+ /* Density-driven cell padding (overridden per size below). */
13822
+ --dt-pad-x: var(--datatable-cell-padding-x-md);
13823
+ --dt-pad-y: var(--datatable-cell-padding-y-md);
13824
+
13825
+ width: 100%;
13826
+ border-collapse: collapse;
13827
+ border-spacing: 0;
13828
+ /* auto layout so per-column min/max widths are honored and unsized columns flex */
13829
+ table-layout: auto;
13830
+ background-color: var(--datatable-row-background);
13831
+ color: var(--datatable-row-foreground);
13859
13832
  }
13860
13833
 
13861
- /* Leading icon slot — Figma icon sizes: sm 16, md 20, lg 24 */
13862
- .muka-chip__icon {
13863
- display: inline-flex;
13864
- align-items: center;
13865
- justify-content: center;
13866
- flex-shrink: 0;
13834
+ .muka-data-table--size-sm {
13835
+ --dt-pad-x: var(--datatable-cell-padding-x-sm);
13836
+ --dt-pad-y: var(--datatable-cell-padding-y-sm);
13867
13837
  }
13868
13838
 
13869
- .muka-chip--sm .muka-chip__icon {
13870
- width: var(--icon-size-xs);
13871
- height: var(--icon-size-xs);
13839
+ .muka-data-table--size-lg {
13840
+ --dt-pad-x: var(--datatable-cell-padding-x-lg);
13841
+ --dt-pad-y: var(--datatable-cell-padding-y-lg);
13872
13842
  }
13873
- .muka-chip--md .muka-chip__icon {
13874
- width: var(--icon-size-sm);
13875
- height: var(--icon-size-sm);
13843
+
13844
+ .muka-data-table__caption {
13845
+ padding: var(--dt-pad-y) var(--dt-pad-x);
13846
+ font-family: var(--text-body-base-bold-fontFamily);
13847
+ font-weight: var(--text-body-base-bold-fontWeight);
13848
+ font-size: var(--text-body-base-bold-fontSize);
13849
+ line-height: var(--text-body-base-bold-lineHeight);
13850
+ text-align: left;
13851
+ caption-side: top;
13876
13852
  }
13877
- .muka-chip--lg .muka-chip__icon {
13878
- width: var(--icon-size-default);
13879
- height: var(--icon-size-default);
13853
+
13854
+ /* ========================================
13855
+ HEADER
13856
+ ======================================== */
13857
+
13858
+ .muka-data-table__head {
13859
+ border-bottom: var(--border-width-regular, 1px) solid var(--datatable-header-border);
13880
13860
  }
13881
13861
 
13882
- /* Force the passed content (raw <svg> or an <Icon> wrapper) to the slot size,
13883
- so callers don't have to size the icon to match each chip size. The
13884
- .muka-icon selector is intentionally 2 classes deep to override .muka-icon--md. */
13885
- .muka-chip__icon .muka-icon,
13886
- .muka-chip__icon svg {
13887
- width: 100%;
13888
- height: 100%;
13862
+ .muka-data-table__th {
13863
+ background-color: var(--datatable-header-background);
13864
+ padding: var(--datatable-cell-padding-y-sm) var(--dt-pad-x);
13865
+ font-family: var(--text-body-base-bold-fontFamily);
13866
+ font-weight: var(--text-body-base-bold-fontWeight);
13867
+ font-size: var(--text-body-base-bold-fontSize);
13868
+ line-height: var(--text-body-base-bold-lineHeight);
13869
+ color: var(--datatable-header-foreground);
13870
+ vertical-align: middle;
13871
+ text-align: left;
13889
13872
  }
13890
13873
 
13891
- .muka-chip__label {
13892
- flex: 0 0 auto;
13893
- /*
13894
- * The chip sets a tight line-height (= font size) for compact sizing; the
13895
- * label gets a roomier one so descenders (g, y, p) aren't clipped when it
13896
- * truncates. Vertical centering is unaffected: the chip height is fixed and
13897
- * content is centered via align-items: center.
13898
- */
13899
- line-height: normal;
13874
+ .muka-data-table__th-label {
13875
+ display: flex;
13876
+ align-items: center;
13877
+ min-height: var(--datatable-cell-min-height); /* 32px slot — matches Figma header cell height */
13900
13878
  }
13901
13879
 
13902
- /*
13903
- * A chip keeps its full label by default (it doesn't shrink). With `truncate`
13904
- * it may shrink to its container, and the label ends in an ellipsis.
13905
- */
13906
- .muka-chip--truncate {
13907
- flex-shrink: 1;
13908
- min-width: 0;
13909
- max-width: 100%;
13880
+ /* ========================================
13881
+ BODY
13882
+ ======================================== */
13883
+
13884
+ .muka-data-table__row {
13885
+ border-bottom: var(--border-width-regular, 1px) solid var(--datatable-row-border);
13886
+ transition: background-color 0.15s ease;
13910
13887
  }
13911
13888
 
13912
- .muka-chip--truncate .muka-chip__label {
13913
- flex: 0 1 auto;
13914
- min-width: 0;
13915
- overflow: hidden;
13916
- text-overflow: ellipsis;
13889
+ /* Last body row: no bottom border (matches Table; avoids a double line at the table edge). */
13890
+ .muka-data-table__body .muka-data-table__row:last-child {
13891
+ border-bottom: none;
13917
13892
  }
13918
13893
 
13919
- /*
13920
- * Label as a link or button (`href` / `onLabelClick`). It takes over the
13921
- * chip's start padding (and end padding when there is no trailing button), so
13922
- * the whole body up to the trailing button is its hit area.
13923
- */
13924
- .muka-chip__label-action,
13925
- .muka-chip__label-group {
13926
- display: inline-flex;
13927
- align-items: center;
13928
- gap: var(--_chip-gap);
13894
+ .muka-data-table__row:not(.muka-data-table__row--empty):not(.muka-data-table__row--selected):hover {
13895
+ background-color: var(--datatable-row-hover-background);
13929
13896
  }
13930
13897
 
13931
- .muka-chip--truncate .muka-chip__label-action,
13932
- .muka-chip--truncate .muka-chip__label-group {
13933
- min-width: 0;
13898
+ /* Selected rows keep their tint, including on hover. */
13899
+ .muka-data-table__row--selected,
13900
+ .muka-data-table__row--selected:hover {
13901
+ background-color: var(--datatable-row-selected-background);
13934
13902
  }
13935
13903
 
13936
- .muka-chip__label-action {
13937
- align-self: stretch;
13938
- margin: 0;
13939
- margin-left: calc(-1 * var(--_chip-pad-start));
13940
- padding: 0 0 0 var(--_chip-pad-start);
13941
- border: none;
13942
- border-radius: var(--border-radius-full);
13943
- background: none;
13944
- color: inherit;
13945
- font: inherit;
13946
- text-decoration: none;
13947
- text-align: inherit;
13948
- cursor: pointer;
13904
+ .muka-data-table__td {
13905
+ padding: var(--dt-pad-y) var(--dt-pad-x);
13906
+ font-family: var(--text-body-base-regular-fontFamily);
13907
+ font-weight: var(--text-body-base-regular-fontWeight);
13908
+ font-size: var(--text-body-base-regular-fontSize);
13909
+ line-height: var(--text-body-base-regular-lineHeight);
13910
+ color: var(--datatable-row-foreground);
13911
+ vertical-align: middle;
13949
13912
  }
13950
13913
 
13951
- .muka-chip--has-label-action:not(.muka-chip--has-trailing) .muka-chip__label-action {
13952
- margin-right: calc(-1 * var(--_chip-pad-end));
13953
- padding-right: var(--_chip-pad-end);
13914
+ .muka-data-table__cell-content {
13915
+ display: flex;
13916
+ align-items: center;
13917
+ min-height: var(--datatable-cell-min-height); /* 32px slot — matches Figma body cell height */
13918
+ word-break: break-word;
13954
13919
  }
13955
13920
 
13956
- .muka-chip__label-action:focus-visible {
13957
- outline: 2px solid var(--color-border-focus);
13958
- outline-offset: 2px;
13921
+ .muka-data-table__row--empty .muka-data-table__cell-content {
13922
+ justify-content: center;
13923
+ color: var(--color-text-subtle-default);
13959
13924
  }
13960
13925
 
13961
- /* Trailing button (dismiss / expand / switch) — circular. Figma sizes: sm 20, md 24, lg 32 */
13962
- .muka-chip__trailing {
13963
- position: relative;
13964
- display: inline-flex;
13965
- align-items: center;
13966
- justify-content: center;
13967
- flex-shrink: 0;
13968
- padding: 0;
13969
- margin: 0;
13970
- border: var(--border-width-regular) solid var(--_chip-tr-border, transparent);
13971
- border-radius: var(--border-radius-full);
13972
- box-sizing: border-box;
13973
- background-color: var(--_chip-tr-bg);
13974
- color: var(--_chip-tr-fg);
13975
- cursor: pointer;
13976
- transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
13926
+ /* ========================================
13927
+ BADGES — always the small (sm) scale
13928
+ ======================================== */
13929
+
13930
+ /* Any Badge inside a DataTable renders at the small scale regardless of the
13931
+ `size` prop passed to it — status pills stay compact and consistent across
13932
+ every table density. Enforced here so callers can't accidentally scale them
13933
+ up. Overrides the `.muka-badge--md`/`--lg` size rules by carrying a higher
13934
+ specificity (2–3 classes vs. 1–2), independent of stylesheet import order. */
13935
+ .muka-data-table .muka-badge {
13936
+ height: var(--badge-size-height-sm);
13937
+ gap: var(--badge-gap-sm);
13938
+ padding: 0 var(--badge-padding-label-sm);
13939
+ font-family: var(--text-label-sm-regular-fontFamily);
13940
+ font-weight: var(--text-label-sm-regular-fontWeight);
13941
+ font-size: var(--text-label-sm-regular-fontSize);
13942
+ line-height: var(--text-label-sm-regular-lineHeight);
13977
13943
  }
13978
13944
 
13979
- .muka-chip--sm .muka-chip__trailing {
13980
- width: var(--icon-size-sm);
13981
- height: var(--icon-size-sm);
13945
+ /* Match the sm leading padding when a leading icon or dot is present. */
13946
+ .muka-data-table .muka-badge.muka-badge--has-icon,
13947
+ .muka-data-table .muka-badge.muka-badge--has-dot {
13948
+ padding-left: var(--badge-padding-leading-sm);
13982
13949
  }
13983
- .muka-chip--md .muka-chip__trailing {
13984
- width: var(--icon-size-default);
13985
- height: var(--icon-size-default);
13950
+
13951
+ /* Icon and dot slots follow the sm scale too. */
13952
+ .muka-data-table .muka-badge .muka-badge__icon {
13953
+ width: var(--icon-size-xs);
13954
+ height: var(--icon-size-xs);
13986
13955
  }
13987
- .muka-chip--lg .muka-chip__trailing {
13988
- width: var(--icon-size-lg);
13989
- height: var(--icon-size-lg);
13956
+
13957
+ .muka-data-table .muka-badge .muka-badge__dot {
13958
+ width: var(--badge-size-dot-sm);
13959
+ height: var(--badge-size-dot-sm);
13990
13960
  }
13991
13961
 
13992
- /* A touch target of at least the sm chip height (24px, WCAG 2.5.8) around the 20px circle */
13993
- button.muka-chip__trailing::before {
13994
- content: '';
13995
- position: absolute;
13996
- top: 50%;
13997
- left: 50%;
13998
- width: max(100%, var(--chip-size-height-sm));
13999
- height: max(100%, var(--chip-size-height-sm));
14000
- transform: translate(-50%, -50%);
13962
+ /* ========================================
13963
+ ALIGNMENT
13964
+ ======================================== */
13965
+
13966
+ .muka-data-table__th--center,
13967
+ .muka-data-table__td--center {
13968
+ text-align: center;
14001
13969
  }
14002
13970
 
14003
- button.muka-chip__trailing:focus-visible {
14004
- outline: 2px solid var(--color-border-focus);
14005
- outline-offset: 2px;
13971
+ .muka-data-table__th--center .muka-data-table__th-label,
13972
+ .muka-data-table__th--center .muka-data-table__sort-button,
13973
+ .muka-data-table__td--center .muka-data-table__cell-content {
13974
+ justify-content: center;
14006
13975
  }
14007
13976
 
14008
- button.muka-chip__trailing:disabled {
14009
- cursor: not-allowed;
14010
- opacity: 0.5;
13977
+ .muka-data-table__th--right,
13978
+ .muka-data-table__td--right {
13979
+ text-align: right;
14011
13980
  }
14012
13981
 
14013
- /* Trailing button states: its own hover / pressed, or the whole chip's when the chip is one button */
14014
- button.muka-chip__trailing:hover:not(:disabled),
14015
- .muka-chip--expandable:hover:not(:disabled) .muka-chip__trailing {
14016
- border-color: var(--_chip-tr-border-hover, transparent);
14017
- background-color: var(--_chip-tr-bg-hover);
14018
- color: var(--_chip-tr-fg-hover);
13982
+ .muka-data-table__th--right .muka-data-table__th-label,
13983
+ .muka-data-table__th--right .muka-data-table__sort-button,
13984
+ .muka-data-table__td--right .muka-data-table__cell-content {
13985
+ justify-content: flex-end;
14019
13986
  }
14020
13987
 
14021
- button.muka-chip__trailing:active:not(:disabled),
14022
- button.muka-chip__trailing[aria-expanded='true'],
14023
- .muka-chip--expandable:active:not(:disabled) .muka-chip__trailing,
14024
- .muka-chip--expandable[aria-expanded='true'] .muka-chip__trailing {
14025
- border-color: var(--_chip-tr-border-hover, transparent);
14026
- background-color: var(--_chip-tr-bg-pressed);
14027
- color: var(--_chip-tr-fg-pressed);
13988
+ /* ========================================
13989
+ COLUMN DIVIDERS (vertical)
13990
+ ======================================== */
13991
+
13992
+ .muka-data-table--column-dividers .muka-data-table__th:not(:last-child),
13993
+ .muka-data-table--column-dividers .muka-data-table__td:not(:last-child) {
13994
+ border-right: var(--border-width-regular, 1px) solid var(--datatable-divider-color);
14028
13995
  }
14029
13996
 
14030
- /*
14031
- * Whole-chip button (`trailing="expand" | "switch"`, Figma "Chip/Trailing
14032
- * Expand"): typically a menu trigger. An open menu (aria-expanded) shows the
14033
- * trailing button pressed, like Button's open state.
14034
- */
14035
- .muka-chip--expandable {
13997
+ /* ========================================
13998
+ SORTING
13999
+ ======================================== */
14000
+
14001
+ .muka-data-table__sort-button {
14002
+ display: flex;
14003
+ align-items: center;
14004
+ gap: var(--spacing-1);
14005
+ width: 100%;
14006
+ min-height: var(--datatable-cell-min-height);
14007
+ padding: 0;
14036
14008
  margin: 0;
14009
+ border: 0;
14010
+ background: none;
14011
+ font: inherit;
14012
+ color: inherit;
14037
14013
  text-align: inherit;
14038
14014
  cursor: pointer;
14015
+ user-select: none;
14016
+ border-radius: var(--border-radius-md, 8px);
14039
14017
  }
14040
14018
 
14041
- .muka-chip--expandable:focus-visible {
14042
- outline: 2px solid var(--color-border-focus);
14019
+ .muka-data-table__sort-button:focus-visible {
14020
+ outline: 2px solid var(--datatable-focus-ring);
14043
14021
  outline-offset: 2px;
14044
14022
  }
14045
14023
 
14046
- .muka-chip--expandable:disabled {
14047
- cursor: not-allowed;
14024
+ /* The chevron only renders on the active sort column, so it's always full-strength. */
14025
+ .muka-data-table__sort-icon {
14026
+ display: inline-flex;
14027
+ flex-shrink: 0;
14048
14028
  }
14049
14029
 
14050
- .muka-chip--expandable .muka-chip__trailing {
14051
- pointer-events: none;
14030
+ /* ========================================
14031
+ INTERACTIVE ROWS (clickable / link)
14032
+ ======================================== */
14033
+
14034
+ .muka-data-table__row--interactive {
14035
+ cursor: pointer;
14036
+ /* anchor for the stretched link overlay */
14037
+ position: relative;
14052
14038
  }
14053
14039
 
14054
- /* Variants: body fill, foreground, and the trailing button's colour steps */
14055
- .muka-chip--default {
14056
- background-color: var(--chip-neutral-background-default);
14057
- color: var(--color-text-default-default);
14058
- --_chip-tr-bg: var(--chip-trailing-default-background-default);
14059
- --_chip-tr-bg-hover: var(--chip-trailing-default-background-hover);
14060
- --_chip-tr-bg-pressed: var(--chip-trailing-default-background-pressed);
14061
- --_chip-tr-fg: var(--chip-trailing-default-foreground-default);
14062
- --_chip-tr-fg-hover: var(--chip-trailing-default-foreground-hover);
14063
- --_chip-tr-fg-pressed: var(--chip-trailing-default-foreground-pressed);
14040
+ .muka-data-table__row--interactive:focus-visible {
14041
+ outline: 2px solid var(--datatable-focus-ring);
14042
+ outline-offset: -2px;
14064
14043
  }
14065
14044
 
14066
- .muka-chip--success {
14067
- background-color: var(--color-state-success-background);
14068
- color: var(--color-state-success-contrast);
14069
- --_chip-tr-bg: var(--chip-trailing-success-background-default);
14070
- --_chip-tr-bg-hover: var(--chip-trailing-success-background-hover);
14071
- --_chip-tr-bg-pressed: var(--chip-trailing-success-background-pressed);
14072
- --_chip-tr-fg: var(--chip-trailing-success-foreground-default);
14073
- --_chip-tr-fg-hover: var(--chip-trailing-success-foreground-hover);
14074
- --_chip-tr-fg-pressed: var(--chip-trailing-success-foreground-pressed);
14045
+ .muka-data-table__row--interactive:active {
14046
+ background-color: var(--datatable-row-pressed-background);
14075
14047
  }
14076
14048
 
14077
- .muka-chip--warning {
14078
- background-color: var(--color-state-warning-background);
14079
- color: var(--color-state-warning-contrast);
14080
- --_chip-tr-bg: var(--chip-trailing-warning-background-default);
14081
- --_chip-tr-bg-hover: var(--chip-trailing-warning-background-hover);
14082
- --_chip-tr-bg-pressed: var(--chip-trailing-warning-background-pressed);
14083
- --_chip-tr-fg: var(--chip-trailing-warning-foreground-default);
14084
- --_chip-tr-fg-hover: var(--chip-trailing-warning-foreground-hover);
14085
- --_chip-tr-fg-pressed: var(--chip-trailing-warning-foreground-pressed);
14049
+ /* Link rows: the first-cell anchor stretches to cover the whole row. */
14050
+ .muka-data-table__row-link {
14051
+ color: inherit;
14052
+ text-decoration: none;
14086
14053
  }
14087
14054
 
14088
- .muka-chip--error {
14089
- background-color: var(--color-state-error-background);
14090
- color: var(--color-state-error-contrast);
14091
- --_chip-tr-bg: var(--chip-trailing-error-background-default);
14092
- --_chip-tr-bg-hover: var(--chip-trailing-error-background-hover);
14093
- --_chip-tr-bg-pressed: var(--chip-trailing-error-background-pressed);
14094
- --_chip-tr-fg: var(--chip-trailing-error-foreground-default);
14095
- --_chip-tr-fg-hover: var(--chip-trailing-error-foreground-hover);
14096
- --_chip-tr-fg-pressed: var(--chip-trailing-error-foreground-pressed);
14055
+ .muka-data-table__row-link::after {
14056
+ content: '';
14057
+ position: absolute;
14058
+ inset: 0;
14059
+ z-index: 0;
14097
14060
  }
14098
14061
 
14099
- .muka-chip--info {
14100
- background-color: var(--color-state-info-background);
14101
- color: var(--color-state-info-contrast);
14102
- --_chip-tr-bg: var(--chip-trailing-info-background-default);
14103
- --_chip-tr-bg-hover: var(--chip-trailing-info-background-hover);
14104
- --_chip-tr-bg-pressed: var(--chip-trailing-info-background-pressed);
14105
- --_chip-tr-fg: var(--chip-trailing-info-foreground-default);
14106
- --_chip-tr-fg-hover: var(--chip-trailing-info-foreground-hover);
14107
- --_chip-tr-fg-pressed: var(--chip-trailing-info-foreground-pressed);
14062
+ .muka-data-table__row--link:hover {
14063
+ background-color: var(--datatable-row-hover-background);
14108
14064
  }
14109
14065
 
14110
- /* Ghost: no fill, subtle label; the trailing circle is outlined at rest (Figma Chip/Trailing Ghost) */
14111
- .muka-chip--ghost {
14112
- background-color: var(--chip-ghost-background-default);
14113
- color: var(--chip-ghost-foreground-default);
14114
- --_chip-tr-border: var(--chip-trailing-ghost-border-default);
14115
- --_chip-tr-bg: var(--chip-trailing-ghost-background-default);
14116
- --_chip-tr-bg-hover: var(--chip-trailing-ghost-background-hover);
14117
- --_chip-tr-bg-pressed: var(--chip-trailing-ghost-background-pressed);
14118
- --_chip-tr-fg: var(--chip-trailing-ghost-foreground-default);
14119
- --_chip-tr-fg-hover: var(--chip-trailing-ghost-foreground-hover);
14120
- --_chip-tr-fg-pressed: var(--chip-trailing-ghost-foreground-pressed);
14066
+ .muka-data-table__row--link .muka-data-table__row-link:focus-visible {
14067
+ outline: 2px solid var(--datatable-focus-ring);
14068
+ outline-offset: -2px;
14121
14069
  }
14122
14070
 
14123
- /*
14124
- * Body hover (Figma Chip State=Hover) — only on chips whose body does
14125
- * something: the whole-chip button, or a label link/button (hovering just the
14126
- * label, not the trailing button, which has its own states). A static chip
14127
- * doesn't hover.
14128
- */
14129
- .muka-chip--default.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
14130
- .muka-chip--default.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
14131
- background-color: var(--chip-neutral-background-hover);
14071
+ /* Disabled rows */
14072
+ .muka-data-table__row--disabled {
14073
+ cursor: default;
14074
+ color: var(--color-text-muted-default);
14132
14075
  }
14133
14076
 
14134
- .muka-chip--ghost.muka-chip--expandable:is(:hover, :focus-visible, [aria-expanded='true']):not(:disabled),
14135
- .muka-chip--ghost.muka-chip--has-label-action:has(> .muka-chip__label-action:is(:hover, :focus-visible)) {
14136
- background-color: var(--chip-ghost-background-hover);
14137
- color: var(--chip-ghost-foreground-hover);
14138
- }
14077
+ .muka-data-table__row--disabled .muka-data-table__td {
14078
+ color: var(--color-text-muted-default);
14079
+ }
14080
+
14081
+ /* ========================================
14082
+ TRAILING ACTION COLUMN
14083
+ ======================================== */
14084
+
14085
+ /* Hug: the trailing action column shrinks to its content, so a text-label
14086
+ button ("View") gets exactly the width it needs and an icon-only button
14087
+ stays tight. `width: 1%` + `nowrap` is the classic auto-table hug. */
14088
+ .muka-data-table__col--action {
14089
+ width: 0;
14090
+ }
14091
+
14092
+ .muka-data-table__th--action,
14093
+ .muka-data-table__td--action {
14094
+ width: 1%;
14095
+ white-space: nowrap;
14096
+ padding-left: var(--spacing-2);
14097
+ padding-right: var(--spacing-2);
14098
+ text-align: right;
14099
+ /* Sit above the row link overlay so the action stays independently clickable. */
14100
+ position: relative;
14101
+ z-index: 1;
14102
+ }
14103
+
14104
+ .muka-data-table__action-content {
14105
+ justify-content: flex-end;
14106
+ }
14107
+
14108
+ /* Visually-hidden-friendly empty header slot keeps the row height consistent. */
14109
+ .muka-data-table__action-header:empty {
14110
+ min-height: var(--datatable-cell-min-height);
14111
+ }
14112
+
14113
+ /* ========================================
14114
+ SELECTION — leading checkbox column
14115
+ ======================================== */
14116
+
14117
+ .muka-data-table__col--select {
14118
+ width: var(--datatable-selection-column-width);
14119
+ }
14120
+
14121
+ .muka-data-table__th--select,
14122
+ .muka-data-table__td--select {
14123
+ width: var(--datatable-selection-column-width);
14124
+ padding-left: var(--spacing-4);
14125
+ padding-right: var(--spacing-2);
14126
+ /* Sit above the row link overlay so the checkbox stays independently clickable. */
14127
+ position: relative;
14128
+ z-index: 1;
14129
+ }
14130
+
14131
+ .muka-data-table__select-control {
14132
+ display: inline-flex;
14133
+ align-items: center;
14134
+ }
14135
+
14136
+ /* ========================================
14137
+ RESPONSIVE — two-column mobile layout
14138
+ ======================================== */
14139
+
14140
+ /* Desktop: the mobile-only stack cell/header/col are hidden. */
14141
+ .muka-data-table__th--mobile-stack,
14142
+ .muka-data-table__td--mobile-stack {
14143
+ display: none;
14144
+ }
14145
+
14146
+ /* Establish a container so the layout responds to the table's own width, not the
14147
+ viewport — a DataTable in a narrow panel collapses even on a wide screen. */
14148
+ .muka-data-table-wrapper--responsive {
14149
+ container-type: inline-size;
14150
+ }
14151
+
14152
+ /* Below --breakpoint-md (768px) of the wrapper's width. @container can't read
14153
+ custom properties, so the value is inlined as 767.98px. */
14154
+ @container (max-width: 767.98px) {
14155
+ /* Lift the table and body out of table layout. Without this the grid rows
14156
+ below get wrapped in anonymous table cells that shrink-wrap them to
14157
+ min-content, collapsing the flexible (1fr) stack track to 0. */
14158
+ .muka-data-table--responsive {
14159
+ display: block;
14160
+ /* Collapsed cards always use md cell padding regardless of the table's `size`
14161
+ — sm is too tight and lg wastes horizontal room, forcing the name to wrap. */
14162
+ --dt-pad-x: var(--datatable-cell-padding-x-md);
14163
+ --dt-pad-y: var(--datatable-cell-padding-y-md);
14164
+ }
14165
+
14166
+ .muka-data-table--responsive .muka-data-table__body {
14167
+ display: block;
14168
+ }
14169
+
14170
+ .muka-data-table--responsive .muka-data-table__head {
14171
+ display: none;
14172
+ }
14173
+
14174
+ .muka-data-table--responsive .muka-data-table__row {
14175
+ display: grid;
14176
+ grid-template-columns: 1fr auto auto;
14177
+ align-items: center;
14178
+ column-gap: var(--spacing-4);
14179
+ padding: var(--dt-pad-y) var(--dt-pad-x);
14180
+ }
14181
+
14182
+ /* Reset table cells; each visible mobile cell opts back in below. */
14183
+ .muka-data-table--responsive .muka-data-table__td {
14184
+ display: none;
14185
+ padding: 0;
14186
+ }
14187
+
14188
+ /* Pin every visible cell to the single grid row. The stack cell sits after the
14189
+ secondary cell in DOM order but targets an earlier column, so without this
14190
+ auto-placement spills it onto a second row (breaking vertical centering). */
14191
+ .muka-data-table--responsive .muka-data-table__td--select,
14192
+ .muka-data-table--responsive .muka-data-table__td--mobile-stack,
14193
+ .muka-data-table--responsive .muka-data-table__td--m-secondary,
14194
+ .muka-data-table--responsive .muka-data-table__td--action {
14195
+ grid-row: 1;
14196
+ }
14197
+
14198
+ .muka-data-table--responsive .muka-data-table__td--mobile-stack {
14199
+ display: block;
14200
+ grid-column: 1;
14201
+ min-width: 0;
14202
+ }
14203
+
14204
+ .muka-data-table--responsive .muka-data-table__td--m-secondary {
14205
+ display: block;
14206
+ grid-column: 2;
14207
+ /* Hug the widest secondary content (e.g. a status badge). The desktop column's
14208
+ min/max-width are inline styles, so `!important` is required to drop them and
14209
+ let the `auto` grid track shrink to the badge — freeing space for the name. */
14210
+ min-width: 0 !important;
14211
+ max-width: none !important;
14212
+ }
14213
+
14214
+ .muka-data-table--responsive .muka-data-table__td--action {
14215
+ display: block;
14216
+ grid-column: 3;
14217
+ width: auto;
14218
+ }
14219
+
14220
+ /* Cell-content wrappers: drop the fixed row-height slot so rows stay compact. */
14221
+ .muka-data-table--responsive .muka-data-table__td .muka-data-table__cell-content {
14222
+ min-height: 0;
14223
+ }
14224
+
14225
+ .muka-data-table--responsive .muka-data-table__td--m-secondary .muka-data-table__cell-content {
14226
+ justify-content: flex-end;
14227
+ }
14228
+
14229
+ /* Utility for cell content: hide a sub-element in the collapsed card. Use it to
14230
+ drop a redundant text label next to a compact visual (e.g. the "75%" beside a
14231
+ donut) so only the visual shows and the secondary column hugs to its width.
14232
+ `display: none` also collapses any surrounding flex `gap`, leaving no gutter. */
14233
+ .muka-data-table--responsive .muka-data-table__mobile-hidden {
14234
+ display: none;
14235
+ }
14236
+
14237
+ /* Stacked primary column: first field is the title, the rest are subtitle lines. */
14238
+ .muka-data-table__stack {
14239
+ display: flex;
14240
+ flex-direction: column;
14241
+ gap: var(--spacing-1);
14242
+ min-width: 0;
14243
+ }
14244
+
14245
+ /* A ProfileBadge in the collapsed card drops its avatar so the name sits
14246
+ flush-left and lines up with the other stacked primary/secondary text
14247
+ instead of being indented by the avatar. `display: none` also collapses the
14248
+ ProfileBadge's flex gap, so no placeholder whitespace is left behind. */
14249
+ .muka-data-table--responsive .muka-profile-badge__avatar {
14250
+ display: none;
14251
+ }
14252
+
14253
+ .muka-data-table__stack-title {
14254
+ font-family: var(--text-label-md-semibold-fontFamily);
14255
+ font-weight: var(--text-label-md-semibold-fontWeight);
14256
+ font-size: var(--text-label-md-semibold-fontSize);
14257
+ line-height: var(--text-label-md-semibold-lineHeight);
14258
+ color: var(--color-text-default-default);
14259
+ overflow: hidden;
14260
+ text-overflow: ellipsis;
14261
+ }
14262
+
14263
+ .muka-data-table__stack-line {
14264
+ font-family: var(--text-body-sm-regular-fontFamily);
14265
+ font-weight: var(--text-body-sm-regular-fontWeight);
14266
+ font-size: var(--text-body-sm-regular-fontSize);
14267
+ line-height: var(--text-body-sm-regular-lineHeight);
14268
+ color: var(--color-text-subtle-default);
14269
+ overflow: hidden;
14270
+ text-overflow: ellipsis;
14271
+ }
14272
+
14273
+ /* The stack title may itself be the stretched link. */
14274
+ .muka-data-table__stack-title .muka-data-table__row-link {
14275
+ color: inherit;
14276
+ text-decoration: none;
14277
+ }
14278
+
14279
+ /* Selection checkbox leads the mobile row: [checkbox | stack | secondary | action]. */
14280
+ .muka-data-table--responsive .muka-data-table__td--select {
14281
+ display: block;
14282
+ grid-column: 1;
14283
+ width: auto;
14284
+ }
14285
+
14286
+ .muka-data-table--responsive.muka-data-table--selectable .muka-data-table__row {
14287
+ grid-template-columns: auto 1fr auto auto;
14288
+ }
14289
+
14290
+ .muka-data-table--responsive.muka-data-table--selectable .muka-data-table__td--mobile-stack {
14291
+ grid-column: 2;
14292
+ }
14293
+
14294
+ .muka-data-table--responsive.muka-data-table--selectable .muka-data-table__td--m-secondary {
14295
+ grid-column: 3;
14296
+ }
14139
14297
 
14140
- /* Icons (leading + trailing) inherit their slot's foreground color */
14141
- .muka-chip .muka-icon {
14142
- color: inherit;
14298
+ .muka-data-table--responsive.muka-data-table--selectable .muka-data-table__td--action {
14299
+ grid-column: 4;
14300
+ }
14143
14301
  }
14144
14302
 
14145
14303
 
@@ -14430,271 +14588,235 @@ button.muka-chip__trailing[aria-expanded='true'],
14430
14588
  }
14431
14589
 
14432
14590
 
14433
- /* CheckboxTile */
14434
- /* CheckboxTile Component Styles - Using Muka Design Tokens */
14591
+ /* ChatMessageStack */
14592
+ /* ChatMessageStack Component Styles */
14435
14593
 
14436
- /* Base tile styles - horizontal */
14437
- .muka-checkbox-tile {
14594
+ .muka-chat-message-stack {
14438
14595
  display: flex;
14439
- align-items: center;
14440
- gap: var(--spacing-4);
14441
- padding: var(--spacing-4);
14442
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
14443
- border-radius: var(--input-field-radius-lg);
14444
- background-color: var(--color-surface-level3);
14445
- cursor: pointer;
14446
- transition: border-color 0.15s ease, border-width 0.15s ease;
14447
- overflow: hidden;
14448
- box-sizing: border-box;
14449
- }
14450
-
14451
- .muka-checkbox-tile--disabled {
14452
- cursor: not-allowed;
14453
- opacity: 0.6;
14454
- }
14455
-
14456
- /* Selected state */
14457
- .muka-checkbox-tile[data-checked] {
14458
- border-width: var(--border-width-bold);
14459
- border-color: var(--color-action-default);
14596
+ flex-direction: column;
14597
+ gap: var(--chatbubble-stack-gap);
14598
+ width: 100%;
14599
+ max-width: 100%;
14460
14600
  }
14461
14601
 
14462
- /* Vertical layout */
14463
- .muka-checkbox-tile--vertical {
14602
+ .muka-chat-message-stack__messages {
14603
+ display: flex;
14464
14604
  flex-direction: column;
14465
- align-items: center;
14466
- gap: var(--spacing-2);
14467
- position: relative;
14468
- width: 160px;
14605
+ gap: var(--chatbubble-stack-gap);
14606
+ width: 100%;
14469
14607
  }
14470
14608
 
14471
- /* Checkbox container */
14472
- .muka-checkbox-tile__checkbox {
14473
- flex-shrink: 0;
14609
+ /*
14610
+ * Reasoning sits above the stack, indented past the avatar rail so it lines up
14611
+ * with the bubbles rather than with the avatar (Figma 5379:47300).
14612
+ */
14613
+ .muka-chat-message-stack__reasoning {
14614
+ min-width: 0;
14474
14615
  }
14475
14616
 
14476
- /* Corner-positioned checkbox for vertical */
14477
- .muka-checkbox-tile__checkbox--corner {
14478
- position: absolute;
14479
- top: var(--spacing-4);
14480
- left: var(--spacing-4);
14617
+ /* In-thread widgets after the messages share the reasoning's indent. */
14618
+ .muka-chat-message-stack__widgets {
14619
+ display: flex;
14620
+ flex-direction: column;
14621
+ gap: var(--chatbubble-stack-gap);
14622
+ min-width: 0;
14481
14623
  }
14482
14624
 
14483
- /* Adjust corner position when selected (border is thicker) */
14484
- .muka-checkbox-tile[data-checked] .muka-checkbox-tile__checkbox--corner {
14485
- top: calc(var(--spacing-4) - 1px);
14486
- left: calc(var(--spacing-4) - 1px);
14625
+ .muka-chat-message-stack--has-avatar .muka-chat-message-stack__widgets,
14626
+ .muka-chat-message-stack--has-avatar .muka-chat-message-stack__reasoning {
14627
+ padding-left: calc(var(--chatbubble-avatar-size) + var(--chatbubble-row-gap));
14487
14628
  }
14488
14629
 
14489
- /* Icon */
14490
- .muka-checkbox-tile__icon {
14491
- display: flex;
14492
- align-items: center;
14493
- justify-content: center;
14494
- flex-shrink: 0;
14495
- width: var(--icon-size-default);
14496
- height: var(--icon-size-default);
14497
- color: var(--color-text-default-default);
14630
+ .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
14631
+ .muka-chat-message-stack__widgets,
14632
+ .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
14633
+ .muka-chat-message-stack__reasoning {
14634
+ padding-left: 0;
14635
+ padding-right: calc(var(--chatbubble-avatar-size) + var(--chatbubble-row-gap));
14498
14636
  }
14499
14637
 
14500
- .muka-checkbox-tile__icon svg {
14501
- width: 100%;
14502
- height: 100%;
14503
- }
14638
+ /* Follow the message's compact rail and gap below the desktop breakpoint */
14639
+ @media (max-width: 1023px) {
14640
+ .muka-chat-message-stack--has-avatar .muka-chat-message-stack__widgets,
14641
+ .muka-chat-message-stack--has-avatar .muka-chat-message-stack__reasoning {
14642
+ padding-left: calc(
14643
+ var(--chatbubble-avatar-size-compact) + var(--chatbubble-row-gap-compact)
14644
+ );
14645
+ }
14504
14646
 
14505
- /* Image */
14506
- .muka-checkbox-tile__image {
14507
- flex-shrink: 0;
14508
- overflow: hidden;
14509
- border-radius: var(--border-radius-sm);
14647
+ .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
14648
+ .muka-chat-message-stack__widgets,
14649
+ .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
14650
+ .muka-chat-message-stack__reasoning {
14651
+ padding-left: 0;
14652
+ padding-right: calc(
14653
+ var(--chatbubble-avatar-size-compact) + var(--chatbubble-row-gap-compact)
14654
+ );
14655
+ }
14510
14656
  }
14511
14657
 
14512
- .muka-checkbox-tile__image img {
14513
- display: block;
14514
- width: 100%;
14515
- height: 100%;
14516
- object-fit: cover;
14517
- }
14518
14658
 
14519
- /* Horizontal image sizing */
14520
- .muka-checkbox-tile__image--horizontal {
14521
- width: 40px;
14522
- height: 40px;
14523
- }
14659
+ /* ChatMessageList */
14660
+ /* ChatMessageList Component Styles */
14524
14661
 
14525
- /* Vertical image sizing */
14526
- .muka-checkbox-tile--vertical .muka-checkbox-tile__image {
14662
+ .muka-chat-message-list {
14663
+ flex: 1 1 auto;
14664
+ min-height: 0;
14527
14665
  width: 100%;
14528
- aspect-ratio: 4/3;
14666
+ overflow-x: clip;
14667
+ overflow-y: auto;
14668
+ background-color: var(--color-surface-level3);
14669
+ padding: var(--section-padding-vertical-default, var(--spacing-8))
14670
+ var(--section-padding-horizontal-default, var(--spacing-4));
14671
+ -webkit-overflow-scrolling: touch;
14672
+ overscroll-behavior: contain;
14529
14673
  }
14530
14674
 
14531
- /* Content container */
14532
- .muka-checkbox-tile__content {
14675
+ .muka-chat-message-list__inner {
14533
14676
  display: flex;
14534
14677
  flex-direction: column;
14535
- flex: 1;
14536
- min-width: 0;
14537
- gap: var(--spacing-2);
14678
+ align-items: stretch;
14679
+ gap: var(--spacing-8);
14680
+ width: 100%;
14681
+ max-width: var(--chat-column-max-width);
14682
+ margin: 0 auto;
14538
14683
  }
14539
14684
 
14540
- .muka-checkbox-tile__content-inner {
14541
- display: flex;
14542
- flex-direction: column;
14543
- gap: var(--spacing-1);
14544
- }
14685
+ /* ─── Print ────────────────────────────────────────────── */
14545
14686
 
14546
- /* Chip slot (replaces badge; use Chip component) */
14547
- .muka-checkbox-tile__chip {
14548
- flex-shrink: 0;
14549
- }
14687
+ @media print {
14688
+ .muka-chat-message-list {
14689
+ overflow: visible;
14690
+ height: auto;
14691
+ max-height: none;
14692
+ background: none;
14693
+ padding: 0;
14694
+ }
14550
14695
 
14551
- .muka-checkbox-tile__chip--vertical {
14552
- margin-top: var(--spacing-1);
14696
+ .muka-chat-message-list__inner {
14697
+ max-width: 100%;
14698
+ }
14553
14699
  }
14554
14700
 
14555
- /* Label */
14556
- .muka-checkbox-tile__label {
14557
- font-family: var(--text-body-lg-regular-fontFamily);
14558
- font-weight: var(--text-body-lg-regular-fontWeight);
14559
- font-size: var(--text-body-lg-regular-fontSize);
14560
- line-height: var(--text-body-lg-regular-lineHeight);
14561
- color: var(--color-text-default-default);
14562
- }
14563
14701
 
14564
- .muka-checkbox-tile__label--bold {
14565
- font-family: var(--text-label-lg-semibold-fontFamily);
14566
- font-weight: var(--text-label-lg-semibold-fontWeight);
14567
- font-size: var(--text-label-lg-semibold-fontSize);
14568
- line-height: var(--text-label-lg-semibold-lineHeight);
14569
- }
14702
+ /* ChatPhotoGrid */
14703
+ /* ChatPhotoGrid Component Styles */
14570
14704
 
14571
- .muka-checkbox-tile__label--center {
14572
- text-align: center;
14705
+ /*
14706
+ * The grid clips to its own radius and the tiles stay square, so only the four
14707
+ * outer corners round — matching the Figma "Wrapper" frame (5225:1394).
14708
+ */
14709
+ .muka-chat-photo-grid {
14710
+ display: grid;
14711
+ gap: var(--chatphotogrid-gap);
14712
+ width: 100%;
14713
+ min-width: 0;
14714
+ overflow: hidden;
14715
+ border-radius: var(--chatphotogrid-radius);
14573
14716
  }
14574
14717
 
14575
- /* Caption */
14576
- .muka-checkbox-tile__caption {
14577
- font-family: var(--text-body-base-regular-fontFamily);
14578
- font-weight: var(--text-body-base-regular-fontWeight);
14579
- font-size: var(--text-body-base-regular-fontSize);
14580
- line-height: var(--text-body-base-regular-lineHeight);
14581
- color: var(--color-text-subtle-default);
14582
- }
14718
+ /* ─── Tiles ────────────────────────────────────────────── */
14583
14719
 
14584
- /* Disabled states */
14585
- .muka-checkbox-tile--disabled .muka-checkbox-tile__label,
14586
- .muka-checkbox-tile--disabled .muka-checkbox-tile__icon {
14587
- color: var(--color-text-subtle-default);
14720
+ .muka-chat-photo-grid__tile {
14721
+ position: relative;
14722
+ display: block;
14723
+ overflow: hidden;
14724
+ min-width: 0;
14725
+ padding: 0;
14726
+ margin: 0;
14727
+ border: none;
14728
+ background-color: var(--chatphotogrid-color-placeholder);
14729
+ aspect-ratio: 1 / 1;
14588
14730
  }
14589
14731
 
14732
+ button.muka-chat-photo-grid__tile {
14733
+ cursor: pointer;
14734
+ appearance: none;
14735
+ }
14590
14736
 
14591
- /* ChatMessageStack */
14592
- /* ChatMessageStack Component Styles */
14737
+ button.muka-chat-photo-grid__tile:focus-visible {
14738
+ outline: var(--border-width-bold) solid var(--color-border-focus);
14739
+ /* Inset, so the grid's overflow clip cannot cut the ring off on corner tiles */
14740
+ outline-offset: calc(-1 * var(--border-width-bold));
14741
+ }
14593
14742
 
14594
- .muka-chat-message-stack {
14595
- display: flex;
14596
- flex-direction: column;
14597
- gap: var(--chatbubble-stack-gap);
14743
+ .muka-chat-photo-grid__image {
14744
+ display: block;
14598
14745
  width: 100%;
14599
- max-width: 100%;
14746
+ height: 100%;
14747
+ object-fit: cover;
14600
14748
  }
14601
14749
 
14602
- .muka-chat-message-stack__messages {
14750
+ /* ─── Overflow tile ────────────────────────────────────── */
14751
+
14752
+ .muka-chat-photo-grid__overflow {
14753
+ position: absolute;
14754
+ inset: 0;
14603
14755
  display: flex;
14604
- flex-direction: column;
14605
- gap: var(--chatbubble-stack-gap);
14606
- width: 100%;
14756
+ align-items: center;
14757
+ justify-content: center;
14758
+ background-color: var(--chatphotogrid-color-overflow-background);
14759
+ color: var(--chatphotogrid-color-overflow-foreground);
14760
+ font-family: var(--text-body-2xl-regular-fontFamily);
14761
+ font-weight: var(--text-body-2xl-regular-fontWeight);
14762
+ font-size: var(--text-body-2xl-regular-fontSize);
14763
+ line-height: var(--text-body-2xl-regular-lineHeight);
14607
14764
  }
14608
14765
 
14609
- /*
14610
- * Reasoning sits above the stack, indented past the avatar rail so it lines up
14611
- * with the bubbles rather than with the avatar (Figma 5379:47300).
14612
- */
14613
- .muka-chat-message-stack__reasoning {
14614
- min-width: 0;
14766
+ /* ─── Layouts ──────────────────────────────────────────── */
14767
+
14768
+ .muka-chat-photo-grid--1 {
14769
+ grid-template-columns: 1fr;
14615
14770
  }
14616
14771
 
14617
- /* In-thread widgets after the messages share the reasoning's indent. */
14618
- .muka-chat-message-stack__widgets {
14619
- display: flex;
14620
- flex-direction: column;
14621
- gap: var(--chatbubble-stack-gap);
14622
- min-width: 0;
14772
+ .muka-chat-photo-grid--landscape .muka-chat-photo-grid__tile {
14773
+ aspect-ratio: 4 / 3;
14623
14774
  }
14624
14775
 
14625
- .muka-chat-message-stack--has-avatar .muka-chat-message-stack__widgets,
14626
- .muka-chat-message-stack--has-avatar .muka-chat-message-stack__reasoning {
14627
- padding-left: calc(var(--chatbubble-avatar-size) + var(--chatbubble-row-gap));
14776
+ .muka-chat-photo-grid--portrait .muka-chat-photo-grid__tile {
14777
+ aspect-ratio: 3 / 4;
14628
14778
  }
14629
14779
 
14630
- .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
14631
- .muka-chat-message-stack__widgets,
14632
- .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
14633
- .muka-chat-message-stack__reasoning {
14634
- padding-left: 0;
14635
- padding-right: calc(var(--chatbubble-avatar-size) + var(--chatbubble-row-gap));
14780
+ .muka-chat-photo-grid--2 {
14781
+ grid-template-columns: repeat(2, 1fr);
14636
14782
  }
14637
14783
 
14638
- /* Follow the message's compact rail and gap below the desktop breakpoint */
14639
- @media (max-width: 1023px) {
14640
- .muka-chat-message-stack--has-avatar .muka-chat-message-stack__widgets,
14641
- .muka-chat-message-stack--has-avatar .muka-chat-message-stack__reasoning {
14642
- padding-left: calc(
14643
- var(--chatbubble-avatar-size-compact) + var(--chatbubble-row-gap-compact)
14644
- );
14645
- }
14784
+ .muka-chat-photo-grid--3 {
14785
+ grid-template-columns: repeat(3, 1fr);
14786
+ }
14646
14787
 
14647
- .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
14648
- .muka-chat-message-stack__widgets,
14649
- .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
14650
- .muka-chat-message-stack__reasoning {
14651
- padding-left: 0;
14652
- padding-right: calc(
14653
- var(--chatbubble-avatar-size-compact) + var(--chatbubble-row-gap-compact)
14654
- );
14655
- }
14788
+ .muka-chat-photo-grid--4 {
14789
+ grid-template-columns: repeat(2, 1fr);
14656
14790
  }
14657
14791
 
14792
+ /* 5 photos: a 2-up row above a 3-up row, on a shared 6-column track */
14793
+ .muka-chat-photo-grid--5 {
14794
+ grid-template-columns: repeat(6, 1fr);
14795
+ }
14658
14796
 
14659
- /* ChatMessageList */
14660
- /* ChatMessageList Component Styles */
14797
+ .muka-chat-photo-grid--5 .muka-chat-photo-grid__tile:nth-child(-n + 2) {
14798
+ grid-column: span 3;
14799
+ }
14661
14800
 
14662
- .muka-chat-message-list {
14663
- flex: 1 1 auto;
14664
- min-height: 0;
14665
- width: 100%;
14666
- overflow-x: clip;
14667
- overflow-y: auto;
14668
- background-color: var(--color-surface-level3);
14669
- padding: var(--section-padding-vertical-default, var(--spacing-8))
14670
- var(--section-padding-horizontal-default, var(--spacing-4));
14671
- -webkit-overflow-scrolling: touch;
14672
- overscroll-behavior: contain;
14801
+ .muka-chat-photo-grid--5 .muka-chat-photo-grid__tile:nth-child(n + 3) {
14802
+ grid-column: span 2;
14673
14803
  }
14674
14804
 
14675
- .muka-chat-message-list__inner {
14676
- display: flex;
14677
- flex-direction: column;
14678
- align-items: stretch;
14679
- gap: var(--spacing-8);
14680
- width: 100%;
14681
- max-width: var(--chat-column-max-width);
14682
- margin: 0 auto;
14805
+ .muka-chat-photo-grid--6,
14806
+ .muka-chat-photo-grid--overflow {
14807
+ grid-template-columns: repeat(3, 1fr);
14683
14808
  }
14684
14809
 
14685
14810
  /* ─── Print ────────────────────────────────────────────── */
14686
14811
 
14687
14812
  @media print {
14688
- .muka-chat-message-list {
14689
- overflow: visible;
14690
- height: auto;
14691
- max-height: none;
14692
- background: none;
14693
- padding: 0;
14813
+ .muka-chat-photo-grid {
14814
+ break-inside: avoid;
14694
14815
  }
14695
14816
 
14696
- .muka-chat-message-list__inner {
14697
- max-width: 100%;
14817
+ .muka-chat-photo-grid__image {
14818
+ print-color-adjust: exact;
14819
+ -webkit-print-color-adjust: exact;
14698
14820
  }
14699
14821
  }
14700
14822
 
@@ -15040,128 +15162,6 @@ button.muka-chip__trailing[aria-expanded='true'],
15040
15162
  }
15041
15163
 
15042
15164
 
15043
- /* ChatPhotoGrid */
15044
- /* ChatPhotoGrid Component Styles */
15045
-
15046
- /*
15047
- * The grid clips to its own radius and the tiles stay square, so only the four
15048
- * outer corners round — matching the Figma "Wrapper" frame (5225:1394).
15049
- */
15050
- .muka-chat-photo-grid {
15051
- display: grid;
15052
- gap: var(--chatphotogrid-gap);
15053
- width: 100%;
15054
- min-width: 0;
15055
- overflow: hidden;
15056
- border-radius: var(--chatphotogrid-radius);
15057
- }
15058
-
15059
- /* ─── Tiles ────────────────────────────────────────────── */
15060
-
15061
- .muka-chat-photo-grid__tile {
15062
- position: relative;
15063
- display: block;
15064
- overflow: hidden;
15065
- min-width: 0;
15066
- padding: 0;
15067
- margin: 0;
15068
- border: none;
15069
- background-color: var(--chatphotogrid-color-placeholder);
15070
- aspect-ratio: 1 / 1;
15071
- }
15072
-
15073
- button.muka-chat-photo-grid__tile {
15074
- cursor: pointer;
15075
- appearance: none;
15076
- }
15077
-
15078
- button.muka-chat-photo-grid__tile:focus-visible {
15079
- outline: var(--border-width-bold) solid var(--color-border-focus);
15080
- /* Inset, so the grid's overflow clip cannot cut the ring off on corner tiles */
15081
- outline-offset: calc(-1 * var(--border-width-bold));
15082
- }
15083
-
15084
- .muka-chat-photo-grid__image {
15085
- display: block;
15086
- width: 100%;
15087
- height: 100%;
15088
- object-fit: cover;
15089
- }
15090
-
15091
- /* ─── Overflow tile ────────────────────────────────────── */
15092
-
15093
- .muka-chat-photo-grid__overflow {
15094
- position: absolute;
15095
- inset: 0;
15096
- display: flex;
15097
- align-items: center;
15098
- justify-content: center;
15099
- background-color: var(--chatphotogrid-color-overflow-background);
15100
- color: var(--chatphotogrid-color-overflow-foreground);
15101
- font-family: var(--text-body-2xl-regular-fontFamily);
15102
- font-weight: var(--text-body-2xl-regular-fontWeight);
15103
- font-size: var(--text-body-2xl-regular-fontSize);
15104
- line-height: var(--text-body-2xl-regular-lineHeight);
15105
- }
15106
-
15107
- /* ─── Layouts ──────────────────────────────────────────── */
15108
-
15109
- .muka-chat-photo-grid--1 {
15110
- grid-template-columns: 1fr;
15111
- }
15112
-
15113
- .muka-chat-photo-grid--landscape .muka-chat-photo-grid__tile {
15114
- aspect-ratio: 4 / 3;
15115
- }
15116
-
15117
- .muka-chat-photo-grid--portrait .muka-chat-photo-grid__tile {
15118
- aspect-ratio: 3 / 4;
15119
- }
15120
-
15121
- .muka-chat-photo-grid--2 {
15122
- grid-template-columns: repeat(2, 1fr);
15123
- }
15124
-
15125
- .muka-chat-photo-grid--3 {
15126
- grid-template-columns: repeat(3, 1fr);
15127
- }
15128
-
15129
- .muka-chat-photo-grid--4 {
15130
- grid-template-columns: repeat(2, 1fr);
15131
- }
15132
-
15133
- /* 5 photos: a 2-up row above a 3-up row, on a shared 6-column track */
15134
- .muka-chat-photo-grid--5 {
15135
- grid-template-columns: repeat(6, 1fr);
15136
- }
15137
-
15138
- .muka-chat-photo-grid--5 .muka-chat-photo-grid__tile:nth-child(-n + 2) {
15139
- grid-column: span 3;
15140
- }
15141
-
15142
- .muka-chat-photo-grid--5 .muka-chat-photo-grid__tile:nth-child(n + 3) {
15143
- grid-column: span 2;
15144
- }
15145
-
15146
- .muka-chat-photo-grid--6,
15147
- .muka-chat-photo-grid--overflow {
15148
- grid-template-columns: repeat(3, 1fr);
15149
- }
15150
-
15151
- /* ─── Print ────────────────────────────────────────────── */
15152
-
15153
- @media print {
15154
- .muka-chat-photo-grid {
15155
- break-inside: avoid;
15156
- }
15157
-
15158
- .muka-chat-photo-grid__image {
15159
- print-color-adjust: exact;
15160
- -webkit-print-color-adjust: exact;
15161
- }
15162
- }
15163
-
15164
-
15165
15165
  /* ChatEvent */
15166
15166
  /* ChatEvent: a line in a chat that isn't a message from a person */
15167
15167
 
@@ -15253,6 +15253,29 @@ button.muka-chat-photo-grid__tile:focus-visible {
15253
15253
  flex-shrink: 0;
15254
15254
  }
15255
15255
 
15256
+ /* ─── Suggestions ──────────────────────────────────────── */
15257
+
15258
+ /*
15259
+ * Suggestions for the typed text sit in the composer, just above the field:
15260
+ * the menu surface and rows (Menu.css), in flow rather than a floating
15261
+ * popover, so they stay above the mobile keyboard.
15262
+ */
15263
+ .muka-chat-composer__suggestions {
15264
+ width: 100%;
15265
+ min-width: 0;
15266
+ box-sizing: border-box;
15267
+ animation: none;
15268
+ }
15269
+
15270
+ /* One line per label, the match included; long labels truncate. */
15271
+ .muka-chat-composer__suggestion-text {
15272
+ display: block;
15273
+ min-width: 0;
15274
+ overflow: hidden;
15275
+ text-overflow: ellipsis;
15276
+ white-space: nowrap;
15277
+ }
15278
+
15256
15279
  /* ─── Text field ───────────────────────────────────────── */
15257
15280
 
15258
15281
  .muka-chat-composer__field {