@revikornmann/muka-ui 0.29.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/cjs/components/Alert/Alert.css +8 -0
  2. package/dist/cjs/components/Alert/Alert.js.map +1 -1
  3. package/dist/cjs/components/ChatComposer/ChatComposer.css +121 -1
  4. package/dist/cjs/components/ChatComposer/ChatComposer.js +148 -21
  5. package/dist/cjs/components/ChatComposer/ChatComposer.js.map +1 -1
  6. package/dist/cjs/components/ChatComposer/index.js.map +1 -1
  7. package/dist/cjs/components/Chip/Chip.css +75 -23
  8. package/dist/cjs/components/Chip/Chip.js +18 -8
  9. package/dist/cjs/components/Chip/Chip.js.map +1 -1
  10. package/dist/cjs/components/PhotoUploader/PhotoUploader.js.map +1 -1
  11. package/dist/cjs/components/ProgressTracker/ProgressTracker.css +23 -5
  12. package/dist/cjs/components/ProgressTracker/ProgressTracker.js +8 -6
  13. package/dist/cjs/components/ProgressTracker/ProgressTracker.js.map +1 -1
  14. package/dist/cjs/components/index.js.map +1 -1
  15. package/dist/esm/components/Alert/Alert.css +8 -0
  16. package/dist/esm/components/Alert/Alert.js.map +1 -1
  17. package/dist/esm/components/ChatComposer/ChatComposer.css +121 -1
  18. package/dist/esm/components/ChatComposer/ChatComposer.js +150 -23
  19. package/dist/esm/components/ChatComposer/ChatComposer.js.map +1 -1
  20. package/dist/esm/components/ChatComposer/index.js +1 -1
  21. package/dist/esm/components/ChatComposer/index.js.map +1 -1
  22. package/dist/esm/components/Chip/Chip.css +75 -23
  23. package/dist/esm/components/Chip/Chip.js +16 -8
  24. package/dist/esm/components/Chip/Chip.js.map +1 -1
  25. package/dist/esm/components/PhotoUploader/PhotoUploader.js.map +1 -1
  26. package/dist/esm/components/ProgressTracker/ProgressTracker.css +23 -5
  27. package/dist/esm/components/ProgressTracker/ProgressTracker.js +8 -6
  28. package/dist/esm/components/ProgressTracker/ProgressTracker.js.map +1 -1
  29. package/dist/esm/components/index.js +1 -1
  30. package/dist/esm/components/index.js.map +1 -1
  31. package/dist/styles/components/Alert.css +8 -0
  32. package/dist/styles/components/ChatComposer.css +121 -1
  33. package/dist/styles/components/Chip.css +75 -23
  34. package/dist/styles/components/ProgressTracker.css +23 -5
  35. package/dist/styles/index.css +1625 -1427
  36. package/dist/styles/muka-dark.css +1625 -1427
  37. package/dist/styles/muka-light.css +1625 -1427
  38. package/dist/styles/wireframe-dark.css +1625 -1427
  39. package/dist/styles/wireframe-light.css +1625 -1427
  40. package/dist/types/components/Alert/Alert.d.ts +1 -1
  41. package/dist/types/components/Alert/Alert.d.ts.map +1 -1
  42. package/dist/types/components/ChatComposer/ChatComposer.d.ts +83 -12
  43. package/dist/types/components/ChatComposer/ChatComposer.d.ts.map +1 -1
  44. package/dist/types/components/ChatComposer/index.d.ts +1 -1
  45. package/dist/types/components/ChatComposer/index.d.ts.map +1 -1
  46. package/dist/types/components/Chip/Chip.d.ts +13 -3
  47. package/dist/types/components/Chip/Chip.d.ts.map +1 -1
  48. package/dist/types/components/PhotoUploader/PhotoUploader.d.ts.map +1 -1
  49. package/dist/types/components/ProgressTracker/ProgressTracker.d.ts +10 -4
  50. package/dist/types/components/ProgressTracker/ProgressTracker.d.ts.map +1 -1
  51. package/dist/types/components/index.d.ts +1 -1
  52. package/dist/types/components/index.d.ts.map +1 -1
  53. package/package.json +1 -1
@@ -4758,84 +4758,6 @@ body {
4758
4758
  }
4759
4759
 
4760
4760
 
4761
- /* Spinner */
4762
- /* Spinner Component Styles */
4763
-
4764
- .muka-spinner {
4765
- display: inline-flex;
4766
- align-items: center;
4767
- justify-content: center;
4768
- color: var(--color-text-default-default);
4769
- line-height: 0;
4770
- }
4771
-
4772
- .muka-spinner--subtle {
4773
- color: var(--color-text-subtle-default);
4774
- }
4775
-
4776
- .muka-spinner--inverse {
4777
- color: var(--color-text-default-inverse);
4778
- }
4779
-
4780
- .muka-spinner__circle {
4781
- display: inline-block;
4782
- border-radius: 50%;
4783
- border-style: solid;
4784
- border-color: currentColor;
4785
- border-right-color: transparent;
4786
- animation: muka-spinner-rotate 0.7s linear infinite;
4787
- box-sizing: border-box;
4788
- }
4789
-
4790
- /* ─── Sizes ───────────────────────────────────────────── */
4791
-
4792
- .muka-spinner--sm .muka-spinner__circle {
4793
- width: 16px;
4794
- height: 16px;
4795
- border-width: 2px;
4796
- }
4797
-
4798
- .muka-spinner--md .muka-spinner__circle {
4799
- width: 20px;
4800
- height: 20px;
4801
- border-width: 2px;
4802
- }
4803
-
4804
- .muka-spinner--lg .muka-spinner__circle {
4805
- width: 24px;
4806
- height: 24px;
4807
- border-width: 3px;
4808
- }
4809
-
4810
- /* ─── Visually-hidden label ───────────────────────────── */
4811
-
4812
- .muka-spinner__sr-label {
4813
- position: absolute;
4814
- width: 1px;
4815
- height: 1px;
4816
- padding: 0;
4817
- margin: -1px;
4818
- overflow: hidden;
4819
- clip: rect(0, 0, 0, 0);
4820
- white-space: nowrap;
4821
- border: 0;
4822
- }
4823
-
4824
- /* ─── Reduced motion ──────────────────────────────────── */
4825
-
4826
- @keyframes muka-spinner-rotate {
4827
- to {
4828
- transform: rotate(360deg);
4829
- }
4830
- }
4831
-
4832
- @media (prefers-reduced-motion: reduce) {
4833
- .muka-spinner__circle {
4834
- animation-duration: 2.5s;
4835
- }
4836
- }
4837
-
4838
-
4839
4761
  /* SpecList */
4840
4762
  /* SpecList Component Styles */
4841
4763
 
@@ -5071,6 +4993,84 @@ body {
5071
4993
  }
5072
4994
 
5073
4995
 
4996
+ /* Spinner */
4997
+ /* Spinner Component Styles */
4998
+
4999
+ .muka-spinner {
5000
+ display: inline-flex;
5001
+ align-items: center;
5002
+ justify-content: center;
5003
+ color: var(--color-text-default-default);
5004
+ line-height: 0;
5005
+ }
5006
+
5007
+ .muka-spinner--subtle {
5008
+ color: var(--color-text-subtle-default);
5009
+ }
5010
+
5011
+ .muka-spinner--inverse {
5012
+ color: var(--color-text-default-inverse);
5013
+ }
5014
+
5015
+ .muka-spinner__circle {
5016
+ display: inline-block;
5017
+ border-radius: 50%;
5018
+ border-style: solid;
5019
+ border-color: currentColor;
5020
+ border-right-color: transparent;
5021
+ animation: muka-spinner-rotate 0.7s linear infinite;
5022
+ box-sizing: border-box;
5023
+ }
5024
+
5025
+ /* ─── Sizes ───────────────────────────────────────────── */
5026
+
5027
+ .muka-spinner--sm .muka-spinner__circle {
5028
+ width: 16px;
5029
+ height: 16px;
5030
+ border-width: 2px;
5031
+ }
5032
+
5033
+ .muka-spinner--md .muka-spinner__circle {
5034
+ width: 20px;
5035
+ height: 20px;
5036
+ border-width: 2px;
5037
+ }
5038
+
5039
+ .muka-spinner--lg .muka-spinner__circle {
5040
+ width: 24px;
5041
+ height: 24px;
5042
+ border-width: 3px;
5043
+ }
5044
+
5045
+ /* ─── Visually-hidden label ───────────────────────────── */
5046
+
5047
+ .muka-spinner__sr-label {
5048
+ position: absolute;
5049
+ width: 1px;
5050
+ height: 1px;
5051
+ padding: 0;
5052
+ margin: -1px;
5053
+ overflow: hidden;
5054
+ clip: rect(0, 0, 0, 0);
5055
+ white-space: nowrap;
5056
+ border: 0;
5057
+ }
5058
+
5059
+ /* ─── Reduced motion ──────────────────────────────────── */
5060
+
5061
+ @keyframes muka-spinner-rotate {
5062
+ to {
5063
+ transform: rotate(360deg);
5064
+ }
5065
+ }
5066
+
5067
+ @media (prefers-reduced-motion: reduce) {
5068
+ .muka-spinner__circle {
5069
+ animation-duration: 2.5s;
5070
+ }
5071
+ }
5072
+
5073
+
5074
5074
  /* SmsOtpField */
5075
5075
  /* SmsOtpField Component Styles - Using Muka Design Tokens */
5076
5076
 
@@ -5263,6 +5263,81 @@ body {
5263
5263
  }
5264
5264
 
5265
5265
 
5266
+ /* Skeleton */
5267
+ /* Skeleton Component Styles */
5268
+
5269
+ .muka-skeleton {
5270
+ background-color: var(--color-surface-level1);
5271
+ display: block;
5272
+ }
5273
+
5274
+ /* Variants */
5275
+ .muka-skeleton--text {
5276
+ height: 1em;
5277
+ border-radius: var(--radius-md);
5278
+ width: 100%;
5279
+ }
5280
+
5281
+ .muka-skeleton--circular {
5282
+ width: 2.5rem;
5283
+ height: 2.5rem;
5284
+ border-radius: var(--radius-full);
5285
+ }
5286
+
5287
+ .muka-skeleton--rectangular {
5288
+ height: 7.5rem;
5289
+ border-radius: var(--radius-md);
5290
+ width: 100%;
5291
+ }
5292
+
5293
+ /* Last line in multi-line text is shorter */
5294
+ .muka-skeleton--last-line {
5295
+ width: 80%;
5296
+ }
5297
+
5298
+ /* Lines container */
5299
+ .muka-skeleton__lines {
5300
+ display: flex;
5301
+ flex-direction: column;
5302
+ gap: var(--spacing-2);
5303
+ }
5304
+
5305
+ /* Shimmer animation */
5306
+ @keyframes muka-skeleton-shimmer {
5307
+ 0% {
5308
+ background-position: -200% 0;
5309
+ }
5310
+ 100% {
5311
+ background-position: 200% 0;
5312
+ }
5313
+ }
5314
+
5315
+ .muka-skeleton--shimmer {
5316
+ background: linear-gradient(
5317
+ 90deg,
5318
+ var(--color-surface-level1) 25%,
5319
+ var(--color-surface-level2) 50%,
5320
+ var(--color-surface-level1) 75%
5321
+ );
5322
+ background-size: 200% 100%;
5323
+ animation: muka-skeleton-shimmer 1.5s ease-in-out infinite;
5324
+ }
5325
+
5326
+ /* Pulse animation */
5327
+ @keyframes muka-skeleton-pulse {
5328
+ 0%, 100% {
5329
+ opacity: 1;
5330
+ }
5331
+ 50% {
5332
+ opacity: 0.4;
5333
+ }
5334
+ }
5335
+
5336
+ .muka-skeleton--pulse {
5337
+ animation: muka-skeleton-pulse 1.5s ease-in-out infinite;
5338
+ }
5339
+
5340
+
5266
5341
  /* Sheet */
5267
5342
  /* Sheet Component Styles */
5268
5343
 
@@ -5343,98 +5418,23 @@ body {
5343
5418
  }
5344
5419
 
5345
5420
 
5346
- /* Skeleton */
5347
- /* Skeleton Component Styles */
5421
+ /* Select */
5422
+ /* Select Component Styles - Aligned with Input for consistency */
5348
5423
 
5349
- .muka-skeleton {
5350
- background-color: var(--color-surface-level1);
5351
- display: block;
5424
+ .muka-select {
5425
+ display: inline-flex;
5426
+ flex-direction: column;
5427
+ gap: var(--spacing-2);
5352
5428
  }
5353
5429
 
5354
- /* Variants */
5355
- .muka-skeleton--text {
5356
- height: 1em;
5357
- border-radius: var(--radius-md);
5430
+ .muka-select--full-width {
5358
5431
  width: 100%;
5359
5432
  }
5360
5433
 
5361
- .muka-skeleton--circular {
5362
- width: 2.5rem;
5363
- height: 2.5rem;
5364
- border-radius: var(--radius-full);
5365
- }
5366
-
5367
- .muka-skeleton--rectangular {
5368
- height: 7.5rem;
5369
- border-radius: var(--radius-md);
5370
- width: 100%;
5371
- }
5372
-
5373
- /* Last line in multi-line text is shorter */
5374
- .muka-skeleton--last-line {
5375
- width: 80%;
5376
- }
5377
-
5378
- /* Lines container */
5379
- .muka-skeleton__lines {
5380
- display: flex;
5381
- flex-direction: column;
5382
- gap: var(--spacing-2);
5383
- }
5384
-
5385
- /* Shimmer animation */
5386
- @keyframes muka-skeleton-shimmer {
5387
- 0% {
5388
- background-position: -200% 0;
5389
- }
5390
- 100% {
5391
- background-position: 200% 0;
5392
- }
5393
- }
5394
-
5395
- .muka-skeleton--shimmer {
5396
- background: linear-gradient(
5397
- 90deg,
5398
- var(--color-surface-level1) 25%,
5399
- var(--color-surface-level2) 50%,
5400
- var(--color-surface-level1) 75%
5401
- );
5402
- background-size: 200% 100%;
5403
- animation: muka-skeleton-shimmer 1.5s ease-in-out infinite;
5404
- }
5405
-
5406
- /* Pulse animation */
5407
- @keyframes muka-skeleton-pulse {
5408
- 0%, 100% {
5409
- opacity: 1;
5410
- }
5411
- 50% {
5412
- opacity: 0.4;
5413
- }
5414
- }
5415
-
5416
- .muka-skeleton--pulse {
5417
- animation: muka-skeleton-pulse 1.5s ease-in-out infinite;
5418
- }
5419
-
5420
-
5421
- /* Select */
5422
- /* Select Component Styles - Aligned with Input for consistency */
5423
-
5424
- .muka-select {
5425
- display: inline-flex;
5426
- flex-direction: column;
5427
- gap: var(--spacing-2);
5428
- }
5429
-
5430
- .muka-select--full-width {
5431
- width: 100%;
5432
- }
5433
-
5434
- /* Label */
5435
- .muka-select__label {
5436
- color: var(--color-text-default-default);
5437
- cursor: pointer;
5434
+ /* Label */
5435
+ .muka-select__label {
5436
+ color: var(--color-text-default-default);
5437
+ cursor: pointer;
5438
5438
  }
5439
5439
 
5440
5440
  .muka-select__label--sm {
@@ -6780,17 +6780,26 @@ body {
6780
6780
  color: var(--color-text-default-inverse);
6781
6781
  }
6782
6782
 
6783
- .muka-progress-tracker--horizontal .muka-progress-tracker__indicator--past {
6783
+ .muka-progress-tracker--horizontal .muka-progress-tracker__indicator--interactive {
6784
6784
  cursor: pointer;
6785
6785
  }
6786
6786
 
6787
- .muka-progress-tracker--horizontal .muka-progress-tracker__indicator--past:hover {
6787
+ .muka-progress-tracker--horizontal .muka-progress-tracker__indicator--interactive:focus-visible {
6788
+ outline: 2px solid var(--color-border-focus);
6789
+ outline-offset: 2px;
6790
+ }
6791
+
6792
+ .muka-progress-tracker--horizontal .muka-progress-tracker__indicator--past.muka-progress-tracker__indicator--interactive:hover {
6788
6793
  background-color: var(--alias-color-accent-pressed);
6789
6794
  }
6790
6795
 
6791
- .muka-progress-tracker--horizontal .muka-progress-tracker__indicator--past:focus-visible {
6792
- outline: 2px solid var(--color-border-focus);
6793
- outline-offset: 2px;
6796
+ .muka-progress-tracker--horizontal .muka-progress-tracker__indicator--current.muka-progress-tracker__indicator--interactive:hover {
6797
+ background-color: var(--alias-color-accent-hover);
6798
+ }
6799
+
6800
+ /* Upcoming (clickableSteps="all"): a 4px halo, the vertical hover's 40px circle */
6801
+ .muka-progress-tracker--horizontal .muka-progress-tracker__indicator--upcoming.muka-progress-tracker__indicator--interactive:hover {
6802
+ box-shadow: 0 0 0 4px var(--color-surface-level1);
6794
6803
  }
6795
6804
 
6796
6805
  /* Current: accent default circle with white number */
@@ -6863,6 +6872,15 @@ body {
6863
6872
  font-weight: var(--text-label-sm-bold-fontWeight);
6864
6873
  }
6865
6874
 
6875
+ /* Selected step: a pill behind the label (horizontal), matching the vertical
6876
+ selected pill's surface. The label stays centred under its indicator. */
6877
+ .muka-progress-tracker--horizontal .muka-progress-tracker__step[data-selected='true'] .muka-progress-tracker__label {
6878
+ padding: 0 var(--spacing-2);
6879
+ border-radius: var(--border-radius-full);
6880
+ background-color: var(--color-surface-level1);
6881
+ max-width: calc(120px + 2 * var(--spacing-2));
6882
+ }
6883
+
6866
6884
  /* ─── Connectors layer (behind indicators) — horizontal ─── */
6867
6885
  .muka-progress-tracker--horizontal .muka-progress-tracker__connectors {
6868
6886
  display: flex;
@@ -7734,6 +7752,37 @@ body {
7734
7752
  }
7735
7753
 
7736
7754
 
7755
+ /* Popover */
7756
+ /* Popover Component Styles */
7757
+
7758
+ .muka-popover__content {
7759
+ background-color: var(--color-surface-level3);
7760
+ border: var(--border-width-regular) solid var(--color-border-default);
7761
+ border-radius: var(--radius-md);
7762
+ padding: var(--spacing-4);
7763
+ box-shadow: var(--shadow-level3);
7764
+ max-width: 20rem;
7765
+ z-index: 50;
7766
+ animation: muka-popover-fade-in 150ms ease;
7767
+ }
7768
+
7769
+ @keyframes muka-popover-fade-in {
7770
+ from {
7771
+ opacity: 0;
7772
+ transform: scale(0.96);
7773
+ }
7774
+ to {
7775
+ opacity: 1;
7776
+ transform: scale(1);
7777
+ }
7778
+ }
7779
+
7780
+ /* Arrow */
7781
+ .muka-popover__arrow {
7782
+ fill: var(--color-surface-level3);
7783
+ }
7784
+
7785
+
7737
7786
  /* PieChart */
7738
7787
  /* PieChart Component Styles - Using Muka Design Tokens */
7739
7788
 
@@ -7831,37 +7880,6 @@ body {
7831
7880
  }
7832
7881
 
7833
7882
 
7834
- /* Popover */
7835
- /* Popover Component Styles */
7836
-
7837
- .muka-popover__content {
7838
- background-color: var(--color-surface-level3);
7839
- border: var(--border-width-regular) solid var(--color-border-default);
7840
- border-radius: var(--radius-md);
7841
- padding: var(--spacing-4);
7842
- box-shadow: var(--shadow-level3);
7843
- max-width: 20rem;
7844
- z-index: 50;
7845
- animation: muka-popover-fade-in 150ms ease;
7846
- }
7847
-
7848
- @keyframes muka-popover-fade-in {
7849
- from {
7850
- opacity: 0;
7851
- transform: scale(0.96);
7852
- }
7853
- to {
7854
- opacity: 1;
7855
- transform: scale(1);
7856
- }
7857
- }
7858
-
7859
- /* Arrow */
7860
- .muka-popover__arrow {
7861
- fill: var(--color-surface-level3);
7862
- }
7863
-
7864
-
7865
7883
  /* PhotoUploader */
7866
7884
  /* PhotoUploader Component Styles - Using Muka Design Tokens */
7867
7885
 
@@ -10197,93 +10215,234 @@ li.muka-listitem {
10197
10215
  }
10198
10216
 
10199
10217
 
10200
- /* EmojiPicker */
10201
- /* EmojiPicker Component Styles */
10218
+ /* EmptyState */
10219
+ /* EmptyState Component Styles - Using Muka Design Tokens */
10202
10220
 
10203
- .muka-emoji-picker {
10204
- display: grid;
10205
- grid-template-columns: repeat(8, 1fr);
10206
- gap: var(--spacing-1);
10207
- padding: var(--spacing-2);
10208
- max-height: 12rem;
10209
- overflow-y: auto;
10210
- background: var(--color-surface-level2);
10211
- border: var(--border-width-regular, 1px) solid var(--color-border-default);
10212
- border-radius: var(--radius-lg);
10213
- box-shadow: var(--menu-content-shadow, 0 4px 12px rgba(0, 0, 0, 0.12));
10221
+ .muka-emptystate {
10222
+ display: flex;
10223
+ flex-direction: column;
10224
+ align-items: center;
10225
+ justify-content: center;
10226
+ gap: var(--emptystate-container-gap);
10227
+ max-width: var(--emptystate-container-maxWidth);
10228
+ margin: 0 auto;
10229
+ text-align: center;
10214
10230
  }
10215
10231
 
10216
- .muka-emoji-picker__glyph {
10217
- font-size: 1.25rem;
10218
- line-height: 1;
10232
+ /* Alignment variants */
10233
+ .muka-emptystate--left {
10234
+ align-items: flex-start;
10235
+ text-align: left;
10219
10236
  }
10220
10237
 
10238
+ /* Size variants */
10239
+ .muka-emptystate--sm {
10240
+ padding: var(--emptystate-container-padding-sm);
10241
+ }
10221
10242
 
10222
- /* DropdownSelect */
10223
- /* DropdownSelect — Figma Dropdown Menu form field (Menu + chips) */
10224
-
10225
- .muka-dropdown-select {
10226
- display: inline-flex;
10227
- flex-direction: column;
10228
- gap: var(--spacing-2);
10229
- min-width: 200px;
10243
+ .muka-emptystate--md {
10244
+ padding: var(--emptystate-container-padding-md);
10230
10245
  }
10231
10246
 
10232
- .muka-dropdown-select--full-width {
10233
- width: 100%;
10247
+ .muka-emptystate--lg {
10248
+ padding: var(--emptystate-container-padding-lg);
10234
10249
  }
10235
10250
 
10236
- .muka-dropdown-select__label {
10237
- color: var(--color-text-default-default);
10238
- cursor: pointer;
10251
+ /* Visual (icon or illustration) */
10252
+ .muka-emptystate__visual {
10253
+ display: flex;
10254
+ align-items: center;
10255
+ justify-content: center;
10256
+ color: var(--emptystate-icon-color);
10257
+ flex-shrink: 0;
10239
10258
  }
10240
10259
 
10241
- .muka-dropdown-select__label--sm {
10242
- font-family: var(--text-label-sm-semibold-fontFamily);
10243
- font-weight: var(--text-label-sm-semibold-fontWeight);
10244
- font-size: var(--text-label-sm-semibold-fontSize);
10245
- line-height: var(--text-label-sm-semibold-lineHeight);
10260
+ .muka-emptystate--sm .muka-emptystate__visual {
10261
+ width: var(--emptystate-icon-size-sm);
10262
+ height: var(--emptystate-icon-size-sm);
10246
10263
  }
10247
10264
 
10248
- .muka-dropdown-select__label--md {
10249
- font-family: var(--text-label-md-semibold-fontFamily);
10250
- font-weight: var(--text-label-md-semibold-fontWeight);
10251
- font-size: var(--text-label-md-semibold-fontSize);
10252
- line-height: var(--text-label-md-semibold-lineHeight);
10265
+ .muka-emptystate--md .muka-emptystate__visual {
10266
+ width: var(--emptystate-icon-size-md);
10267
+ height: var(--emptystate-icon-size-md);
10253
10268
  }
10254
10269
 
10255
- .muka-dropdown-select__label--lg {
10256
- font-family: var(--text-label-lg-semibold-fontFamily);
10257
- font-weight: var(--text-label-lg-semibold-fontWeight);
10258
- font-size: var(--text-label-lg-semibold-fontSize);
10259
- line-height: var(--text-label-lg-semibold-lineHeight);
10270
+ .muka-emptystate--lg .muka-emptystate__visual {
10271
+ width: var(--emptystate-icon-size-lg);
10272
+ height: var(--emptystate-icon-size-lg);
10260
10273
  }
10261
10274
 
10262
- .muka-dropdown-select__required {
10263
- color: var(--color-state-error-default);
10275
+ .muka-emptystate__visual svg {
10276
+ width: 100%;
10277
+ height: 100%;
10264
10278
  }
10265
10279
 
10266
- .muka-dropdown-select__field {
10267
- display: flex;
10268
- align-items: center;
10269
- gap: var(--spacing-1);
10280
+ .muka-emptystate__visual img {
10270
10281
  width: 100%;
10271
- position: relative;
10272
- box-sizing: border-box;
10273
- background-color: var(--input-field-color-default-background);
10274
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
10275
- border-radius: var(--input-field-radius-lg);
10276
- padding: var(--spacing-2);
10277
- padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem));
10278
- text-align: left;
10279
- cursor: pointer;
10280
- color: var(--color-text-default-default);
10281
- transition: border-color 0.12s ease, background-color 0.12s ease;
10282
- -webkit-tap-highlight-color: transparent;
10282
+ height: 100%;
10283
+ object-fit: contain;
10283
10284
  }
10284
10285
 
10285
- .muka-dropdown-select__field::after {
10286
- content: '';
10286
+ /* Content */
10287
+ .muka-emptystate__content {
10288
+ display: flex;
10289
+ flex-direction: column;
10290
+ gap: var(--spacing-2);
10291
+ }
10292
+
10293
+ .muka-emptystate--left .muka-emptystate__content {
10294
+ align-items: flex-start;
10295
+ }
10296
+
10297
+ /* Title */
10298
+ .muka-emptystate__title {
10299
+ color: var(--emptystate-title-color);
10300
+ margin: 0;
10301
+ font-family: var(--text-heading-sm-fontFamily);
10302
+ font-weight: var(--text-heading-sm-fontWeight);
10303
+ font-size: var(--text-heading-sm-fontSize);
10304
+ line-height: var(--text-heading-sm-lineHeight);
10305
+ }
10306
+
10307
+ .muka-emptystate--sm .muka-emptystate__title {
10308
+ font-family: var(--text-label-lg-semibold-fontFamily);
10309
+ font-weight: var(--text-label-lg-semibold-fontWeight);
10310
+ font-size: var(--text-label-lg-semibold-fontSize);
10311
+ line-height: var(--text-label-lg-semibold-lineHeight);
10312
+ }
10313
+
10314
+ .muka-emptystate--lg .muka-emptystate__title {
10315
+ font-family: var(--text-heading-md-fontFamily);
10316
+ font-weight: var(--text-heading-md-fontWeight);
10317
+ font-size: var(--text-heading-md-fontSize);
10318
+ line-height: var(--text-heading-md-lineHeight);
10319
+ }
10320
+
10321
+ /* Description */
10322
+ .muka-emptystate__description {
10323
+ color: var(--emptystate-description-color);
10324
+ margin: 0;
10325
+ font-family: var(--text-body-sm-regular-fontFamily);
10326
+ font-weight: var(--text-body-sm-regular-fontWeight);
10327
+ font-size: var(--text-body-sm-regular-fontSize);
10328
+ line-height: var(--text-body-sm-regular-lineHeight);
10329
+ }
10330
+
10331
+ .muka-emptystate--md .muka-emptystate__description {
10332
+ font-family: var(--text-body-base-regular-fontFamily);
10333
+ font-weight: var(--text-body-base-regular-fontWeight);
10334
+ font-size: var(--text-body-base-regular-fontSize);
10335
+ line-height: var(--text-body-base-regular-lineHeight);
10336
+ }
10337
+
10338
+ .muka-emptystate--lg .muka-emptystate__description {
10339
+ font-family: var(--text-body-lg-regular-fontFamily);
10340
+ font-weight: var(--text-body-lg-regular-fontWeight);
10341
+ font-size: var(--text-body-lg-regular-fontSize);
10342
+ line-height: var(--text-body-lg-regular-lineHeight);
10343
+ }
10344
+
10345
+ /* Actions */
10346
+ .muka-emptystate__actions {
10347
+ display: flex;
10348
+ gap: var(--emptystate-actions-gap);
10349
+ margin-top: var(--emptystate-actions-marginTop);
10350
+ flex-wrap: wrap;
10351
+ justify-content: center;
10352
+ }
10353
+
10354
+ .muka-emptystate--left .muka-emptystate__actions {
10355
+ justify-content: flex-start;
10356
+ }
10357
+
10358
+
10359
+ /* EmojiPicker */
10360
+ /* EmojiPicker Component Styles */
10361
+
10362
+ .muka-emoji-picker {
10363
+ display: grid;
10364
+ grid-template-columns: repeat(8, 1fr);
10365
+ gap: var(--spacing-1);
10366
+ padding: var(--spacing-2);
10367
+ max-height: 12rem;
10368
+ overflow-y: auto;
10369
+ background: var(--color-surface-level2);
10370
+ border: var(--border-width-regular, 1px) solid var(--color-border-default);
10371
+ border-radius: var(--radius-lg);
10372
+ box-shadow: var(--menu-content-shadow, 0 4px 12px rgba(0, 0, 0, 0.12));
10373
+ }
10374
+
10375
+ .muka-emoji-picker__glyph {
10376
+ font-size: 1.25rem;
10377
+ line-height: 1;
10378
+ }
10379
+
10380
+
10381
+ /* DropdownSelect */
10382
+ /* DropdownSelect — Figma Dropdown Menu form field (Menu + chips) */
10383
+
10384
+ .muka-dropdown-select {
10385
+ display: inline-flex;
10386
+ flex-direction: column;
10387
+ gap: var(--spacing-2);
10388
+ min-width: 200px;
10389
+ }
10390
+
10391
+ .muka-dropdown-select--full-width {
10392
+ width: 100%;
10393
+ }
10394
+
10395
+ .muka-dropdown-select__label {
10396
+ color: var(--color-text-default-default);
10397
+ cursor: pointer;
10398
+ }
10399
+
10400
+ .muka-dropdown-select__label--sm {
10401
+ font-family: var(--text-label-sm-semibold-fontFamily);
10402
+ font-weight: var(--text-label-sm-semibold-fontWeight);
10403
+ font-size: var(--text-label-sm-semibold-fontSize);
10404
+ line-height: var(--text-label-sm-semibold-lineHeight);
10405
+ }
10406
+
10407
+ .muka-dropdown-select__label--md {
10408
+ font-family: var(--text-label-md-semibold-fontFamily);
10409
+ font-weight: var(--text-label-md-semibold-fontWeight);
10410
+ font-size: var(--text-label-md-semibold-fontSize);
10411
+ line-height: var(--text-label-md-semibold-lineHeight);
10412
+ }
10413
+
10414
+ .muka-dropdown-select__label--lg {
10415
+ font-family: var(--text-label-lg-semibold-fontFamily);
10416
+ font-weight: var(--text-label-lg-semibold-fontWeight);
10417
+ font-size: var(--text-label-lg-semibold-fontSize);
10418
+ line-height: var(--text-label-lg-semibold-lineHeight);
10419
+ }
10420
+
10421
+ .muka-dropdown-select__required {
10422
+ color: var(--color-state-error-default);
10423
+ }
10424
+
10425
+ .muka-dropdown-select__field {
10426
+ display: flex;
10427
+ align-items: center;
10428
+ gap: var(--spacing-1);
10429
+ width: 100%;
10430
+ position: relative;
10431
+ box-sizing: border-box;
10432
+ background-color: var(--input-field-color-default-background);
10433
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
10434
+ border-radius: var(--input-field-radius-lg);
10435
+ padding: var(--spacing-2);
10436
+ padding-right: calc(var(--spacing-2) + var(--size-2xl, 2rem));
10437
+ text-align: left;
10438
+ cursor: pointer;
10439
+ color: var(--color-text-default-default);
10440
+ transition: border-color 0.12s ease, background-color 0.12s ease;
10441
+ -webkit-tap-highlight-color: transparent;
10442
+ }
10443
+
10444
+ .muka-dropdown-select__field::after {
10445
+ content: '';
10287
10446
  position: absolute;
10288
10447
  inset: 0;
10289
10448
  border-radius: inherit;
@@ -11180,210 +11339,69 @@ li.muka-listitem {
11180
11339
  }
11181
11340
 
11182
11341
 
11183
- /* EmptyState */
11184
- /* EmptyState Component Styles - Using Muka Design Tokens */
11342
+ /* DatePicker */
11343
+ /* DatePicker — compact native date field. */
11344
+ /* Field/label/helper styling is inherited from ../Input/Input.css. */
11185
11345
 
11186
- .muka-emptystate {
11187
- display: flex;
11188
- flex-direction: column;
11189
- align-items: center;
11190
- justify-content: center;
11191
- gap: var(--emptystate-container-gap);
11192
- max-width: var(--emptystate-container-maxWidth);
11193
- margin: 0 auto;
11194
- text-align: center;
11346
+ /* Adopt the field typography on the native date input. */
11347
+ .muka-datepicker__field .muka-input__native {
11348
+ font-family: var(--text-input-md-fontFamily);
11349
+ font-size: var(--text-input-md-fontSize);
11350
+ line-height: var(--text-input-md-lineHeight);
11195
11351
  }
11196
11352
 
11197
- /* Alignment variants */
11198
- .muka-emptystate--left {
11199
- align-items: flex-start;
11200
- text-align: left;
11353
+ .muka-datepicker__field--sm .muka-input__native {
11354
+ font-family: var(--text-input-sm-fontFamily);
11355
+ font-size: var(--text-input-sm-fontSize);
11356
+ line-height: var(--text-input-sm-lineHeight);
11201
11357
  }
11202
11358
 
11203
- /* Size variants */
11204
- .muka-emptystate--sm {
11205
- padding: var(--emptystate-container-padding-sm);
11359
+ /* Tint the browser calendar indicator to match the field foreground. */
11360
+ .muka-datepicker__field .muka-input__native::-webkit-calendar-picker-indicator {
11361
+ cursor: pointer;
11362
+ opacity: 0.6;
11206
11363
  }
11207
11364
 
11208
- .muka-emptystate--md {
11209
- padding: var(--emptystate-container-padding-md);
11365
+ .muka-datepicker__field .muka-input__native::-webkit-calendar-picker-indicator:hover {
11366
+ opacity: 1;
11210
11367
  }
11211
11368
 
11212
- .muka-emptystate--lg {
11213
- padding: var(--emptystate-container-padding-lg);
11369
+ .muka-datepicker__field .muka-input__native:disabled {
11370
+ cursor: not-allowed;
11214
11371
  }
11215
11372
 
11216
- /* Visual (icon or illustration) */
11217
- .muka-emptystate__visual {
11218
- display: flex;
11219
- align-items: center;
11220
- justify-content: center;
11221
- color: var(--emptystate-icon-color);
11222
- flex-shrink: 0;
11223
- }
11224
11373
 
11225
- .muka-emptystate--sm .muka-emptystate__visual {
11226
- width: var(--emptystate-icon-size-sm);
11227
- height: var(--emptystate-icon-size-sm);
11228
- }
11374
+ /* DataTable */
11375
+ /* DataTable Component Styles - Using Muka Design Tokens */
11229
11376
 
11230
- .muka-emptystate--md .muka-emptystate__visual {
11231
- width: var(--emptystate-icon-size-md);
11232
- height: var(--emptystate-icon-size-md);
11377
+ .muka-data-table-wrapper {
11378
+ width: 100%;
11379
+ overflow-x: auto;
11380
+ -webkit-overflow-scrolling: touch;
11233
11381
  }
11234
11382
 
11235
- .muka-emptystate--lg .muka-emptystate__visual {
11236
- width: var(--emptystate-icon-size-lg);
11237
- height: var(--emptystate-icon-size-lg);
11238
- }
11383
+ .muka-data-table {
11384
+ /* Density-driven cell padding (overridden per size below). */
11385
+ --dt-pad-x: var(--datatable-cell-padding-x-md);
11386
+ --dt-pad-y: var(--datatable-cell-padding-y-md);
11239
11387
 
11240
- .muka-emptystate__visual svg {
11241
11388
  width: 100%;
11242
- height: 100%;
11389
+ border-collapse: collapse;
11390
+ border-spacing: 0;
11391
+ /* auto layout so per-column min/max widths are honored and unsized columns flex */
11392
+ table-layout: auto;
11393
+ background-color: var(--datatable-row-background);
11394
+ color: var(--datatable-row-foreground);
11243
11395
  }
11244
11396
 
11245
- .muka-emptystate__visual img {
11246
- width: 100%;
11247
- height: 100%;
11248
- object-fit: contain;
11397
+ .muka-data-table--size-sm {
11398
+ --dt-pad-x: var(--datatable-cell-padding-x-sm);
11399
+ --dt-pad-y: var(--datatable-cell-padding-y-sm);
11249
11400
  }
11250
11401
 
11251
- /* Content */
11252
- .muka-emptystate__content {
11253
- display: flex;
11254
- flex-direction: column;
11255
- gap: var(--spacing-2);
11256
- }
11257
-
11258
- .muka-emptystate--left .muka-emptystate__content {
11259
- align-items: flex-start;
11260
- }
11261
-
11262
- /* Title */
11263
- .muka-emptystate__title {
11264
- color: var(--emptystate-title-color);
11265
- margin: 0;
11266
- font-family: var(--text-heading-sm-fontFamily);
11267
- font-weight: var(--text-heading-sm-fontWeight);
11268
- font-size: var(--text-heading-sm-fontSize);
11269
- line-height: var(--text-heading-sm-lineHeight);
11270
- }
11271
-
11272
- .muka-emptystate--sm .muka-emptystate__title {
11273
- font-family: var(--text-label-lg-semibold-fontFamily);
11274
- font-weight: var(--text-label-lg-semibold-fontWeight);
11275
- font-size: var(--text-label-lg-semibold-fontSize);
11276
- line-height: var(--text-label-lg-semibold-lineHeight);
11277
- }
11278
-
11279
- .muka-emptystate--lg .muka-emptystate__title {
11280
- font-family: var(--text-heading-md-fontFamily);
11281
- font-weight: var(--text-heading-md-fontWeight);
11282
- font-size: var(--text-heading-md-fontSize);
11283
- line-height: var(--text-heading-md-lineHeight);
11284
- }
11285
-
11286
- /* Description */
11287
- .muka-emptystate__description {
11288
- color: var(--emptystate-description-color);
11289
- margin: 0;
11290
- font-family: var(--text-body-sm-regular-fontFamily);
11291
- font-weight: var(--text-body-sm-regular-fontWeight);
11292
- font-size: var(--text-body-sm-regular-fontSize);
11293
- line-height: var(--text-body-sm-regular-lineHeight);
11294
- }
11295
-
11296
- .muka-emptystate--md .muka-emptystate__description {
11297
- font-family: var(--text-body-base-regular-fontFamily);
11298
- font-weight: var(--text-body-base-regular-fontWeight);
11299
- font-size: var(--text-body-base-regular-fontSize);
11300
- line-height: var(--text-body-base-regular-lineHeight);
11301
- }
11302
-
11303
- .muka-emptystate--lg .muka-emptystate__description {
11304
- font-family: var(--text-body-lg-regular-fontFamily);
11305
- font-weight: var(--text-body-lg-regular-fontWeight);
11306
- font-size: var(--text-body-lg-regular-fontSize);
11307
- line-height: var(--text-body-lg-regular-lineHeight);
11308
- }
11309
-
11310
- /* Actions */
11311
- .muka-emptystate__actions {
11312
- display: flex;
11313
- gap: var(--emptystate-actions-gap);
11314
- margin-top: var(--emptystate-actions-marginTop);
11315
- flex-wrap: wrap;
11316
- justify-content: center;
11317
- }
11318
-
11319
- .muka-emptystate--left .muka-emptystate__actions {
11320
- justify-content: flex-start;
11321
- }
11322
-
11323
-
11324
- /* DatePicker */
11325
- /* DatePicker — compact native date field. */
11326
- /* Field/label/helper styling is inherited from ../Input/Input.css. */
11327
-
11328
- /* Adopt the field typography on the native date input. */
11329
- .muka-datepicker__field .muka-input__native {
11330
- font-family: var(--text-input-md-fontFamily);
11331
- font-size: var(--text-input-md-fontSize);
11332
- line-height: var(--text-input-md-lineHeight);
11333
- }
11334
-
11335
- .muka-datepicker__field--sm .muka-input__native {
11336
- font-family: var(--text-input-sm-fontFamily);
11337
- font-size: var(--text-input-sm-fontSize);
11338
- line-height: var(--text-input-sm-lineHeight);
11339
- }
11340
-
11341
- /* Tint the browser calendar indicator to match the field foreground. */
11342
- .muka-datepicker__field .muka-input__native::-webkit-calendar-picker-indicator {
11343
- cursor: pointer;
11344
- opacity: 0.6;
11345
- }
11346
-
11347
- .muka-datepicker__field .muka-input__native::-webkit-calendar-picker-indicator:hover {
11348
- opacity: 1;
11349
- }
11350
-
11351
- .muka-datepicker__field .muka-input__native:disabled {
11352
- cursor: not-allowed;
11353
- }
11354
-
11355
-
11356
- /* DataTable */
11357
- /* DataTable Component Styles - Using Muka Design Tokens */
11358
-
11359
- .muka-data-table-wrapper {
11360
- width: 100%;
11361
- overflow-x: auto;
11362
- -webkit-overflow-scrolling: touch;
11363
- }
11364
-
11365
- .muka-data-table {
11366
- /* Density-driven cell padding (overridden per size below). */
11367
- --dt-pad-x: var(--datatable-cell-padding-x-md);
11368
- --dt-pad-y: var(--datatable-cell-padding-y-md);
11369
-
11370
- width: 100%;
11371
- border-collapse: collapse;
11372
- border-spacing: 0;
11373
- /* auto layout so per-column min/max widths are honored and unsized columns flex */
11374
- table-layout: auto;
11375
- background-color: var(--datatable-row-background);
11376
- color: var(--datatable-row-foreground);
11377
- }
11378
-
11379
- .muka-data-table--size-sm {
11380
- --dt-pad-x: var(--datatable-cell-padding-x-sm);
11381
- --dt-pad-y: var(--datatable-cell-padding-y-sm);
11382
- }
11383
-
11384
- .muka-data-table--size-lg {
11385
- --dt-pad-x: var(--datatable-cell-padding-x-lg);
11386
- --dt-pad-y: var(--datatable-cell-padding-y-lg);
11402
+ .muka-data-table--size-lg {
11403
+ --dt-pad-x: var(--datatable-cell-padding-x-lg);
11404
+ --dt-pad-y: var(--datatable-cell-padding-y-lg);
11387
11405
  }
11388
11406
 
11389
11407
  .muka-data-table__caption {
@@ -12327,13 +12345,16 @@ li.muka-listitem {
12327
12345
  }
12328
12346
 
12329
12347
  /* Tighter trailing padding when the dismiss button is present */
12330
- .muka-chip--sm.muka-chip--dismissible {
12348
+ .muka-chip--sm.muka-chip--dismissible,
12349
+ .muka-chip--sm.muka-chip--expandable {
12331
12350
  padding-right: var(--chip-padding-trailing-sm);
12332
12351
  }
12333
- .muka-chip--md.muka-chip--dismissible {
12352
+ .muka-chip--md.muka-chip--dismissible,
12353
+ .muka-chip--md.muka-chip--expandable {
12334
12354
  padding-right: var(--chip-padding-trailing-md);
12335
12355
  }
12336
- .muka-chip--lg.muka-chip--dismissible {
12356
+ .muka-chip--lg.muka-chip--dismissible,
12357
+ .muka-chip--lg.muka-chip--expandable {
12337
12358
  padding-right: var(--chip-padding-trailing-lg);
12338
12359
  }
12339
12360
 
@@ -12381,8 +12402,9 @@ li.muka-listitem {
12381
12402
  line-height: normal;
12382
12403
  }
12383
12404
 
12384
- /* Dismiss button — circular hit area. Figma circle sizes: sm 20, md 24, lg 32 */
12385
- .muka-chip__remove {
12405
+ /* Trailing button (dismiss or expand) — circular. Figma circle sizes: sm 20, md 24, lg 32 */
12406
+ .muka-chip__remove,
12407
+ .muka-chip__expand {
12386
12408
  display: inline-flex;
12387
12409
  align-items: center;
12388
12410
  justify-content: center;
@@ -12395,15 +12417,18 @@ li.muka-listitem {
12395
12417
  transition: background-color 0.15s ease, color 0.15s ease;
12396
12418
  }
12397
12419
 
12398
- .muka-chip--sm .muka-chip__remove {
12420
+ .muka-chip--sm .muka-chip__remove,
12421
+ .muka-chip--sm .muka-chip__expand {
12399
12422
  width: var(--icon-size-sm);
12400
12423
  height: var(--icon-size-sm);
12401
12424
  }
12402
- .muka-chip--md .muka-chip__remove {
12425
+ .muka-chip--md .muka-chip__remove,
12426
+ .muka-chip--md .muka-chip__expand {
12403
12427
  width: var(--icon-size-default);
12404
12428
  height: var(--icon-size-default);
12405
12429
  }
12406
- .muka-chip--lg .muka-chip__remove {
12430
+ .muka-chip--lg .muka-chip__remove,
12431
+ .muka-chip--lg .muka-chip__expand {
12407
12432
  width: var(--icon-size-lg);
12408
12433
  height: var(--icon-size-lg);
12409
12434
  }
@@ -12413,72 +12438,117 @@ li.muka-listitem {
12413
12438
  outline-offset: 2px;
12414
12439
  }
12415
12440
 
12441
+ /*
12442
+ * Expandable chip (Figma "Chip/Trailing Expand"): the whole chip is one button,
12443
+ * typically a menu trigger. Hovering or pressing anywhere on it drives the
12444
+ * chevron's hover / pressed steps; an open menu (aria-expanded) shows pressed,
12445
+ * like Button's open state.
12446
+ */
12447
+ .muka-chip--expandable {
12448
+ margin: 0;
12449
+ text-align: inherit;
12450
+ cursor: pointer;
12451
+ }
12452
+
12453
+ .muka-chip--expandable:focus-visible {
12454
+ outline: 2px solid var(--color-border-focus);
12455
+ outline-offset: 2px;
12456
+ }
12457
+
12458
+ .muka-chip--expandable:disabled {
12459
+ cursor: not-allowed;
12460
+ }
12461
+
12462
+ .muka-chip__expand {
12463
+ pointer-events: none;
12464
+ }
12465
+
12416
12466
  /*
12417
12467
  * Dismiss button colors — state-tinted per chip variant, with default / hover /
12418
12468
  * pressed steps. Values come from T4 chip.dismiss.* tokens, which reference the
12419
12469
  * brand-specific alias state-surface ramp. The ✕ (.muka-icon) inherits `color`.
12420
12470
  */
12421
- .muka-chip--default .muka-chip__remove {
12471
+ .muka-chip--default .muka-chip__remove,
12472
+ .muka-chip--default .muka-chip__expand {
12422
12473
  background-color: var(--chip-dismiss-default-background-default);
12423
12474
  color: var(--chip-dismiss-default-foreground-default);
12424
12475
  }
12425
- .muka-chip--default .muka-chip__remove:hover {
12476
+ .muka-chip--default .muka-chip__remove:hover,
12477
+ .muka-chip--default.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
12426
12478
  background-color: var(--chip-dismiss-default-background-hover);
12427
12479
  color: var(--chip-dismiss-default-foreground-hover);
12428
12480
  }
12429
- .muka-chip--default .muka-chip__remove:active {
12481
+ .muka-chip--default .muka-chip__remove:active,
12482
+ .muka-chip--default.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
12483
+ .muka-chip--default.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
12430
12484
  background-color: var(--chip-dismiss-default-background-pressed);
12431
12485
  color: var(--chip-dismiss-default-foreground-pressed);
12432
12486
  }
12433
12487
 
12434
- .muka-chip--success .muka-chip__remove {
12488
+ .muka-chip--success .muka-chip__remove,
12489
+ .muka-chip--success .muka-chip__expand {
12435
12490
  background-color: var(--chip-dismiss-success-background-default);
12436
12491
  color: var(--chip-dismiss-success-foreground-default);
12437
12492
  }
12438
- .muka-chip--success .muka-chip__remove:hover {
12493
+ .muka-chip--success .muka-chip__remove:hover,
12494
+ .muka-chip--success.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
12439
12495
  background-color: var(--chip-dismiss-success-background-hover);
12440
12496
  color: var(--chip-dismiss-success-foreground-hover);
12441
12497
  }
12442
- .muka-chip--success .muka-chip__remove:active {
12498
+ .muka-chip--success .muka-chip__remove:active,
12499
+ .muka-chip--success.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
12500
+ .muka-chip--success.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
12443
12501
  background-color: var(--chip-dismiss-success-background-pressed);
12444
12502
  color: var(--chip-dismiss-success-foreground-pressed);
12445
12503
  }
12446
12504
 
12447
- .muka-chip--warning .muka-chip__remove {
12505
+ .muka-chip--warning .muka-chip__remove,
12506
+ .muka-chip--warning .muka-chip__expand {
12448
12507
  background-color: var(--chip-dismiss-warning-background-default);
12449
12508
  color: var(--chip-dismiss-warning-foreground-default);
12450
12509
  }
12451
- .muka-chip--warning .muka-chip__remove:hover {
12510
+ .muka-chip--warning .muka-chip__remove:hover,
12511
+ .muka-chip--warning.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
12452
12512
  background-color: var(--chip-dismiss-warning-background-hover);
12453
12513
  color: var(--chip-dismiss-warning-foreground-hover);
12454
12514
  }
12455
- .muka-chip--warning .muka-chip__remove:active {
12515
+ .muka-chip--warning .muka-chip__remove:active,
12516
+ .muka-chip--warning.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
12517
+ .muka-chip--warning.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
12456
12518
  background-color: var(--chip-dismiss-warning-background-pressed);
12457
12519
  color: var(--chip-dismiss-warning-foreground-pressed);
12458
12520
  }
12459
12521
 
12460
- .muka-chip--error .muka-chip__remove {
12522
+ .muka-chip--error .muka-chip__remove,
12523
+ .muka-chip--error .muka-chip__expand {
12461
12524
  background-color: var(--chip-dismiss-error-background-default);
12462
12525
  color: var(--chip-dismiss-error-foreground-default);
12463
12526
  }
12464
- .muka-chip--error .muka-chip__remove:hover {
12527
+ .muka-chip--error .muka-chip__remove:hover,
12528
+ .muka-chip--error.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
12465
12529
  background-color: var(--chip-dismiss-error-background-hover);
12466
12530
  color: var(--chip-dismiss-error-foreground-hover);
12467
12531
  }
12468
- .muka-chip--error .muka-chip__remove:active {
12532
+ .muka-chip--error .muka-chip__remove:active,
12533
+ .muka-chip--error.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
12534
+ .muka-chip--error.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
12469
12535
  background-color: var(--chip-dismiss-error-background-pressed);
12470
12536
  color: var(--chip-dismiss-error-foreground-pressed);
12471
12537
  }
12472
12538
 
12473
- .muka-chip--info .muka-chip__remove {
12539
+ .muka-chip--info .muka-chip__remove,
12540
+ .muka-chip--info .muka-chip__expand {
12474
12541
  background-color: var(--chip-dismiss-info-background-default);
12475
12542
  color: var(--chip-dismiss-info-foreground-default);
12476
12543
  }
12477
- .muka-chip--info .muka-chip__remove:hover {
12544
+ .muka-chip--info .muka-chip__remove:hover,
12545
+ .muka-chip--info.muka-chip--expandable:hover:not(:disabled) .muka-chip__expand {
12478
12546
  background-color: var(--chip-dismiss-info-background-hover);
12479
12547
  color: var(--chip-dismiss-info-foreground-hover);
12480
12548
  }
12481
- .muka-chip--info .muka-chip__remove:active {
12549
+ .muka-chip--info .muka-chip__remove:active,
12550
+ .muka-chip--info.muka-chip--expandable:active:not(:disabled) .muka-chip__expand,
12551
+ .muka-chip--info.muka-chip--expandable[aria-expanded='true'] .muka-chip__expand {
12482
12552
  background-color: var(--chip-dismiss-info-background-pressed);
12483
12553
  color: var(--chip-dismiss-info-foreground-pressed);
12484
12554
  }
@@ -12673,78 +12743,245 @@ li.muka-listitem {
12673
12743
  }
12674
12744
 
12675
12745
 
12676
- /* ChatPhotoGrid */
12677
- /* ChatPhotoGrid Component Styles */
12678
-
12679
- /*
12680
- * The grid clips to its own radius and the tiles stay square, so only the four
12681
- * outer corners round — matching the Figma "Wrapper" frame (5225:1394).
12682
- */
12683
- .muka-chat-photo-grid {
12684
- display: grid;
12685
- gap: var(--chatphotogrid-gap);
12686
- width: 100%;
12687
- min-width: 0;
12688
- overflow: hidden;
12689
- border-radius: var(--chatphotogrid-radius);
12690
- }
12691
-
12692
- /* ─── Tiles ────────────────────────────────────────────── */
12693
-
12694
- .muka-chat-photo-grid__tile {
12695
- position: relative;
12696
- display: block;
12697
- overflow: hidden;
12698
- min-width: 0;
12699
- padding: 0;
12700
- margin: 0;
12701
- border: none;
12702
- background-color: var(--chatphotogrid-color-placeholder);
12703
- aspect-ratio: 1 / 1;
12704
- }
12746
+ /* Checkbox */
12747
+ /* Checkbox Component Styles - Using Muka Design Tokens */
12705
12748
 
12706
- button.muka-chat-photo-grid__tile {
12749
+ /* Wrapper - clickable label container */
12750
+ .muka-checkbox {
12751
+ display: inline-flex;
12752
+ align-items: center;
12753
+ gap: var(--spacing-4);
12707
12754
  cursor: pointer;
12708
- appearance: none;
12755
+ user-select: none;
12709
12756
  }
12710
12757
 
12711
- button.muka-chat-photo-grid__tile:focus-visible {
12712
- outline: var(--border-width-bold) solid var(--color-border-focus);
12713
- /* Inset, so the grid's overflow clip cannot cut the ring off on corner tiles */
12714
- outline-offset: calc(-1 * var(--border-width-bold));
12758
+ .muka-checkbox--disabled {
12759
+ cursor: not-allowed;
12760
+ opacity: 0.6;
12715
12761
  }
12716
12762
 
12717
- .muka-chat-photo-grid__image {
12718
- display: block;
12719
- width: 100%;
12720
- height: 100%;
12721
- object-fit: cover;
12763
+ /* Control container */
12764
+ .muka-checkbox__control {
12765
+ position: relative;
12766
+ display: inline-flex;
12767
+ align-items: center;
12768
+ justify-content: center;
12769
+ flex-shrink: 0;
12722
12770
  }
12723
12771
 
12724
- /* ─── Overflow tile ────────────────────────────────────── */
12725
-
12726
- .muka-chat-photo-grid__overflow {
12772
+ /* Hidden native input */
12773
+ .muka-checkbox__input {
12727
12774
  position: absolute;
12728
- inset: 0;
12775
+ width: 1px;
12776
+ height: 1px;
12777
+ padding: 0;
12778
+ margin: -1px;
12779
+ overflow: hidden;
12780
+ clip: rect(0, 0, 0, 0);
12781
+ white-space: nowrap;
12782
+ border: 0;
12783
+ }
12784
+
12785
+ /* Visual indicator (square) */
12786
+ .muka-checkbox__indicator {
12729
12787
  display: flex;
12730
12788
  align-items: center;
12731
12789
  justify-content: center;
12732
- background-color: var(--chatphotogrid-color-overflow-background);
12733
- color: var(--chatphotogrid-color-overflow-foreground);
12734
- font-family: var(--text-body-2xl-regular-fontFamily);
12735
- font-weight: var(--text-body-2xl-regular-fontWeight);
12736
- font-size: var(--text-body-2xl-regular-fontSize);
12737
- line-height: var(--text-body-2xl-regular-lineHeight);
12790
+ width: var(--checkbox-size-default);
12791
+ height: var(--checkbox-size-default);
12792
+ border-radius: var(--checkbox-radius);
12793
+ background-color: var(--checkbox-color-default-background);
12794
+ border: var(--border-width-regular) solid var(--checkbox-color-default-border);
12795
+ transition: all 0.15s ease;
12796
+ box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.15);
12738
12797
  }
12739
12798
 
12740
- /* ─── Layouts ──────────────────────────────────────────── */
12799
+ /* Size variants */
12800
+ .muka-checkbox--sm .muka-checkbox__indicator {
12801
+ width: var(--checkbox-size-sm);
12802
+ height: var(--checkbox-size-sm);
12803
+ }
12741
12804
 
12742
- .muka-chat-photo-grid--1 {
12743
- grid-template-columns: 1fr;
12805
+ .muka-checkbox--lg .muka-checkbox__indicator {
12806
+ width: var(--checkbox-size-lg);
12807
+ height: var(--checkbox-size-lg);
12744
12808
  }
12745
12809
 
12746
- .muka-chat-photo-grid--landscape .muka-chat-photo-grid__tile {
12747
- aspect-ratio: 4 / 3;
12810
+ /* Icon inside checkbox */
12811
+ .muka-checkbox__icon {
12812
+ width: var(--checkbox-icon-size-default);
12813
+ height: var(--checkbox-icon-size-default);
12814
+ color: var(--checkbox-color-default-icon);
12815
+ opacity: 0;
12816
+ transform: scale(0.8);
12817
+ transition: opacity 0.15s ease, transform 0.15s ease;
12818
+ }
12819
+
12820
+ .muka-checkbox--sm .muka-checkbox__icon {
12821
+ width: var(--checkbox-icon-size-sm);
12822
+ height: var(--checkbox-icon-size-sm);
12823
+ }
12824
+
12825
+ .muka-checkbox--lg .muka-checkbox__icon {
12826
+ width: var(--checkbox-icon-size-lg);
12827
+ height: var(--checkbox-icon-size-lg);
12828
+ }
12829
+
12830
+ /* Hide indeterminate icon by default */
12831
+ .muka-checkbox__icon--indeterminate {
12832
+ position: absolute;
12833
+ }
12834
+
12835
+ /* Hover state - removed per design */
12836
+
12837
+ /* Focus state */
12838
+ .muka-checkbox__input:focus-visible + .muka-checkbox__indicator {
12839
+ outline: 2px solid var(--color-border-focus);
12840
+ outline-offset: 2px;
12841
+ }
12842
+
12843
+ /* Checked state */
12844
+ .muka-checkbox__input:checked + .muka-checkbox__indicator {
12845
+ background-color: var(--checkbox-color-checked-background);
12846
+ border-color: var(--checkbox-color-checked-border);
12847
+ box-shadow: none;
12848
+ }
12849
+
12850
+ .muka-checkbox__input:checked + .muka-checkbox__indicator .muka-checkbox__icon--check {
12851
+ color: var(--checkbox-color-checked-icon);
12852
+ opacity: 1;
12853
+ transform: scale(1);
12854
+ }
12855
+
12856
+ /* Indeterminate state */
12857
+ .muka-checkbox__input:indeterminate + .muka-checkbox__indicator {
12858
+ background-color: var(--checkbox-color-checked-background);
12859
+ border-color: var(--checkbox-color-checked-border);
12860
+ box-shadow: none;
12861
+ }
12862
+
12863
+ .muka-checkbox__input:indeterminate + .muka-checkbox__indicator .muka-checkbox__icon--check {
12864
+ opacity: 0;
12865
+ }
12866
+
12867
+ .muka-checkbox__input:indeterminate + .muka-checkbox__indicator .muka-checkbox__icon--indeterminate {
12868
+ color: var(--checkbox-color-checked-icon);
12869
+ opacity: 1;
12870
+ transform: scale(1);
12871
+ }
12872
+
12873
+ /* Disabled state */
12874
+ .muka-checkbox--disabled .muka-checkbox__indicator {
12875
+ background-color: var(--checkbox-color-disabled-background);
12876
+ border-color: var(--checkbox-color-disabled-border);
12877
+ box-shadow: none;
12878
+ }
12879
+
12880
+ .muka-checkbox__input:disabled:checked + .muka-checkbox__indicator .muka-checkbox__icon--check,
12881
+ .muka-checkbox__input:disabled:indeterminate + .muka-checkbox__indicator .muka-checkbox__icon--indeterminate {
12882
+ color: var(--checkbox-color-disabled-icon);
12883
+ }
12884
+
12885
+ /* Label text */
12886
+ .muka-checkbox__label {
12887
+ font-family: var(--text-label-lg-regular-fontFamily);
12888
+ font-weight: var(--text-label-lg-regular-fontWeight);
12889
+ font-size: var(--text-label-lg-regular-fontSize);
12890
+ line-height: var(--text-label-lg-regular-lineHeight);
12891
+ color: var(--color-text-default-default);
12892
+ }
12893
+
12894
+ .muka-checkbox--sm .muka-checkbox__label {
12895
+ font-family: var(--text-label-md-regular-fontFamily);
12896
+ font-weight: var(--text-label-md-regular-fontWeight);
12897
+ font-size: var(--text-label-md-regular-fontSize);
12898
+ line-height: var(--text-label-md-regular-lineHeight);
12899
+ }
12900
+
12901
+ .muka-checkbox--lg .muka-checkbox__label {
12902
+ font-family: var(--text-label-xl-regular-fontFamily);
12903
+ font-weight: var(--text-label-xl-regular-fontWeight);
12904
+ font-size: var(--text-label-xl-regular-fontSize);
12905
+ line-height: var(--text-label-xl-regular-lineHeight);
12906
+ }
12907
+
12908
+ .muka-checkbox--disabled .muka-checkbox__label {
12909
+ color: var(--color-text-subtle-default);
12910
+ }
12911
+
12912
+
12913
+ /* ChatPhotoGrid */
12914
+ /* ChatPhotoGrid Component Styles */
12915
+
12916
+ /*
12917
+ * The grid clips to its own radius and the tiles stay square, so only the four
12918
+ * outer corners round — matching the Figma "Wrapper" frame (5225:1394).
12919
+ */
12920
+ .muka-chat-photo-grid {
12921
+ display: grid;
12922
+ gap: var(--chatphotogrid-gap);
12923
+ width: 100%;
12924
+ min-width: 0;
12925
+ overflow: hidden;
12926
+ border-radius: var(--chatphotogrid-radius);
12927
+ }
12928
+
12929
+ /* ─── Tiles ────────────────────────────────────────────── */
12930
+
12931
+ .muka-chat-photo-grid__tile {
12932
+ position: relative;
12933
+ display: block;
12934
+ overflow: hidden;
12935
+ min-width: 0;
12936
+ padding: 0;
12937
+ margin: 0;
12938
+ border: none;
12939
+ background-color: var(--chatphotogrid-color-placeholder);
12940
+ aspect-ratio: 1 / 1;
12941
+ }
12942
+
12943
+ button.muka-chat-photo-grid__tile {
12944
+ cursor: pointer;
12945
+ appearance: none;
12946
+ }
12947
+
12948
+ button.muka-chat-photo-grid__tile:focus-visible {
12949
+ outline: var(--border-width-bold) solid var(--color-border-focus);
12950
+ /* Inset, so the grid's overflow clip cannot cut the ring off on corner tiles */
12951
+ outline-offset: calc(-1 * var(--border-width-bold));
12952
+ }
12953
+
12954
+ .muka-chat-photo-grid__image {
12955
+ display: block;
12956
+ width: 100%;
12957
+ height: 100%;
12958
+ object-fit: cover;
12959
+ }
12960
+
12961
+ /* ─── Overflow tile ────────────────────────────────────── */
12962
+
12963
+ .muka-chat-photo-grid__overflow {
12964
+ position: absolute;
12965
+ inset: 0;
12966
+ display: flex;
12967
+ align-items: center;
12968
+ justify-content: center;
12969
+ background-color: var(--chatphotogrid-color-overflow-background);
12970
+ color: var(--chatphotogrid-color-overflow-foreground);
12971
+ font-family: var(--text-body-2xl-regular-fontFamily);
12972
+ font-weight: var(--text-body-2xl-regular-fontWeight);
12973
+ font-size: var(--text-body-2xl-regular-fontSize);
12974
+ line-height: var(--text-body-2xl-regular-lineHeight);
12975
+ }
12976
+
12977
+ /* ─── Layouts ──────────────────────────────────────────── */
12978
+
12979
+ .muka-chat-photo-grid--1 {
12980
+ grid-template-columns: 1fr;
12981
+ }
12982
+
12983
+ .muka-chat-photo-grid--landscape .muka-chat-photo-grid__tile {
12984
+ aspect-ratio: 4 / 3;
12748
12985
  }
12749
12986
 
12750
12987
  .muka-chat-photo-grid--portrait .muka-chat-photo-grid__tile {
@@ -12849,212 +13086,376 @@ button.muka-chat-photo-grid__tile:focus-visible {
12849
13086
  }
12850
13087
 
12851
13088
 
12852
- /* Checkbox */
12853
- /* Checkbox Component Styles - Using Muka Design Tokens */
13089
+ /* ChatMessageList */
13090
+ /* ChatMessageList Component Styles */
12854
13091
 
12855
- /* Wrapper - clickable label container */
12856
- .muka-checkbox {
12857
- display: inline-flex;
12858
- align-items: center;
12859
- gap: var(--spacing-4);
12860
- cursor: pointer;
12861
- user-select: none;
13092
+ .muka-chat-message-list {
13093
+ flex: 1 1 auto;
13094
+ min-height: 0;
13095
+ width: 100%;
13096
+ overflow-x: clip;
13097
+ overflow-y: auto;
13098
+ background-color: var(--color-surface-level3);
13099
+ padding: var(--section-padding-vertical-default, var(--spacing-8))
13100
+ var(--section-padding-horizontal-default, var(--spacing-4));
13101
+ -webkit-overflow-scrolling: touch;
13102
+ overscroll-behavior: contain;
12862
13103
  }
12863
13104
 
12864
- .muka-checkbox--disabled {
12865
- cursor: not-allowed;
12866
- opacity: 0.6;
13105
+ .muka-chat-message-list__inner {
13106
+ display: flex;
13107
+ flex-direction: column;
13108
+ align-items: stretch;
13109
+ gap: var(--spacing-8);
13110
+ width: 100%;
13111
+ max-width: var(--chat-column-max-width);
13112
+ margin: 0 auto;
12867
13113
  }
12868
13114
 
12869
- /* Control container */
12870
- .muka-checkbox__control {
12871
- position: relative;
12872
- display: inline-flex;
12873
- align-items: center;
12874
- justify-content: center;
12875
- flex-shrink: 0;
12876
- }
13115
+ /* ─── Print ────────────────────────────────────────────── */
12877
13116
 
12878
- /* Hidden native input */
12879
- .muka-checkbox__input {
12880
- position: absolute;
12881
- width: 1px;
12882
- height: 1px;
12883
- padding: 0;
12884
- margin: -1px;
12885
- overflow: hidden;
12886
- clip: rect(0, 0, 0, 0);
12887
- white-space: nowrap;
12888
- border: 0;
12889
- }
13117
+ @media print {
13118
+ .muka-chat-message-list {
13119
+ overflow: visible;
13120
+ height: auto;
13121
+ max-height: none;
13122
+ background: none;
13123
+ padding: 0;
13124
+ }
12890
13125
 
12891
- /* Visual indicator (square) */
12892
- .muka-checkbox__indicator {
12893
- display: flex;
12894
- align-items: center;
12895
- justify-content: center;
12896
- width: var(--checkbox-size-default);
12897
- height: var(--checkbox-size-default);
12898
- border-radius: var(--checkbox-radius);
12899
- background-color: var(--checkbox-color-default-background);
12900
- border: var(--border-width-regular) solid var(--checkbox-color-default-border);
12901
- transition: all 0.15s ease;
12902
- box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.15);
13126
+ .muka-chat-message-list__inner {
13127
+ max-width: 100%;
13128
+ }
12903
13129
  }
12904
13130
 
12905
- /* Size variants */
12906
- .muka-checkbox--sm .muka-checkbox__indicator {
12907
- width: var(--checkbox-size-sm);
12908
- height: var(--checkbox-size-sm);
12909
- }
12910
13131
 
12911
- .muka-checkbox--lg .muka-checkbox__indicator {
12912
- width: var(--checkbox-size-lg);
12913
- height: var(--checkbox-size-lg);
12914
- }
13132
+ /* ChatMessage */
13133
+ /* ChatMessage Component Styles */
12915
13134
 
12916
- /* Icon inside checkbox */
12917
- .muka-checkbox__icon {
12918
- width: var(--checkbox-icon-size-default);
12919
- height: var(--checkbox-icon-size-default);
12920
- color: var(--checkbox-color-default-icon);
12921
- opacity: 0;
12922
- transform: scale(0.8);
12923
- transition: opacity 0.15s ease, transform 0.15s ease;
13135
+ .muka-chat-message {
13136
+ display: flex;
13137
+ flex-direction: column;
13138
+ width: 100%;
13139
+ max-width: 100%;
12924
13140
  }
12925
13141
 
12926
- .muka-checkbox--sm .muka-checkbox__icon {
12927
- width: var(--checkbox-icon-size-sm);
12928
- height: var(--checkbox-icon-size-sm);
13142
+ /* ─── Row: avatar rail + bubble ────────────────────────── */
13143
+
13144
+ .muka-chat-message__row {
13145
+ display: grid;
13146
+ grid-template-columns: minmax(0, 1fr);
13147
+ grid-template-areas: 'bubble';
13148
+ column-gap: var(--chatbubble-row-gap);
13149
+ width: 100%;
12929
13150
  }
12930
13151
 
12931
- .muka-checkbox--lg .muka-checkbox__icon {
12932
- width: var(--checkbox-icon-size-lg);
12933
- height: var(--checkbox-icon-size-lg);
13152
+ .muka-chat-message--has-avatar .muka-chat-message__row {
13153
+ grid-template-columns: auto minmax(0, 1fr);
13154
+ grid-template-areas: 'rail bubble';
12934
13155
  }
12935
13156
 
12936
- /* Hide indeterminate icon by default */
12937
- .muka-checkbox__icon--indeterminate {
12938
- position: absolute;
13157
+ .muka-chat-message__rail {
13158
+ grid-area: rail;
13159
+ /* Sits on the bubble's baseline (Figma 5355:44091) */
13160
+ align-self: end;
13161
+ display: flex;
13162
+ justify-content: center;
13163
+ min-width: var(--chatbubble-avatar-size);
12939
13164
  }
12940
13165
 
12941
- /* Hover state - removed per design */
13166
+ /*
13167
+ * The Small size in Figma (5373:44702) halves the avatar to 32px and tightens
13168
+ * the gap to the bubble. Size the avatar itself, not just the rail, so the
13169
+ * bubbles keep their alignment. The header row keeps its own gap.
13170
+ */
13171
+ @media (max-width: 1023px) {
13172
+ .muka-chat-message__row {
13173
+ column-gap: var(--chatbubble-row-gap-compact);
13174
+ }
12942
13175
 
12943
- /* Focus state */
12944
- .muka-checkbox__input:focus-visible + .muka-checkbox__indicator {
12945
- outline: 2px solid var(--color-border-focus);
12946
- outline-offset: 2px;
13176
+ .muka-chat-message__rail {
13177
+ min-width: var(--chatbubble-avatar-size-compact);
13178
+ }
13179
+
13180
+ /* Outweighs the avatar's own size class, which sets width/height directly */
13181
+ .muka-chat-message .muka-chat-message__rail > * {
13182
+ width: var(--chatbubble-avatar-size-compact);
13183
+ height: var(--chatbubble-avatar-size-compact);
13184
+ }
12947
13185
  }
12948
13186
 
12949
- /* Checked state */
12950
- .muka-checkbox__input:checked + .muka-checkbox__indicator {
12951
- background-color: var(--checkbox-color-checked-background);
12952
- border-color: var(--checkbox-color-checked-border);
12953
- box-shadow: none;
13187
+ /* ─── Bubble surface ───────────────────────────────────── */
13188
+
13189
+ .muka-chat-message__bubble {
13190
+ grid-area: bubble;
13191
+ /*
13192
+ * Width follows the content: a single line hugs, and once the text wraps the
13193
+ * bubble fills to the shared max width. Robust to string or rich children —
13194
+ * no length measuring needed (Figma `Text length` on 5355:44091).
13195
+ */
13196
+ width: fit-content;
13197
+ /*
13198
+ * Ceiling from design (Figma 5355:44091). Below it, wrapping text fills the
13199
+ * row; above it the fixed cap leaves room for own/peer alignment.
13200
+ */
13201
+ max-width: var(--chatbubble-max-width);
13202
+ position: relative;
13203
+ display: flex;
13204
+ flex-direction: column;
13205
+ gap: var(--chatbubble-gap);
13206
+ padding: var(--chatbubble-padding-block) var(--chatbubble-padding-inline);
13207
+ border-radius: var(--chatbubble-radius);
13208
+ border: var(--border-width-regular) solid transparent;
13209
+ box-shadow: var(--shadow-level2);
13210
+ word-break: break-word;
12954
13211
  }
12955
13212
 
12956
- .muka-checkbox__input:checked + .muka-checkbox__indicator .muka-checkbox__icon--check {
12957
- color: var(--checkbox-color-checked-icon);
12958
- opacity: 1;
12959
- transform: scale(1);
13213
+ /* Media, an embed or an action stack always run the full bubble width. */
13214
+ .muka-chat-message--has-blocks .muka-chat-message__bubble {
13215
+ width: 100%;
12960
13216
  }
12961
13217
 
12962
- /* Indeterminate state */
12963
- .muka-checkbox__input:indeterminate + .muka-checkbox__indicator {
12964
- background-color: var(--checkbox-color-checked-background);
12965
- border-color: var(--checkbox-color-checked-border);
12966
- box-shadow: none;
13218
+ .muka-chat-message--own .muka-chat-message__bubble {
13219
+ justify-self: end;
12967
13220
  }
12968
13221
 
12969
- .muka-checkbox__input:indeterminate + .muka-checkbox__indicator .muka-checkbox__icon--check {
12970
- opacity: 0;
13222
+ .muka-chat-message--own .muka-chat-message__bubble {
13223
+ background-color: var(--chatbubble-color-own-background);
13224
+ border-color: var(--chatbubble-color-own-border);
13225
+ color: var(--chatbubble-color-own-foreground);
12971
13226
  }
12972
13227
 
12973
- .muka-checkbox__input:indeterminate + .muka-checkbox__indicator .muka-checkbox__icon--indeterminate {
12974
- color: var(--checkbox-color-checked-icon);
12975
- opacity: 1;
12976
- transform: scale(1);
13228
+ .muka-chat-message--peer .muka-chat-message__bubble {
13229
+ background-color: var(--chatbubble-color-peer-background);
13230
+ border-color: var(--chatbubble-color-peer-border);
13231
+ color: var(--chatbubble-color-peer-foreground);
12977
13232
  }
12978
13233
 
12979
- /* Disabled state */
12980
- .muka-checkbox--disabled .muka-checkbox__indicator {
12981
- background-color: var(--checkbox-color-disabled-background);
12982
- border-color: var(--checkbox-color-disabled-border);
12983
- box-shadow: none;
13234
+ .muka-chat-message--agent .muka-chat-message__bubble {
13235
+ background-color: var(--chatbubble-color-agent-background);
13236
+ border-color: var(--chatbubble-color-agent-border);
13237
+ color: var(--chatbubble-color-agent-foreground);
12984
13238
  }
12985
13239
 
12986
- .muka-checkbox__input:disabled:checked + .muka-checkbox__indicator .muka-checkbox__icon--check,
12987
- .muka-checkbox__input:disabled:indeterminate + .muka-checkbox__indicator .muka-checkbox__icon--indeterminate {
12988
- color: var(--checkbox-color-disabled-icon);
13240
+ /* ─── Header row (author · meta · time · badge) ────────── */
13241
+
13242
+ .muka-chat-message__header {
13243
+ display: flex;
13244
+ flex-flow: row wrap;
13245
+ align-items: center;
13246
+ gap: var(--chatbubble-row-gap);
12989
13247
  }
12990
13248
 
12991
- /* Label text */
12992
- .muka-checkbox__label {
12993
- font-family: var(--text-label-lg-regular-fontFamily);
12994
- font-weight: var(--text-label-lg-regular-fontWeight);
12995
- font-size: var(--text-label-lg-regular-fontSize);
12996
- line-height: var(--text-label-lg-regular-lineHeight);
12997
- color: var(--color-text-default-default);
13249
+ .muka-chat-message__author {
13250
+ font-family: var(--text-body-base-bold-fontFamily);
13251
+ font-weight: var(--text-body-base-bold-fontWeight);
13252
+ font-size: var(--text-body-base-bold-fontSize);
13253
+ line-height: var(--text-body-base-bold-lineHeight);
12998
13254
  }
12999
13255
 
13000
- .muka-checkbox--sm .muka-checkbox__label {
13001
- font-family: var(--text-label-md-regular-fontFamily);
13002
- font-weight: var(--text-label-md-regular-fontWeight);
13003
- font-size: var(--text-label-md-regular-fontSize);
13004
- line-height: var(--text-label-md-regular-lineHeight);
13256
+ .muka-chat-message__author-meta {
13257
+ /* Inherits the variant's body colour from the bubble */
13258
+ color: inherit;
13259
+ font-family: var(--text-body-base-regular-fontFamily);
13260
+ font-weight: var(--text-body-base-regular-fontWeight);
13261
+ font-size: var(--text-body-base-regular-fontSize);
13262
+ line-height: var(--text-body-base-regular-lineHeight);
13005
13263
  }
13006
13264
 
13007
- .muka-checkbox--lg .muka-checkbox__label {
13008
- font-family: var(--text-label-xl-regular-fontFamily);
13009
- font-weight: var(--text-label-xl-regular-fontWeight);
13010
- font-size: var(--text-label-xl-regular-fontSize);
13011
- line-height: var(--text-label-xl-regular-lineHeight);
13265
+ .muka-chat-message__badge {
13266
+ display: inline-flex;
13267
+ align-items: center;
13012
13268
  }
13013
13269
 
13014
- .muka-checkbox--disabled .muka-checkbox__label {
13015
- color: var(--color-text-subtle-default);
13270
+ /*
13271
+ * Keep the first line of content clear of the absolutely positioned menu
13272
+ * button in the bubble's top-right corner.
13273
+ */
13274
+ .muka-chat-message--has-menu .muka-chat-message__header,
13275
+ .muka-chat-message--has-menu.muka-chat-message--no-header .muka-chat-message__message {
13276
+ padding-right: var(--spacing-10);
13016
13277
  }
13017
13278
 
13279
+ /* …and the last line clear of the inset timestamp in the bottom-right corner */
13280
+ .muka-chat-message--has-timestamp .muka-chat-message__message {
13281
+ padding-right: var(--spacing-10);
13282
+ }
13018
13283
 
13019
- /* ChatMessageList */
13020
- /* ChatMessageList Component Styles */
13284
+ /* ─── Body ─────────────────────────────────────────────── */
13021
13285
 
13022
- .muka-chat-message-list {
13023
- flex: 1 1 auto;
13024
- min-height: 0;
13025
- width: 100%;
13026
- overflow-x: clip;
13027
- overflow-y: auto;
13028
- background-color: var(--color-surface-level3);
13029
- padding: var(--section-padding-vertical-default, var(--spacing-8))
13030
- var(--section-padding-horizontal-default, var(--spacing-4));
13031
- -webkit-overflow-scrolling: touch;
13032
- overscroll-behavior: contain;
13286
+ .muka-chat-message__body {
13287
+ display: flex;
13288
+ flex-direction: column;
13289
+ gap: var(--chatbubble-gap);
13290
+ min-width: 0;
13033
13291
  }
13034
13292
 
13035
- .muka-chat-message-list__inner {
13293
+ .muka-chat-message__media {
13294
+ min-width: 0;
13295
+ }
13296
+
13297
+ .muka-chat-message__message {
13298
+ font-family: var(--text-body-base-regular-fontFamily);
13299
+ font-weight: var(--text-body-base-regular-fontWeight);
13300
+ font-size: var(--text-body-base-regular-fontSize);
13301
+ line-height: var(--text-body-base-regular-lineHeight);
13302
+ white-space: pre-wrap;
13303
+ word-break: break-word;
13304
+ }
13305
+
13306
+ /* Empty message block should not add a gap of its own */
13307
+ .muka-chat-message__message:empty {
13308
+ display: none;
13309
+ }
13310
+
13311
+ /* ─── Embedded card ────────────────────────────────────── */
13312
+
13313
+ .muka-chat-message__embed {
13314
+ position: relative;
13036
13315
  display: flex;
13037
13316
  flex-direction: column;
13038
- align-items: stretch;
13039
- gap: var(--spacing-8);
13040
- width: 100%;
13041
- max-width: var(--chat-column-max-width);
13042
- margin: 0 auto;
13317
+ gap: var(--chatbubble-embed-gap);
13318
+ /* The card is inset from the blocks above and below it (Figma 5289:40562) */
13319
+ margin-block: var(--chatbubble-embed-margin-block);
13320
+ padding: var(--chatbubble-embed-padding-block) var(--chatbubble-embed-padding-inline);
13321
+ border-radius: var(--chatbubble-embed-radius);
13322
+ border: var(--border-width-regular) solid transparent;
13323
+ }
13324
+
13325
+ /*
13326
+ * The embed sits on the raised surface of its author's role, one step apart
13327
+ * from the bubble it is nested in, and reuses that role's border colour.
13328
+ */
13329
+ .muka-chat-message--own .muka-chat-message__embed {
13330
+ background-color: var(--chatbubble-embed-color-own-background);
13331
+ border-color: var(--chatbubble-embed-color-own-border);
13332
+ color: var(--chatbubble-embed-color-own-foreground);
13333
+ }
13334
+
13335
+ .muka-chat-message--peer .muka-chat-message__embed {
13336
+ background-color: var(--chatbubble-embed-color-peer-background);
13337
+ border-color: var(--chatbubble-embed-color-peer-border);
13338
+ color: var(--chatbubble-embed-color-peer-foreground);
13339
+ }
13340
+
13341
+ .muka-chat-message--agent .muka-chat-message__embed {
13342
+ background-color: var(--chatbubble-embed-color-agent-background);
13343
+ border-color: var(--chatbubble-embed-color-agent-border);
13344
+ color: var(--chatbubble-embed-color-agent-foreground);
13345
+ }
13346
+
13347
+ .muka-chat-message__embed-content {
13348
+ display: flex;
13349
+ flex-direction: column;
13350
+ gap: var(--chatbubble-embed-gap);
13351
+ min-width: 0;
13352
+ }
13353
+
13354
+ .muka-chat-message__embed-copy {
13355
+ position: absolute;
13356
+ top: var(--chatbubble-embed-padding-block);
13357
+ right: var(--chatbubble-embed-padding-inline);
13358
+ }
13359
+
13360
+ /* ─── Stacked full-width action buttons ────────────────── */
13361
+
13362
+ .muka-chat-message__action-stack {
13363
+ display: flex;
13364
+ flex-direction: column;
13365
+ gap: var(--chatbubble-action-stack-gap);
13366
+ }
13367
+
13368
+ /* ─── Inset timestamp ──────────────────────────────────── */
13369
+
13370
+ /*
13371
+ * Every author puts its timestamp in the bubble's bottom-right corner, below
13372
+ * the message — never in the header row (Figma 5355:44091).
13373
+ */
13374
+
13375
+ .muka-chat-message__timestamp {
13376
+ color: var(--chatbubble-color-timestamp);
13377
+ font-family: var(--text-body-xs-regular-fontFamily);
13378
+ font-weight: var(--text-body-xs-regular-fontWeight);
13379
+ font-size: var(--text-body-xs-regular-fontSize);
13380
+ line-height: var(--text-body-xs-regular-lineHeight);
13381
+ white-space: nowrap;
13382
+ }
13383
+
13384
+ /*
13385
+ * Pinned to the corner rather than stacked below the message, so a one-line
13386
+ * message stays one line tall. The message reserves the width it needs.
13387
+ */
13388
+ .muka-chat-message__timestamp--inset {
13389
+ position: absolute;
13390
+ right: var(--spacing-2);
13391
+ bottom: var(--spacing-1);
13392
+ }
13393
+
13394
+ /*
13395
+ * When the last block in the body is media, an embed or an action stack (not
13396
+ * trailing text), it runs the full width, so reserve a line below for the inset
13397
+ * timestamp. A message that ends in text clears the corner inline instead (see
13398
+ * `__message` padding-right above), so it needs no extra bottom space.
13399
+ */
13400
+ .muka-chat-message--has-timestamp.muka-chat-message--trailing-block .muka-chat-message__body {
13401
+ padding-bottom: var(--text-body-xs-regular-lineHeight);
13402
+ }
13403
+
13404
+ /* ─── Menu affordance ──────────────────────────────────── */
13405
+
13406
+ /*
13407
+ * Hidden at rest. Revealed on hover on pointer devices, on keyboard focus
13408
+ * everywhere, and pinned while its menu is open. On touch the equivalent
13409
+ * affordance is a long-press on the bubble, which opens an ActionSheet.
13410
+ */
13411
+ .muka-chat-message__menu {
13412
+ position: absolute;
13413
+ top: var(--spacing-1);
13414
+ right: var(--spacing-1);
13415
+ opacity: 0;
13416
+ pointer-events: none;
13417
+ }
13418
+
13419
+ .muka-chat-message__menu:focus-within,
13420
+ .muka-chat-message--menu-open .muka-chat-message__menu {
13421
+ opacity: 1;
13422
+ pointer-events: auto;
13423
+ }
13424
+
13425
+ @media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
13426
+ .muka-chat-message__bubble:hover .muka-chat-message__menu {
13427
+ opacity: 1;
13428
+ pointer-events: auto;
13429
+ }
13430
+ }
13431
+
13432
+ /* Suppress iOS Safari's own callout so the long-press sheet can take over */
13433
+ @media (pointer: coarse) {
13434
+ .muka-chat-message--has-menu .muka-chat-message__bubble {
13435
+ -webkit-touch-callout: none;
13436
+ }
13043
13437
  }
13044
13438
 
13045
13439
  /* ─── Print ────────────────────────────────────────────── */
13046
13440
 
13047
- @media print {
13048
- .muka-chat-message-list {
13049
- overflow: visible;
13050
- height: auto;
13051
- max-height: none;
13052
- background: none;
13053
- padding: 0;
13441
+ @media print {
13442
+ .muka-chat-message__bubble {
13443
+ box-shadow: none;
13444
+ break-inside: avoid;
13445
+ print-color-adjust: exact;
13446
+ -webkit-print-color-adjust: exact;
13447
+ }
13448
+
13449
+ .muka-chat-message__embed {
13450
+ break-inside: avoid;
13451
+ print-color-adjust: exact;
13452
+ -webkit-print-color-adjust: exact;
13054
13453
  }
13055
13454
 
13056
- .muka-chat-message-list__inner {
13057
- max-width: 100%;
13455
+ .muka-chat-message__menu,
13456
+ .muka-chat-message__embed-copy,
13457
+ .muka-chat-message__action-stack {
13458
+ display: none;
13058
13459
  }
13059
13460
  }
13060
13461
 
@@ -13079,7 +13480,7 @@ button.muka-chat-photo-grid__tile:focus-visible {
13079
13480
  pointer-events: none;
13080
13481
  }
13081
13482
 
13082
- /* ─── Input row ────────────────────────────────────────── */
13483
+ /* ─── Input row (default layout) ───────────────────────── */
13083
13484
 
13084
13485
  .muka-chat-composer__row {
13085
13486
  display: flex;
@@ -13105,6 +13506,19 @@ button.muka-chat-photo-grid__tile:focus-visible {
13105
13506
  transition: border-color 0.12s ease;
13106
13507
  }
13107
13508
 
13509
+ .muka-chat-composer--options .muka-chat-composer__field {
13510
+ flex: 1 1 auto;
13511
+ width: auto;
13512
+ }
13513
+
13514
+ /* Options input row: text field + mic / send beside it */
13515
+ .muka-chat-composer__options-input {
13516
+ display: flex;
13517
+ align-items: flex-end;
13518
+ gap: var(--spacing-3);
13519
+ width: 100%;
13520
+ }
13521
+
13108
13522
  .muka-chat-composer__field:focus-within {
13109
13523
  border-color: var(--input-field-color-focus-border, var(--color-action-default));
13110
13524
  }
@@ -13173,615 +13587,391 @@ button.muka-chat-photo-grid__tile:focus-visible {
13173
13587
 
13174
13588
  .muka-chat-composer__overflow {
13175
13589
  position: absolute;
13176
- top: 50%;
13177
- right: var(--spacing-2);
13178
- transform: translateY(-50%);
13179
- }
13180
-
13181
- /* ─── Print ────────────────────────────────────────────── */
13182
-
13183
- @media print {
13184
- .muka-chat-composer {
13185
- display: none;
13186
- }
13187
- }
13188
-
13189
-
13190
- /* ChatAttachmentChip */
13191
- /* ChatAttachmentChip Component Styles */
13192
-
13193
- .muka-chat-attachment-chip {
13194
- position: relative;
13195
- display: inline-flex;
13196
- align-items: center;
13197
- gap: var(--spacing-1);
13198
- max-width: 240px;
13199
- padding: var(--spacing-2) var(--spacing-3);
13200
- background-color: var(--color-surface-level1);
13201
- border: var(--border-width-regular) solid var(--color-border-default);
13202
- border-radius: var(--radius-md);
13203
- overflow: hidden;
13204
- }
13205
-
13206
- .muka-chat-attachment-chip--uploading {
13207
- padding-bottom: calc(var(--spacing-2) + 2px);
13208
- }
13209
-
13210
- .muka-chat-attachment-chip--error {
13211
- border-color: var(--color-state-error-default, var(--color-text-default-default));
13212
- }
13213
-
13214
- .muka-chat-attachment-chip--disabled {
13215
- opacity: 0.5;
13216
- pointer-events: none;
13217
- }
13218
-
13219
- /* ─── Body (icon + text) ───────────────────────────────── */
13220
-
13221
- .muka-chat-attachment-chip__body {
13222
- display: inline-flex;
13223
- align-items: center;
13224
- gap: var(--spacing-2);
13225
- min-width: 0;
13226
- flex: 1 1 auto;
13227
- background: none;
13228
- border: none;
13229
- padding: 0;
13230
- margin: 0;
13231
- text-align: left;
13232
- color: inherit;
13233
- font: inherit;
13234
- cursor: default;
13235
- -webkit-tap-highlight-color: transparent;
13236
- }
13237
-
13238
- .muka-chat-attachment-chip--interactive .muka-chat-attachment-chip__body {
13239
- cursor: pointer;
13240
- }
13241
-
13242
- .muka-chat-attachment-chip--interactive .muka-chat-attachment-chip__body:focus-visible {
13243
- outline: 2px solid var(--color-action-default);
13244
- outline-offset: 2px;
13245
- border-radius: var(--radius-sm);
13246
- }
13247
-
13248
- .muka-chat-attachment-chip__icon {
13249
- display: inline-flex;
13250
- align-items: center;
13251
- justify-content: center;
13252
- flex-shrink: 0;
13253
- color: var(--color-text-subtle-default);
13254
- }
13255
-
13256
- .muka-chat-attachment-chip__text {
13257
- display: flex;
13258
- flex-direction: column;
13259
- min-width: 0;
13260
- flex: 1 1 auto;
13261
- }
13262
-
13263
- .muka-chat-attachment-chip__name {
13264
- color: var(--color-text-default-default);
13265
- font-family: var(--text-body-sm-regular-fontFamily);
13266
- font-weight: var(--text-body-sm-regular-fontWeight);
13267
- font-size: var(--text-body-sm-regular-fontSize);
13268
- line-height: var(--text-body-sm-regular-lineHeight);
13269
- white-space: nowrap;
13270
- overflow: hidden;
13271
- text-overflow: ellipsis;
13272
- }
13273
-
13274
- .muka-chat-attachment-chip__meta {
13275
- color: var(--color-text-subtle-default);
13276
- font-family: var(--text-body-sm-regular-fontFamily);
13277
- font-weight: var(--text-body-sm-regular-fontWeight);
13278
- font-size: var(--text-body-sm-regular-fontSize);
13279
- line-height: var(--text-body-sm-regular-lineHeight);
13280
- white-space: nowrap;
13281
- overflow: hidden;
13282
- text-overflow: ellipsis;
13283
- }
13284
-
13285
- .muka-chat-attachment-chip--error .muka-chat-attachment-chip__meta {
13286
- color: var(--color-state-error-default, var(--color-text-default-default));
13287
- }
13288
-
13289
- /* ─── Remove button ────────────────────────────────────── */
13290
-
13291
- .muka-chat-attachment-chip__remove {
13292
- display: inline-flex;
13293
- align-items: center;
13294
- justify-content: center;
13295
- width: 20px;
13296
- height: 20px;
13297
- border: none;
13298
- background: none;
13299
- padding: 0;
13300
- border-radius: var(--radius-sm);
13301
- cursor: pointer;
13302
- color: var(--color-text-subtle-default);
13303
- flex-shrink: 0;
13304
- -webkit-tap-highlight-color: transparent;
13305
- }
13306
-
13307
- .muka-chat-attachment-chip__remove:hover:not(:disabled) {
13308
- color: var(--color-text-default-default);
13309
- background-color: var(--color-surface-level2);
13310
- }
13311
-
13312
- .muka-chat-attachment-chip__remove:focus-visible {
13313
- outline: 2px solid var(--color-action-default);
13314
- outline-offset: 2px;
13315
- }
13316
-
13317
- .muka-chat-attachment-chip__remove:disabled {
13318
- cursor: not-allowed;
13319
- opacity: 0.5;
13320
- }
13321
-
13322
- /* ─── Progress bar ─────────────────────────────────────── */
13323
-
13324
- .muka-chat-attachment-chip__progress {
13325
- position: absolute;
13326
- left: 0;
13327
- right: 0;
13328
- bottom: 0;
13329
- height: 2px;
13330
- background-color: var(--color-surface-level2);
13331
- overflow: hidden;
13332
- }
13333
-
13334
- .muka-chat-attachment-chip__progress-fill {
13335
- display: block;
13336
- height: 100%;
13337
- background-color: var(--color-action-default);
13338
- transition: width 0.16s ease;
13339
- }
13340
-
13341
- .muka-chat-attachment-chip--error .muka-chat-attachment-chip__progress-fill {
13342
- background-color: var(--color-state-error-default, var(--color-text-default-default));
13343
- }
13344
-
13345
-
13346
- /* Card */
13347
- /* Card Component Styles - Using Muka Design Tokens */
13348
-
13349
- .muka-card {
13350
- background-color: var(--card-color-default-background);
13351
- color: var(--card-color-default-foreground);
13352
- border: var(--border-width-regular) solid var(--card-color-default-border);
13353
- box-shadow: var(--card-shadow-default);
13354
- transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
13355
- overflow: hidden;
13356
- }
13357
-
13358
- /* Padding variants */
13359
- .muka-card--padding-none {
13360
- padding: 0;
13361
- }
13362
-
13363
- .muka-card--padding-sm {
13364
- padding: var(--card-padding-sm);
13365
- }
13366
-
13367
- .muka-card--padding-md {
13368
- padding: var(--card-padding-md);
13369
- }
13370
-
13371
- .muka-card--padding-lg {
13372
- padding: var(--card-padding-lg);
13373
- }
13374
-
13375
- /* Radius variants */
13376
- .muka-card--radius-sm {
13377
- border-radius: var(--card-radius-sm);
13378
- }
13379
-
13380
- .muka-card--radius-md {
13381
- border-radius: var(--card-radius-md);
13382
- }
13383
-
13384
- .muka-card--radius-lg {
13385
- border-radius: var(--card-radius-lg);
13386
- }
13387
-
13388
- /* Interactive variant */
13389
- .muka-card--interactive {
13390
- cursor: pointer;
13391
- user-select: none;
13392
- }
13393
-
13394
- .muka-card--interactive:hover {
13395
- background-color: var(--card-color-hover-background);
13396
- border-color: var(--card-color-hover-border);
13397
- box-shadow: var(--card-shadow-hover);
13398
- }
13399
-
13400
- .muka-card--interactive:active,
13401
- .muka-card--interactive.muka-card--pressed {
13402
- background-color: var(--card-color-pressed-background);
13403
- border-color: var(--card-color-pressed-border);
13404
- box-shadow: var(--card-shadow-pressed);
13590
+ top: 50%;
13591
+ right: var(--spacing-2);
13592
+ transform: translateY(-50%);
13405
13593
  }
13406
13594
 
13407
- .muka-card--interactive:focus-visible {
13408
- outline: 2px solid var(--color-border-focus);
13409
- outline-offset: 2px;
13595
+ /* ─── Options mode (Figma State=Options / State7 / State8) ─ */
13596
+
13597
+ .muka-chat-composer__prompt {
13598
+ display: flex;
13599
+ align-items: flex-start;
13600
+ gap: var(--spacing-3);
13601
+ width: 100%;
13410
13602
  }
13411
13603
 
13412
- /* Selected variant */
13413
- .muka-card--selected {
13414
- background-color: var(--card-color-selected-background);
13415
- border-color: var(--card-color-selected-border);
13416
- border-width: var(--border-width-bold);
13417
- box-shadow: var(--card-shadow-selected);
13604
+ .muka-chat-composer__prompt-step {
13605
+ flex-shrink: 0;
13418
13606
  }
13419
13607
 
13420
- /* Optional header (title + description) */
13421
- .muka-card__header {
13422
- margin-bottom: var(--spacing-4);
13608
+ .muka-chat-composer__prompt-text {
13609
+ display: flex;
13610
+ flex-direction: column;
13611
+ gap: var(--spacing-1);
13612
+ min-width: 0;
13613
+ flex: 1 1 auto;
13423
13614
  }
13424
13615
 
13425
- .muka-card__title {
13426
- margin: 0;
13616
+ .muka-chat-composer__prompt-heading {
13427
13617
  color: var(--color-text-default-default);
13428
- font-family: var(--text-heading-xs-fontFamily);
13429
- font-weight: var(--text-heading-xs-fontWeight);
13430
- font-size: var(--text-heading-xs-fontSize);
13431
- line-height: var(--text-heading-xs-lineHeight);
13432
- letter-spacing: var(--text-heading-xs-letterSpacing);
13618
+ font-family: var(--text-heading-sm-fontFamily);
13619
+ font-weight: var(--text-heading-sm-fontWeight);
13620
+ font-size: var(--text-heading-sm-fontSize);
13621
+ line-height: var(--text-heading-sm-lineHeight);
13433
13622
  }
13434
13623
 
13435
- .muka-card__description {
13436
- margin: var(--spacing-1) 0 0;
13624
+ .muka-chat-composer__prompt-description {
13437
13625
  color: var(--color-text-subtle-default);
13438
- font-family: var(--text-body-sm-regular-fontFamily);
13439
- font-weight: var(--text-body-sm-regular-fontWeight);
13440
- font-size: var(--text-body-sm-regular-fontSize);
13441
- line-height: var(--text-body-sm-regular-lineHeight);
13626
+ font-family: var(--text-body-base-regular-fontFamily);
13627
+ font-weight: var(--text-body-base-regular-fontWeight);
13628
+ font-size: var(--text-body-base-regular-fontSize);
13629
+ line-height: var(--text-body-base-regular-lineHeight);
13442
13630
  }
13443
13631
 
13444
- /* Hide divider on last list item inside card */
13445
- .muka-card > .muka-listitem:last-child > .muka-listitem__divider {
13446
- display: none;
13632
+ .muka-chat-composer__choices {
13633
+ width: 100%;
13447
13634
  }
13448
13635
 
13449
- /* Disabled state */
13450
- .muka-card--disabled {
13451
- opacity: 0.5;
13452
- cursor: not-allowed;
13453
- pointer-events: none;
13636
+ .muka-chat-composer__choices-card {
13637
+ width: 100%;
13638
+ overflow: hidden;
13454
13639
  }
13455
13640
 
13641
+ /* Choice rows: the ListItem is the interactive control; the Radio/Checkbox is
13642
+ decorative for AT (aria-hidden) and sits in the leading slot. */
13643
+ .muka-chat-composer__choice-control {
13644
+ display: inline-flex;
13645
+ align-items: center;
13646
+ pointer-events: none;
13647
+ }
13456
13648
 
13457
- /* ChatMessage */
13458
- /* ChatMessage Component Styles */
13649
+ .muka-chat-composer__choice-control .muka-radio,
13650
+ .muka-chat-composer__choice-control .muka-checkbox {
13651
+ pointer-events: none;
13652
+ }
13459
13653
 
13460
- .muka-chat-message {
13654
+ /*
13655
+ * Multi-step footer (Figma Canned responses). Previous (muted) | centered
13656
+ * progress | Next/Send (muted when not ready, primary when ready — never
13657
+ * disabled for unreadiness).
13658
+ */
13659
+ .muka-chat-composer__footer {
13660
+ position: relative;
13461
13661
  display: flex;
13462
- flex-direction: column;
13662
+ align-items: center;
13663
+ justify-content: space-between;
13664
+ gap: var(--spacing-2);
13463
13665
  width: 100%;
13464
- max-width: 100%;
13666
+ min-height: var(--input-field-height-lg, 48px);
13465
13667
  }
13466
13668
 
13467
- /* ─── Row: avatar rail + bubble ────────────────────────── */
13468
-
13469
- .muka-chat-message__row {
13470
- display: grid;
13471
- grid-template-columns: minmax(0, 1fr);
13472
- grid-template-areas: 'bubble';
13473
- column-gap: var(--chatbubble-row-gap);
13474
- width: 100%;
13669
+ .muka-chat-composer__footer-spacer {
13670
+ display: inline-block;
13671
+ /* Approximate width of a Previous button so Next stays right-aligned when
13672
+ there is no back control (step 1 of N). */
13673
+ min-width: 7rem;
13674
+ flex-shrink: 0;
13475
13675
  }
13476
13676
 
13477
- .muka-chat-message--has-avatar .muka-chat-message__row {
13478
- grid-template-columns: auto minmax(0, 1fr);
13479
- grid-template-areas: 'rail bubble';
13677
+ .muka-chat-composer__footer-back {
13678
+ flex-shrink: 0;
13679
+ z-index: 1;
13480
13680
  }
13481
13681
 
13482
- .muka-chat-message__rail {
13483
- grid-area: rail;
13484
- /* Sits on the bubble's baseline (Figma 5355:44091) */
13485
- align-self: end;
13486
- display: flex;
13487
- justify-content: center;
13488
- min-width: var(--chatbubble-avatar-size);
13682
+ .muka-chat-composer__footer-action {
13683
+ flex-shrink: 0;
13684
+ margin-left: auto;
13685
+ z-index: 1;
13489
13686
  }
13490
13687
 
13491
- /*
13492
- * The Small size in Figma (5373:44702) halves the avatar to 32px and tightens
13493
- * the gap to the bubble. Size the avatar itself, not just the rail, so the
13494
- * bubbles keep their alignment. The header row keeps its own gap.
13495
- */
13496
- @media (max-width: 1023px) {
13497
- .muka-chat-message__row {
13498
- column-gap: var(--chatbubble-row-gap-compact);
13499
- }
13688
+ .muka-chat-composer__progress {
13689
+ position: absolute;
13690
+ left: 50%;
13691
+ top: 50%;
13692
+ transform: translate(-50%, -50%);
13693
+ color: var(--color-text-subtle-default);
13694
+ font-family: var(--text-label-lg-regular-fontFamily, var(--text-body-base-regular-fontFamily));
13695
+ font-weight: var(--text-label-lg-regular-fontWeight, var(--text-body-base-regular-fontWeight));
13696
+ font-size: var(--text-label-lg-regular-fontSize, var(--text-body-base-regular-fontSize));
13697
+ line-height: var(--text-label-lg-regular-lineHeight, var(--text-body-base-regular-lineHeight));
13698
+ white-space: nowrap;
13699
+ pointer-events: none;
13700
+ }
13500
13701
 
13501
- .muka-chat-message__rail {
13502
- min-width: var(--chatbubble-avatar-size-compact);
13503
- }
13702
+ /* ─── Print ────────────────────────────────────────────── */
13504
13703
 
13505
- /* Outweighs the avatar's own size class, which sets width/height directly */
13506
- .muka-chat-message .muka-chat-message__rail > * {
13507
- width: var(--chatbubble-avatar-size-compact);
13508
- height: var(--chatbubble-avatar-size-compact);
13704
+ @media print {
13705
+ .muka-chat-composer {
13706
+ display: none;
13509
13707
  }
13510
13708
  }
13511
13709
 
13512
- /* ─── Bubble surface ───────────────────────────────────── */
13513
13710
 
13514
- .muka-chat-message__bubble {
13515
- grid-area: bubble;
13516
- /*
13517
- * Width follows the content: a single line hugs, and once the text wraps the
13518
- * bubble fills to the shared max width. Robust to string or rich children —
13519
- * no length measuring needed (Figma `Text length` on 5355:44091).
13520
- */
13521
- width: fit-content;
13522
- /*
13523
- * Ceiling from design (Figma 5355:44091). Below it, wrapping text fills the
13524
- * row; above it the fixed cap leaves room for own/peer alignment.
13525
- */
13526
- max-width: var(--chatbubble-max-width);
13711
+ /* ChatAttachmentChip */
13712
+ /* ChatAttachmentChip Component Styles */
13713
+
13714
+ .muka-chat-attachment-chip {
13527
13715
  position: relative;
13528
- display: flex;
13529
- flex-direction: column;
13530
- gap: var(--chatbubble-gap);
13531
- padding: var(--chatbubble-padding-block) var(--chatbubble-padding-inline);
13532
- border-radius: var(--chatbubble-radius);
13533
- border: var(--border-width-regular) solid transparent;
13534
- box-shadow: var(--shadow-level2);
13535
- word-break: break-word;
13716
+ display: inline-flex;
13717
+ align-items: center;
13718
+ gap: var(--spacing-1);
13719
+ max-width: 240px;
13720
+ padding: var(--spacing-2) var(--spacing-3);
13721
+ background-color: var(--color-surface-level1);
13722
+ border: var(--border-width-regular) solid var(--color-border-default);
13723
+ border-radius: var(--radius-md);
13724
+ overflow: hidden;
13536
13725
  }
13537
13726
 
13538
- /* Media, an embed or an action stack always run the full bubble width. */
13539
- .muka-chat-message--has-blocks .muka-chat-message__bubble {
13540
- width: 100%;
13727
+ .muka-chat-attachment-chip--uploading {
13728
+ padding-bottom: calc(var(--spacing-2) + 2px);
13541
13729
  }
13542
13730
 
13543
- .muka-chat-message--own .muka-chat-message__bubble {
13544
- justify-self: end;
13731
+ .muka-chat-attachment-chip--error {
13732
+ border-color: var(--color-state-error-default, var(--color-text-default-default));
13545
13733
  }
13546
13734
 
13547
- .muka-chat-message--own .muka-chat-message__bubble {
13548
- background-color: var(--chatbubble-color-own-background);
13549
- border-color: var(--chatbubble-color-own-border);
13550
- color: var(--chatbubble-color-own-foreground);
13735
+ .muka-chat-attachment-chip--disabled {
13736
+ opacity: 0.5;
13737
+ pointer-events: none;
13551
13738
  }
13552
13739
 
13553
- .muka-chat-message--peer .muka-chat-message__bubble {
13554
- background-color: var(--chatbubble-color-peer-background);
13555
- border-color: var(--chatbubble-color-peer-border);
13556
- color: var(--chatbubble-color-peer-foreground);
13740
+ /* ─── Body (icon + text) ───────────────────────────────── */
13741
+
13742
+ .muka-chat-attachment-chip__body {
13743
+ display: inline-flex;
13744
+ align-items: center;
13745
+ gap: var(--spacing-2);
13746
+ min-width: 0;
13747
+ flex: 1 1 auto;
13748
+ background: none;
13749
+ border: none;
13750
+ padding: 0;
13751
+ margin: 0;
13752
+ text-align: left;
13753
+ color: inherit;
13754
+ font: inherit;
13755
+ cursor: default;
13756
+ -webkit-tap-highlight-color: transparent;
13557
13757
  }
13558
13758
 
13559
- .muka-chat-message--agent .muka-chat-message__bubble {
13560
- background-color: var(--chatbubble-color-agent-background);
13561
- border-color: var(--chatbubble-color-agent-border);
13562
- color: var(--chatbubble-color-agent-foreground);
13759
+ .muka-chat-attachment-chip--interactive .muka-chat-attachment-chip__body {
13760
+ cursor: pointer;
13563
13761
  }
13564
13762
 
13565
- /* ─── Header row (author · meta · time · badge) ────────── */
13763
+ .muka-chat-attachment-chip--interactive .muka-chat-attachment-chip__body:focus-visible {
13764
+ outline: 2px solid var(--color-action-default);
13765
+ outline-offset: 2px;
13766
+ border-radius: var(--radius-sm);
13767
+ }
13566
13768
 
13567
- .muka-chat-message__header {
13568
- display: flex;
13569
- flex-flow: row wrap;
13769
+ .muka-chat-attachment-chip__icon {
13770
+ display: inline-flex;
13570
13771
  align-items: center;
13571
- gap: var(--chatbubble-row-gap);
13772
+ justify-content: center;
13773
+ flex-shrink: 0;
13774
+ color: var(--color-text-subtle-default);
13572
13775
  }
13573
13776
 
13574
- .muka-chat-message__author {
13575
- font-family: var(--text-body-base-bold-fontFamily);
13576
- font-weight: var(--text-body-base-bold-fontWeight);
13577
- font-size: var(--text-body-base-bold-fontSize);
13578
- line-height: var(--text-body-base-bold-lineHeight);
13777
+ .muka-chat-attachment-chip__text {
13778
+ display: flex;
13779
+ flex-direction: column;
13780
+ min-width: 0;
13781
+ flex: 1 1 auto;
13579
13782
  }
13580
13783
 
13581
- .muka-chat-message__author-meta {
13582
- /* Inherits the variant's body colour from the bubble */
13583
- color: inherit;
13584
- font-family: var(--text-body-base-regular-fontFamily);
13585
- font-weight: var(--text-body-base-regular-fontWeight);
13586
- font-size: var(--text-body-base-regular-fontSize);
13587
- line-height: var(--text-body-base-regular-lineHeight);
13784
+ .muka-chat-attachment-chip__name {
13785
+ color: var(--color-text-default-default);
13786
+ font-family: var(--text-body-sm-regular-fontFamily);
13787
+ font-weight: var(--text-body-sm-regular-fontWeight);
13788
+ font-size: var(--text-body-sm-regular-fontSize);
13789
+ line-height: var(--text-body-sm-regular-lineHeight);
13790
+ white-space: nowrap;
13791
+ overflow: hidden;
13792
+ text-overflow: ellipsis;
13793
+ }
13794
+
13795
+ .muka-chat-attachment-chip__meta {
13796
+ color: var(--color-text-subtle-default);
13797
+ font-family: var(--text-body-sm-regular-fontFamily);
13798
+ font-weight: var(--text-body-sm-regular-fontWeight);
13799
+ font-size: var(--text-body-sm-regular-fontSize);
13800
+ line-height: var(--text-body-sm-regular-lineHeight);
13801
+ white-space: nowrap;
13802
+ overflow: hidden;
13803
+ text-overflow: ellipsis;
13588
13804
  }
13589
13805
 
13590
- .muka-chat-message__badge {
13806
+ .muka-chat-attachment-chip--error .muka-chat-attachment-chip__meta {
13807
+ color: var(--color-state-error-default, var(--color-text-default-default));
13808
+ }
13809
+
13810
+ /* ─── Remove button ────────────────────────────────────── */
13811
+
13812
+ .muka-chat-attachment-chip__remove {
13591
13813
  display: inline-flex;
13592
13814
  align-items: center;
13815
+ justify-content: center;
13816
+ width: 20px;
13817
+ height: 20px;
13818
+ border: none;
13819
+ background: none;
13820
+ padding: 0;
13821
+ border-radius: var(--radius-sm);
13822
+ cursor: pointer;
13823
+ color: var(--color-text-subtle-default);
13824
+ flex-shrink: 0;
13825
+ -webkit-tap-highlight-color: transparent;
13593
13826
  }
13594
13827
 
13595
- /*
13596
- * Keep the first line of content clear of the absolutely positioned menu
13597
- * button in the bubble's top-right corner.
13598
- */
13599
- .muka-chat-message--has-menu .muka-chat-message__header,
13600
- .muka-chat-message--has-menu.muka-chat-message--no-header .muka-chat-message__message {
13601
- padding-right: var(--spacing-10);
13828
+ .muka-chat-attachment-chip__remove:hover:not(:disabled) {
13829
+ color: var(--color-text-default-default);
13830
+ background-color: var(--color-surface-level2);
13602
13831
  }
13603
13832
 
13604
- /* …and the last line clear of the inset timestamp in the bottom-right corner */
13605
- .muka-chat-message--has-timestamp .muka-chat-message__message {
13606
- padding-right: var(--spacing-10);
13833
+ .muka-chat-attachment-chip__remove:focus-visible {
13834
+ outline: 2px solid var(--color-action-default);
13835
+ outline-offset: 2px;
13607
13836
  }
13608
13837
 
13609
- /* ─── Body ─────────────────────────────────────────────── */
13610
-
13611
- .muka-chat-message__body {
13612
- display: flex;
13613
- flex-direction: column;
13614
- gap: var(--chatbubble-gap);
13615
- min-width: 0;
13838
+ .muka-chat-attachment-chip__remove:disabled {
13839
+ cursor: not-allowed;
13840
+ opacity: 0.5;
13616
13841
  }
13617
13842
 
13618
- .muka-chat-message__media {
13619
- min-width: 0;
13843
+ /* ─── Progress bar ─────────────────────────────────────── */
13844
+
13845
+ .muka-chat-attachment-chip__progress {
13846
+ position: absolute;
13847
+ left: 0;
13848
+ right: 0;
13849
+ bottom: 0;
13850
+ height: 2px;
13851
+ background-color: var(--color-surface-level2);
13852
+ overflow: hidden;
13620
13853
  }
13621
13854
 
13622
- .muka-chat-message__message {
13623
- font-family: var(--text-body-base-regular-fontFamily);
13624
- font-weight: var(--text-body-base-regular-fontWeight);
13625
- font-size: var(--text-body-base-regular-fontSize);
13626
- line-height: var(--text-body-base-regular-lineHeight);
13627
- white-space: pre-wrap;
13628
- word-break: break-word;
13855
+ .muka-chat-attachment-chip__progress-fill {
13856
+ display: block;
13857
+ height: 100%;
13858
+ background-color: var(--color-action-default);
13859
+ transition: width 0.16s ease;
13629
13860
  }
13630
13861
 
13631
- /* Empty message block should not add a gap of its own */
13632
- .muka-chat-message__message:empty {
13633
- display: none;
13862
+ .muka-chat-attachment-chip--error .muka-chat-attachment-chip__progress-fill {
13863
+ background-color: var(--color-state-error-default, var(--color-text-default-default));
13634
13864
  }
13635
13865
 
13636
- /* ─── Embedded card ────────────────────────────────────── */
13637
13866
 
13638
- .muka-chat-message__embed {
13639
- position: relative;
13640
- display: flex;
13641
- flex-direction: column;
13642
- gap: var(--chatbubble-embed-gap);
13643
- /* The card is inset from the blocks above and below it (Figma 5289:40562) */
13644
- margin-block: var(--chatbubble-embed-margin-block);
13645
- padding: var(--chatbubble-embed-padding-block) var(--chatbubble-embed-padding-inline);
13646
- border-radius: var(--chatbubble-embed-radius);
13647
- border: var(--border-width-regular) solid transparent;
13648
- }
13867
+ /* Card */
13868
+ /* Card Component Styles - Using Muka Design Tokens */
13649
13869
 
13650
- /*
13651
- * The embed sits on the raised surface of its author's role, one step apart
13652
- * from the bubble it is nested in, and reuses that role's border colour.
13653
- */
13654
- .muka-chat-message--own .muka-chat-message__embed {
13655
- background-color: var(--chatbubble-embed-color-own-background);
13656
- border-color: var(--chatbubble-embed-color-own-border);
13657
- color: var(--chatbubble-embed-color-own-foreground);
13870
+ .muka-card {
13871
+ background-color: var(--card-color-default-background);
13872
+ color: var(--card-color-default-foreground);
13873
+ border: var(--border-width-regular) solid var(--card-color-default-border);
13874
+ box-shadow: var(--card-shadow-default);
13875
+ transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
13876
+ overflow: hidden;
13658
13877
  }
13659
13878
 
13660
- .muka-chat-message--peer .muka-chat-message__embed {
13661
- background-color: var(--chatbubble-embed-color-peer-background);
13662
- border-color: var(--chatbubble-embed-color-peer-border);
13663
- color: var(--chatbubble-embed-color-peer-foreground);
13879
+ /* Padding variants */
13880
+ .muka-card--padding-none {
13881
+ padding: 0;
13664
13882
  }
13665
13883
 
13666
- .muka-chat-message--agent .muka-chat-message__embed {
13667
- background-color: var(--chatbubble-embed-color-agent-background);
13668
- border-color: var(--chatbubble-embed-color-agent-border);
13669
- color: var(--chatbubble-embed-color-agent-foreground);
13884
+ .muka-card--padding-sm {
13885
+ padding: var(--card-padding-sm);
13670
13886
  }
13671
13887
 
13672
- .muka-chat-message__embed-content {
13673
- display: flex;
13674
- flex-direction: column;
13675
- gap: var(--chatbubble-embed-gap);
13676
- min-width: 0;
13888
+ .muka-card--padding-md {
13889
+ padding: var(--card-padding-md);
13677
13890
  }
13678
13891
 
13679
- .muka-chat-message__embed-copy {
13680
- position: absolute;
13681
- top: var(--chatbubble-embed-padding-block);
13682
- right: var(--chatbubble-embed-padding-inline);
13892
+ .muka-card--padding-lg {
13893
+ padding: var(--card-padding-lg);
13683
13894
  }
13684
13895
 
13685
- /* ─── Stacked full-width action buttons ────────────────── */
13686
-
13687
- .muka-chat-message__action-stack {
13688
- display: flex;
13689
- flex-direction: column;
13690
- gap: var(--chatbubble-action-stack-gap);
13896
+ /* Radius variants */
13897
+ .muka-card--radius-sm {
13898
+ border-radius: var(--card-radius-sm);
13691
13899
  }
13692
13900
 
13693
- /* ─── Inset timestamp ──────────────────────────────────── */
13694
-
13695
- /*
13696
- * Every author puts its timestamp in the bubble's bottom-right corner, below
13697
- * the message — never in the header row (Figma 5355:44091).
13698
- */
13699
-
13700
- .muka-chat-message__timestamp {
13701
- color: var(--chatbubble-color-timestamp);
13702
- font-family: var(--text-body-xs-regular-fontFamily);
13703
- font-weight: var(--text-body-xs-regular-fontWeight);
13704
- font-size: var(--text-body-xs-regular-fontSize);
13705
- line-height: var(--text-body-xs-regular-lineHeight);
13706
- white-space: nowrap;
13901
+ .muka-card--radius-md {
13902
+ border-radius: var(--card-radius-md);
13707
13903
  }
13708
13904
 
13709
- /*
13710
- * Pinned to the corner rather than stacked below the message, so a one-line
13711
- * message stays one line tall. The message reserves the width it needs.
13712
- */
13713
- .muka-chat-message__timestamp--inset {
13714
- position: absolute;
13715
- right: var(--spacing-2);
13716
- bottom: var(--spacing-1);
13905
+ .muka-card--radius-lg {
13906
+ border-radius: var(--card-radius-lg);
13717
13907
  }
13718
13908
 
13719
- /*
13720
- * When the last block in the body is media, an embed or an action stack (not
13721
- * trailing text), it runs the full width, so reserve a line below for the inset
13722
- * timestamp. A message that ends in text clears the corner inline instead (see
13723
- * `__message` padding-right above), so it needs no extra bottom space.
13724
- */
13725
- .muka-chat-message--has-timestamp.muka-chat-message--trailing-block .muka-chat-message__body {
13726
- padding-bottom: var(--text-body-xs-regular-lineHeight);
13909
+ /* Interactive variant */
13910
+ .muka-card--interactive {
13911
+ cursor: pointer;
13912
+ user-select: none;
13727
13913
  }
13728
13914
 
13729
- /* ─── Menu affordance ──────────────────────────────────── */
13915
+ .muka-card--interactive:hover {
13916
+ background-color: var(--card-color-hover-background);
13917
+ border-color: var(--card-color-hover-border);
13918
+ box-shadow: var(--card-shadow-hover);
13919
+ }
13730
13920
 
13731
- /*
13732
- * Hidden at rest. Revealed on hover on pointer devices, on keyboard focus
13733
- * everywhere, and pinned while its menu is open. On touch the equivalent
13734
- * affordance is a long-press on the bubble, which opens an ActionSheet.
13735
- */
13736
- .muka-chat-message__menu {
13737
- position: absolute;
13738
- top: var(--spacing-1);
13739
- right: var(--spacing-1);
13740
- opacity: 0;
13741
- pointer-events: none;
13921
+ .muka-card--interactive:active,
13922
+ .muka-card--interactive.muka-card--pressed {
13923
+ background-color: var(--card-color-pressed-background);
13924
+ border-color: var(--card-color-pressed-border);
13925
+ box-shadow: var(--card-shadow-pressed);
13742
13926
  }
13743
13927
 
13744
- .muka-chat-message__menu:focus-within,
13745
- .muka-chat-message--menu-open .muka-chat-message__menu {
13746
- opacity: 1;
13747
- pointer-events: auto;
13928
+ .muka-card--interactive:focus-visible {
13929
+ outline: 2px solid var(--color-border-focus);
13930
+ outline-offset: 2px;
13748
13931
  }
13749
13932
 
13750
- @media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
13751
- .muka-chat-message__bubble:hover .muka-chat-message__menu {
13752
- opacity: 1;
13753
- pointer-events: auto;
13754
- }
13933
+ /* Selected variant */
13934
+ .muka-card--selected {
13935
+ background-color: var(--card-color-selected-background);
13936
+ border-color: var(--card-color-selected-border);
13937
+ border-width: var(--border-width-bold);
13938
+ box-shadow: var(--card-shadow-selected);
13755
13939
  }
13756
13940
 
13757
- /* Suppress iOS Safari's own callout so the long-press sheet can take over */
13758
- @media (pointer: coarse) {
13759
- .muka-chat-message--has-menu .muka-chat-message__bubble {
13760
- -webkit-touch-callout: none;
13761
- }
13941
+ /* Optional header (title + description) */
13942
+ .muka-card__header {
13943
+ margin-bottom: var(--spacing-4);
13762
13944
  }
13763
13945
 
13764
- /* ─── Print ────────────────────────────────────────────── */
13946
+ .muka-card__title {
13947
+ margin: 0;
13948
+ color: var(--color-text-default-default);
13949
+ font-family: var(--text-heading-xs-fontFamily);
13950
+ font-weight: var(--text-heading-xs-fontWeight);
13951
+ font-size: var(--text-heading-xs-fontSize);
13952
+ line-height: var(--text-heading-xs-lineHeight);
13953
+ letter-spacing: var(--text-heading-xs-letterSpacing);
13954
+ }
13765
13955
 
13766
- @media print {
13767
- .muka-chat-message__bubble {
13768
- box-shadow: none;
13769
- break-inside: avoid;
13770
- print-color-adjust: exact;
13771
- -webkit-print-color-adjust: exact;
13772
- }
13956
+ .muka-card__description {
13957
+ margin: var(--spacing-1) 0 0;
13958
+ color: var(--color-text-subtle-default);
13959
+ font-family: var(--text-body-sm-regular-fontFamily);
13960
+ font-weight: var(--text-body-sm-regular-fontWeight);
13961
+ font-size: var(--text-body-sm-regular-fontSize);
13962
+ line-height: var(--text-body-sm-regular-lineHeight);
13963
+ }
13773
13964
 
13774
- .muka-chat-message__embed {
13775
- break-inside: avoid;
13776
- print-color-adjust: exact;
13777
- -webkit-print-color-adjust: exact;
13778
- }
13965
+ /* Hide divider on last list item inside card */
13966
+ .muka-card > .muka-listitem:last-child > .muka-listitem__divider {
13967
+ display: none;
13968
+ }
13779
13969
 
13780
- .muka-chat-message__menu,
13781
- .muka-chat-message__embed-copy,
13782
- .muka-chat-message__action-stack {
13783
- display: none;
13784
- }
13970
+ /* Disabled state */
13971
+ .muka-card--disabled {
13972
+ opacity: 0.5;
13973
+ cursor: not-allowed;
13974
+ pointer-events: none;
13785
13975
  }
13786
13976
 
13787
13977
 
@@ -14133,6 +14323,120 @@ button.muka-chat-photo-grid__tile:focus-visible {
14133
14323
  }
14134
14324
 
14135
14325
 
14326
+ /* Breadcrumb */
14327
+ /* Breadcrumb Component Styles */
14328
+
14329
+ .muka-breadcrumb__list {
14330
+ display: flex;
14331
+ align-items: center;
14332
+ flex-wrap: wrap;
14333
+ list-style: none;
14334
+ margin: 0;
14335
+ padding: 0;
14336
+ gap: var(--spacing-1);
14337
+ }
14338
+
14339
+ .muka-breadcrumb__item {
14340
+ display: inline-flex;
14341
+ align-items: center;
14342
+ gap: var(--spacing-1);
14343
+ }
14344
+
14345
+ .muka-breadcrumb__item:has(.muka-breadcrumb__icon) {
14346
+ padding-left: var(--spacing-1);
14347
+ }
14348
+
14349
+ .muka-breadcrumb__icon {
14350
+ display: inline-flex;
14351
+ align-items: center;
14352
+ color: var(--color-text-subtle-default);
14353
+ }
14354
+
14355
+ .muka-breadcrumb__icon .muka-icon {
14356
+ color: inherit;
14357
+ }
14358
+
14359
+ .muka-breadcrumb__item:has(.muka-breadcrumb__current) .muka-breadcrumb__icon {
14360
+ color: var(--color-text-default-default);
14361
+ }
14362
+
14363
+ .muka-breadcrumb__item:has(.muka-breadcrumb__link:hover) .muka-breadcrumb__icon {
14364
+ color: var(--color-text-action-default);
14365
+ }
14366
+
14367
+ /* Link styles */
14368
+ .muka-breadcrumb__link {
14369
+ color: var(--color-text-subtle-default);
14370
+ text-decoration: none;
14371
+ border: none;
14372
+ background: none;
14373
+ padding-inline: var(--spacing-2);
14374
+ padding-block: 0;
14375
+ cursor: pointer;
14376
+ font: inherit;
14377
+ transition: color 0.15s ease;
14378
+ }
14379
+
14380
+ .muka-breadcrumb__link:hover {
14381
+ color: var(--color-text-action-default);
14382
+ text-decoration: underline;
14383
+ }
14384
+
14385
+ /* Tighter gap after leading icon */
14386
+ .muka-breadcrumb__item:has(.muka-breadcrumb__icon) .muka-breadcrumb__link,
14387
+ .muka-breadcrumb__item:has(.muka-breadcrumb__icon) .muka-breadcrumb__current {
14388
+ padding-left: var(--spacing-1);
14389
+ }
14390
+
14391
+ /* Current page (last item, no context switcher) */
14392
+ .muka-breadcrumb__current {
14393
+ color: var(--color-text-default-default);
14394
+ font-weight: 600;
14395
+ padding-inline: var(--spacing-2);
14396
+ }
14397
+
14398
+ /* Separator */
14399
+ .muka-breadcrumb__separator {
14400
+ color: var(--color-text-subtle-default);
14401
+ user-select: none;
14402
+ }
14403
+
14404
+ .muka-breadcrumb__item--context {
14405
+ gap: 0;
14406
+ }
14407
+
14408
+ .muka-breadcrumb__list:has(.muka-breadcrumb__item--context) {
14409
+ gap: 0;
14410
+ }
14411
+
14412
+ .muka-breadcrumb__item--context .muka-breadcrumb__separator {
14413
+ margin: 0;
14414
+ padding-inline: var(--spacing-1, 4px);
14415
+ }
14416
+
14417
+ /* Size variants */
14418
+ .muka-breadcrumb--sm {
14419
+ font-family: var(--text-label-sm-regular-fontFamily);
14420
+ font-weight: var(--text-label-sm-regular-fontWeight);
14421
+ font-size: var(--text-label-sm-regular-fontSize);
14422
+ line-height: var(--text-label-sm-regular-lineHeight);
14423
+ }
14424
+
14425
+ .muka-breadcrumb--md {
14426
+ font-family: var(--text-label-md-regular-fontFamily);
14427
+ font-weight: var(--text-label-md-regular-fontWeight);
14428
+ font-size: var(--text-label-md-regular-fontSize);
14429
+ line-height: var(--text-label-md-regular-lineHeight);
14430
+ }
14431
+
14432
+ .muka-breadcrumb--lg {
14433
+ font-family: var(--text-label-lg-regular-fontFamily);
14434
+ font-weight: var(--text-label-lg-regular-fontWeight);
14435
+ font-size: var(--text-label-lg-regular-fontSize);
14436
+ line-height: var(--text-label-lg-regular-lineHeight);
14437
+ }
14438
+
14439
+
14136
14440
  /* BottomBar */
14137
14441
  /* BottomBar Component Styles */
14138
14442
 
@@ -14507,167 +14811,53 @@ button.muka-chat-photo-grid__tile:focus-visible {
14507
14811
  line-height: var(--text-label-lg-bold-lineHeight);
14508
14812
  }
14509
14813
 
14510
- .muka-badge-number--lg {
14511
- height: var(--badge-number-size-lg);
14512
- min-width: var(--badge-number-size-lg);
14513
- padding: 0 var(--badge-number-padding-lg);
14514
- font-family: var(--text-label-2xl-bold-fontFamily);
14515
- font-weight: var(--text-label-2xl-bold-fontWeight);
14516
- font-size: var(--text-label-2xl-bold-fontSize);
14517
- line-height: var(--text-label-2xl-bold-lineHeight);
14518
- }
14519
-
14520
- .muka-badge-number__label {
14521
- /*
14522
- * The badge sets a tight line-height for compact sizing, which would clip
14523
- * glyph descenders; give the label a roomier line-height. Vertical centering
14524
- * is unaffected because the badge height is fixed and content is centered.
14525
- */
14526
- line-height: normal;
14527
- }
14528
-
14529
- /* Neutral variant */
14530
- .muka-badge-number--neutral {
14531
- background-color: var(--color-surface-level1);
14532
- color: var(--color-text-default-default);
14533
- }
14534
-
14535
- /* Info variant */
14536
- .muka-badge-number--info {
14537
- background-color: var(--color-state-info-contrast);
14538
- color: var(--color-text-default-inverse);
14539
- }
14540
-
14541
- /* Success variant */
14542
- .muka-badge-number--success {
14543
- background-color: var(--color-state-success-contrast);
14544
- color: var(--color-text-default-inverse);
14545
- }
14546
-
14547
- /* Warning variant */
14548
- .muka-badge-number--warning {
14549
- background-color: var(--color-state-warning-contrast);
14550
- color: var(--color-text-default-inverse);
14551
- }
14552
-
14553
- /* Error variant */
14554
- .muka-badge-number--error {
14555
- background-color: var(--color-state-error-contrast);
14556
- color: var(--color-text-default-inverse);
14557
- }
14558
-
14559
-
14560
- /* Breadcrumb */
14561
- /* Breadcrumb Component Styles */
14562
-
14563
- .muka-breadcrumb__list {
14564
- display: flex;
14565
- align-items: center;
14566
- flex-wrap: wrap;
14567
- list-style: none;
14568
- margin: 0;
14569
- padding: 0;
14570
- gap: var(--spacing-1);
14571
- }
14572
-
14573
- .muka-breadcrumb__item {
14574
- display: inline-flex;
14575
- align-items: center;
14576
- gap: var(--spacing-1);
14577
- }
14578
-
14579
- .muka-breadcrumb__item:has(.muka-breadcrumb__icon) {
14580
- padding-left: var(--spacing-1);
14581
- }
14582
-
14583
- .muka-breadcrumb__icon {
14584
- display: inline-flex;
14585
- align-items: center;
14586
- color: var(--color-text-subtle-default);
14587
- }
14588
-
14589
- .muka-breadcrumb__icon .muka-icon {
14590
- color: inherit;
14591
- }
14592
-
14593
- .muka-breadcrumb__item:has(.muka-breadcrumb__current) .muka-breadcrumb__icon {
14594
- color: var(--color-text-default-default);
14595
- }
14596
-
14597
- .muka-breadcrumb__item:has(.muka-breadcrumb__link:hover) .muka-breadcrumb__icon {
14598
- color: var(--color-text-action-default);
14599
- }
14600
-
14601
- /* Link styles */
14602
- .muka-breadcrumb__link {
14603
- color: var(--color-text-subtle-default);
14604
- text-decoration: none;
14605
- border: none;
14606
- background: none;
14607
- padding-inline: var(--spacing-2);
14608
- padding-block: 0;
14609
- cursor: pointer;
14610
- font: inherit;
14611
- transition: color 0.15s ease;
14612
- }
14613
-
14614
- .muka-breadcrumb__link:hover {
14615
- color: var(--color-text-action-default);
14616
- text-decoration: underline;
14617
- }
14618
-
14619
- /* Tighter gap after leading icon */
14620
- .muka-breadcrumb__item:has(.muka-breadcrumb__icon) .muka-breadcrumb__link,
14621
- .muka-breadcrumb__item:has(.muka-breadcrumb__icon) .muka-breadcrumb__current {
14622
- padding-left: var(--spacing-1);
14623
- }
14624
-
14625
- /* Current page (last item, no context switcher) */
14626
- .muka-breadcrumb__current {
14627
- color: var(--color-text-default-default);
14628
- font-weight: 600;
14629
- padding-inline: var(--spacing-2);
14630
- }
14631
-
14632
- /* Separator */
14633
- .muka-breadcrumb__separator {
14634
- color: var(--color-text-subtle-default);
14635
- user-select: none;
14636
- }
14637
-
14638
- .muka-breadcrumb__item--context {
14639
- gap: 0;
14814
+ .muka-badge-number--lg {
14815
+ height: var(--badge-number-size-lg);
14816
+ min-width: var(--badge-number-size-lg);
14817
+ padding: 0 var(--badge-number-padding-lg);
14818
+ font-family: var(--text-label-2xl-bold-fontFamily);
14819
+ font-weight: var(--text-label-2xl-bold-fontWeight);
14820
+ font-size: var(--text-label-2xl-bold-fontSize);
14821
+ line-height: var(--text-label-2xl-bold-lineHeight);
14640
14822
  }
14641
14823
 
14642
- .muka-breadcrumb__list:has(.muka-breadcrumb__item--context) {
14643
- gap: 0;
14824
+ .muka-badge-number__label {
14825
+ /*
14826
+ * The badge sets a tight line-height for compact sizing, which would clip
14827
+ * glyph descenders; give the label a roomier line-height. Vertical centering
14828
+ * is unaffected because the badge height is fixed and content is centered.
14829
+ */
14830
+ line-height: normal;
14644
14831
  }
14645
14832
 
14646
- .muka-breadcrumb__item--context .muka-breadcrumb__separator {
14647
- margin: 0;
14648
- padding-inline: var(--spacing-1, 4px);
14833
+ /* Neutral variant */
14834
+ .muka-badge-number--neutral {
14835
+ background-color: var(--color-surface-level1);
14836
+ color: var(--color-text-default-default);
14649
14837
  }
14650
14838
 
14651
- /* Size variants */
14652
- .muka-breadcrumb--sm {
14653
- font-family: var(--text-label-sm-regular-fontFamily);
14654
- font-weight: var(--text-label-sm-regular-fontWeight);
14655
- font-size: var(--text-label-sm-regular-fontSize);
14656
- line-height: var(--text-label-sm-regular-lineHeight);
14839
+ /* Info variant */
14840
+ .muka-badge-number--info {
14841
+ background-color: var(--color-state-info-contrast);
14842
+ color: var(--color-text-default-inverse);
14657
14843
  }
14658
14844
 
14659
- .muka-breadcrumb--md {
14660
- font-family: var(--text-label-md-regular-fontFamily);
14661
- font-weight: var(--text-label-md-regular-fontWeight);
14662
- font-size: var(--text-label-md-regular-fontSize);
14663
- line-height: var(--text-label-md-regular-lineHeight);
14845
+ /* Success variant */
14846
+ .muka-badge-number--success {
14847
+ background-color: var(--color-state-success-contrast);
14848
+ color: var(--color-text-default-inverse);
14664
14849
  }
14665
14850
 
14666
- .muka-breadcrumb--lg {
14667
- font-family: var(--text-label-lg-regular-fontFamily);
14668
- font-weight: var(--text-label-lg-regular-fontWeight);
14669
- font-size: var(--text-label-lg-regular-fontSize);
14670
- line-height: var(--text-label-lg-regular-lineHeight);
14851
+ /* Warning variant */
14852
+ .muka-badge-number--warning {
14853
+ background-color: var(--color-state-warning-contrast);
14854
+ color: var(--color-text-default-inverse);
14855
+ }
14856
+
14857
+ /* Error variant */
14858
+ .muka-badge-number--error {
14859
+ background-color: var(--color-state-error-contrast);
14860
+ color: var(--color-text-default-inverse);
14671
14861
  }
14672
14862
 
14673
14863
 
@@ -15300,6 +15490,102 @@ button.muka-chat-photo-grid__tile:focus-visible {
15300
15490
  }
15301
15491
 
15302
15492
 
15493
+ /* AppShell */
15494
+ /* AppShell Component Styles */
15495
+
15496
+ /*
15497
+ * Layout wrapper for a persistent left navigation rail + main view area, with an
15498
+ * optional full-width top app bar. The rail itself is styled by the BottomBar
15499
+ * `desktopAs="sidebar"` rules (fixed 240px left rail at ≥1024px); AppShell shows/
15500
+ * hides the sidebar + app-bar slots and offsets the main area to match. Both
15501
+ * appear at the large tier — responsively (no `size`, scoped with
15502
+ * `:not([data-size])`) or forced via `[data-size="lg"]`.
15503
+ */
15504
+ .muka-app-shell {
15505
+ position: relative;
15506
+ /* Reserved width for the rail; matches BottomBar's desktop-sidebar width. */
15507
+ --app-shell-sidebar-width: 240px;
15508
+ /* Height of the optional top app bar. */
15509
+ --app-shell-appbar-height: 64px;
15510
+ }
15511
+
15512
+ /* Sidebar slot: hidden below the large tier (per-view nav handles small/medium). */
15513
+ .muka-app-shell__sidebar {
15514
+ display: none;
15515
+ }
15516
+
15517
+ .muka-app-shell__main {
15518
+ min-height: 100dvh;
15519
+ }
15520
+
15521
+ /*
15522
+ * App bar: full-width top strip. Intrinsic styling lives here (harmless while
15523
+ * hidden); it is revealed only at the large tier. Sits above the sidebar rail.
15524
+ */
15525
+ .muka-app-shell__appbar {
15526
+ display: none;
15527
+ align-items: center;
15528
+ justify-content: space-between;
15529
+ gap: var(--spacing-4);
15530
+ position: fixed;
15531
+ top: 0;
15532
+ left: 0;
15533
+ right: 0;
15534
+ height: var(--app-shell-appbar-height);
15535
+ padding-inline: var(--spacing-4);
15536
+ background-color: var(--color-surface-level3);
15537
+ border-bottom: var(--border-width-regular) solid var(--color-border-default);
15538
+ z-index: 11; /* above the sidebar rail (z-index 10) */
15539
+ }
15540
+
15541
+ /* ─── Large tier (responsive) ─── */
15542
+ @media (min-width: 1024px) {
15543
+ .muka-app-shell:not([data-size]) .muka-app-shell__sidebar {
15544
+ display: block;
15545
+ }
15546
+ .muka-app-shell:not([data-size]) .muka-app-shell__main {
15547
+ padding-left: var(--app-shell-sidebar-width);
15548
+ }
15549
+ .muka-app-shell:not([data-size]) .muka-app-shell__appbar {
15550
+ display: flex;
15551
+ }
15552
+ /* When an app bar is present, drop the rail + content below it so nothing overlaps. */
15553
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-app-shell__main {
15554
+ padding-top: var(--app-shell-appbar-height);
15555
+ }
15556
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
15557
+ top: var(--app-shell-appbar-height);
15558
+ height: calc(100vh - var(--app-shell-appbar-height));
15559
+ }
15560
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view,
15561
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-nav-transition {
15562
+ height: calc(100dvh - var(--app-shell-appbar-height));
15563
+ }
15564
+ }
15565
+
15566
+ /* ─── Large tier (forced via size="lg") ─── */
15567
+ .muka-app-shell[data-size='lg'] .muka-app-shell__sidebar {
15568
+ display: block;
15569
+ }
15570
+ .muka-app-shell[data-size='lg'] .muka-app-shell__main {
15571
+ padding-left: var(--app-shell-sidebar-width);
15572
+ }
15573
+ .muka-app-shell[data-size='lg'] .muka-app-shell__appbar {
15574
+ display: flex;
15575
+ }
15576
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-app-shell__main {
15577
+ padding-top: var(--app-shell-appbar-height);
15578
+ }
15579
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
15580
+ top: var(--app-shell-appbar-height);
15581
+ height: calc(100vh - var(--app-shell-appbar-height));
15582
+ }
15583
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view,
15584
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-nav-transition {
15585
+ height: calc(100dvh - var(--app-shell-appbar-height));
15586
+ }
15587
+
15588
+
15303
15589
  /* Alert */
15304
15590
  /* Alert Component Styles - Using Muka Design Tokens */
15305
15591
 
@@ -15452,6 +15738,14 @@ button.muka-chat-photo-grid__tile:focus-visible {
15452
15738
  font-weight: var(--text-body-sm-regular-fontWeight);
15453
15739
  font-size: var(--text-body-sm-regular-fontSize);
15454
15740
  line-height: var(--text-body-sm-regular-lineHeight);
15741
+ /* Beat ambient docs/page text colors (e.g. Storybook sbdocs) so variant
15742
+ foreground stays readable in light and dark themes. */
15743
+ color: inherit;
15744
+ }
15745
+
15746
+ .muka-alert .muka-alert__message,
15747
+ .muka-alert .muka-alert__message * {
15748
+ color: inherit;
15455
15749
  }
15456
15750
 
15457
15751
  .muka-alert--lg .muka-alert__message {
@@ -15503,102 +15797,6 @@ button.muka-chat-photo-grid__tile:focus-visible {
15503
15797
  }
15504
15798
 
15505
15799
 
15506
- /* AppShell */
15507
- /* AppShell Component Styles */
15508
-
15509
- /*
15510
- * Layout wrapper for a persistent left navigation rail + main view area, with an
15511
- * optional full-width top app bar. The rail itself is styled by the BottomBar
15512
- * `desktopAs="sidebar"` rules (fixed 240px left rail at ≥1024px); AppShell shows/
15513
- * hides the sidebar + app-bar slots and offsets the main area to match. Both
15514
- * appear at the large tier — responsively (no `size`, scoped with
15515
- * `:not([data-size])`) or forced via `[data-size="lg"]`.
15516
- */
15517
- .muka-app-shell {
15518
- position: relative;
15519
- /* Reserved width for the rail; matches BottomBar's desktop-sidebar width. */
15520
- --app-shell-sidebar-width: 240px;
15521
- /* Height of the optional top app bar. */
15522
- --app-shell-appbar-height: 64px;
15523
- }
15524
-
15525
- /* Sidebar slot: hidden below the large tier (per-view nav handles small/medium). */
15526
- .muka-app-shell__sidebar {
15527
- display: none;
15528
- }
15529
-
15530
- .muka-app-shell__main {
15531
- min-height: 100dvh;
15532
- }
15533
-
15534
- /*
15535
- * App bar: full-width top strip. Intrinsic styling lives here (harmless while
15536
- * hidden); it is revealed only at the large tier. Sits above the sidebar rail.
15537
- */
15538
- .muka-app-shell__appbar {
15539
- display: none;
15540
- align-items: center;
15541
- justify-content: space-between;
15542
- gap: var(--spacing-4);
15543
- position: fixed;
15544
- top: 0;
15545
- left: 0;
15546
- right: 0;
15547
- height: var(--app-shell-appbar-height);
15548
- padding-inline: var(--spacing-4);
15549
- background-color: var(--color-surface-level3);
15550
- border-bottom: var(--border-width-regular) solid var(--color-border-default);
15551
- z-index: 11; /* above the sidebar rail (z-index 10) */
15552
- }
15553
-
15554
- /* ─── Large tier (responsive) ─── */
15555
- @media (min-width: 1024px) {
15556
- .muka-app-shell:not([data-size]) .muka-app-shell__sidebar {
15557
- display: block;
15558
- }
15559
- .muka-app-shell:not([data-size]) .muka-app-shell__main {
15560
- padding-left: var(--app-shell-sidebar-width);
15561
- }
15562
- .muka-app-shell:not([data-size]) .muka-app-shell__appbar {
15563
- display: flex;
15564
- }
15565
- /* When an app bar is present, drop the rail + content below it so nothing overlaps. */
15566
- .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-app-shell__main {
15567
- padding-top: var(--app-shell-appbar-height);
15568
- }
15569
- .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
15570
- top: var(--app-shell-appbar-height);
15571
- height: calc(100vh - var(--app-shell-appbar-height));
15572
- }
15573
- .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view,
15574
- .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-nav-transition {
15575
- height: calc(100dvh - var(--app-shell-appbar-height));
15576
- }
15577
- }
15578
-
15579
- /* ─── Large tier (forced via size="lg") ─── */
15580
- .muka-app-shell[data-size='lg'] .muka-app-shell__sidebar {
15581
- display: block;
15582
- }
15583
- .muka-app-shell[data-size='lg'] .muka-app-shell__main {
15584
- padding-left: var(--app-shell-sidebar-width);
15585
- }
15586
- .muka-app-shell[data-size='lg'] .muka-app-shell__appbar {
15587
- display: flex;
15588
- }
15589
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-app-shell__main {
15590
- padding-top: var(--app-shell-appbar-height);
15591
- }
15592
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
15593
- top: var(--app-shell-appbar-height);
15594
- height: calc(100vh - var(--app-shell-appbar-height));
15595
- }
15596
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view,
15597
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-nav-transition {
15598
- height: calc(100dvh - var(--app-shell-appbar-height));
15599
- }
15600
-
15601
-
15602
15800
  /* AgentTaskList */
15603
15801
  /* AgentTaskList Component Styles */
15604
15802