@revikornmann/muka-ui 0.59.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.
@@ -4061,6 +4061,191 @@ body {
4061
4061
  }
4062
4062
 
4063
4063
 
4064
+ /* Thumbnail */
4065
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
4066
+
4067
+ .muka-thumbnail {
4068
+ position: relative;
4069
+ flex-shrink: 0;
4070
+ }
4071
+
4072
+ /* The frame carries the border, background and shape clip. Keeping it separate
4073
+ from the root lets the remove (×) button sit outside the clip (needed for the
4074
+ circular/ellipse shape, whose corners would otherwise clip the button). */
4075
+ .muka-thumbnail__frame {
4076
+ position: absolute;
4077
+ inset: 0;
4078
+ overflow: hidden;
4079
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4080
+ border-radius: var(--border-radius-lg);
4081
+ background-color: var(--color-surface-level1);
4082
+ }
4083
+
4084
+ /* ─── Shapes ──────────────────────────────────────────── */
4085
+ .muka-thumbnail--4-3 {
4086
+ width: 160px;
4087
+ height: 120px;
4088
+ }
4089
+
4090
+ .muka-thumbnail--1-1 {
4091
+ width: 120px;
4092
+ height: 120px;
4093
+ }
4094
+
4095
+ .muka-thumbnail--ellipse {
4096
+ width: 120px;
4097
+ height: 120px;
4098
+ }
4099
+
4100
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4101
+ .muka-thumbnail--fluid {
4102
+ width: 100%;
4103
+ height: auto;
4104
+ aspect-ratio: 1 / 1;
4105
+ }
4106
+
4107
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4108
+ aspect-ratio: 4 / 3;
4109
+ }
4110
+
4111
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
4112
+ border-radius: var(--border-radius-full);
4113
+ }
4114
+
4115
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4116
+ interactive hover zoom has a clean origin. */
4117
+ .muka-thumbnail__image {
4118
+ position: absolute;
4119
+ inset: 0;
4120
+ width: 100%;
4121
+ height: 100%;
4122
+ object-fit: cover;
4123
+ display: block;
4124
+ transform-origin: center;
4125
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4126
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4127
+ }
4128
+
4129
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
4130
+ .muka-thumbnail__trigger {
4131
+ position: absolute;
4132
+ inset: 0;
4133
+ padding: 0;
4134
+ border: 0;
4135
+ background: none;
4136
+ cursor: pointer;
4137
+ overflow: hidden;
4138
+ }
4139
+
4140
+ .muka-thumbnail__trigger:focus-visible {
4141
+ outline: 2px solid var(--color-border-focus);
4142
+ outline-offset: -2px;
4143
+ }
4144
+
4145
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4146
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4147
+ transform: scale(1.05);
4148
+ }
4149
+
4150
+ /* ─── Loading overlay + progress donut ────────────────── */
4151
+ .muka-thumbnail__overlay {
4152
+ position: absolute;
4153
+ inset: 0;
4154
+ display: flex;
4155
+ align-items: center;
4156
+ justify-content: center;
4157
+ background-color: var(--dialog-color-backdrop);
4158
+ }
4159
+
4160
+ .muka-thumbnail__progress {
4161
+ width: 40px;
4162
+ height: 40px;
4163
+ }
4164
+
4165
+ /* ─── Error / corrupt state ───────────────────────────── */
4166
+ .muka-thumbnail--error .muka-thumbnail__frame {
4167
+ background-color: var(--alias-color-state-error-muted);
4168
+ border-color: var(--alias-color-state-error-default);
4169
+ }
4170
+
4171
+ .muka-thumbnail__error {
4172
+ position: absolute;
4173
+ inset: 0;
4174
+ display: flex;
4175
+ flex-direction: column;
4176
+ align-items: center;
4177
+ justify-content: center;
4178
+ gap: var(--spacing-2);
4179
+ padding: var(--spacing-3);
4180
+ text-align: center;
4181
+ }
4182
+
4183
+ .muka-thumbnail__error-icon {
4184
+ color: var(--alert-color-error-accent);
4185
+ }
4186
+
4187
+ .muka-thumbnail__caption {
4188
+ max-width: 100%;
4189
+ overflow: hidden;
4190
+ text-overflow: ellipsis;
4191
+ white-space: nowrap;
4192
+ color: var(--alert-color-error-accent);
4193
+ font-family: var(--text-body-sm-regular-fontFamily);
4194
+ font-size: var(--text-body-sm-regular-fontSize);
4195
+ font-weight: var(--text-body-sm-regular-fontWeight);
4196
+ line-height: var(--text-body-sm-regular-lineHeight);
4197
+ }
4198
+
4199
+ /* ─── Remove (×) button ───────────────────────────────── */
4200
+ .muka-thumbnail__remove {
4201
+ position: absolute;
4202
+ top: var(--spacing-2);
4203
+ right: var(--spacing-2);
4204
+ display: flex;
4205
+ align-items: center;
4206
+ justify-content: center;
4207
+ width: var(--size-2xl);
4208
+ height: var(--size-2xl);
4209
+ padding: 0;
4210
+ color: var(--button-color-tertiary-foreground-default);
4211
+ background-color: var(--button-color-tertiary-background-default);
4212
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4213
+ border-radius: var(--border-radius-lg);
4214
+ cursor: pointer;
4215
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4216
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
4217
+ }
4218
+
4219
+ .muka-thumbnail__remove:hover {
4220
+ color: var(--button-color-tertiary-foreground-hover);
4221
+ background-color: var(--button-color-tertiary-background-hover);
4222
+ border-color: var(--button-color-tertiary-border-hover);
4223
+ }
4224
+
4225
+ .muka-thumbnail__remove:active {
4226
+ color: var(--button-color-tertiary-foreground-pressed);
4227
+ background-color: var(--button-color-tertiary-background-pressed);
4228
+ border-color: var(--button-color-tertiary-border-pressed);
4229
+ }
4230
+
4231
+ .muka-thumbnail__remove:focus-visible {
4232
+ outline: 2px solid var(--color-border-focus);
4233
+ outline-offset: 2px;
4234
+ }
4235
+
4236
+ /* ─── Reduced motion ──────────────────────────────────── */
4237
+ @media (prefers-reduced-motion: reduce) {
4238
+ .muka-thumbnail__image,
4239
+ .muka-thumbnail__remove {
4240
+ transition: none;
4241
+ }
4242
+
4243
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4244
+ transform: none;
4245
+ }
4246
+ }
4247
+
4248
+
4064
4249
  /* Textarea */
4065
4250
  /* Textarea Component Styles - Using Muka Design Tokens */
4066
4251
 
@@ -4497,232 +4682,47 @@ body {
4497
4682
  }
4498
4683
 
4499
4684
 
4500
- /* Thumbnail */
4501
- /* Thumbnail Component Styles - Using Muka Design Tokens */
4502
-
4503
- .muka-thumbnail {
4504
- position: relative;
4505
- flex-shrink: 0;
4506
- }
4685
+ /* TablePagination */
4686
+ /* TablePagination Component Styles - Using Muka Design Tokens */
4507
4687
 
4508
- /* The frame carries the border, background and shape clip. Keeping it separate
4509
- from the root lets the remove (×) button sit outside the clip (needed for the
4510
- circular/ellipse shape, whose corners would otherwise clip the button). */
4511
- .muka-thumbnail__frame {
4512
- position: absolute;
4513
- inset: 0;
4514
- overflow: hidden;
4515
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4516
- border-radius: var(--border-radius-lg);
4517
- background-color: var(--color-surface-level1);
4518
- }
4688
+ /* ========================================
4689
+ PAGINATION CONTAINER
4690
+ ======================================== */
4519
4691
 
4520
- /* ─── Shapes ──────────────────────────────────────────── */
4521
- .muka-thumbnail--4-3 {
4522
- width: 160px;
4523
- height: 120px;
4692
+ .muka-table-pagination {
4693
+ display: flex;
4694
+ align-items: center;
4695
+ justify-content: space-between;
4696
+ flex-wrap: wrap;
4697
+ gap: var(--table-pagination-gap, var(--spacing-4));
4698
+ padding: var(--table-pagination-padding, var(--spacing-3));
4699
+ background-color: var(--table-pagination-background, var(--color-surface-level1));
4700
+ border-top: var(--border-width-regular) solid var(--table-pagination-border, var(--color-border-default));
4701
+ font-family: var(--text-body-base-regular-fontFamily);
4702
+ font-size: var(--text-body-sm-regular-fontSize);
4703
+ line-height: var(--text-body-sm-regular-lineHeight);
4704
+ color: var(--color-text-default-default);
4524
4705
  }
4525
4706
 
4526
- .muka-thumbnail--1-1 {
4527
- width: 120px;
4528
- height: 120px;
4529
- }
4707
+ /* ========================================
4708
+ LEFT SECTION (Page Size & Range)
4709
+ ======================================== */
4530
4710
 
4531
- .muka-thumbnail--ellipse {
4532
- width: 120px;
4533
- height: 120px;
4711
+ .muka-table-pagination__left {
4712
+ display: flex;
4713
+ align-items: center;
4714
+ gap: var(--spacing-4);
4534
4715
  }
4535
4716
 
4536
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4537
- .muka-thumbnail--fluid {
4538
- width: 100%;
4539
- height: auto;
4540
- aspect-ratio: 1 / 1;
4717
+ .muka-table-pagination__page-size {
4718
+ display: flex;
4719
+ align-items: center;
4720
+ gap: var(--spacing-2);
4541
4721
  }
4542
4722
 
4543
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4544
- aspect-ratio: 4 / 3;
4545
- }
4546
-
4547
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
4548
- border-radius: var(--border-radius-full);
4549
- }
4550
-
4551
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4552
- interactive hover zoom has a clean origin. */
4553
- .muka-thumbnail__image {
4554
- position: absolute;
4555
- inset: 0;
4556
- width: 100%;
4557
- height: 100%;
4558
- object-fit: cover;
4559
- display: block;
4560
- transform-origin: center;
4561
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4562
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4563
- }
4564
-
4565
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
4566
- .muka-thumbnail__trigger {
4567
- position: absolute;
4568
- inset: 0;
4569
- padding: 0;
4570
- border: 0;
4571
- background: none;
4572
- cursor: pointer;
4573
- overflow: hidden;
4574
- }
4575
-
4576
- .muka-thumbnail__trigger:focus-visible {
4577
- outline: 2px solid var(--color-border-focus);
4578
- outline-offset: -2px;
4579
- }
4580
-
4581
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4582
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4583
- transform: scale(1.05);
4584
- }
4585
-
4586
- /* ─── Loading overlay + progress donut ────────────────── */
4587
- .muka-thumbnail__overlay {
4588
- position: absolute;
4589
- inset: 0;
4590
- display: flex;
4591
- align-items: center;
4592
- justify-content: center;
4593
- background-color: var(--dialog-color-backdrop);
4594
- }
4595
-
4596
- .muka-thumbnail__progress {
4597
- width: 40px;
4598
- height: 40px;
4599
- }
4600
-
4601
- /* ─── Error / corrupt state ───────────────────────────── */
4602
- .muka-thumbnail--error .muka-thumbnail__frame {
4603
- background-color: var(--alias-color-state-error-muted);
4604
- border-color: var(--alias-color-state-error-default);
4605
- }
4606
-
4607
- .muka-thumbnail__error {
4608
- position: absolute;
4609
- inset: 0;
4610
- display: flex;
4611
- flex-direction: column;
4612
- align-items: center;
4613
- justify-content: center;
4614
- gap: var(--spacing-2);
4615
- padding: var(--spacing-3);
4616
- text-align: center;
4617
- }
4618
-
4619
- .muka-thumbnail__error-icon {
4620
- color: var(--alert-color-error-accent);
4621
- }
4622
-
4623
- .muka-thumbnail__caption {
4624
- max-width: 100%;
4625
- overflow: hidden;
4626
- text-overflow: ellipsis;
4627
- white-space: nowrap;
4628
- color: var(--alert-color-error-accent);
4629
- font-family: var(--text-body-sm-regular-fontFamily);
4630
- font-size: var(--text-body-sm-regular-fontSize);
4631
- font-weight: var(--text-body-sm-regular-fontWeight);
4632
- line-height: var(--text-body-sm-regular-lineHeight);
4633
- }
4634
-
4635
- /* ─── Remove (×) button ───────────────────────────────── */
4636
- .muka-thumbnail__remove {
4637
- position: absolute;
4638
- top: var(--spacing-2);
4639
- right: var(--spacing-2);
4640
- display: flex;
4641
- align-items: center;
4642
- justify-content: center;
4643
- width: var(--size-2xl);
4644
- height: var(--size-2xl);
4645
- padding: 0;
4646
- color: var(--button-color-tertiary-foreground-default);
4647
- background-color: var(--button-color-tertiary-background-default);
4648
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4649
- border-radius: var(--border-radius-lg);
4650
- cursor: pointer;
4651
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4652
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
4653
- }
4654
-
4655
- .muka-thumbnail__remove:hover {
4656
- color: var(--button-color-tertiary-foreground-hover);
4657
- background-color: var(--button-color-tertiary-background-hover);
4658
- border-color: var(--button-color-tertiary-border-hover);
4659
- }
4660
-
4661
- .muka-thumbnail__remove:active {
4662
- color: var(--button-color-tertiary-foreground-pressed);
4663
- background-color: var(--button-color-tertiary-background-pressed);
4664
- border-color: var(--button-color-tertiary-border-pressed);
4665
- }
4666
-
4667
- .muka-thumbnail__remove:focus-visible {
4668
- outline: 2px solid var(--color-border-focus);
4669
- outline-offset: 2px;
4670
- }
4671
-
4672
- /* ─── Reduced motion ──────────────────────────────────── */
4673
- @media (prefers-reduced-motion: reduce) {
4674
- .muka-thumbnail__image,
4675
- .muka-thumbnail__remove {
4676
- transition: none;
4677
- }
4678
-
4679
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4680
- transform: none;
4681
- }
4682
- }
4683
-
4684
-
4685
- /* TablePagination */
4686
- /* TablePagination Component Styles - Using Muka Design Tokens */
4687
-
4688
- /* ========================================
4689
- PAGINATION CONTAINER
4690
- ======================================== */
4691
-
4692
- .muka-table-pagination {
4693
- display: flex;
4694
- align-items: center;
4695
- justify-content: space-between;
4696
- flex-wrap: wrap;
4697
- gap: var(--table-pagination-gap, var(--spacing-4));
4698
- padding: var(--table-pagination-padding, var(--spacing-3));
4699
- background-color: var(--table-pagination-background, var(--color-surface-level1));
4700
- border-top: var(--border-width-regular) solid var(--table-pagination-border, var(--color-border-default));
4701
- font-family: var(--text-body-base-regular-fontFamily);
4702
- font-size: var(--text-body-sm-regular-fontSize);
4703
- line-height: var(--text-body-sm-regular-lineHeight);
4704
- color: var(--color-text-default-default);
4705
- }
4706
-
4707
- /* ========================================
4708
- LEFT SECTION (Page Size & Range)
4709
- ======================================== */
4710
-
4711
- .muka-table-pagination__left {
4712
- display: flex;
4713
- align-items: center;
4714
- gap: var(--spacing-4);
4715
- }
4716
-
4717
- .muka-table-pagination__page-size {
4718
- display: flex;
4719
- align-items: center;
4720
- gap: var(--spacing-2);
4721
- }
4722
-
4723
- .muka-table-pagination__label {
4724
- color: var(--color-text-subtle-default);
4725
- white-space: nowrap;
4723
+ .muka-table-pagination__label {
4724
+ color: var(--color-text-subtle-default);
4725
+ white-space: nowrap;
4726
4726
  }
4727
4727
 
4728
4728
  .muka-table-pagination__select {
@@ -5086,70 +5086,178 @@ body {
5086
5086
  }
5087
5087
 
5088
5088
 
5089
- /* Spinner */
5090
- /* Spinner Component Styles */
5089
+ /* SwipeActions */
5090
+ /* SwipeActions Component Styles */
5091
5091
 
5092
- .muka-spinner {
5093
- display: inline-flex;
5094
- align-items: center;
5095
- justify-content: center;
5096
- color: var(--color-text-default-default);
5097
- line-height: 0;
5092
+ .muka-swipe-actions {
5093
+ position: relative;
5094
+ overflow: hidden;
5095
+ touch-action: pan-y;
5096
+ -webkit-user-select: none;
5097
+ user-select: none;
5098
+ background-color: var(--color-surface-level3);
5098
5099
  }
5099
5100
 
5100
- .muka-spinner--subtle {
5101
- color: var(--color-text-subtle-default);
5101
+ .muka-swipe-actions--disabled {
5102
+ touch-action: auto;
5102
5103
  }
5103
5104
 
5104
- .muka-spinner--inverse {
5105
- color: var(--color-text-default-inverse);
5106
- }
5105
+ /* ─── Row that holds the actual content ────────────────── */
5107
5106
 
5108
- .muka-spinner__circle {
5109
- display: inline-block;
5110
- border-radius: 50%;
5111
- border-style: solid;
5112
- border-color: currentColor;
5113
- border-right-color: transparent;
5114
- animation: muka-spinner-rotate 0.7s linear infinite;
5115
- box-sizing: border-box;
5107
+ .muka-swipe-actions__row {
5108
+ position: relative;
5109
+ z-index: 1;
5110
+ background-color: inherit;
5111
+ will-change: transform;
5116
5112
  }
5117
5113
 
5118
- /* ─── Sizes ───────────────────────────────────────────── */
5114
+ /* ─── Action panels — sit beneath the row ──────────────── */
5119
5115
 
5120
- .muka-spinner--sm .muka-spinner__circle {
5121
- width: 16px;
5122
- height: 16px;
5123
- border-width: 2px;
5116
+ .muka-swipe-actions__panel {
5117
+ position: absolute;
5118
+ top: 0;
5119
+ bottom: 0;
5120
+ display: flex;
5121
+ align-items: stretch;
5122
+ z-index: 0;
5124
5123
  }
5125
5124
 
5126
- .muka-spinner--md .muka-spinner__circle {
5127
- width: 20px;
5128
- height: 20px;
5129
- border-width: 2px;
5125
+ .muka-swipe-actions__panel--left {
5126
+ left: 0;
5130
5127
  }
5131
5128
 
5132
- .muka-spinner--lg .muka-spinner__circle {
5133
- width: 24px;
5134
- height: 24px;
5135
- border-width: 3px;
5129
+ .muka-swipe-actions__panel--right {
5130
+ right: 0;
5136
5131
  }
5137
5132
 
5138
- /* ─── Visually-hidden label ───────────────────────────── */
5139
-
5140
- .muka-spinner__sr-label {
5141
- position: absolute;
5142
- width: 1px;
5143
- height: 1px;
5144
- padding: 0;
5145
- margin: -1px;
5146
- overflow: hidden;
5147
- clip: rect(0, 0, 0, 0);
5148
- white-space: nowrap;
5149
- border: 0;
5150
- }
5133
+ /* ─── Single action button ─────────────────────────────── */
5151
5134
 
5152
- /* ─── Reduced motion ──────────────────────────────────── */
5135
+ .muka-swipe-actions__button {
5136
+ display: flex;
5137
+ flex-direction: column;
5138
+ align-items: center;
5139
+ justify-content: center;
5140
+ gap: var(--spacing-1);
5141
+ border: none;
5142
+ cursor: pointer;
5143
+ padding: var(--spacing-2);
5144
+ background-color: var(--color-surface-level2);
5145
+ color: var(--color-text-default-default);
5146
+ font-family: var(--text-label-sm-semibold-fontFamily);
5147
+ font-weight: var(--text-label-sm-semibold-fontWeight);
5148
+ font-size: var(--text-label-sm-semibold-fontSize);
5149
+ line-height: var(--text-label-sm-semibold-lineHeight);
5150
+ -webkit-tap-highlight-color: transparent;
5151
+ transition: filter 0.12s ease;
5152
+ }
5153
+
5154
+ .muka-swipe-actions__button:hover {
5155
+ filter: brightness(0.95);
5156
+ }
5157
+
5158
+ .muka-swipe-actions__button:focus-visible {
5159
+ outline: 2px solid var(--color-action-default);
5160
+ outline-offset: -2px;
5161
+ }
5162
+
5163
+ .muka-swipe-actions__button-icon {
5164
+ display: inline-flex;
5165
+ align-items: center;
5166
+ justify-content: center;
5167
+ }
5168
+
5169
+ /* ─── Color variants ───────────────────────────────────── */
5170
+
5171
+ .muka-swipe-actions__button--neutral {
5172
+ background-color: var(--color-surface-level2);
5173
+ color: var(--color-text-default-default);
5174
+ }
5175
+
5176
+ .muka-swipe-actions__button--primary {
5177
+ background-color: var(--color-action-default);
5178
+ color: var(--color-text-default-inverse);
5179
+ }
5180
+
5181
+ .muka-swipe-actions__button--success {
5182
+ background-color: var(--color-state-success-default);
5183
+ color: var(--color-text-default-inverse);
5184
+ }
5185
+
5186
+ .muka-swipe-actions__button--warning {
5187
+ background-color: var(--color-state-warning-default);
5188
+ color: var(--color-text-default-default);
5189
+ }
5190
+
5191
+ .muka-swipe-actions__button--destructive {
5192
+ background-color: var(--color-state-error-default);
5193
+ color: var(--color-text-default-inverse);
5194
+ }
5195
+
5196
+
5197
+ /* Spinner */
5198
+ /* Spinner Component Styles */
5199
+
5200
+ .muka-spinner {
5201
+ display: inline-flex;
5202
+ align-items: center;
5203
+ justify-content: center;
5204
+ color: var(--color-text-default-default);
5205
+ line-height: 0;
5206
+ }
5207
+
5208
+ .muka-spinner--subtle {
5209
+ color: var(--color-text-subtle-default);
5210
+ }
5211
+
5212
+ .muka-spinner--inverse {
5213
+ color: var(--color-text-default-inverse);
5214
+ }
5215
+
5216
+ .muka-spinner__circle {
5217
+ display: inline-block;
5218
+ border-radius: 50%;
5219
+ border-style: solid;
5220
+ border-color: currentColor;
5221
+ border-right-color: transparent;
5222
+ animation: muka-spinner-rotate 0.7s linear infinite;
5223
+ box-sizing: border-box;
5224
+ }
5225
+
5226
+ /* ─── Sizes ───────────────────────────────────────────── */
5227
+
5228
+ .muka-spinner--sm .muka-spinner__circle {
5229
+ width: 16px;
5230
+ height: 16px;
5231
+ border-width: 2px;
5232
+ }
5233
+
5234
+ .muka-spinner--md .muka-spinner__circle {
5235
+ width: 20px;
5236
+ height: 20px;
5237
+ border-width: 2px;
5238
+ }
5239
+
5240
+ .muka-spinner--lg .muka-spinner__circle {
5241
+ width: 24px;
5242
+ height: 24px;
5243
+ border-width: 3px;
5244
+ }
5245
+
5246
+ /* ─── Visually-hidden label ───────────────────────────── */
5247
+
5248
+ .muka-spinner__sr-label {
5249
+ position: absolute;
5250
+ width: 1px;
5251
+ height: 1px;
5252
+ padding: 0;
5253
+ margin: -1px;
5254
+ overflow: hidden;
5255
+ clip: rect(0, 0, 0, 0);
5256
+ white-space: nowrap;
5257
+ border: 0;
5258
+ }
5259
+
5260
+ /* ─── Reduced motion ──────────────────────────────────── */
5153
5261
 
5154
5262
  @keyframes muka-spinner-rotate {
5155
5263
  to {
@@ -6298,6 +6406,133 @@ body {
6298
6406
  }
6299
6407
 
6300
6408
 
6409
+ /* Scrollbar */
6410
+ /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
6411
+
6412
+ .muka-scrollbar {
6413
+ display: flex;
6414
+ flex-shrink: 0;
6415
+ border-left: var(--border-width-regular) solid var(--color-border-default);
6416
+ background-color: var(--color-surface-level3);
6417
+ user-select: none;
6418
+ }
6419
+
6420
+ .muka-scrollbar--vertical {
6421
+ flex-direction: column;
6422
+ width: var(--size-2xl, 32px);
6423
+ align-self: stretch;
6424
+ }
6425
+
6426
+ .muka-scrollbar--horizontal {
6427
+ flex-direction: row;
6428
+ height: var(--size-2xl, 32px);
6429
+ width: 100%;
6430
+ border-left: none;
6431
+ border-top: var(--border-width-regular) solid var(--color-border-default);
6432
+ }
6433
+
6434
+ .muka-scrollbar__button {
6435
+ display: flex;
6436
+ align-items: center;
6437
+ justify-content: center;
6438
+ flex-shrink: 0;
6439
+ width: 100%;
6440
+ height: var(--size-2xl, 32px);
6441
+ padding: 0;
6442
+ border: none;
6443
+ background-color: var(--button-color-tertiary-background-default, var(--color-surface-level3));
6444
+ color: var(--color-text-default-default);
6445
+ cursor: pointer;
6446
+ }
6447
+
6448
+ .muka-scrollbar--horizontal .muka-scrollbar__button {
6449
+ width: var(--size-2xl, 32px);
6450
+ height: 100%;
6451
+ }
6452
+
6453
+ .muka-scrollbar__button:hover {
6454
+ background-color: var(--color-surface-hover);
6455
+ }
6456
+
6457
+ .muka-scrollbar__divider {
6458
+ flex-shrink: 0;
6459
+ width: 100%;
6460
+ height: 1px;
6461
+ background-color: var(--color-border-default);
6462
+ }
6463
+
6464
+ .muka-scrollbar--horizontal .muka-scrollbar__divider {
6465
+ width: 1px;
6466
+ height: 100%;
6467
+ }
6468
+
6469
+ .muka-scrollbar__track {
6470
+ position: relative;
6471
+ display: flex;
6472
+ flex-direction: column;
6473
+ flex: 1 1 auto;
6474
+ min-height: 0;
6475
+ width: 100%;
6476
+ }
6477
+
6478
+ .muka-scrollbar--horizontal .muka-scrollbar__track {
6479
+ flex-direction: row;
6480
+ min-width: 0;
6481
+ height: 100%;
6482
+ }
6483
+
6484
+ .muka-scrollbar__thumb {
6485
+ position: absolute;
6486
+ left: 0;
6487
+ top: 0;
6488
+ z-index: 1;
6489
+ display: flex;
6490
+ align-items: center;
6491
+ justify-content: center;
6492
+ width: 100%;
6493
+ /* Figma: scrollbar thumb fill = surface/level3 */
6494
+ background-color: var(--color-surface-level3);
6495
+ cursor: grab;
6496
+ touch-action: none;
6497
+ }
6498
+
6499
+ .muka-scrollbar--horizontal .muka-scrollbar__thumb {
6500
+ left: 0;
6501
+ top: 0;
6502
+ width: auto;
6503
+ height: 100%;
6504
+ margin-left: 0;
6505
+ margin-top: 0;
6506
+ }
6507
+
6508
+ .muka-scrollbar__thumb:active {
6509
+ cursor: grabbing;
6510
+ }
6511
+
6512
+ .muka-scrollbar__grip {
6513
+ display: flex;
6514
+ flex-direction: column;
6515
+ gap: 2px;
6516
+ width: 14px;
6517
+ }
6518
+
6519
+ .muka-scrollbar__grip::before,
6520
+ .muka-scrollbar__grip::after {
6521
+ content: '';
6522
+ display: block;
6523
+ width: 100%;
6524
+ height: 2px;
6525
+ border-radius: var(--border-radius-md);
6526
+ background-color: var(--color-text-subtle-default);
6527
+ }
6528
+
6529
+ .muka-scrollbar__spacer {
6530
+ flex: 1 1 auto;
6531
+ min-height: 0;
6532
+ background-color: var(--color-surface-level2);
6533
+ }
6534
+
6535
+
6301
6536
  /* SearchInput */
6302
6537
  /* SearchInput Component Styles */
6303
6538
 
@@ -6467,133 +6702,6 @@ body {
6467
6702
  }
6468
6703
 
6469
6704
 
6470
- /* Scrollbar */
6471
- /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
6472
-
6473
- .muka-scrollbar {
6474
- display: flex;
6475
- flex-shrink: 0;
6476
- border-left: var(--border-width-regular) solid var(--color-border-default);
6477
- background-color: var(--color-surface-level3);
6478
- user-select: none;
6479
- }
6480
-
6481
- .muka-scrollbar--vertical {
6482
- flex-direction: column;
6483
- width: var(--size-2xl, 32px);
6484
- align-self: stretch;
6485
- }
6486
-
6487
- .muka-scrollbar--horizontal {
6488
- flex-direction: row;
6489
- height: var(--size-2xl, 32px);
6490
- width: 100%;
6491
- border-left: none;
6492
- border-top: var(--border-width-regular) solid var(--color-border-default);
6493
- }
6494
-
6495
- .muka-scrollbar__button {
6496
- display: flex;
6497
- align-items: center;
6498
- justify-content: center;
6499
- flex-shrink: 0;
6500
- width: 100%;
6501
- height: var(--size-2xl, 32px);
6502
- padding: 0;
6503
- border: none;
6504
- background-color: var(--button-color-tertiary-background-default, var(--color-surface-level3));
6505
- color: var(--color-text-default-default);
6506
- cursor: pointer;
6507
- }
6508
-
6509
- .muka-scrollbar--horizontal .muka-scrollbar__button {
6510
- width: var(--size-2xl, 32px);
6511
- height: 100%;
6512
- }
6513
-
6514
- .muka-scrollbar__button:hover {
6515
- background-color: var(--color-surface-hover);
6516
- }
6517
-
6518
- .muka-scrollbar__divider {
6519
- flex-shrink: 0;
6520
- width: 100%;
6521
- height: 1px;
6522
- background-color: var(--color-border-default);
6523
- }
6524
-
6525
- .muka-scrollbar--horizontal .muka-scrollbar__divider {
6526
- width: 1px;
6527
- height: 100%;
6528
- }
6529
-
6530
- .muka-scrollbar__track {
6531
- position: relative;
6532
- display: flex;
6533
- flex-direction: column;
6534
- flex: 1 1 auto;
6535
- min-height: 0;
6536
- width: 100%;
6537
- }
6538
-
6539
- .muka-scrollbar--horizontal .muka-scrollbar__track {
6540
- flex-direction: row;
6541
- min-width: 0;
6542
- height: 100%;
6543
- }
6544
-
6545
- .muka-scrollbar__thumb {
6546
- position: absolute;
6547
- left: 0;
6548
- top: 0;
6549
- z-index: 1;
6550
- display: flex;
6551
- align-items: center;
6552
- justify-content: center;
6553
- width: 100%;
6554
- /* Figma: scrollbar thumb fill = surface/level3 */
6555
- background-color: var(--color-surface-level3);
6556
- cursor: grab;
6557
- touch-action: none;
6558
- }
6559
-
6560
- .muka-scrollbar--horizontal .muka-scrollbar__thumb {
6561
- left: 0;
6562
- top: 0;
6563
- width: auto;
6564
- height: 100%;
6565
- margin-left: 0;
6566
- margin-top: 0;
6567
- }
6568
-
6569
- .muka-scrollbar__thumb:active {
6570
- cursor: grabbing;
6571
- }
6572
-
6573
- .muka-scrollbar__grip {
6574
- display: flex;
6575
- flex-direction: column;
6576
- gap: 2px;
6577
- width: 14px;
6578
- }
6579
-
6580
- .muka-scrollbar__grip::before,
6581
- .muka-scrollbar__grip::after {
6582
- content: '';
6583
- display: block;
6584
- width: 100%;
6585
- height: 2px;
6586
- border-radius: var(--border-radius-md);
6587
- background-color: var(--color-text-subtle-default);
6588
- }
6589
-
6590
- .muka-scrollbar__spacer {
6591
- flex: 1 1 auto;
6592
- min-height: 0;
6593
- background-color: var(--color-surface-level2);
6594
- }
6595
-
6596
-
6597
6705
  /* RecordingBar */
6598
6706
  /* RecordingBar Component Styles */
6599
6707
 
@@ -6860,239 +6968,96 @@ body {
6860
6968
  }
6861
6969
 
6862
6970
 
6863
- /* RadioTile */
6864
- /* RadioTile Component Styles - Using Muka Design Tokens */
6971
+ /* Radio */
6972
+ /* Radio Component Styles - Using Muka Design Tokens */
6865
6973
 
6866
- /* Base tile styles - horizontal */
6867
- .muka-radio-tile {
6868
- display: flex;
6974
+ /* Wrapper - clickable label container */
6975
+ .muka-radio {
6976
+ display: inline-flex;
6869
6977
  align-items: center;
6870
6978
  gap: var(--spacing-4);
6871
- padding: var(--spacing-4);
6872
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
6873
- border-radius: var(--input-field-radius-lg);
6874
- background-color: var(--color-surface-level3);
6875
6979
  cursor: pointer;
6876
- transition: border-color 0.15s ease, border-width 0.15s ease;
6877
- overflow: hidden;
6878
- box-sizing: border-box;
6980
+ user-select: none;
6879
6981
  }
6880
6982
 
6881
- .muka-radio-tile--disabled {
6983
+ .muka-radio--disabled {
6882
6984
  cursor: not-allowed;
6883
6985
  opacity: 0.6;
6884
6986
  }
6885
6987
 
6886
- /* Selected state */
6887
- .muka-radio-tile[data-checked] {
6888
- border-width: var(--border-width-bold);
6889
- border-color: var(--color-action-default);
6890
- }
6891
-
6892
- /* Vertical layout */
6893
- .muka-radio-tile--vertical {
6894
- flex-direction: column;
6895
- align-items: center;
6896
- gap: var(--spacing-2);
6988
+ /* Control container */
6989
+ .muka-radio__control {
6897
6990
  position: relative;
6898
- width: 160px;
6899
- }
6900
-
6901
- /* Radio container */
6902
- .muka-radio-tile__radio {
6991
+ display: inline-flex;
6992
+ align-items: center;
6993
+ justify-content: center;
6903
6994
  flex-shrink: 0;
6904
6995
  }
6905
6996
 
6906
- /* Corner-positioned radio for vertical */
6907
- .muka-radio-tile__radio--corner {
6997
+ /* Hidden native input */
6998
+ .muka-radio__input {
6908
6999
  position: absolute;
6909
- top: var(--spacing-4);
6910
- left: var(--spacing-4);
6911
- }
6912
-
6913
- /* Adjust corner position when selected (border is thicker) */
6914
- .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
6915
- top: calc(var(--spacing-4) - 1px);
6916
- left: calc(var(--spacing-4) - 1px);
7000
+ width: 1px;
7001
+ height: 1px;
7002
+ padding: 0;
7003
+ margin: -1px;
7004
+ overflow: hidden;
7005
+ clip: rect(0, 0, 0, 0);
7006
+ white-space: nowrap;
7007
+ border: 0;
6917
7008
  }
6918
7009
 
6919
- /* Icon */
6920
- .muka-radio-tile__icon {
7010
+ /* Visual indicator (circle) */
7011
+ .muka-radio__indicator {
6921
7012
  display: flex;
6922
7013
  align-items: center;
6923
7014
  justify-content: center;
6924
- flex-shrink: 0;
6925
- width: var(--icon-size-default);
6926
- height: var(--icon-size-default);
6927
- color: var(--color-text-default-default);
7015
+ width: var(--radio-size-default);
7016
+ height: var(--radio-size-default);
7017
+ border-radius: var(--border-radius-full);
7018
+ background-color: var(--radio-color-default-background);
7019
+ border: var(--border-width-regular) solid var(--radio-color-default-border);
7020
+ transition: all 0.15s ease;
7021
+ box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.15);
6928
7022
  }
6929
7023
 
6930
- .muka-radio-tile__icon svg {
6931
- width: 100%;
6932
- height: 100%;
7024
+ /* Size variants */
7025
+ .muka-radio--sm .muka-radio__indicator {
7026
+ width: var(--radio-size-sm);
7027
+ height: var(--radio-size-sm);
6933
7028
  }
6934
7029
 
6935
- /* Image */
6936
- .muka-radio-tile__image {
6937
- flex-shrink: 0;
6938
- overflow: hidden;
6939
- border-radius: var(--border-radius-sm);
7030
+ .muka-radio--lg .muka-radio__indicator {
7031
+ width: var(--radio-size-lg);
7032
+ height: var(--radio-size-lg);
6940
7033
  }
6941
7034
 
6942
- .muka-radio-tile__image img {
6943
- display: block;
6944
- width: 100%;
6945
- height: 100%;
6946
- object-fit: cover;
7035
+ /* Inner dot (shown when checked) */
7036
+ .muka-radio__dot {
7037
+ width: var(--radio-dot-size-default);
7038
+ height: var(--radio-dot-size-default);
7039
+ border-radius: var(--border-radius-full);
7040
+ background-color: var(--radio-color-default-dot);
7041
+ transform: scale(0);
7042
+ transition: transform 0.15s ease;
6947
7043
  }
6948
7044
 
6949
- /* Horizontal image sizing */
6950
- .muka-radio-tile__image--horizontal {
6951
- width: 40px;
6952
- height: 40px;
7045
+ .muka-radio--sm .muka-radio__dot {
7046
+ width: var(--radio-dot-size-sm);
7047
+ height: var(--radio-dot-size-sm);
6953
7048
  }
6954
7049
 
6955
- /* Vertical image sizing */
6956
- .muka-radio-tile--vertical .muka-radio-tile__image {
6957
- width: 100%;
6958
- aspect-ratio: 4/3;
7050
+ .muka-radio--lg .muka-radio__dot {
7051
+ width: var(--radio-dot-size-lg);
7052
+ height: var(--radio-dot-size-lg);
6959
7053
  }
6960
7054
 
6961
- /* Content container */
6962
- .muka-radio-tile__content {
6963
- display: flex;
6964
- flex-direction: column;
6965
- flex: 1;
6966
- min-width: 0;
6967
- gap: var(--spacing-1);
6968
- }
6969
-
6970
- /* Label */
6971
- .muka-radio-tile__label {
6972
- font-family: var(--text-body-lg-regular-fontFamily);
6973
- font-weight: var(--text-body-lg-regular-fontWeight);
6974
- font-size: var(--text-body-lg-regular-fontSize);
6975
- line-height: var(--text-body-lg-regular-lineHeight);
6976
- color: var(--color-text-default-default);
6977
- }
6978
-
6979
- .muka-radio-tile__label--bold {
6980
- font-family: var(--text-label-lg-semibold-fontFamily);
6981
- font-weight: var(--text-label-lg-semibold-fontWeight);
6982
- font-size: var(--text-label-lg-semibold-fontSize);
6983
- line-height: var(--text-label-lg-semibold-lineHeight);
6984
- }
6985
-
6986
- .muka-radio-tile__label--center {
6987
- text-align: center;
6988
- }
6989
-
6990
- /* Caption */
6991
- .muka-radio-tile__caption {
6992
- font-family: var(--text-body-base-regular-fontFamily);
6993
- font-weight: var(--text-body-base-regular-fontWeight);
6994
- font-size: var(--text-body-base-regular-fontSize);
6995
- line-height: var(--text-body-base-regular-lineHeight);
6996
- color: var(--color-text-subtle-default);
6997
- }
6998
-
6999
- /* Disabled states */
7000
- .muka-radio-tile--disabled .muka-radio-tile__label,
7001
- .muka-radio-tile--disabled .muka-radio-tile__icon {
7002
- color: var(--color-text-subtle-default);
7003
- }
7004
-
7005
-
7006
- /* Radio */
7007
- /* Radio Component Styles - Using Muka Design Tokens */
7008
-
7009
- /* Wrapper - clickable label container */
7010
- .muka-radio {
7011
- display: inline-flex;
7012
- align-items: center;
7013
- gap: var(--spacing-4);
7014
- cursor: pointer;
7015
- user-select: none;
7016
- }
7017
-
7018
- .muka-radio--disabled {
7019
- cursor: not-allowed;
7020
- opacity: 0.6;
7021
- }
7022
-
7023
- /* Control container */
7024
- .muka-radio__control {
7025
- position: relative;
7026
- display: inline-flex;
7027
- align-items: center;
7028
- justify-content: center;
7029
- flex-shrink: 0;
7030
- }
7031
-
7032
- /* Hidden native input */
7033
- .muka-radio__input {
7034
- position: absolute;
7035
- width: 1px;
7036
- height: 1px;
7037
- padding: 0;
7038
- margin: -1px;
7039
- overflow: hidden;
7040
- clip: rect(0, 0, 0, 0);
7041
- white-space: nowrap;
7042
- border: 0;
7043
- }
7044
-
7045
- /* Visual indicator (circle) */
7046
- .muka-radio__indicator {
7047
- display: flex;
7048
- align-items: center;
7049
- justify-content: center;
7050
- width: var(--radio-size-default);
7051
- height: var(--radio-size-default);
7052
- border-radius: var(--border-radius-full);
7053
- background-color: var(--radio-color-default-background);
7054
- border: var(--border-width-regular) solid var(--radio-color-default-border);
7055
- transition: all 0.15s ease;
7056
- box-shadow: inset 0 1px 2px 0 rgba(26, 26, 26, 0.15);
7057
- }
7058
-
7059
- /* Size variants */
7060
- .muka-radio--sm .muka-radio__indicator {
7061
- width: var(--radio-size-sm);
7062
- height: var(--radio-size-sm);
7063
- }
7064
-
7065
- .muka-radio--lg .muka-radio__indicator {
7066
- width: var(--radio-size-lg);
7067
- height: var(--radio-size-lg);
7068
- }
7069
-
7070
- /* Inner dot (shown when checked) */
7071
- .muka-radio__dot {
7072
- width: var(--radio-dot-size-default);
7073
- height: var(--radio-dot-size-default);
7074
- border-radius: var(--border-radius-full);
7075
- background-color: var(--radio-color-default-dot);
7076
- transform: scale(0);
7077
- transition: transform 0.15s ease;
7078
- }
7079
-
7080
- .muka-radio--sm .muka-radio__dot {
7081
- width: var(--radio-dot-size-sm);
7082
- height: var(--radio-dot-size-sm);
7083
- }
7084
-
7085
- .muka-radio--lg .muka-radio__dot {
7086
- width: var(--radio-dot-size-lg);
7087
- height: var(--radio-dot-size-lg);
7088
- }
7089
-
7090
- /* Hover state - removed per design */
7091
-
7092
- /* Focus state */
7093
- .muka-radio__input:focus-visible + .muka-radio__indicator {
7094
- outline: 2px solid var(--color-border-focus);
7095
- outline-offset: 2px;
7055
+ /* Hover state - removed per design */
7056
+
7057
+ /* Focus state */
7058
+ .muka-radio__input:focus-visible + .muka-radio__indicator {
7059
+ outline: 2px solid var(--color-border-focus);
7060
+ outline-offset: 2px;
7096
7061
  }
7097
7062
 
7098
7063
  /* Checked state */
@@ -8016,107 +7981,250 @@ button.muka-progress-tracker__tab:focus-visible {
8016
7981
  }
8017
7982
 
8018
7983
 
8019
- /* Progress */
8020
- /* Progress Component Styles - Using Muka Design Tokens */
8021
-
8022
- /* ========================================
8023
- BAR VARIANT
8024
- ======================================== */
7984
+ /* RadioTile */
7985
+ /* RadioTile Component Styles - Using Muka Design Tokens */
8025
7986
 
8026
- .muka-progress--bar {
7987
+ /* Base tile styles - horizontal */
7988
+ .muka-radio-tile {
8027
7989
  display: flex;
8028
7990
  align-items: center;
8029
- gap: var(--spacing-2);
8030
- width: 100%;
8031
- }
8032
-
8033
- .muka-progress--bar .muka-progress__track {
8034
- flex: 1;
8035
- background-color: var(--color-surface-level1);
8036
- border-radius: var(--border-radius-full);
7991
+ gap: var(--spacing-4);
7992
+ padding: var(--spacing-4);
7993
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
7994
+ border-radius: var(--input-field-radius-lg);
7995
+ background-color: var(--color-surface-level3);
7996
+ cursor: pointer;
7997
+ transition: border-color 0.15s ease, border-width 0.15s ease;
8037
7998
  overflow: hidden;
7999
+ box-sizing: border-box;
8038
8000
  }
8039
8001
 
8040
- .muka-progress--bar.muka-progress--sm .muka-progress__track {
8041
- height: var(--progress-size-bar-height-sm);
8042
- }
8043
-
8044
- .muka-progress--bar.muka-progress--md .muka-progress__track {
8045
- height: var(--progress-size-bar-height-md);
8002
+ .muka-radio-tile--disabled {
8003
+ cursor: not-allowed;
8004
+ opacity: 0.6;
8046
8005
  }
8047
8006
 
8048
- .muka-progress--bar.muka-progress--lg .muka-progress__track {
8049
- height: var(--progress-size-bar-height-lg);
8007
+ /* Selected state */
8008
+ .muka-radio-tile[data-checked] {
8009
+ border-width: var(--border-width-bold);
8010
+ border-color: var(--color-action-default);
8050
8011
  }
8051
8012
 
8052
- .muka-progress--bar .muka-progress__fill {
8053
- height: 100%;
8054
- background-color: var(--color-action-default);
8055
- border-radius: var(--border-radius-full);
8056
- transition: width 0.3s ease;
8013
+ /* Vertical layout */
8014
+ .muka-radio-tile--vertical {
8015
+ flex-direction: column;
8016
+ align-items: center;
8017
+ gap: var(--spacing-2);
8018
+ position: relative;
8019
+ width: 160px;
8057
8020
  }
8058
8021
 
8059
- .muka-progress--bar .muka-progress__label {
8022
+ /* Radio container */
8023
+ .muka-radio-tile__radio {
8060
8024
  flex-shrink: 0;
8061
- font-family: var(--text-label-sm-semibold-fontFamily);
8062
- font-weight: var(--text-label-sm-semibold-fontWeight);
8063
- font-size: var(--text-label-sm-semibold-fontSize);
8064
- line-height: var(--text-label-sm-semibold-lineHeight);
8065
- color: var(--color-text-default-default);
8066
- min-width: 3ch;
8067
- text-align: right;
8068
8025
  }
8069
8026
 
8070
- /* Indeterminate animation for bar */
8071
- .muka-progress--bar.muka-progress--indeterminate .muka-progress__fill {
8072
- width: 40%;
8073
- animation: muka-progress-bar-indeterminate 1.5s ease-in-out infinite;
8027
+ /* Corner-positioned radio for vertical */
8028
+ .muka-radio-tile__radio--corner {
8029
+ position: absolute;
8030
+ top: var(--spacing-4);
8031
+ left: var(--spacing-4);
8074
8032
  }
8075
8033
 
8076
- @keyframes muka-progress-bar-indeterminate {
8077
- 0% {
8078
- transform: translateX(-100%);
8079
- }
8080
- 100% {
8081
- transform: translateX(250%);
8082
- }
8034
+ /* Adjust corner position when selected (border is thicker) */
8035
+ .muka-radio-tile[data-checked] .muka-radio-tile__radio--corner {
8036
+ top: calc(var(--spacing-4) - 1px);
8037
+ left: calc(var(--spacing-4) - 1px);
8083
8038
  }
8084
8039
 
8085
- /* ========================================
8086
- CIRCLE VARIANT
8087
- ======================================== */
8088
-
8089
- .muka-progress--circle {
8090
- position: relative;
8091
- display: inline-flex;
8040
+ /* Icon */
8041
+ .muka-radio-tile__icon {
8042
+ display: flex;
8092
8043
  align-items: center;
8093
8044
  justify-content: center;
8045
+ flex-shrink: 0;
8046
+ width: var(--icon-size-default);
8047
+ height: var(--icon-size-default);
8048
+ color: var(--color-text-default-default);
8094
8049
  }
8095
8050
 
8096
- .muka-progress--circle.muka-progress--sm {
8097
- width: var(--progress-size-circle-diameter-sm);
8098
- height: var(--progress-size-circle-diameter-sm);
8099
- }
8100
-
8101
- .muka-progress--circle.muka-progress--md {
8102
- width: var(--progress-size-circle-diameter-md);
8103
- height: var(--progress-size-circle-diameter-md);
8051
+ .muka-radio-tile__icon svg {
8052
+ width: 100%;
8053
+ height: 100%;
8104
8054
  }
8105
8055
 
8106
- .muka-progress--circle.muka-progress--lg {
8107
- width: var(--progress-size-circle-diameter-lg);
8108
- height: var(--progress-size-circle-diameter-lg);
8056
+ /* Image */
8057
+ .muka-radio-tile__image {
8058
+ flex-shrink: 0;
8059
+ overflow: hidden;
8060
+ border-radius: var(--border-radius-sm);
8109
8061
  }
8110
8062
 
8111
- .muka-progress__circle {
8063
+ .muka-radio-tile__image img {
8064
+ display: block;
8112
8065
  width: 100%;
8113
8066
  height: 100%;
8114
- transform: rotate(-90deg);
8067
+ object-fit: cover;
8115
8068
  }
8116
8069
 
8117
- .muka-progress--circle .muka-progress__track {
8118
- fill: none;
8119
- stroke: var(--color-surface-level1);
8070
+ /* Horizontal image sizing */
8071
+ .muka-radio-tile__image--horizontal {
8072
+ width: 40px;
8073
+ height: 40px;
8074
+ }
8075
+
8076
+ /* Vertical image sizing */
8077
+ .muka-radio-tile--vertical .muka-radio-tile__image {
8078
+ width: 100%;
8079
+ aspect-ratio: 4/3;
8080
+ }
8081
+
8082
+ /* Content container */
8083
+ .muka-radio-tile__content {
8084
+ display: flex;
8085
+ flex-direction: column;
8086
+ flex: 1;
8087
+ min-width: 0;
8088
+ gap: var(--spacing-1);
8089
+ }
8090
+
8091
+ /* Label */
8092
+ .muka-radio-tile__label {
8093
+ font-family: var(--text-body-lg-regular-fontFamily);
8094
+ font-weight: var(--text-body-lg-regular-fontWeight);
8095
+ font-size: var(--text-body-lg-regular-fontSize);
8096
+ line-height: var(--text-body-lg-regular-lineHeight);
8097
+ color: var(--color-text-default-default);
8098
+ }
8099
+
8100
+ .muka-radio-tile__label--bold {
8101
+ font-family: var(--text-label-lg-semibold-fontFamily);
8102
+ font-weight: var(--text-label-lg-semibold-fontWeight);
8103
+ font-size: var(--text-label-lg-semibold-fontSize);
8104
+ line-height: var(--text-label-lg-semibold-lineHeight);
8105
+ }
8106
+
8107
+ .muka-radio-tile__label--center {
8108
+ text-align: center;
8109
+ }
8110
+
8111
+ /* Caption */
8112
+ .muka-radio-tile__caption {
8113
+ font-family: var(--text-body-base-regular-fontFamily);
8114
+ font-weight: var(--text-body-base-regular-fontWeight);
8115
+ font-size: var(--text-body-base-regular-fontSize);
8116
+ line-height: var(--text-body-base-regular-lineHeight);
8117
+ color: var(--color-text-subtle-default);
8118
+ }
8119
+
8120
+ /* Disabled states */
8121
+ .muka-radio-tile--disabled .muka-radio-tile__label,
8122
+ .muka-radio-tile--disabled .muka-radio-tile__icon {
8123
+ color: var(--color-text-subtle-default);
8124
+ }
8125
+
8126
+
8127
+ /* Progress */
8128
+ /* Progress Component Styles - Using Muka Design Tokens */
8129
+
8130
+ /* ========================================
8131
+ BAR VARIANT
8132
+ ======================================== */
8133
+
8134
+ .muka-progress--bar {
8135
+ display: flex;
8136
+ align-items: center;
8137
+ gap: var(--spacing-2);
8138
+ width: 100%;
8139
+ }
8140
+
8141
+ .muka-progress--bar .muka-progress__track {
8142
+ flex: 1;
8143
+ background-color: var(--color-surface-level1);
8144
+ border-radius: var(--border-radius-full);
8145
+ overflow: hidden;
8146
+ }
8147
+
8148
+ .muka-progress--bar.muka-progress--sm .muka-progress__track {
8149
+ height: var(--progress-size-bar-height-sm);
8150
+ }
8151
+
8152
+ .muka-progress--bar.muka-progress--md .muka-progress__track {
8153
+ height: var(--progress-size-bar-height-md);
8154
+ }
8155
+
8156
+ .muka-progress--bar.muka-progress--lg .muka-progress__track {
8157
+ height: var(--progress-size-bar-height-lg);
8158
+ }
8159
+
8160
+ .muka-progress--bar .muka-progress__fill {
8161
+ height: 100%;
8162
+ background-color: var(--color-action-default);
8163
+ border-radius: var(--border-radius-full);
8164
+ transition: width 0.3s ease;
8165
+ }
8166
+
8167
+ .muka-progress--bar .muka-progress__label {
8168
+ flex-shrink: 0;
8169
+ font-family: var(--text-label-sm-semibold-fontFamily);
8170
+ font-weight: var(--text-label-sm-semibold-fontWeight);
8171
+ font-size: var(--text-label-sm-semibold-fontSize);
8172
+ line-height: var(--text-label-sm-semibold-lineHeight);
8173
+ color: var(--color-text-default-default);
8174
+ min-width: 3ch;
8175
+ text-align: right;
8176
+ }
8177
+
8178
+ /* Indeterminate animation for bar */
8179
+ .muka-progress--bar.muka-progress--indeterminate .muka-progress__fill {
8180
+ width: 40%;
8181
+ animation: muka-progress-bar-indeterminate 1.5s ease-in-out infinite;
8182
+ }
8183
+
8184
+ @keyframes muka-progress-bar-indeterminate {
8185
+ 0% {
8186
+ transform: translateX(-100%);
8187
+ }
8188
+ 100% {
8189
+ transform: translateX(250%);
8190
+ }
8191
+ }
8192
+
8193
+ /* ========================================
8194
+ CIRCLE VARIANT
8195
+ ======================================== */
8196
+
8197
+ .muka-progress--circle {
8198
+ position: relative;
8199
+ display: inline-flex;
8200
+ align-items: center;
8201
+ justify-content: center;
8202
+ }
8203
+
8204
+ .muka-progress--circle.muka-progress--sm {
8205
+ width: var(--progress-size-circle-diameter-sm);
8206
+ height: var(--progress-size-circle-diameter-sm);
8207
+ }
8208
+
8209
+ .muka-progress--circle.muka-progress--md {
8210
+ width: var(--progress-size-circle-diameter-md);
8211
+ height: var(--progress-size-circle-diameter-md);
8212
+ }
8213
+
8214
+ .muka-progress--circle.muka-progress--lg {
8215
+ width: var(--progress-size-circle-diameter-lg);
8216
+ height: var(--progress-size-circle-diameter-lg);
8217
+ }
8218
+
8219
+ .muka-progress__circle {
8220
+ width: 100%;
8221
+ height: 100%;
8222
+ transform: rotate(-90deg);
8223
+ }
8224
+
8225
+ .muka-progress--circle .muka-progress__track {
8226
+ fill: none;
8227
+ stroke: var(--color-surface-level1);
8120
8228
  }
8121
8229
 
8122
8230
  .muka-progress--circle.muka-progress--sm .muka-progress__track,
@@ -8302,103 +8410,6 @@ button.muka-progress-tracker__tab:focus-visible {
8302
8410
  }
8303
8411
 
8304
8412
 
8305
- /* PriceTag */
8306
- /* PriceTag Component Styles - Using Muka Design Tokens */
8307
-
8308
- .muka-price-tag {
8309
- display: flex;
8310
- flex-shrink: 0;
8311
- }
8312
-
8313
- /* Medium: stacked layout (price on top, unit below) */
8314
- .muka-price-tag--md {
8315
- flex-direction: column;
8316
- align-items: flex-end;
8317
- justify-content: center;
8318
- }
8319
-
8320
- /* Small: inline layout */
8321
- .muka-price-tag--sm {
8322
- flex-direction: row;
8323
- align-items: center;
8324
- gap: 3px;
8325
- }
8326
-
8327
- /* Amount row: currency + numbers */
8328
- .muka-price-tag__amount {
8329
- display: flex;
8330
- align-items: flex-start;
8331
- gap: var(--spacing-1);
8332
- }
8333
-
8334
- .muka-price-tag--sm .muka-price-tag__amount {
8335
- align-items: center;
8336
- }
8337
-
8338
- /* Numbers group: whole + decimal + cents */
8339
- .muka-price-tag__numbers {
8340
- display: flex;
8341
- align-items: baseline;
8342
- }
8343
-
8344
- /* ─── Medium size typography ──────────────────────────── */
8345
-
8346
- .muka-price-tag--md .muka-price-tag__currency {
8347
- font-family: var(--text-subheading-md-fontFamily);
8348
- font-weight: var(--text-subheading-md-fontWeight);
8349
- font-size: var(--text-subheading-md-fontSize);
8350
- line-height: var(--text-label-2xl-bold-lineHeight);
8351
- color: var(--color-text-subtle-default);
8352
- }
8353
-
8354
- .muka-price-tag--md .muka-price-tag__whole {
8355
- font-family: var(--text-label-2xl-bold-fontFamily);
8356
- font-weight: var(--text-label-2xl-bold-fontWeight);
8357
- font-size: var(--text-label-2xl-bold-fontSize);
8358
- line-height: var(--text-label-2xl-bold-lineHeight);
8359
- color: var(--color-text-default-default);
8360
- }
8361
-
8362
- .muka-price-tag--md .muka-price-tag__decimal,
8363
- .muka-price-tag--md .muka-price-tag__cents {
8364
- font-family: var(--text-label-md-bold-fontFamily);
8365
- font-weight: var(--text-label-md-bold-fontWeight);
8366
- font-size: var(--text-label-md-bold-fontSize);
8367
- line-height: var(--text-label-md-bold-lineHeight);
8368
- color: var(--color-text-default-default);
8369
- }
8370
-
8371
- /* ─── Small size typography ───────────────────────────── */
8372
-
8373
- .muka-price-tag--sm .muka-price-tag__currency {
8374
- font-family: var(--text-body-base-regular-fontFamily);
8375
- font-weight: var(--text-body-base-regular-fontWeight);
8376
- font-size: var(--text-body-base-regular-fontSize);
8377
- line-height: var(--text-label-md-bold-lineHeight);
8378
- color: var(--color-text-subtle-default);
8379
- }
8380
-
8381
- .muka-price-tag--sm .muka-price-tag__whole,
8382
- .muka-price-tag--sm .muka-price-tag__decimal,
8383
- .muka-price-tag--sm .muka-price-tag__cents {
8384
- font-family: var(--text-label-md-bold-fontFamily);
8385
- font-weight: var(--text-label-md-bold-fontWeight);
8386
- font-size: var(--text-label-md-bold-fontSize);
8387
- line-height: var(--text-label-md-bold-lineHeight);
8388
- color: var(--color-text-default-default);
8389
- }
8390
-
8391
- /* ─── Unit label (same for both sizes) ────────────────── */
8392
-
8393
- .muka-price-tag__unit {
8394
- font-family: var(--text-body-sm-regular-fontFamily);
8395
- font-weight: var(--text-body-sm-regular-fontWeight);
8396
- font-size: var(--text-body-sm-regular-fontSize);
8397
- line-height: var(--text-body-sm-regular-lineHeight);
8398
- color: var(--color-text-subtle-default);
8399
- }
8400
-
8401
-
8402
8413
  /* Popover */
8403
8414
  /* Popover Component Styles */
8404
8415
 
@@ -8827,10 +8838,107 @@ button.muka-progress-tracker__tab:focus-visible {
8827
8838
  }
8828
8839
 
8829
8840
 
8830
- /* PieChart */
8831
- /* PieChart Component Styles - Using Muka Design Tokens */
8841
+ /* PriceTag */
8842
+ /* PriceTag Component Styles - Using Muka Design Tokens */
8832
8843
 
8833
- .muka-piechart {
8844
+ .muka-price-tag {
8845
+ display: flex;
8846
+ flex-shrink: 0;
8847
+ }
8848
+
8849
+ /* Medium: stacked layout (price on top, unit below) */
8850
+ .muka-price-tag--md {
8851
+ flex-direction: column;
8852
+ align-items: flex-end;
8853
+ justify-content: center;
8854
+ }
8855
+
8856
+ /* Small: inline layout */
8857
+ .muka-price-tag--sm {
8858
+ flex-direction: row;
8859
+ align-items: center;
8860
+ gap: 3px;
8861
+ }
8862
+
8863
+ /* Amount row: currency + numbers */
8864
+ .muka-price-tag__amount {
8865
+ display: flex;
8866
+ align-items: flex-start;
8867
+ gap: var(--spacing-1);
8868
+ }
8869
+
8870
+ .muka-price-tag--sm .muka-price-tag__amount {
8871
+ align-items: center;
8872
+ }
8873
+
8874
+ /* Numbers group: whole + decimal + cents */
8875
+ .muka-price-tag__numbers {
8876
+ display: flex;
8877
+ align-items: baseline;
8878
+ }
8879
+
8880
+ /* ─── Medium size typography ──────────────────────────── */
8881
+
8882
+ .muka-price-tag--md .muka-price-tag__currency {
8883
+ font-family: var(--text-subheading-md-fontFamily);
8884
+ font-weight: var(--text-subheading-md-fontWeight);
8885
+ font-size: var(--text-subheading-md-fontSize);
8886
+ line-height: var(--text-label-2xl-bold-lineHeight);
8887
+ color: var(--color-text-subtle-default);
8888
+ }
8889
+
8890
+ .muka-price-tag--md .muka-price-tag__whole {
8891
+ font-family: var(--text-label-2xl-bold-fontFamily);
8892
+ font-weight: var(--text-label-2xl-bold-fontWeight);
8893
+ font-size: var(--text-label-2xl-bold-fontSize);
8894
+ line-height: var(--text-label-2xl-bold-lineHeight);
8895
+ color: var(--color-text-default-default);
8896
+ }
8897
+
8898
+ .muka-price-tag--md .muka-price-tag__decimal,
8899
+ .muka-price-tag--md .muka-price-tag__cents {
8900
+ font-family: var(--text-label-md-bold-fontFamily);
8901
+ font-weight: var(--text-label-md-bold-fontWeight);
8902
+ font-size: var(--text-label-md-bold-fontSize);
8903
+ line-height: var(--text-label-md-bold-lineHeight);
8904
+ color: var(--color-text-default-default);
8905
+ }
8906
+
8907
+ /* ─── Small size typography ───────────────────────────── */
8908
+
8909
+ .muka-price-tag--sm .muka-price-tag__currency {
8910
+ font-family: var(--text-body-base-regular-fontFamily);
8911
+ font-weight: var(--text-body-base-regular-fontWeight);
8912
+ font-size: var(--text-body-base-regular-fontSize);
8913
+ line-height: var(--text-label-md-bold-lineHeight);
8914
+ color: var(--color-text-subtle-default);
8915
+ }
8916
+
8917
+ .muka-price-tag--sm .muka-price-tag__whole,
8918
+ .muka-price-tag--sm .muka-price-tag__decimal,
8919
+ .muka-price-tag--sm .muka-price-tag__cents {
8920
+ font-family: var(--text-label-md-bold-fontFamily);
8921
+ font-weight: var(--text-label-md-bold-fontWeight);
8922
+ font-size: var(--text-label-md-bold-fontSize);
8923
+ line-height: var(--text-label-md-bold-lineHeight);
8924
+ color: var(--color-text-default-default);
8925
+ }
8926
+
8927
+ /* ─── Unit label (same for both sizes) ────────────────── */
8928
+
8929
+ .muka-price-tag__unit {
8930
+ font-family: var(--text-body-sm-regular-fontFamily);
8931
+ font-weight: var(--text-body-sm-regular-fontWeight);
8932
+ font-size: var(--text-body-sm-regular-fontSize);
8933
+ line-height: var(--text-body-sm-regular-lineHeight);
8934
+ color: var(--color-text-subtle-default);
8935
+ }
8936
+
8937
+
8938
+ /* PieChart */
8939
+ /* PieChart Component Styles - Using Muka Design Tokens */
8940
+
8941
+ .muka-piechart {
8834
8942
  display: inline-flex;
8835
8943
  align-items: center;
8836
8944
  gap: var(--spacing-4);
@@ -9001,6 +9109,27 @@ button.muka-progress-tracker__tab:focus-visible {
9001
9109
  color: var(--color-text-default-default);
9002
9110
  }
9003
9111
 
9112
+ /*
9113
+ * Touch devices (phones, tablets without a mouse) have nothing to drag a file
9114
+ * from: the card and its "or drop here" hint go, and only the button stays.
9115
+ * Keyed on input capability, not width, so a narrow desktop window keeps
9116
+ * its drop zone.
9117
+ */
9118
+ @media (hover: none) and (pointer: coarse) {
9119
+ .muka-photo-uploader__dropzone {
9120
+ align-items: flex-start;
9121
+ padding: 0;
9122
+ background-color: transparent;
9123
+ border: none;
9124
+ border-radius: 0;
9125
+ cursor: default;
9126
+ }
9127
+
9128
+ .muka-photo-uploader__dropzone-text {
9129
+ display: none;
9130
+ }
9131
+ }
9132
+
9004
9133
  /* ─── Disabled ────────────────────────────────────────── */
9005
9134
  .muka-photo-uploader--disabled .muka-photo-uploader__dropzone {
9006
9135
  cursor: not-allowed;
@@ -14692,631 +14821,290 @@ button.muka-chat-photo-grid__tile:focus-visible {
14692
14821
  }
14693
14822
 
14694
14823
 
14695
- /* ChatMessage */
14696
- /* ChatMessage Component Styles */
14824
+ /* ChatEvent */
14825
+ /* ChatEvent: a line in a chat that isn't a message from a person */
14697
14826
 
14698
- .muka-chat-message {
14827
+ .muka-chat-event {
14699
14828
  display: flex;
14700
14829
  flex-direction: column;
14830
+ align-items: center;
14831
+ gap: var(--spacing-2);
14701
14832
  width: 100%;
14702
- max-width: 100%;
14833
+ padding: 0 var(--spacing-4);
14834
+ box-sizing: border-box;
14835
+ text-align: center;
14703
14836
  }
14704
14837
 
14705
- /* ─── Row: avatar rail + bubble ────────────────────────── */
14706
-
14707
- .muka-chat-message__row {
14708
- display: grid;
14709
- grid-template-columns: minmax(0, 1fr);
14710
- grid-template-areas: 'bubble';
14711
- column-gap: var(--chatbubble-row-gap);
14712
- width: 100%;
14838
+ .muka-chat-event__text {
14839
+ margin: 0;
14840
+ max-width: var(--chatbubble-max-width);
14841
+ /* Default text, not subtle: subtle reaches only ~3:1 on the chat surfaces,
14842
+ and this is body text. Size and centring set it apart from messages. */
14843
+ color: var(--color-text-default-default);
14844
+ font-family: var(--text-body-sm-regular-fontFamily);
14845
+ font-weight: var(--text-body-sm-regular-fontWeight);
14846
+ font-size: var(--text-body-sm-regular-fontSize);
14847
+ line-height: var(--text-body-sm-regular-lineHeight);
14713
14848
  }
14714
14849
 
14715
- .muka-chat-message--has-avatar .muka-chat-message__row {
14716
- grid-template-columns: auto minmax(0, 1fr);
14717
- grid-template-areas: 'rail bubble';
14850
+ .muka-chat-event__timestamp {
14851
+ white-space: nowrap;
14718
14852
  }
14719
14853
 
14720
- .muka-chat-message__rail {
14721
- grid-area: rail;
14722
- /* Sits on the bubble's baseline (Figma 5355:44091) */
14723
- align-self: end;
14854
+ .muka-chat-event__media {
14724
14855
  display: flex;
14856
+ flex-wrap: wrap;
14725
14857
  justify-content: center;
14726
- min-width: var(--chatbubble-avatar-size);
14858
+ gap: var(--spacing-2);
14727
14859
  }
14728
14860
 
14729
- /*
14730
- * The Small size in Figma (5373:44702) halves the avatar to 32px and tightens
14731
- * the gap to the bubble. Size the avatar itself, not just the rail, so the
14732
- * bubbles keep their alignment. The header row keeps its own gap.
14733
- */
14734
- @media (max-width: 1023px) {
14735
- .muka-chat-message__row {
14736
- column-gap: var(--chatbubble-row-gap-compact);
14737
- }
14738
-
14739
- .muka-chat-message__rail {
14740
- min-width: var(--chatbubble-avatar-size-compact);
14741
- }
14742
-
14743
- /* Outweighs the avatar's own size class, which sets width/height directly */
14744
- .muka-chat-message .muka-chat-message__rail > * {
14745
- width: var(--chatbubble-avatar-size-compact);
14746
- height: var(--chatbubble-avatar-size-compact);
14747
- }
14861
+ /* Day divider: a small pill */
14862
+ .muka-chat-event__pill {
14863
+ display: inline-flex;
14864
+ align-items: center;
14865
+ padding: var(--spacing-1) var(--spacing-3);
14866
+ border-radius: var(--radius-full);
14867
+ background-color: var(--color-surface-level2);
14868
+ color: var(--color-text-default-default);
14869
+ font-family: var(--text-label-sm-regular-fontFamily);
14870
+ font-weight: var(--text-label-sm-regular-fontWeight);
14871
+ font-size: var(--text-label-sm-regular-fontSize);
14872
+ line-height: var(--text-label-sm-leading);
14748
14873
  }
14749
14874
 
14750
- /* ─── Bubble surface ───────────────────────────────────── */
14751
14875
 
14752
- .muka-chat-message__bubble {
14753
- grid-area: bubble;
14754
- /*
14755
- * Width follows the content: a single line hugs, and once the text wraps the
14756
- * bubble fills to the shared max width. Robust to string or rich children —
14757
- * no length measuring needed (Figma `Text length` on 5355:44091).
14758
- */
14759
- width: fit-content;
14760
- /*
14761
- * Ceiling from design (Figma 5355:44091). Below it, wrapping text fills the
14762
- * row; above it the fixed cap leaves room for own/peer alignment.
14763
- */
14764
- max-width: var(--chatbubble-max-width);
14765
- position: relative;
14876
+ /* ChatComposer */
14877
+ /* ChatComposer Component Styles */
14878
+
14879
+ /*
14880
+ * The composer is a bare, fill-width row: no padding, background, border or
14881
+ * max-width of its own (Figma 5243:14141). Whatever hosts it owns the
14882
+ * container — see BottomBar's `chat` variant.
14883
+ */
14884
+ .muka-chat-composer {
14766
14885
  display: flex;
14767
14886
  flex-direction: column;
14768
- gap: var(--chatbubble-gap);
14769
- padding: var(--chatbubble-padding-block) var(--chatbubble-padding-inline);
14770
- border-radius: var(--chatbubble-radius);
14771
- border: var(--border-width-regular) solid transparent;
14772
- box-shadow: var(--shadow-level2);
14773
- word-break: break-word;
14774
- }
14775
-
14776
- /* Media, an embed or an action stack always run the full bubble width. */
14777
- .muka-chat-message--has-blocks .muka-chat-message__bubble {
14887
+ gap: var(--spacing-3);
14778
14888
  width: 100%;
14779
14889
  }
14780
14890
 
14781
- .muka-chat-message--own .muka-chat-message__bubble {
14782
- justify-self: end;
14891
+ .muka-chat-composer--disabled {
14892
+ opacity: 0.6;
14893
+ pointer-events: none;
14783
14894
  }
14784
14895
 
14785
- .muka-chat-message--own .muka-chat-message__bubble {
14786
- background-color: var(--chatbubble-color-own-background);
14787
- border-color: var(--chatbubble-color-own-border);
14788
- color: var(--chatbubble-color-own-foreground);
14789
- }
14896
+ /* ─── Input row (default layout) ───────────────────────── */
14790
14897
 
14791
- .muka-chat-message--peer .muka-chat-message__bubble {
14792
- background-color: var(--chatbubble-color-peer-background);
14793
- border-color: var(--chatbubble-color-peer-border);
14794
- color: var(--chatbubble-color-peer-foreground);
14898
+ .muka-chat-composer__row {
14899
+ display: flex;
14900
+ width: 100%;
14901
+ align-items: flex-end;
14902
+ gap: var(--spacing-3);
14795
14903
  }
14796
14904
 
14797
- .muka-chat-message--agent .muka-chat-message__bubble {
14798
- background-color: var(--chatbubble-color-agent-background);
14799
- border-color: var(--chatbubble-color-agent-border);
14800
- color: var(--chatbubble-color-agent-foreground);
14905
+ /*
14906
+ * Buttons beside the field keep their square size (`.muka-button--icon-only`
14907
+ * width). Only the field or recording bar flexes, so a wide waveform or a
14908
+ * long text can never squeeze them.
14909
+ */
14910
+ .muka-chat-composer__row > .muka-button,
14911
+ .muka-chat-composer__options-input > .muka-button {
14912
+ flex-shrink: 0;
14801
14913
  }
14802
14914
 
14803
- /* ─── Header row (author · meta · time · badge) ────────── */
14915
+ /* ─── Text field ───────────────────────────────────────── */
14804
14916
 
14805
- .muka-chat-message__header {
14917
+ .muka-chat-composer__field {
14806
14918
  display: flex;
14807
- flex-flow: row wrap;
14919
+ flex: 1 1 auto;
14920
+ min-width: 0;
14921
+ box-sizing: border-box;
14808
14922
  align-items: center;
14809
- gap: var(--chatbubble-row-gap);
14923
+ gap: var(--spacing-1);
14924
+ min-height: var(--input-field-height-lg, 48px);
14925
+ padding: 0 var(--spacing-2);
14926
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
14927
+ border-radius: var(--input-field-radius-lg);
14928
+ background-color: var(--input-field-color-default-background);
14929
+ transition: border-color 0.12s ease;
14810
14930
  }
14811
14931
 
14812
- .muka-chat-message__author {
14813
- font-family: var(--text-body-base-bold-fontFamily);
14814
- font-weight: var(--text-body-base-bold-fontWeight);
14815
- font-size: var(--text-body-base-bold-fontSize);
14816
- line-height: var(--text-body-base-bold-lineHeight);
14932
+ .muka-chat-composer--options .muka-chat-composer__field {
14933
+ flex: 1 1 auto;
14934
+ width: auto;
14817
14935
  }
14818
14936
 
14819
- .muka-chat-message__author-meta {
14820
- /* Inherits the variant's body colour from the bubble */
14821
- color: inherit;
14937
+ /* Options input row: text field + mic / send beside it */
14938
+ .muka-chat-composer__options-input {
14939
+ display: flex;
14940
+ align-items: flex-end;
14941
+ gap: var(--spacing-3);
14942
+ width: 100%;
14943
+ }
14944
+
14945
+ .muka-chat-composer__field:focus-within {
14946
+ border-color: var(--input-field-color-focus-border, var(--color-action-default));
14947
+ }
14948
+
14949
+ .muka-chat-composer__input {
14950
+ flex: 1 1 auto;
14951
+ min-width: 0;
14952
+ width: 100%;
14953
+ box-sizing: border-box;
14954
+ resize: none;
14955
+ border: none;
14956
+ background: transparent;
14957
+ outline: none;
14958
+ padding: 0 var(--spacing-1);
14959
+ color: var(--color-text-default-default);
14822
14960
  font-family: var(--text-body-base-regular-fontFamily);
14823
14961
  font-weight: var(--text-body-base-regular-fontWeight);
14824
14962
  font-size: var(--text-body-base-regular-fontSize);
14825
14963
  line-height: var(--text-body-base-regular-lineHeight);
14964
+ appearance: none;
14965
+ -webkit-appearance: none;
14826
14966
  }
14827
14967
 
14828
- .muka-chat-message__badge {
14829
- display: inline-flex;
14830
- align-items: center;
14968
+ .muka-chat-composer__input::placeholder {
14969
+ color: var(--color-text-subtle-default);
14831
14970
  }
14832
14971
 
14833
- /*
14834
- * Keep the first line of content clear of the absolutely positioned menu
14835
- * button in the bubble's top-right corner.
14836
- */
14837
- .muka-chat-message--has-menu .muka-chat-message__header,
14838
- .muka-chat-message--has-menu.muka-chat-message--no-header .muka-chat-message__message {
14839
- padding-right: var(--spacing-10);
14972
+ /* Transcribing: the field is back but inert (Input disabled tokens). */
14973
+ .muka-chat-composer__field--disabled {
14974
+ border-color: var(--input-field-color-disabled-border);
14975
+ background-color: var(--input-field-color-disabled-background);
14840
14976
  }
14841
14977
 
14842
- /* …and the last line clear of the inset timestamp in the bottom-right corner */
14843
- .muka-chat-message--has-timestamp .muka-chat-message__message {
14844
- padding-right: var(--spacing-10);
14978
+ .muka-chat-composer__field--disabled .muka-chat-composer__input::placeholder {
14979
+ color: var(--input-field-color-disabled-foreground);
14845
14980
  }
14846
14981
 
14847
- /* ─── Body ─────────────────────────────────────────────── */
14848
-
14849
- .muka-chat-message__body {
14850
- display: flex;
14851
- flex-direction: column;
14852
- gap: var(--chatbubble-gap);
14853
- min-width: 0;
14982
+ /* Keep the in-field emoji button flush to the bottom-right as the field grows */
14983
+ .muka-chat-composer__emoji {
14984
+ flex-shrink: 0;
14854
14985
  }
14855
14986
 
14856
- .muka-chat-message__media {
14857
- min-width: 0;
14987
+ /* Touch devices have emoji on their keyboard: no button there, unless the app
14988
+ keeps it with `emojiOnTouch`. */
14989
+ @media (pointer: coarse) {
14990
+ .muka-chat-composer__emoji:not(.muka-chat-composer__emoji--on-touch) {
14991
+ display: none;
14992
+ }
14858
14993
  }
14859
14994
 
14860
- .muka-chat-message__message {
14861
- font-family: var(--text-body-base-regular-fontFamily);
14862
- font-weight: var(--text-body-base-regular-fontWeight);
14863
- font-size: var(--text-body-base-regular-fontSize);
14864
- line-height: var(--text-body-base-regular-lineHeight);
14865
- white-space: pre-wrap;
14866
- word-break: break-word;
14867
- }
14995
+ /* ─── Recording bar ────────────────────────────────────── */
14868
14996
 
14869
- /* Empty message block should not add a gap of its own */
14870
- .muka-chat-message__message:empty {
14871
- display: none;
14997
+ .muka-chat-composer__recording {
14998
+ display: flex;
14999
+ flex: 1 1 auto;
15000
+ min-width: 0;
15001
+ box-sizing: border-box;
15002
+ align-items: center;
15003
+ min-height: var(--input-field-height-lg, 48px);
15004
+ padding: var(--card-padding-sm);
15005
+ border: var(--border-width-regular) solid var(--card-color-default-border);
15006
+ border-radius: var(--radius-lg);
15007
+ background-color: var(--card-color-default-background);
15008
+ /* A waveform wider than the space left is clipped, never laid over pause. */
15009
+ overflow: hidden;
14872
15010
  }
14873
15011
 
14874
- /* ─── Embedded card ────────────────────────────────────── */
15012
+ /* ─── Staged attachments strip ─────────────────────────── */
14875
15013
 
14876
- .muka-chat-message__embed {
15014
+ .muka-chat-composer__attachments-strip {
14877
15015
  position: relative;
14878
- display: flex;
14879
- flex-direction: column;
14880
- gap: var(--chatbubble-embed-gap);
14881
- /* The card is inset from the blocks above and below it (Figma 5289:40562) */
14882
- margin-block: var(--chatbubble-embed-margin-block);
14883
- padding: var(--chatbubble-embed-padding-block) var(--chatbubble-embed-padding-inline);
14884
- border-radius: var(--chatbubble-embed-radius);
14885
- border: var(--border-width-regular) solid transparent;
15016
+ width: 100%;
14886
15017
  }
14887
15018
 
14888
- /*
14889
- * The embed sits on the raised surface of its author's role, one step apart
14890
- * from the bubble it is nested in, and reuses that role's border colour.
14891
- */
14892
- .muka-chat-message--own .muka-chat-message__embed {
14893
- background-color: var(--chatbubble-embed-color-own-background);
14894
- border-color: var(--chatbubble-embed-color-own-border);
14895
- color: var(--chatbubble-embed-color-own-foreground);
15019
+ .muka-chat-composer__attachments {
15020
+ display: flex;
15021
+ gap: var(--spacing-3);
15022
+ overflow-x: auto;
15023
+ scroll-behavior: smooth;
15024
+ scrollbar-width: none;
14896
15025
  }
14897
15026
 
14898
- .muka-chat-message--peer .muka-chat-message__embed {
14899
- background-color: var(--chatbubble-embed-color-peer-background);
14900
- border-color: var(--chatbubble-embed-color-peer-border);
14901
- color: var(--chatbubble-embed-color-peer-foreground);
15027
+ .muka-chat-composer__attachments::-webkit-scrollbar {
15028
+ display: none;
14902
15029
  }
14903
15030
 
14904
- .muka-chat-message--agent .muka-chat-message__embed {
14905
- background-color: var(--chatbubble-embed-color-agent-background);
14906
- border-color: var(--chatbubble-embed-color-agent-border);
14907
- color: var(--chatbubble-embed-color-agent-foreground);
15031
+ .muka-chat-composer__overflow {
15032
+ position: absolute;
15033
+ top: 50%;
15034
+ right: var(--spacing-2);
15035
+ transform: translateY(-50%);
14908
15036
  }
14909
15037
 
14910
- .muka-chat-message__embed-content {
15038
+ /* ─── Options mode (Figma State=Options / State7 / State8) ─ */
15039
+
15040
+ .muka-chat-composer__prompt {
14911
15041
  display: flex;
14912
- flex-direction: column;
14913
- gap: var(--chatbubble-embed-gap);
14914
- min-width: 0;
15042
+ align-items: flex-start;
15043
+ gap: var(--spacing-3);
15044
+ width: 100%;
14915
15045
  }
14916
15046
 
14917
- .muka-chat-message__embed-copy {
14918
- position: absolute;
14919
- top: var(--chatbubble-embed-padding-block);
14920
- right: var(--chatbubble-embed-padding-inline);
15047
+ .muka-chat-composer__prompt-step {
15048
+ flex-shrink: 0;
14921
15049
  }
14922
15050
 
14923
- /* ─── Stacked full-width action buttons ────────────────── */
14924
-
14925
- .muka-chat-message__action-stack {
15051
+ .muka-chat-composer__prompt-text {
14926
15052
  display: flex;
14927
15053
  flex-direction: column;
14928
- gap: var(--chatbubble-action-stack-gap);
15054
+ gap: var(--spacing-1);
15055
+ min-width: 0;
15056
+ flex: 1 1 auto;
14929
15057
  }
14930
15058
 
14931
- /* ─── Inset timestamp ──────────────────────────────────── */
15059
+ .muka-chat-composer__prompt-heading {
15060
+ color: var(--color-text-default-default);
15061
+ font-family: var(--text-heading-sm-fontFamily);
15062
+ font-weight: var(--text-heading-sm-fontWeight);
15063
+ font-size: var(--text-heading-sm-fontSize);
15064
+ line-height: var(--text-heading-sm-lineHeight);
15065
+ }
14932
15066
 
14933
- /*
14934
- * Every author puts its timestamp in the bubble's bottom-right corner, below
14935
- * the message — never in the header row (Figma 5355:44091).
14936
- */
15067
+ .muka-chat-composer__prompt-description {
15068
+ color: var(--color-text-subtle-default);
15069
+ font-family: var(--text-body-base-regular-fontFamily);
15070
+ font-weight: var(--text-body-base-regular-fontWeight);
15071
+ font-size: var(--text-body-base-regular-fontSize);
15072
+ line-height: var(--text-body-base-regular-lineHeight);
15073
+ }
14937
15074
 
14938
- .muka-chat-message__timestamp {
14939
- color: var(--chatbubble-color-timestamp);
14940
- font-family: var(--text-body-xs-regular-fontFamily);
14941
- font-weight: var(--text-body-xs-regular-fontWeight);
14942
- font-size: var(--text-body-xs-regular-fontSize);
14943
- line-height: var(--text-body-xs-regular-lineHeight);
14944
- white-space: nowrap;
15075
+ .muka-chat-composer__choices {
15076
+ width: 100%;
14945
15077
  }
14946
15078
 
14947
15079
  /*
14948
- * Pinned to the corner rather than stacked below the message, so a one-line
14949
- * message stays one line tall. The message reserves the width it needs.
15080
+ * Many choices (a phone with seven options) would push the field and the step
15081
+ * footer off screen. The card gets a height limit and scrolls on its own, so
15082
+ * the prompt, the field and the footer stay in view.
14950
15083
  */
14951
- .muka-chat-message__timestamp--inset {
14952
- position: absolute;
14953
- right: var(--spacing-2);
14954
- bottom: var(--spacing-1);
15084
+ .muka-chat-composer__choices-card {
15085
+ width: 100%;
15086
+ max-height: 45dvh;
15087
+ overflow-x: hidden;
15088
+ overflow-y: auto;
15089
+ overscroll-behavior: contain;
14955
15090
  }
14956
15091
 
14957
- /*
14958
- * When the last block in the body is media, an embed or an action stack (not
14959
- * trailing text), it runs the full width, so reserve a line below for the inset
14960
- * timestamp. A message that ends in text clears the corner inline instead (see
14961
- * `__message` padding-right above), so it needs no extra bottom space.
14962
- */
14963
- .muka-chat-message--has-timestamp.muka-chat-message--trailing-block .muka-chat-message__body {
14964
- padding-bottom: var(--text-body-xs-regular-lineHeight);
15092
+ /* A choice is one short line, not a navigation row: compact padding. */
15093
+ .muka-chat-composer__choice.muka-listitem {
15094
+ align-items: center;
15095
+ padding-block: var(--spacing-3);
14965
15096
  }
14966
15097
 
14967
- /* ─── Menu affordance ──────────────────────────────────── */
15098
+ /* Choice rows: the ListItem is the interactive control; the Radio/Checkbox is
15099
+ decorative for AT (aria-hidden) and sits in the leading slot. */
15100
+ .muka-chat-composer__choice-control {
15101
+ display: inline-flex;
15102
+ align-items: center;
15103
+ pointer-events: none;
15104
+ }
14968
15105
 
14969
- /*
14970
- * Hidden at rest. Revealed on hover on pointer devices, on keyboard focus
14971
- * everywhere, and pinned while its menu is open. On touch the equivalent
14972
- * affordance is a long-press on the bubble, which opens an ActionSheet.
14973
- */
14974
- .muka-chat-message__menu {
14975
- position: absolute;
14976
- top: var(--spacing-1);
14977
- right: var(--spacing-1);
14978
- opacity: 0;
14979
- pointer-events: none;
14980
- }
14981
-
14982
- .muka-chat-message__menu:focus-within,
14983
- .muka-chat-message--menu-open .muka-chat-message__menu {
14984
- opacity: 1;
14985
- pointer-events: auto;
14986
- }
14987
-
14988
- @media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
14989
- .muka-chat-message__bubble:hover .muka-chat-message__menu {
14990
- opacity: 1;
14991
- pointer-events: auto;
14992
- }
14993
- }
14994
-
14995
- /* Suppress iOS Safari's own callout so the long-press sheet can take over */
14996
- @media (pointer: coarse) {
14997
- .muka-chat-message--has-menu .muka-chat-message__bubble {
14998
- -webkit-touch-callout: none;
14999
- }
15000
- }
15001
-
15002
- /* ─── Print ────────────────────────────────────────────── */
15003
-
15004
- @media print {
15005
- .muka-chat-message__bubble {
15006
- box-shadow: none;
15007
- break-inside: avoid;
15008
- print-color-adjust: exact;
15009
- -webkit-print-color-adjust: exact;
15010
- }
15011
-
15012
- .muka-chat-message__embed {
15013
- break-inside: avoid;
15014
- print-color-adjust: exact;
15015
- -webkit-print-color-adjust: exact;
15016
- }
15017
-
15018
- .muka-chat-message__menu,
15019
- .muka-chat-message__embed-copy,
15020
- .muka-chat-message__action-stack {
15021
- display: none;
15022
- }
15023
- }
15024
-
15025
- /* ─── Muted (a message from another context) ──────────────
15026
- * The bubble drops its fill and keeps a hairline, so it recedes next to the
15027
- * current conversation; the text keeps full contrast. */
15028
-
15029
- .muka-chat-message--muted .muka-chat-message__bubble {
15030
- background-color: transparent;
15031
- border-color: var(--chatbubble-color-peer-border);
15032
- color: var(--color-text-default-default);
15033
- }
15034
-
15035
-
15036
- /* ChatEvent */
15037
- /* ChatEvent: a line in a chat that isn't a message from a person */
15038
-
15039
- .muka-chat-event {
15040
- display: flex;
15041
- flex-direction: column;
15042
- align-items: center;
15043
- gap: var(--spacing-2);
15044
- width: 100%;
15045
- padding: 0 var(--spacing-4);
15046
- box-sizing: border-box;
15047
- text-align: center;
15048
- }
15049
-
15050
- .muka-chat-event__text {
15051
- margin: 0;
15052
- max-width: var(--chatbubble-max-width);
15053
- /* Default text, not subtle: subtle reaches only ~3:1 on the chat surfaces,
15054
- and this is body text. Size and centring set it apart from messages. */
15055
- color: var(--color-text-default-default);
15056
- font-family: var(--text-body-sm-regular-fontFamily);
15057
- font-weight: var(--text-body-sm-regular-fontWeight);
15058
- font-size: var(--text-body-sm-regular-fontSize);
15059
- line-height: var(--text-body-sm-regular-lineHeight);
15060
- }
15061
-
15062
- .muka-chat-event__timestamp {
15063
- white-space: nowrap;
15064
- }
15065
-
15066
- .muka-chat-event__media {
15067
- display: flex;
15068
- flex-wrap: wrap;
15069
- justify-content: center;
15070
- gap: var(--spacing-2);
15071
- }
15072
-
15073
- /* Day divider: a small pill */
15074
- .muka-chat-event__pill {
15075
- display: inline-flex;
15076
- align-items: center;
15077
- padding: var(--spacing-1) var(--spacing-3);
15078
- border-radius: var(--radius-full);
15079
- background-color: var(--color-surface-level2);
15080
- color: var(--color-text-default-default);
15081
- font-family: var(--text-label-sm-regular-fontFamily);
15082
- font-weight: var(--text-label-sm-regular-fontWeight);
15083
- font-size: var(--text-label-sm-regular-fontSize);
15084
- line-height: var(--text-label-sm-leading);
15085
- }
15086
-
15087
-
15088
- /* ChatComposer */
15089
- /* ChatComposer Component Styles */
15090
-
15091
- /*
15092
- * The composer is a bare, fill-width row: no padding, background, border or
15093
- * max-width of its own (Figma 5243:14141). Whatever hosts it owns the
15094
- * container — see BottomBar's `chat` variant.
15095
- */
15096
- .muka-chat-composer {
15097
- display: flex;
15098
- flex-direction: column;
15099
- gap: var(--spacing-3);
15100
- width: 100%;
15101
- }
15102
-
15103
- .muka-chat-composer--disabled {
15104
- opacity: 0.6;
15105
- pointer-events: none;
15106
- }
15107
-
15108
- /* ─── Input row (default layout) ───────────────────────── */
15109
-
15110
- .muka-chat-composer__row {
15111
- display: flex;
15112
- width: 100%;
15113
- align-items: flex-end;
15114
- gap: var(--spacing-3);
15115
- }
15116
-
15117
- /*
15118
- * Buttons beside the field keep their square size (`.muka-button--icon-only`
15119
- * width). Only the field or recording bar flexes, so a wide waveform or a
15120
- * long text can never squeeze them.
15121
- */
15122
- .muka-chat-composer__row > .muka-button,
15123
- .muka-chat-composer__options-input > .muka-button {
15124
- flex-shrink: 0;
15125
- }
15126
-
15127
- /* ─── Text field ───────────────────────────────────────── */
15128
-
15129
- .muka-chat-composer__field {
15130
- display: flex;
15131
- flex: 1 1 auto;
15132
- min-width: 0;
15133
- box-sizing: border-box;
15134
- align-items: center;
15135
- gap: var(--spacing-1);
15136
- min-height: var(--input-field-height-lg, 48px);
15137
- padding: 0 var(--spacing-2);
15138
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
15139
- border-radius: var(--input-field-radius-lg);
15140
- background-color: var(--input-field-color-default-background);
15141
- transition: border-color 0.12s ease;
15142
- }
15143
-
15144
- .muka-chat-composer--options .muka-chat-composer__field {
15145
- flex: 1 1 auto;
15146
- width: auto;
15147
- }
15148
-
15149
- /* Options input row: text field + mic / send beside it */
15150
- .muka-chat-composer__options-input {
15151
- display: flex;
15152
- align-items: flex-end;
15153
- gap: var(--spacing-3);
15154
- width: 100%;
15155
- }
15156
-
15157
- .muka-chat-composer__field:focus-within {
15158
- border-color: var(--input-field-color-focus-border, var(--color-action-default));
15159
- }
15160
-
15161
- .muka-chat-composer__input {
15162
- flex: 1 1 auto;
15163
- min-width: 0;
15164
- width: 100%;
15165
- box-sizing: border-box;
15166
- resize: none;
15167
- border: none;
15168
- background: transparent;
15169
- outline: none;
15170
- padding: 0 var(--spacing-1);
15171
- color: var(--color-text-default-default);
15172
- font-family: var(--text-body-base-regular-fontFamily);
15173
- font-weight: var(--text-body-base-regular-fontWeight);
15174
- font-size: var(--text-body-base-regular-fontSize);
15175
- line-height: var(--text-body-base-regular-lineHeight);
15176
- appearance: none;
15177
- -webkit-appearance: none;
15178
- }
15179
-
15180
- .muka-chat-composer__input::placeholder {
15181
- color: var(--color-text-subtle-default);
15182
- }
15183
-
15184
- /* Transcribing: the field is back but inert (Input disabled tokens). */
15185
- .muka-chat-composer__field--disabled {
15186
- border-color: var(--input-field-color-disabled-border);
15187
- background-color: var(--input-field-color-disabled-background);
15188
- }
15189
-
15190
- .muka-chat-composer__field--disabled .muka-chat-composer__input::placeholder {
15191
- color: var(--input-field-color-disabled-foreground);
15192
- }
15193
-
15194
- /* Keep the in-field emoji button flush to the bottom-right as the field grows */
15195
- .muka-chat-composer__emoji {
15196
- flex-shrink: 0;
15197
- }
15198
-
15199
- /* Touch devices have emoji on their keyboard: no button there, unless the app
15200
- keeps it with `emojiOnTouch`. */
15201
- @media (pointer: coarse) {
15202
- .muka-chat-composer__emoji:not(.muka-chat-composer__emoji--on-touch) {
15203
- display: none;
15204
- }
15205
- }
15206
-
15207
- /* ─── Recording bar ────────────────────────────────────── */
15208
-
15209
- .muka-chat-composer__recording {
15210
- display: flex;
15211
- flex: 1 1 auto;
15212
- min-width: 0;
15213
- box-sizing: border-box;
15214
- align-items: center;
15215
- min-height: var(--input-field-height-lg, 48px);
15216
- padding: var(--card-padding-sm);
15217
- border: var(--border-width-regular) solid var(--card-color-default-border);
15218
- border-radius: var(--radius-lg);
15219
- background-color: var(--card-color-default-background);
15220
- /* A waveform wider than the space left is clipped, never laid over pause. */
15221
- overflow: hidden;
15222
- }
15223
-
15224
- /* ─── Staged attachments strip ─────────────────────────── */
15225
-
15226
- .muka-chat-composer__attachments-strip {
15227
- position: relative;
15228
- width: 100%;
15229
- }
15230
-
15231
- .muka-chat-composer__attachments {
15232
- display: flex;
15233
- gap: var(--spacing-3);
15234
- overflow-x: auto;
15235
- scroll-behavior: smooth;
15236
- scrollbar-width: none;
15237
- }
15238
-
15239
- .muka-chat-composer__attachments::-webkit-scrollbar {
15240
- display: none;
15241
- }
15242
-
15243
- .muka-chat-composer__overflow {
15244
- position: absolute;
15245
- top: 50%;
15246
- right: var(--spacing-2);
15247
- transform: translateY(-50%);
15248
- }
15249
-
15250
- /* ─── Options mode (Figma State=Options / State7 / State8) ─ */
15251
-
15252
- .muka-chat-composer__prompt {
15253
- display: flex;
15254
- align-items: flex-start;
15255
- gap: var(--spacing-3);
15256
- width: 100%;
15257
- }
15258
-
15259
- .muka-chat-composer__prompt-step {
15260
- flex-shrink: 0;
15261
- }
15262
-
15263
- .muka-chat-composer__prompt-text {
15264
- display: flex;
15265
- flex-direction: column;
15266
- gap: var(--spacing-1);
15267
- min-width: 0;
15268
- flex: 1 1 auto;
15269
- }
15270
-
15271
- .muka-chat-composer__prompt-heading {
15272
- color: var(--color-text-default-default);
15273
- font-family: var(--text-heading-sm-fontFamily);
15274
- font-weight: var(--text-heading-sm-fontWeight);
15275
- font-size: var(--text-heading-sm-fontSize);
15276
- line-height: var(--text-heading-sm-lineHeight);
15277
- }
15278
-
15279
- .muka-chat-composer__prompt-description {
15280
- color: var(--color-text-subtle-default);
15281
- font-family: var(--text-body-base-regular-fontFamily);
15282
- font-weight: var(--text-body-base-regular-fontWeight);
15283
- font-size: var(--text-body-base-regular-fontSize);
15284
- line-height: var(--text-body-base-regular-lineHeight);
15285
- }
15286
-
15287
- .muka-chat-composer__choices {
15288
- width: 100%;
15289
- }
15290
-
15291
- /*
15292
- * Many choices (a phone with seven options) would push the field and the step
15293
- * footer off screen. The card gets a height limit and scrolls on its own, so
15294
- * the prompt, the field and the footer stay in view.
15295
- */
15296
- .muka-chat-composer__choices-card {
15297
- width: 100%;
15298
- max-height: 45dvh;
15299
- overflow-x: hidden;
15300
- overflow-y: auto;
15301
- overscroll-behavior: contain;
15302
- }
15303
-
15304
- /* A choice is one short line, not a navigation row: compact padding. */
15305
- .muka-chat-composer__choice.muka-listitem {
15306
- align-items: center;
15307
- padding-block: var(--spacing-3);
15308
- }
15309
-
15310
- /* Choice rows: the ListItem is the interactive control; the Radio/Checkbox is
15311
- decorative for AT (aria-hidden) and sits in the leading slot. */
15312
- .muka-chat-composer__choice-control {
15313
- display: inline-flex;
15314
- align-items: center;
15315
- pointer-events: none;
15316
- }
15317
-
15318
- .muka-chat-composer__choice-control .muka-radio,
15319
- .muka-chat-composer__choice-control .muka-checkbox {
15106
+ .muka-chat-composer__choice-control .muka-radio,
15107
+ .muka-chat-composer__choice-control .muka-checkbox {
15320
15108
  pointer-events: none;
15321
15109
  }
15322
15110
 
@@ -18031,144 +17819,377 @@ button.muka-chat-photo-grid__tile:focus-visible {
18031
17819
  }
18032
17820
  }
18033
17821
 
18034
- .muka-accordion__content-inner {
18035
- padding: 0 var(--spacing-4) var(--spacing-5);
18036
- color: var(--color-text-default-default);
17822
+ .muka-accordion__content-inner {
17823
+ padding: 0 var(--spacing-4) var(--spacing-5);
17824
+ color: var(--color-text-default-default);
17825
+ }
17826
+
17827
+ /* ─── Variant: flush ────────────────────────────────────────────────────── */
17828
+
17829
+ .muka-accordion--flush .muka-accordion__trigger {
17830
+ padding-left: 0;
17831
+ padding-right: 0;
17832
+ }
17833
+
17834
+ .muka-accordion--flush .muka-accordion__content-inner {
17835
+ padding-left: 0;
17836
+ padding-right: 0;
17837
+ }
17838
+
17839
+ /* ─── Variant: contained ────────────────────────────────────────────────── */
17840
+
17841
+ .muka-accordion--contained {
17842
+ border: var(--border-width-regular) solid var(--color-border-default);
17843
+ border-radius: var(--radius-md);
17844
+ overflow: hidden;
17845
+ }
17846
+
17847
+ .muka-accordion--contained .muka-accordion__item {
17848
+ background-color: var(--color-surface-level3);
17849
+ }
17850
+
17851
+ .muka-accordion--contained .muka-accordion__item:last-child {
17852
+ border-bottom: none;
17853
+ }
17854
+
17855
+
17856
+ /* ChatMessage */
17857
+ /* ChatMessage Component Styles */
17858
+
17859
+ .muka-chat-message {
17860
+ display: flex;
17861
+ flex-direction: column;
17862
+ width: 100%;
17863
+ max-width: 100%;
17864
+ }
17865
+
17866
+ /* ─── Row: avatar rail + bubble ────────────────────────── */
17867
+
17868
+ .muka-chat-message__row {
17869
+ display: grid;
17870
+ grid-template-columns: minmax(0, 1fr);
17871
+ grid-template-areas: 'bubble';
17872
+ column-gap: var(--chatbubble-row-gap);
17873
+ width: 100%;
17874
+ }
17875
+
17876
+ .muka-chat-message--has-avatar .muka-chat-message__row {
17877
+ grid-template-columns: auto minmax(0, 1fr);
17878
+ grid-template-areas: 'rail bubble';
17879
+ }
17880
+
17881
+ .muka-chat-message__rail {
17882
+ grid-area: rail;
17883
+ /* Sits on the bubble's baseline (Figma 5355:44091) */
17884
+ align-self: end;
17885
+ display: flex;
17886
+ justify-content: center;
17887
+ min-width: var(--chatbubble-avatar-size);
17888
+ }
17889
+
17890
+ /*
17891
+ * The Small size in Figma (5373:44702) halves the avatar to 32px and tightens
17892
+ * the gap to the bubble. Size the avatar itself, not just the rail, so the
17893
+ * bubbles keep their alignment. The header row keeps its own gap.
17894
+ */
17895
+ @media (max-width: 1023px) {
17896
+ .muka-chat-message__row {
17897
+ column-gap: var(--chatbubble-row-gap-compact);
17898
+ }
17899
+
17900
+ .muka-chat-message__rail {
17901
+ min-width: var(--chatbubble-avatar-size-compact);
17902
+ }
17903
+
17904
+ /* Outweighs the avatar's own size class, which sets width/height directly */
17905
+ .muka-chat-message .muka-chat-message__rail > * {
17906
+ width: var(--chatbubble-avatar-size-compact);
17907
+ height: var(--chatbubble-avatar-size-compact);
17908
+ }
17909
+ }
17910
+
17911
+ /* ─── Bubble surface ───────────────────────────────────── */
17912
+
17913
+ .muka-chat-message__bubble {
17914
+ grid-area: bubble;
17915
+ /*
17916
+ * Width follows the content: a single line hugs, and once the text wraps the
17917
+ * bubble fills to the shared max width. Robust to string or rich children —
17918
+ * no length measuring needed (Figma `Text length` on 5355:44091).
17919
+ */
17920
+ width: fit-content;
17921
+ /*
17922
+ * Ceiling from design (Figma 5355:44091). Below it, wrapping text fills the
17923
+ * row; above it the fixed cap leaves room for own/peer alignment.
17924
+ */
17925
+ max-width: var(--chatbubble-max-width);
17926
+ position: relative;
17927
+ display: flex;
17928
+ flex-direction: column;
17929
+ gap: var(--chatbubble-gap);
17930
+ padding: var(--chatbubble-padding-block) var(--chatbubble-padding-inline);
17931
+ border-radius: var(--chatbubble-radius);
17932
+ border: var(--border-width-regular) solid transparent;
17933
+ box-shadow: var(--shadow-level2);
17934
+ word-break: break-word;
17935
+ }
17936
+
17937
+ /* Media, an embed or an action stack always run the full bubble width. */
17938
+ .muka-chat-message--has-blocks .muka-chat-message__bubble {
17939
+ width: 100%;
17940
+ }
17941
+
17942
+ .muka-chat-message--own .muka-chat-message__bubble {
17943
+ justify-self: end;
17944
+ }
17945
+
17946
+ .muka-chat-message--own .muka-chat-message__bubble {
17947
+ background-color: var(--chatbubble-color-own-background);
17948
+ border-color: var(--chatbubble-color-own-border);
17949
+ color: var(--chatbubble-color-own-foreground);
17950
+ }
17951
+
17952
+ .muka-chat-message--peer .muka-chat-message__bubble {
17953
+ background-color: var(--chatbubble-color-peer-background);
17954
+ border-color: var(--chatbubble-color-peer-border);
17955
+ color: var(--chatbubble-color-peer-foreground);
17956
+ }
17957
+
17958
+ .muka-chat-message--agent .muka-chat-message__bubble {
17959
+ background-color: var(--chatbubble-color-agent-background);
17960
+ border-color: var(--chatbubble-color-agent-border);
17961
+ color: var(--chatbubble-color-agent-foreground);
17962
+ }
17963
+
17964
+ /* ─── Header row (author · meta · time · badge) ────────── */
17965
+
17966
+ .muka-chat-message__header {
17967
+ display: flex;
17968
+ flex-flow: row wrap;
17969
+ align-items: center;
17970
+ gap: var(--chatbubble-row-gap);
17971
+ }
17972
+
17973
+ .muka-chat-message__author {
17974
+ font-family: var(--text-body-base-bold-fontFamily);
17975
+ font-weight: var(--text-body-base-bold-fontWeight);
17976
+ font-size: var(--text-body-base-bold-fontSize);
17977
+ line-height: var(--text-body-base-bold-lineHeight);
17978
+ }
17979
+
17980
+ .muka-chat-message__author-meta {
17981
+ /* Inherits the variant's body colour from the bubble */
17982
+ color: inherit;
17983
+ font-family: var(--text-body-base-regular-fontFamily);
17984
+ font-weight: var(--text-body-base-regular-fontWeight);
17985
+ font-size: var(--text-body-base-regular-fontSize);
17986
+ line-height: var(--text-body-base-regular-lineHeight);
18037
17987
  }
18038
17988
 
18039
- /* ─── Variant: flush ────────────────────────────────────────────────────── */
17989
+ .muka-chat-message__badge {
17990
+ display: inline-flex;
17991
+ align-items: center;
17992
+ }
18040
17993
 
18041
- .muka-accordion--flush .muka-accordion__trigger {
18042
- padding-left: 0;
18043
- padding-right: 0;
17994
+ /*
17995
+ * Keep the first line of content clear of the absolutely positioned menu
17996
+ * button in the bubble's top-right corner.
17997
+ */
17998
+ .muka-chat-message--has-menu .muka-chat-message__header,
17999
+ .muka-chat-message--has-menu.muka-chat-message--no-header .muka-chat-message__message {
18000
+ padding-right: var(--spacing-10);
18044
18001
  }
18045
18002
 
18046
- .muka-accordion--flush .muka-accordion__content-inner {
18047
- padding-left: 0;
18048
- padding-right: 0;
18003
+ /* …and the last line clear of the inset timestamp in the bottom-right corner */
18004
+ .muka-chat-message--has-timestamp .muka-chat-message__message {
18005
+ padding-right: var(--spacing-10);
18049
18006
  }
18050
18007
 
18051
- /* ─── Variant: contained ────────────────────────────────────────────────── */
18008
+ /* ─── Body ─────────────────────────────────────────────── */
18052
18009
 
18053
- .muka-accordion--contained {
18054
- border: var(--border-width-regular) solid var(--color-border-default);
18055
- border-radius: var(--radius-md);
18056
- overflow: hidden;
18010
+ .muka-chat-message__body {
18011
+ display: flex;
18012
+ flex-direction: column;
18013
+ gap: var(--chatbubble-gap);
18014
+ min-width: 0;
18057
18015
  }
18058
18016
 
18059
- .muka-accordion--contained .muka-accordion__item {
18060
- background-color: var(--color-surface-level3);
18017
+ .muka-chat-message__media {
18018
+ min-width: 0;
18061
18019
  }
18062
18020
 
18063
- .muka-accordion--contained .muka-accordion__item:last-child {
18064
- border-bottom: none;
18021
+ .muka-chat-message__message {
18022
+ font-family: var(--text-body-base-regular-fontFamily);
18023
+ font-weight: var(--text-body-base-regular-fontWeight);
18024
+ font-size: var(--text-body-base-regular-fontSize);
18025
+ line-height: var(--text-body-base-regular-lineHeight);
18026
+ white-space: pre-wrap;
18027
+ word-break: break-word;
18065
18028
  }
18066
18029
 
18030
+ /* Empty message block should not add a gap of its own */
18031
+ .muka-chat-message__message:empty {
18032
+ display: none;
18033
+ }
18067
18034
 
18068
- /* SwipeActions */
18069
- /* SwipeActions Component Styles */
18035
+ /* ─── Embedded card ────────────────────────────────────── */
18070
18036
 
18071
- .muka-swipe-actions {
18037
+ .muka-chat-message__embed {
18072
18038
  position: relative;
18073
- overflow: hidden;
18074
- touch-action: pan-y;
18075
- -webkit-user-select: none;
18076
- user-select: none;
18077
- background-color: var(--color-surface-level3);
18039
+ display: flex;
18040
+ flex-direction: column;
18041
+ gap: var(--chatbubble-embed-gap);
18042
+ /* The card is inset from the blocks above and below it (Figma 5289:40562) */
18043
+ margin-block: var(--chatbubble-embed-margin-block);
18044
+ padding: var(--chatbubble-embed-padding-block) var(--chatbubble-embed-padding-inline);
18045
+ border-radius: var(--chatbubble-embed-radius);
18046
+ border: var(--border-width-regular) solid transparent;
18078
18047
  }
18079
18048
 
18080
- .muka-swipe-actions--disabled {
18081
- touch-action: auto;
18049
+ /*
18050
+ * The embed sits on the raised surface of its author's role, one step apart
18051
+ * from the bubble it is nested in, and reuses that role's border colour.
18052
+ */
18053
+ .muka-chat-message--own .muka-chat-message__embed {
18054
+ background-color: var(--chatbubble-embed-color-own-background);
18055
+ border-color: var(--chatbubble-embed-color-own-border);
18056
+ color: var(--chatbubble-embed-color-own-foreground);
18082
18057
  }
18083
18058
 
18084
- /* ─── Row that holds the actual content ────────────────── */
18085
-
18086
- .muka-swipe-actions__row {
18087
- position: relative;
18088
- z-index: 1;
18089
- background-color: inherit;
18090
- will-change: transform;
18059
+ .muka-chat-message--peer .muka-chat-message__embed {
18060
+ background-color: var(--chatbubble-embed-color-peer-background);
18061
+ border-color: var(--chatbubble-embed-color-peer-border);
18062
+ color: var(--chatbubble-embed-color-peer-foreground);
18091
18063
  }
18092
18064
 
18093
- /* ─── Action panels — sit beneath the row ──────────────── */
18094
-
18095
- .muka-swipe-actions__panel {
18096
- position: absolute;
18097
- top: 0;
18098
- bottom: 0;
18099
- display: flex;
18100
- align-items: stretch;
18101
- z-index: 0;
18065
+ .muka-chat-message--agent .muka-chat-message__embed {
18066
+ background-color: var(--chatbubble-embed-color-agent-background);
18067
+ border-color: var(--chatbubble-embed-color-agent-border);
18068
+ color: var(--chatbubble-embed-color-agent-foreground);
18102
18069
  }
18103
18070
 
18104
- .muka-swipe-actions__panel--left {
18105
- left: 0;
18071
+ .muka-chat-message__embed-content {
18072
+ display: flex;
18073
+ flex-direction: column;
18074
+ gap: var(--chatbubble-embed-gap);
18075
+ min-width: 0;
18106
18076
  }
18107
18077
 
18108
- .muka-swipe-actions__panel--right {
18109
- right: 0;
18078
+ .muka-chat-message__embed-copy {
18079
+ position: absolute;
18080
+ top: var(--chatbubble-embed-padding-block);
18081
+ right: var(--chatbubble-embed-padding-inline);
18110
18082
  }
18111
18083
 
18112
- /* ─── Single action button ─────────────────────────────── */
18084
+ /* ─── Stacked full-width action buttons ────────────────── */
18113
18085
 
18114
- .muka-swipe-actions__button {
18086
+ .muka-chat-message__action-stack {
18115
18087
  display: flex;
18116
18088
  flex-direction: column;
18117
- align-items: center;
18118
- justify-content: center;
18119
- gap: var(--spacing-1);
18120
- border: none;
18121
- cursor: pointer;
18122
- padding: var(--spacing-2);
18123
- background-color: var(--color-surface-level2);
18124
- color: var(--color-text-default-default);
18125
- font-family: var(--text-label-sm-semibold-fontFamily);
18126
- font-weight: var(--text-label-sm-semibold-fontWeight);
18127
- font-size: var(--text-label-sm-semibold-fontSize);
18128
- line-height: var(--text-label-sm-semibold-lineHeight);
18129
- -webkit-tap-highlight-color: transparent;
18130
- transition: filter 0.12s ease;
18089
+ gap: var(--chatbubble-action-stack-gap);
18131
18090
  }
18132
18091
 
18133
- .muka-swipe-actions__button:hover {
18134
- filter: brightness(0.95);
18092
+ /* ─── Inset timestamp ──────────────────────────────────── */
18093
+
18094
+ /*
18095
+ * Every author puts its timestamp in the bubble's bottom-right corner, below
18096
+ * the message — never in the header row (Figma 5355:44091).
18097
+ */
18098
+
18099
+ .muka-chat-message__timestamp {
18100
+ color: var(--chatbubble-color-timestamp);
18101
+ font-family: var(--text-body-xs-regular-fontFamily);
18102
+ font-weight: var(--text-body-xs-regular-fontWeight);
18103
+ font-size: var(--text-body-xs-regular-fontSize);
18104
+ line-height: var(--text-body-xs-regular-lineHeight);
18105
+ white-space: nowrap;
18135
18106
  }
18136
18107
 
18137
- .muka-swipe-actions__button:focus-visible {
18138
- outline: 2px solid var(--color-action-default);
18139
- outline-offset: -2px;
18108
+ /*
18109
+ * Pinned to the corner rather than stacked below the message, so a one-line
18110
+ * message stays one line tall. The message reserves the width it needs.
18111
+ */
18112
+ .muka-chat-message__timestamp--inset {
18113
+ position: absolute;
18114
+ right: var(--spacing-2);
18115
+ bottom: var(--spacing-1);
18140
18116
  }
18141
18117
 
18142
- .muka-swipe-actions__button-icon {
18143
- display: inline-flex;
18144
- align-items: center;
18145
- justify-content: center;
18118
+ /*
18119
+ * When the last block in the body is media, an embed or an action stack (not
18120
+ * trailing text), it runs the full width, so reserve a line below for the inset
18121
+ * timestamp. A message that ends in text clears the corner inline instead (see
18122
+ * `__message` padding-right above), so it needs no extra bottom space.
18123
+ */
18124
+ .muka-chat-message--has-timestamp.muka-chat-message--trailing-block .muka-chat-message__body {
18125
+ padding-bottom: var(--text-body-xs-regular-lineHeight);
18146
18126
  }
18147
18127
 
18148
- /* ─── Color variants ───────────────────────────────────── */
18128
+ /* ─── Menu affordance ──────────────────────────────────── */
18149
18129
 
18150
- .muka-swipe-actions__button--neutral {
18151
- background-color: var(--color-surface-level2);
18152
- color: var(--color-text-default-default);
18130
+ /*
18131
+ * Hidden at rest. Revealed on hover on pointer devices, on keyboard focus
18132
+ * everywhere, and pinned while its menu is open. On touch the equivalent
18133
+ * affordance is a long-press on the bubble, which opens an ActionSheet.
18134
+ */
18135
+ .muka-chat-message__menu {
18136
+ position: absolute;
18137
+ top: var(--spacing-1);
18138
+ right: var(--spacing-1);
18139
+ opacity: 0;
18140
+ pointer-events: none;
18153
18141
  }
18154
18142
 
18155
- .muka-swipe-actions__button--primary {
18156
- background-color: var(--color-action-default);
18157
- color: var(--color-text-default-inverse);
18143
+ .muka-chat-message__menu:focus-within,
18144
+ .muka-chat-message--menu-open .muka-chat-message__menu {
18145
+ opacity: 1;
18146
+ pointer-events: auto;
18158
18147
  }
18159
18148
 
18160
- .muka-swipe-actions__button--success {
18161
- background-color: var(--color-state-success-default);
18162
- color: var(--color-text-default-inverse);
18149
+ @media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
18150
+ .muka-chat-message__bubble:hover .muka-chat-message__menu {
18151
+ opacity: 1;
18152
+ pointer-events: auto;
18153
+ }
18163
18154
  }
18164
18155
 
18165
- .muka-swipe-actions__button--warning {
18166
- background-color: var(--color-state-warning-default);
18167
- color: var(--color-text-default-default);
18156
+ /* Suppress iOS Safari's own callout so the long-press sheet can take over */
18157
+ @media (pointer: coarse) {
18158
+ .muka-chat-message--has-menu .muka-chat-message__bubble {
18159
+ -webkit-touch-callout: none;
18160
+ }
18168
18161
  }
18169
18162
 
18170
- .muka-swipe-actions__button--destructive {
18171
- background-color: var(--color-state-error-default);
18172
- color: var(--color-text-default-inverse);
18163
+ /* ─── Print ────────────────────────────────────────────── */
18164
+
18165
+ @media print {
18166
+ .muka-chat-message__bubble {
18167
+ box-shadow: none;
18168
+ break-inside: avoid;
18169
+ print-color-adjust: exact;
18170
+ -webkit-print-color-adjust: exact;
18171
+ }
18172
+
18173
+ .muka-chat-message__embed {
18174
+ break-inside: avoid;
18175
+ print-color-adjust: exact;
18176
+ -webkit-print-color-adjust: exact;
18177
+ }
18178
+
18179
+ .muka-chat-message__menu,
18180
+ .muka-chat-message__embed-copy,
18181
+ .muka-chat-message__action-stack {
18182
+ display: none;
18183
+ }
18184
+ }
18185
+
18186
+ /* ─── Muted (a message from another context) ──────────────
18187
+ * The bubble drops its fill and keeps a hairline, so it recedes next to the
18188
+ * current conversation; the text keeps full contrast. */
18189
+
18190
+ .muka-chat-message--muted .muka-chat-message__bubble {
18191
+ background-color: transparent;
18192
+ border-color: var(--chatbubble-color-peer-border);
18193
+ color: var(--color-text-default-default);
18173
18194
  }
18174
18195