@revikornmann/muka-ui 0.57.0 → 0.60.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 (50) hide show
  1. package/dist/cjs/components/Menu/Menu.css +33 -0
  2. package/dist/cjs/components/PhotoUploader/PhotoUploader.css +21 -0
  3. package/dist/cjs/components/ProfileBadge/ProfileBadge.css +6 -0
  4. package/dist/cjs/components/SiteHeader/SiteHeader.css +38 -0
  5. package/dist/cjs/components/SiteHeader/SiteHeader.js +2 -1
  6. package/dist/cjs/components/SiteHeader/SiteHeader.js.map +1 -1
  7. package/dist/cjs/components/TopBar/TopBar.css +22 -28
  8. package/dist/cjs/components/TopBar/TopBar.js +21 -21
  9. package/dist/cjs/components/TopBar/TopBar.js.map +1 -1
  10. package/dist/cjs/components/View/View.js +2 -2
  11. package/dist/cjs/components/View/View.js.map +1 -1
  12. package/dist/esm/components/Menu/Menu.css +33 -0
  13. package/dist/esm/components/PhotoUploader/PhotoUploader.css +21 -0
  14. package/dist/esm/components/ProfileBadge/ProfileBadge.css +6 -0
  15. package/dist/esm/components/SiteHeader/SiteHeader.css +38 -0
  16. package/dist/esm/components/SiteHeader/SiteHeader.js +2 -1
  17. package/dist/esm/components/SiteHeader/SiteHeader.js.map +1 -1
  18. package/dist/esm/components/TopBar/TopBar.css +22 -28
  19. package/dist/esm/components/TopBar/TopBar.js +21 -21
  20. package/dist/esm/components/TopBar/TopBar.js.map +1 -1
  21. package/dist/esm/components/View/View.js +2 -2
  22. package/dist/esm/components/View/View.js.map +1 -1
  23. package/dist/styles/components/Menu.css +33 -0
  24. package/dist/styles/components/PhotoUploader.css +21 -0
  25. package/dist/styles/components/ProfileBadge.css +6 -0
  26. package/dist/styles/components/SiteHeader.css +38 -0
  27. package/dist/styles/components/TopBar.css +22 -28
  28. package/dist/styles/index.css +1482 -1388
  29. package/dist/styles/muka-dark.css +1482 -1388
  30. package/dist/styles/muka-light.css +1482 -1388
  31. package/dist/styles/tokens-bouwplan-dark.css +3 -1
  32. package/dist/styles/tokens-bouwplan-light.css +3 -1
  33. package/dist/styles/tokens-fscl-dark.css +3 -1
  34. package/dist/styles/tokens-fscl-light.css +3 -1
  35. package/dist/styles/tokens-grip-dark.css +3 -1
  36. package/dist/styles/tokens-grip-light.css +3 -1
  37. package/dist/styles/tokens-muka-dark.css +3 -1
  38. package/dist/styles/tokens-muka-light.css +3 -1
  39. package/dist/styles/tokens-wireframe-dark.css +3 -1
  40. package/dist/styles/tokens-wireframe-light.css +3 -1
  41. package/dist/styles/wireframe-dark.css +1482 -1388
  42. package/dist/styles/wireframe-light.css +1482 -1388
  43. package/dist/types/components/SiteHeader/SiteHeader.d.ts +7 -0
  44. package/dist/types/components/SiteHeader/SiteHeader.d.ts.map +1 -1
  45. package/dist/types/components/TopBar/TopBar.d.ts +3 -9
  46. package/dist/types/components/TopBar/TopBar.d.ts.map +1 -1
  47. package/dist/types/components/View/View.d.ts +0 -6
  48. package/dist/types/components/View/View.d.ts.map +1 -1
  49. package/package.json +1 -1
  50. package/tokens/t4-components/topbar.json +15 -1
@@ -2207,8 +2207,9 @@ body {
2207
2207
  --topbar-height-lg: 80px;
2208
2208
  --topbar-padding-x-sm: 0.75rem;
2209
2209
  --topbar-padding-x-md: 0.75rem;
2210
- --topbar-padding-x-lg: 1.5rem;
2210
+ --topbar-padding-x-lg: 1rem;
2211
2211
  --topbar-title-max-width: 197px;
2212
+ --topbar-title-inset-lg: 0.5rem;
2212
2213
  --topbar-icon-size-sm: 24px;
2213
2214
  --topbar-icon-size-md: 32px;
2214
2215
  --topbar-icon-size-lg: 32px;
@@ -2220,6 +2221,7 @@ body {
2220
2221
  --topbar-drag-handle-color: #eae7ec;
2221
2222
  --topbar-drag-handle-padding-y: 0.75rem;
2222
2223
  --topbar-drag-handle-radius: 999rem;
2224
+ --topbar-gap-lg: 2rem;
2223
2225
  --controlbar-color-background: #fdfcfd;
2224
2226
  --controlbar-max-width-sm: 768px;
2225
2227
  --controlbar-max-width-lg: 1024px;
@@ -2924,7 +2926,6 @@ body {
2924
2926
  --tb-title-font-size: var(--text-heading-xs-fontSize);
2925
2927
  --tb-title-line-height: var(--text-heading-xs-lineHeight);
2926
2928
  --tb-title-letter-spacing: var(--text-heading-xs-letterSpacing);
2927
- --tb-breadcrumb-display: none;
2928
2929
  --tb-pad-y: 0;
2929
2930
  }
2930
2931
 
@@ -2951,7 +2952,7 @@ body {
2951
2952
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2952
2953
  }
2953
2954
 
2954
- /* ─── Large tier: left-aligned title, breadcrumb row ─── */
2955
+ /* ─── Large tier: back button, then a left-aligned title ─── */
2955
2956
  @media (min-width: 1024px) {
2956
2957
  .muka-topbar:not([data-size]):not([data-max-size='md']) {
2957
2958
  --tb-height: var(--topbar-height-lg);
@@ -2965,7 +2966,6 @@ body {
2965
2966
  --tb-title-font-size: var(--text-heading-md-fontSize);
2966
2967
  --tb-title-line-height: var(--text-heading-md-lineHeight);
2967
2968
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2968
- --tb-breadcrumb-display: flex;
2969
2969
  }
2970
2970
  }
2971
2971
 
@@ -2981,7 +2981,6 @@ body {
2981
2981
  --tb-title-font-size: var(--text-heading-md-fontSize);
2982
2982
  --tb-title-line-height: var(--text-heading-md-lineHeight);
2983
2983
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2984
- --tb-breadcrumb-display: flex;
2985
2984
  }
2986
2985
 
2987
2986
  /* Push content below the iOS notch / status bar. Opt out via disableSafeArea. */
@@ -3005,13 +3004,6 @@ body {
3005
3004
  border-radius: var(--topbar-drag-handle-radius);
3006
3005
  }
3007
3006
 
3008
- /* ─── Breadcrumb (large tier, stacked above the title) ── */
3009
-
3010
- .muka-topbar__breadcrumb {
3011
- display: var(--tb-breadcrumb-display);
3012
- align-items: center;
3013
- }
3014
-
3015
3007
  /* ─── Container (the bar itself) ──────────────────────── */
3016
3008
 
3017
3009
  .muka-topbar__container {
@@ -3040,46 +3032,50 @@ body {
3040
3032
  z-index: 1;
3041
3033
  }
3042
3034
 
3043
- /* Large tier with a breadcrumb replaces the back button with the breadcrumb. */
3044
- @media (min-width: 1024px) {
3045
- .muka-topbar:not([data-size]):not([data-max-size='md']):has(.muka-topbar__breadcrumb) .muka-topbar__leading {
3046
- display: none;
3047
- }
3048
- }
3049
-
3050
- .muka-topbar[data-size='lg']:has(.muka-topbar__breadcrumb) .muka-topbar__leading {
3051
- display: none;
3052
- }
3053
-
3054
- /* ─── Heading (breadcrumb + title) ────────────────────── */
3035
+ /* ─── Heading (title) ─────────────────────────────────── */
3055
3036
 
3056
- /* Base/sm/md: transparent wrapper so the title is the center grid item and
3057
- the breadcrumb stays hidden. */
3037
+ /* Base/sm/md: transparent wrapper so the title is the center grid item. */
3058
3038
  .muka-topbar__heading {
3059
3039
  display: contents;
3060
3040
  }
3061
3041
 
3062
- /* Large tier: a tight column with the breadcrumb stacked above the title. */
3042
+ /* Large tier: the heading takes the free width so a long title truncates
3043
+ before the trailing actions, and sits a fixed gap after the back button. */
3063
3044
  @media (min-width: 1024px) {
3064
3045
  .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading {
3065
3046
  display: flex;
3066
3047
  flex-direction: column;
3067
3048
  justify-content: center;
3068
- gap: var(--spacing-1);
3069
3049
  flex: 1 1 0%;
3070
3050
  min-width: 0;
3071
3051
  }
3052
+
3053
+ .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__leading + .muka-topbar__heading {
3054
+ margin-left: var(--topbar-gap-lg);
3055
+ }
3056
+
3057
+ .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading:first-child {
3058
+ padding-left: var(--topbar-title-inset-lg);
3059
+ }
3072
3060
  }
3073
3061
 
3074
3062
  .muka-topbar[data-size='lg'] .muka-topbar__heading {
3075
3063
  display: flex;
3076
3064
  flex-direction: column;
3077
3065
  justify-content: center;
3078
- gap: var(--spacing-1);
3079
3066
  flex: 1 1 0%;
3080
3067
  min-width: 0;
3081
3068
  }
3082
3069
 
3070
+ .muka-topbar[data-size='lg'] .muka-topbar__leading + .muka-topbar__heading {
3071
+ margin-left: var(--topbar-gap-lg);
3072
+ }
3073
+
3074
+ /* No back button: the title sits a little further in than the bar padding. */
3075
+ .muka-topbar[data-size='lg'] .muka-topbar__heading:first-child {
3076
+ padding-left: var(--topbar-title-inset-lg);
3077
+ }
3078
+
3083
3079
  /* ─── Title ───────────────────────────────────────────── */
3084
3080
 
3085
3081
  .muka-topbar__title {
@@ -4415,6 +4411,88 @@ body {
4415
4411
  }
4416
4412
 
4417
4413
 
4414
+ /* TextLink */
4415
+ /* TextLink Component Styles - Using Muka Design Tokens */
4416
+
4417
+ .muka-text-link {
4418
+ display: inline;
4419
+ cursor: pointer;
4420
+ text-decoration: underline;
4421
+ /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4422
+ text-underline-offset: 0.2em;
4423
+ text-decoration-thickness: from-font;
4424
+ /* Rounds the focus ring's corners; the link itself has no visible box. */
4425
+ border-radius: var(--border-radius-sm);
4426
+ transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4427
+ }
4428
+
4429
+ /* ─── Sizes ───────────────────────────────────────────────
4430
+ Mirrors the body text scale so a link matches the copy it sits in. */
4431
+ .muka-text-link--sm {
4432
+ font-family: var(--text-body-sm-regular-fontFamily);
4433
+ font-weight: var(--text-body-sm-regular-fontWeight);
4434
+ font-size: var(--text-body-sm-regular-fontSize);
4435
+ line-height: var(--text-body-sm-regular-lineHeight);
4436
+ }
4437
+
4438
+ .muka-text-link--base {
4439
+ font-family: var(--text-body-base-regular-fontFamily);
4440
+ font-weight: var(--text-body-base-regular-fontWeight);
4441
+ font-size: var(--text-body-base-regular-fontSize);
4442
+ line-height: var(--text-body-base-regular-lineHeight);
4443
+ }
4444
+
4445
+ .muka-text-link--lg {
4446
+ font-family: var(--text-body-lg-regular-fontFamily);
4447
+ font-weight: var(--text-body-lg-regular-fontWeight);
4448
+ font-size: var(--text-body-lg-regular-fontSize);
4449
+ line-height: var(--text-body-lg-regular-lineHeight);
4450
+ }
4451
+
4452
+ /* ─── Variant: default (accent) ───────────────────────────
4453
+ Visited repeats the default colour on purpose: the design treats visited and
4454
+ default the same, and pinning it stops the browser's purple from showing. */
4455
+ .muka-text-link--default,
4456
+ .muka-text-link--default:visited {
4457
+ color: var(--color-text-action-default);
4458
+ }
4459
+
4460
+ .muka-text-link--default:hover,
4461
+ .muka-text-link--default:focus-visible {
4462
+ color: var(--color-text-action-hover);
4463
+ }
4464
+
4465
+ .muka-text-link--default:active {
4466
+ color: var(--color-text-action-pressed);
4467
+ }
4468
+
4469
+ /* ─── Variant: subtle (neutral) ───────────────────────────
4470
+ Hover, focus and pressed all darken to the default text colour. */
4471
+ .muka-text-link--subtle,
4472
+ .muka-text-link--subtle:visited {
4473
+ color: var(--color-text-subtle-default);
4474
+ }
4475
+
4476
+ .muka-text-link--subtle:hover,
4477
+ .muka-text-link--subtle:focus-visible,
4478
+ .muka-text-link--subtle:active {
4479
+ color: var(--color-text-default-default);
4480
+ }
4481
+
4482
+ /* ─── Focus ───────────────────────────────────────────────
4483
+ Same ring as every other focusable Muka component. */
4484
+ .muka-text-link:focus-visible {
4485
+ outline: 2px solid var(--color-border-focus);
4486
+ outline-offset: 2px;
4487
+ }
4488
+
4489
+ @media (prefers-reduced-motion: reduce) {
4490
+ .muka-text-link {
4491
+ transition: none;
4492
+ }
4493
+ }
4494
+
4495
+
4418
4496
  /* Tabs */
4419
4497
  /* Tabs Component Styles - Clean underline style tabs matching Figma */
4420
4498
 
@@ -4605,88 +4683,6 @@ body {
4605
4683
  }
4606
4684
 
4607
4685
 
4608
- /* TextLink */
4609
- /* TextLink Component Styles - Using Muka Design Tokens */
4610
-
4611
- .muka-text-link {
4612
- display: inline;
4613
- cursor: pointer;
4614
- text-decoration: underline;
4615
- /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4616
- text-underline-offset: 0.2em;
4617
- text-decoration-thickness: from-font;
4618
- /* Rounds the focus ring's corners; the link itself has no visible box. */
4619
- border-radius: var(--border-radius-sm);
4620
- transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4621
- }
4622
-
4623
- /* ─── Sizes ───────────────────────────────────────────────
4624
- Mirrors the body text scale so a link matches the copy it sits in. */
4625
- .muka-text-link--sm {
4626
- font-family: var(--text-body-sm-regular-fontFamily);
4627
- font-weight: var(--text-body-sm-regular-fontWeight);
4628
- font-size: var(--text-body-sm-regular-fontSize);
4629
- line-height: var(--text-body-sm-regular-lineHeight);
4630
- }
4631
-
4632
- .muka-text-link--base {
4633
- font-family: var(--text-body-base-regular-fontFamily);
4634
- font-weight: var(--text-body-base-regular-fontWeight);
4635
- font-size: var(--text-body-base-regular-fontSize);
4636
- line-height: var(--text-body-base-regular-lineHeight);
4637
- }
4638
-
4639
- .muka-text-link--lg {
4640
- font-family: var(--text-body-lg-regular-fontFamily);
4641
- font-weight: var(--text-body-lg-regular-fontWeight);
4642
- font-size: var(--text-body-lg-regular-fontSize);
4643
- line-height: var(--text-body-lg-regular-lineHeight);
4644
- }
4645
-
4646
- /* ─── Variant: default (accent) ───────────────────────────
4647
- Visited repeats the default colour on purpose: the design treats visited and
4648
- default the same, and pinning it stops the browser's purple from showing. */
4649
- .muka-text-link--default,
4650
- .muka-text-link--default:visited {
4651
- color: var(--color-text-action-default);
4652
- }
4653
-
4654
- .muka-text-link--default:hover,
4655
- .muka-text-link--default:focus-visible {
4656
- color: var(--color-text-action-hover);
4657
- }
4658
-
4659
- .muka-text-link--default:active {
4660
- color: var(--color-text-action-pressed);
4661
- }
4662
-
4663
- /* ─── Variant: subtle (neutral) ───────────────────────────
4664
- Hover, focus and pressed all darken to the default text colour. */
4665
- .muka-text-link--subtle,
4666
- .muka-text-link--subtle:visited {
4667
- color: var(--color-text-subtle-default);
4668
- }
4669
-
4670
- .muka-text-link--subtle:hover,
4671
- .muka-text-link--subtle:focus-visible,
4672
- .muka-text-link--subtle:active {
4673
- color: var(--color-text-default-default);
4674
- }
4675
-
4676
- /* ─── Focus ───────────────────────────────────────────────
4677
- Same ring as every other focusable Muka component. */
4678
- .muka-text-link:focus-visible {
4679
- outline: 2px solid var(--color-border-focus);
4680
- outline-offset: 2px;
4681
- }
4682
-
4683
- @media (prefers-reduced-motion: reduce) {
4684
- .muka-text-link {
4685
- transition: none;
4686
- }
4687
- }
4688
-
4689
-
4690
4686
  /* TablePagination */
4691
4687
  /* TablePagination Component Styles - Using Muka Design Tokens */
4692
4688
 
@@ -5091,62 +5087,170 @@ body {
5091
5087
  }
5092
5088
 
5093
5089
 
5094
- /* Spinner */
5095
- /* Spinner Component Styles */
5090
+ /* SwipeActions */
5091
+ /* SwipeActions Component Styles */
5096
5092
 
5097
- .muka-spinner {
5098
- display: inline-flex;
5099
- align-items: center;
5100
- justify-content: center;
5101
- color: var(--color-text-default-default);
5102
- line-height: 0;
5093
+ .muka-swipe-actions {
5094
+ position: relative;
5095
+ overflow: hidden;
5096
+ touch-action: pan-y;
5097
+ -webkit-user-select: none;
5098
+ user-select: none;
5099
+ background-color: var(--color-surface-level3);
5103
5100
  }
5104
5101
 
5105
- .muka-spinner--subtle {
5106
- color: var(--color-text-subtle-default);
5102
+ .muka-swipe-actions--disabled {
5103
+ touch-action: auto;
5107
5104
  }
5108
5105
 
5109
- .muka-spinner--inverse {
5110
- color: var(--color-text-default-inverse);
5111
- }
5106
+ /* ─── Row that holds the actual content ────────────────── */
5112
5107
 
5113
- .muka-spinner__circle {
5114
- display: inline-block;
5115
- border-radius: 50%;
5116
- border-style: solid;
5117
- border-color: currentColor;
5118
- border-right-color: transparent;
5119
- animation: muka-spinner-rotate 0.7s linear infinite;
5120
- box-sizing: border-box;
5108
+ .muka-swipe-actions__row {
5109
+ position: relative;
5110
+ z-index: 1;
5111
+ background-color: inherit;
5112
+ will-change: transform;
5121
5113
  }
5122
5114
 
5123
- /* ─── Sizes ───────────────────────────────────────────── */
5115
+ /* ─── Action panels — sit beneath the row ──────────────── */
5124
5116
 
5125
- .muka-spinner--sm .muka-spinner__circle {
5126
- width: 16px;
5127
- height: 16px;
5128
- border-width: 2px;
5117
+ .muka-swipe-actions__panel {
5118
+ position: absolute;
5119
+ top: 0;
5120
+ bottom: 0;
5121
+ display: flex;
5122
+ align-items: stretch;
5123
+ z-index: 0;
5129
5124
  }
5130
5125
 
5131
- .muka-spinner--md .muka-spinner__circle {
5132
- width: 20px;
5133
- height: 20px;
5134
- border-width: 2px;
5126
+ .muka-swipe-actions__panel--left {
5127
+ left: 0;
5135
5128
  }
5136
5129
 
5137
- .muka-spinner--lg .muka-spinner__circle {
5138
- width: 24px;
5139
- height: 24px;
5140
- border-width: 3px;
5130
+ .muka-swipe-actions__panel--right {
5131
+ right: 0;
5141
5132
  }
5142
5133
 
5143
- /* ─── Visually-hidden label ───────────────────────────── */
5134
+ /* ─── Single action button ─────────────────────────────── */
5144
5135
 
5145
- .muka-spinner__sr-label {
5146
- position: absolute;
5147
- width: 1px;
5148
- height: 1px;
5149
- padding: 0;
5136
+ .muka-swipe-actions__button {
5137
+ display: flex;
5138
+ flex-direction: column;
5139
+ align-items: center;
5140
+ justify-content: center;
5141
+ gap: var(--spacing-1);
5142
+ border: none;
5143
+ cursor: pointer;
5144
+ padding: var(--spacing-2);
5145
+ background-color: var(--color-surface-level2);
5146
+ color: var(--color-text-default-default);
5147
+ font-family: var(--text-label-sm-semibold-fontFamily);
5148
+ font-weight: var(--text-label-sm-semibold-fontWeight);
5149
+ font-size: var(--text-label-sm-semibold-fontSize);
5150
+ line-height: var(--text-label-sm-semibold-lineHeight);
5151
+ -webkit-tap-highlight-color: transparent;
5152
+ transition: filter 0.12s ease;
5153
+ }
5154
+
5155
+ .muka-swipe-actions__button:hover {
5156
+ filter: brightness(0.95);
5157
+ }
5158
+
5159
+ .muka-swipe-actions__button:focus-visible {
5160
+ outline: 2px solid var(--color-action-default);
5161
+ outline-offset: -2px;
5162
+ }
5163
+
5164
+ .muka-swipe-actions__button-icon {
5165
+ display: inline-flex;
5166
+ align-items: center;
5167
+ justify-content: center;
5168
+ }
5169
+
5170
+ /* ─── Color variants ───────────────────────────────────── */
5171
+
5172
+ .muka-swipe-actions__button--neutral {
5173
+ background-color: var(--color-surface-level2);
5174
+ color: var(--color-text-default-default);
5175
+ }
5176
+
5177
+ .muka-swipe-actions__button--primary {
5178
+ background-color: var(--color-action-default);
5179
+ color: var(--color-text-default-inverse);
5180
+ }
5181
+
5182
+ .muka-swipe-actions__button--success {
5183
+ background-color: var(--color-state-success-default);
5184
+ color: var(--color-text-default-inverse);
5185
+ }
5186
+
5187
+ .muka-swipe-actions__button--warning {
5188
+ background-color: var(--color-state-warning-default);
5189
+ color: var(--color-text-default-default);
5190
+ }
5191
+
5192
+ .muka-swipe-actions__button--destructive {
5193
+ background-color: var(--color-state-error-default);
5194
+ color: var(--color-text-default-inverse);
5195
+ }
5196
+
5197
+
5198
+ /* Spinner */
5199
+ /* Spinner Component Styles */
5200
+
5201
+ .muka-spinner {
5202
+ display: inline-flex;
5203
+ align-items: center;
5204
+ justify-content: center;
5205
+ color: var(--color-text-default-default);
5206
+ line-height: 0;
5207
+ }
5208
+
5209
+ .muka-spinner--subtle {
5210
+ color: var(--color-text-subtle-default);
5211
+ }
5212
+
5213
+ .muka-spinner--inverse {
5214
+ color: var(--color-text-default-inverse);
5215
+ }
5216
+
5217
+ .muka-spinner__circle {
5218
+ display: inline-block;
5219
+ border-radius: 50%;
5220
+ border-style: solid;
5221
+ border-color: currentColor;
5222
+ border-right-color: transparent;
5223
+ animation: muka-spinner-rotate 0.7s linear infinite;
5224
+ box-sizing: border-box;
5225
+ }
5226
+
5227
+ /* ─── Sizes ───────────────────────────────────────────── */
5228
+
5229
+ .muka-spinner--sm .muka-spinner__circle {
5230
+ width: 16px;
5231
+ height: 16px;
5232
+ border-width: 2px;
5233
+ }
5234
+
5235
+ .muka-spinner--md .muka-spinner__circle {
5236
+ width: 20px;
5237
+ height: 20px;
5238
+ border-width: 2px;
5239
+ }
5240
+
5241
+ .muka-spinner--lg .muka-spinner__circle {
5242
+ width: 24px;
5243
+ height: 24px;
5244
+ border-width: 3px;
5245
+ }
5246
+
5247
+ /* ─── Visually-hidden label ───────────────────────────── */
5248
+
5249
+ .muka-spinner__sr-label {
5250
+ position: absolute;
5251
+ width: 1px;
5252
+ height: 1px;
5253
+ padding: 0;
5150
5254
  margin: -1px;
5151
5255
  overflow: hidden;
5152
5256
  clip: rect(0, 0, 0, 0);
@@ -5777,6 +5881,44 @@ body {
5777
5881
  }
5778
5882
  }
5779
5883
 
5884
+ /*
5885
+ * layout="full" (Figma Public header, Bouwplan): the content spans the width,
5886
+ * the nav sits between brand and actions (space-between), and the inset grows
5887
+ * with the screen: 24/16 on small screens, 16/24 from 768px, 32 from 1536px.
5888
+ * Safe-area insets still win where they are larger.
5889
+ */
5890
+ .muka-site-header--full .muka-site-header__inner {
5891
+ max-width: none;
5892
+ justify-content: space-between;
5893
+ }
5894
+
5895
+ .muka-site-header--full .muka-site-header__actions {
5896
+ margin-left: 0;
5897
+ }
5898
+
5899
+ @media (min-width: 768px) {
5900
+ .muka-site-header--full .muka-site-header__inner {
5901
+ padding-block: var(--spacing-4);
5902
+ padding-left: max(var(--spacing-6), env(safe-area-inset-left, 0px));
5903
+ padding-right: max(var(--spacing-6), env(safe-area-inset-right, 0px));
5904
+ }
5905
+ }
5906
+
5907
+ @media (min-width: 1536px) {
5908
+ .muka-site-header--full .muka-site-header__inner {
5909
+ padding-block: var(--spacing-8);
5910
+ padding-left: max(var(--spacing-8), env(safe-area-inset-left, 0px));
5911
+ padding-right: max(var(--spacing-8), env(safe-area-inset-right, 0px));
5912
+ }
5913
+ }
5914
+
5915
+ /* Small screens: no nav, so the actions take the end on their own. */
5916
+ @media (max-width: 767px) {
5917
+ .muka-site-header--full .muka-site-header__actions {
5918
+ margin-left: auto;
5919
+ }
5920
+ }
5921
+
5780
5922
 
5781
5923
  /* Sheet */
5782
5924
  /* Sheet Component Styles */
@@ -6265,84 +6407,211 @@ body {
6265
6407
  }
6266
6408
 
6267
6409
 
6268
- /* SearchInput */
6269
- /* SearchInput Component Styles */
6410
+ /* Scrollbar */
6411
+ /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
6270
6412
 
6271
- .muka-search-input {
6413
+ .muka-scrollbar {
6272
6414
  display: flex;
6273
- align-items: center;
6274
- gap: var(--spacing-3);
6275
- width: 100%;
6415
+ flex-shrink: 0;
6416
+ border-left: var(--border-width-regular) solid var(--color-border-default);
6417
+ background-color: var(--color-surface-level3);
6418
+ user-select: none;
6276
6419
  }
6277
6420
 
6278
- /* ─── Field wrapper ───────────────────────────────────── */
6279
-
6280
- .muka-search-input__field {
6281
- flex: 1 1 auto;
6282
- display: flex;
6283
- align-items: center;
6284
- gap: var(--spacing-2);
6285
- background-color: var(--input-field-color-default-background);
6286
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
6287
- border-radius: var(--input-field-radius-md);
6288
- padding: 0 var(--input-field-padding-x);
6289
- transition: border-color 0.12s ease, background-color 0.12s ease;
6421
+ .muka-scrollbar--vertical {
6422
+ flex-direction: column;
6423
+ width: var(--size-2xl, 32px);
6424
+ align-self: stretch;
6290
6425
  }
6291
6426
 
6292
- .muka-search-input--focused .muka-search-input__field {
6293
- border-color: var(--input-field-color-focus-border, var(--color-action-default));
6427
+ .muka-scrollbar--horizontal {
6428
+ flex-direction: row;
6429
+ height: var(--size-2xl, 32px);
6430
+ width: 100%;
6431
+ border-left: none;
6432
+ border-top: var(--border-width-regular) solid var(--color-border-default);
6294
6433
  }
6295
6434
 
6296
- /* ─── Sizes ───────────────────────────────────────────── */
6297
-
6298
- .muka-search-input--sm .muka-search-input__field {
6299
- min-height: var(--input-field-height-sm);
6300
- border-radius: var(--input-field-radius-sm);
6435
+ .muka-scrollbar__button {
6436
+ display: flex;
6437
+ align-items: center;
6438
+ justify-content: center;
6439
+ flex-shrink: 0;
6440
+ width: 100%;
6441
+ height: var(--size-2xl, 32px);
6442
+ padding: 0;
6443
+ border: none;
6444
+ background-color: var(--button-color-tertiary-background-default, var(--color-surface-level3));
6445
+ color: var(--color-text-default-default);
6446
+ cursor: pointer;
6301
6447
  }
6302
6448
 
6303
- .muka-search-input--md .muka-search-input__field {
6304
- min-height: var(--input-field-height-default);
6449
+ .muka-scrollbar--horizontal .muka-scrollbar__button {
6450
+ width: var(--size-2xl, 32px);
6451
+ height: 100%;
6305
6452
  }
6306
6453
 
6307
- .muka-search-input--lg .muka-search-input__field {
6308
- min-height: var(--input-field-height-lg);
6309
- border-radius: var(--input-field-radius-lg);
6454
+ .muka-scrollbar__button:hover {
6455
+ background-color: var(--color-surface-hover);
6310
6456
  }
6311
6457
 
6312
- /* ─── Embedded variant (e.g. inside TopBar) ───────────── */
6313
-
6314
- .muka-search-input--embedded .muka-search-input__field {
6315
- background-color: var(--color-surface-level1);
6316
- border-color: transparent;
6458
+ .muka-scrollbar__divider {
6459
+ flex-shrink: 0;
6460
+ width: 100%;
6461
+ height: 1px;
6462
+ background-color: var(--color-border-default);
6317
6463
  }
6318
6464
 
6319
- .muka-search-input--embedded.muka-search-input--focused .muka-search-input__field {
6320
- border-color: transparent;
6321
- background-color: var(--color-surface-level2);
6465
+ .muka-scrollbar--horizontal .muka-scrollbar__divider {
6466
+ width: 1px;
6467
+ height: 100%;
6322
6468
  }
6323
6469
 
6324
- /* ─── Disabled ────────────────────────────────────────── */
6325
-
6326
- .muka-search-input--disabled .muka-search-input__field {
6327
- opacity: 0.5;
6328
- pointer-events: none;
6470
+ .muka-scrollbar__track {
6471
+ position: relative;
6472
+ display: flex;
6473
+ flex-direction: column;
6474
+ flex: 1 1 auto;
6475
+ min-height: 0;
6476
+ width: 100%;
6329
6477
  }
6330
6478
 
6331
- /* ─── Leading icon ────────────────────────────────────── */
6479
+ .muka-scrollbar--horizontal .muka-scrollbar__track {
6480
+ flex-direction: row;
6481
+ min-width: 0;
6482
+ height: 100%;
6483
+ }
6332
6484
 
6333
- .muka-search-input__leading {
6334
- display: inline-flex;
6485
+ .muka-scrollbar__thumb {
6486
+ position: absolute;
6487
+ left: 0;
6488
+ top: 0;
6489
+ z-index: 1;
6490
+ display: flex;
6335
6491
  align-items: center;
6336
6492
  justify-content: center;
6337
- flex-shrink: 0;
6338
- color: var(--color-text-subtle-default);
6493
+ width: 100%;
6494
+ /* Figma: scrollbar thumb fill = surface/level3 */
6495
+ background-color: var(--color-surface-level3);
6496
+ cursor: grab;
6497
+ touch-action: none;
6339
6498
  }
6340
6499
 
6341
- /* ─── Input element ───────────────────────────────────── */
6342
-
6343
- .muka-search-input__input {
6344
- flex: 1 1 auto;
6345
- min-width: 0;
6500
+ .muka-scrollbar--horizontal .muka-scrollbar__thumb {
6501
+ left: 0;
6502
+ top: 0;
6503
+ width: auto;
6504
+ height: 100%;
6505
+ margin-left: 0;
6506
+ margin-top: 0;
6507
+ }
6508
+
6509
+ .muka-scrollbar__thumb:active {
6510
+ cursor: grabbing;
6511
+ }
6512
+
6513
+ .muka-scrollbar__grip {
6514
+ display: flex;
6515
+ flex-direction: column;
6516
+ gap: 2px;
6517
+ width: 14px;
6518
+ }
6519
+
6520
+ .muka-scrollbar__grip::before,
6521
+ .muka-scrollbar__grip::after {
6522
+ content: '';
6523
+ display: block;
6524
+ width: 100%;
6525
+ height: 2px;
6526
+ border-radius: var(--border-radius-md);
6527
+ background-color: var(--color-text-subtle-default);
6528
+ }
6529
+
6530
+ .muka-scrollbar__spacer {
6531
+ flex: 1 1 auto;
6532
+ min-height: 0;
6533
+ background-color: var(--color-surface-level2);
6534
+ }
6535
+
6536
+
6537
+ /* SearchInput */
6538
+ /* SearchInput Component Styles */
6539
+
6540
+ .muka-search-input {
6541
+ display: flex;
6542
+ align-items: center;
6543
+ gap: var(--spacing-3);
6544
+ width: 100%;
6545
+ }
6546
+
6547
+ /* ─── Field wrapper ───────────────────────────────────── */
6548
+
6549
+ .muka-search-input__field {
6550
+ flex: 1 1 auto;
6551
+ display: flex;
6552
+ align-items: center;
6553
+ gap: var(--spacing-2);
6554
+ background-color: var(--input-field-color-default-background);
6555
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
6556
+ border-radius: var(--input-field-radius-md);
6557
+ padding: 0 var(--input-field-padding-x);
6558
+ transition: border-color 0.12s ease, background-color 0.12s ease;
6559
+ }
6560
+
6561
+ .muka-search-input--focused .muka-search-input__field {
6562
+ border-color: var(--input-field-color-focus-border, var(--color-action-default));
6563
+ }
6564
+
6565
+ /* ─── Sizes ───────────────────────────────────────────── */
6566
+
6567
+ .muka-search-input--sm .muka-search-input__field {
6568
+ min-height: var(--input-field-height-sm);
6569
+ border-radius: var(--input-field-radius-sm);
6570
+ }
6571
+
6572
+ .muka-search-input--md .muka-search-input__field {
6573
+ min-height: var(--input-field-height-default);
6574
+ }
6575
+
6576
+ .muka-search-input--lg .muka-search-input__field {
6577
+ min-height: var(--input-field-height-lg);
6578
+ border-radius: var(--input-field-radius-lg);
6579
+ }
6580
+
6581
+ /* ─── Embedded variant (e.g. inside TopBar) ───────────── */
6582
+
6583
+ .muka-search-input--embedded .muka-search-input__field {
6584
+ background-color: var(--color-surface-level1);
6585
+ border-color: transparent;
6586
+ }
6587
+
6588
+ .muka-search-input--embedded.muka-search-input--focused .muka-search-input__field {
6589
+ border-color: transparent;
6590
+ background-color: var(--color-surface-level2);
6591
+ }
6592
+
6593
+ /* ─── Disabled ────────────────────────────────────────── */
6594
+
6595
+ .muka-search-input--disabled .muka-search-input__field {
6596
+ opacity: 0.5;
6597
+ pointer-events: none;
6598
+ }
6599
+
6600
+ /* ─── Leading icon ────────────────────────────────────── */
6601
+
6602
+ .muka-search-input__leading {
6603
+ display: inline-flex;
6604
+ align-items: center;
6605
+ justify-content: center;
6606
+ flex-shrink: 0;
6607
+ color: var(--color-text-subtle-default);
6608
+ }
6609
+
6610
+ /* ─── Input element ───────────────────────────────────── */
6611
+
6612
+ .muka-search-input__input {
6613
+ flex: 1 1 auto;
6614
+ min-width: 0;
6346
6615
  border: none;
6347
6616
  background: transparent;
6348
6617
  outline: none;
@@ -6434,133 +6703,6 @@ body {
6434
6703
  }
6435
6704
 
6436
6705
 
6437
- /* Scrollbar */
6438
- /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
6439
-
6440
- .muka-scrollbar {
6441
- display: flex;
6442
- flex-shrink: 0;
6443
- border-left: var(--border-width-regular) solid var(--color-border-default);
6444
- background-color: var(--color-surface-level3);
6445
- user-select: none;
6446
- }
6447
-
6448
- .muka-scrollbar--vertical {
6449
- flex-direction: column;
6450
- width: var(--size-2xl, 32px);
6451
- align-self: stretch;
6452
- }
6453
-
6454
- .muka-scrollbar--horizontal {
6455
- flex-direction: row;
6456
- height: var(--size-2xl, 32px);
6457
- width: 100%;
6458
- border-left: none;
6459
- border-top: var(--border-width-regular) solid var(--color-border-default);
6460
- }
6461
-
6462
- .muka-scrollbar__button {
6463
- display: flex;
6464
- align-items: center;
6465
- justify-content: center;
6466
- flex-shrink: 0;
6467
- width: 100%;
6468
- height: var(--size-2xl, 32px);
6469
- padding: 0;
6470
- border: none;
6471
- background-color: var(--button-color-tertiary-background-default, var(--color-surface-level3));
6472
- color: var(--color-text-default-default);
6473
- cursor: pointer;
6474
- }
6475
-
6476
- .muka-scrollbar--horizontal .muka-scrollbar__button {
6477
- width: var(--size-2xl, 32px);
6478
- height: 100%;
6479
- }
6480
-
6481
- .muka-scrollbar__button:hover {
6482
- background-color: var(--color-surface-hover);
6483
- }
6484
-
6485
- .muka-scrollbar__divider {
6486
- flex-shrink: 0;
6487
- width: 100%;
6488
- height: 1px;
6489
- background-color: var(--color-border-default);
6490
- }
6491
-
6492
- .muka-scrollbar--horizontal .muka-scrollbar__divider {
6493
- width: 1px;
6494
- height: 100%;
6495
- }
6496
-
6497
- .muka-scrollbar__track {
6498
- position: relative;
6499
- display: flex;
6500
- flex-direction: column;
6501
- flex: 1 1 auto;
6502
- min-height: 0;
6503
- width: 100%;
6504
- }
6505
-
6506
- .muka-scrollbar--horizontal .muka-scrollbar__track {
6507
- flex-direction: row;
6508
- min-width: 0;
6509
- height: 100%;
6510
- }
6511
-
6512
- .muka-scrollbar__thumb {
6513
- position: absolute;
6514
- left: 0;
6515
- top: 0;
6516
- z-index: 1;
6517
- display: flex;
6518
- align-items: center;
6519
- justify-content: center;
6520
- width: 100%;
6521
- /* Figma: scrollbar thumb fill = surface/level3 */
6522
- background-color: var(--color-surface-level3);
6523
- cursor: grab;
6524
- touch-action: none;
6525
- }
6526
-
6527
- .muka-scrollbar--horizontal .muka-scrollbar__thumb {
6528
- left: 0;
6529
- top: 0;
6530
- width: auto;
6531
- height: 100%;
6532
- margin-left: 0;
6533
- margin-top: 0;
6534
- }
6535
-
6536
- .muka-scrollbar__thumb:active {
6537
- cursor: grabbing;
6538
- }
6539
-
6540
- .muka-scrollbar__grip {
6541
- display: flex;
6542
- flex-direction: column;
6543
- gap: 2px;
6544
- width: 14px;
6545
- }
6546
-
6547
- .muka-scrollbar__grip::before,
6548
- .muka-scrollbar__grip::after {
6549
- content: '';
6550
- display: block;
6551
- width: 100%;
6552
- height: 2px;
6553
- border-radius: var(--border-radius-md);
6554
- background-color: var(--color-text-subtle-default);
6555
- }
6556
-
6557
- .muka-scrollbar__spacer {
6558
- flex: 1 1 auto;
6559
- min-height: 0;
6560
- background-color: var(--color-surface-level2);
6561
- }
6562
-
6563
-
6564
6706
  /* RecordingBar */
6565
6707
  /* RecordingBar Component Styles */
6566
6708
 
@@ -6827,155 +6969,12 @@ body {
6827
6969
  }
6828
6970
 
6829
6971
 
6830
- /* RadioTile */
6831
- /* RadioTile Component Styles - Using Muka Design Tokens */
6972
+ /* Radio */
6973
+ /* Radio Component Styles - Using Muka Design Tokens */
6832
6974
 
6833
- /* Base tile styles - horizontal */
6834
- .muka-radio-tile {
6835
- display: flex;
6836
- align-items: center;
6837
- gap: var(--spacing-4);
6838
- padding: var(--spacing-4);
6839
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
6840
- border-radius: var(--input-field-radius-lg);
6841
- background-color: var(--color-surface-level3);
6842
- cursor: pointer;
6843
- transition: border-color 0.15s ease, border-width 0.15s ease;
6844
- overflow: hidden;
6845
- box-sizing: border-box;
6846
- }
6847
-
6848
- .muka-radio-tile--disabled {
6849
- cursor: not-allowed;
6850
- opacity: 0.6;
6851
- }
6852
-
6853
- /* Selected state */
6854
- .muka-radio-tile[data-checked] {
6855
- border-width: var(--border-width-bold);
6856
- border-color: var(--color-action-default);
6857
- }
6858
-
6859
- /* Vertical layout */
6860
- .muka-radio-tile--vertical {
6861
- flex-direction: column;
6862
- align-items: center;
6863
- gap: var(--spacing-2);
6864
- position: relative;
6865
- width: 160px;
6866
- }
6867
-
6868
- /* Radio container */
6869
- .muka-radio-tile__radio {
6870
- flex-shrink: 0;
6871
- }
6872
-
6873
- /* Corner-positioned radio for vertical */
6874
- .muka-radio-tile__radio--corner {
6875
- position: absolute;
6876
- top: var(--spacing-4);
6877
- left: var(--spacing-4);
6878
- }
6879
-
6880
- /* Adjust corner position when selected (border is thicker) */
6881
- .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
6882
- top: calc(var(--spacing-4) - 1px);
6883
- left: calc(var(--spacing-4) - 1px);
6884
- }
6885
-
6886
- /* Icon */
6887
- .muka-radio-tile__icon {
6888
- display: flex;
6889
- align-items: center;
6890
- justify-content: center;
6891
- flex-shrink: 0;
6892
- width: var(--icon-size-default);
6893
- height: var(--icon-size-default);
6894
- color: var(--color-text-default-default);
6895
- }
6896
-
6897
- .muka-radio-tile__icon svg {
6898
- width: 100%;
6899
- height: 100%;
6900
- }
6901
-
6902
- /* Image */
6903
- .muka-radio-tile__image {
6904
- flex-shrink: 0;
6905
- overflow: hidden;
6906
- border-radius: var(--border-radius-sm);
6907
- }
6908
-
6909
- .muka-radio-tile__image img {
6910
- display: block;
6911
- width: 100%;
6912
- height: 100%;
6913
- object-fit: cover;
6914
- }
6915
-
6916
- /* Horizontal image sizing */
6917
- .muka-radio-tile__image--horizontal {
6918
- width: 40px;
6919
- height: 40px;
6920
- }
6921
-
6922
- /* Vertical image sizing */
6923
- .muka-radio-tile--vertical .muka-radio-tile__image {
6924
- width: 100%;
6925
- aspect-ratio: 4/3;
6926
- }
6927
-
6928
- /* Content container */
6929
- .muka-radio-tile__content {
6930
- display: flex;
6931
- flex-direction: column;
6932
- flex: 1;
6933
- min-width: 0;
6934
- gap: var(--spacing-1);
6935
- }
6936
-
6937
- /* Label */
6938
- .muka-radio-tile__label {
6939
- font-family: var(--text-body-lg-regular-fontFamily);
6940
- font-weight: var(--text-body-lg-regular-fontWeight);
6941
- font-size: var(--text-body-lg-regular-fontSize);
6942
- line-height: var(--text-body-lg-regular-lineHeight);
6943
- color: var(--color-text-default-default);
6944
- }
6945
-
6946
- .muka-radio-tile__label--bold {
6947
- font-family: var(--text-label-lg-semibold-fontFamily);
6948
- font-weight: var(--text-label-lg-semibold-fontWeight);
6949
- font-size: var(--text-label-lg-semibold-fontSize);
6950
- line-height: var(--text-label-lg-semibold-lineHeight);
6951
- }
6952
-
6953
- .muka-radio-tile__label--center {
6954
- text-align: center;
6955
- }
6956
-
6957
- /* Caption */
6958
- .muka-radio-tile__caption {
6959
- font-family: var(--text-body-base-regular-fontFamily);
6960
- font-weight: var(--text-body-base-regular-fontWeight);
6961
- font-size: var(--text-body-base-regular-fontSize);
6962
- line-height: var(--text-body-base-regular-lineHeight);
6963
- color: var(--color-text-subtle-default);
6964
- }
6965
-
6966
- /* Disabled states */
6967
- .muka-radio-tile--disabled .muka-radio-tile__label,
6968
- .muka-radio-tile--disabled .muka-radio-tile__icon {
6969
- color: var(--color-text-subtle-default);
6970
- }
6971
-
6972
-
6973
- /* Radio */
6974
- /* Radio Component Styles - Using Muka Design Tokens */
6975
-
6976
- /* Wrapper - clickable label container */
6977
- .muka-radio {
6978
- display: inline-flex;
6975
+ /* Wrapper - clickable label container */
6976
+ .muka-radio {
6977
+ display: inline-flex;
6979
6978
  align-items: center;
6980
6979
  gap: var(--spacing-4);
6981
6980
  cursor: pointer;
@@ -7983,105 +7982,248 @@ button.muka-progress-tracker__tab:focus-visible {
7983
7982
  }
7984
7983
 
7985
7984
 
7986
- /* Progress */
7987
- /* Progress Component Styles - Using Muka Design Tokens */
7988
-
7989
- /* ========================================
7990
- BAR VARIANT
7991
- ======================================== */
7985
+ /* RadioTile */
7986
+ /* RadioTile Component Styles - Using Muka Design Tokens */
7992
7987
 
7993
- .muka-progress--bar {
7988
+ /* Base tile styles - horizontal */
7989
+ .muka-radio-tile {
7994
7990
  display: flex;
7995
7991
  align-items: center;
7996
- gap: var(--spacing-2);
7997
- width: 100%;
7998
- }
7999
-
8000
- .muka-progress--bar .muka-progress__track {
8001
- flex: 1;
8002
- background-color: var(--color-surface-level1);
8003
- border-radius: var(--border-radius-full);
7992
+ gap: var(--spacing-4);
7993
+ padding: var(--spacing-4);
7994
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
7995
+ border-radius: var(--input-field-radius-lg);
7996
+ background-color: var(--color-surface-level3);
7997
+ cursor: pointer;
7998
+ transition: border-color 0.15s ease, border-width 0.15s ease;
8004
7999
  overflow: hidden;
8000
+ box-sizing: border-box;
8005
8001
  }
8006
8002
 
8007
- .muka-progress--bar.muka-progress--sm .muka-progress__track {
8008
- height: var(--progress-size-bar-height-sm);
8009
- }
8010
-
8011
- .muka-progress--bar.muka-progress--md .muka-progress__track {
8012
- height: var(--progress-size-bar-height-md);
8003
+ .muka-radio-tile--disabled {
8004
+ cursor: not-allowed;
8005
+ opacity: 0.6;
8013
8006
  }
8014
8007
 
8015
- .muka-progress--bar.muka-progress--lg .muka-progress__track {
8016
- height: var(--progress-size-bar-height-lg);
8008
+ /* Selected state */
8009
+ .muka-radio-tile[data-checked] {
8010
+ border-width: var(--border-width-bold);
8011
+ border-color: var(--color-action-default);
8017
8012
  }
8018
8013
 
8019
- .muka-progress--bar .muka-progress__fill {
8020
- height: 100%;
8021
- background-color: var(--color-action-default);
8022
- border-radius: var(--border-radius-full);
8023
- transition: width 0.3s ease;
8014
+ /* Vertical layout */
8015
+ .muka-radio-tile--vertical {
8016
+ flex-direction: column;
8017
+ align-items: center;
8018
+ gap: var(--spacing-2);
8019
+ position: relative;
8020
+ width: 160px;
8024
8021
  }
8025
8022
 
8026
- .muka-progress--bar .muka-progress__label {
8023
+ /* Radio container */
8024
+ .muka-radio-tile__radio {
8027
8025
  flex-shrink: 0;
8028
- font-family: var(--text-label-sm-semibold-fontFamily);
8029
- font-weight: var(--text-label-sm-semibold-fontWeight);
8030
- font-size: var(--text-label-sm-semibold-fontSize);
8031
- line-height: var(--text-label-sm-semibold-lineHeight);
8032
- color: var(--color-text-default-default);
8033
- min-width: 3ch;
8034
- text-align: right;
8035
8026
  }
8036
8027
 
8037
- /* Indeterminate animation for bar */
8038
- .muka-progress--bar.muka-progress--indeterminate .muka-progress__fill {
8039
- width: 40%;
8040
- animation: muka-progress-bar-indeterminate 1.5s ease-in-out infinite;
8028
+ /* Corner-positioned radio for vertical */
8029
+ .muka-radio-tile__radio--corner {
8030
+ position: absolute;
8031
+ top: var(--spacing-4);
8032
+ left: var(--spacing-4);
8041
8033
  }
8042
8034
 
8043
- @keyframes muka-progress-bar-indeterminate {
8044
- 0% {
8045
- transform: translateX(-100%);
8046
- }
8047
- 100% {
8048
- transform: translateX(250%);
8049
- }
8035
+ /* Adjust corner position when selected (border is thicker) */
8036
+ .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
8037
+ top: calc(var(--spacing-4) - 1px);
8038
+ left: calc(var(--spacing-4) - 1px);
8050
8039
  }
8051
8040
 
8052
- /* ========================================
8053
- CIRCLE VARIANT
8054
- ======================================== */
8055
-
8056
- .muka-progress--circle {
8057
- position: relative;
8058
- display: inline-flex;
8041
+ /* Icon */
8042
+ .muka-radio-tile__icon {
8043
+ display: flex;
8059
8044
  align-items: center;
8060
8045
  justify-content: center;
8046
+ flex-shrink: 0;
8047
+ width: var(--icon-size-default);
8048
+ height: var(--icon-size-default);
8049
+ color: var(--color-text-default-default);
8061
8050
  }
8062
8051
 
8063
- .muka-progress--circle.muka-progress--sm {
8064
- width: var(--progress-size-circle-diameter-sm);
8065
- height: var(--progress-size-circle-diameter-sm);
8066
- }
8067
-
8068
- .muka-progress--circle.muka-progress--md {
8069
- width: var(--progress-size-circle-diameter-md);
8070
- height: var(--progress-size-circle-diameter-md);
8071
- }
8072
-
8073
- .muka-progress--circle.muka-progress--lg {
8074
- width: var(--progress-size-circle-diameter-lg);
8075
- height: var(--progress-size-circle-diameter-lg);
8076
- }
8077
-
8078
- .muka-progress__circle {
8052
+ .muka-radio-tile__icon svg {
8079
8053
  width: 100%;
8080
8054
  height: 100%;
8081
- transform: rotate(-90deg);
8082
8055
  }
8083
8056
 
8084
- .muka-progress--circle .muka-progress__track {
8057
+ /* Image */
8058
+ .muka-radio-tile__image {
8059
+ flex-shrink: 0;
8060
+ overflow: hidden;
8061
+ border-radius: var(--border-radius-sm);
8062
+ }
8063
+
8064
+ .muka-radio-tile__image img {
8065
+ display: block;
8066
+ width: 100%;
8067
+ height: 100%;
8068
+ object-fit: cover;
8069
+ }
8070
+
8071
+ /* Horizontal image sizing */
8072
+ .muka-radio-tile__image--horizontal {
8073
+ width: 40px;
8074
+ height: 40px;
8075
+ }
8076
+
8077
+ /* Vertical image sizing */
8078
+ .muka-radio-tile--vertical .muka-radio-tile__image {
8079
+ width: 100%;
8080
+ aspect-ratio: 4/3;
8081
+ }
8082
+
8083
+ /* Content container */
8084
+ .muka-radio-tile__content {
8085
+ display: flex;
8086
+ flex-direction: column;
8087
+ flex: 1;
8088
+ min-width: 0;
8089
+ gap: var(--spacing-1);
8090
+ }
8091
+
8092
+ /* Label */
8093
+ .muka-radio-tile__label {
8094
+ font-family: var(--text-body-lg-regular-fontFamily);
8095
+ font-weight: var(--text-body-lg-regular-fontWeight);
8096
+ font-size: var(--text-body-lg-regular-fontSize);
8097
+ line-height: var(--text-body-lg-regular-lineHeight);
8098
+ color: var(--color-text-default-default);
8099
+ }
8100
+
8101
+ .muka-radio-tile__label--bold {
8102
+ font-family: var(--text-label-lg-semibold-fontFamily);
8103
+ font-weight: var(--text-label-lg-semibold-fontWeight);
8104
+ font-size: var(--text-label-lg-semibold-fontSize);
8105
+ line-height: var(--text-label-lg-semibold-lineHeight);
8106
+ }
8107
+
8108
+ .muka-radio-tile__label--center {
8109
+ text-align: center;
8110
+ }
8111
+
8112
+ /* Caption */
8113
+ .muka-radio-tile__caption {
8114
+ font-family: var(--text-body-base-regular-fontFamily);
8115
+ font-weight: var(--text-body-base-regular-fontWeight);
8116
+ font-size: var(--text-body-base-regular-fontSize);
8117
+ line-height: var(--text-body-base-regular-lineHeight);
8118
+ color: var(--color-text-subtle-default);
8119
+ }
8120
+
8121
+ /* Disabled states */
8122
+ .muka-radio-tile--disabled .muka-radio-tile__label,
8123
+ .muka-radio-tile--disabled .muka-radio-tile__icon {
8124
+ color: var(--color-text-subtle-default);
8125
+ }
8126
+
8127
+
8128
+ /* Progress */
8129
+ /* Progress Component Styles - Using Muka Design Tokens */
8130
+
8131
+ /* ========================================
8132
+ BAR VARIANT
8133
+ ======================================== */
8134
+
8135
+ .muka-progress--bar {
8136
+ display: flex;
8137
+ align-items: center;
8138
+ gap: var(--spacing-2);
8139
+ width: 100%;
8140
+ }
8141
+
8142
+ .muka-progress--bar .muka-progress__track {
8143
+ flex: 1;
8144
+ background-color: var(--color-surface-level1);
8145
+ border-radius: var(--border-radius-full);
8146
+ overflow: hidden;
8147
+ }
8148
+
8149
+ .muka-progress--bar.muka-progress--sm .muka-progress__track {
8150
+ height: var(--progress-size-bar-height-sm);
8151
+ }
8152
+
8153
+ .muka-progress--bar.muka-progress--md .muka-progress__track {
8154
+ height: var(--progress-size-bar-height-md);
8155
+ }
8156
+
8157
+ .muka-progress--bar.muka-progress--lg .muka-progress__track {
8158
+ height: var(--progress-size-bar-height-lg);
8159
+ }
8160
+
8161
+ .muka-progress--bar .muka-progress__fill {
8162
+ height: 100%;
8163
+ background-color: var(--color-action-default);
8164
+ border-radius: var(--border-radius-full);
8165
+ transition: width 0.3s ease;
8166
+ }
8167
+
8168
+ .muka-progress--bar .muka-progress__label {
8169
+ flex-shrink: 0;
8170
+ font-family: var(--text-label-sm-semibold-fontFamily);
8171
+ font-weight: var(--text-label-sm-semibold-fontWeight);
8172
+ font-size: var(--text-label-sm-semibold-fontSize);
8173
+ line-height: var(--text-label-sm-semibold-lineHeight);
8174
+ color: var(--color-text-default-default);
8175
+ min-width: 3ch;
8176
+ text-align: right;
8177
+ }
8178
+
8179
+ /* Indeterminate animation for bar */
8180
+ .muka-progress--bar.muka-progress--indeterminate .muka-progress__fill {
8181
+ width: 40%;
8182
+ animation: muka-progress-bar-indeterminate 1.5s ease-in-out infinite;
8183
+ }
8184
+
8185
+ @keyframes muka-progress-bar-indeterminate {
8186
+ 0% {
8187
+ transform: translateX(-100%);
8188
+ }
8189
+ 100% {
8190
+ transform: translateX(250%);
8191
+ }
8192
+ }
8193
+
8194
+ /* ========================================
8195
+ CIRCLE VARIANT
8196
+ ======================================== */
8197
+
8198
+ .muka-progress--circle {
8199
+ position: relative;
8200
+ display: inline-flex;
8201
+ align-items: center;
8202
+ justify-content: center;
8203
+ }
8204
+
8205
+ .muka-progress--circle.muka-progress--sm {
8206
+ width: var(--progress-size-circle-diameter-sm);
8207
+ height: var(--progress-size-circle-diameter-sm);
8208
+ }
8209
+
8210
+ .muka-progress--circle.muka-progress--md {
8211
+ width: var(--progress-size-circle-diameter-md);
8212
+ height: var(--progress-size-circle-diameter-md);
8213
+ }
8214
+
8215
+ .muka-progress--circle.muka-progress--lg {
8216
+ width: var(--progress-size-circle-diameter-lg);
8217
+ height: var(--progress-size-circle-diameter-lg);
8218
+ }
8219
+
8220
+ .muka-progress__circle {
8221
+ width: 100%;
8222
+ height: 100%;
8223
+ transform: rotate(-90deg);
8224
+ }
8225
+
8226
+ .muka-progress--circle .muka-progress__track {
8085
8227
  fill: none;
8086
8228
  stroke: var(--color-surface-level1);
8087
8229
  }
@@ -8160,6 +8302,8 @@ button.muka-progress-tracker__tab:focus-visible {
8160
8302
 
8161
8303
  .muka-profile-badge {
8162
8304
  display: inline-flex;
8305
+ max-width: 100%;
8306
+ min-width: 0;
8163
8307
  align-items: center;
8164
8308
  font-family: var(--text-body-base-regular-fontFamily);
8165
8309
  }
@@ -8190,6 +8334,10 @@ button.muka-progress-tracker__tab:focus-visible {
8190
8334
  }
8191
8335
 
8192
8336
  .muka-profile-badge__name {
8337
+ max-width: 100%;
8338
+ overflow: hidden;
8339
+ text-overflow: ellipsis;
8340
+ white-space: nowrap;
8193
8341
  font-family: var(--text-body-base-regular-fontFamily);
8194
8342
  font-size: var(--text-body-base-regular-fontSize);
8195
8343
  font-weight: var(--text-body-base-regular-fontWeight);
@@ -8263,166 +8411,69 @@ button.muka-progress-tracker__tab:focus-visible {
8263
8411
  }
8264
8412
 
8265
8413
 
8266
- /* PriceTag */
8267
- /* PriceTag Component Styles - Using Muka Design Tokens */
8414
+ /* Popover */
8415
+ /* Popover Component Styles */
8268
8416
 
8269
- .muka-price-tag {
8270
- display: flex;
8271
- flex-shrink: 0;
8417
+ .muka-popover__content {
8418
+ background-color: var(--color-surface-level3);
8419
+ border: var(--border-width-regular) solid var(--color-border-default);
8420
+ border-radius: var(--radius-md);
8421
+ padding: var(--spacing-4);
8422
+ box-shadow: var(--shadow-level3);
8423
+ max-width: 20rem;
8424
+ z-index: 50;
8425
+ animation: muka-popover-fade-in 150ms ease;
8272
8426
  }
8273
8427
 
8274
- /* Medium: stacked layout (price on top, unit below) */
8275
- .muka-price-tag--md {
8276
- flex-direction: column;
8277
- align-items: flex-end;
8278
- justify-content: center;
8428
+ @keyframes muka-popover-fade-in {
8429
+ from {
8430
+ opacity: 0;
8431
+ transform: scale(0.96);
8432
+ }
8433
+ to {
8434
+ opacity: 1;
8435
+ transform: scale(1);
8436
+ }
8279
8437
  }
8280
8438
 
8281
- /* Small: inline layout */
8282
- .muka-price-tag--sm {
8283
- flex-direction: row;
8284
- align-items: center;
8285
- gap: 3px;
8439
+ /* Arrow */
8440
+ .muka-popover__arrow {
8441
+ fill: var(--color-surface-level3);
8286
8442
  }
8287
8443
 
8288
- /* Amount row: currency + numbers */
8289
- .muka-price-tag__amount {
8444
+
8445
+ /* PlanningGantt */
8446
+ /* PlanningGantt (MUK-105) — one week per page, never scrolls horizontally. */
8447
+
8448
+ .muka-gantt {
8449
+ container-type: inline-size;
8450
+ container-name: muka-gantt;
8290
8451
  display: flex;
8291
- align-items: flex-start;
8292
- gap: var(--spacing-1);
8452
+ flex-direction: column;
8453
+ gap: var(--spacing-3);
8454
+ color: var(--gantt-bar-text);
8455
+ font-family: var(--text-body-sm-regular-fontFamily);
8293
8456
  }
8294
8457
 
8295
- .muka-price-tag--sm .muka-price-tag__amount {
8458
+ /* Toolbar: today + pager on the left, actions on the right */
8459
+ .muka-gantt__toolbar {
8460
+ display: flex;
8461
+ flex-wrap: wrap;
8296
8462
  align-items: center;
8463
+ justify-content: space-between;
8464
+ gap: var(--spacing-3);
8297
8465
  }
8298
8466
 
8299
- /* Numbers group: whole + decimal + cents */
8300
- .muka-price-tag__numbers {
8467
+ .muka-gantt__pager {
8301
8468
  display: flex;
8302
- align-items: baseline;
8469
+ align-items: center;
8470
+ gap: var(--spacing-2);
8303
8471
  }
8304
8472
 
8305
- /* ─── Medium size typography ──────────────────────────── */
8306
-
8307
- .muka-price-tag--md .muka-price-tag__currency {
8308
- font-family: var(--text-subheading-md-fontFamily);
8309
- font-weight: var(--text-subheading-md-fontWeight);
8310
- font-size: var(--text-subheading-md-fontSize);
8311
- line-height: var(--text-label-2xl-bold-lineHeight);
8312
- color: var(--color-text-subtle-default);
8313
- }
8314
-
8315
- .muka-price-tag--md .muka-price-tag__whole {
8316
- font-family: var(--text-label-2xl-bold-fontFamily);
8317
- font-weight: var(--text-label-2xl-bold-fontWeight);
8318
- font-size: var(--text-label-2xl-bold-fontSize);
8319
- line-height: var(--text-label-2xl-bold-lineHeight);
8320
- color: var(--color-text-default-default);
8321
- }
8322
-
8323
- .muka-price-tag--md .muka-price-tag__decimal,
8324
- .muka-price-tag--md .muka-price-tag__cents {
8325
- font-family: var(--text-label-md-bold-fontFamily);
8326
- font-weight: var(--text-label-md-bold-fontWeight);
8327
- font-size: var(--text-label-md-bold-fontSize);
8328
- line-height: var(--text-label-md-bold-lineHeight);
8329
- color: var(--color-text-default-default);
8330
- }
8331
-
8332
- /* ─── Small size typography ───────────────────────────── */
8333
-
8334
- .muka-price-tag--sm .muka-price-tag__currency {
8335
- font-family: var(--text-body-base-regular-fontFamily);
8336
- font-weight: var(--text-body-base-regular-fontWeight);
8337
- font-size: var(--text-body-base-regular-fontSize);
8338
- line-height: var(--text-label-md-bold-lineHeight);
8339
- color: var(--color-text-subtle-default);
8340
- }
8341
-
8342
- .muka-price-tag--sm .muka-price-tag__whole,
8343
- .muka-price-tag--sm .muka-price-tag__decimal,
8344
- .muka-price-tag--sm .muka-price-tag__cents {
8345
- font-family: var(--text-label-md-bold-fontFamily);
8346
- font-weight: var(--text-label-md-bold-fontWeight);
8347
- font-size: var(--text-label-md-bold-fontSize);
8348
- line-height: var(--text-label-md-bold-lineHeight);
8349
- color: var(--color-text-default-default);
8350
- }
8351
-
8352
- /* ─── Unit label (same for both sizes) ────────────────── */
8353
-
8354
- .muka-price-tag__unit {
8355
- font-family: var(--text-body-sm-regular-fontFamily);
8356
- font-weight: var(--text-body-sm-regular-fontWeight);
8357
- font-size: var(--text-body-sm-regular-fontSize);
8358
- line-height: var(--text-body-sm-regular-lineHeight);
8359
- color: var(--color-text-subtle-default);
8360
- }
8361
-
8362
-
8363
- /* Popover */
8364
- /* Popover Component Styles */
8365
-
8366
- .muka-popover__content {
8367
- background-color: var(--color-surface-level3);
8368
- border: var(--border-width-regular) solid var(--color-border-default);
8369
- border-radius: var(--radius-md);
8370
- padding: var(--spacing-4);
8371
- box-shadow: var(--shadow-level3);
8372
- max-width: 20rem;
8373
- z-index: 50;
8374
- animation: muka-popover-fade-in 150ms ease;
8375
- }
8376
-
8377
- @keyframes muka-popover-fade-in {
8378
- from {
8379
- opacity: 0;
8380
- transform: scale(0.96);
8381
- }
8382
- to {
8383
- opacity: 1;
8384
- transform: scale(1);
8385
- }
8386
- }
8387
-
8388
- /* Arrow */
8389
- .muka-popover__arrow {
8390
- fill: var(--color-surface-level3);
8391
- }
8392
-
8393
-
8394
- /* PlanningGantt */
8395
- /* PlanningGantt (MUK-105) — one week per page, never scrolls horizontally. */
8396
-
8397
- .muka-gantt {
8398
- container-type: inline-size;
8399
- container-name: muka-gantt;
8400
- display: flex;
8401
- flex-direction: column;
8402
- gap: var(--spacing-3);
8403
- color: var(--gantt-bar-text);
8404
- font-family: var(--text-body-sm-regular-fontFamily);
8405
- }
8406
-
8407
- /* Toolbar: today + pager on the left, actions on the right */
8408
- .muka-gantt__toolbar {
8409
- display: flex;
8410
- flex-wrap: wrap;
8411
- align-items: center;
8412
- justify-content: space-between;
8413
- gap: var(--spacing-3);
8414
- }
8415
-
8416
- .muka-gantt__pager {
8417
- display: flex;
8418
- align-items: center;
8419
- gap: var(--spacing-2);
8420
- }
8421
-
8422
- .muka-gantt__pager-group {
8423
- display: flex;
8424
- align-items: center;
8425
- gap: var(--spacing-1);
8473
+ .muka-gantt__pager-group {
8474
+ display: flex;
8475
+ align-items: center;
8476
+ gap: var(--spacing-1);
8426
8477
  }
8427
8478
 
8428
8479
  .muka-gantt__week-label {
@@ -8788,6 +8839,103 @@ button.muka-progress-tracker__tab:focus-visible {
8788
8839
  }
8789
8840
 
8790
8841
 
8842
+ /* PriceTag */
8843
+ /* PriceTag Component Styles - Using Muka Design Tokens */
8844
+
8845
+ .muka-price-tag {
8846
+ display: flex;
8847
+ flex-shrink: 0;
8848
+ }
8849
+
8850
+ /* Medium: stacked layout (price on top, unit below) */
8851
+ .muka-price-tag--md {
8852
+ flex-direction: column;
8853
+ align-items: flex-end;
8854
+ justify-content: center;
8855
+ }
8856
+
8857
+ /* Small: inline layout */
8858
+ .muka-price-tag--sm {
8859
+ flex-direction: row;
8860
+ align-items: center;
8861
+ gap: 3px;
8862
+ }
8863
+
8864
+ /* Amount row: currency + numbers */
8865
+ .muka-price-tag__amount {
8866
+ display: flex;
8867
+ align-items: flex-start;
8868
+ gap: var(--spacing-1);
8869
+ }
8870
+
8871
+ .muka-price-tag--sm .muka-price-tag__amount {
8872
+ align-items: center;
8873
+ }
8874
+
8875
+ /* Numbers group: whole + decimal + cents */
8876
+ .muka-price-tag__numbers {
8877
+ display: flex;
8878
+ align-items: baseline;
8879
+ }
8880
+
8881
+ /* ─── Medium size typography ──────────────────────────── */
8882
+
8883
+ .muka-price-tag--md .muka-price-tag__currency {
8884
+ font-family: var(--text-subheading-md-fontFamily);
8885
+ font-weight: var(--text-subheading-md-fontWeight);
8886
+ font-size: var(--text-subheading-md-fontSize);
8887
+ line-height: var(--text-label-2xl-bold-lineHeight);
8888
+ color: var(--color-text-subtle-default);
8889
+ }
8890
+
8891
+ .muka-price-tag--md .muka-price-tag__whole {
8892
+ font-family: var(--text-label-2xl-bold-fontFamily);
8893
+ font-weight: var(--text-label-2xl-bold-fontWeight);
8894
+ font-size: var(--text-label-2xl-bold-fontSize);
8895
+ line-height: var(--text-label-2xl-bold-lineHeight);
8896
+ color: var(--color-text-default-default);
8897
+ }
8898
+
8899
+ .muka-price-tag--md .muka-price-tag__decimal,
8900
+ .muka-price-tag--md .muka-price-tag__cents {
8901
+ font-family: var(--text-label-md-bold-fontFamily);
8902
+ font-weight: var(--text-label-md-bold-fontWeight);
8903
+ font-size: var(--text-label-md-bold-fontSize);
8904
+ line-height: var(--text-label-md-bold-lineHeight);
8905
+ color: var(--color-text-default-default);
8906
+ }
8907
+
8908
+ /* ─── Small size typography ───────────────────────────── */
8909
+
8910
+ .muka-price-tag--sm .muka-price-tag__currency {
8911
+ font-family: var(--text-body-base-regular-fontFamily);
8912
+ font-weight: var(--text-body-base-regular-fontWeight);
8913
+ font-size: var(--text-body-base-regular-fontSize);
8914
+ line-height: var(--text-label-md-bold-lineHeight);
8915
+ color: var(--color-text-subtle-default);
8916
+ }
8917
+
8918
+ .muka-price-tag--sm .muka-price-tag__whole,
8919
+ .muka-price-tag--sm .muka-price-tag__decimal,
8920
+ .muka-price-tag--sm .muka-price-tag__cents {
8921
+ font-family: var(--text-label-md-bold-fontFamily);
8922
+ font-weight: var(--text-label-md-bold-fontWeight);
8923
+ font-size: var(--text-label-md-bold-fontSize);
8924
+ line-height: var(--text-label-md-bold-lineHeight);
8925
+ color: var(--color-text-default-default);
8926
+ }
8927
+
8928
+ /* ─── Unit label (same for both sizes) ────────────────── */
8929
+
8930
+ .muka-price-tag__unit {
8931
+ font-family: var(--text-body-sm-regular-fontFamily);
8932
+ font-weight: var(--text-body-sm-regular-fontWeight);
8933
+ font-size: var(--text-body-sm-regular-fontSize);
8934
+ line-height: var(--text-body-sm-regular-lineHeight);
8935
+ color: var(--color-text-subtle-default);
8936
+ }
8937
+
8938
+
8791
8939
  /* PieChart */
8792
8940
  /* PieChart Component Styles - Using Muka Design Tokens */
8793
8941
 
@@ -8962,6 +9110,27 @@ button.muka-progress-tracker__tab:focus-visible {
8962
9110
  color: var(--color-text-default-default);
8963
9111
  }
8964
9112
 
9113
+ /*
9114
+ * Touch devices (phones, tablets without a mouse) have nothing to drag a file
9115
+ * from: the card and its "or drop here" hint go, and only the button stays.
9116
+ * Keyed on input capability, not width, so a narrow desktop window keeps
9117
+ * its drop zone.
9118
+ */
9119
+ @media (hover: none) and (pointer: coarse) {
9120
+ .muka-photo-uploader__dropzone {
9121
+ align-items: flex-start;
9122
+ padding: 0;
9123
+ background-color: transparent;
9124
+ border: none;
9125
+ border-radius: 0;
9126
+ cursor: default;
9127
+ }
9128
+
9129
+ .muka-photo-uploader__dropzone-text {
9130
+ display: none;
9131
+ }
9132
+ }
9133
+
8965
9134
  /* ─── Disabled ────────────────────────────────────────── */
8966
9135
  .muka-photo-uploader--disabled .muka-photo-uploader__dropzone {
8967
9136
  cursor: not-allowed;
@@ -9767,6 +9936,39 @@ button.muka-progress-tracker__tab:focus-visible {
9767
9936
  }
9768
9937
  }
9769
9938
 
9939
+ /* ─── Items with an icon: compact ListItem rows ──────────────────────────── */
9940
+
9941
+ /*
9942
+ * A menu whose items carry an icon uses the compact ListItem layout (Figma
9943
+ * ListItem × Padding=Compact, the Bouwplan account menu): a 12px inset on the
9944
+ * list, rows with an 8px inset, a 32px icon slot holding a 20px icon, 12px
9945
+ * between icon and label. The icon takes
9946
+ * the menu's icon colour, so an `<Icon>` passed in doesn't need a colour or
9947
+ * a size of its own. Menus without icons keep their tighter rows.
9948
+ */
9949
+ .muka-menu__viewport:has(.muka-menu__item-icon) {
9950
+ padding: var(--spacing-3);
9951
+ }
9952
+
9953
+ .muka-menu__item:has(> .muka-menu__item-icon) {
9954
+ gap: var(--spacing-3);
9955
+ padding-top: var(--spacing-2);
9956
+ padding-bottom: var(--spacing-2);
9957
+ padding-left: var(--spacing-2);
9958
+ }
9959
+
9960
+ .muka-menu__item-icon {
9961
+ min-width: var(--size-2xl);
9962
+ min-height: var(--size-2xl);
9963
+ }
9964
+
9965
+ .muka-menu__item-icon > .muka-icon,
9966
+ .muka-menu__item-icon > svg {
9967
+ width: var(--icon-size-sm);
9968
+ height: var(--icon-size-sm);
9969
+ color: inherit;
9970
+ }
9971
+
9770
9972
 
9771
9973
  /* MediaViewer */
9772
9974
  /* MediaViewer Component Styles - Using Muka Design Tokens */
@@ -14620,724 +14822,383 @@ button.muka-chat-photo-grid__tile:focus-visible {
14620
14822
  }
14621
14823
 
14622
14824
 
14623
- /* ChatMessage */
14624
- /* ChatMessage Component Styles */
14825
+ /* ChatEvent */
14826
+ /* ChatEvent: a line in a chat that isn't a message from a person */
14625
14827
 
14626
- .muka-chat-message {
14828
+ .muka-chat-event {
14627
14829
  display: flex;
14628
14830
  flex-direction: column;
14831
+ align-items: center;
14832
+ gap: var(--spacing-2);
14629
14833
  width: 100%;
14630
- max-width: 100%;
14834
+ padding: 0 var(--spacing-4);
14835
+ box-sizing: border-box;
14836
+ text-align: center;
14631
14837
  }
14632
14838
 
14633
- /* ─── Row: avatar rail + bubble ────────────────────────── */
14634
-
14635
- .muka-chat-message__row {
14636
- display: grid;
14637
- grid-template-columns: minmax(0, 1fr);
14638
- grid-template-areas: 'bubble';
14639
- column-gap: var(--chatbubble-row-gap);
14640
- width: 100%;
14839
+ .muka-chat-event__text {
14840
+ margin: 0;
14841
+ max-width: var(--chatbubble-max-width);
14842
+ /* Default text, not subtle: subtle reaches only ~3:1 on the chat surfaces,
14843
+ and this is body text. Size and centring set it apart from messages. */
14844
+ color: var(--color-text-default-default);
14845
+ font-family: var(--text-body-sm-regular-fontFamily);
14846
+ font-weight: var(--text-body-sm-regular-fontWeight);
14847
+ font-size: var(--text-body-sm-regular-fontSize);
14848
+ line-height: var(--text-body-sm-regular-lineHeight);
14641
14849
  }
14642
14850
 
14643
- .muka-chat-message--has-avatar .muka-chat-message__row {
14644
- grid-template-columns: auto minmax(0, 1fr);
14645
- grid-template-areas: 'rail bubble';
14851
+ .muka-chat-event__timestamp {
14852
+ white-space: nowrap;
14646
14853
  }
14647
14854
 
14648
- .muka-chat-message__rail {
14649
- grid-area: rail;
14650
- /* Sits on the bubble's baseline (Figma 5355:44091) */
14651
- align-self: end;
14855
+ .muka-chat-event__media {
14652
14856
  display: flex;
14857
+ flex-wrap: wrap;
14653
14858
  justify-content: center;
14654
- min-width: var(--chatbubble-avatar-size);
14859
+ gap: var(--spacing-2);
14655
14860
  }
14656
14861
 
14657
- /*
14658
- * The Small size in Figma (5373:44702) halves the avatar to 32px and tightens
14659
- * the gap to the bubble. Size the avatar itself, not just the rail, so the
14660
- * bubbles keep their alignment. The header row keeps its own gap.
14661
- */
14662
- @media (max-width: 1023px) {
14663
- .muka-chat-message__row {
14664
- column-gap: var(--chatbubble-row-gap-compact);
14665
- }
14666
-
14667
- .muka-chat-message__rail {
14668
- min-width: var(--chatbubble-avatar-size-compact);
14669
- }
14670
-
14671
- /* Outweighs the avatar's own size class, which sets width/height directly */
14672
- .muka-chat-message .muka-chat-message__rail > * {
14673
- width: var(--chatbubble-avatar-size-compact);
14674
- height: var(--chatbubble-avatar-size-compact);
14675
- }
14862
+ /* Day divider: a small pill */
14863
+ .muka-chat-event__pill {
14864
+ display: inline-flex;
14865
+ align-items: center;
14866
+ padding: var(--spacing-1) var(--spacing-3);
14867
+ border-radius: var(--radius-full);
14868
+ background-color: var(--color-surface-level2);
14869
+ color: var(--color-text-default-default);
14870
+ font-family: var(--text-label-sm-regular-fontFamily);
14871
+ font-weight: var(--text-label-sm-regular-fontWeight);
14872
+ font-size: var(--text-label-sm-regular-fontSize);
14873
+ line-height: var(--text-label-sm-leading);
14676
14874
  }
14677
14875
 
14678
- /* ─── Bubble surface ───────────────────────────────────── */
14679
14876
 
14680
- .muka-chat-message__bubble {
14681
- grid-area: bubble;
14682
- /*
14683
- * Width follows the content: a single line hugs, and once the text wraps the
14684
- * bubble fills to the shared max width. Robust to string or rich children —
14685
- * no length measuring needed (Figma `Text length` on 5355:44091).
14686
- */
14687
- width: fit-content;
14688
- /*
14689
- * Ceiling from design (Figma 5355:44091). Below it, wrapping text fills the
14690
- * row; above it the fixed cap leaves room for own/peer alignment.
14691
- */
14692
- max-width: var(--chatbubble-max-width);
14693
- position: relative;
14877
+ /* ChatComposer */
14878
+ /* ChatComposer Component Styles */
14879
+
14880
+ /*
14881
+ * The composer is a bare, fill-width row: no padding, background, border or
14882
+ * max-width of its own (Figma 5243:14141). Whatever hosts it owns the
14883
+ * container — see BottomBar's `chat` variant.
14884
+ */
14885
+ .muka-chat-composer {
14694
14886
  display: flex;
14695
14887
  flex-direction: column;
14696
- gap: var(--chatbubble-gap);
14697
- padding: var(--chatbubble-padding-block) var(--chatbubble-padding-inline);
14698
- border-radius: var(--chatbubble-radius);
14699
- border: var(--border-width-regular) solid transparent;
14700
- box-shadow: var(--shadow-level2);
14701
- word-break: break-word;
14702
- }
14703
-
14704
- /* Media, an embed or an action stack always run the full bubble width. */
14705
- .muka-chat-message--has-blocks .muka-chat-message__bubble {
14888
+ gap: var(--spacing-3);
14706
14889
  width: 100%;
14707
14890
  }
14708
14891
 
14709
- .muka-chat-message--own .muka-chat-message__bubble {
14710
- justify-self: end;
14892
+ .muka-chat-composer--disabled {
14893
+ opacity: 0.6;
14894
+ pointer-events: none;
14711
14895
  }
14712
14896
 
14713
- .muka-chat-message--own .muka-chat-message__bubble {
14714
- background-color: var(--chatbubble-color-own-background);
14715
- border-color: var(--chatbubble-color-own-border);
14716
- color: var(--chatbubble-color-own-foreground);
14717
- }
14897
+ /* ─── Input row (default layout) ───────────────────────── */
14718
14898
 
14719
- .muka-chat-message--peer .muka-chat-message__bubble {
14720
- background-color: var(--chatbubble-color-peer-background);
14721
- border-color: var(--chatbubble-color-peer-border);
14722
- color: var(--chatbubble-color-peer-foreground);
14899
+ .muka-chat-composer__row {
14900
+ display: flex;
14901
+ width: 100%;
14902
+ align-items: flex-end;
14903
+ gap: var(--spacing-3);
14723
14904
  }
14724
14905
 
14725
- .muka-chat-message--agent .muka-chat-message__bubble {
14726
- background-color: var(--chatbubble-color-agent-background);
14727
- border-color: var(--chatbubble-color-agent-border);
14728
- color: var(--chatbubble-color-agent-foreground);
14906
+ /*
14907
+ * Buttons beside the field keep their square size (`.muka-button--icon-only`
14908
+ * width). Only the field or recording bar flexes, so a wide waveform or a
14909
+ * long text can never squeeze them.
14910
+ */
14911
+ .muka-chat-composer__row > .muka-button,
14912
+ .muka-chat-composer__options-input > .muka-button {
14913
+ flex-shrink: 0;
14729
14914
  }
14730
14915
 
14731
- /* ─── Header row (author · meta · time · badge) ────────── */
14916
+ /* ─── Text field ───────────────────────────────────────── */
14732
14917
 
14733
- .muka-chat-message__header {
14918
+ .muka-chat-composer__field {
14734
14919
  display: flex;
14735
- flex-flow: row wrap;
14920
+ flex: 1 1 auto;
14921
+ min-width: 0;
14922
+ box-sizing: border-box;
14736
14923
  align-items: center;
14737
- gap: var(--chatbubble-row-gap);
14924
+ gap: var(--spacing-1);
14925
+ min-height: var(--input-field-height-lg, 48px);
14926
+ padding: 0 var(--spacing-2);
14927
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
14928
+ border-radius: var(--input-field-radius-lg);
14929
+ background-color: var(--input-field-color-default-background);
14930
+ transition: border-color 0.12s ease;
14738
14931
  }
14739
14932
 
14740
- .muka-chat-message__author {
14741
- font-family: var(--text-body-base-bold-fontFamily);
14742
- font-weight: var(--text-body-base-bold-fontWeight);
14743
- font-size: var(--text-body-base-bold-fontSize);
14744
- line-height: var(--text-body-base-bold-lineHeight);
14933
+ .muka-chat-composer--options .muka-chat-composer__field {
14934
+ flex: 1 1 auto;
14935
+ width: auto;
14745
14936
  }
14746
14937
 
14747
- .muka-chat-message__author-meta {
14748
- /* Inherits the variant's body colour from the bubble */
14749
- color: inherit;
14938
+ /* Options input row: text field + mic / send beside it */
14939
+ .muka-chat-composer__options-input {
14940
+ display: flex;
14941
+ align-items: flex-end;
14942
+ gap: var(--spacing-3);
14943
+ width: 100%;
14944
+ }
14945
+
14946
+ .muka-chat-composer__field:focus-within {
14947
+ border-color: var(--input-field-color-focus-border, var(--color-action-default));
14948
+ }
14949
+
14950
+ .muka-chat-composer__input {
14951
+ flex: 1 1 auto;
14952
+ min-width: 0;
14953
+ width: 100%;
14954
+ box-sizing: border-box;
14955
+ resize: none;
14956
+ border: none;
14957
+ background: transparent;
14958
+ outline: none;
14959
+ padding: 0 var(--spacing-1);
14960
+ color: var(--color-text-default-default);
14750
14961
  font-family: var(--text-body-base-regular-fontFamily);
14751
14962
  font-weight: var(--text-body-base-regular-fontWeight);
14752
14963
  font-size: var(--text-body-base-regular-fontSize);
14753
14964
  line-height: var(--text-body-base-regular-lineHeight);
14965
+ appearance: none;
14966
+ -webkit-appearance: none;
14754
14967
  }
14755
14968
 
14756
- .muka-chat-message__badge {
14757
- display: inline-flex;
14758
- align-items: center;
14969
+ .muka-chat-composer__input::placeholder {
14970
+ color: var(--color-text-subtle-default);
14759
14971
  }
14760
14972
 
14761
- /*
14762
- * Keep the first line of content clear of the absolutely positioned menu
14763
- * button in the bubble's top-right corner.
14764
- */
14765
- .muka-chat-message--has-menu .muka-chat-message__header,
14766
- .muka-chat-message--has-menu.muka-chat-message--no-header .muka-chat-message__message {
14767
- padding-right: var(--spacing-10);
14973
+ /* Transcribing: the field is back but inert (Input disabled tokens). */
14974
+ .muka-chat-composer__field--disabled {
14975
+ border-color: var(--input-field-color-disabled-border);
14976
+ background-color: var(--input-field-color-disabled-background);
14768
14977
  }
14769
14978
 
14770
- /* …and the last line clear of the inset timestamp in the bottom-right corner */
14771
- .muka-chat-message--has-timestamp .muka-chat-message__message {
14772
- padding-right: var(--spacing-10);
14979
+ .muka-chat-composer__field--disabled .muka-chat-composer__input::placeholder {
14980
+ color: var(--input-field-color-disabled-foreground);
14773
14981
  }
14774
14982
 
14775
- /* ─── Body ─────────────────────────────────────────────── */
14983
+ /* Keep the in-field emoji button flush to the bottom-right as the field grows */
14984
+ .muka-chat-composer__emoji {
14985
+ flex-shrink: 0;
14986
+ }
14776
14987
 
14777
- .muka-chat-message__body {
14988
+ /* Touch devices have emoji on their keyboard: no button there, unless the app
14989
+ keeps it with `emojiOnTouch`. */
14990
+ @media (pointer: coarse) {
14991
+ .muka-chat-composer__emoji:not(.muka-chat-composer__emoji--on-touch) {
14992
+ display: none;
14993
+ }
14994
+ }
14995
+
14996
+ /* ─── Recording bar ────────────────────────────────────── */
14997
+
14998
+ .muka-chat-composer__recording {
14778
14999
  display: flex;
14779
- flex-direction: column;
14780
- gap: var(--chatbubble-gap);
15000
+ flex: 1 1 auto;
14781
15001
  min-width: 0;
15002
+ box-sizing: border-box;
15003
+ align-items: center;
15004
+ min-height: var(--input-field-height-lg, 48px);
15005
+ padding: var(--card-padding-sm);
15006
+ border: var(--border-width-regular) solid var(--card-color-default-border);
15007
+ border-radius: var(--radius-lg);
15008
+ background-color: var(--card-color-default-background);
15009
+ /* A waveform wider than the space left is clipped, never laid over pause. */
15010
+ overflow: hidden;
14782
15011
  }
14783
15012
 
14784
- .muka-chat-message__media {
14785
- min-width: 0;
15013
+ /* ─── Staged attachments strip ─────────────────────────── */
15014
+
15015
+ .muka-chat-composer__attachments-strip {
15016
+ position: relative;
15017
+ width: 100%;
14786
15018
  }
14787
15019
 
14788
- .muka-chat-message__message {
14789
- font-family: var(--text-body-base-regular-fontFamily);
14790
- font-weight: var(--text-body-base-regular-fontWeight);
14791
- font-size: var(--text-body-base-regular-fontSize);
14792
- line-height: var(--text-body-base-regular-lineHeight);
14793
- white-space: pre-wrap;
14794
- word-break: break-word;
15020
+ .muka-chat-composer__attachments {
15021
+ display: flex;
15022
+ gap: var(--spacing-3);
15023
+ overflow-x: auto;
15024
+ scroll-behavior: smooth;
15025
+ scrollbar-width: none;
14795
15026
  }
14796
15027
 
14797
- /* Empty message block should not add a gap of its own */
14798
- .muka-chat-message__message:empty {
15028
+ .muka-chat-composer__attachments::-webkit-scrollbar {
14799
15029
  display: none;
14800
15030
  }
14801
15031
 
14802
- /* ─── Embedded card ────────────────────────────────────── */
14803
-
14804
- .muka-chat-message__embed {
14805
- position: relative;
14806
- display: flex;
14807
- flex-direction: column;
14808
- gap: var(--chatbubble-embed-gap);
14809
- /* The card is inset from the blocks above and below it (Figma 5289:40562) */
14810
- margin-block: var(--chatbubble-embed-margin-block);
14811
- padding: var(--chatbubble-embed-padding-block) var(--chatbubble-embed-padding-inline);
14812
- border-radius: var(--chatbubble-embed-radius);
14813
- border: var(--border-width-regular) solid transparent;
15032
+ .muka-chat-composer__overflow {
15033
+ position: absolute;
15034
+ top: 50%;
15035
+ right: var(--spacing-2);
15036
+ transform: translateY(-50%);
14814
15037
  }
14815
15038
 
14816
- /*
14817
- * The embed sits on the raised surface of its author's role, one step apart
14818
- * from the bubble it is nested in, and reuses that role's border colour.
14819
- */
14820
- .muka-chat-message--own .muka-chat-message__embed {
14821
- background-color: var(--chatbubble-embed-color-own-background);
14822
- border-color: var(--chatbubble-embed-color-own-border);
14823
- color: var(--chatbubble-embed-color-own-foreground);
14824
- }
15039
+ /* ─── Options mode (Figma State=Options / State7 / State8) ─ */
14825
15040
 
14826
- .muka-chat-message--peer .muka-chat-message__embed {
14827
- background-color: var(--chatbubble-embed-color-peer-background);
14828
- border-color: var(--chatbubble-embed-color-peer-border);
14829
- color: var(--chatbubble-embed-color-peer-foreground);
15041
+ .muka-chat-composer__prompt {
15042
+ display: flex;
15043
+ align-items: flex-start;
15044
+ gap: var(--spacing-3);
15045
+ width: 100%;
14830
15046
  }
14831
15047
 
14832
- .muka-chat-message--agent .muka-chat-message__embed {
14833
- background-color: var(--chatbubble-embed-color-agent-background);
14834
- border-color: var(--chatbubble-embed-color-agent-border);
14835
- color: var(--chatbubble-embed-color-agent-foreground);
15048
+ .muka-chat-composer__prompt-step {
15049
+ flex-shrink: 0;
14836
15050
  }
14837
15051
 
14838
- .muka-chat-message__embed-content {
15052
+ .muka-chat-composer__prompt-text {
14839
15053
  display: flex;
14840
15054
  flex-direction: column;
14841
- gap: var(--chatbubble-embed-gap);
15055
+ gap: var(--spacing-1);
14842
15056
  min-width: 0;
15057
+ flex: 1 1 auto;
14843
15058
  }
14844
15059
 
14845
- .muka-chat-message__embed-copy {
14846
- position: absolute;
14847
- top: var(--chatbubble-embed-padding-block);
14848
- right: var(--chatbubble-embed-padding-inline);
15060
+ .muka-chat-composer__prompt-heading {
15061
+ color: var(--color-text-default-default);
15062
+ font-family: var(--text-heading-sm-fontFamily);
15063
+ font-weight: var(--text-heading-sm-fontWeight);
15064
+ font-size: var(--text-heading-sm-fontSize);
15065
+ line-height: var(--text-heading-sm-lineHeight);
14849
15066
  }
14850
15067
 
14851
- /* ─── Stacked full-width action buttons ────────────────── */
14852
-
14853
- .muka-chat-message__action-stack {
14854
- display: flex;
14855
- flex-direction: column;
14856
- gap: var(--chatbubble-action-stack-gap);
15068
+ .muka-chat-composer__prompt-description {
15069
+ color: var(--color-text-subtle-default);
15070
+ font-family: var(--text-body-base-regular-fontFamily);
15071
+ font-weight: var(--text-body-base-regular-fontWeight);
15072
+ font-size: var(--text-body-base-regular-fontSize);
15073
+ line-height: var(--text-body-base-regular-lineHeight);
14857
15074
  }
14858
15075
 
14859
- /* ─── Inset timestamp ──────────────────────────────────── */
15076
+ .muka-chat-composer__choices {
15077
+ width: 100%;
15078
+ }
14860
15079
 
14861
15080
  /*
14862
- * Every author puts its timestamp in the bubble's bottom-right corner, below
14863
- * the message — never in the header row (Figma 5355:44091).
15081
+ * Many choices (a phone with seven options) would push the field and the step
15082
+ * footer off screen. The card gets a height limit and scrolls on its own, so
15083
+ * the prompt, the field and the footer stay in view.
14864
15084
  */
14865
-
14866
- .muka-chat-message__timestamp {
14867
- color: var(--chatbubble-color-timestamp);
14868
- font-family: var(--text-body-xs-regular-fontFamily);
14869
- font-weight: var(--text-body-xs-regular-fontWeight);
14870
- font-size: var(--text-body-xs-regular-fontSize);
14871
- line-height: var(--text-body-xs-regular-lineHeight);
14872
- white-space: nowrap;
15085
+ .muka-chat-composer__choices-card {
15086
+ width: 100%;
15087
+ max-height: 45dvh;
15088
+ overflow-x: hidden;
15089
+ overflow-y: auto;
15090
+ overscroll-behavior: contain;
14873
15091
  }
14874
15092
 
14875
- /*
14876
- * Pinned to the corner rather than stacked below the message, so a one-line
14877
- * message stays one line tall. The message reserves the width it needs.
14878
- */
14879
- .muka-chat-message__timestamp--inset {
14880
- position: absolute;
14881
- right: var(--spacing-2);
14882
- bottom: var(--spacing-1);
15093
+ /* A choice is one short line, not a navigation row: compact padding. */
15094
+ .muka-chat-composer__choice.muka-listitem {
15095
+ align-items: center;
15096
+ padding-block: var(--spacing-3);
14883
15097
  }
14884
15098
 
14885
- /*
14886
- * When the last block in the body is media, an embed or an action stack (not
14887
- * trailing text), it runs the full width, so reserve a line below for the inset
14888
- * timestamp. A message that ends in text clears the corner inline instead (see
14889
- * `__message` padding-right above), so it needs no extra bottom space.
14890
- */
14891
- .muka-chat-message--has-timestamp.muka-chat-message--trailing-block .muka-chat-message__body {
14892
- padding-bottom: var(--text-body-xs-regular-lineHeight);
15099
+ /* Choice rows: the ListItem is the interactive control; the Radio/Checkbox is
15100
+ decorative for AT (aria-hidden) and sits in the leading slot. */
15101
+ .muka-chat-composer__choice-control {
15102
+ display: inline-flex;
15103
+ align-items: center;
15104
+ pointer-events: none;
14893
15105
  }
14894
15106
 
14895
- /* ─── Menu affordance ──────────────────────────────────── */
15107
+ .muka-chat-composer__choice-control .muka-radio,
15108
+ .muka-chat-composer__choice-control .muka-checkbox {
15109
+ pointer-events: none;
15110
+ }
14896
15111
 
14897
15112
  /*
14898
- * Hidden at rest. Revealed on hover on pointer devices, on keyboard focus
14899
- * everywhere, and pinned while its menu is open. On touch the equivalent
14900
- * affordance is a long-press on the bubble, which opens an ActionSheet.
15113
+ * Multi-step footer (Figma Canned responses). Previous (muted) | centered
15114
+ * progress | Next/Send (muted when not ready, primary when ready — never
15115
+ * disabled for unreadiness).
14901
15116
  */
14902
- .muka-chat-message__menu {
14903
- position: absolute;
14904
- top: var(--spacing-1);
14905
- right: var(--spacing-1);
14906
- opacity: 0;
14907
- pointer-events: none;
15117
+ .muka-chat-composer__footer {
15118
+ position: relative;
15119
+ display: flex;
15120
+ align-items: center;
15121
+ justify-content: space-between;
15122
+ gap: var(--spacing-2);
15123
+ width: 100%;
15124
+ min-height: var(--input-field-height-lg, 48px);
14908
15125
  }
14909
15126
 
14910
- .muka-chat-message__menu:focus-within,
14911
- .muka-chat-message--menu-open .muka-chat-message__menu {
14912
- opacity: 1;
14913
- pointer-events: auto;
15127
+ .muka-chat-composer__footer-spacer {
15128
+ display: inline-block;
15129
+ /* Approximate width of a Previous button so Next stays right-aligned when
15130
+ there is no back control (step 1 of N). */
15131
+ min-width: 7rem;
15132
+ flex-shrink: 0;
14914
15133
  }
14915
15134
 
14916
- @media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
14917
- .muka-chat-message__bubble:hover .muka-chat-message__menu {
14918
- opacity: 1;
14919
- pointer-events: auto;
14920
- }
15135
+ .muka-chat-composer__footer-back {
15136
+ flex-shrink: 0;
15137
+ z-index: 1;
14921
15138
  }
14922
15139
 
14923
- /* Suppress iOS Safari's own callout so the long-press sheet can take over */
14924
- @media (pointer: coarse) {
14925
- .muka-chat-message--has-menu .muka-chat-message__bubble {
14926
- -webkit-touch-callout: none;
14927
- }
15140
+ .muka-chat-composer__footer-action {
15141
+ flex-shrink: 0;
15142
+ margin-left: auto;
15143
+ z-index: 1;
15144
+ }
15145
+
15146
+ .muka-chat-composer__progress {
15147
+ position: absolute;
15148
+ left: 50%;
15149
+ top: 50%;
15150
+ transform: translate(-50%, -50%);
15151
+ color: var(--color-text-subtle-default);
15152
+ font-family: var(--text-label-lg-regular-fontFamily, var(--text-body-base-regular-fontFamily));
15153
+ font-weight: var(--text-label-lg-regular-fontWeight, var(--text-body-base-regular-fontWeight));
15154
+ font-size: var(--text-label-lg-regular-fontSize, var(--text-body-base-regular-fontSize));
15155
+ line-height: var(--text-label-lg-regular-lineHeight, var(--text-body-base-regular-lineHeight));
15156
+ white-space: nowrap;
15157
+ pointer-events: none;
14928
15158
  }
14929
15159
 
14930
15160
  /* ─── Print ────────────────────────────────────────────── */
14931
15161
 
14932
15162
  @media print {
14933
- .muka-chat-message__bubble {
14934
- box-shadow: none;
14935
- break-inside: avoid;
14936
- print-color-adjust: exact;
14937
- -webkit-print-color-adjust: exact;
14938
- }
14939
-
14940
- .muka-chat-message__embed {
14941
- break-inside: avoid;
14942
- print-color-adjust: exact;
14943
- -webkit-print-color-adjust: exact;
14944
- }
14945
-
14946
- .muka-chat-message__menu,
14947
- .muka-chat-message__embed-copy,
14948
- .muka-chat-message__action-stack {
15163
+ .muka-chat-composer {
14949
15164
  display: none;
14950
15165
  }
14951
15166
  }
14952
15167
 
14953
- /* ─── Muted (a message from another context) ──────────────
14954
- * The bubble drops its fill and keeps a hairline, so it recedes next to the
14955
- * current conversation; the text keeps full contrast. */
14956
15168
 
14957
- .muka-chat-message--muted .muka-chat-message__bubble {
14958
- background-color: transparent;
14959
- border-color: var(--chatbubble-color-peer-border);
14960
- color: var(--color-text-default-default);
15169
+ /* ChatChoiceCard */
15170
+ /* ChatChoiceCard — compact option rows (experimental) */
15171
+ .muka-chat-choice__list {
15172
+ display: flex;
15173
+ flex-direction: column;
15174
+ gap: var(--spacing-2);
14961
15175
  }
14962
15176
 
14963
-
14964
- /* ChatEvent */
14965
- /* ChatEvent: a line in a chat that isn't a message from a person */
14966
-
14967
- .muka-chat-event {
15177
+ .muka-chat-choice__row {
14968
15178
  display: flex;
14969
- flex-direction: column;
14970
15179
  align-items: center;
15180
+ min-height: var(--spacing-8);
15181
+ min-width: 0;
15182
+ }
15183
+
15184
+ .muka-chat-choice__row--other {
14971
15185
  gap: var(--spacing-2);
14972
- width: 100%;
14973
- padding: 0 var(--spacing-4);
14974
- box-sizing: border-box;
14975
- text-align: center;
14976
15186
  }
14977
15187
 
14978
- .muka-chat-event__text {
14979
- margin: 0;
14980
- max-width: var(--chatbubble-max-width);
14981
- /* Default text, not subtle: subtle reaches only ~3:1 on the chat surfaces,
14982
- and this is body text. Size and centring set it apart from messages. */
14983
- color: var(--color-text-default-default);
14984
- font-family: var(--text-body-sm-regular-fontFamily);
14985
- font-weight: var(--text-body-sm-regular-fontWeight);
14986
- font-size: var(--text-body-sm-regular-fontSize);
14987
- line-height: var(--text-body-sm-regular-lineHeight);
15188
+ /* The free-text option: the control, then the field filling the row. */
15189
+ .muka-chat-choice__row--other {
15190
+ flex-wrap: nowrap;
14988
15191
  }
14989
15192
 
14990
- .muka-chat-event__timestamp {
14991
- white-space: nowrap;
15193
+ .muka-chat-choice__row--other > .muka-radio,
15194
+ .muka-chat-choice__row--other > .muka-checkbox {
15195
+ flex: 0 0 auto;
14992
15196
  }
14993
15197
 
14994
- .muka-chat-event__media {
14995
- display: flex;
14996
- flex-wrap: wrap;
14997
- justify-content: center;
14998
- gap: var(--spacing-2);
14999
- }
15000
-
15001
- /* Day divider: a small pill */
15002
- .muka-chat-event__pill {
15003
- display: inline-flex;
15004
- align-items: center;
15005
- padding: var(--spacing-1) var(--spacing-3);
15006
- border-radius: var(--radius-full);
15007
- background-color: var(--color-surface-level2);
15008
- color: var(--color-text-default-default);
15009
- font-family: var(--text-label-sm-regular-fontFamily);
15010
- font-weight: var(--text-label-sm-regular-fontWeight);
15011
- font-size: var(--text-label-sm-regular-fontSize);
15012
- line-height: var(--text-label-sm-leading);
15013
- }
15014
-
15015
-
15016
- /* ChatComposer */
15017
- /* ChatComposer Component Styles */
15018
-
15019
- /*
15020
- * The composer is a bare, fill-width row: no padding, background, border or
15021
- * max-width of its own (Figma 5243:14141). Whatever hosts it owns the
15022
- * container — see BottomBar's `chat` variant.
15023
- */
15024
- .muka-chat-composer {
15025
- display: flex;
15026
- flex-direction: column;
15027
- gap: var(--spacing-3);
15028
- width: 100%;
15029
- }
15030
-
15031
- .muka-chat-composer--disabled {
15032
- opacity: 0.6;
15033
- pointer-events: none;
15034
- }
15035
-
15036
- /* ─── Input row (default layout) ───────────────────────── */
15037
-
15038
- .muka-chat-composer__row {
15039
- display: flex;
15040
- width: 100%;
15041
- align-items: flex-end;
15042
- gap: var(--spacing-3);
15043
- }
15044
-
15045
- /*
15046
- * Buttons beside the field keep their square size (`.muka-button--icon-only`
15047
- * width). Only the field or recording bar flexes, so a wide waveform or a
15048
- * long text can never squeeze them.
15049
- */
15050
- .muka-chat-composer__row > .muka-button,
15051
- .muka-chat-composer__options-input > .muka-button {
15052
- flex-shrink: 0;
15053
- }
15054
-
15055
- /* ─── Text field ───────────────────────────────────────── */
15056
-
15057
- .muka-chat-composer__field {
15058
- display: flex;
15059
- flex: 1 1 auto;
15060
- min-width: 0;
15061
- box-sizing: border-box;
15062
- align-items: center;
15063
- gap: var(--spacing-1);
15064
- min-height: var(--input-field-height-lg, 48px);
15065
- padding: 0 var(--spacing-2);
15066
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
15067
- border-radius: var(--input-field-radius-lg);
15068
- background-color: var(--input-field-color-default-background);
15069
- transition: border-color 0.12s ease;
15070
- }
15071
-
15072
- .muka-chat-composer--options .muka-chat-composer__field {
15073
- flex: 1 1 auto;
15074
- width: auto;
15075
- }
15076
-
15077
- /* Options input row: text field + mic / send beside it */
15078
- .muka-chat-composer__options-input {
15079
- display: flex;
15080
- align-items: flex-end;
15081
- gap: var(--spacing-3);
15082
- width: 100%;
15083
- }
15084
-
15085
- .muka-chat-composer__field:focus-within {
15086
- border-color: var(--input-field-color-focus-border, var(--color-action-default));
15087
- }
15088
-
15089
- .muka-chat-composer__input {
15090
- flex: 1 1 auto;
15091
- min-width: 0;
15092
- width: 100%;
15093
- box-sizing: border-box;
15094
- resize: none;
15095
- border: none;
15096
- background: transparent;
15097
- outline: none;
15098
- padding: 0 var(--spacing-1);
15099
- color: var(--color-text-default-default);
15100
- font-family: var(--text-body-base-regular-fontFamily);
15101
- font-weight: var(--text-body-base-regular-fontWeight);
15102
- font-size: var(--text-body-base-regular-fontSize);
15103
- line-height: var(--text-body-base-regular-lineHeight);
15104
- appearance: none;
15105
- -webkit-appearance: none;
15106
- }
15107
-
15108
- .muka-chat-composer__input::placeholder {
15109
- color: var(--color-text-subtle-default);
15110
- }
15111
-
15112
- /* Transcribing: the field is back but inert (Input disabled tokens). */
15113
- .muka-chat-composer__field--disabled {
15114
- border-color: var(--input-field-color-disabled-border);
15115
- background-color: var(--input-field-color-disabled-background);
15116
- }
15117
-
15118
- .muka-chat-composer__field--disabled .muka-chat-composer__input::placeholder {
15119
- color: var(--input-field-color-disabled-foreground);
15120
- }
15121
-
15122
- /* Keep the in-field emoji button flush to the bottom-right as the field grows */
15123
- .muka-chat-composer__emoji {
15124
- flex-shrink: 0;
15125
- }
15126
-
15127
- /* Touch devices have emoji on their keyboard: no button there, unless the app
15128
- keeps it with `emojiOnTouch`. */
15129
- @media (pointer: coarse) {
15130
- .muka-chat-composer__emoji:not(.muka-chat-composer__emoji--on-touch) {
15131
- display: none;
15132
- }
15133
- }
15134
-
15135
- /* ─── Recording bar ────────────────────────────────────── */
15136
-
15137
- .muka-chat-composer__recording {
15138
- display: flex;
15139
- flex: 1 1 auto;
15140
- min-width: 0;
15141
- box-sizing: border-box;
15142
- align-items: center;
15143
- min-height: var(--input-field-height-lg, 48px);
15144
- padding: var(--card-padding-sm);
15145
- border: var(--border-width-regular) solid var(--card-color-default-border);
15146
- border-radius: var(--radius-lg);
15147
- background-color: var(--card-color-default-background);
15148
- /* A waveform wider than the space left is clipped, never laid over pause. */
15149
- overflow: hidden;
15150
- }
15151
-
15152
- /* ─── Staged attachments strip ─────────────────────────── */
15153
-
15154
- .muka-chat-composer__attachments-strip {
15155
- position: relative;
15156
- width: 100%;
15157
- }
15158
-
15159
- .muka-chat-composer__attachments {
15160
- display: flex;
15161
- gap: var(--spacing-3);
15162
- overflow-x: auto;
15163
- scroll-behavior: smooth;
15164
- scrollbar-width: none;
15165
- }
15166
-
15167
- .muka-chat-composer__attachments::-webkit-scrollbar {
15168
- display: none;
15169
- }
15170
-
15171
- .muka-chat-composer__overflow {
15172
- position: absolute;
15173
- top: 50%;
15174
- right: var(--spacing-2);
15175
- transform: translateY(-50%);
15176
- }
15177
-
15178
- /* ─── Options mode (Figma State=Options / State7 / State8) ─ */
15179
-
15180
- .muka-chat-composer__prompt {
15181
- display: flex;
15182
- align-items: flex-start;
15183
- gap: var(--spacing-3);
15184
- width: 100%;
15185
- }
15186
-
15187
- .muka-chat-composer__prompt-step {
15188
- flex-shrink: 0;
15189
- }
15190
-
15191
- .muka-chat-composer__prompt-text {
15192
- display: flex;
15193
- flex-direction: column;
15194
- gap: var(--spacing-1);
15195
- min-width: 0;
15196
- flex: 1 1 auto;
15197
- }
15198
-
15199
- .muka-chat-composer__prompt-heading {
15200
- color: var(--color-text-default-default);
15201
- font-family: var(--text-heading-sm-fontFamily);
15202
- font-weight: var(--text-heading-sm-fontWeight);
15203
- font-size: var(--text-heading-sm-fontSize);
15204
- line-height: var(--text-heading-sm-lineHeight);
15205
- }
15206
-
15207
- .muka-chat-composer__prompt-description {
15208
- color: var(--color-text-subtle-default);
15209
- font-family: var(--text-body-base-regular-fontFamily);
15210
- font-weight: var(--text-body-base-regular-fontWeight);
15211
- font-size: var(--text-body-base-regular-fontSize);
15212
- line-height: var(--text-body-base-regular-lineHeight);
15213
- }
15214
-
15215
- .muka-chat-composer__choices {
15216
- width: 100%;
15217
- }
15218
-
15219
- /*
15220
- * Many choices (a phone with seven options) would push the field and the step
15221
- * footer off screen. The card gets a height limit and scrolls on its own, so
15222
- * the prompt, the field and the footer stay in view.
15223
- */
15224
- .muka-chat-composer__choices-card {
15225
- width: 100%;
15226
- max-height: 45dvh;
15227
- overflow-x: hidden;
15228
- overflow-y: auto;
15229
- overscroll-behavior: contain;
15230
- }
15231
-
15232
- /* A choice is one short line, not a navigation row: compact padding. */
15233
- .muka-chat-composer__choice.muka-listitem {
15234
- align-items: center;
15235
- padding-block: var(--spacing-3);
15236
- }
15237
-
15238
- /* Choice rows: the ListItem is the interactive control; the Radio/Checkbox is
15239
- decorative for AT (aria-hidden) and sits in the leading slot. */
15240
- .muka-chat-composer__choice-control {
15241
- display: inline-flex;
15242
- align-items: center;
15243
- pointer-events: none;
15244
- }
15245
-
15246
- .muka-chat-composer__choice-control .muka-radio,
15247
- .muka-chat-composer__choice-control .muka-checkbox {
15248
- pointer-events: none;
15249
- }
15250
-
15251
- /*
15252
- * Multi-step footer (Figma Canned responses). Previous (muted) | centered
15253
- * progress | Next/Send (muted when not ready, primary when ready — never
15254
- * disabled for unreadiness).
15255
- */
15256
- .muka-chat-composer__footer {
15257
- position: relative;
15258
- display: flex;
15259
- align-items: center;
15260
- justify-content: space-between;
15261
- gap: var(--spacing-2);
15262
- width: 100%;
15263
- min-height: var(--input-field-height-lg, 48px);
15264
- }
15265
-
15266
- .muka-chat-composer__footer-spacer {
15267
- display: inline-block;
15268
- /* Approximate width of a Previous button so Next stays right-aligned when
15269
- there is no back control (step 1 of N). */
15270
- min-width: 7rem;
15271
- flex-shrink: 0;
15272
- }
15273
-
15274
- .muka-chat-composer__footer-back {
15275
- flex-shrink: 0;
15276
- z-index: 1;
15277
- }
15278
-
15279
- .muka-chat-composer__footer-action {
15280
- flex-shrink: 0;
15281
- margin-left: auto;
15282
- z-index: 1;
15283
- }
15284
-
15285
- .muka-chat-composer__progress {
15286
- position: absolute;
15287
- left: 50%;
15288
- top: 50%;
15289
- transform: translate(-50%, -50%);
15290
- color: var(--color-text-subtle-default);
15291
- font-family: var(--text-label-lg-regular-fontFamily, var(--text-body-base-regular-fontFamily));
15292
- font-weight: var(--text-label-lg-regular-fontWeight, var(--text-body-base-regular-fontWeight));
15293
- font-size: var(--text-label-lg-regular-fontSize, var(--text-body-base-regular-fontSize));
15294
- line-height: var(--text-label-lg-regular-lineHeight, var(--text-body-base-regular-lineHeight));
15295
- white-space: nowrap;
15296
- pointer-events: none;
15297
- }
15298
-
15299
- /* ─── Print ────────────────────────────────────────────── */
15300
-
15301
- @media print {
15302
- .muka-chat-composer {
15303
- display: none;
15304
- }
15305
- }
15306
-
15307
-
15308
- /* ChatChoiceCard */
15309
- /* ChatChoiceCard — compact option rows (experimental) */
15310
- .muka-chat-choice__list {
15311
- display: flex;
15312
- flex-direction: column;
15313
- gap: var(--spacing-2);
15314
- }
15315
-
15316
- .muka-chat-choice__row {
15317
- display: flex;
15318
- align-items: center;
15319
- min-height: var(--spacing-8);
15320
- min-width: 0;
15321
- }
15322
-
15323
- .muka-chat-choice__row--other {
15324
- gap: var(--spacing-2);
15325
- }
15326
-
15327
- /* The free-text option: the control, then the field filling the row. */
15328
- .muka-chat-choice__row--other {
15329
- flex-wrap: nowrap;
15330
- }
15331
-
15332
- .muka-chat-choice__row--other > .muka-radio,
15333
- .muka-chat-choice__row--other > .muka-checkbox {
15334
- flex: 0 0 auto;
15335
- }
15336
-
15337
- .muka-chat-choice__row--other > .muka-input {
15338
- flex: 1 1 auto;
15339
- width: auto;
15340
- min-width: 0;
15198
+ .muka-chat-choice__row--other > .muka-input {
15199
+ flex: 1 1 auto;
15200
+ width: auto;
15201
+ min-width: 0;
15341
15202
  }
15342
15203
 
15343
15204
 
@@ -17959,144 +17820,377 @@ button.muka-chat-photo-grid__tile:focus-visible {
17959
17820
  }
17960
17821
  }
17961
17822
 
17962
- .muka-accordion__content-inner {
17963
- padding: 0 var(--spacing-4) var(--spacing-5);
17964
- color: var(--color-text-default-default);
17823
+ .muka-accordion__content-inner {
17824
+ padding: 0 var(--spacing-4) var(--spacing-5);
17825
+ color: var(--color-text-default-default);
17826
+ }
17827
+
17828
+ /* ─── Variant: flush ────────────────────────────────────────────────────── */
17829
+
17830
+ .muka-accordion--flush .muka-accordion__trigger {
17831
+ padding-left: 0;
17832
+ padding-right: 0;
17833
+ }
17834
+
17835
+ .muka-accordion--flush .muka-accordion__content-inner {
17836
+ padding-left: 0;
17837
+ padding-right: 0;
17838
+ }
17839
+
17840
+ /* ─── Variant: contained ────────────────────────────────────────────────── */
17841
+
17842
+ .muka-accordion--contained {
17843
+ border: var(--border-width-regular) solid var(--color-border-default);
17844
+ border-radius: var(--radius-md);
17845
+ overflow: hidden;
17846
+ }
17847
+
17848
+ .muka-accordion--contained .muka-accordion__item {
17849
+ background-color: var(--color-surface-level3);
17850
+ }
17851
+
17852
+ .muka-accordion--contained .muka-accordion__item:last-child {
17853
+ border-bottom: none;
17854
+ }
17855
+
17856
+
17857
+ /* ChatMessage */
17858
+ /* ChatMessage Component Styles */
17859
+
17860
+ .muka-chat-message {
17861
+ display: flex;
17862
+ flex-direction: column;
17863
+ width: 100%;
17864
+ max-width: 100%;
17865
+ }
17866
+
17867
+ /* ─── Row: avatar rail + bubble ────────────────────────── */
17868
+
17869
+ .muka-chat-message__row {
17870
+ display: grid;
17871
+ grid-template-columns: minmax(0, 1fr);
17872
+ grid-template-areas: 'bubble';
17873
+ column-gap: var(--chatbubble-row-gap);
17874
+ width: 100%;
17875
+ }
17876
+
17877
+ .muka-chat-message--has-avatar .muka-chat-message__row {
17878
+ grid-template-columns: auto minmax(0, 1fr);
17879
+ grid-template-areas: 'rail bubble';
17880
+ }
17881
+
17882
+ .muka-chat-message__rail {
17883
+ grid-area: rail;
17884
+ /* Sits on the bubble's baseline (Figma 5355:44091) */
17885
+ align-self: end;
17886
+ display: flex;
17887
+ justify-content: center;
17888
+ min-width: var(--chatbubble-avatar-size);
17889
+ }
17890
+
17891
+ /*
17892
+ * The Small size in Figma (5373:44702) halves the avatar to 32px and tightens
17893
+ * the gap to the bubble. Size the avatar itself, not just the rail, so the
17894
+ * bubbles keep their alignment. The header row keeps its own gap.
17895
+ */
17896
+ @media (max-width: 1023px) {
17897
+ .muka-chat-message__row {
17898
+ column-gap: var(--chatbubble-row-gap-compact);
17899
+ }
17900
+
17901
+ .muka-chat-message__rail {
17902
+ min-width: var(--chatbubble-avatar-size-compact);
17903
+ }
17904
+
17905
+ /* Outweighs the avatar's own size class, which sets width/height directly */
17906
+ .muka-chat-message .muka-chat-message__rail > * {
17907
+ width: var(--chatbubble-avatar-size-compact);
17908
+ height: var(--chatbubble-avatar-size-compact);
17909
+ }
17910
+ }
17911
+
17912
+ /* ─── Bubble surface ───────────────────────────────────── */
17913
+
17914
+ .muka-chat-message__bubble {
17915
+ grid-area: bubble;
17916
+ /*
17917
+ * Width follows the content: a single line hugs, and once the text wraps the
17918
+ * bubble fills to the shared max width. Robust to string or rich children —
17919
+ * no length measuring needed (Figma `Text length` on 5355:44091).
17920
+ */
17921
+ width: fit-content;
17922
+ /*
17923
+ * Ceiling from design (Figma 5355:44091). Below it, wrapping text fills the
17924
+ * row; above it the fixed cap leaves room for own/peer alignment.
17925
+ */
17926
+ max-width: var(--chatbubble-max-width);
17927
+ position: relative;
17928
+ display: flex;
17929
+ flex-direction: column;
17930
+ gap: var(--chatbubble-gap);
17931
+ padding: var(--chatbubble-padding-block) var(--chatbubble-padding-inline);
17932
+ border-radius: var(--chatbubble-radius);
17933
+ border: var(--border-width-regular) solid transparent;
17934
+ box-shadow: var(--shadow-level2);
17935
+ word-break: break-word;
17936
+ }
17937
+
17938
+ /* Media, an embed or an action stack always run the full bubble width. */
17939
+ .muka-chat-message--has-blocks .muka-chat-message__bubble {
17940
+ width: 100%;
17941
+ }
17942
+
17943
+ .muka-chat-message--own .muka-chat-message__bubble {
17944
+ justify-self: end;
17945
+ }
17946
+
17947
+ .muka-chat-message--own .muka-chat-message__bubble {
17948
+ background-color: var(--chatbubble-color-own-background);
17949
+ border-color: var(--chatbubble-color-own-border);
17950
+ color: var(--chatbubble-color-own-foreground);
17951
+ }
17952
+
17953
+ .muka-chat-message--peer .muka-chat-message__bubble {
17954
+ background-color: var(--chatbubble-color-peer-background);
17955
+ border-color: var(--chatbubble-color-peer-border);
17956
+ color: var(--chatbubble-color-peer-foreground);
17957
+ }
17958
+
17959
+ .muka-chat-message--agent .muka-chat-message__bubble {
17960
+ background-color: var(--chatbubble-color-agent-background);
17961
+ border-color: var(--chatbubble-color-agent-border);
17962
+ color: var(--chatbubble-color-agent-foreground);
17963
+ }
17964
+
17965
+ /* ─── Header row (author · meta · time · badge) ────────── */
17966
+
17967
+ .muka-chat-message__header {
17968
+ display: flex;
17969
+ flex-flow: row wrap;
17970
+ align-items: center;
17971
+ gap: var(--chatbubble-row-gap);
17972
+ }
17973
+
17974
+ .muka-chat-message__author {
17975
+ font-family: var(--text-body-base-bold-fontFamily);
17976
+ font-weight: var(--text-body-base-bold-fontWeight);
17977
+ font-size: var(--text-body-base-bold-fontSize);
17978
+ line-height: var(--text-body-base-bold-lineHeight);
17979
+ }
17980
+
17981
+ .muka-chat-message__author-meta {
17982
+ /* Inherits the variant's body colour from the bubble */
17983
+ color: inherit;
17984
+ font-family: var(--text-body-base-regular-fontFamily);
17985
+ font-weight: var(--text-body-base-regular-fontWeight);
17986
+ font-size: var(--text-body-base-regular-fontSize);
17987
+ line-height: var(--text-body-base-regular-lineHeight);
17965
17988
  }
17966
17989
 
17967
- /* ─── Variant: flush ────────────────────────────────────────────────────── */
17990
+ .muka-chat-message__badge {
17991
+ display: inline-flex;
17992
+ align-items: center;
17993
+ }
17968
17994
 
17969
- .muka-accordion--flush .muka-accordion__trigger {
17970
- padding-left: 0;
17971
- padding-right: 0;
17995
+ /*
17996
+ * Keep the first line of content clear of the absolutely positioned menu
17997
+ * button in the bubble's top-right corner.
17998
+ */
17999
+ .muka-chat-message--has-menu .muka-chat-message__header,
18000
+ .muka-chat-message--has-menu.muka-chat-message--no-header .muka-chat-message__message {
18001
+ padding-right: var(--spacing-10);
17972
18002
  }
17973
18003
 
17974
- .muka-accordion--flush .muka-accordion__content-inner {
17975
- padding-left: 0;
17976
- padding-right: 0;
18004
+ /* …and the last line clear of the inset timestamp in the bottom-right corner */
18005
+ .muka-chat-message--has-timestamp .muka-chat-message__message {
18006
+ padding-right: var(--spacing-10);
17977
18007
  }
17978
18008
 
17979
- /* ─── Variant: contained ────────────────────────────────────────────────── */
18009
+ /* ─── Body ─────────────────────────────────────────────── */
17980
18010
 
17981
- .muka-accordion--contained {
17982
- border: var(--border-width-regular) solid var(--color-border-default);
17983
- border-radius: var(--radius-md);
17984
- overflow: hidden;
18011
+ .muka-chat-message__body {
18012
+ display: flex;
18013
+ flex-direction: column;
18014
+ gap: var(--chatbubble-gap);
18015
+ min-width: 0;
17985
18016
  }
17986
18017
 
17987
- .muka-accordion--contained .muka-accordion__item {
17988
- background-color: var(--color-surface-level3);
18018
+ .muka-chat-message__media {
18019
+ min-width: 0;
17989
18020
  }
17990
18021
 
17991
- .muka-accordion--contained .muka-accordion__item:last-child {
17992
- border-bottom: none;
18022
+ .muka-chat-message__message {
18023
+ font-family: var(--text-body-base-regular-fontFamily);
18024
+ font-weight: var(--text-body-base-regular-fontWeight);
18025
+ font-size: var(--text-body-base-regular-fontSize);
18026
+ line-height: var(--text-body-base-regular-lineHeight);
18027
+ white-space: pre-wrap;
18028
+ word-break: break-word;
17993
18029
  }
17994
18030
 
18031
+ /* Empty message block should not add a gap of its own */
18032
+ .muka-chat-message__message:empty {
18033
+ display: none;
18034
+ }
17995
18035
 
17996
- /* SwipeActions */
17997
- /* SwipeActions Component Styles */
18036
+ /* ─── Embedded card ────────────────────────────────────── */
17998
18037
 
17999
- .muka-swipe-actions {
18038
+ .muka-chat-message__embed {
18000
18039
  position: relative;
18001
- overflow: hidden;
18002
- touch-action: pan-y;
18003
- -webkit-user-select: none;
18004
- user-select: none;
18005
- background-color: var(--color-surface-level3);
18040
+ display: flex;
18041
+ flex-direction: column;
18042
+ gap: var(--chatbubble-embed-gap);
18043
+ /* The card is inset from the blocks above and below it (Figma 5289:40562) */
18044
+ margin-block: var(--chatbubble-embed-margin-block);
18045
+ padding: var(--chatbubble-embed-padding-block) var(--chatbubble-embed-padding-inline);
18046
+ border-radius: var(--chatbubble-embed-radius);
18047
+ border: var(--border-width-regular) solid transparent;
18006
18048
  }
18007
18049
 
18008
- .muka-swipe-actions--disabled {
18009
- touch-action: auto;
18050
+ /*
18051
+ * The embed sits on the raised surface of its author's role, one step apart
18052
+ * from the bubble it is nested in, and reuses that role's border colour.
18053
+ */
18054
+ .muka-chat-message--own .muka-chat-message__embed {
18055
+ background-color: var(--chatbubble-embed-color-own-background);
18056
+ border-color: var(--chatbubble-embed-color-own-border);
18057
+ color: var(--chatbubble-embed-color-own-foreground);
18010
18058
  }
18011
18059
 
18012
- /* ─── Row that holds the actual content ────────────────── */
18013
-
18014
- .muka-swipe-actions__row {
18015
- position: relative;
18016
- z-index: 1;
18017
- background-color: inherit;
18018
- will-change: transform;
18060
+ .muka-chat-message--peer .muka-chat-message__embed {
18061
+ background-color: var(--chatbubble-embed-color-peer-background);
18062
+ border-color: var(--chatbubble-embed-color-peer-border);
18063
+ color: var(--chatbubble-embed-color-peer-foreground);
18019
18064
  }
18020
18065
 
18021
- /* ─── Action panels — sit beneath the row ──────────────── */
18022
-
18023
- .muka-swipe-actions__panel {
18024
- position: absolute;
18025
- top: 0;
18026
- bottom: 0;
18027
- display: flex;
18028
- align-items: stretch;
18029
- z-index: 0;
18066
+ .muka-chat-message--agent .muka-chat-message__embed {
18067
+ background-color: var(--chatbubble-embed-color-agent-background);
18068
+ border-color: var(--chatbubble-embed-color-agent-border);
18069
+ color: var(--chatbubble-embed-color-agent-foreground);
18030
18070
  }
18031
18071
 
18032
- .muka-swipe-actions__panel--left {
18033
- left: 0;
18072
+ .muka-chat-message__embed-content {
18073
+ display: flex;
18074
+ flex-direction: column;
18075
+ gap: var(--chatbubble-embed-gap);
18076
+ min-width: 0;
18034
18077
  }
18035
18078
 
18036
- .muka-swipe-actions__panel--right {
18037
- right: 0;
18079
+ .muka-chat-message__embed-copy {
18080
+ position: absolute;
18081
+ top: var(--chatbubble-embed-padding-block);
18082
+ right: var(--chatbubble-embed-padding-inline);
18038
18083
  }
18039
18084
 
18040
- /* ─── Single action button ─────────────────────────────── */
18085
+ /* ─── Stacked full-width action buttons ────────────────── */
18041
18086
 
18042
- .muka-swipe-actions__button {
18087
+ .muka-chat-message__action-stack {
18043
18088
  display: flex;
18044
18089
  flex-direction: column;
18045
- align-items: center;
18046
- justify-content: center;
18047
- gap: var(--spacing-1);
18048
- border: none;
18049
- cursor: pointer;
18050
- padding: var(--spacing-2);
18051
- background-color: var(--color-surface-level2);
18052
- color: var(--color-text-default-default);
18053
- font-family: var(--text-label-sm-semibold-fontFamily);
18054
- font-weight: var(--text-label-sm-semibold-fontWeight);
18055
- font-size: var(--text-label-sm-semibold-fontSize);
18056
- line-height: var(--text-label-sm-semibold-lineHeight);
18057
- -webkit-tap-highlight-color: transparent;
18058
- transition: filter 0.12s ease;
18090
+ gap: var(--chatbubble-action-stack-gap);
18059
18091
  }
18060
18092
 
18061
- .muka-swipe-actions__button:hover {
18062
- filter: brightness(0.95);
18093
+ /* ─── Inset timestamp ──────────────────────────────────── */
18094
+
18095
+ /*
18096
+ * Every author puts its timestamp in the bubble's bottom-right corner, below
18097
+ * the message — never in the header row (Figma 5355:44091).
18098
+ */
18099
+
18100
+ .muka-chat-message__timestamp {
18101
+ color: var(--chatbubble-color-timestamp);
18102
+ font-family: var(--text-body-xs-regular-fontFamily);
18103
+ font-weight: var(--text-body-xs-regular-fontWeight);
18104
+ font-size: var(--text-body-xs-regular-fontSize);
18105
+ line-height: var(--text-body-xs-regular-lineHeight);
18106
+ white-space: nowrap;
18063
18107
  }
18064
18108
 
18065
- .muka-swipe-actions__button:focus-visible {
18066
- outline: 2px solid var(--color-action-default);
18067
- outline-offset: -2px;
18109
+ /*
18110
+ * Pinned to the corner rather than stacked below the message, so a one-line
18111
+ * message stays one line tall. The message reserves the width it needs.
18112
+ */
18113
+ .muka-chat-message__timestamp--inset {
18114
+ position: absolute;
18115
+ right: var(--spacing-2);
18116
+ bottom: var(--spacing-1);
18068
18117
  }
18069
18118
 
18070
- .muka-swipe-actions__button-icon {
18071
- display: inline-flex;
18072
- align-items: center;
18073
- justify-content: center;
18119
+ /*
18120
+ * When the last block in the body is media, an embed or an action stack (not
18121
+ * trailing text), it runs the full width, so reserve a line below for the inset
18122
+ * timestamp. A message that ends in text clears the corner inline instead (see
18123
+ * `__message` padding-right above), so it needs no extra bottom space.
18124
+ */
18125
+ .muka-chat-message--has-timestamp.muka-chat-message--trailing-block .muka-chat-message__body {
18126
+ padding-bottom: var(--text-body-xs-regular-lineHeight);
18074
18127
  }
18075
18128
 
18076
- /* ─── Color variants ───────────────────────────────────── */
18129
+ /* ─── Menu affordance ──────────────────────────────────── */
18077
18130
 
18078
- .muka-swipe-actions__button--neutral {
18079
- background-color: var(--color-surface-level2);
18080
- color: var(--color-text-default-default);
18131
+ /*
18132
+ * Hidden at rest. Revealed on hover on pointer devices, on keyboard focus
18133
+ * everywhere, and pinned while its menu is open. On touch the equivalent
18134
+ * affordance is a long-press on the bubble, which opens an ActionSheet.
18135
+ */
18136
+ .muka-chat-message__menu {
18137
+ position: absolute;
18138
+ top: var(--spacing-1);
18139
+ right: var(--spacing-1);
18140
+ opacity: 0;
18141
+ pointer-events: none;
18081
18142
  }
18082
18143
 
18083
- .muka-swipe-actions__button--primary {
18084
- background-color: var(--color-action-default);
18085
- color: var(--color-text-default-inverse);
18144
+ .muka-chat-message__menu:focus-within,
18145
+ .muka-chat-message--menu-open .muka-chat-message__menu {
18146
+ opacity: 1;
18147
+ pointer-events: auto;
18086
18148
  }
18087
18149
 
18088
- .muka-swipe-actions__button--success {
18089
- background-color: var(--color-state-success-default);
18090
- color: var(--color-text-default-inverse);
18150
+ @media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
18151
+ .muka-chat-message__bubble:hover .muka-chat-message__menu {
18152
+ opacity: 1;
18153
+ pointer-events: auto;
18154
+ }
18091
18155
  }
18092
18156
 
18093
- .muka-swipe-actions__button--warning {
18094
- background-color: var(--color-state-warning-default);
18095
- color: var(--color-text-default-default);
18157
+ /* Suppress iOS Safari's own callout so the long-press sheet can take over */
18158
+ @media (pointer: coarse) {
18159
+ .muka-chat-message--has-menu .muka-chat-message__bubble {
18160
+ -webkit-touch-callout: none;
18161
+ }
18096
18162
  }
18097
18163
 
18098
- .muka-swipe-actions__button--destructive {
18099
- background-color: var(--color-state-error-default);
18100
- color: var(--color-text-default-inverse);
18164
+ /* ─── Print ────────────────────────────────────────────── */
18165
+
18166
+ @media print {
18167
+ .muka-chat-message__bubble {
18168
+ box-shadow: none;
18169
+ break-inside: avoid;
18170
+ print-color-adjust: exact;
18171
+ -webkit-print-color-adjust: exact;
18172
+ }
18173
+
18174
+ .muka-chat-message__embed {
18175
+ break-inside: avoid;
18176
+ print-color-adjust: exact;
18177
+ -webkit-print-color-adjust: exact;
18178
+ }
18179
+
18180
+ .muka-chat-message__menu,
18181
+ .muka-chat-message__embed-copy,
18182
+ .muka-chat-message__action-stack {
18183
+ display: none;
18184
+ }
18185
+ }
18186
+
18187
+ /* ─── Muted (a message from another context) ──────────────
18188
+ * The bubble drops its fill and keeps a hairline, so it recedes next to the
18189
+ * current conversation; the text keeps full contrast. */
18190
+
18191
+ .muka-chat-message--muted .muka-chat-message__bubble {
18192
+ background-color: transparent;
18193
+ border-color: var(--chatbubble-color-peer-border);
18194
+ color: var(--color-text-default-default);
18101
18195
  }
18102
18196