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