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