@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
@@ -2141,8 +2141,9 @@ body {
2141
2141
  --topbar-height-lg: 80px;
2142
2142
  --topbar-padding-x-sm: 0.75rem;
2143
2143
  --topbar-padding-x-md: 0.75rem;
2144
- --topbar-padding-x-lg: 1.5rem;
2144
+ --topbar-padding-x-lg: 1rem;
2145
2145
  --topbar-title-max-width: 197px;
2146
+ --topbar-title-inset-lg: 0.5rem;
2146
2147
  --topbar-icon-size-sm: 24px;
2147
2148
  --topbar-icon-size-md: 32px;
2148
2149
  --topbar-icon-size-lg: 32px;
@@ -2154,6 +2155,7 @@ body {
2154
2155
  --topbar-drag-handle-color: #313131;
2155
2156
  --topbar-drag-handle-padding-y: 0.75rem;
2156
2157
  --topbar-drag-handle-radius: 999rem;
2158
+ --topbar-gap-lg: 2rem;
2157
2159
  --controlbar-color-background: #111111;
2158
2160
  --controlbar-max-width-sm: 768px;
2159
2161
  --controlbar-max-width-lg: 1024px;
@@ -2858,7 +2860,6 @@ body {
2858
2860
  --tb-title-font-size: var(--text-heading-xs-fontSize);
2859
2861
  --tb-title-line-height: var(--text-heading-xs-lineHeight);
2860
2862
  --tb-title-letter-spacing: var(--text-heading-xs-letterSpacing);
2861
- --tb-breadcrumb-display: none;
2862
2863
  --tb-pad-y: 0;
2863
2864
  }
2864
2865
 
@@ -2885,7 +2886,7 @@ body {
2885
2886
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2886
2887
  }
2887
2888
 
2888
- /* ─── Large tier: left-aligned title, breadcrumb row ─── */
2889
+ /* ─── Large tier: back button, then a left-aligned title ─── */
2889
2890
  @media (min-width: 1024px) {
2890
2891
  .muka-topbar:not([data-size]):not([data-max-size='md']) {
2891
2892
  --tb-height: var(--topbar-height-lg);
@@ -2899,7 +2900,6 @@ body {
2899
2900
  --tb-title-font-size: var(--text-heading-md-fontSize);
2900
2901
  --tb-title-line-height: var(--text-heading-md-lineHeight);
2901
2902
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2902
- --tb-breadcrumb-display: flex;
2903
2903
  }
2904
2904
  }
2905
2905
 
@@ -2915,7 +2915,6 @@ body {
2915
2915
  --tb-title-font-size: var(--text-heading-md-fontSize);
2916
2916
  --tb-title-line-height: var(--text-heading-md-lineHeight);
2917
2917
  --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2918
- --tb-breadcrumb-display: flex;
2919
2918
  }
2920
2919
 
2921
2920
  /* Push content below the iOS notch / status bar. Opt out via disableSafeArea. */
@@ -2939,13 +2938,6 @@ body {
2939
2938
  border-radius: var(--topbar-drag-handle-radius);
2940
2939
  }
2941
2940
 
2942
- /* ─── Breadcrumb (large tier, stacked above the title) ── */
2943
-
2944
- .muka-topbar__breadcrumb {
2945
- display: var(--tb-breadcrumb-display);
2946
- align-items: center;
2947
- }
2948
-
2949
2941
  /* ─── Container (the bar itself) ──────────────────────── */
2950
2942
 
2951
2943
  .muka-topbar__container {
@@ -2974,46 +2966,50 @@ body {
2974
2966
  z-index: 1;
2975
2967
  }
2976
2968
 
2977
- /* Large tier with a breadcrumb replaces the back button with the breadcrumb. */
2978
- @media (min-width: 1024px) {
2979
- .muka-topbar:not([data-size]):not([data-max-size='md']):has(.muka-topbar__breadcrumb) .muka-topbar__leading {
2980
- display: none;
2981
- }
2982
- }
2983
-
2984
- .muka-topbar[data-size='lg']:has(.muka-topbar__breadcrumb) .muka-topbar__leading {
2985
- display: none;
2986
- }
2987
-
2988
- /* ─── Heading (breadcrumb + title) ────────────────────── */
2969
+ /* ─── Heading (title) ─────────────────────────────────── */
2989
2970
 
2990
- /* Base/sm/md: transparent wrapper so the title is the center grid item and
2991
- the breadcrumb stays hidden. */
2971
+ /* Base/sm/md: transparent wrapper so the title is the center grid item. */
2992
2972
  .muka-topbar__heading {
2993
2973
  display: contents;
2994
2974
  }
2995
2975
 
2996
- /* Large tier: a tight column with the breadcrumb stacked above the title. */
2976
+ /* Large tier: the heading takes the free width so a long title truncates
2977
+ before the trailing actions, and sits a fixed gap after the back button. */
2997
2978
  @media (min-width: 1024px) {
2998
2979
  .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading {
2999
2980
  display: flex;
3000
2981
  flex-direction: column;
3001
2982
  justify-content: center;
3002
- gap: var(--spacing-1);
3003
2983
  flex: 1 1 0%;
3004
2984
  min-width: 0;
3005
2985
  }
2986
+
2987
+ .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__leading + .muka-topbar__heading {
2988
+ margin-left: var(--topbar-gap-lg);
2989
+ }
2990
+
2991
+ .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading:first-child {
2992
+ padding-left: var(--topbar-title-inset-lg);
2993
+ }
3006
2994
  }
3007
2995
 
3008
2996
  .muka-topbar[data-size='lg'] .muka-topbar__heading {
3009
2997
  display: flex;
3010
2998
  flex-direction: column;
3011
2999
  justify-content: center;
3012
- gap: var(--spacing-1);
3013
3000
  flex: 1 1 0%;
3014
3001
  min-width: 0;
3015
3002
  }
3016
3003
 
3004
+ .muka-topbar[data-size='lg'] .muka-topbar__leading + .muka-topbar__heading {
3005
+ margin-left: var(--topbar-gap-lg);
3006
+ }
3007
+
3008
+ /* No back button: the title sits a little further in than the bar padding. */
3009
+ .muka-topbar[data-size='lg'] .muka-topbar__heading:first-child {
3010
+ padding-left: var(--topbar-title-inset-lg);
3011
+ }
3012
+
3017
3013
  /* ─── Title ───────────────────────────────────────────── */
3018
3014
 
3019
3015
  .muka-topbar__title {
@@ -4349,6 +4345,88 @@ body {
4349
4345
  }
4350
4346
 
4351
4347
 
4348
+ /* TextLink */
4349
+ /* TextLink Component Styles - Using Muka Design Tokens */
4350
+
4351
+ .muka-text-link {
4352
+ display: inline;
4353
+ cursor: pointer;
4354
+ text-decoration: underline;
4355
+ /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4356
+ text-underline-offset: 0.2em;
4357
+ text-decoration-thickness: from-font;
4358
+ /* Rounds the focus ring's corners; the link itself has no visible box. */
4359
+ border-radius: var(--border-radius-sm);
4360
+ transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4361
+ }
4362
+
4363
+ /* ─── Sizes ───────────────────────────────────────────────
4364
+ Mirrors the body text scale so a link matches the copy it sits in. */
4365
+ .muka-text-link--sm {
4366
+ font-family: var(--text-body-sm-regular-fontFamily);
4367
+ font-weight: var(--text-body-sm-regular-fontWeight);
4368
+ font-size: var(--text-body-sm-regular-fontSize);
4369
+ line-height: var(--text-body-sm-regular-lineHeight);
4370
+ }
4371
+
4372
+ .muka-text-link--base {
4373
+ font-family: var(--text-body-base-regular-fontFamily);
4374
+ font-weight: var(--text-body-base-regular-fontWeight);
4375
+ font-size: var(--text-body-base-regular-fontSize);
4376
+ line-height: var(--text-body-base-regular-lineHeight);
4377
+ }
4378
+
4379
+ .muka-text-link--lg {
4380
+ font-family: var(--text-body-lg-regular-fontFamily);
4381
+ font-weight: var(--text-body-lg-regular-fontWeight);
4382
+ font-size: var(--text-body-lg-regular-fontSize);
4383
+ line-height: var(--text-body-lg-regular-lineHeight);
4384
+ }
4385
+
4386
+ /* ─── Variant: default (accent) ───────────────────────────
4387
+ Visited repeats the default colour on purpose: the design treats visited and
4388
+ default the same, and pinning it stops the browser's purple from showing. */
4389
+ .muka-text-link--default,
4390
+ .muka-text-link--default:visited {
4391
+ color: var(--color-text-action-default);
4392
+ }
4393
+
4394
+ .muka-text-link--default:hover,
4395
+ .muka-text-link--default:focus-visible {
4396
+ color: var(--color-text-action-hover);
4397
+ }
4398
+
4399
+ .muka-text-link--default:active {
4400
+ color: var(--color-text-action-pressed);
4401
+ }
4402
+
4403
+ /* ─── Variant: subtle (neutral) ───────────────────────────
4404
+ Hover, focus and pressed all darken to the default text colour. */
4405
+ .muka-text-link--subtle,
4406
+ .muka-text-link--subtle:visited {
4407
+ color: var(--color-text-subtle-default);
4408
+ }
4409
+
4410
+ .muka-text-link--subtle:hover,
4411
+ .muka-text-link--subtle:focus-visible,
4412
+ .muka-text-link--subtle:active {
4413
+ color: var(--color-text-default-default);
4414
+ }
4415
+
4416
+ /* ─── Focus ───────────────────────────────────────────────
4417
+ Same ring as every other focusable Muka component. */
4418
+ .muka-text-link:focus-visible {
4419
+ outline: 2px solid var(--color-border-focus);
4420
+ outline-offset: 2px;
4421
+ }
4422
+
4423
+ @media (prefers-reduced-motion: reduce) {
4424
+ .muka-text-link {
4425
+ transition: none;
4426
+ }
4427
+ }
4428
+
4429
+
4352
4430
  /* Tabs */
4353
4431
  /* Tabs Component Styles - Clean underline style tabs matching Figma */
4354
4432
 
@@ -4539,88 +4617,6 @@ body {
4539
4617
  }
4540
4618
 
4541
4619
 
4542
- /* TextLink */
4543
- /* TextLink Component Styles - Using Muka Design Tokens */
4544
-
4545
- .muka-text-link {
4546
- display: inline;
4547
- cursor: pointer;
4548
- text-decoration: underline;
4549
- /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4550
- text-underline-offset: 0.2em;
4551
- text-decoration-thickness: from-font;
4552
- /* Rounds the focus ring's corners; the link itself has no visible box. */
4553
- border-radius: var(--border-radius-sm);
4554
- transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4555
- }
4556
-
4557
- /* ─── Sizes ───────────────────────────────────────────────
4558
- Mirrors the body text scale so a link matches the copy it sits in. */
4559
- .muka-text-link--sm {
4560
- font-family: var(--text-body-sm-regular-fontFamily);
4561
- font-weight: var(--text-body-sm-regular-fontWeight);
4562
- font-size: var(--text-body-sm-regular-fontSize);
4563
- line-height: var(--text-body-sm-regular-lineHeight);
4564
- }
4565
-
4566
- .muka-text-link--base {
4567
- font-family: var(--text-body-base-regular-fontFamily);
4568
- font-weight: var(--text-body-base-regular-fontWeight);
4569
- font-size: var(--text-body-base-regular-fontSize);
4570
- line-height: var(--text-body-base-regular-lineHeight);
4571
- }
4572
-
4573
- .muka-text-link--lg {
4574
- font-family: var(--text-body-lg-regular-fontFamily);
4575
- font-weight: var(--text-body-lg-regular-fontWeight);
4576
- font-size: var(--text-body-lg-regular-fontSize);
4577
- line-height: var(--text-body-lg-regular-lineHeight);
4578
- }
4579
-
4580
- /* ─── Variant: default (accent) ───────────────────────────
4581
- Visited repeats the default colour on purpose: the design treats visited and
4582
- default the same, and pinning it stops the browser's purple from showing. */
4583
- .muka-text-link--default,
4584
- .muka-text-link--default:visited {
4585
- color: var(--color-text-action-default);
4586
- }
4587
-
4588
- .muka-text-link--default:hover,
4589
- .muka-text-link--default:focus-visible {
4590
- color: var(--color-text-action-hover);
4591
- }
4592
-
4593
- .muka-text-link--default:active {
4594
- color: var(--color-text-action-pressed);
4595
- }
4596
-
4597
- /* ─── Variant: subtle (neutral) ───────────────────────────
4598
- Hover, focus and pressed all darken to the default text colour. */
4599
- .muka-text-link--subtle,
4600
- .muka-text-link--subtle:visited {
4601
- color: var(--color-text-subtle-default);
4602
- }
4603
-
4604
- .muka-text-link--subtle:hover,
4605
- .muka-text-link--subtle:focus-visible,
4606
- .muka-text-link--subtle:active {
4607
- color: var(--color-text-default-default);
4608
- }
4609
-
4610
- /* ─── Focus ───────────────────────────────────────────────
4611
- Same ring as every other focusable Muka component. */
4612
- .muka-text-link:focus-visible {
4613
- outline: 2px solid var(--color-border-focus);
4614
- outline-offset: 2px;
4615
- }
4616
-
4617
- @media (prefers-reduced-motion: reduce) {
4618
- .muka-text-link {
4619
- transition: none;
4620
- }
4621
- }
4622
-
4623
-
4624
4620
  /* TablePagination */
4625
4621
  /* TablePagination Component Styles - Using Muka Design Tokens */
4626
4622
 
@@ -5025,62 +5021,170 @@ body {
5025
5021
  }
5026
5022
 
5027
5023
 
5028
- /* Spinner */
5029
- /* Spinner Component Styles */
5024
+ /* SwipeActions */
5025
+ /* SwipeActions Component Styles */
5030
5026
 
5031
- .muka-spinner {
5032
- display: inline-flex;
5033
- align-items: center;
5034
- justify-content: center;
5035
- color: var(--color-text-default-default);
5036
- line-height: 0;
5027
+ .muka-swipe-actions {
5028
+ position: relative;
5029
+ overflow: hidden;
5030
+ touch-action: pan-y;
5031
+ -webkit-user-select: none;
5032
+ user-select: none;
5033
+ background-color: var(--color-surface-level3);
5037
5034
  }
5038
5035
 
5039
- .muka-spinner--subtle {
5040
- color: var(--color-text-subtle-default);
5036
+ .muka-swipe-actions--disabled {
5037
+ touch-action: auto;
5041
5038
  }
5042
5039
 
5043
- .muka-spinner--inverse {
5044
- color: var(--color-text-default-inverse);
5045
- }
5040
+ /* ─── Row that holds the actual content ────────────────── */
5046
5041
 
5047
- .muka-spinner__circle {
5048
- display: inline-block;
5049
- border-radius: 50%;
5050
- border-style: solid;
5051
- border-color: currentColor;
5052
- border-right-color: transparent;
5053
- animation: muka-spinner-rotate 0.7s linear infinite;
5054
- box-sizing: border-box;
5042
+ .muka-swipe-actions__row {
5043
+ position: relative;
5044
+ z-index: 1;
5045
+ background-color: inherit;
5046
+ will-change: transform;
5055
5047
  }
5056
5048
 
5057
- /* ─── Sizes ───────────────────────────────────────────── */
5049
+ /* ─── Action panels — sit beneath the row ──────────────── */
5058
5050
 
5059
- .muka-spinner--sm .muka-spinner__circle {
5060
- width: 16px;
5061
- height: 16px;
5062
- border-width: 2px;
5051
+ .muka-swipe-actions__panel {
5052
+ position: absolute;
5053
+ top: 0;
5054
+ bottom: 0;
5055
+ display: flex;
5056
+ align-items: stretch;
5057
+ z-index: 0;
5063
5058
  }
5064
5059
 
5065
- .muka-spinner--md .muka-spinner__circle {
5066
- width: 20px;
5067
- height: 20px;
5068
- border-width: 2px;
5060
+ .muka-swipe-actions__panel--left {
5061
+ left: 0;
5069
5062
  }
5070
5063
 
5071
- .muka-spinner--lg .muka-spinner__circle {
5072
- width: 24px;
5073
- height: 24px;
5074
- border-width: 3px;
5064
+ .muka-swipe-actions__panel--right {
5065
+ right: 0;
5075
5066
  }
5076
5067
 
5077
- /* ─── Visually-hidden label ───────────────────────────── */
5068
+ /* ─── Single action button ─────────────────────────────── */
5078
5069
 
5079
- .muka-spinner__sr-label {
5080
- position: absolute;
5081
- width: 1px;
5082
- height: 1px;
5083
- padding: 0;
5070
+ .muka-swipe-actions__button {
5071
+ display: flex;
5072
+ flex-direction: column;
5073
+ align-items: center;
5074
+ justify-content: center;
5075
+ gap: var(--spacing-1);
5076
+ border: none;
5077
+ cursor: pointer;
5078
+ padding: var(--spacing-2);
5079
+ background-color: var(--color-surface-level2);
5080
+ color: var(--color-text-default-default);
5081
+ font-family: var(--text-label-sm-semibold-fontFamily);
5082
+ font-weight: var(--text-label-sm-semibold-fontWeight);
5083
+ font-size: var(--text-label-sm-semibold-fontSize);
5084
+ line-height: var(--text-label-sm-semibold-lineHeight);
5085
+ -webkit-tap-highlight-color: transparent;
5086
+ transition: filter 0.12s ease;
5087
+ }
5088
+
5089
+ .muka-swipe-actions__button:hover {
5090
+ filter: brightness(0.95);
5091
+ }
5092
+
5093
+ .muka-swipe-actions__button:focus-visible {
5094
+ outline: 2px solid var(--color-action-default);
5095
+ outline-offset: -2px;
5096
+ }
5097
+
5098
+ .muka-swipe-actions__button-icon {
5099
+ display: inline-flex;
5100
+ align-items: center;
5101
+ justify-content: center;
5102
+ }
5103
+
5104
+ /* ─── Color variants ───────────────────────────────────── */
5105
+
5106
+ .muka-swipe-actions__button--neutral {
5107
+ background-color: var(--color-surface-level2);
5108
+ color: var(--color-text-default-default);
5109
+ }
5110
+
5111
+ .muka-swipe-actions__button--primary {
5112
+ background-color: var(--color-action-default);
5113
+ color: var(--color-text-default-inverse);
5114
+ }
5115
+
5116
+ .muka-swipe-actions__button--success {
5117
+ background-color: var(--color-state-success-default);
5118
+ color: var(--color-text-default-inverse);
5119
+ }
5120
+
5121
+ .muka-swipe-actions__button--warning {
5122
+ background-color: var(--color-state-warning-default);
5123
+ color: var(--color-text-default-default);
5124
+ }
5125
+
5126
+ .muka-swipe-actions__button--destructive {
5127
+ background-color: var(--color-state-error-default);
5128
+ color: var(--color-text-default-inverse);
5129
+ }
5130
+
5131
+
5132
+ /* Spinner */
5133
+ /* Spinner Component Styles */
5134
+
5135
+ .muka-spinner {
5136
+ display: inline-flex;
5137
+ align-items: center;
5138
+ justify-content: center;
5139
+ color: var(--color-text-default-default);
5140
+ line-height: 0;
5141
+ }
5142
+
5143
+ .muka-spinner--subtle {
5144
+ color: var(--color-text-subtle-default);
5145
+ }
5146
+
5147
+ .muka-spinner--inverse {
5148
+ color: var(--color-text-default-inverse);
5149
+ }
5150
+
5151
+ .muka-spinner__circle {
5152
+ display: inline-block;
5153
+ border-radius: 50%;
5154
+ border-style: solid;
5155
+ border-color: currentColor;
5156
+ border-right-color: transparent;
5157
+ animation: muka-spinner-rotate 0.7s linear infinite;
5158
+ box-sizing: border-box;
5159
+ }
5160
+
5161
+ /* ─── Sizes ───────────────────────────────────────────── */
5162
+
5163
+ .muka-spinner--sm .muka-spinner__circle {
5164
+ width: 16px;
5165
+ height: 16px;
5166
+ border-width: 2px;
5167
+ }
5168
+
5169
+ .muka-spinner--md .muka-spinner__circle {
5170
+ width: 20px;
5171
+ height: 20px;
5172
+ border-width: 2px;
5173
+ }
5174
+
5175
+ .muka-spinner--lg .muka-spinner__circle {
5176
+ width: 24px;
5177
+ height: 24px;
5178
+ border-width: 3px;
5179
+ }
5180
+
5181
+ /* ─── Visually-hidden label ───────────────────────────── */
5182
+
5183
+ .muka-spinner__sr-label {
5184
+ position: absolute;
5185
+ width: 1px;
5186
+ height: 1px;
5187
+ padding: 0;
5084
5188
  margin: -1px;
5085
5189
  overflow: hidden;
5086
5190
  clip: rect(0, 0, 0, 0);
@@ -5711,6 +5815,44 @@ body {
5711
5815
  }
5712
5816
  }
5713
5817
 
5818
+ /*
5819
+ * layout="full" (Figma Public header, Bouwplan): the content spans the width,
5820
+ * the nav sits between brand and actions (space-between), and the inset grows
5821
+ * with the screen: 24/16 on small screens, 16/24 from 768px, 32 from 1536px.
5822
+ * Safe-area insets still win where they are larger.
5823
+ */
5824
+ .muka-site-header--full .muka-site-header__inner {
5825
+ max-width: none;
5826
+ justify-content: space-between;
5827
+ }
5828
+
5829
+ .muka-site-header--full .muka-site-header__actions {
5830
+ margin-left: 0;
5831
+ }
5832
+
5833
+ @media (min-width: 768px) {
5834
+ .muka-site-header--full .muka-site-header__inner {
5835
+ padding-block: var(--spacing-4);
5836
+ padding-left: max(var(--spacing-6), env(safe-area-inset-left, 0px));
5837
+ padding-right: max(var(--spacing-6), env(safe-area-inset-right, 0px));
5838
+ }
5839
+ }
5840
+
5841
+ @media (min-width: 1536px) {
5842
+ .muka-site-header--full .muka-site-header__inner {
5843
+ padding-block: var(--spacing-8);
5844
+ padding-left: max(var(--spacing-8), env(safe-area-inset-left, 0px));
5845
+ padding-right: max(var(--spacing-8), env(safe-area-inset-right, 0px));
5846
+ }
5847
+ }
5848
+
5849
+ /* Small screens: no nav, so the actions take the end on their own. */
5850
+ @media (max-width: 767px) {
5851
+ .muka-site-header--full .muka-site-header__actions {
5852
+ margin-left: auto;
5853
+ }
5854
+ }
5855
+
5714
5856
 
5715
5857
  /* Sheet */
5716
5858
  /* Sheet Component Styles */
@@ -6199,84 +6341,211 @@ body {
6199
6341
  }
6200
6342
 
6201
6343
 
6202
- /* SearchInput */
6203
- /* SearchInput Component Styles */
6344
+ /* Scrollbar */
6345
+ /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
6204
6346
 
6205
- .muka-search-input {
6347
+ .muka-scrollbar {
6206
6348
  display: flex;
6207
- align-items: center;
6208
- gap: var(--spacing-3);
6209
- width: 100%;
6349
+ flex-shrink: 0;
6350
+ border-left: var(--border-width-regular) solid var(--color-border-default);
6351
+ background-color: var(--color-surface-level3);
6352
+ user-select: none;
6210
6353
  }
6211
6354
 
6212
- /* ─── Field wrapper ───────────────────────────────────── */
6213
-
6214
- .muka-search-input__field {
6215
- flex: 1 1 auto;
6216
- display: flex;
6217
- align-items: center;
6218
- gap: var(--spacing-2);
6219
- background-color: var(--input-field-color-default-background);
6220
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
6221
- border-radius: var(--input-field-radius-md);
6222
- padding: 0 var(--input-field-padding-x);
6223
- transition: border-color 0.12s ease, background-color 0.12s ease;
6355
+ .muka-scrollbar--vertical {
6356
+ flex-direction: column;
6357
+ width: var(--size-2xl, 32px);
6358
+ align-self: stretch;
6224
6359
  }
6225
6360
 
6226
- .muka-search-input--focused .muka-search-input__field {
6227
- border-color: var(--input-field-color-focus-border, var(--color-action-default));
6361
+ .muka-scrollbar--horizontal {
6362
+ flex-direction: row;
6363
+ height: var(--size-2xl, 32px);
6364
+ width: 100%;
6365
+ border-left: none;
6366
+ border-top: var(--border-width-regular) solid var(--color-border-default);
6228
6367
  }
6229
6368
 
6230
- /* ─── Sizes ───────────────────────────────────────────── */
6231
-
6232
- .muka-search-input--sm .muka-search-input__field {
6233
- min-height: var(--input-field-height-sm);
6234
- border-radius: var(--input-field-radius-sm);
6369
+ .muka-scrollbar__button {
6370
+ display: flex;
6371
+ align-items: center;
6372
+ justify-content: center;
6373
+ flex-shrink: 0;
6374
+ width: 100%;
6375
+ height: var(--size-2xl, 32px);
6376
+ padding: 0;
6377
+ border: none;
6378
+ background-color: var(--button-color-tertiary-background-default, var(--color-surface-level3));
6379
+ color: var(--color-text-default-default);
6380
+ cursor: pointer;
6235
6381
  }
6236
6382
 
6237
- .muka-search-input--md .muka-search-input__field {
6238
- min-height: var(--input-field-height-default);
6383
+ .muka-scrollbar--horizontal .muka-scrollbar__button {
6384
+ width: var(--size-2xl, 32px);
6385
+ height: 100%;
6239
6386
  }
6240
6387
 
6241
- .muka-search-input--lg .muka-search-input__field {
6242
- min-height: var(--input-field-height-lg);
6243
- border-radius: var(--input-field-radius-lg);
6388
+ .muka-scrollbar__button:hover {
6389
+ background-color: var(--color-surface-hover);
6244
6390
  }
6245
6391
 
6246
- /* ─── Embedded variant (e.g. inside TopBar) ───────────── */
6247
-
6248
- .muka-search-input--embedded .muka-search-input__field {
6249
- background-color: var(--color-surface-level1);
6250
- border-color: transparent;
6392
+ .muka-scrollbar__divider {
6393
+ flex-shrink: 0;
6394
+ width: 100%;
6395
+ height: 1px;
6396
+ background-color: var(--color-border-default);
6251
6397
  }
6252
6398
 
6253
- .muka-search-input--embedded.muka-search-input--focused .muka-search-input__field {
6254
- border-color: transparent;
6255
- background-color: var(--color-surface-level2);
6399
+ .muka-scrollbar--horizontal .muka-scrollbar__divider {
6400
+ width: 1px;
6401
+ height: 100%;
6256
6402
  }
6257
6403
 
6258
- /* ─── Disabled ────────────────────────────────────────── */
6259
-
6260
- .muka-search-input--disabled .muka-search-input__field {
6261
- opacity: 0.5;
6262
- pointer-events: none;
6404
+ .muka-scrollbar__track {
6405
+ position: relative;
6406
+ display: flex;
6407
+ flex-direction: column;
6408
+ flex: 1 1 auto;
6409
+ min-height: 0;
6410
+ width: 100%;
6263
6411
  }
6264
6412
 
6265
- /* ─── Leading icon ────────────────────────────────────── */
6413
+ .muka-scrollbar--horizontal .muka-scrollbar__track {
6414
+ flex-direction: row;
6415
+ min-width: 0;
6416
+ height: 100%;
6417
+ }
6266
6418
 
6267
- .muka-search-input__leading {
6268
- display: inline-flex;
6419
+ .muka-scrollbar__thumb {
6420
+ position: absolute;
6421
+ left: 0;
6422
+ top: 0;
6423
+ z-index: 1;
6424
+ display: flex;
6269
6425
  align-items: center;
6270
6426
  justify-content: center;
6271
- flex-shrink: 0;
6272
- color: var(--color-text-subtle-default);
6427
+ width: 100%;
6428
+ /* Figma: scrollbar thumb fill = surface/level3 */
6429
+ background-color: var(--color-surface-level3);
6430
+ cursor: grab;
6431
+ touch-action: none;
6273
6432
  }
6274
6433
 
6275
- /* ─── Input element ───────────────────────────────────── */
6276
-
6277
- .muka-search-input__input {
6278
- flex: 1 1 auto;
6279
- min-width: 0;
6434
+ .muka-scrollbar--horizontal .muka-scrollbar__thumb {
6435
+ left: 0;
6436
+ top: 0;
6437
+ width: auto;
6438
+ height: 100%;
6439
+ margin-left: 0;
6440
+ margin-top: 0;
6441
+ }
6442
+
6443
+ .muka-scrollbar__thumb:active {
6444
+ cursor: grabbing;
6445
+ }
6446
+
6447
+ .muka-scrollbar__grip {
6448
+ display: flex;
6449
+ flex-direction: column;
6450
+ gap: 2px;
6451
+ width: 14px;
6452
+ }
6453
+
6454
+ .muka-scrollbar__grip::before,
6455
+ .muka-scrollbar__grip::after {
6456
+ content: '';
6457
+ display: block;
6458
+ width: 100%;
6459
+ height: 2px;
6460
+ border-radius: var(--border-radius-md);
6461
+ background-color: var(--color-text-subtle-default);
6462
+ }
6463
+
6464
+ .muka-scrollbar__spacer {
6465
+ flex: 1 1 auto;
6466
+ min-height: 0;
6467
+ background-color: var(--color-surface-level2);
6468
+ }
6469
+
6470
+
6471
+ /* SearchInput */
6472
+ /* SearchInput Component Styles */
6473
+
6474
+ .muka-search-input {
6475
+ display: flex;
6476
+ align-items: center;
6477
+ gap: var(--spacing-3);
6478
+ width: 100%;
6479
+ }
6480
+
6481
+ /* ─── Field wrapper ───────────────────────────────────── */
6482
+
6483
+ .muka-search-input__field {
6484
+ flex: 1 1 auto;
6485
+ display: flex;
6486
+ align-items: center;
6487
+ gap: var(--spacing-2);
6488
+ background-color: var(--input-field-color-default-background);
6489
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
6490
+ border-radius: var(--input-field-radius-md);
6491
+ padding: 0 var(--input-field-padding-x);
6492
+ transition: border-color 0.12s ease, background-color 0.12s ease;
6493
+ }
6494
+
6495
+ .muka-search-input--focused .muka-search-input__field {
6496
+ border-color: var(--input-field-color-focus-border, var(--color-action-default));
6497
+ }
6498
+
6499
+ /* ─── Sizes ───────────────────────────────────────────── */
6500
+
6501
+ .muka-search-input--sm .muka-search-input__field {
6502
+ min-height: var(--input-field-height-sm);
6503
+ border-radius: var(--input-field-radius-sm);
6504
+ }
6505
+
6506
+ .muka-search-input--md .muka-search-input__field {
6507
+ min-height: var(--input-field-height-default);
6508
+ }
6509
+
6510
+ .muka-search-input--lg .muka-search-input__field {
6511
+ min-height: var(--input-field-height-lg);
6512
+ border-radius: var(--input-field-radius-lg);
6513
+ }
6514
+
6515
+ /* ─── Embedded variant (e.g. inside TopBar) ───────────── */
6516
+
6517
+ .muka-search-input--embedded .muka-search-input__field {
6518
+ background-color: var(--color-surface-level1);
6519
+ border-color: transparent;
6520
+ }
6521
+
6522
+ .muka-search-input--embedded.muka-search-input--focused .muka-search-input__field {
6523
+ border-color: transparent;
6524
+ background-color: var(--color-surface-level2);
6525
+ }
6526
+
6527
+ /* ─── Disabled ────────────────────────────────────────── */
6528
+
6529
+ .muka-search-input--disabled .muka-search-input__field {
6530
+ opacity: 0.5;
6531
+ pointer-events: none;
6532
+ }
6533
+
6534
+ /* ─── Leading icon ────────────────────────────────────── */
6535
+
6536
+ .muka-search-input__leading {
6537
+ display: inline-flex;
6538
+ align-items: center;
6539
+ justify-content: center;
6540
+ flex-shrink: 0;
6541
+ color: var(--color-text-subtle-default);
6542
+ }
6543
+
6544
+ /* ─── Input element ───────────────────────────────────── */
6545
+
6546
+ .muka-search-input__input {
6547
+ flex: 1 1 auto;
6548
+ min-width: 0;
6280
6549
  border: none;
6281
6550
  background: transparent;
6282
6551
  outline: none;
@@ -6368,133 +6637,6 @@ body {
6368
6637
  }
6369
6638
 
6370
6639
 
6371
- /* Scrollbar */
6372
- /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
6373
-
6374
- .muka-scrollbar {
6375
- display: flex;
6376
- flex-shrink: 0;
6377
- border-left: var(--border-width-regular) solid var(--color-border-default);
6378
- background-color: var(--color-surface-level3);
6379
- user-select: none;
6380
- }
6381
-
6382
- .muka-scrollbar--vertical {
6383
- flex-direction: column;
6384
- width: var(--size-2xl, 32px);
6385
- align-self: stretch;
6386
- }
6387
-
6388
- .muka-scrollbar--horizontal {
6389
- flex-direction: row;
6390
- height: var(--size-2xl, 32px);
6391
- width: 100%;
6392
- border-left: none;
6393
- border-top: var(--border-width-regular) solid var(--color-border-default);
6394
- }
6395
-
6396
- .muka-scrollbar__button {
6397
- display: flex;
6398
- align-items: center;
6399
- justify-content: center;
6400
- flex-shrink: 0;
6401
- width: 100%;
6402
- height: var(--size-2xl, 32px);
6403
- padding: 0;
6404
- border: none;
6405
- background-color: var(--button-color-tertiary-background-default, var(--color-surface-level3));
6406
- color: var(--color-text-default-default);
6407
- cursor: pointer;
6408
- }
6409
-
6410
- .muka-scrollbar--horizontal .muka-scrollbar__button {
6411
- width: var(--size-2xl, 32px);
6412
- height: 100%;
6413
- }
6414
-
6415
- .muka-scrollbar__button:hover {
6416
- background-color: var(--color-surface-hover);
6417
- }
6418
-
6419
- .muka-scrollbar__divider {
6420
- flex-shrink: 0;
6421
- width: 100%;
6422
- height: 1px;
6423
- background-color: var(--color-border-default);
6424
- }
6425
-
6426
- .muka-scrollbar--horizontal .muka-scrollbar__divider {
6427
- width: 1px;
6428
- height: 100%;
6429
- }
6430
-
6431
- .muka-scrollbar__track {
6432
- position: relative;
6433
- display: flex;
6434
- flex-direction: column;
6435
- flex: 1 1 auto;
6436
- min-height: 0;
6437
- width: 100%;
6438
- }
6439
-
6440
- .muka-scrollbar--horizontal .muka-scrollbar__track {
6441
- flex-direction: row;
6442
- min-width: 0;
6443
- height: 100%;
6444
- }
6445
-
6446
- .muka-scrollbar__thumb {
6447
- position: absolute;
6448
- left: 0;
6449
- top: 0;
6450
- z-index: 1;
6451
- display: flex;
6452
- align-items: center;
6453
- justify-content: center;
6454
- width: 100%;
6455
- /* Figma: scrollbar thumb fill = surface/level3 */
6456
- background-color: var(--color-surface-level3);
6457
- cursor: grab;
6458
- touch-action: none;
6459
- }
6460
-
6461
- .muka-scrollbar--horizontal .muka-scrollbar__thumb {
6462
- left: 0;
6463
- top: 0;
6464
- width: auto;
6465
- height: 100%;
6466
- margin-left: 0;
6467
- margin-top: 0;
6468
- }
6469
-
6470
- .muka-scrollbar__thumb:active {
6471
- cursor: grabbing;
6472
- }
6473
-
6474
- .muka-scrollbar__grip {
6475
- display: flex;
6476
- flex-direction: column;
6477
- gap: 2px;
6478
- width: 14px;
6479
- }
6480
-
6481
- .muka-scrollbar__grip::before,
6482
- .muka-scrollbar__grip::after {
6483
- content: '';
6484
- display: block;
6485
- width: 100%;
6486
- height: 2px;
6487
- border-radius: var(--border-radius-md);
6488
- background-color: var(--color-text-subtle-default);
6489
- }
6490
-
6491
- .muka-scrollbar__spacer {
6492
- flex: 1 1 auto;
6493
- min-height: 0;
6494
- background-color: var(--color-surface-level2);
6495
- }
6496
-
6497
-
6498
6640
  /* RecordingBar */
6499
6641
  /* RecordingBar Component Styles */
6500
6642
 
@@ -6761,155 +6903,12 @@ body {
6761
6903
  }
6762
6904
 
6763
6905
 
6764
- /* RadioTile */
6765
- /* RadioTile Component Styles - Using Muka Design Tokens */
6906
+ /* Radio */
6907
+ /* Radio Component Styles - Using Muka Design Tokens */
6766
6908
 
6767
- /* Base tile styles - horizontal */
6768
- .muka-radio-tile {
6769
- display: flex;
6770
- align-items: center;
6771
- gap: var(--spacing-4);
6772
- padding: var(--spacing-4);
6773
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
6774
- border-radius: var(--input-field-radius-lg);
6775
- background-color: var(--color-surface-level3);
6776
- cursor: pointer;
6777
- transition: border-color 0.15s ease, border-width 0.15s ease;
6778
- overflow: hidden;
6779
- box-sizing: border-box;
6780
- }
6781
-
6782
- .muka-radio-tile--disabled {
6783
- cursor: not-allowed;
6784
- opacity: 0.6;
6785
- }
6786
-
6787
- /* Selected state */
6788
- .muka-radio-tile[data-checked] {
6789
- border-width: var(--border-width-bold);
6790
- border-color: var(--color-action-default);
6791
- }
6792
-
6793
- /* Vertical layout */
6794
- .muka-radio-tile--vertical {
6795
- flex-direction: column;
6796
- align-items: center;
6797
- gap: var(--spacing-2);
6798
- position: relative;
6799
- width: 160px;
6800
- }
6801
-
6802
- /* Radio container */
6803
- .muka-radio-tile__radio {
6804
- flex-shrink: 0;
6805
- }
6806
-
6807
- /* Corner-positioned radio for vertical */
6808
- .muka-radio-tile__radio--corner {
6809
- position: absolute;
6810
- top: var(--spacing-4);
6811
- left: var(--spacing-4);
6812
- }
6813
-
6814
- /* Adjust corner position when selected (border is thicker) */
6815
- .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
6816
- top: calc(var(--spacing-4) - 1px);
6817
- left: calc(var(--spacing-4) - 1px);
6818
- }
6819
-
6820
- /* Icon */
6821
- .muka-radio-tile__icon {
6822
- display: flex;
6823
- align-items: center;
6824
- justify-content: center;
6825
- flex-shrink: 0;
6826
- width: var(--icon-size-default);
6827
- height: var(--icon-size-default);
6828
- color: var(--color-text-default-default);
6829
- }
6830
-
6831
- .muka-radio-tile__icon svg {
6832
- width: 100%;
6833
- height: 100%;
6834
- }
6835
-
6836
- /* Image */
6837
- .muka-radio-tile__image {
6838
- flex-shrink: 0;
6839
- overflow: hidden;
6840
- border-radius: var(--border-radius-sm);
6841
- }
6842
-
6843
- .muka-radio-tile__image img {
6844
- display: block;
6845
- width: 100%;
6846
- height: 100%;
6847
- object-fit: cover;
6848
- }
6849
-
6850
- /* Horizontal image sizing */
6851
- .muka-radio-tile__image--horizontal {
6852
- width: 40px;
6853
- height: 40px;
6854
- }
6855
-
6856
- /* Vertical image sizing */
6857
- .muka-radio-tile--vertical .muka-radio-tile__image {
6858
- width: 100%;
6859
- aspect-ratio: 4/3;
6860
- }
6861
-
6862
- /* Content container */
6863
- .muka-radio-tile__content {
6864
- display: flex;
6865
- flex-direction: column;
6866
- flex: 1;
6867
- min-width: 0;
6868
- gap: var(--spacing-1);
6869
- }
6870
-
6871
- /* Label */
6872
- .muka-radio-tile__label {
6873
- font-family: var(--text-body-lg-regular-fontFamily);
6874
- font-weight: var(--text-body-lg-regular-fontWeight);
6875
- font-size: var(--text-body-lg-regular-fontSize);
6876
- line-height: var(--text-body-lg-regular-lineHeight);
6877
- color: var(--color-text-default-default);
6878
- }
6879
-
6880
- .muka-radio-tile__label--bold {
6881
- font-family: var(--text-label-lg-semibold-fontFamily);
6882
- font-weight: var(--text-label-lg-semibold-fontWeight);
6883
- font-size: var(--text-label-lg-semibold-fontSize);
6884
- line-height: var(--text-label-lg-semibold-lineHeight);
6885
- }
6886
-
6887
- .muka-radio-tile__label--center {
6888
- text-align: center;
6889
- }
6890
-
6891
- /* Caption */
6892
- .muka-radio-tile__caption {
6893
- font-family: var(--text-body-base-regular-fontFamily);
6894
- font-weight: var(--text-body-base-regular-fontWeight);
6895
- font-size: var(--text-body-base-regular-fontSize);
6896
- line-height: var(--text-body-base-regular-lineHeight);
6897
- color: var(--color-text-subtle-default);
6898
- }
6899
-
6900
- /* Disabled states */
6901
- .muka-radio-tile--disabled .muka-radio-tile__label,
6902
- .muka-radio-tile--disabled .muka-radio-tile__icon {
6903
- color: var(--color-text-subtle-default);
6904
- }
6905
-
6906
-
6907
- /* Radio */
6908
- /* Radio Component Styles - Using Muka Design Tokens */
6909
-
6910
- /* Wrapper - clickable label container */
6911
- .muka-radio {
6912
- display: inline-flex;
6909
+ /* Wrapper - clickable label container */
6910
+ .muka-radio {
6911
+ display: inline-flex;
6913
6912
  align-items: center;
6914
6913
  gap: var(--spacing-4);
6915
6914
  cursor: pointer;
@@ -7917,105 +7916,248 @@ button.muka-progress-tracker__tab:focus-visible {
7917
7916
  }
7918
7917
 
7919
7918
 
7920
- /* Progress */
7921
- /* Progress Component Styles - Using Muka Design Tokens */
7922
-
7923
- /* ========================================
7924
- BAR VARIANT
7925
- ======================================== */
7919
+ /* RadioTile */
7920
+ /* RadioTile Component Styles - Using Muka Design Tokens */
7926
7921
 
7927
- .muka-progress--bar {
7922
+ /* Base tile styles - horizontal */
7923
+ .muka-radio-tile {
7928
7924
  display: flex;
7929
7925
  align-items: center;
7930
- gap: var(--spacing-2);
7931
- width: 100%;
7932
- }
7933
-
7934
- .muka-progress--bar .muka-progress__track {
7935
- flex: 1;
7936
- background-color: var(--color-surface-level1);
7937
- border-radius: var(--border-radius-full);
7926
+ gap: var(--spacing-4);
7927
+ padding: var(--spacing-4);
7928
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
7929
+ border-radius: var(--input-field-radius-lg);
7930
+ background-color: var(--color-surface-level3);
7931
+ cursor: pointer;
7932
+ transition: border-color 0.15s ease, border-width 0.15s ease;
7938
7933
  overflow: hidden;
7934
+ box-sizing: border-box;
7939
7935
  }
7940
7936
 
7941
- .muka-progress--bar.muka-progress--sm .muka-progress__track {
7942
- height: var(--progress-size-bar-height-sm);
7943
- }
7944
-
7945
- .muka-progress--bar.muka-progress--md .muka-progress__track {
7946
- height: var(--progress-size-bar-height-md);
7937
+ .muka-radio-tile--disabled {
7938
+ cursor: not-allowed;
7939
+ opacity: 0.6;
7947
7940
  }
7948
7941
 
7949
- .muka-progress--bar.muka-progress--lg .muka-progress__track {
7950
- height: var(--progress-size-bar-height-lg);
7942
+ /* Selected state */
7943
+ .muka-radio-tile[data-checked] {
7944
+ border-width: var(--border-width-bold);
7945
+ border-color: var(--color-action-default);
7951
7946
  }
7952
7947
 
7953
- .muka-progress--bar .muka-progress__fill {
7954
- height: 100%;
7955
- background-color: var(--color-action-default);
7956
- border-radius: var(--border-radius-full);
7957
- transition: width 0.3s ease;
7948
+ /* Vertical layout */
7949
+ .muka-radio-tile--vertical {
7950
+ flex-direction: column;
7951
+ align-items: center;
7952
+ gap: var(--spacing-2);
7953
+ position: relative;
7954
+ width: 160px;
7958
7955
  }
7959
7956
 
7960
- .muka-progress--bar .muka-progress__label {
7957
+ /* Radio container */
7958
+ .muka-radio-tile__radio {
7961
7959
  flex-shrink: 0;
7962
- font-family: var(--text-label-sm-semibold-fontFamily);
7963
- font-weight: var(--text-label-sm-semibold-fontWeight);
7964
- font-size: var(--text-label-sm-semibold-fontSize);
7965
- line-height: var(--text-label-sm-semibold-lineHeight);
7966
- color: var(--color-text-default-default);
7967
- min-width: 3ch;
7968
- text-align: right;
7969
7960
  }
7970
7961
 
7971
- /* Indeterminate animation for bar */
7972
- .muka-progress--bar.muka-progress--indeterminate .muka-progress__fill {
7973
- width: 40%;
7974
- animation: muka-progress-bar-indeterminate 1.5s ease-in-out infinite;
7962
+ /* Corner-positioned radio for vertical */
7963
+ .muka-radio-tile__radio--corner {
7964
+ position: absolute;
7965
+ top: var(--spacing-4);
7966
+ left: var(--spacing-4);
7975
7967
  }
7976
7968
 
7977
- @keyframes muka-progress-bar-indeterminate {
7978
- 0% {
7979
- transform: translateX(-100%);
7980
- }
7981
- 100% {
7982
- transform: translateX(250%);
7983
- }
7969
+ /* Adjust corner position when selected (border is thicker) */
7970
+ .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
7971
+ top: calc(var(--spacing-4) - 1px);
7972
+ left: calc(var(--spacing-4) - 1px);
7984
7973
  }
7985
7974
 
7986
- /* ========================================
7987
- CIRCLE VARIANT
7988
- ======================================== */
7989
-
7990
- .muka-progress--circle {
7991
- position: relative;
7992
- display: inline-flex;
7975
+ /* Icon */
7976
+ .muka-radio-tile__icon {
7977
+ display: flex;
7993
7978
  align-items: center;
7994
7979
  justify-content: center;
7980
+ flex-shrink: 0;
7981
+ width: var(--icon-size-default);
7982
+ height: var(--icon-size-default);
7983
+ color: var(--color-text-default-default);
7995
7984
  }
7996
7985
 
7997
- .muka-progress--circle.muka-progress--sm {
7998
- width: var(--progress-size-circle-diameter-sm);
7999
- height: var(--progress-size-circle-diameter-sm);
8000
- }
8001
-
8002
- .muka-progress--circle.muka-progress--md {
8003
- width: var(--progress-size-circle-diameter-md);
8004
- height: var(--progress-size-circle-diameter-md);
8005
- }
8006
-
8007
- .muka-progress--circle.muka-progress--lg {
8008
- width: var(--progress-size-circle-diameter-lg);
8009
- height: var(--progress-size-circle-diameter-lg);
8010
- }
8011
-
8012
- .muka-progress__circle {
7986
+ .muka-radio-tile__icon svg {
8013
7987
  width: 100%;
8014
7988
  height: 100%;
8015
- transform: rotate(-90deg);
8016
7989
  }
8017
7990
 
8018
- .muka-progress--circle .muka-progress__track {
7991
+ /* Image */
7992
+ .muka-radio-tile__image {
7993
+ flex-shrink: 0;
7994
+ overflow: hidden;
7995
+ border-radius: var(--border-radius-sm);
7996
+ }
7997
+
7998
+ .muka-radio-tile__image img {
7999
+ display: block;
8000
+ width: 100%;
8001
+ height: 100%;
8002
+ object-fit: cover;
8003
+ }
8004
+
8005
+ /* Horizontal image sizing */
8006
+ .muka-radio-tile__image--horizontal {
8007
+ width: 40px;
8008
+ height: 40px;
8009
+ }
8010
+
8011
+ /* Vertical image sizing */
8012
+ .muka-radio-tile--vertical .muka-radio-tile__image {
8013
+ width: 100%;
8014
+ aspect-ratio: 4/3;
8015
+ }
8016
+
8017
+ /* Content container */
8018
+ .muka-radio-tile__content {
8019
+ display: flex;
8020
+ flex-direction: column;
8021
+ flex: 1;
8022
+ min-width: 0;
8023
+ gap: var(--spacing-1);
8024
+ }
8025
+
8026
+ /* Label */
8027
+ .muka-radio-tile__label {
8028
+ font-family: var(--text-body-lg-regular-fontFamily);
8029
+ font-weight: var(--text-body-lg-regular-fontWeight);
8030
+ font-size: var(--text-body-lg-regular-fontSize);
8031
+ line-height: var(--text-body-lg-regular-lineHeight);
8032
+ color: var(--color-text-default-default);
8033
+ }
8034
+
8035
+ .muka-radio-tile__label--bold {
8036
+ font-family: var(--text-label-lg-semibold-fontFamily);
8037
+ font-weight: var(--text-label-lg-semibold-fontWeight);
8038
+ font-size: var(--text-label-lg-semibold-fontSize);
8039
+ line-height: var(--text-label-lg-semibold-lineHeight);
8040
+ }
8041
+
8042
+ .muka-radio-tile__label--center {
8043
+ text-align: center;
8044
+ }
8045
+
8046
+ /* Caption */
8047
+ .muka-radio-tile__caption {
8048
+ font-family: var(--text-body-base-regular-fontFamily);
8049
+ font-weight: var(--text-body-base-regular-fontWeight);
8050
+ font-size: var(--text-body-base-regular-fontSize);
8051
+ line-height: var(--text-body-base-regular-lineHeight);
8052
+ color: var(--color-text-subtle-default);
8053
+ }
8054
+
8055
+ /* Disabled states */
8056
+ .muka-radio-tile--disabled .muka-radio-tile__label,
8057
+ .muka-radio-tile--disabled .muka-radio-tile__icon {
8058
+ color: var(--color-text-subtle-default);
8059
+ }
8060
+
8061
+
8062
+ /* Progress */
8063
+ /* Progress Component Styles - Using Muka Design Tokens */
8064
+
8065
+ /* ========================================
8066
+ BAR VARIANT
8067
+ ======================================== */
8068
+
8069
+ .muka-progress--bar {
8070
+ display: flex;
8071
+ align-items: center;
8072
+ gap: var(--spacing-2);
8073
+ width: 100%;
8074
+ }
8075
+
8076
+ .muka-progress--bar .muka-progress__track {
8077
+ flex: 1;
8078
+ background-color: var(--color-surface-level1);
8079
+ border-radius: var(--border-radius-full);
8080
+ overflow: hidden;
8081
+ }
8082
+
8083
+ .muka-progress--bar.muka-progress--sm .muka-progress__track {
8084
+ height: var(--progress-size-bar-height-sm);
8085
+ }
8086
+
8087
+ .muka-progress--bar.muka-progress--md .muka-progress__track {
8088
+ height: var(--progress-size-bar-height-md);
8089
+ }
8090
+
8091
+ .muka-progress--bar.muka-progress--lg .muka-progress__track {
8092
+ height: var(--progress-size-bar-height-lg);
8093
+ }
8094
+
8095
+ .muka-progress--bar .muka-progress__fill {
8096
+ height: 100%;
8097
+ background-color: var(--color-action-default);
8098
+ border-radius: var(--border-radius-full);
8099
+ transition: width 0.3s ease;
8100
+ }
8101
+
8102
+ .muka-progress--bar .muka-progress__label {
8103
+ flex-shrink: 0;
8104
+ font-family: var(--text-label-sm-semibold-fontFamily);
8105
+ font-weight: var(--text-label-sm-semibold-fontWeight);
8106
+ font-size: var(--text-label-sm-semibold-fontSize);
8107
+ line-height: var(--text-label-sm-semibold-lineHeight);
8108
+ color: var(--color-text-default-default);
8109
+ min-width: 3ch;
8110
+ text-align: right;
8111
+ }
8112
+
8113
+ /* Indeterminate animation for bar */
8114
+ .muka-progress--bar.muka-progress--indeterminate .muka-progress__fill {
8115
+ width: 40%;
8116
+ animation: muka-progress-bar-indeterminate 1.5s ease-in-out infinite;
8117
+ }
8118
+
8119
+ @keyframes muka-progress-bar-indeterminate {
8120
+ 0% {
8121
+ transform: translateX(-100%);
8122
+ }
8123
+ 100% {
8124
+ transform: translateX(250%);
8125
+ }
8126
+ }
8127
+
8128
+ /* ========================================
8129
+ CIRCLE VARIANT
8130
+ ======================================== */
8131
+
8132
+ .muka-progress--circle {
8133
+ position: relative;
8134
+ display: inline-flex;
8135
+ align-items: center;
8136
+ justify-content: center;
8137
+ }
8138
+
8139
+ .muka-progress--circle.muka-progress--sm {
8140
+ width: var(--progress-size-circle-diameter-sm);
8141
+ height: var(--progress-size-circle-diameter-sm);
8142
+ }
8143
+
8144
+ .muka-progress--circle.muka-progress--md {
8145
+ width: var(--progress-size-circle-diameter-md);
8146
+ height: var(--progress-size-circle-diameter-md);
8147
+ }
8148
+
8149
+ .muka-progress--circle.muka-progress--lg {
8150
+ width: var(--progress-size-circle-diameter-lg);
8151
+ height: var(--progress-size-circle-diameter-lg);
8152
+ }
8153
+
8154
+ .muka-progress__circle {
8155
+ width: 100%;
8156
+ height: 100%;
8157
+ transform: rotate(-90deg);
8158
+ }
8159
+
8160
+ .muka-progress--circle .muka-progress__track {
8019
8161
  fill: none;
8020
8162
  stroke: var(--color-surface-level1);
8021
8163
  }
@@ -8094,6 +8236,8 @@ button.muka-progress-tracker__tab:focus-visible {
8094
8236
 
8095
8237
  .muka-profile-badge {
8096
8238
  display: inline-flex;
8239
+ max-width: 100%;
8240
+ min-width: 0;
8097
8241
  align-items: center;
8098
8242
  font-family: var(--text-body-base-regular-fontFamily);
8099
8243
  }
@@ -8124,6 +8268,10 @@ button.muka-progress-tracker__tab:focus-visible {
8124
8268
  }
8125
8269
 
8126
8270
  .muka-profile-badge__name {
8271
+ max-width: 100%;
8272
+ overflow: hidden;
8273
+ text-overflow: ellipsis;
8274
+ white-space: nowrap;
8127
8275
  font-family: var(--text-body-base-regular-fontFamily);
8128
8276
  font-size: var(--text-body-base-regular-fontSize);
8129
8277
  font-weight: var(--text-body-base-regular-fontWeight);
@@ -8197,166 +8345,69 @@ button.muka-progress-tracker__tab:focus-visible {
8197
8345
  }
8198
8346
 
8199
8347
 
8200
- /* PriceTag */
8201
- /* PriceTag Component Styles - Using Muka Design Tokens */
8348
+ /* Popover */
8349
+ /* Popover Component Styles */
8202
8350
 
8203
- .muka-price-tag {
8204
- display: flex;
8205
- flex-shrink: 0;
8351
+ .muka-popover__content {
8352
+ background-color: var(--color-surface-level3);
8353
+ border: var(--border-width-regular) solid var(--color-border-default);
8354
+ border-radius: var(--radius-md);
8355
+ padding: var(--spacing-4);
8356
+ box-shadow: var(--shadow-level3);
8357
+ max-width: 20rem;
8358
+ z-index: 50;
8359
+ animation: muka-popover-fade-in 150ms ease;
8206
8360
  }
8207
8361
 
8208
- /* Medium: stacked layout (price on top, unit below) */
8209
- .muka-price-tag--md {
8210
- flex-direction: column;
8211
- align-items: flex-end;
8212
- justify-content: center;
8362
+ @keyframes muka-popover-fade-in {
8363
+ from {
8364
+ opacity: 0;
8365
+ transform: scale(0.96);
8366
+ }
8367
+ to {
8368
+ opacity: 1;
8369
+ transform: scale(1);
8370
+ }
8213
8371
  }
8214
8372
 
8215
- /* Small: inline layout */
8216
- .muka-price-tag--sm {
8217
- flex-direction: row;
8218
- align-items: center;
8219
- gap: 3px;
8373
+ /* Arrow */
8374
+ .muka-popover__arrow {
8375
+ fill: var(--color-surface-level3);
8220
8376
  }
8221
8377
 
8222
- /* Amount row: currency + numbers */
8223
- .muka-price-tag__amount {
8378
+
8379
+ /* PlanningGantt */
8380
+ /* PlanningGantt (MUK-105) — one week per page, never scrolls horizontally. */
8381
+
8382
+ .muka-gantt {
8383
+ container-type: inline-size;
8384
+ container-name: muka-gantt;
8224
8385
  display: flex;
8225
- align-items: flex-start;
8226
- gap: var(--spacing-1);
8386
+ flex-direction: column;
8387
+ gap: var(--spacing-3);
8388
+ color: var(--gantt-bar-text);
8389
+ font-family: var(--text-body-sm-regular-fontFamily);
8227
8390
  }
8228
8391
 
8229
- .muka-price-tag--sm .muka-price-tag__amount {
8392
+ /* Toolbar: today + pager on the left, actions on the right */
8393
+ .muka-gantt__toolbar {
8394
+ display: flex;
8395
+ flex-wrap: wrap;
8230
8396
  align-items: center;
8397
+ justify-content: space-between;
8398
+ gap: var(--spacing-3);
8231
8399
  }
8232
8400
 
8233
- /* Numbers group: whole + decimal + cents */
8234
- .muka-price-tag__numbers {
8401
+ .muka-gantt__pager {
8235
8402
  display: flex;
8236
- align-items: baseline;
8403
+ align-items: center;
8404
+ gap: var(--spacing-2);
8237
8405
  }
8238
8406
 
8239
- /* ─── Medium size typography ──────────────────────────── */
8240
-
8241
- .muka-price-tag--md .muka-price-tag__currency {
8242
- font-family: var(--text-subheading-md-fontFamily);
8243
- font-weight: var(--text-subheading-md-fontWeight);
8244
- font-size: var(--text-subheading-md-fontSize);
8245
- line-height: var(--text-label-2xl-bold-lineHeight);
8246
- color: var(--color-text-subtle-default);
8247
- }
8248
-
8249
- .muka-price-tag--md .muka-price-tag__whole {
8250
- font-family: var(--text-label-2xl-bold-fontFamily);
8251
- font-weight: var(--text-label-2xl-bold-fontWeight);
8252
- font-size: var(--text-label-2xl-bold-fontSize);
8253
- line-height: var(--text-label-2xl-bold-lineHeight);
8254
- color: var(--color-text-default-default);
8255
- }
8256
-
8257
- .muka-price-tag--md .muka-price-tag__decimal,
8258
- .muka-price-tag--md .muka-price-tag__cents {
8259
- font-family: var(--text-label-md-bold-fontFamily);
8260
- font-weight: var(--text-label-md-bold-fontWeight);
8261
- font-size: var(--text-label-md-bold-fontSize);
8262
- line-height: var(--text-label-md-bold-lineHeight);
8263
- color: var(--color-text-default-default);
8264
- }
8265
-
8266
- /* ─── Small size typography ───────────────────────────── */
8267
-
8268
- .muka-price-tag--sm .muka-price-tag__currency {
8269
- font-family: var(--text-body-base-regular-fontFamily);
8270
- font-weight: var(--text-body-base-regular-fontWeight);
8271
- font-size: var(--text-body-base-regular-fontSize);
8272
- line-height: var(--text-label-md-bold-lineHeight);
8273
- color: var(--color-text-subtle-default);
8274
- }
8275
-
8276
- .muka-price-tag--sm .muka-price-tag__whole,
8277
- .muka-price-tag--sm .muka-price-tag__decimal,
8278
- .muka-price-tag--sm .muka-price-tag__cents {
8279
- font-family: var(--text-label-md-bold-fontFamily);
8280
- font-weight: var(--text-label-md-bold-fontWeight);
8281
- font-size: var(--text-label-md-bold-fontSize);
8282
- line-height: var(--text-label-md-bold-lineHeight);
8283
- color: var(--color-text-default-default);
8284
- }
8285
-
8286
- /* ─── Unit label (same for both sizes) ────────────────── */
8287
-
8288
- .muka-price-tag__unit {
8289
- font-family: var(--text-body-sm-regular-fontFamily);
8290
- font-weight: var(--text-body-sm-regular-fontWeight);
8291
- font-size: var(--text-body-sm-regular-fontSize);
8292
- line-height: var(--text-body-sm-regular-lineHeight);
8293
- color: var(--color-text-subtle-default);
8294
- }
8295
-
8296
-
8297
- /* Popover */
8298
- /* Popover Component Styles */
8299
-
8300
- .muka-popover__content {
8301
- background-color: var(--color-surface-level3);
8302
- border: var(--border-width-regular) solid var(--color-border-default);
8303
- border-radius: var(--radius-md);
8304
- padding: var(--spacing-4);
8305
- box-shadow: var(--shadow-level3);
8306
- max-width: 20rem;
8307
- z-index: 50;
8308
- animation: muka-popover-fade-in 150ms ease;
8309
- }
8310
-
8311
- @keyframes muka-popover-fade-in {
8312
- from {
8313
- opacity: 0;
8314
- transform: scale(0.96);
8315
- }
8316
- to {
8317
- opacity: 1;
8318
- transform: scale(1);
8319
- }
8320
- }
8321
-
8322
- /* Arrow */
8323
- .muka-popover__arrow {
8324
- fill: var(--color-surface-level3);
8325
- }
8326
-
8327
-
8328
- /* PlanningGantt */
8329
- /* PlanningGantt (MUK-105) — one week per page, never scrolls horizontally. */
8330
-
8331
- .muka-gantt {
8332
- container-type: inline-size;
8333
- container-name: muka-gantt;
8334
- display: flex;
8335
- flex-direction: column;
8336
- gap: var(--spacing-3);
8337
- color: var(--gantt-bar-text);
8338
- font-family: var(--text-body-sm-regular-fontFamily);
8339
- }
8340
-
8341
- /* Toolbar: today + pager on the left, actions on the right */
8342
- .muka-gantt__toolbar {
8343
- display: flex;
8344
- flex-wrap: wrap;
8345
- align-items: center;
8346
- justify-content: space-between;
8347
- gap: var(--spacing-3);
8348
- }
8349
-
8350
- .muka-gantt__pager {
8351
- display: flex;
8352
- align-items: center;
8353
- gap: var(--spacing-2);
8354
- }
8355
-
8356
- .muka-gantt__pager-group {
8357
- display: flex;
8358
- align-items: center;
8359
- gap: var(--spacing-1);
8407
+ .muka-gantt__pager-group {
8408
+ display: flex;
8409
+ align-items: center;
8410
+ gap: var(--spacing-1);
8360
8411
  }
8361
8412
 
8362
8413
  .muka-gantt__week-label {
@@ -8722,6 +8773,103 @@ button.muka-progress-tracker__tab:focus-visible {
8722
8773
  }
8723
8774
 
8724
8775
 
8776
+ /* PriceTag */
8777
+ /* PriceTag Component Styles - Using Muka Design Tokens */
8778
+
8779
+ .muka-price-tag {
8780
+ display: flex;
8781
+ flex-shrink: 0;
8782
+ }
8783
+
8784
+ /* Medium: stacked layout (price on top, unit below) */
8785
+ .muka-price-tag--md {
8786
+ flex-direction: column;
8787
+ align-items: flex-end;
8788
+ justify-content: center;
8789
+ }
8790
+
8791
+ /* Small: inline layout */
8792
+ .muka-price-tag--sm {
8793
+ flex-direction: row;
8794
+ align-items: center;
8795
+ gap: 3px;
8796
+ }
8797
+
8798
+ /* Amount row: currency + numbers */
8799
+ .muka-price-tag__amount {
8800
+ display: flex;
8801
+ align-items: flex-start;
8802
+ gap: var(--spacing-1);
8803
+ }
8804
+
8805
+ .muka-price-tag--sm .muka-price-tag__amount {
8806
+ align-items: center;
8807
+ }
8808
+
8809
+ /* Numbers group: whole + decimal + cents */
8810
+ .muka-price-tag__numbers {
8811
+ display: flex;
8812
+ align-items: baseline;
8813
+ }
8814
+
8815
+ /* ─── Medium size typography ──────────────────────────── */
8816
+
8817
+ .muka-price-tag--md .muka-price-tag__currency {
8818
+ font-family: var(--text-subheading-md-fontFamily);
8819
+ font-weight: var(--text-subheading-md-fontWeight);
8820
+ font-size: var(--text-subheading-md-fontSize);
8821
+ line-height: var(--text-label-2xl-bold-lineHeight);
8822
+ color: var(--color-text-subtle-default);
8823
+ }
8824
+
8825
+ .muka-price-tag--md .muka-price-tag__whole {
8826
+ font-family: var(--text-label-2xl-bold-fontFamily);
8827
+ font-weight: var(--text-label-2xl-bold-fontWeight);
8828
+ font-size: var(--text-label-2xl-bold-fontSize);
8829
+ line-height: var(--text-label-2xl-bold-lineHeight);
8830
+ color: var(--color-text-default-default);
8831
+ }
8832
+
8833
+ .muka-price-tag--md .muka-price-tag__decimal,
8834
+ .muka-price-tag--md .muka-price-tag__cents {
8835
+ font-family: var(--text-label-md-bold-fontFamily);
8836
+ font-weight: var(--text-label-md-bold-fontWeight);
8837
+ font-size: var(--text-label-md-bold-fontSize);
8838
+ line-height: var(--text-label-md-bold-lineHeight);
8839
+ color: var(--color-text-default-default);
8840
+ }
8841
+
8842
+ /* ─── Small size typography ───────────────────────────── */
8843
+
8844
+ .muka-price-tag--sm .muka-price-tag__currency {
8845
+ font-family: var(--text-body-base-regular-fontFamily);
8846
+ font-weight: var(--text-body-base-regular-fontWeight);
8847
+ font-size: var(--text-body-base-regular-fontSize);
8848
+ line-height: var(--text-label-md-bold-lineHeight);
8849
+ color: var(--color-text-subtle-default);
8850
+ }
8851
+
8852
+ .muka-price-tag--sm .muka-price-tag__whole,
8853
+ .muka-price-tag--sm .muka-price-tag__decimal,
8854
+ .muka-price-tag--sm .muka-price-tag__cents {
8855
+ font-family: var(--text-label-md-bold-fontFamily);
8856
+ font-weight: var(--text-label-md-bold-fontWeight);
8857
+ font-size: var(--text-label-md-bold-fontSize);
8858
+ line-height: var(--text-label-md-bold-lineHeight);
8859
+ color: var(--color-text-default-default);
8860
+ }
8861
+
8862
+ /* ─── Unit label (same for both sizes) ────────────────── */
8863
+
8864
+ .muka-price-tag__unit {
8865
+ font-family: var(--text-body-sm-regular-fontFamily);
8866
+ font-weight: var(--text-body-sm-regular-fontWeight);
8867
+ font-size: var(--text-body-sm-regular-fontSize);
8868
+ line-height: var(--text-body-sm-regular-lineHeight);
8869
+ color: var(--color-text-subtle-default);
8870
+ }
8871
+
8872
+
8725
8873
  /* PieChart */
8726
8874
  /* PieChart Component Styles - Using Muka Design Tokens */
8727
8875
 
@@ -8896,6 +9044,27 @@ button.muka-progress-tracker__tab:focus-visible {
8896
9044
  color: var(--color-text-default-default);
8897
9045
  }
8898
9046
 
9047
+ /*
9048
+ * Touch devices (phones, tablets without a mouse) have nothing to drag a file
9049
+ * from: the card and its "or drop here" hint go, and only the button stays.
9050
+ * Keyed on input capability, not width, so a narrow desktop window keeps
9051
+ * its drop zone.
9052
+ */
9053
+ @media (hover: none) and (pointer: coarse) {
9054
+ .muka-photo-uploader__dropzone {
9055
+ align-items: flex-start;
9056
+ padding: 0;
9057
+ background-color: transparent;
9058
+ border: none;
9059
+ border-radius: 0;
9060
+ cursor: default;
9061
+ }
9062
+
9063
+ .muka-photo-uploader__dropzone-text {
9064
+ display: none;
9065
+ }
9066
+ }
9067
+
8899
9068
  /* ─── Disabled ────────────────────────────────────────── */
8900
9069
  .muka-photo-uploader--disabled .muka-photo-uploader__dropzone {
8901
9070
  cursor: not-allowed;
@@ -9701,6 +9870,39 @@ button.muka-progress-tracker__tab:focus-visible {
9701
9870
  }
9702
9871
  }
9703
9872
 
9873
+ /* ─── Items with an icon: compact ListItem rows ──────────────────────────── */
9874
+
9875
+ /*
9876
+ * A menu whose items carry an icon uses the compact ListItem layout (Figma
9877
+ * ListItem × Padding=Compact, the Bouwplan account menu): a 12px inset on the
9878
+ * list, rows with an 8px inset, a 32px icon slot holding a 20px icon, 12px
9879
+ * between icon and label. The icon takes
9880
+ * the menu's icon colour, so an `<Icon>` passed in doesn't need a colour or
9881
+ * a size of its own. Menus without icons keep their tighter rows.
9882
+ */
9883
+ .muka-menu__viewport:has(.muka-menu__item-icon) {
9884
+ padding: var(--spacing-3);
9885
+ }
9886
+
9887
+ .muka-menu__item:has(> .muka-menu__item-icon) {
9888
+ gap: var(--spacing-3);
9889
+ padding-top: var(--spacing-2);
9890
+ padding-bottom: var(--spacing-2);
9891
+ padding-left: var(--spacing-2);
9892
+ }
9893
+
9894
+ .muka-menu__item-icon {
9895
+ min-width: var(--size-2xl);
9896
+ min-height: var(--size-2xl);
9897
+ }
9898
+
9899
+ .muka-menu__item-icon > .muka-icon,
9900
+ .muka-menu__item-icon > svg {
9901
+ width: var(--icon-size-sm);
9902
+ height: var(--icon-size-sm);
9903
+ color: inherit;
9904
+ }
9905
+
9704
9906
 
9705
9907
  /* MediaViewer */
9706
9908
  /* MediaViewer Component Styles - Using Muka Design Tokens */
@@ -14554,724 +14756,383 @@ button.muka-chat-photo-grid__tile:focus-visible {
14554
14756
  }
14555
14757
 
14556
14758
 
14557
- /* ChatMessage */
14558
- /* ChatMessage Component Styles */
14759
+ /* ChatEvent */
14760
+ /* ChatEvent: a line in a chat that isn't a message from a person */
14559
14761
 
14560
- .muka-chat-message {
14762
+ .muka-chat-event {
14561
14763
  display: flex;
14562
14764
  flex-direction: column;
14765
+ align-items: center;
14766
+ gap: var(--spacing-2);
14563
14767
  width: 100%;
14564
- max-width: 100%;
14768
+ padding: 0 var(--spacing-4);
14769
+ box-sizing: border-box;
14770
+ text-align: center;
14565
14771
  }
14566
14772
 
14567
- /* ─── Row: avatar rail + bubble ────────────────────────── */
14568
-
14569
- .muka-chat-message__row {
14570
- display: grid;
14571
- grid-template-columns: minmax(0, 1fr);
14572
- grid-template-areas: 'bubble';
14573
- column-gap: var(--chatbubble-row-gap);
14574
- width: 100%;
14773
+ .muka-chat-event__text {
14774
+ margin: 0;
14775
+ max-width: var(--chatbubble-max-width);
14776
+ /* Default text, not subtle: subtle reaches only ~3:1 on the chat surfaces,
14777
+ and this is body text. Size and centring set it apart from messages. */
14778
+ color: var(--color-text-default-default);
14779
+ font-family: var(--text-body-sm-regular-fontFamily);
14780
+ font-weight: var(--text-body-sm-regular-fontWeight);
14781
+ font-size: var(--text-body-sm-regular-fontSize);
14782
+ line-height: var(--text-body-sm-regular-lineHeight);
14575
14783
  }
14576
14784
 
14577
- .muka-chat-message--has-avatar .muka-chat-message__row {
14578
- grid-template-columns: auto minmax(0, 1fr);
14579
- grid-template-areas: 'rail bubble';
14785
+ .muka-chat-event__timestamp {
14786
+ white-space: nowrap;
14580
14787
  }
14581
14788
 
14582
- .muka-chat-message__rail {
14583
- grid-area: rail;
14584
- /* Sits on the bubble's baseline (Figma 5355:44091) */
14585
- align-self: end;
14789
+ .muka-chat-event__media {
14586
14790
  display: flex;
14791
+ flex-wrap: wrap;
14587
14792
  justify-content: center;
14588
- min-width: var(--chatbubble-avatar-size);
14793
+ gap: var(--spacing-2);
14589
14794
  }
14590
14795
 
14591
- /*
14592
- * The Small size in Figma (5373:44702) halves the avatar to 32px and tightens
14593
- * the gap to the bubble. Size the avatar itself, not just the rail, so the
14594
- * bubbles keep their alignment. The header row keeps its own gap.
14595
- */
14596
- @media (max-width: 1023px) {
14597
- .muka-chat-message__row {
14598
- column-gap: var(--chatbubble-row-gap-compact);
14599
- }
14600
-
14601
- .muka-chat-message__rail {
14602
- min-width: var(--chatbubble-avatar-size-compact);
14603
- }
14604
-
14605
- /* Outweighs the avatar's own size class, which sets width/height directly */
14606
- .muka-chat-message .muka-chat-message__rail > * {
14607
- width: var(--chatbubble-avatar-size-compact);
14608
- height: var(--chatbubble-avatar-size-compact);
14609
- }
14796
+ /* Day divider: a small pill */
14797
+ .muka-chat-event__pill {
14798
+ display: inline-flex;
14799
+ align-items: center;
14800
+ padding: var(--spacing-1) var(--spacing-3);
14801
+ border-radius: var(--radius-full);
14802
+ background-color: var(--color-surface-level2);
14803
+ color: var(--color-text-default-default);
14804
+ font-family: var(--text-label-sm-regular-fontFamily);
14805
+ font-weight: var(--text-label-sm-regular-fontWeight);
14806
+ font-size: var(--text-label-sm-regular-fontSize);
14807
+ line-height: var(--text-label-sm-leading);
14610
14808
  }
14611
14809
 
14612
- /* ─── Bubble surface ───────────────────────────────────── */
14613
14810
 
14614
- .muka-chat-message__bubble {
14615
- grid-area: bubble;
14616
- /*
14617
- * Width follows the content: a single line hugs, and once the text wraps the
14618
- * bubble fills to the shared max width. Robust to string or rich children —
14619
- * no length measuring needed (Figma `Text length` on 5355:44091).
14620
- */
14621
- width: fit-content;
14622
- /*
14623
- * Ceiling from design (Figma 5355:44091). Below it, wrapping text fills the
14624
- * row; above it the fixed cap leaves room for own/peer alignment.
14625
- */
14626
- max-width: var(--chatbubble-max-width);
14627
- position: relative;
14811
+ /* ChatComposer */
14812
+ /* ChatComposer Component Styles */
14813
+
14814
+ /*
14815
+ * The composer is a bare, fill-width row: no padding, background, border or
14816
+ * max-width of its own (Figma 5243:14141). Whatever hosts it owns the
14817
+ * container — see BottomBar's `chat` variant.
14818
+ */
14819
+ .muka-chat-composer {
14628
14820
  display: flex;
14629
14821
  flex-direction: column;
14630
- gap: var(--chatbubble-gap);
14631
- padding: var(--chatbubble-padding-block) var(--chatbubble-padding-inline);
14632
- border-radius: var(--chatbubble-radius);
14633
- border: var(--border-width-regular) solid transparent;
14634
- box-shadow: var(--shadow-level2);
14635
- word-break: break-word;
14636
- }
14637
-
14638
- /* Media, an embed or an action stack always run the full bubble width. */
14639
- .muka-chat-message--has-blocks .muka-chat-message__bubble {
14822
+ gap: var(--spacing-3);
14640
14823
  width: 100%;
14641
14824
  }
14642
14825
 
14643
- .muka-chat-message--own .muka-chat-message__bubble {
14644
- justify-self: end;
14826
+ .muka-chat-composer--disabled {
14827
+ opacity: 0.6;
14828
+ pointer-events: none;
14645
14829
  }
14646
14830
 
14647
- .muka-chat-message--own .muka-chat-message__bubble {
14648
- background-color: var(--chatbubble-color-own-background);
14649
- border-color: var(--chatbubble-color-own-border);
14650
- color: var(--chatbubble-color-own-foreground);
14651
- }
14831
+ /* ─── Input row (default layout) ───────────────────────── */
14652
14832
 
14653
- .muka-chat-message--peer .muka-chat-message__bubble {
14654
- background-color: var(--chatbubble-color-peer-background);
14655
- border-color: var(--chatbubble-color-peer-border);
14656
- color: var(--chatbubble-color-peer-foreground);
14833
+ .muka-chat-composer__row {
14834
+ display: flex;
14835
+ width: 100%;
14836
+ align-items: flex-end;
14837
+ gap: var(--spacing-3);
14657
14838
  }
14658
14839
 
14659
- .muka-chat-message--agent .muka-chat-message__bubble {
14660
- background-color: var(--chatbubble-color-agent-background);
14661
- border-color: var(--chatbubble-color-agent-border);
14662
- color: var(--chatbubble-color-agent-foreground);
14840
+ /*
14841
+ * Buttons beside the field keep their square size (`.muka-button--icon-only`
14842
+ * width). Only the field or recording bar flexes, so a wide waveform or a
14843
+ * long text can never squeeze them.
14844
+ */
14845
+ .muka-chat-composer__row > .muka-button,
14846
+ .muka-chat-composer__options-input > .muka-button {
14847
+ flex-shrink: 0;
14663
14848
  }
14664
14849
 
14665
- /* ─── Header row (author · meta · time · badge) ────────── */
14850
+ /* ─── Text field ───────────────────────────────────────── */
14666
14851
 
14667
- .muka-chat-message__header {
14852
+ .muka-chat-composer__field {
14668
14853
  display: flex;
14669
- flex-flow: row wrap;
14854
+ flex: 1 1 auto;
14855
+ min-width: 0;
14856
+ box-sizing: border-box;
14670
14857
  align-items: center;
14671
- gap: var(--chatbubble-row-gap);
14858
+ gap: var(--spacing-1);
14859
+ min-height: var(--input-field-height-lg, 48px);
14860
+ padding: 0 var(--spacing-2);
14861
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
14862
+ border-radius: var(--input-field-radius-lg);
14863
+ background-color: var(--input-field-color-default-background);
14864
+ transition: border-color 0.12s ease;
14672
14865
  }
14673
14866
 
14674
- .muka-chat-message__author {
14675
- font-family: var(--text-body-base-bold-fontFamily);
14676
- font-weight: var(--text-body-base-bold-fontWeight);
14677
- font-size: var(--text-body-base-bold-fontSize);
14678
- line-height: var(--text-body-base-bold-lineHeight);
14867
+ .muka-chat-composer--options .muka-chat-composer__field {
14868
+ flex: 1 1 auto;
14869
+ width: auto;
14679
14870
  }
14680
14871
 
14681
- .muka-chat-message__author-meta {
14682
- /* Inherits the variant's body colour from the bubble */
14683
- color: inherit;
14872
+ /* Options input row: text field + mic / send beside it */
14873
+ .muka-chat-composer__options-input {
14874
+ display: flex;
14875
+ align-items: flex-end;
14876
+ gap: var(--spacing-3);
14877
+ width: 100%;
14878
+ }
14879
+
14880
+ .muka-chat-composer__field:focus-within {
14881
+ border-color: var(--input-field-color-focus-border, var(--color-action-default));
14882
+ }
14883
+
14884
+ .muka-chat-composer__input {
14885
+ flex: 1 1 auto;
14886
+ min-width: 0;
14887
+ width: 100%;
14888
+ box-sizing: border-box;
14889
+ resize: none;
14890
+ border: none;
14891
+ background: transparent;
14892
+ outline: none;
14893
+ padding: 0 var(--spacing-1);
14894
+ color: var(--color-text-default-default);
14684
14895
  font-family: var(--text-body-base-regular-fontFamily);
14685
14896
  font-weight: var(--text-body-base-regular-fontWeight);
14686
14897
  font-size: var(--text-body-base-regular-fontSize);
14687
14898
  line-height: var(--text-body-base-regular-lineHeight);
14899
+ appearance: none;
14900
+ -webkit-appearance: none;
14688
14901
  }
14689
14902
 
14690
- .muka-chat-message__badge {
14691
- display: inline-flex;
14692
- align-items: center;
14903
+ .muka-chat-composer__input::placeholder {
14904
+ color: var(--color-text-subtle-default);
14693
14905
  }
14694
14906
 
14695
- /*
14696
- * Keep the first line of content clear of the absolutely positioned menu
14697
- * button in the bubble's top-right corner.
14698
- */
14699
- .muka-chat-message--has-menu .muka-chat-message__header,
14700
- .muka-chat-message--has-menu.muka-chat-message--no-header .muka-chat-message__message {
14701
- padding-right: var(--spacing-10);
14907
+ /* Transcribing: the field is back but inert (Input disabled tokens). */
14908
+ .muka-chat-composer__field--disabled {
14909
+ border-color: var(--input-field-color-disabled-border);
14910
+ background-color: var(--input-field-color-disabled-background);
14702
14911
  }
14703
14912
 
14704
- /* …and the last line clear of the inset timestamp in the bottom-right corner */
14705
- .muka-chat-message--has-timestamp .muka-chat-message__message {
14706
- padding-right: var(--spacing-10);
14913
+ .muka-chat-composer__field--disabled .muka-chat-composer__input::placeholder {
14914
+ color: var(--input-field-color-disabled-foreground);
14707
14915
  }
14708
14916
 
14709
- /* ─── Body ─────────────────────────────────────────────── */
14917
+ /* Keep the in-field emoji button flush to the bottom-right as the field grows */
14918
+ .muka-chat-composer__emoji {
14919
+ flex-shrink: 0;
14920
+ }
14710
14921
 
14711
- .muka-chat-message__body {
14922
+ /* Touch devices have emoji on their keyboard: no button there, unless the app
14923
+ keeps it with `emojiOnTouch`. */
14924
+ @media (pointer: coarse) {
14925
+ .muka-chat-composer__emoji:not(.muka-chat-composer__emoji--on-touch) {
14926
+ display: none;
14927
+ }
14928
+ }
14929
+
14930
+ /* ─── Recording bar ────────────────────────────────────── */
14931
+
14932
+ .muka-chat-composer__recording {
14712
14933
  display: flex;
14713
- flex-direction: column;
14714
- gap: var(--chatbubble-gap);
14934
+ flex: 1 1 auto;
14715
14935
  min-width: 0;
14936
+ box-sizing: border-box;
14937
+ align-items: center;
14938
+ min-height: var(--input-field-height-lg, 48px);
14939
+ padding: var(--card-padding-sm);
14940
+ border: var(--border-width-regular) solid var(--card-color-default-border);
14941
+ border-radius: var(--radius-lg);
14942
+ background-color: var(--card-color-default-background);
14943
+ /* A waveform wider than the space left is clipped, never laid over pause. */
14944
+ overflow: hidden;
14716
14945
  }
14717
14946
 
14718
- .muka-chat-message__media {
14719
- min-width: 0;
14947
+ /* ─── Staged attachments strip ─────────────────────────── */
14948
+
14949
+ .muka-chat-composer__attachments-strip {
14950
+ position: relative;
14951
+ width: 100%;
14720
14952
  }
14721
14953
 
14722
- .muka-chat-message__message {
14723
- font-family: var(--text-body-base-regular-fontFamily);
14724
- font-weight: var(--text-body-base-regular-fontWeight);
14725
- font-size: var(--text-body-base-regular-fontSize);
14726
- line-height: var(--text-body-base-regular-lineHeight);
14727
- white-space: pre-wrap;
14728
- word-break: break-word;
14954
+ .muka-chat-composer__attachments {
14955
+ display: flex;
14956
+ gap: var(--spacing-3);
14957
+ overflow-x: auto;
14958
+ scroll-behavior: smooth;
14959
+ scrollbar-width: none;
14729
14960
  }
14730
14961
 
14731
- /* Empty message block should not add a gap of its own */
14732
- .muka-chat-message__message:empty {
14962
+ .muka-chat-composer__attachments::-webkit-scrollbar {
14733
14963
  display: none;
14734
14964
  }
14735
14965
 
14736
- /* ─── Embedded card ────────────────────────────────────── */
14737
-
14738
- .muka-chat-message__embed {
14739
- position: relative;
14740
- display: flex;
14741
- flex-direction: column;
14742
- gap: var(--chatbubble-embed-gap);
14743
- /* The card is inset from the blocks above and below it (Figma 5289:40562) */
14744
- margin-block: var(--chatbubble-embed-margin-block);
14745
- padding: var(--chatbubble-embed-padding-block) var(--chatbubble-embed-padding-inline);
14746
- border-radius: var(--chatbubble-embed-radius);
14747
- border: var(--border-width-regular) solid transparent;
14966
+ .muka-chat-composer__overflow {
14967
+ position: absolute;
14968
+ top: 50%;
14969
+ right: var(--spacing-2);
14970
+ transform: translateY(-50%);
14748
14971
  }
14749
14972
 
14750
- /*
14751
- * The embed sits on the raised surface of its author's role, one step apart
14752
- * from the bubble it is nested in, and reuses that role's border colour.
14753
- */
14754
- .muka-chat-message--own .muka-chat-message__embed {
14755
- background-color: var(--chatbubble-embed-color-own-background);
14756
- border-color: var(--chatbubble-embed-color-own-border);
14757
- color: var(--chatbubble-embed-color-own-foreground);
14758
- }
14973
+ /* ─── Options mode (Figma State=Options / State7 / State8) ─ */
14759
14974
 
14760
- .muka-chat-message--peer .muka-chat-message__embed {
14761
- background-color: var(--chatbubble-embed-color-peer-background);
14762
- border-color: var(--chatbubble-embed-color-peer-border);
14763
- color: var(--chatbubble-embed-color-peer-foreground);
14975
+ .muka-chat-composer__prompt {
14976
+ display: flex;
14977
+ align-items: flex-start;
14978
+ gap: var(--spacing-3);
14979
+ width: 100%;
14764
14980
  }
14765
14981
 
14766
- .muka-chat-message--agent .muka-chat-message__embed {
14767
- background-color: var(--chatbubble-embed-color-agent-background);
14768
- border-color: var(--chatbubble-embed-color-agent-border);
14769
- color: var(--chatbubble-embed-color-agent-foreground);
14982
+ .muka-chat-composer__prompt-step {
14983
+ flex-shrink: 0;
14770
14984
  }
14771
14985
 
14772
- .muka-chat-message__embed-content {
14986
+ .muka-chat-composer__prompt-text {
14773
14987
  display: flex;
14774
14988
  flex-direction: column;
14775
- gap: var(--chatbubble-embed-gap);
14989
+ gap: var(--spacing-1);
14776
14990
  min-width: 0;
14991
+ flex: 1 1 auto;
14777
14992
  }
14778
14993
 
14779
- .muka-chat-message__embed-copy {
14780
- position: absolute;
14781
- top: var(--chatbubble-embed-padding-block);
14782
- right: var(--chatbubble-embed-padding-inline);
14994
+ .muka-chat-composer__prompt-heading {
14995
+ color: var(--color-text-default-default);
14996
+ font-family: var(--text-heading-sm-fontFamily);
14997
+ font-weight: var(--text-heading-sm-fontWeight);
14998
+ font-size: var(--text-heading-sm-fontSize);
14999
+ line-height: var(--text-heading-sm-lineHeight);
14783
15000
  }
14784
15001
 
14785
- /* ─── Stacked full-width action buttons ────────────────── */
14786
-
14787
- .muka-chat-message__action-stack {
14788
- display: flex;
14789
- flex-direction: column;
14790
- gap: var(--chatbubble-action-stack-gap);
15002
+ .muka-chat-composer__prompt-description {
15003
+ color: var(--color-text-subtle-default);
15004
+ font-family: var(--text-body-base-regular-fontFamily);
15005
+ font-weight: var(--text-body-base-regular-fontWeight);
15006
+ font-size: var(--text-body-base-regular-fontSize);
15007
+ line-height: var(--text-body-base-regular-lineHeight);
14791
15008
  }
14792
15009
 
14793
- /* ─── Inset timestamp ──────────────────────────────────── */
15010
+ .muka-chat-composer__choices {
15011
+ width: 100%;
15012
+ }
14794
15013
 
14795
15014
  /*
14796
- * Every author puts its timestamp in the bubble's bottom-right corner, below
14797
- * the message — never in the header row (Figma 5355:44091).
15015
+ * Many choices (a phone with seven options) would push the field and the step
15016
+ * footer off screen. The card gets a height limit and scrolls on its own, so
15017
+ * the prompt, the field and the footer stay in view.
14798
15018
  */
14799
-
14800
- .muka-chat-message__timestamp {
14801
- color: var(--chatbubble-color-timestamp);
14802
- font-family: var(--text-body-xs-regular-fontFamily);
14803
- font-weight: var(--text-body-xs-regular-fontWeight);
14804
- font-size: var(--text-body-xs-regular-fontSize);
14805
- line-height: var(--text-body-xs-regular-lineHeight);
14806
- white-space: nowrap;
15019
+ .muka-chat-composer__choices-card {
15020
+ width: 100%;
15021
+ max-height: 45dvh;
15022
+ overflow-x: hidden;
15023
+ overflow-y: auto;
15024
+ overscroll-behavior: contain;
14807
15025
  }
14808
15026
 
14809
- /*
14810
- * Pinned to the corner rather than stacked below the message, so a one-line
14811
- * message stays one line tall. The message reserves the width it needs.
14812
- */
14813
- .muka-chat-message__timestamp--inset {
14814
- position: absolute;
14815
- right: var(--spacing-2);
14816
- bottom: var(--spacing-1);
15027
+ /* A choice is one short line, not a navigation row: compact padding. */
15028
+ .muka-chat-composer__choice.muka-listitem {
15029
+ align-items: center;
15030
+ padding-block: var(--spacing-3);
14817
15031
  }
14818
15032
 
14819
- /*
14820
- * When the last block in the body is media, an embed or an action stack (not
14821
- * trailing text), it runs the full width, so reserve a line below for the inset
14822
- * timestamp. A message that ends in text clears the corner inline instead (see
14823
- * `__message` padding-right above), so it needs no extra bottom space.
14824
- */
14825
- .muka-chat-message--has-timestamp.muka-chat-message--trailing-block .muka-chat-message__body {
14826
- padding-bottom: var(--text-body-xs-regular-lineHeight);
15033
+ /* Choice rows: the ListItem is the interactive control; the Radio/Checkbox is
15034
+ decorative for AT (aria-hidden) and sits in the leading slot. */
15035
+ .muka-chat-composer__choice-control {
15036
+ display: inline-flex;
15037
+ align-items: center;
15038
+ pointer-events: none;
14827
15039
  }
14828
15040
 
14829
- /* ─── Menu affordance ──────────────────────────────────── */
15041
+ .muka-chat-composer__choice-control .muka-radio,
15042
+ .muka-chat-composer__choice-control .muka-checkbox {
15043
+ pointer-events: none;
15044
+ }
14830
15045
 
14831
15046
  /*
14832
- * Hidden at rest. Revealed on hover on pointer devices, on keyboard focus
14833
- * everywhere, and pinned while its menu is open. On touch the equivalent
14834
- * affordance is a long-press on the bubble, which opens an ActionSheet.
15047
+ * Multi-step footer (Figma Canned responses). Previous (muted) | centered
15048
+ * progress | Next/Send (muted when not ready, primary when ready — never
15049
+ * disabled for unreadiness).
14835
15050
  */
14836
- .muka-chat-message__menu {
14837
- position: absolute;
14838
- top: var(--spacing-1);
14839
- right: var(--spacing-1);
14840
- opacity: 0;
14841
- pointer-events: none;
15051
+ .muka-chat-composer__footer {
15052
+ position: relative;
15053
+ display: flex;
15054
+ align-items: center;
15055
+ justify-content: space-between;
15056
+ gap: var(--spacing-2);
15057
+ width: 100%;
15058
+ min-height: var(--input-field-height-lg, 48px);
14842
15059
  }
14843
15060
 
14844
- .muka-chat-message__menu:focus-within,
14845
- .muka-chat-message--menu-open .muka-chat-message__menu {
14846
- opacity: 1;
14847
- pointer-events: auto;
15061
+ .muka-chat-composer__footer-spacer {
15062
+ display: inline-block;
15063
+ /* Approximate width of a Previous button so Next stays right-aligned when
15064
+ there is no back control (step 1 of N). */
15065
+ min-width: 7rem;
15066
+ flex-shrink: 0;
14848
15067
  }
14849
15068
 
14850
- @media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
14851
- .muka-chat-message__bubble:hover .muka-chat-message__menu {
14852
- opacity: 1;
14853
- pointer-events: auto;
14854
- }
15069
+ .muka-chat-composer__footer-back {
15070
+ flex-shrink: 0;
15071
+ z-index: 1;
14855
15072
  }
14856
15073
 
14857
- /* Suppress iOS Safari's own callout so the long-press sheet can take over */
14858
- @media (pointer: coarse) {
14859
- .muka-chat-message--has-menu .muka-chat-message__bubble {
14860
- -webkit-touch-callout: none;
14861
- }
15074
+ .muka-chat-composer__footer-action {
15075
+ flex-shrink: 0;
15076
+ margin-left: auto;
15077
+ z-index: 1;
15078
+ }
15079
+
15080
+ .muka-chat-composer__progress {
15081
+ position: absolute;
15082
+ left: 50%;
15083
+ top: 50%;
15084
+ transform: translate(-50%, -50%);
15085
+ color: var(--color-text-subtle-default);
15086
+ font-family: var(--text-label-lg-regular-fontFamily, var(--text-body-base-regular-fontFamily));
15087
+ font-weight: var(--text-label-lg-regular-fontWeight, var(--text-body-base-regular-fontWeight));
15088
+ font-size: var(--text-label-lg-regular-fontSize, var(--text-body-base-regular-fontSize));
15089
+ line-height: var(--text-label-lg-regular-lineHeight, var(--text-body-base-regular-lineHeight));
15090
+ white-space: nowrap;
15091
+ pointer-events: none;
14862
15092
  }
14863
15093
 
14864
15094
  /* ─── Print ────────────────────────────────────────────── */
14865
15095
 
14866
15096
  @media print {
14867
- .muka-chat-message__bubble {
14868
- box-shadow: none;
14869
- break-inside: avoid;
14870
- print-color-adjust: exact;
14871
- -webkit-print-color-adjust: exact;
14872
- }
14873
-
14874
- .muka-chat-message__embed {
14875
- break-inside: avoid;
14876
- print-color-adjust: exact;
14877
- -webkit-print-color-adjust: exact;
14878
- }
14879
-
14880
- .muka-chat-message__menu,
14881
- .muka-chat-message__embed-copy,
14882
- .muka-chat-message__action-stack {
15097
+ .muka-chat-composer {
14883
15098
  display: none;
14884
15099
  }
14885
15100
  }
14886
15101
 
14887
- /* ─── Muted (a message from another context) ──────────────
14888
- * The bubble drops its fill and keeps a hairline, so it recedes next to the
14889
- * current conversation; the text keeps full contrast. */
14890
15102
 
14891
- .muka-chat-message--muted .muka-chat-message__bubble {
14892
- background-color: transparent;
14893
- border-color: var(--chatbubble-color-peer-border);
14894
- color: var(--color-text-default-default);
15103
+ /* ChatChoiceCard */
15104
+ /* ChatChoiceCard — compact option rows (experimental) */
15105
+ .muka-chat-choice__list {
15106
+ display: flex;
15107
+ flex-direction: column;
15108
+ gap: var(--spacing-2);
14895
15109
  }
14896
15110
 
14897
-
14898
- /* ChatEvent */
14899
- /* ChatEvent: a line in a chat that isn't a message from a person */
14900
-
14901
- .muka-chat-event {
15111
+ .muka-chat-choice__row {
14902
15112
  display: flex;
14903
- flex-direction: column;
14904
15113
  align-items: center;
15114
+ min-height: var(--spacing-8);
15115
+ min-width: 0;
15116
+ }
15117
+
15118
+ .muka-chat-choice__row--other {
14905
15119
  gap: var(--spacing-2);
14906
- width: 100%;
14907
- padding: 0 var(--spacing-4);
14908
- box-sizing: border-box;
14909
- text-align: center;
14910
15120
  }
14911
15121
 
14912
- .muka-chat-event__text {
14913
- margin: 0;
14914
- max-width: var(--chatbubble-max-width);
14915
- /* Default text, not subtle: subtle reaches only ~3:1 on the chat surfaces,
14916
- and this is body text. Size and centring set it apart from messages. */
14917
- color: var(--color-text-default-default);
14918
- font-family: var(--text-body-sm-regular-fontFamily);
14919
- font-weight: var(--text-body-sm-regular-fontWeight);
14920
- font-size: var(--text-body-sm-regular-fontSize);
14921
- line-height: var(--text-body-sm-regular-lineHeight);
15122
+ /* The free-text option: the control, then the field filling the row. */
15123
+ .muka-chat-choice__row--other {
15124
+ flex-wrap: nowrap;
14922
15125
  }
14923
15126
 
14924
- .muka-chat-event__timestamp {
14925
- white-space: nowrap;
15127
+ .muka-chat-choice__row--other > .muka-radio,
15128
+ .muka-chat-choice__row--other > .muka-checkbox {
15129
+ flex: 0 0 auto;
14926
15130
  }
14927
15131
 
14928
- .muka-chat-event__media {
14929
- display: flex;
14930
- flex-wrap: wrap;
14931
- justify-content: center;
14932
- gap: var(--spacing-2);
14933
- }
14934
-
14935
- /* Day divider: a small pill */
14936
- .muka-chat-event__pill {
14937
- display: inline-flex;
14938
- align-items: center;
14939
- padding: var(--spacing-1) var(--spacing-3);
14940
- border-radius: var(--radius-full);
14941
- background-color: var(--color-surface-level2);
14942
- color: var(--color-text-default-default);
14943
- font-family: var(--text-label-sm-regular-fontFamily);
14944
- font-weight: var(--text-label-sm-regular-fontWeight);
14945
- font-size: var(--text-label-sm-regular-fontSize);
14946
- line-height: var(--text-label-sm-leading);
14947
- }
14948
-
14949
-
14950
- /* ChatComposer */
14951
- /* ChatComposer Component Styles */
14952
-
14953
- /*
14954
- * The composer is a bare, fill-width row: no padding, background, border or
14955
- * max-width of its own (Figma 5243:14141). Whatever hosts it owns the
14956
- * container — see BottomBar's `chat` variant.
14957
- */
14958
- .muka-chat-composer {
14959
- display: flex;
14960
- flex-direction: column;
14961
- gap: var(--spacing-3);
14962
- width: 100%;
14963
- }
14964
-
14965
- .muka-chat-composer--disabled {
14966
- opacity: 0.6;
14967
- pointer-events: none;
14968
- }
14969
-
14970
- /* ─── Input row (default layout) ───────────────────────── */
14971
-
14972
- .muka-chat-composer__row {
14973
- display: flex;
14974
- width: 100%;
14975
- align-items: flex-end;
14976
- gap: var(--spacing-3);
14977
- }
14978
-
14979
- /*
14980
- * Buttons beside the field keep their square size (`.muka-button--icon-only`
14981
- * width). Only the field or recording bar flexes, so a wide waveform or a
14982
- * long text can never squeeze them.
14983
- */
14984
- .muka-chat-composer__row > .muka-button,
14985
- .muka-chat-composer__options-input > .muka-button {
14986
- flex-shrink: 0;
14987
- }
14988
-
14989
- /* ─── Text field ───────────────────────────────────────── */
14990
-
14991
- .muka-chat-composer__field {
14992
- display: flex;
14993
- flex: 1 1 auto;
14994
- min-width: 0;
14995
- box-sizing: border-box;
14996
- align-items: center;
14997
- gap: var(--spacing-1);
14998
- min-height: var(--input-field-height-lg, 48px);
14999
- padding: 0 var(--spacing-2);
15000
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
15001
- border-radius: var(--input-field-radius-lg);
15002
- background-color: var(--input-field-color-default-background);
15003
- transition: border-color 0.12s ease;
15004
- }
15005
-
15006
- .muka-chat-composer--options .muka-chat-composer__field {
15007
- flex: 1 1 auto;
15008
- width: auto;
15009
- }
15010
-
15011
- /* Options input row: text field + mic / send beside it */
15012
- .muka-chat-composer__options-input {
15013
- display: flex;
15014
- align-items: flex-end;
15015
- gap: var(--spacing-3);
15016
- width: 100%;
15017
- }
15018
-
15019
- .muka-chat-composer__field:focus-within {
15020
- border-color: var(--input-field-color-focus-border, var(--color-action-default));
15021
- }
15022
-
15023
- .muka-chat-composer__input {
15024
- flex: 1 1 auto;
15025
- min-width: 0;
15026
- width: 100%;
15027
- box-sizing: border-box;
15028
- resize: none;
15029
- border: none;
15030
- background: transparent;
15031
- outline: none;
15032
- padding: 0 var(--spacing-1);
15033
- color: var(--color-text-default-default);
15034
- font-family: var(--text-body-base-regular-fontFamily);
15035
- font-weight: var(--text-body-base-regular-fontWeight);
15036
- font-size: var(--text-body-base-regular-fontSize);
15037
- line-height: var(--text-body-base-regular-lineHeight);
15038
- appearance: none;
15039
- -webkit-appearance: none;
15040
- }
15041
-
15042
- .muka-chat-composer__input::placeholder {
15043
- color: var(--color-text-subtle-default);
15044
- }
15045
-
15046
- /* Transcribing: the field is back but inert (Input disabled tokens). */
15047
- .muka-chat-composer__field--disabled {
15048
- border-color: var(--input-field-color-disabled-border);
15049
- background-color: var(--input-field-color-disabled-background);
15050
- }
15051
-
15052
- .muka-chat-composer__field--disabled .muka-chat-composer__input::placeholder {
15053
- color: var(--input-field-color-disabled-foreground);
15054
- }
15055
-
15056
- /* Keep the in-field emoji button flush to the bottom-right as the field grows */
15057
- .muka-chat-composer__emoji {
15058
- flex-shrink: 0;
15059
- }
15060
-
15061
- /* Touch devices have emoji on their keyboard: no button there, unless the app
15062
- keeps it with `emojiOnTouch`. */
15063
- @media (pointer: coarse) {
15064
- .muka-chat-composer__emoji:not(.muka-chat-composer__emoji--on-touch) {
15065
- display: none;
15066
- }
15067
- }
15068
-
15069
- /* ─── Recording bar ────────────────────────────────────── */
15070
-
15071
- .muka-chat-composer__recording {
15072
- display: flex;
15073
- flex: 1 1 auto;
15074
- min-width: 0;
15075
- box-sizing: border-box;
15076
- align-items: center;
15077
- min-height: var(--input-field-height-lg, 48px);
15078
- padding: var(--card-padding-sm);
15079
- border: var(--border-width-regular) solid var(--card-color-default-border);
15080
- border-radius: var(--radius-lg);
15081
- background-color: var(--card-color-default-background);
15082
- /* A waveform wider than the space left is clipped, never laid over pause. */
15083
- overflow: hidden;
15084
- }
15085
-
15086
- /* ─── Staged attachments strip ─────────────────────────── */
15087
-
15088
- .muka-chat-composer__attachments-strip {
15089
- position: relative;
15090
- width: 100%;
15091
- }
15092
-
15093
- .muka-chat-composer__attachments {
15094
- display: flex;
15095
- gap: var(--spacing-3);
15096
- overflow-x: auto;
15097
- scroll-behavior: smooth;
15098
- scrollbar-width: none;
15099
- }
15100
-
15101
- .muka-chat-composer__attachments::-webkit-scrollbar {
15102
- display: none;
15103
- }
15104
-
15105
- .muka-chat-composer__overflow {
15106
- position: absolute;
15107
- top: 50%;
15108
- right: var(--spacing-2);
15109
- transform: translateY(-50%);
15110
- }
15111
-
15112
- /* ─── Options mode (Figma State=Options / State7 / State8) ─ */
15113
-
15114
- .muka-chat-composer__prompt {
15115
- display: flex;
15116
- align-items: flex-start;
15117
- gap: var(--spacing-3);
15118
- width: 100%;
15119
- }
15120
-
15121
- .muka-chat-composer__prompt-step {
15122
- flex-shrink: 0;
15123
- }
15124
-
15125
- .muka-chat-composer__prompt-text {
15126
- display: flex;
15127
- flex-direction: column;
15128
- gap: var(--spacing-1);
15129
- min-width: 0;
15130
- flex: 1 1 auto;
15131
- }
15132
-
15133
- .muka-chat-composer__prompt-heading {
15134
- color: var(--color-text-default-default);
15135
- font-family: var(--text-heading-sm-fontFamily);
15136
- font-weight: var(--text-heading-sm-fontWeight);
15137
- font-size: var(--text-heading-sm-fontSize);
15138
- line-height: var(--text-heading-sm-lineHeight);
15139
- }
15140
-
15141
- .muka-chat-composer__prompt-description {
15142
- color: var(--color-text-subtle-default);
15143
- font-family: var(--text-body-base-regular-fontFamily);
15144
- font-weight: var(--text-body-base-regular-fontWeight);
15145
- font-size: var(--text-body-base-regular-fontSize);
15146
- line-height: var(--text-body-base-regular-lineHeight);
15147
- }
15148
-
15149
- .muka-chat-composer__choices {
15150
- width: 100%;
15151
- }
15152
-
15153
- /*
15154
- * Many choices (a phone with seven options) would push the field and the step
15155
- * footer off screen. The card gets a height limit and scrolls on its own, so
15156
- * the prompt, the field and the footer stay in view.
15157
- */
15158
- .muka-chat-composer__choices-card {
15159
- width: 100%;
15160
- max-height: 45dvh;
15161
- overflow-x: hidden;
15162
- overflow-y: auto;
15163
- overscroll-behavior: contain;
15164
- }
15165
-
15166
- /* A choice is one short line, not a navigation row: compact padding. */
15167
- .muka-chat-composer__choice.muka-listitem {
15168
- align-items: center;
15169
- padding-block: var(--spacing-3);
15170
- }
15171
-
15172
- /* Choice rows: the ListItem is the interactive control; the Radio/Checkbox is
15173
- decorative for AT (aria-hidden) and sits in the leading slot. */
15174
- .muka-chat-composer__choice-control {
15175
- display: inline-flex;
15176
- align-items: center;
15177
- pointer-events: none;
15178
- }
15179
-
15180
- .muka-chat-composer__choice-control .muka-radio,
15181
- .muka-chat-composer__choice-control .muka-checkbox {
15182
- pointer-events: none;
15183
- }
15184
-
15185
- /*
15186
- * Multi-step footer (Figma Canned responses). Previous (muted) | centered
15187
- * progress | Next/Send (muted when not ready, primary when ready — never
15188
- * disabled for unreadiness).
15189
- */
15190
- .muka-chat-composer__footer {
15191
- position: relative;
15192
- display: flex;
15193
- align-items: center;
15194
- justify-content: space-between;
15195
- gap: var(--spacing-2);
15196
- width: 100%;
15197
- min-height: var(--input-field-height-lg, 48px);
15198
- }
15199
-
15200
- .muka-chat-composer__footer-spacer {
15201
- display: inline-block;
15202
- /* Approximate width of a Previous button so Next stays right-aligned when
15203
- there is no back control (step 1 of N). */
15204
- min-width: 7rem;
15205
- flex-shrink: 0;
15206
- }
15207
-
15208
- .muka-chat-composer__footer-back {
15209
- flex-shrink: 0;
15210
- z-index: 1;
15211
- }
15212
-
15213
- .muka-chat-composer__footer-action {
15214
- flex-shrink: 0;
15215
- margin-left: auto;
15216
- z-index: 1;
15217
- }
15218
-
15219
- .muka-chat-composer__progress {
15220
- position: absolute;
15221
- left: 50%;
15222
- top: 50%;
15223
- transform: translate(-50%, -50%);
15224
- color: var(--color-text-subtle-default);
15225
- font-family: var(--text-label-lg-regular-fontFamily, var(--text-body-base-regular-fontFamily));
15226
- font-weight: var(--text-label-lg-regular-fontWeight, var(--text-body-base-regular-fontWeight));
15227
- font-size: var(--text-label-lg-regular-fontSize, var(--text-body-base-regular-fontSize));
15228
- line-height: var(--text-label-lg-regular-lineHeight, var(--text-body-base-regular-lineHeight));
15229
- white-space: nowrap;
15230
- pointer-events: none;
15231
- }
15232
-
15233
- /* ─── Print ────────────────────────────────────────────── */
15234
-
15235
- @media print {
15236
- .muka-chat-composer {
15237
- display: none;
15238
- }
15239
- }
15240
-
15241
-
15242
- /* ChatChoiceCard */
15243
- /* ChatChoiceCard — compact option rows (experimental) */
15244
- .muka-chat-choice__list {
15245
- display: flex;
15246
- flex-direction: column;
15247
- gap: var(--spacing-2);
15248
- }
15249
-
15250
- .muka-chat-choice__row {
15251
- display: flex;
15252
- align-items: center;
15253
- min-height: var(--spacing-8);
15254
- min-width: 0;
15255
- }
15256
-
15257
- .muka-chat-choice__row--other {
15258
- gap: var(--spacing-2);
15259
- }
15260
-
15261
- /* The free-text option: the control, then the field filling the row. */
15262
- .muka-chat-choice__row--other {
15263
- flex-wrap: nowrap;
15264
- }
15265
-
15266
- .muka-chat-choice__row--other > .muka-radio,
15267
- .muka-chat-choice__row--other > .muka-checkbox {
15268
- flex: 0 0 auto;
15269
- }
15270
-
15271
- .muka-chat-choice__row--other > .muka-input {
15272
- flex: 1 1 auto;
15273
- width: auto;
15274
- min-width: 0;
15132
+ .muka-chat-choice__row--other > .muka-input {
15133
+ flex: 1 1 auto;
15134
+ width: auto;
15135
+ min-width: 0;
15275
15136
  }
15276
15137
 
15277
15138
 
@@ -17893,144 +17754,377 @@ button.muka-chat-photo-grid__tile:focus-visible {
17893
17754
  }
17894
17755
  }
17895
17756
 
17896
- .muka-accordion__content-inner {
17897
- padding: 0 var(--spacing-4) var(--spacing-5);
17898
- color: var(--color-text-default-default);
17757
+ .muka-accordion__content-inner {
17758
+ padding: 0 var(--spacing-4) var(--spacing-5);
17759
+ color: var(--color-text-default-default);
17760
+ }
17761
+
17762
+ /* ─── Variant: flush ────────────────────────────────────────────────────── */
17763
+
17764
+ .muka-accordion--flush .muka-accordion__trigger {
17765
+ padding-left: 0;
17766
+ padding-right: 0;
17767
+ }
17768
+
17769
+ .muka-accordion--flush .muka-accordion__content-inner {
17770
+ padding-left: 0;
17771
+ padding-right: 0;
17772
+ }
17773
+
17774
+ /* ─── Variant: contained ────────────────────────────────────────────────── */
17775
+
17776
+ .muka-accordion--contained {
17777
+ border: var(--border-width-regular) solid var(--color-border-default);
17778
+ border-radius: var(--radius-md);
17779
+ overflow: hidden;
17780
+ }
17781
+
17782
+ .muka-accordion--contained .muka-accordion__item {
17783
+ background-color: var(--color-surface-level3);
17784
+ }
17785
+
17786
+ .muka-accordion--contained .muka-accordion__item:last-child {
17787
+ border-bottom: none;
17788
+ }
17789
+
17790
+
17791
+ /* ChatMessage */
17792
+ /* ChatMessage Component Styles */
17793
+
17794
+ .muka-chat-message {
17795
+ display: flex;
17796
+ flex-direction: column;
17797
+ width: 100%;
17798
+ max-width: 100%;
17799
+ }
17800
+
17801
+ /* ─── Row: avatar rail + bubble ────────────────────────── */
17802
+
17803
+ .muka-chat-message__row {
17804
+ display: grid;
17805
+ grid-template-columns: minmax(0, 1fr);
17806
+ grid-template-areas: 'bubble';
17807
+ column-gap: var(--chatbubble-row-gap);
17808
+ width: 100%;
17809
+ }
17810
+
17811
+ .muka-chat-message--has-avatar .muka-chat-message__row {
17812
+ grid-template-columns: auto minmax(0, 1fr);
17813
+ grid-template-areas: 'rail bubble';
17814
+ }
17815
+
17816
+ .muka-chat-message__rail {
17817
+ grid-area: rail;
17818
+ /* Sits on the bubble's baseline (Figma 5355:44091) */
17819
+ align-self: end;
17820
+ display: flex;
17821
+ justify-content: center;
17822
+ min-width: var(--chatbubble-avatar-size);
17823
+ }
17824
+
17825
+ /*
17826
+ * The Small size in Figma (5373:44702) halves the avatar to 32px and tightens
17827
+ * the gap to the bubble. Size the avatar itself, not just the rail, so the
17828
+ * bubbles keep their alignment. The header row keeps its own gap.
17829
+ */
17830
+ @media (max-width: 1023px) {
17831
+ .muka-chat-message__row {
17832
+ column-gap: var(--chatbubble-row-gap-compact);
17833
+ }
17834
+
17835
+ .muka-chat-message__rail {
17836
+ min-width: var(--chatbubble-avatar-size-compact);
17837
+ }
17838
+
17839
+ /* Outweighs the avatar's own size class, which sets width/height directly */
17840
+ .muka-chat-message .muka-chat-message__rail > * {
17841
+ width: var(--chatbubble-avatar-size-compact);
17842
+ height: var(--chatbubble-avatar-size-compact);
17843
+ }
17844
+ }
17845
+
17846
+ /* ─── Bubble surface ───────────────────────────────────── */
17847
+
17848
+ .muka-chat-message__bubble {
17849
+ grid-area: bubble;
17850
+ /*
17851
+ * Width follows the content: a single line hugs, and once the text wraps the
17852
+ * bubble fills to the shared max width. Robust to string or rich children —
17853
+ * no length measuring needed (Figma `Text length` on 5355:44091).
17854
+ */
17855
+ width: fit-content;
17856
+ /*
17857
+ * Ceiling from design (Figma 5355:44091). Below it, wrapping text fills the
17858
+ * row; above it the fixed cap leaves room for own/peer alignment.
17859
+ */
17860
+ max-width: var(--chatbubble-max-width);
17861
+ position: relative;
17862
+ display: flex;
17863
+ flex-direction: column;
17864
+ gap: var(--chatbubble-gap);
17865
+ padding: var(--chatbubble-padding-block) var(--chatbubble-padding-inline);
17866
+ border-radius: var(--chatbubble-radius);
17867
+ border: var(--border-width-regular) solid transparent;
17868
+ box-shadow: var(--shadow-level2);
17869
+ word-break: break-word;
17870
+ }
17871
+
17872
+ /* Media, an embed or an action stack always run the full bubble width. */
17873
+ .muka-chat-message--has-blocks .muka-chat-message__bubble {
17874
+ width: 100%;
17875
+ }
17876
+
17877
+ .muka-chat-message--own .muka-chat-message__bubble {
17878
+ justify-self: end;
17879
+ }
17880
+
17881
+ .muka-chat-message--own .muka-chat-message__bubble {
17882
+ background-color: var(--chatbubble-color-own-background);
17883
+ border-color: var(--chatbubble-color-own-border);
17884
+ color: var(--chatbubble-color-own-foreground);
17885
+ }
17886
+
17887
+ .muka-chat-message--peer .muka-chat-message__bubble {
17888
+ background-color: var(--chatbubble-color-peer-background);
17889
+ border-color: var(--chatbubble-color-peer-border);
17890
+ color: var(--chatbubble-color-peer-foreground);
17891
+ }
17892
+
17893
+ .muka-chat-message--agent .muka-chat-message__bubble {
17894
+ background-color: var(--chatbubble-color-agent-background);
17895
+ border-color: var(--chatbubble-color-agent-border);
17896
+ color: var(--chatbubble-color-agent-foreground);
17897
+ }
17898
+
17899
+ /* ─── Header row (author · meta · time · badge) ────────── */
17900
+
17901
+ .muka-chat-message__header {
17902
+ display: flex;
17903
+ flex-flow: row wrap;
17904
+ align-items: center;
17905
+ gap: var(--chatbubble-row-gap);
17906
+ }
17907
+
17908
+ .muka-chat-message__author {
17909
+ font-family: var(--text-body-base-bold-fontFamily);
17910
+ font-weight: var(--text-body-base-bold-fontWeight);
17911
+ font-size: var(--text-body-base-bold-fontSize);
17912
+ line-height: var(--text-body-base-bold-lineHeight);
17913
+ }
17914
+
17915
+ .muka-chat-message__author-meta {
17916
+ /* Inherits the variant's body colour from the bubble */
17917
+ color: inherit;
17918
+ font-family: var(--text-body-base-regular-fontFamily);
17919
+ font-weight: var(--text-body-base-regular-fontWeight);
17920
+ font-size: var(--text-body-base-regular-fontSize);
17921
+ line-height: var(--text-body-base-regular-lineHeight);
17899
17922
  }
17900
17923
 
17901
- /* ─── Variant: flush ────────────────────────────────────────────────────── */
17924
+ .muka-chat-message__badge {
17925
+ display: inline-flex;
17926
+ align-items: center;
17927
+ }
17902
17928
 
17903
- .muka-accordion--flush .muka-accordion__trigger {
17904
- padding-left: 0;
17905
- padding-right: 0;
17929
+ /*
17930
+ * Keep the first line of content clear of the absolutely positioned menu
17931
+ * button in the bubble's top-right corner.
17932
+ */
17933
+ .muka-chat-message--has-menu .muka-chat-message__header,
17934
+ .muka-chat-message--has-menu.muka-chat-message--no-header .muka-chat-message__message {
17935
+ padding-right: var(--spacing-10);
17906
17936
  }
17907
17937
 
17908
- .muka-accordion--flush .muka-accordion__content-inner {
17909
- padding-left: 0;
17910
- padding-right: 0;
17938
+ /* …and the last line clear of the inset timestamp in the bottom-right corner */
17939
+ .muka-chat-message--has-timestamp .muka-chat-message__message {
17940
+ padding-right: var(--spacing-10);
17911
17941
  }
17912
17942
 
17913
- /* ─── Variant: contained ────────────────────────────────────────────────── */
17943
+ /* ─── Body ─────────────────────────────────────────────── */
17914
17944
 
17915
- .muka-accordion--contained {
17916
- border: var(--border-width-regular) solid var(--color-border-default);
17917
- border-radius: var(--radius-md);
17918
- overflow: hidden;
17945
+ .muka-chat-message__body {
17946
+ display: flex;
17947
+ flex-direction: column;
17948
+ gap: var(--chatbubble-gap);
17949
+ min-width: 0;
17919
17950
  }
17920
17951
 
17921
- .muka-accordion--contained .muka-accordion__item {
17922
- background-color: var(--color-surface-level3);
17952
+ .muka-chat-message__media {
17953
+ min-width: 0;
17923
17954
  }
17924
17955
 
17925
- .muka-accordion--contained .muka-accordion__item:last-child {
17926
- border-bottom: none;
17956
+ .muka-chat-message__message {
17957
+ font-family: var(--text-body-base-regular-fontFamily);
17958
+ font-weight: var(--text-body-base-regular-fontWeight);
17959
+ font-size: var(--text-body-base-regular-fontSize);
17960
+ line-height: var(--text-body-base-regular-lineHeight);
17961
+ white-space: pre-wrap;
17962
+ word-break: break-word;
17927
17963
  }
17928
17964
 
17965
+ /* Empty message block should not add a gap of its own */
17966
+ .muka-chat-message__message:empty {
17967
+ display: none;
17968
+ }
17929
17969
 
17930
- /* SwipeActions */
17931
- /* SwipeActions Component Styles */
17970
+ /* ─── Embedded card ────────────────────────────────────── */
17932
17971
 
17933
- .muka-swipe-actions {
17972
+ .muka-chat-message__embed {
17934
17973
  position: relative;
17935
- overflow: hidden;
17936
- touch-action: pan-y;
17937
- -webkit-user-select: none;
17938
- user-select: none;
17939
- background-color: var(--color-surface-level3);
17974
+ display: flex;
17975
+ flex-direction: column;
17976
+ gap: var(--chatbubble-embed-gap);
17977
+ /* The card is inset from the blocks above and below it (Figma 5289:40562) */
17978
+ margin-block: var(--chatbubble-embed-margin-block);
17979
+ padding: var(--chatbubble-embed-padding-block) var(--chatbubble-embed-padding-inline);
17980
+ border-radius: var(--chatbubble-embed-radius);
17981
+ border: var(--border-width-regular) solid transparent;
17940
17982
  }
17941
17983
 
17942
- .muka-swipe-actions--disabled {
17943
- touch-action: auto;
17984
+ /*
17985
+ * The embed sits on the raised surface of its author's role, one step apart
17986
+ * from the bubble it is nested in, and reuses that role's border colour.
17987
+ */
17988
+ .muka-chat-message--own .muka-chat-message__embed {
17989
+ background-color: var(--chatbubble-embed-color-own-background);
17990
+ border-color: var(--chatbubble-embed-color-own-border);
17991
+ color: var(--chatbubble-embed-color-own-foreground);
17944
17992
  }
17945
17993
 
17946
- /* ─── Row that holds the actual content ────────────────── */
17947
-
17948
- .muka-swipe-actions__row {
17949
- position: relative;
17950
- z-index: 1;
17951
- background-color: inherit;
17952
- will-change: transform;
17994
+ .muka-chat-message--peer .muka-chat-message__embed {
17995
+ background-color: var(--chatbubble-embed-color-peer-background);
17996
+ border-color: var(--chatbubble-embed-color-peer-border);
17997
+ color: var(--chatbubble-embed-color-peer-foreground);
17953
17998
  }
17954
17999
 
17955
- /* ─── Action panels — sit beneath the row ──────────────── */
17956
-
17957
- .muka-swipe-actions__panel {
17958
- position: absolute;
17959
- top: 0;
17960
- bottom: 0;
17961
- display: flex;
17962
- align-items: stretch;
17963
- z-index: 0;
18000
+ .muka-chat-message--agent .muka-chat-message__embed {
18001
+ background-color: var(--chatbubble-embed-color-agent-background);
18002
+ border-color: var(--chatbubble-embed-color-agent-border);
18003
+ color: var(--chatbubble-embed-color-agent-foreground);
17964
18004
  }
17965
18005
 
17966
- .muka-swipe-actions__panel--left {
17967
- left: 0;
18006
+ .muka-chat-message__embed-content {
18007
+ display: flex;
18008
+ flex-direction: column;
18009
+ gap: var(--chatbubble-embed-gap);
18010
+ min-width: 0;
17968
18011
  }
17969
18012
 
17970
- .muka-swipe-actions__panel--right {
17971
- right: 0;
18013
+ .muka-chat-message__embed-copy {
18014
+ position: absolute;
18015
+ top: var(--chatbubble-embed-padding-block);
18016
+ right: var(--chatbubble-embed-padding-inline);
17972
18017
  }
17973
18018
 
17974
- /* ─── Single action button ─────────────────────────────── */
18019
+ /* ─── Stacked full-width action buttons ────────────────── */
17975
18020
 
17976
- .muka-swipe-actions__button {
18021
+ .muka-chat-message__action-stack {
17977
18022
  display: flex;
17978
18023
  flex-direction: column;
17979
- align-items: center;
17980
- justify-content: center;
17981
- gap: var(--spacing-1);
17982
- border: none;
17983
- cursor: pointer;
17984
- padding: var(--spacing-2);
17985
- background-color: var(--color-surface-level2);
17986
- color: var(--color-text-default-default);
17987
- font-family: var(--text-label-sm-semibold-fontFamily);
17988
- font-weight: var(--text-label-sm-semibold-fontWeight);
17989
- font-size: var(--text-label-sm-semibold-fontSize);
17990
- line-height: var(--text-label-sm-semibold-lineHeight);
17991
- -webkit-tap-highlight-color: transparent;
17992
- transition: filter 0.12s ease;
18024
+ gap: var(--chatbubble-action-stack-gap);
17993
18025
  }
17994
18026
 
17995
- .muka-swipe-actions__button:hover {
17996
- filter: brightness(0.95);
18027
+ /* ─── Inset timestamp ──────────────────────────────────── */
18028
+
18029
+ /*
18030
+ * Every author puts its timestamp in the bubble's bottom-right corner, below
18031
+ * the message — never in the header row (Figma 5355:44091).
18032
+ */
18033
+
18034
+ .muka-chat-message__timestamp {
18035
+ color: var(--chatbubble-color-timestamp);
18036
+ font-family: var(--text-body-xs-regular-fontFamily);
18037
+ font-weight: var(--text-body-xs-regular-fontWeight);
18038
+ font-size: var(--text-body-xs-regular-fontSize);
18039
+ line-height: var(--text-body-xs-regular-lineHeight);
18040
+ white-space: nowrap;
17997
18041
  }
17998
18042
 
17999
- .muka-swipe-actions__button:focus-visible {
18000
- outline: 2px solid var(--color-action-default);
18001
- outline-offset: -2px;
18043
+ /*
18044
+ * Pinned to the corner rather than stacked below the message, so a one-line
18045
+ * message stays one line tall. The message reserves the width it needs.
18046
+ */
18047
+ .muka-chat-message__timestamp--inset {
18048
+ position: absolute;
18049
+ right: var(--spacing-2);
18050
+ bottom: var(--spacing-1);
18002
18051
  }
18003
18052
 
18004
- .muka-swipe-actions__button-icon {
18005
- display: inline-flex;
18006
- align-items: center;
18007
- justify-content: center;
18053
+ /*
18054
+ * When the last block in the body is media, an embed or an action stack (not
18055
+ * trailing text), it runs the full width, so reserve a line below for the inset
18056
+ * timestamp. A message that ends in text clears the corner inline instead (see
18057
+ * `__message` padding-right above), so it needs no extra bottom space.
18058
+ */
18059
+ .muka-chat-message--has-timestamp.muka-chat-message--trailing-block .muka-chat-message__body {
18060
+ padding-bottom: var(--text-body-xs-regular-lineHeight);
18008
18061
  }
18009
18062
 
18010
- /* ─── Color variants ───────────────────────────────────── */
18063
+ /* ─── Menu affordance ──────────────────────────────────── */
18011
18064
 
18012
- .muka-swipe-actions__button--neutral {
18013
- background-color: var(--color-surface-level2);
18014
- color: var(--color-text-default-default);
18065
+ /*
18066
+ * Hidden at rest. Revealed on hover on pointer devices, on keyboard focus
18067
+ * everywhere, and pinned while its menu is open. On touch the equivalent
18068
+ * affordance is a long-press on the bubble, which opens an ActionSheet.
18069
+ */
18070
+ .muka-chat-message__menu {
18071
+ position: absolute;
18072
+ top: var(--spacing-1);
18073
+ right: var(--spacing-1);
18074
+ opacity: 0;
18075
+ pointer-events: none;
18015
18076
  }
18016
18077
 
18017
- .muka-swipe-actions__button--primary {
18018
- background-color: var(--color-action-default);
18019
- color: var(--color-text-default-inverse);
18078
+ .muka-chat-message__menu:focus-within,
18079
+ .muka-chat-message--menu-open .muka-chat-message__menu {
18080
+ opacity: 1;
18081
+ pointer-events: auto;
18020
18082
  }
18021
18083
 
18022
- .muka-swipe-actions__button--success {
18023
- background-color: var(--color-state-success-default);
18024
- color: var(--color-text-default-inverse);
18084
+ @media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
18085
+ .muka-chat-message__bubble:hover .muka-chat-message__menu {
18086
+ opacity: 1;
18087
+ pointer-events: auto;
18088
+ }
18025
18089
  }
18026
18090
 
18027
- .muka-swipe-actions__button--warning {
18028
- background-color: var(--color-state-warning-default);
18029
- color: var(--color-text-default-default);
18091
+ /* Suppress iOS Safari's own callout so the long-press sheet can take over */
18092
+ @media (pointer: coarse) {
18093
+ .muka-chat-message--has-menu .muka-chat-message__bubble {
18094
+ -webkit-touch-callout: none;
18095
+ }
18030
18096
  }
18031
18097
 
18032
- .muka-swipe-actions__button--destructive {
18033
- background-color: var(--color-state-error-default);
18034
- color: var(--color-text-default-inverse);
18098
+ /* ─── Print ────────────────────────────────────────────── */
18099
+
18100
+ @media print {
18101
+ .muka-chat-message__bubble {
18102
+ box-shadow: none;
18103
+ break-inside: avoid;
18104
+ print-color-adjust: exact;
18105
+ -webkit-print-color-adjust: exact;
18106
+ }
18107
+
18108
+ .muka-chat-message__embed {
18109
+ break-inside: avoid;
18110
+ print-color-adjust: exact;
18111
+ -webkit-print-color-adjust: exact;
18112
+ }
18113
+
18114
+ .muka-chat-message__menu,
18115
+ .muka-chat-message__embed-copy,
18116
+ .muka-chat-message__action-stack {
18117
+ display: none;
18118
+ }
18119
+ }
18120
+
18121
+ /* ─── Muted (a message from another context) ──────────────
18122
+ * The bubble drops its fill and keeps a hairline, so it recedes next to the
18123
+ * current conversation; the text keeps full contrast. */
18124
+
18125
+ .muka-chat-message--muted .muka-chat-message__bubble {
18126
+ background-color: transparent;
18127
+ border-color: var(--chatbubble-color-peer-border);
18128
+ color: var(--color-text-default-default);
18035
18129
  }
18036
18130