@revikornmann/muka-ui 0.45.1 → 0.46.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.
@@ -3413,985 +3413,985 @@ body {
3413
3413
  }
3414
3414
 
3415
3415
 
3416
- /* Thumbnail */
3417
- /* Thumbnail Component Styles - Using Muka Design Tokens */
3416
+ /* Tile */
3417
+ /* Tile Component Styles - Using Muka Design Tokens */
3418
3418
 
3419
- .muka-thumbnail {
3420
- position: relative;
3421
- flex-shrink: 0;
3422
- }
3419
+ /* ─── Base ────────────────────────────────────────────── */
3423
3420
 
3424
- /* The frame carries the border, background and shape clip. Keeping it separate
3425
- from the root lets the remove (×) button sit outside the clip (needed for the
3426
- circular/ellipse shape, whose corners would otherwise clip the button). */
3427
- .muka-thumbnail__frame {
3428
- position: absolute;
3429
- inset: 0;
3430
- overflow: hidden;
3431
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3432
- border-radius: var(--border-radius-lg);
3433
- background-color: var(--color-surface-level1);
3421
+ .muka-tile {
3422
+ display: flex;
3423
+ color: var(--color-text-default-default);
3434
3424
  }
3435
3425
 
3436
- /* ─── Shapes ──────────────────────────────────────────── */
3437
- .muka-thumbnail--4-3 {
3438
- width: 160px;
3439
- height: 120px;
3426
+ .muka-tile--interactive {
3427
+ cursor: pointer;
3428
+ user-select: none;
3440
3429
  }
3441
3430
 
3442
- .muka-thumbnail--1-1 {
3443
- width: 120px;
3444
- height: 120px;
3431
+ .muka-tile--interactive:focus-visible {
3432
+ outline: 2px solid var(--color-border-focus);
3433
+ outline-offset: 2px;
3434
+ border-radius: var(--border-radius-lg);
3445
3435
  }
3446
3436
 
3447
- .muka-thumbnail--ellipse {
3448
- width: 120px;
3449
- height: 120px;
3450
- }
3437
+ /* ─── Image position variants ─────────────────────────── */
3451
3438
 
3452
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3453
- .muka-thumbnail--fluid {
3454
- width: 100%;
3455
- height: auto;
3456
- aspect-ratio: 1 / 1;
3439
+ .muka-tile--image-top {
3440
+ flex-direction: column;
3457
3441
  }
3458
3442
 
3459
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3460
- aspect-ratio: 4 / 3;
3443
+ .muka-tile--image-left {
3444
+ flex-direction: row;
3461
3445
  }
3462
3446
 
3463
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
3464
- border-radius: var(--border-radius-full);
3447
+ .muka-tile--image-right {
3448
+ flex-direction: row;
3465
3449
  }
3466
3450
 
3467
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3468
- interactive hover zoom has a clean origin. */
3469
- .muka-thumbnail__image {
3470
- position: absolute;
3471
- inset: 0;
3472
- width: 100%;
3473
- height: 100%;
3474
- object-fit: cover;
3475
- display: block;
3476
- transform-origin: center;
3477
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3478
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3479
- }
3451
+ /* ─── Gap by size (top) ───────────────────────────────── */
3480
3452
 
3481
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
3482
- .muka-thumbnail__trigger {
3483
- position: absolute;
3484
- inset: 0;
3485
- padding: 0;
3486
- border: 0;
3487
- background: none;
3488
- cursor: pointer;
3489
- overflow: hidden;
3453
+ .muka-tile--image-top.muka-tile--lg {
3454
+ gap: var(--spacing-6);
3490
3455
  }
3491
3456
 
3492
- .muka-thumbnail__trigger:focus-visible {
3493
- outline: 2px solid var(--color-border-focus);
3494
- outline-offset: -2px;
3457
+ .muka-tile--image-top.muka-tile--md {
3458
+ gap: var(--spacing-6);
3459
+ width: 320px;
3495
3460
  }
3496
3461
 
3497
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3498
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3499
- transform: scale(1.05);
3462
+ .muka-tile--image-top.muka-tile--sm {
3463
+ gap: var(--spacing-4);
3464
+ min-width: 120px;
3500
3465
  }
3501
3466
 
3502
- /* ─── Loading overlay + progress donut ────────────────── */
3503
- .muka-thumbnail__overlay {
3504
- position: absolute;
3505
- inset: 0;
3506
- display: flex;
3467
+ /* ─── Gap by size (left/right) ────────────────────────── */
3468
+
3469
+ .muka-tile--image-left.muka-tile--lg,
3470
+ .muka-tile--image-right.muka-tile--lg {
3471
+ gap: var(--spacing-6);
3507
3472
  align-items: center;
3508
- justify-content: center;
3509
- background-color: var(--dialog-color-backdrop);
3510
3473
  }
3511
3474
 
3512
- .muka-thumbnail__progress {
3513
- width: 40px;
3514
- height: 40px;
3475
+ .muka-tile--image-left.muka-tile--md,
3476
+ .muka-tile--image-right.muka-tile--md {
3477
+ gap: var(--spacing-6);
3478
+ align-items: center;
3515
3479
  }
3516
3480
 
3517
- /* ─── Error / corrupt state ───────────────────────────── */
3518
- .muka-thumbnail--error .muka-thumbnail__frame {
3519
- background-color: var(--alias-color-state-error-muted);
3520
- border-color: var(--alias-color-state-error-default);
3481
+ .muka-tile--image-left.muka-tile--sm,
3482
+ .muka-tile--image-right.muka-tile--sm {
3483
+ gap: var(--spacing-4);
3484
+ align-items: flex-start;
3521
3485
  }
3522
3486
 
3523
- .muka-thumbnail__error {
3524
- position: absolute;
3525
- inset: 0;
3487
+ /* ─── Photos container ────────────────────────────────── */
3488
+
3489
+ .muka-tile__photos {
3490
+ position: relative;
3491
+ flex-shrink: 0;
3492
+ overflow: hidden;
3526
3493
  display: flex;
3527
3494
  flex-direction: column;
3528
- align-items: center;
3529
- justify-content: center;
3530
- gap: var(--spacing-2);
3531
- padding: var(--spacing-3);
3532
- text-align: center;
3495
+ isolation: isolate;
3533
3496
  }
3534
3497
 
3535
- .muka-thumbnail__error-icon {
3536
- color: var(--alert-color-error-accent);
3498
+ /* Photos border radius by size */
3499
+ .muka-tile--lg .muka-tile__photos,
3500
+ .muka-tile--md .muka-tile__photos {
3501
+ border-radius: var(--border-radius-lg);
3537
3502
  }
3538
3503
 
3539
- .muka-thumbnail__caption {
3540
- max-width: 100%;
3541
- overflow: hidden;
3542
- text-overflow: ellipsis;
3543
- white-space: nowrap;
3544
- color: var(--alert-color-error-accent);
3545
- font-family: var(--text-body-sm-regular-fontFamily);
3546
- font-size: var(--text-body-sm-regular-fontSize);
3547
- font-weight: var(--text-body-sm-regular-fontWeight);
3548
- line-height: var(--text-body-sm-regular-lineHeight);
3504
+ .muka-tile--sm .muka-tile__photos {
3505
+ border-radius: var(--border-radius-md);
3549
3506
  }
3550
3507
 
3551
- /* ─── Remove (×) button ───────────────────────────────── */
3552
- .muka-thumbnail__remove {
3553
- position: absolute;
3554
- top: var(--spacing-2);
3555
- right: var(--spacing-2);
3556
- display: flex;
3557
- align-items: center;
3558
- justify-content: center;
3559
- width: var(--size-2xl);
3560
- height: var(--size-2xl);
3561
- padding: 0;
3562
- color: var(--button-color-tertiary-foreground-default);
3563
- background-color: var(--button-color-tertiary-background-default);
3564
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3565
- border-radius: var(--border-radius-lg);
3566
- cursor: pointer;
3567
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3568
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
3508
+ /* Photos sizing: top layout */
3509
+ .muka-tile--image-top .muka-tile__photos {
3510
+ width: 100%;
3569
3511
  }
3570
3512
 
3571
- .muka-thumbnail__remove:hover {
3572
- color: var(--button-color-tertiary-foreground-hover);
3573
- background-color: var(--button-color-tertiary-background-hover);
3574
- border-color: var(--button-color-tertiary-border-hover);
3513
+ /* Photos sizing: left/right large */
3514
+ .muka-tile--image-left.muka-tile--lg .muka-tile__photos,
3515
+ .muka-tile--image-right.muka-tile--lg .muka-tile__photos {
3516
+ width: 520px;
3575
3517
  }
3576
3518
 
3577
- .muka-thumbnail__remove:active {
3578
- color: var(--button-color-tertiary-foreground-pressed);
3579
- background-color: var(--button-color-tertiary-background-pressed);
3580
- border-color: var(--button-color-tertiary-border-pressed);
3519
+ /* Photos sizing: left/right medium */
3520
+ .muka-tile--image-left.muka-tile--md .muka-tile__photos,
3521
+ .muka-tile--image-right.muka-tile--md .muka-tile__photos {
3522
+ width: 320px;
3581
3523
  }
3582
3524
 
3583
- .muka-thumbnail__remove:focus-visible {
3584
- outline: 2px solid var(--color-border-focus);
3585
- outline-offset: 2px;
3525
+ /* Photos sizing: left/right small (single 80x80 thumbnail) */
3526
+ .muka-tile--image-left.muka-tile--sm .muka-tile__photos,
3527
+ .muka-tile--image-right.muka-tile--sm .muka-tile__photos {
3528
+ width: 80px;
3529
+ align-self: stretch;
3586
3530
  }
3587
3531
 
3588
- /* ─── Reduced motion ──────────────────────────────────── */
3589
- @media (prefers-reduced-motion: reduce) {
3590
- .muka-thumbnail__image,
3591
- .muka-thumbnail__remove {
3592
- transition: none;
3593
- }
3532
+ /* ─── Main photo ──────────────────────────────────────── */
3594
3533
 
3595
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3596
- transform: none;
3597
- }
3534
+ .muka-tile__photo-main {
3535
+ position: relative;
3536
+ width: 100%;
3537
+ overflow: hidden;
3538
+ flex-shrink: 0;
3598
3539
  }
3599
3540
 
3600
-
3601
- /* Textarea */
3602
- /* Textarea Component Styles - Using Muka Design Tokens */
3603
-
3604
- .muka-textarea {
3605
- display: inline-flex;
3606
- flex-direction: column;
3607
- gap: var(--spacing-2);
3541
+ /* 16:9 aspect for lg and md */
3542
+ .muka-tile--lg .muka-tile__photo-main,
3543
+ .muka-tile--md .muka-tile__photo-main {
3544
+ aspect-ratio: 1280 / 720;
3608
3545
  }
3609
3546
 
3610
- /* Label */
3611
- .muka-textarea__label {
3612
- color: var(--color-text-default-default);
3613
- cursor: pointer;
3547
+ /* 1:1 aspect for top + sm */
3548
+ .muka-tile--image-top.muka-tile--sm .muka-tile__photo-main {
3549
+ aspect-ratio: 1 / 1;
3614
3550
  }
3615
3551
 
3616
- .muka-textarea__label--sm {
3617
- font-family: var(--text-label-sm-semibold-fontFamily);
3618
- font-weight: var(--text-label-sm-semibold-fontWeight);
3619
- font-size: var(--text-label-sm-semibold-fontSize);
3620
- line-height: var(--text-label-sm-semibold-lineHeight);
3552
+ /* Fixed size for left/right + sm */
3553
+ .muka-tile--image-left.muka-tile--sm .muka-tile__photo-main,
3554
+ .muka-tile--image-right.muka-tile--sm .muka-tile__photo-main {
3555
+ width: 80px;
3556
+ height: 80px;
3557
+ aspect-ratio: auto;
3621
3558
  }
3622
3559
 
3623
- .muka-textarea__label--md {
3624
- font-family: var(--text-label-md-semibold-fontFamily);
3625
- font-weight: var(--text-label-md-semibold-fontWeight);
3626
- font-size: var(--text-label-md-semibold-fontSize);
3627
- line-height: var(--text-label-md-semibold-lineHeight);
3560
+ .muka-tile__photo-main img {
3561
+ width: 100%;
3562
+ height: 100%;
3563
+ object-fit: cover;
3564
+ display: block;
3628
3565
  }
3629
3566
 
3630
- .muka-textarea__label--lg {
3631
- font-family: var(--text-label-lg-semibold-fontFamily);
3632
- font-weight: var(--text-label-lg-semibold-fontWeight);
3633
- font-size: var(--text-label-lg-semibold-fontSize);
3634
- line-height: var(--text-label-lg-semibold-lineHeight);
3567
+ /* ─── Favourite overlay ───────────────────────────────── */
3568
+
3569
+ .muka-tile__favourite {
3570
+ position: absolute;
3571
+ z-index: 3;
3635
3572
  }
3636
3573
 
3637
- .muka-textarea__required {
3638
- color: var(--color-state-error-default);
3574
+ .muka-tile--lg .muka-tile__favourite,
3575
+ .muka-tile--md .muka-tile__favourite {
3576
+ top: var(--spacing-4);
3577
+ right: var(--spacing-4);
3639
3578
  }
3640
3579
 
3641
- /* Field container */
3642
- .muka-textarea__field {
3580
+ .muka-tile--image-top.muka-tile--sm .muka-tile__favourite {
3581
+ top: var(--spacing-1);
3582
+ right: var(--spacing-1);
3583
+ }
3584
+
3585
+ /* ─── Thumbnails ──────────────────────────────────────── */
3586
+
3587
+ .muka-tile__thumbnails {
3643
3588
  display: flex;
3644
- background-color: var(--input-field-color-default-background);
3645
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
3646
- border-radius: var(--input-field-radius-md);
3647
- padding: var(--input-field-padding-y) var(--input-field-padding-x);
3648
- transition: border-color 0.2s ease, background-color 0.2s ease;
3649
- box-sizing: border-box;
3589
+ gap: 2px;
3590
+ overflow: hidden;
3591
+ flex-shrink: 0;
3592
+ height: 80px;
3650
3593
  }
3651
3594
 
3652
- .muka-textarea__field--sm {
3653
- min-height: var(--input-textarea-height-sm);
3654
- border-radius: var(--input-field-radius-sm);
3595
+ .muka-tile__thumbnail {
3596
+ width: 80px;
3597
+ height: 80px;
3598
+ flex-shrink: 0;
3599
+ overflow: hidden;
3655
3600
  }
3656
3601
 
3657
- .muka-textarea__field--md {
3658
- min-height: var(--input-textarea-height-default);
3659
- border-radius: var(--input-field-radius-md);
3602
+ .muka-tile__thumbnail img {
3603
+ width: 100%;
3604
+ height: 100%;
3605
+ object-fit: cover;
3606
+ display: block;
3660
3607
  }
3661
3608
 
3662
- .muka-textarea__field--lg {
3663
- min-height: var(--input-textarea-height-lg);
3664
- border-radius: var(--input-field-radius-lg);
3609
+ /* Gap between main photo and thumbnails */
3610
+ .muka-tile__photos > .muka-tile__photo-main + .muka-tile__thumbnails {
3611
+ margin-top: 2px;
3665
3612
  }
3666
3613
 
3667
- /* Focus state */
3668
- .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
3669
- border-width: var(--border-width-bold);
3670
- border-color: var(--input-field-color-focus-border);
3671
- background-color: var(--input-field-color-focus-background);
3672
- padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
3614
+ /* ─── Content section ─────────────────────────────────── */
3615
+
3616
+ .muka-tile__content {
3617
+ display: flex;
3618
+ flex-direction: column;
3619
+ flex: 1;
3620
+ min-width: 0;
3673
3621
  }
3674
3622
 
3675
- /* Error state */
3676
- .muka-textarea__field--error:not(.muka-textarea__field--disabled) {
3677
- border-width: var(--border-width-bold);
3678
- border-color: var(--input-field-color-error-border);
3679
- background-color: var(--input-field-color-error-background);
3680
- padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
3623
+ /* Top layout: content has horizontal padding */
3624
+ .muka-tile--image-top.muka-tile--lg .muka-tile__content {
3625
+ padding: 0 var(--spacing-3);
3626
+ gap: var(--spacing-1);
3681
3627
  }
3682
3628
 
3683
- /* Disabled state */
3684
- .muka-textarea__field--disabled {
3685
- background-color: var(--input-field-color-disabled-background);
3686
- border-color: var(--input-field-color-disabled-border);
3687
- cursor: not-allowed;
3629
+ .muka-tile--image-top.muka-tile--md .muka-tile__content {
3630
+ padding: 0 var(--spacing-3);
3631
+ gap: var(--spacing-2);
3688
3632
  }
3689
3633
 
3690
- /* Native textarea */
3691
- .muka-textarea__native {
3692
- flex: 1;
3693
- border: none;
3694
- outline: none;
3695
- background: transparent;
3696
- color: var(--input-field-color-default-foreground);
3697
- font-family: var(--text-input-md-fontFamily);
3698
- font-weight: var(--text-input-md-fontWeight);
3699
- font-size: var(--text-input-md-fontSize);
3700
- line-height: var(--text-input-md-lineHeight);
3701
- padding: 0;
3702
- width: 100%;
3703
- min-width: 0;
3634
+ .muka-tile--image-top.muka-tile--sm .muka-tile__content {
3635
+ gap: var(--spacing-2);
3704
3636
  }
3705
3637
 
3706
- .muka-textarea__field--sm .muka-textarea__native {
3707
- font-family: var(--text-input-sm-fontFamily);
3708
- font-weight: var(--text-input-sm-fontWeight);
3709
- font-size: var(--text-input-sm-fontSize);
3710
- line-height: var(--text-input-sm-lineHeight);
3638
+ /* Left/right layout: content grows to fill space */
3639
+ .muka-tile--image-left .muka-tile__content,
3640
+ .muka-tile--image-right .muka-tile__content {
3641
+ gap: var(--spacing-3);
3711
3642
  }
3712
3643
 
3713
- .muka-textarea__field--lg .muka-textarea__native {
3714
- font-family: var(--text-input-lg-fontFamily);
3715
- font-weight: var(--text-input-lg-fontWeight);
3716
- font-size: var(--text-input-lg-fontSize);
3717
- line-height: var(--text-input-lg-lineHeight);
3644
+ .muka-tile--image-left.muka-tile--lg .muka-tile__content,
3645
+ .muka-tile--image-right.muka-tile--lg .muka-tile__content {
3646
+ padding: 0 var(--spacing-3);
3718
3647
  }
3719
3648
 
3720
- .muka-textarea__native::placeholder {
3721
- color: var(--color-text-subtle-default);
3649
+ .muka-tile--image-left.muka-tile--md .muka-tile__content,
3650
+ .muka-tile--image-right.muka-tile--md .muka-tile__content {
3651
+ padding: var(--spacing-2) var(--spacing-3);
3722
3652
  }
3723
3653
 
3724
- .muka-textarea__field--disabled .muka-textarea__native {
3725
- color: var(--input-field-color-disabled-foreground);
3726
- cursor: not-allowed;
3654
+ .muka-tile--image-left.muka-tile--sm .muka-tile__content,
3655
+ .muka-tile--image-right.muka-tile--sm .muka-tile__content {
3656
+ gap: var(--spacing-2);
3727
3657
  }
3728
3658
 
3729
- /* Footer (helper/error + count) */
3730
- .muka-textarea__footer {
3659
+ /* ─── Header (heading row + price) ────────────────────── */
3660
+
3661
+ .muka-tile__header {
3731
3662
  display: flex;
3732
- justify-content: space-between;
3733
3663
  align-items: flex-start;
3664
+ gap: var(--spacing-4);
3665
+ }
3666
+
3667
+ /* Small horizontal: row with text and action */
3668
+ .muka-tile--sm:not(.muka-tile--image-top) .muka-tile__header {
3734
3669
  gap: var(--spacing-2);
3670
+ align-items: center;
3671
+ padding-top: var(--spacing-1);
3735
3672
  }
3736
3673
 
3737
- .muka-textarea__helper {
3738
- font-family: var(--text-label-sm-regular-fontFamily);
3739
- font-weight: var(--text-label-sm-regular-fontWeight);
3740
- font-size: var(--text-label-sm-regular-fontSize);
3741
- line-height: var(--text-label-sm-regular-lineHeight);
3742
- color: var(--color-text-subtle-default);
3743
- margin: 0;
3674
+ /* ─── Text group ──────────────────────────────────────── */
3675
+
3676
+ .muka-tile__text {
3677
+ display: flex;
3678
+ flex-direction: column;
3679
+ flex: 1;
3680
+ min-width: 0;
3681
+ gap: var(--spacing-2);
3744
3682
  }
3745
3683
 
3746
- .muka-textarea__error {
3747
- font-family: var(--text-label-sm-regular-fontFamily);
3748
- font-weight: var(--text-label-sm-regular-fontWeight);
3749
- font-size: var(--text-label-sm-regular-fontSize);
3750
- line-height: var(--text-label-sm-regular-lineHeight);
3751
- color: var(--color-state-error-default);
3684
+ /* ─── Heading typography ──────────────────────────────── */
3685
+
3686
+ .muka-tile__heading {
3752
3687
  margin: 0;
3753
3688
  }
3754
3689
 
3755
- .muka-textarea__count {
3756
- font-family: var(--text-label-sm-regular-fontFamily);
3757
- font-weight: var(--text-label-sm-regular-fontWeight);
3758
- font-size: var(--text-label-sm-regular-fontSize);
3759
- line-height: var(--text-label-sm-regular-lineHeight);
3760
- color: var(--color-text-subtle-default);
3761
- margin-left: auto;
3690
+ .muka-tile--lg .muka-tile__heading {
3691
+ font-family: var(--text-label-2xl-semibold-fontFamily);
3692
+ font-weight: var(--text-label-2xl-semibold-fontWeight);
3693
+ font-size: var(--text-label-2xl-semibold-fontSize);
3694
+ line-height: var(--text-label-2xl-semibold-lineHeight);
3695
+ color: var(--color-text-default-default);
3762
3696
  }
3763
3697
 
3698
+ .muka-tile--md .muka-tile__heading {
3699
+ font-family: var(--text-label-xl-semibold-fontFamily);
3700
+ font-weight: var(--text-label-xl-semibold-fontWeight);
3701
+ font-size: var(--text-label-xl-semibold-fontSize);
3702
+ line-height: var(--text-label-xl-semibold-lineHeight);
3703
+ color: var(--color-text-default-default);
3704
+ }
3764
3705
 
3765
- /* TextLink */
3766
- /* TextLink Component Styles - Using Muka Design Tokens */
3706
+ .muka-tile--sm .muka-tile__heading {
3707
+ font-family: var(--text-label-lg-bold-fontFamily);
3708
+ font-weight: var(--text-label-lg-bold-fontWeight);
3709
+ font-size: var(--text-label-lg-bold-fontSize);
3710
+ line-height: var(--text-label-lg-bold-lineHeight);
3711
+ color: var(--color-text-default-default);
3712
+ }
3767
3713
 
3768
- .muka-text-link {
3769
- display: inline;
3770
- cursor: pointer;
3771
- text-decoration: underline;
3772
- /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
3773
- text-underline-offset: 0.2em;
3774
- text-decoration-thickness: from-font;
3775
- /* Rounds the focus ring's corners; the link itself has no visible box. */
3776
- border-radius: var(--border-radius-sm);
3777
- transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
3714
+ /* ─── Subheading typography ───────────────────────────── */
3715
+
3716
+ .muka-tile__subheading {
3717
+ margin: 0;
3718
+ color: var(--color-text-subtle-default);
3778
3719
  }
3779
3720
 
3780
- /* ─── Sizes ───────────────────────────────────────────────
3781
- Mirrors the body text scale so a link matches the copy it sits in. */
3782
- .muka-text-link--sm {
3783
- font-family: var(--text-body-sm-regular-fontFamily);
3784
- font-weight: var(--text-body-sm-regular-fontWeight);
3785
- font-size: var(--text-body-sm-regular-fontSize);
3786
- line-height: var(--text-body-sm-regular-lineHeight);
3721
+ .muka-tile--lg .muka-tile__subheading {
3722
+ font-family: var(--text-subheading-md-fontFamily);
3723
+ font-weight: var(--text-subheading-md-fontWeight);
3724
+ font-size: var(--text-subheading-md-fontSize);
3725
+ line-height: var(--text-subheading-md-lineHeight);
3787
3726
  }
3788
3727
 
3789
- .muka-text-link--base {
3790
- font-family: var(--text-body-base-regular-fontFamily);
3791
- font-weight: var(--text-body-base-regular-fontWeight);
3792
- font-size: var(--text-body-base-regular-fontSize);
3793
- line-height: var(--text-body-base-regular-lineHeight);
3728
+ .muka-tile--md .muka-tile__subheading,
3729
+ .muka-tile--sm .muka-tile__subheading {
3730
+ font-family: var(--text-subheading-sm-fontFamily);
3731
+ font-weight: var(--text-subheading-sm-fontWeight);
3732
+ font-size: var(--text-subheading-sm-fontSize);
3733
+ line-height: var(--text-subheading-sm-lineHeight);
3794
3734
  }
3795
3735
 
3796
- .muka-text-link--lg {
3736
+ /* ─── Description typography ──────────────────────────── */
3737
+
3738
+ .muka-tile__description {
3739
+ margin: 0;
3740
+ color: var(--color-text-default-default);
3741
+ }
3742
+
3743
+ .muka-tile--lg .muka-tile__description {
3797
3744
  font-family: var(--text-body-lg-regular-fontFamily);
3798
3745
  font-weight: var(--text-body-lg-regular-fontWeight);
3799
3746
  font-size: var(--text-body-lg-regular-fontSize);
3800
3747
  line-height: var(--text-body-lg-regular-lineHeight);
3801
3748
  }
3802
3749
 
3803
- /* ─── Variant: default (accent) ───────────────────────────
3804
- Visited repeats the default colour on purpose: the design treats visited and
3805
- default the same, and pinning it stops the browser's purple from showing. */
3806
- .muka-text-link--default,
3807
- .muka-text-link--default:visited {
3808
- color: var(--color-text-action-default);
3750
+ .muka-tile--md .muka-tile__description,
3751
+ .muka-tile--sm .muka-tile__description {
3752
+ font-family: var(--text-body-base-regular-fontFamily);
3753
+ font-weight: var(--text-body-base-regular-fontWeight);
3754
+ font-size: var(--text-body-base-regular-fontSize);
3755
+ line-height: var(--text-body-base-regular-lineHeight);
3809
3756
  }
3810
3757
 
3811
- .muka-text-link--default:hover,
3812
- .muka-text-link--default:focus-visible {
3813
- color: var(--color-text-action-hover);
3758
+ /* Description overflow for medium */
3759
+ .muka-tile--md .muka-tile__description {
3760
+ overflow: hidden;
3761
+ text-overflow: ellipsis;
3814
3762
  }
3815
3763
 
3816
- .muka-text-link--default:active {
3817
- color: var(--color-text-action-pressed);
3764
+ /* ─── Price slot ──────────────────────────────────────── */
3765
+
3766
+ .muka-tile__price {
3767
+ flex-shrink: 0;
3818
3768
  }
3819
3769
 
3820
- /* ─── Variant: subtle (neutral) ───────────────────────────
3821
- Hover, focus and pressed all darken to the default text colour. */
3822
- .muka-text-link--subtle,
3823
- .muka-text-link--subtle:visited {
3824
- color: var(--color-text-subtle-default);
3770
+ /* ─── Action slot ─────────────────────────────────────── */
3771
+
3772
+ .muka-tile__action {
3773
+ flex-shrink: 0;
3825
3774
  }
3826
3775
 
3827
- .muka-text-link--subtle:hover,
3828
- .muka-text-link--subtle:focus-visible,
3829
- .muka-text-link--subtle:active {
3830
- color: var(--color-text-default-default);
3776
+
3777
+ /* Thumbnail */
3778
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
3779
+
3780
+ .muka-thumbnail {
3781
+ position: relative;
3782
+ flex-shrink: 0;
3831
3783
  }
3832
3784
 
3833
- /* ─── Focus ───────────────────────────────────────────────
3834
- Same ring as every other focusable Muka component. */
3835
- .muka-text-link:focus-visible {
3836
- outline: 2px solid var(--color-border-focus);
3837
- outline-offset: 2px;
3785
+ /* The frame carries the border, background and shape clip. Keeping it separate
3786
+ from the root lets the remove (×) button sit outside the clip (needed for the
3787
+ circular/ellipse shape, whose corners would otherwise clip the button). */
3788
+ .muka-thumbnail__frame {
3789
+ position: absolute;
3790
+ inset: 0;
3791
+ overflow: hidden;
3792
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3793
+ border-radius: var(--border-radius-lg);
3794
+ background-color: var(--color-surface-level1);
3838
3795
  }
3839
3796
 
3840
- @media (prefers-reduced-motion: reduce) {
3841
- .muka-text-link {
3842
- transition: none;
3843
- }
3797
+ /* ─── Shapes ──────────────────────────────────────────── */
3798
+ .muka-thumbnail--4-3 {
3799
+ width: 160px;
3800
+ height: 120px;
3844
3801
  }
3845
3802
 
3803
+ .muka-thumbnail--1-1 {
3804
+ width: 120px;
3805
+ height: 120px;
3806
+ }
3846
3807
 
3847
- /* Tabs */
3848
- /* Tabs Component Styles - Clean underline style tabs matching Figma */
3808
+ .muka-thumbnail--ellipse {
3809
+ width: 120px;
3810
+ height: 120px;
3811
+ }
3849
3812
 
3850
- .muka-tabs {
3851
- display: flex;
3852
- flex-direction: column;
3813
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3814
+ .muka-thumbnail--fluid {
3815
+ width: 100%;
3816
+ height: auto;
3817
+ aspect-ratio: 1 / 1;
3853
3818
  }
3854
3819
 
3855
- /* Alignment Variants */
3856
- .muka-tabs--align-left .muka-tabs__list {
3857
- justify-content: flex-start;
3820
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3821
+ aspect-ratio: 4 / 3;
3858
3822
  }
3859
- .muka-tabs--align-center .muka-tabs__list {
3860
- justify-content: center;
3823
+
3824
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
3825
+ border-radius: var(--border-radius-full);
3861
3826
  }
3862
- .muka-tabs--align-fill .muka-tabs__list {
3863
- justify-content: space-between;
3827
+
3828
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3829
+ interactive hover zoom has a clean origin. */
3830
+ .muka-thumbnail__image {
3831
+ position: absolute;
3832
+ inset: 0;
3833
+ width: 100%;
3834
+ height: 100%;
3835
+ object-fit: cover;
3836
+ display: block;
3837
+ transform-origin: center;
3838
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3839
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3864
3840
  }
3865
- .muka-tabs--align-fill .muka-tabs__trigger {
3866
- flex: 1;
3841
+
3842
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
3843
+ .muka-thumbnail__trigger {
3844
+ position: absolute;
3845
+ inset: 0;
3846
+ padding: 0;
3847
+ border: 0;
3848
+ background: none;
3849
+ cursor: pointer;
3850
+ overflow: hidden;
3867
3851
  }
3868
3852
 
3869
- /* Tab List — strip container */
3870
- .muka-tabs__list {
3871
- display: flex;
3872
- align-items: center;
3873
- position: relative;
3874
- z-index: 2;
3875
- border-bottom: 1px solid var(--tabs-trigger-color-default-border);
3853
+ .muka-thumbnail__trigger:focus-visible {
3854
+ outline: 2px solid var(--color-border-focus);
3855
+ outline-offset: -2px;
3876
3856
  }
3877
3857
 
3878
- /* Padding: inset the tabs; the divider (border) still spans the full width */
3879
- .muka-tabs--padding-default .muka-tabs__list {
3880
- padding-inline: var(--tabs-list-padding-x);
3858
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3859
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3860
+ transform: scale(1.05);
3881
3861
  }
3882
3862
 
3883
- /* Tab Trigger — clean underline style */
3884
- .muka-tabs__trigger {
3885
- display: inline-flex;
3863
+ /* ─── Loading overlay + progress donut ────────────────── */
3864
+ .muka-thumbnail__overlay {
3865
+ position: absolute;
3866
+ inset: 0;
3867
+ display: flex;
3886
3868
  align-items: center;
3887
3869
  justify-content: center;
3888
- gap: var(--spacing-1);
3889
- background: transparent;
3890
- border: none;
3891
- cursor: pointer;
3892
- user-select: none;
3893
- transition: background-color 0.2s ease, color 0.2s ease;
3894
- outline: none;
3895
- white-space: nowrap;
3896
- position: relative;
3897
- z-index: 2;
3898
- color: var(--tabs-trigger-color-default-foreground);
3870
+ background-color: var(--dialog-color-backdrop);
3871
+ }
3899
3872
 
3900
- /* Default MD size values */
3901
- min-height: var(--tabs-trigger-min-height-md);
3902
- padding: var(--spacing-3);
3903
- font-family: var(--text-label-md-regular-fontFamily);
3904
- font-weight: var(--text-label-md-regular-fontWeight);
3905
- font-size: var(--text-label-md-regular-fontSize);
3906
- line-height: var(--text-label-md-regular-lineHeight);
3873
+ .muka-thumbnail__progress {
3874
+ width: 40px;
3875
+ height: 40px;
3907
3876
  }
3908
3877
 
3909
- /* Size Variants */
3910
- .muka-tabs--size-sm .muka-tabs__trigger {
3911
- min-height: var(--tabs-trigger-min-height-sm);
3912
- padding: 0 var(--spacing-2);
3913
- font-family: var(--text-label-sm-regular-fontFamily);
3914
- font-weight: var(--text-label-sm-regular-fontWeight);
3915
- font-size: var(--text-label-sm-regular-fontSize);
3916
- line-height: var(--text-label-sm-regular-lineHeight);
3878
+ /* ─── Error / corrupt state ───────────────────────────── */
3879
+ .muka-thumbnail--error .muka-thumbnail__frame {
3880
+ background-color: var(--alias-color-state-error-muted);
3881
+ border-color: var(--alias-color-state-error-default);
3917
3882
  }
3918
3883
 
3919
- .muka-tabs--size-lg .muka-tabs__trigger {
3920
- min-height: var(--tabs-trigger-min-height-lg);
3921
- padding: var(--spacing-4);
3922
- font-family: var(--text-label-lg-regular-fontFamily);
3923
- font-weight: var(--text-label-lg-regular-fontWeight);
3924
- font-size: var(--text-label-lg-regular-fontSize);
3925
- line-height: var(--text-label-lg-regular-lineHeight);
3884
+ .muka-thumbnail__error {
3885
+ position: absolute;
3886
+ inset: 0;
3887
+ display: flex;
3888
+ flex-direction: column;
3889
+ align-items: center;
3890
+ justify-content: center;
3891
+ gap: var(--spacing-2);
3892
+ padding: var(--spacing-3);
3893
+ text-align: center;
3926
3894
  }
3927
3895
 
3928
- /* Hover state */
3929
- .muka-tabs__trigger:hover:not(:disabled):not(.muka-tabs__trigger--current) {
3930
- color: var(--tabs-trigger-color-hover-foreground);
3896
+ .muka-thumbnail__error-icon {
3897
+ color: var(--alert-color-error-accent);
3931
3898
  }
3932
3899
 
3933
- /* Current tab */
3934
- .muka-tabs__trigger--current {
3935
- color: var(--tabs-trigger-color-current-foreground);
3900
+ .muka-thumbnail__caption {
3901
+ max-width: 100%;
3902
+ overflow: hidden;
3903
+ text-overflow: ellipsis;
3904
+ white-space: nowrap;
3905
+ color: var(--alert-color-error-accent);
3906
+ font-family: var(--text-body-sm-regular-fontFamily);
3907
+ font-size: var(--text-body-sm-regular-fontSize);
3908
+ font-weight: var(--text-body-sm-regular-fontWeight);
3909
+ line-height: var(--text-body-sm-regular-lineHeight);
3936
3910
  }
3937
3911
 
3938
- /* Active bottom border (underline) */
3939
- .muka-tabs__trigger--current::after {
3940
- content: '';
3912
+ /* ─── Remove (×) button ───────────────────────────────── */
3913
+ .muka-thumbnail__remove {
3941
3914
  position: absolute;
3942
- bottom: -1px; /* Overlap the 1px border */
3943
- left: 0;
3944
- right: 0;
3945
- height: var(--tabs-indicator-height-md);
3946
- background-color: var(--tabs-indicator-color);
3947
- border-bottom-left-radius: 1px;
3948
- border-bottom-right-radius: 1px;
3949
- border-top-left-radius: 3px;
3950
- border-top-right-radius: 3px;
3951
- z-index: 3;
3915
+ top: var(--spacing-2);
3916
+ right: var(--spacing-2);
3917
+ display: flex;
3918
+ align-items: center;
3919
+ justify-content: center;
3920
+ width: var(--size-2xl);
3921
+ height: var(--size-2xl);
3922
+ padding: 0;
3923
+ color: var(--button-color-tertiary-foreground-default);
3924
+ background-color: var(--button-color-tertiary-background-default);
3925
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3926
+ border-radius: var(--border-radius-lg);
3927
+ cursor: pointer;
3928
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3929
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
3952
3930
  }
3953
3931
 
3954
- .muka-tabs--size-sm .muka-tabs__trigger--current::after {
3955
- height: var(--tabs-indicator-height-sm);
3956
- }
3957
- .muka-tabs--size-lg .muka-tabs__trigger--current::after {
3958
- height: var(--tabs-indicator-height-lg);
3932
+ .muka-thumbnail__remove:hover {
3933
+ color: var(--button-color-tertiary-foreground-hover);
3934
+ background-color: var(--button-color-tertiary-background-hover);
3935
+ border-color: var(--button-color-tertiary-border-hover);
3959
3936
  }
3960
3937
 
3961
- .muka-tabs__trigger--disabled {
3962
- color: var(--tabs-trigger-color-disabled-foreground);
3963
- cursor: not-allowed;
3938
+ .muka-thumbnail__remove:active {
3939
+ color: var(--button-color-tertiary-foreground-pressed);
3940
+ background-color: var(--button-color-tertiary-background-pressed);
3941
+ border-color: var(--button-color-tertiary-border-pressed);
3964
3942
  }
3965
3943
 
3966
- .muka-tabs__trigger:focus-visible {
3944
+ .muka-thumbnail__remove:focus-visible {
3967
3945
  outline: 2px solid var(--color-border-focus);
3968
- outline-offset: -2px;
3946
+ outline-offset: 2px;
3969
3947
  }
3970
3948
 
3971
- /* Label: Figma pads the label 8px either side, so with the 4px gap a leading
3972
- item sits 12px from the text */
3973
- .muka-tabs__label {
3974
- padding: 0 var(--spacing-2);
3975
- }
3976
-
3977
- /* Leading item: icon, avatar, avatar group or data pie chart */
3978
- .muka-tabs__leading {
3979
- display: flex;
3980
- align-items: center;
3981
- justify-content: center;
3982
- flex-shrink: 0;
3983
- }
3984
- .muka-tabs__trigger .muka-icon {
3985
- color: inherit;
3986
- }
3987
- /* Icon sizes only: avatars and pie charts are sized through their size prop */
3988
- .muka-tabs--size-sm .muka-tabs__leading > svg,
3989
- .muka-tabs--size-sm .muka-tabs__leading > .muka-icon svg { width: 16px; height: 16px; }
3990
- .muka-tabs--size-md .muka-tabs__leading > svg,
3991
- .muka-tabs--size-md .muka-tabs__leading > .muka-icon svg { width: 20px; height: 20px; }
3992
- .muka-tabs--size-lg .muka-tabs__leading > svg,
3993
- .muka-tabs--size-lg .muka-tabs__leading > .muka-icon svg { width: 24px; height: 24px; }
3994
-
3995
- /* Responsive Scroll behavior on small screens */
3996
- @media (max-width: 768px) {
3997
- .muka-tabs__list {
3998
- /* Make scrollable */
3999
- overflow-x: auto;
4000
- overflow-y: hidden;
4001
- /* Force left alignment on mobile to prevent clipping when scrolling */
4002
- justify-content: flex-start !important;
4003
- max-width: 100vw;
4004
- -webkit-overflow-scrolling: touch;
4005
- /* Hide scrollbar for cleaner look */
4006
- scrollbar-width: none;
4007
- }
4008
- .muka-tabs__list::-webkit-scrollbar {
4009
- display: none;
4010
- }
4011
- /* Remove flex: 1 behavior for Fill tabs on mobile so they map correctly */
4012
- .muka-tabs--align-fill .muka-tabs__trigger {
4013
- flex: 0 0 auto;
3949
+ /* ─── Reduced motion ──────────────────────────────────── */
3950
+ @media (prefers-reduced-motion: reduce) {
3951
+ .muka-thumbnail__image,
3952
+ .muka-thumbnail__remove {
3953
+ transition: none;
4014
3954
  }
4015
- }
4016
-
4017
- /* Tab Panel — content area */
4018
- .muka-tabs__panel {
4019
- background-color: var(--tabs-panel-background);
4020
- /* border-top: var(--border-width-regular) solid var(--tabs-panel-border); removed in favor of the new tablist border */
4021
- border-bottom: var(--border-width-regular) solid var(--tabs-panel-border);
4022
- padding: var(--spacing-4);
4023
- position: relative;
4024
- z-index: 1;
4025
- font-family: var(--text-body-base-regular-fontFamily);
4026
- font-weight: var(--text-body-base-regular-fontWeight);
4027
- font-size: var(--text-body-base-regular-fontSize);
4028
- line-height: var(--text-body-base-regular-lineHeight);
4029
- }
4030
3955
 
4031
- .muka-tabs__panel:focus-visible {
4032
- outline: 2px solid var(--color-border-focus);
4033
- outline-offset: 2px;
3956
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3957
+ transform: none;
3958
+ }
4034
3959
  }
4035
3960
 
4036
3961
 
4037
- /* Tile */
4038
- /* Tile Component Styles - Using Muka Design Tokens */
4039
-
4040
- /* ─── Base ────────────────────────────────────────────── */
3962
+ /* Textarea */
3963
+ /* Textarea Component Styles - Using Muka Design Tokens */
4041
3964
 
4042
- .muka-tile {
4043
- display: flex;
4044
- color: var(--color-text-default-default);
3965
+ .muka-textarea {
3966
+ display: inline-flex;
3967
+ flex-direction: column;
3968
+ gap: var(--spacing-2);
4045
3969
  }
4046
3970
 
4047
- .muka-tile--interactive {
3971
+ /* Label */
3972
+ .muka-textarea__label {
3973
+ color: var(--color-text-default-default);
4048
3974
  cursor: pointer;
4049
- user-select: none;
4050
3975
  }
4051
3976
 
4052
- .muka-tile--interactive:focus-visible {
4053
- outline: 2px solid var(--color-border-focus);
4054
- outline-offset: 2px;
4055
- border-radius: var(--border-radius-lg);
3977
+ .muka-textarea__label--sm {
3978
+ font-family: var(--text-label-sm-semibold-fontFamily);
3979
+ font-weight: var(--text-label-sm-semibold-fontWeight);
3980
+ font-size: var(--text-label-sm-semibold-fontSize);
3981
+ line-height: var(--text-label-sm-semibold-lineHeight);
4056
3982
  }
4057
3983
 
4058
- /* ─── Image position variants ─────────────────────────── */
4059
-
4060
- .muka-tile--image-top {
4061
- flex-direction: column;
3984
+ .muka-textarea__label--md {
3985
+ font-family: var(--text-label-md-semibold-fontFamily);
3986
+ font-weight: var(--text-label-md-semibold-fontWeight);
3987
+ font-size: var(--text-label-md-semibold-fontSize);
3988
+ line-height: var(--text-label-md-semibold-lineHeight);
4062
3989
  }
4063
3990
 
4064
- .muka-tile--image-left {
4065
- flex-direction: row;
3991
+ .muka-textarea__label--lg {
3992
+ font-family: var(--text-label-lg-semibold-fontFamily);
3993
+ font-weight: var(--text-label-lg-semibold-fontWeight);
3994
+ font-size: var(--text-label-lg-semibold-fontSize);
3995
+ line-height: var(--text-label-lg-semibold-lineHeight);
4066
3996
  }
4067
3997
 
4068
- .muka-tile--image-right {
4069
- flex-direction: row;
3998
+ .muka-textarea__required {
3999
+ color: var(--color-state-error-default);
4070
4000
  }
4071
4001
 
4072
- /* ─── Gap by size (top) ───────────────────────────────── */
4073
-
4074
- .muka-tile--image-top.muka-tile--lg {
4075
- gap: var(--spacing-6);
4002
+ /* Field container */
4003
+ .muka-textarea__field {
4004
+ display: flex;
4005
+ background-color: var(--input-field-color-default-background);
4006
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
4007
+ border-radius: var(--input-field-radius-md);
4008
+ padding: var(--input-field-padding-y) var(--input-field-padding-x);
4009
+ transition: border-color 0.2s ease, background-color 0.2s ease;
4010
+ box-sizing: border-box;
4076
4011
  }
4077
4012
 
4078
- .muka-tile--image-top.muka-tile--md {
4079
- gap: var(--spacing-6);
4080
- width: 320px;
4013
+ .muka-textarea__field--sm {
4014
+ min-height: var(--input-textarea-height-sm);
4015
+ border-radius: var(--input-field-radius-sm);
4081
4016
  }
4082
4017
 
4083
- .muka-tile--image-top.muka-tile--sm {
4084
- gap: var(--spacing-4);
4085
- min-width: 120px;
4018
+ .muka-textarea__field--md {
4019
+ min-height: var(--input-textarea-height-default);
4020
+ border-radius: var(--input-field-radius-md);
4086
4021
  }
4087
4022
 
4088
- /* ─── Gap by size (left/right) ────────────────────────── */
4089
-
4090
- .muka-tile--image-left.muka-tile--lg,
4091
- .muka-tile--image-right.muka-tile--lg {
4092
- gap: var(--spacing-6);
4093
- align-items: center;
4023
+ .muka-textarea__field--lg {
4024
+ min-height: var(--input-textarea-height-lg);
4025
+ border-radius: var(--input-field-radius-lg);
4094
4026
  }
4095
4027
 
4096
- .muka-tile--image-left.muka-tile--md,
4097
- .muka-tile--image-right.muka-tile--md {
4098
- gap: var(--spacing-6);
4099
- align-items: center;
4028
+ /* Focus state */
4029
+ .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
4030
+ border-width: var(--border-width-bold);
4031
+ border-color: var(--input-field-color-focus-border);
4032
+ background-color: var(--input-field-color-focus-background);
4033
+ padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4100
4034
  }
4101
4035
 
4102
- .muka-tile--image-left.muka-tile--sm,
4103
- .muka-tile--image-right.muka-tile--sm {
4104
- gap: var(--spacing-4);
4105
- align-items: flex-start;
4036
+ /* Error state */
4037
+ .muka-textarea__field--error:not(.muka-textarea__field--disabled) {
4038
+ border-width: var(--border-width-bold);
4039
+ border-color: var(--input-field-color-error-border);
4040
+ background-color: var(--input-field-color-error-background);
4041
+ padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4106
4042
  }
4107
4043
 
4108
- /* ─── Photos container ────────────────────────────────── */
4109
-
4110
- .muka-tile__photos {
4111
- position: relative;
4112
- flex-shrink: 0;
4113
- overflow: hidden;
4114
- display: flex;
4115
- flex-direction: column;
4116
- isolation: isolate;
4044
+ /* Disabled state */
4045
+ .muka-textarea__field--disabled {
4046
+ background-color: var(--input-field-color-disabled-background);
4047
+ border-color: var(--input-field-color-disabled-border);
4048
+ cursor: not-allowed;
4117
4049
  }
4118
4050
 
4119
- /* Photos border radius by size */
4120
- .muka-tile--lg .muka-tile__photos,
4121
- .muka-tile--md .muka-tile__photos {
4122
- border-radius: var(--border-radius-lg);
4051
+ /* Native textarea */
4052
+ .muka-textarea__native {
4053
+ flex: 1;
4054
+ border: none;
4055
+ outline: none;
4056
+ background: transparent;
4057
+ color: var(--input-field-color-default-foreground);
4058
+ font-family: var(--text-input-md-fontFamily);
4059
+ font-weight: var(--text-input-md-fontWeight);
4060
+ font-size: var(--text-input-md-fontSize);
4061
+ line-height: var(--text-input-md-lineHeight);
4062
+ padding: 0;
4063
+ width: 100%;
4064
+ min-width: 0;
4123
4065
  }
4124
4066
 
4125
- .muka-tile--sm .muka-tile__photos {
4126
- border-radius: var(--border-radius-md);
4067
+ .muka-textarea__field--sm .muka-textarea__native {
4068
+ font-family: var(--text-input-sm-fontFamily);
4069
+ font-weight: var(--text-input-sm-fontWeight);
4070
+ font-size: var(--text-input-sm-fontSize);
4071
+ line-height: var(--text-input-sm-lineHeight);
4127
4072
  }
4128
4073
 
4129
- /* Photos sizing: top layout */
4130
- .muka-tile--image-top .muka-tile__photos {
4131
- width: 100%;
4074
+ .muka-textarea__field--lg .muka-textarea__native {
4075
+ font-family: var(--text-input-lg-fontFamily);
4076
+ font-weight: var(--text-input-lg-fontWeight);
4077
+ font-size: var(--text-input-lg-fontSize);
4078
+ line-height: var(--text-input-lg-lineHeight);
4132
4079
  }
4133
4080
 
4134
- /* Photos sizing: left/right large */
4135
- .muka-tile--image-left.muka-tile--lg .muka-tile__photos,
4136
- .muka-tile--image-right.muka-tile--lg .muka-tile__photos {
4137
- width: 520px;
4081
+ .muka-textarea__native::placeholder {
4082
+ color: var(--color-text-subtle-default);
4138
4083
  }
4139
4084
 
4140
- /* Photos sizing: left/right medium */
4141
- .muka-tile--image-left.muka-tile--md .muka-tile__photos,
4142
- .muka-tile--image-right.muka-tile--md .muka-tile__photos {
4143
- width: 320px;
4085
+ .muka-textarea__field--disabled .muka-textarea__native {
4086
+ color: var(--input-field-color-disabled-foreground);
4087
+ cursor: not-allowed;
4144
4088
  }
4145
4089
 
4146
- /* Photos sizing: left/right small (single 80x80 thumbnail) */
4147
- .muka-tile--image-left.muka-tile--sm .muka-tile__photos,
4148
- .muka-tile--image-right.muka-tile--sm .muka-tile__photos {
4149
- width: 80px;
4150
- align-self: stretch;
4090
+ /* Footer (helper/error + count) */
4091
+ .muka-textarea__footer {
4092
+ display: flex;
4093
+ justify-content: space-between;
4094
+ align-items: flex-start;
4095
+ gap: var(--spacing-2);
4151
4096
  }
4152
4097
 
4153
- /* ─── Main photo ──────────────────────────────────────── */
4154
-
4155
- .muka-tile__photo-main {
4156
- position: relative;
4157
- width: 100%;
4158
- overflow: hidden;
4159
- flex-shrink: 0;
4098
+ .muka-textarea__helper {
4099
+ font-family: var(--text-label-sm-regular-fontFamily);
4100
+ font-weight: var(--text-label-sm-regular-fontWeight);
4101
+ font-size: var(--text-label-sm-regular-fontSize);
4102
+ line-height: var(--text-label-sm-regular-lineHeight);
4103
+ color: var(--color-text-subtle-default);
4104
+ margin: 0;
4160
4105
  }
4161
4106
 
4162
- /* 16:9 aspect for lg and md */
4163
- .muka-tile--lg .muka-tile__photo-main,
4164
- .muka-tile--md .muka-tile__photo-main {
4165
- aspect-ratio: 1280 / 720;
4107
+ .muka-textarea__error {
4108
+ font-family: var(--text-label-sm-regular-fontFamily);
4109
+ font-weight: var(--text-label-sm-regular-fontWeight);
4110
+ font-size: var(--text-label-sm-regular-fontSize);
4111
+ line-height: var(--text-label-sm-regular-lineHeight);
4112
+ color: var(--color-state-error-default);
4113
+ margin: 0;
4166
4114
  }
4167
4115
 
4168
- /* 1:1 aspect for top + sm */
4169
- .muka-tile--image-top.muka-tile--sm .muka-tile__photo-main {
4170
- aspect-ratio: 1 / 1;
4116
+ .muka-textarea__count {
4117
+ font-family: var(--text-label-sm-regular-fontFamily);
4118
+ font-weight: var(--text-label-sm-regular-fontWeight);
4119
+ font-size: var(--text-label-sm-regular-fontSize);
4120
+ line-height: var(--text-label-sm-regular-lineHeight);
4121
+ color: var(--color-text-subtle-default);
4122
+ margin-left: auto;
4171
4123
  }
4172
4124
 
4173
- /* Fixed size for left/right + sm */
4174
- .muka-tile--image-left.muka-tile--sm .muka-tile__photo-main,
4175
- .muka-tile--image-right.muka-tile--sm .muka-tile__photo-main {
4176
- width: 80px;
4177
- height: 80px;
4178
- aspect-ratio: auto;
4125
+
4126
+ /* TextLink */
4127
+ /* TextLink Component Styles - Using Muka Design Tokens */
4128
+
4129
+ .muka-text-link {
4130
+ display: inline;
4131
+ cursor: pointer;
4132
+ text-decoration: underline;
4133
+ /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4134
+ text-underline-offset: 0.2em;
4135
+ text-decoration-thickness: from-font;
4136
+ /* Rounds the focus ring's corners; the link itself has no visible box. */
4137
+ border-radius: var(--border-radius-sm);
4138
+ transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4179
4139
  }
4180
4140
 
4181
- .muka-tile__photo-main img {
4182
- width: 100%;
4183
- height: 100%;
4184
- object-fit: cover;
4185
- display: block;
4141
+ /* ─── Sizes ───────────────────────────────────────────────
4142
+ Mirrors the body text scale so a link matches the copy it sits in. */
4143
+ .muka-text-link--sm {
4144
+ font-family: var(--text-body-sm-regular-fontFamily);
4145
+ font-weight: var(--text-body-sm-regular-fontWeight);
4146
+ font-size: var(--text-body-sm-regular-fontSize);
4147
+ line-height: var(--text-body-sm-regular-lineHeight);
4186
4148
  }
4187
4149
 
4188
- /* ─── Favourite overlay ───────────────────────────────── */
4150
+ .muka-text-link--base {
4151
+ font-family: var(--text-body-base-regular-fontFamily);
4152
+ font-weight: var(--text-body-base-regular-fontWeight);
4153
+ font-size: var(--text-body-base-regular-fontSize);
4154
+ line-height: var(--text-body-base-regular-lineHeight);
4155
+ }
4189
4156
 
4190
- .muka-tile__favourite {
4191
- position: absolute;
4192
- z-index: 3;
4157
+ .muka-text-link--lg {
4158
+ font-family: var(--text-body-lg-regular-fontFamily);
4159
+ font-weight: var(--text-body-lg-regular-fontWeight);
4160
+ font-size: var(--text-body-lg-regular-fontSize);
4161
+ line-height: var(--text-body-lg-regular-lineHeight);
4193
4162
  }
4194
4163
 
4195
- .muka-tile--lg .muka-tile__favourite,
4196
- .muka-tile--md .muka-tile__favourite {
4197
- top: var(--spacing-4);
4198
- right: var(--spacing-4);
4164
+ /* ─── Variant: default (accent) ───────────────────────────
4165
+ Visited repeats the default colour on purpose: the design treats visited and
4166
+ default the same, and pinning it stops the browser's purple from showing. */
4167
+ .muka-text-link--default,
4168
+ .muka-text-link--default:visited {
4169
+ color: var(--color-text-action-default);
4199
4170
  }
4200
4171
 
4201
- .muka-tile--image-top.muka-tile--sm .muka-tile__favourite {
4202
- top: var(--spacing-1);
4203
- right: var(--spacing-1);
4172
+ .muka-text-link--default:hover,
4173
+ .muka-text-link--default:focus-visible {
4174
+ color: var(--color-text-action-hover);
4204
4175
  }
4205
4176
 
4206
- /* ─── Thumbnails ──────────────────────────────────────── */
4177
+ .muka-text-link--default:active {
4178
+ color: var(--color-text-action-pressed);
4179
+ }
4207
4180
 
4208
- .muka-tile__thumbnails {
4209
- display: flex;
4210
- gap: 2px;
4211
- overflow: hidden;
4212
- flex-shrink: 0;
4213
- height: 80px;
4181
+ /* ─── Variant: subtle (neutral) ───────────────────────────
4182
+ Hover, focus and pressed all darken to the default text colour. */
4183
+ .muka-text-link--subtle,
4184
+ .muka-text-link--subtle:visited {
4185
+ color: var(--color-text-subtle-default);
4214
4186
  }
4215
4187
 
4216
- .muka-tile__thumbnail {
4217
- width: 80px;
4218
- height: 80px;
4219
- flex-shrink: 0;
4220
- overflow: hidden;
4188
+ .muka-text-link--subtle:hover,
4189
+ .muka-text-link--subtle:focus-visible,
4190
+ .muka-text-link--subtle:active {
4191
+ color: var(--color-text-default-default);
4221
4192
  }
4222
4193
 
4223
- .muka-tile__thumbnail img {
4224
- width: 100%;
4225
- height: 100%;
4226
- object-fit: cover;
4227
- display: block;
4194
+ /* ─── Focus ───────────────────────────────────────────────
4195
+ Same ring as every other focusable Muka component. */
4196
+ .muka-text-link:focus-visible {
4197
+ outline: 2px solid var(--color-border-focus);
4198
+ outline-offset: 2px;
4228
4199
  }
4229
4200
 
4230
- /* Gap between main photo and thumbnails */
4231
- .muka-tile__photos > .muka-tile__photo-main + .muka-tile__thumbnails {
4232
- margin-top: 2px;
4201
+ @media (prefers-reduced-motion: reduce) {
4202
+ .muka-text-link {
4203
+ transition: none;
4204
+ }
4233
4205
  }
4234
4206
 
4235
- /* ─── Content section ─────────────────────────────────── */
4236
4207
 
4237
- .muka-tile__content {
4208
+ /* Tabs */
4209
+ /* Tabs Component Styles - Clean underline style tabs matching Figma */
4210
+
4211
+ .muka-tabs {
4238
4212
  display: flex;
4239
4213
  flex-direction: column;
4240
- flex: 1;
4241
- min-width: 0;
4242
- }
4243
-
4244
- /* Top layout: content has horizontal padding */
4245
- .muka-tile--image-top.muka-tile--lg .muka-tile__content {
4246
- padding: 0 var(--spacing-3);
4247
- gap: var(--spacing-1);
4248
4214
  }
4249
4215
 
4250
- .muka-tile--image-top.muka-tile--md .muka-tile__content {
4251
- padding: 0 var(--spacing-3);
4252
- gap: var(--spacing-2);
4216
+ /* Alignment Variants */
4217
+ .muka-tabs--align-left .muka-tabs__list {
4218
+ justify-content: flex-start;
4253
4219
  }
4254
-
4255
- .muka-tile--image-top.muka-tile--sm .muka-tile__content {
4256
- gap: var(--spacing-2);
4220
+ .muka-tabs--align-center .muka-tabs__list {
4221
+ justify-content: center;
4257
4222
  }
4258
-
4259
- /* Left/right layout: content grows to fill space */
4260
- .muka-tile--image-left .muka-tile__content,
4261
- .muka-tile--image-right .muka-tile__content {
4262
- gap: var(--spacing-3);
4223
+ .muka-tabs--align-fill .muka-tabs__list {
4224
+ justify-content: space-between;
4263
4225
  }
4264
-
4265
- .muka-tile--image-left.muka-tile--lg .muka-tile__content,
4266
- .muka-tile--image-right.muka-tile--lg .muka-tile__content {
4267
- padding: 0 var(--spacing-3);
4226
+ .muka-tabs--align-fill .muka-tabs__trigger {
4227
+ flex: 1;
4268
4228
  }
4269
4229
 
4270
- .muka-tile--image-left.muka-tile--md .muka-tile__content,
4271
- .muka-tile--image-right.muka-tile--md .muka-tile__content {
4272
- padding: var(--spacing-2) var(--spacing-3);
4230
+ /* Tab List — strip container */
4231
+ .muka-tabs__list {
4232
+ display: flex;
4233
+ align-items: center;
4234
+ position: relative;
4235
+ z-index: 2;
4236
+ border-bottom: 1px solid var(--tabs-trigger-color-default-border);
4273
4237
  }
4274
4238
 
4275
- .muka-tile--image-left.muka-tile--sm .muka-tile__content,
4276
- .muka-tile--image-right.muka-tile--sm .muka-tile__content {
4277
- gap: var(--spacing-2);
4239
+ /* Padding: inset the tabs; the divider (border) still spans the full width */
4240
+ .muka-tabs--padding-default .muka-tabs__list {
4241
+ padding-inline: var(--tabs-list-padding-x);
4278
4242
  }
4279
4243
 
4280
- /* ─── Header (heading row + price) ────────────────────── */
4244
+ /* Tab Trigger — clean underline style */
4245
+ .muka-tabs__trigger {
4246
+ display: inline-flex;
4247
+ align-items: center;
4248
+ justify-content: center;
4249
+ gap: var(--spacing-1);
4250
+ background: transparent;
4251
+ border: none;
4252
+ cursor: pointer;
4253
+ user-select: none;
4254
+ transition: background-color 0.2s ease, color 0.2s ease;
4255
+ outline: none;
4256
+ white-space: nowrap;
4257
+ position: relative;
4258
+ z-index: 2;
4259
+ color: var(--tabs-trigger-color-default-foreground);
4281
4260
 
4282
- .muka-tile__header {
4283
- display: flex;
4284
- align-items: flex-start;
4285
- gap: var(--spacing-4);
4261
+ /* Default MD size values */
4262
+ min-height: var(--tabs-trigger-min-height-md);
4263
+ padding: var(--spacing-3);
4264
+ font-family: var(--text-label-md-regular-fontFamily);
4265
+ font-weight: var(--text-label-md-regular-fontWeight);
4266
+ font-size: var(--text-label-md-regular-fontSize);
4267
+ line-height: var(--text-label-md-regular-lineHeight);
4286
4268
  }
4287
4269
 
4288
- /* Small horizontal: row with text and action */
4289
- .muka-tile--sm:not(.muka-tile--image-top) .muka-tile__header {
4290
- gap: var(--spacing-2);
4291
- align-items: center;
4292
- padding-top: var(--spacing-1);
4270
+ /* Size Variants */
4271
+ .muka-tabs--size-sm .muka-tabs__trigger {
4272
+ min-height: var(--tabs-trigger-min-height-sm);
4273
+ padding: 0 var(--spacing-2);
4274
+ font-family: var(--text-label-sm-regular-fontFamily);
4275
+ font-weight: var(--text-label-sm-regular-fontWeight);
4276
+ font-size: var(--text-label-sm-regular-fontSize);
4277
+ line-height: var(--text-label-sm-regular-lineHeight);
4293
4278
  }
4294
4279
 
4295
- /* ─── Text group ──────────────────────────────────────── */
4296
-
4297
- .muka-tile__text {
4298
- display: flex;
4299
- flex-direction: column;
4300
- flex: 1;
4301
- min-width: 0;
4302
- gap: var(--spacing-2);
4280
+ .muka-tabs--size-lg .muka-tabs__trigger {
4281
+ min-height: var(--tabs-trigger-min-height-lg);
4282
+ padding: var(--spacing-4);
4283
+ font-family: var(--text-label-lg-regular-fontFamily);
4284
+ font-weight: var(--text-label-lg-regular-fontWeight);
4285
+ font-size: var(--text-label-lg-regular-fontSize);
4286
+ line-height: var(--text-label-lg-regular-lineHeight);
4303
4287
  }
4304
4288
 
4305
- /* ─── Heading typography ──────────────────────────────── */
4306
-
4307
- .muka-tile__heading {
4308
- margin: 0;
4289
+ /* Hover state */
4290
+ .muka-tabs__trigger:hover:not(:disabled):not(.muka-tabs__trigger--current) {
4291
+ color: var(--tabs-trigger-color-hover-foreground);
4309
4292
  }
4310
4293
 
4311
- .muka-tile--lg .muka-tile__heading {
4312
- font-family: var(--text-label-2xl-semibold-fontFamily);
4313
- font-weight: var(--text-label-2xl-semibold-fontWeight);
4314
- font-size: var(--text-label-2xl-semibold-fontSize);
4315
- line-height: var(--text-label-2xl-semibold-lineHeight);
4316
- color: var(--color-text-default-default);
4294
+ /* Current tab */
4295
+ .muka-tabs__trigger--current {
4296
+ color: var(--tabs-trigger-color-current-foreground);
4317
4297
  }
4318
4298
 
4319
- .muka-tile--md .muka-tile__heading {
4320
- font-family: var(--text-label-xl-semibold-fontFamily);
4321
- font-weight: var(--text-label-xl-semibold-fontWeight);
4322
- font-size: var(--text-label-xl-semibold-fontSize);
4323
- line-height: var(--text-label-xl-semibold-lineHeight);
4324
- color: var(--color-text-default-default);
4299
+ /* Active bottom border (underline) */
4300
+ .muka-tabs__trigger--current::after {
4301
+ content: '';
4302
+ position: absolute;
4303
+ bottom: -1px; /* Overlap the 1px border */
4304
+ left: 0;
4305
+ right: 0;
4306
+ height: var(--tabs-indicator-height-md);
4307
+ background-color: var(--tabs-indicator-color);
4308
+ border-bottom-left-radius: 1px;
4309
+ border-bottom-right-radius: 1px;
4310
+ border-top-left-radius: 3px;
4311
+ border-top-right-radius: 3px;
4312
+ z-index: 3;
4325
4313
  }
4326
4314
 
4327
- .muka-tile--sm .muka-tile__heading {
4328
- font-family: var(--text-label-lg-bold-fontFamily);
4329
- font-weight: var(--text-label-lg-bold-fontWeight);
4330
- font-size: var(--text-label-lg-bold-fontSize);
4331
- line-height: var(--text-label-lg-bold-lineHeight);
4332
- color: var(--color-text-default-default);
4315
+ .muka-tabs--size-sm .muka-tabs__trigger--current::after {
4316
+ height: var(--tabs-indicator-height-sm);
4333
4317
  }
4334
-
4335
- /* ─── Subheading typography ───────────────────────────── */
4336
-
4337
- .muka-tile__subheading {
4338
- margin: 0;
4339
- color: var(--color-text-subtle-default);
4318
+ .muka-tabs--size-lg .muka-tabs__trigger--current::after {
4319
+ height: var(--tabs-indicator-height-lg);
4340
4320
  }
4341
4321
 
4342
- .muka-tile--lg .muka-tile__subheading {
4343
- font-family: var(--text-subheading-md-fontFamily);
4344
- font-weight: var(--text-subheading-md-fontWeight);
4345
- font-size: var(--text-subheading-md-fontSize);
4346
- line-height: var(--text-subheading-md-lineHeight);
4322
+ .muka-tabs__trigger--disabled {
4323
+ color: var(--tabs-trigger-color-disabled-foreground);
4324
+ cursor: not-allowed;
4347
4325
  }
4348
4326
 
4349
- .muka-tile--md .muka-tile__subheading,
4350
- .muka-tile--sm .muka-tile__subheading {
4351
- font-family: var(--text-subheading-sm-fontFamily);
4352
- font-weight: var(--text-subheading-sm-fontWeight);
4353
- font-size: var(--text-subheading-sm-fontSize);
4354
- line-height: var(--text-subheading-sm-lineHeight);
4327
+ .muka-tabs__trigger:focus-visible {
4328
+ outline: 2px solid var(--color-border-focus);
4329
+ outline-offset: -2px;
4355
4330
  }
4356
4331
 
4357
- /* ─── Description typography ──────────────────────────── */
4332
+ /* Label: Figma pads the label 8px either side, so with the 4px gap a leading
4333
+ item sits 12px from the text */
4334
+ .muka-tabs__label {
4335
+ padding: 0 var(--spacing-2);
4336
+ }
4358
4337
 
4359
- .muka-tile__description {
4360
- margin: 0;
4361
- color: var(--color-text-default-default);
4338
+ /* Leading item: icon, avatar, avatar group or data pie chart */
4339
+ .muka-tabs__leading {
4340
+ display: flex;
4341
+ align-items: center;
4342
+ justify-content: center;
4343
+ flex-shrink: 0;
4344
+ }
4345
+ .muka-tabs__trigger .muka-icon {
4346
+ color: inherit;
4362
4347
  }
4348
+ /* Icon sizes only: avatars and pie charts are sized through their size prop */
4349
+ .muka-tabs--size-sm .muka-tabs__leading > svg,
4350
+ .muka-tabs--size-sm .muka-tabs__leading > .muka-icon svg { width: 16px; height: 16px; }
4351
+ .muka-tabs--size-md .muka-tabs__leading > svg,
4352
+ .muka-tabs--size-md .muka-tabs__leading > .muka-icon svg { width: 20px; height: 20px; }
4353
+ .muka-tabs--size-lg .muka-tabs__leading > svg,
4354
+ .muka-tabs--size-lg .muka-tabs__leading > .muka-icon svg { width: 24px; height: 24px; }
4363
4355
 
4364
- .muka-tile--lg .muka-tile__description {
4365
- font-family: var(--text-body-lg-regular-fontFamily);
4366
- font-weight: var(--text-body-lg-regular-fontWeight);
4367
- font-size: var(--text-body-lg-regular-fontSize);
4368
- line-height: var(--text-body-lg-regular-lineHeight);
4356
+ /* Responsive Scroll behavior on small screens */
4357
+ @media (max-width: 768px) {
4358
+ .muka-tabs__list {
4359
+ /* Make scrollable */
4360
+ overflow-x: auto;
4361
+ overflow-y: hidden;
4362
+ /* Force left alignment on mobile to prevent clipping when scrolling */
4363
+ justify-content: flex-start !important;
4364
+ max-width: 100vw;
4365
+ -webkit-overflow-scrolling: touch;
4366
+ /* Hide scrollbar for cleaner look */
4367
+ scrollbar-width: none;
4368
+ }
4369
+ .muka-tabs__list::-webkit-scrollbar {
4370
+ display: none;
4371
+ }
4372
+ /* Remove flex: 1 behavior for Fill tabs on mobile so they map correctly */
4373
+ .muka-tabs--align-fill .muka-tabs__trigger {
4374
+ flex: 0 0 auto;
4375
+ }
4369
4376
  }
4370
4377
 
4371
- .muka-tile--md .muka-tile__description,
4372
- .muka-tile--sm .muka-tile__description {
4378
+ /* Tab Panel — content area */
4379
+ .muka-tabs__panel {
4380
+ background-color: var(--tabs-panel-background);
4381
+ /* border-top: var(--border-width-regular) solid var(--tabs-panel-border); removed in favor of the new tablist border */
4382
+ border-bottom: var(--border-width-regular) solid var(--tabs-panel-border);
4383
+ padding: var(--spacing-4);
4384
+ position: relative;
4385
+ z-index: 1;
4373
4386
  font-family: var(--text-body-base-regular-fontFamily);
4374
4387
  font-weight: var(--text-body-base-regular-fontWeight);
4375
4388
  font-size: var(--text-body-base-regular-fontSize);
4376
4389
  line-height: var(--text-body-base-regular-lineHeight);
4377
4390
  }
4378
4391
 
4379
- /* Description overflow for medium */
4380
- .muka-tile--md .muka-tile__description {
4381
- overflow: hidden;
4382
- text-overflow: ellipsis;
4383
- }
4384
-
4385
- /* ─── Price slot ──────────────────────────────────────── */
4386
-
4387
- .muka-tile__price {
4388
- flex-shrink: 0;
4389
- }
4390
-
4391
- /* ─── Action slot ─────────────────────────────────────── */
4392
-
4393
- .muka-tile__action {
4394
- flex-shrink: 0;
4392
+ .muka-tabs__panel:focus-visible {
4393
+ outline: 2px solid var(--color-border-focus);
4394
+ outline-offset: 2px;
4395
4395
  }
4396
4396
 
4397
4397
 
@@ -5974,6 +5974,133 @@ body {
5974
5974
  }
5975
5975
 
5976
5976
 
5977
+ /* Scrollbar */
5978
+ /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
5979
+
5980
+ .muka-scrollbar {
5981
+ display: flex;
5982
+ flex-shrink: 0;
5983
+ border-left: var(--border-width-regular) solid var(--color-border-default);
5984
+ background-color: var(--color-surface-level3);
5985
+ user-select: none;
5986
+ }
5987
+
5988
+ .muka-scrollbar--vertical {
5989
+ flex-direction: column;
5990
+ width: var(--size-2xl, 32px);
5991
+ align-self: stretch;
5992
+ }
5993
+
5994
+ .muka-scrollbar--horizontal {
5995
+ flex-direction: row;
5996
+ height: var(--size-2xl, 32px);
5997
+ width: 100%;
5998
+ border-left: none;
5999
+ border-top: var(--border-width-regular) solid var(--color-border-default);
6000
+ }
6001
+
6002
+ .muka-scrollbar__button {
6003
+ display: flex;
6004
+ align-items: center;
6005
+ justify-content: center;
6006
+ flex-shrink: 0;
6007
+ width: 100%;
6008
+ height: var(--size-2xl, 32px);
6009
+ padding: 0;
6010
+ border: none;
6011
+ background-color: var(--button-color-tertiary-background-default, var(--color-surface-level3));
6012
+ color: var(--color-text-default-default);
6013
+ cursor: pointer;
6014
+ }
6015
+
6016
+ .muka-scrollbar--horizontal .muka-scrollbar__button {
6017
+ width: var(--size-2xl, 32px);
6018
+ height: 100%;
6019
+ }
6020
+
6021
+ .muka-scrollbar__button:hover {
6022
+ background-color: var(--color-surface-hover);
6023
+ }
6024
+
6025
+ .muka-scrollbar__divider {
6026
+ flex-shrink: 0;
6027
+ width: 100%;
6028
+ height: 1px;
6029
+ background-color: var(--color-border-default);
6030
+ }
6031
+
6032
+ .muka-scrollbar--horizontal .muka-scrollbar__divider {
6033
+ width: 1px;
6034
+ height: 100%;
6035
+ }
6036
+
6037
+ .muka-scrollbar__track {
6038
+ position: relative;
6039
+ display: flex;
6040
+ flex-direction: column;
6041
+ flex: 1 1 auto;
6042
+ min-height: 0;
6043
+ width: 100%;
6044
+ }
6045
+
6046
+ .muka-scrollbar--horizontal .muka-scrollbar__track {
6047
+ flex-direction: row;
6048
+ min-width: 0;
6049
+ height: 100%;
6050
+ }
6051
+
6052
+ .muka-scrollbar__thumb {
6053
+ position: absolute;
6054
+ left: 0;
6055
+ top: 0;
6056
+ z-index: 1;
6057
+ display: flex;
6058
+ align-items: center;
6059
+ justify-content: center;
6060
+ width: 100%;
6061
+ /* Figma: scrollbar thumb fill = surface/level3 */
6062
+ background-color: var(--color-surface-level3);
6063
+ cursor: grab;
6064
+ touch-action: none;
6065
+ }
6066
+
6067
+ .muka-scrollbar--horizontal .muka-scrollbar__thumb {
6068
+ left: 0;
6069
+ top: 0;
6070
+ width: auto;
6071
+ height: 100%;
6072
+ margin-left: 0;
6073
+ margin-top: 0;
6074
+ }
6075
+
6076
+ .muka-scrollbar__thumb:active {
6077
+ cursor: grabbing;
6078
+ }
6079
+
6080
+ .muka-scrollbar__grip {
6081
+ display: flex;
6082
+ flex-direction: column;
6083
+ gap: 2px;
6084
+ width: 14px;
6085
+ }
6086
+
6087
+ .muka-scrollbar__grip::before,
6088
+ .muka-scrollbar__grip::after {
6089
+ content: '';
6090
+ display: block;
6091
+ width: 100%;
6092
+ height: 2px;
6093
+ border-radius: var(--border-radius-md);
6094
+ background-color: var(--color-text-subtle-default);
6095
+ }
6096
+
6097
+ .muka-scrollbar__spacer {
6098
+ flex: 1 1 auto;
6099
+ min-height: 0;
6100
+ background-color: var(--color-surface-level2);
6101
+ }
6102
+
6103
+
5977
6104
  /* SearchInput */
5978
6105
  /* SearchInput Component Styles */
5979
6106
 
@@ -6112,161 +6239,34 @@ body {
6112
6239
 
6113
6240
  .muka-search-input__clear:focus-visible {
6114
6241
  outline: 2px solid var(--color-action-default);
6115
- outline-offset: 2px;
6116
- border-radius: 50%;
6117
- }
6118
-
6119
- /* ─── Cancel button ───────────────────────────────────── */
6120
-
6121
- .muka-search-input__cancel {
6122
- flex-shrink: 0;
6123
- background: none;
6124
- border: none;
6125
- padding: var(--spacing-1) var(--spacing-2);
6126
- cursor: pointer;
6127
- color: var(--color-action-default);
6128
- font-family: var(--text-label-md-regular-fontFamily);
6129
- font-weight: var(--text-label-md-regular-fontWeight);
6130
- font-size: var(--text-label-md-regular-fontSize);
6131
- line-height: var(--text-label-md-regular-lineHeight);
6132
- -webkit-tap-highlight-color: transparent;
6133
- }
6134
-
6135
- .muka-search-input__cancel:hover {
6136
- color: var(--color-action-hover);
6137
- }
6138
-
6139
- .muka-search-input__cancel:focus-visible {
6140
- outline: 2px solid var(--color-action-default);
6141
- outline-offset: 2px;
6142
- border-radius: var(--radius-sm);
6143
- }
6144
-
6145
-
6146
- /* Scrollbar */
6147
- /* Scrollbar — Figma menu scrollbar (32px rail, chevrons, grip thumb) */
6148
-
6149
- .muka-scrollbar {
6150
- display: flex;
6151
- flex-shrink: 0;
6152
- border-left: var(--border-width-regular) solid var(--color-border-default);
6153
- background-color: var(--color-surface-level3);
6154
- user-select: none;
6155
- }
6156
-
6157
- .muka-scrollbar--vertical {
6158
- flex-direction: column;
6159
- width: var(--size-2xl, 32px);
6160
- align-self: stretch;
6161
- }
6162
-
6163
- .muka-scrollbar--horizontal {
6164
- flex-direction: row;
6165
- height: var(--size-2xl, 32px);
6166
- width: 100%;
6167
- border-left: none;
6168
- border-top: var(--border-width-regular) solid var(--color-border-default);
6169
- }
6170
-
6171
- .muka-scrollbar__button {
6172
- display: flex;
6173
- align-items: center;
6174
- justify-content: center;
6175
- flex-shrink: 0;
6176
- width: 100%;
6177
- height: var(--size-2xl, 32px);
6178
- padding: 0;
6179
- border: none;
6180
- background-color: var(--button-color-tertiary-background-default, var(--color-surface-level3));
6181
- color: var(--color-text-default-default);
6182
- cursor: pointer;
6183
- }
6184
-
6185
- .muka-scrollbar--horizontal .muka-scrollbar__button {
6186
- width: var(--size-2xl, 32px);
6187
- height: 100%;
6188
- }
6189
-
6190
- .muka-scrollbar__button:hover {
6191
- background-color: var(--color-surface-hover);
6192
- }
6193
-
6194
- .muka-scrollbar__divider {
6195
- flex-shrink: 0;
6196
- width: 100%;
6197
- height: 1px;
6198
- background-color: var(--color-border-default);
6199
- }
6200
-
6201
- .muka-scrollbar--horizontal .muka-scrollbar__divider {
6202
- width: 1px;
6203
- height: 100%;
6204
- }
6205
-
6206
- .muka-scrollbar__track {
6207
- position: relative;
6208
- display: flex;
6209
- flex-direction: column;
6210
- flex: 1 1 auto;
6211
- min-height: 0;
6212
- width: 100%;
6213
- }
6214
-
6215
- .muka-scrollbar--horizontal .muka-scrollbar__track {
6216
- flex-direction: row;
6217
- min-width: 0;
6218
- height: 100%;
6219
- }
6220
-
6221
- .muka-scrollbar__thumb {
6222
- position: absolute;
6223
- left: 0;
6224
- top: 0;
6225
- z-index: 1;
6226
- display: flex;
6227
- align-items: center;
6228
- justify-content: center;
6229
- width: 100%;
6230
- /* Figma: scrollbar thumb fill = surface/level3 */
6231
- background-color: var(--color-surface-level3);
6232
- cursor: grab;
6233
- touch-action: none;
6234
- }
6235
-
6236
- .muka-scrollbar--horizontal .muka-scrollbar__thumb {
6237
- left: 0;
6238
- top: 0;
6239
- width: auto;
6240
- height: 100%;
6241
- margin-left: 0;
6242
- margin-top: 0;
6242
+ outline-offset: 2px;
6243
+ border-radius: 50%;
6243
6244
  }
6244
6245
 
6245
- .muka-scrollbar__thumb:active {
6246
- cursor: grabbing;
6247
- }
6246
+ /* ─── Cancel button ───────────────────────────────────── */
6248
6247
 
6249
- .muka-scrollbar__grip {
6250
- display: flex;
6251
- flex-direction: column;
6252
- gap: 2px;
6253
- width: 14px;
6248
+ .muka-search-input__cancel {
6249
+ flex-shrink: 0;
6250
+ background: none;
6251
+ border: none;
6252
+ padding: var(--spacing-1) var(--spacing-2);
6253
+ cursor: pointer;
6254
+ color: var(--color-action-default);
6255
+ font-family: var(--text-label-md-regular-fontFamily);
6256
+ font-weight: var(--text-label-md-regular-fontWeight);
6257
+ font-size: var(--text-label-md-regular-fontSize);
6258
+ line-height: var(--text-label-md-regular-lineHeight);
6259
+ -webkit-tap-highlight-color: transparent;
6254
6260
  }
6255
6261
 
6256
- .muka-scrollbar__grip::before,
6257
- .muka-scrollbar__grip::after {
6258
- content: '';
6259
- display: block;
6260
- width: 100%;
6261
- height: 2px;
6262
- border-radius: var(--border-radius-md);
6263
- background-color: var(--color-text-subtle-default);
6262
+ .muka-search-input__cancel:hover {
6263
+ color: var(--color-action-hover);
6264
6264
  }
6265
6265
 
6266
- .muka-scrollbar__spacer {
6267
- flex: 1 1 auto;
6268
- min-height: 0;
6269
- background-color: var(--color-surface-level2);
6266
+ .muka-search-input__cancel:focus-visible {
6267
+ outline: 2px solid var(--color-action-default);
6268
+ outline-offset: 2px;
6269
+ border-radius: var(--radius-sm);
6270
6270
  }
6271
6271
 
6272
6272
 
@@ -14237,6 +14237,14 @@ button.muka-chat-photo-grid__tile:focus-visible {
14237
14237
  flex-shrink: 0;
14238
14238
  }
14239
14239
 
14240
+ /* Touch devices have emoji on their keyboard: no button there, unless the app
14241
+ keeps it with `emojiOnTouch`. */
14242
+ @media (pointer: coarse) {
14243
+ .muka-chat-composer__emoji:not(.muka-chat-composer__emoji--on-touch) {
14244
+ display: none;
14245
+ }
14246
+ }
14247
+
14240
14248
  /* ─── Recording bar ────────────────────────────────────── */
14241
14249
 
14242
14250
  .muka-chat-composer__recording {
@@ -14321,9 +14329,23 @@ button.muka-chat-photo-grid__tile:focus-visible {
14321
14329
  width: 100%;
14322
14330
  }
14323
14331
 
14332
+ /*
14333
+ * Many choices (a phone with seven options) would push the field and the step
14334
+ * footer off screen. The card gets a height limit and scrolls on its own, so
14335
+ * the prompt, the field and the footer stay in view.
14336
+ */
14324
14337
  .muka-chat-composer__choices-card {
14325
14338
  width: 100%;
14326
- overflow: hidden;
14339
+ max-height: 45dvh;
14340
+ overflow-x: hidden;
14341
+ overflow-y: auto;
14342
+ overscroll-behavior: contain;
14343
+ }
14344
+
14345
+ /* A choice is one short line, not a navigation row: compact padding. */
14346
+ .muka-chat-composer__choice.muka-listitem {
14347
+ align-items: center;
14348
+ padding-block: var(--spacing-3);
14327
14349
  }
14328
14350
 
14329
14351
  /* Choice rows: the ListItem is the interactive control; the Radio/Checkbox is
@@ -16322,241 +16344,30 @@ button.muka-chat-photo-grid__tile:focus-visible {
16322
16344
  }
16323
16345
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view,
16324
16346
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-nav-transition {
16325
- height: calc(100dvh - var(--app-shell-appbar-height));
16326
- }
16327
- }
16328
-
16329
- /* ─── Large tier (forced via size="lg") ─── */
16330
- .muka-app-shell[data-size='lg'] .muka-app-shell__sidebar {
16331
- display: block;
16332
- }
16333
- .muka-app-shell[data-size='lg'] .muka-app-shell__main {
16334
- padding-left: var(--app-shell-sidebar-width);
16335
- }
16336
- .muka-app-shell[data-size='lg'] .muka-app-shell__appbar {
16337
- display: flex;
16338
- }
16339
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-app-shell__main {
16340
- padding-top: var(--app-shell-appbar-height);
16341
- }
16342
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
16343
- top: var(--app-shell-appbar-height);
16344
- height: calc(100vh - var(--app-shell-appbar-height));
16345
- }
16346
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view,
16347
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-nav-transition {
16348
- height: calc(100dvh - var(--app-shell-appbar-height));
16349
- }
16350
-
16351
-
16352
- /* Alert */
16353
- /* Alert Component Styles - Using Muka Design Tokens */
16354
-
16355
- .muka-alert {
16356
- display: flex;
16357
- align-items: flex-start;
16358
- border-radius: var(--alert-radius);
16359
- border: none;
16360
- gap: var(--alert-gap);
16361
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
16362
- }
16363
-
16364
- /* Size variants */
16365
- .muka-alert--sm {
16366
- padding: var(--alert-padding-sm-y) var(--alert-padding-sm-x);
16367
- }
16368
-
16369
- .muka-alert--md {
16370
- padding: var(--alert-padding-md-y) var(--alert-padding-md-x);
16371
- }
16372
-
16373
- .muka-alert--lg {
16374
- padding: var(--alert-padding-lg-y) var(--alert-padding-lg-x);
16375
- }
16376
-
16377
- /* Variant: Info */
16378
- .muka-alert--info {
16379
- background-color: var(--alert-color-info-background);
16380
- color: var(--alert-color-info-foreground);
16381
- }
16382
-
16383
- .muka-alert--info .muka-alert__icon {
16384
- color: var(--alert-color-info-accent);
16385
- }
16386
-
16387
- .muka-alert--info .muka-alert__title {
16388
- color: var(--alert-color-info-accent);
16389
- }
16390
-
16391
- .muka-alert--info .muka-alert__dismiss {
16392
- color: var(--alert-color-info-accent);
16393
- }
16394
-
16395
- /* Variant: Success */
16396
- .muka-alert--success {
16397
- background-color: var(--alert-color-success-background);
16398
- color: var(--alert-color-success-foreground);
16399
- }
16400
-
16401
- .muka-alert--success .muka-alert__icon {
16402
- color: var(--alert-color-success-accent);
16403
- }
16404
-
16405
- .muka-alert--success .muka-alert__title {
16406
- color: var(--alert-color-success-accent);
16407
- }
16408
-
16409
- .muka-alert--success .muka-alert__dismiss {
16410
- color: var(--alert-color-success-accent);
16411
- }
16412
-
16413
- /* Variant: Warning */
16414
- .muka-alert--warning {
16415
- background-color: var(--alert-color-warning-background);
16416
- color: var(--alert-color-warning-foreground);
16417
- }
16418
-
16419
- .muka-alert--warning .muka-alert__icon {
16420
- color: var(--alert-color-warning-accent);
16421
- }
16422
-
16423
- .muka-alert--warning .muka-alert__title {
16424
- color: var(--alert-color-warning-accent);
16425
- }
16426
-
16427
- .muka-alert--warning .muka-alert__dismiss {
16428
- color: var(--alert-color-warning-accent);
16429
- }
16430
-
16431
- /* Variant: Error */
16432
- .muka-alert--error {
16433
- background-color: var(--alert-color-error-background);
16434
- color: var(--alert-color-error-foreground);
16435
- }
16436
-
16437
- .muka-alert--error .muka-alert__icon {
16438
- color: var(--alert-color-error-accent);
16439
- }
16440
-
16441
- .muka-alert--error .muka-alert__title {
16442
- color: var(--alert-color-error-accent);
16443
- }
16444
-
16445
- .muka-alert--error .muka-alert__dismiss {
16446
- color: var(--alert-color-error-accent);
16447
- }
16448
-
16449
- /* Icon */
16450
- .muka-alert__icon {
16451
- display: flex;
16452
- align-items: center;
16453
- justify-content: center;
16454
- flex-shrink: 0;
16455
- width: var(--alert-icon-size);
16456
- height: var(--alert-icon-size);
16457
- }
16458
-
16459
- .muka-alert__icon svg {
16460
- width: 100%;
16461
- height: 100%;
16462
- }
16463
-
16464
- /* The leading icon and the dismiss (×) icon inherit the variant accent set on
16465
- their container, overriding the Icon component's default color. */
16466
- .muka-alert__icon .muka-icon,
16467
- .muka-alert__dismiss .muka-icon {
16468
- color: inherit;
16469
- }
16470
-
16471
- /* Content */
16472
- .muka-alert__content {
16473
- flex: 1;
16474
- min-width: 0;
16475
- }
16476
-
16477
- .muka-alert__title {
16478
- font-family: var(--text-label-md-semibold-fontFamily);
16479
- font-weight: var(--text-label-md-semibold-fontWeight);
16480
- font-size: var(--text-label-md-semibold-fontSize);
16481
- line-height: var(--text-label-md-semibold-lineHeight);
16482
- margin-bottom: var(--spacing-1);
16483
- }
16484
-
16485
- .muka-alert--sm .muka-alert__title {
16486
- font-family: var(--text-label-sm-semibold-fontFamily);
16487
- font-weight: var(--text-label-sm-semibold-fontWeight);
16488
- font-size: var(--text-label-sm-semibold-fontSize);
16489
- line-height: var(--text-label-sm-semibold-lineHeight);
16490
- }
16491
-
16492
- .muka-alert--lg .muka-alert__title {
16493
- font-family: var(--text-label-lg-semibold-fontFamily);
16494
- font-weight: var(--text-label-lg-semibold-fontWeight);
16495
- font-size: var(--text-label-lg-semibold-fontSize);
16496
- line-height: var(--text-label-lg-semibold-lineHeight);
16497
- }
16498
-
16499
- .muka-alert__message {
16500
- font-family: var(--text-body-sm-regular-fontFamily);
16501
- font-weight: var(--text-body-sm-regular-fontWeight);
16502
- font-size: var(--text-body-sm-regular-fontSize);
16503
- line-height: var(--text-body-sm-regular-lineHeight);
16504
- /* Beat ambient docs/page text colors (e.g. Storybook sbdocs) so variant
16505
- foreground stays readable in light and dark themes. */
16506
- color: inherit;
16507
- }
16508
-
16509
- .muka-alert .muka-alert__message,
16510
- .muka-alert .muka-alert__message * {
16511
- color: inherit;
16512
- }
16513
-
16514
- .muka-alert--lg .muka-alert__message {
16515
- font-family: var(--text-body-base-regular-fontFamily);
16516
- font-weight: var(--text-body-base-regular-fontWeight);
16517
- font-size: var(--text-body-base-regular-fontSize);
16518
- line-height: var(--text-body-base-regular-lineHeight);
16519
- }
16520
-
16521
- /* Action slot — TextLink (or similar) below the message, matching Figma */
16522
- .muka-alert__action {
16523
- display: flex;
16524
- flex-direction: column;
16525
- align-items: flex-start;
16526
- padding-top: var(--spacing-1);
16347
+ height: calc(100dvh - var(--app-shell-appbar-height));
16348
+ }
16527
16349
  }
16528
16350
 
16529
- /* Dismiss button - uses accent color per variant, aligned with icon row */
16530
- .muka-alert__dismiss {
16351
+ /* ─── Large tier (forced via size="lg") ─── */
16352
+ .muka-app-shell[data-size='lg'] .muka-app-shell__sidebar {
16353
+ display: block;
16354
+ }
16355
+ .muka-app-shell[data-size='lg'] .muka-app-shell__main {
16356
+ padding-left: var(--app-shell-sidebar-width);
16357
+ }
16358
+ .muka-app-shell[data-size='lg'] .muka-app-shell__appbar {
16531
16359
  display: flex;
16532
- align-items: center;
16533
- justify-content: center;
16534
- flex-shrink: 0;
16535
- align-self: flex-start;
16536
- width: 24px;
16537
- height: 24px;
16538
- padding: 0;
16539
- margin: 0 0 0 auto;
16540
- border: none;
16541
- background: transparent;
16542
- cursor: pointer;
16543
- border-radius: var(--border-radius-sm);
16544
- transition: opacity 0.15s ease, background-color 0.15s ease;
16545
16360
  }
16546
-
16547
- .muka-alert__dismiss:hover {
16548
- opacity: 0.85;
16549
- background-color: rgba(0, 0, 0, 0.05);
16361
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-app-shell__main {
16362
+ padding-top: var(--app-shell-appbar-height);
16550
16363
  }
16551
-
16552
- .muka-alert__dismiss:focus-visible {
16553
- outline: 2px solid var(--color-border-focus);
16554
- outline-offset: 2px;
16364
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
16365
+ top: var(--app-shell-appbar-height);
16366
+ height: calc(100vh - var(--app-shell-appbar-height));
16555
16367
  }
16556
-
16557
- .muka-alert__dismiss svg {
16558
- width: 16px;
16559
- height: 16px;
16368
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view,
16369
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-nav-transition {
16370
+ height: calc(100dvh - var(--app-shell-appbar-height));
16560
16371
  }
16561
16372
 
16562
16373
 
@@ -16871,6 +16682,217 @@ button.muka-chat-photo-grid__tile:focus-visible {
16871
16682
  }
16872
16683
 
16873
16684
 
16685
+ /* Alert */
16686
+ /* Alert Component Styles - Using Muka Design Tokens */
16687
+
16688
+ .muka-alert {
16689
+ display: flex;
16690
+ align-items: flex-start;
16691
+ border-radius: var(--alert-radius);
16692
+ border: none;
16693
+ gap: var(--alert-gap);
16694
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
16695
+ }
16696
+
16697
+ /* Size variants */
16698
+ .muka-alert--sm {
16699
+ padding: var(--alert-padding-sm-y) var(--alert-padding-sm-x);
16700
+ }
16701
+
16702
+ .muka-alert--md {
16703
+ padding: var(--alert-padding-md-y) var(--alert-padding-md-x);
16704
+ }
16705
+
16706
+ .muka-alert--lg {
16707
+ padding: var(--alert-padding-lg-y) var(--alert-padding-lg-x);
16708
+ }
16709
+
16710
+ /* Variant: Info */
16711
+ .muka-alert--info {
16712
+ background-color: var(--alert-color-info-background);
16713
+ color: var(--alert-color-info-foreground);
16714
+ }
16715
+
16716
+ .muka-alert--info .muka-alert__icon {
16717
+ color: var(--alert-color-info-accent);
16718
+ }
16719
+
16720
+ .muka-alert--info .muka-alert__title {
16721
+ color: var(--alert-color-info-accent);
16722
+ }
16723
+
16724
+ .muka-alert--info .muka-alert__dismiss {
16725
+ color: var(--alert-color-info-accent);
16726
+ }
16727
+
16728
+ /* Variant: Success */
16729
+ .muka-alert--success {
16730
+ background-color: var(--alert-color-success-background);
16731
+ color: var(--alert-color-success-foreground);
16732
+ }
16733
+
16734
+ .muka-alert--success .muka-alert__icon {
16735
+ color: var(--alert-color-success-accent);
16736
+ }
16737
+
16738
+ .muka-alert--success .muka-alert__title {
16739
+ color: var(--alert-color-success-accent);
16740
+ }
16741
+
16742
+ .muka-alert--success .muka-alert__dismiss {
16743
+ color: var(--alert-color-success-accent);
16744
+ }
16745
+
16746
+ /* Variant: Warning */
16747
+ .muka-alert--warning {
16748
+ background-color: var(--alert-color-warning-background);
16749
+ color: var(--alert-color-warning-foreground);
16750
+ }
16751
+
16752
+ .muka-alert--warning .muka-alert__icon {
16753
+ color: var(--alert-color-warning-accent);
16754
+ }
16755
+
16756
+ .muka-alert--warning .muka-alert__title {
16757
+ color: var(--alert-color-warning-accent);
16758
+ }
16759
+
16760
+ .muka-alert--warning .muka-alert__dismiss {
16761
+ color: var(--alert-color-warning-accent);
16762
+ }
16763
+
16764
+ /* Variant: Error */
16765
+ .muka-alert--error {
16766
+ background-color: var(--alert-color-error-background);
16767
+ color: var(--alert-color-error-foreground);
16768
+ }
16769
+
16770
+ .muka-alert--error .muka-alert__icon {
16771
+ color: var(--alert-color-error-accent);
16772
+ }
16773
+
16774
+ .muka-alert--error .muka-alert__title {
16775
+ color: var(--alert-color-error-accent);
16776
+ }
16777
+
16778
+ .muka-alert--error .muka-alert__dismiss {
16779
+ color: var(--alert-color-error-accent);
16780
+ }
16781
+
16782
+ /* Icon */
16783
+ .muka-alert__icon {
16784
+ display: flex;
16785
+ align-items: center;
16786
+ justify-content: center;
16787
+ flex-shrink: 0;
16788
+ width: var(--alert-icon-size);
16789
+ height: var(--alert-icon-size);
16790
+ }
16791
+
16792
+ .muka-alert__icon svg {
16793
+ width: 100%;
16794
+ height: 100%;
16795
+ }
16796
+
16797
+ /* The leading icon and the dismiss (×) icon inherit the variant accent set on
16798
+ their container, overriding the Icon component's default color. */
16799
+ .muka-alert__icon .muka-icon,
16800
+ .muka-alert__dismiss .muka-icon {
16801
+ color: inherit;
16802
+ }
16803
+
16804
+ /* Content */
16805
+ .muka-alert__content {
16806
+ flex: 1;
16807
+ min-width: 0;
16808
+ }
16809
+
16810
+ .muka-alert__title {
16811
+ font-family: var(--text-label-md-semibold-fontFamily);
16812
+ font-weight: var(--text-label-md-semibold-fontWeight);
16813
+ font-size: var(--text-label-md-semibold-fontSize);
16814
+ line-height: var(--text-label-md-semibold-lineHeight);
16815
+ margin-bottom: var(--spacing-1);
16816
+ }
16817
+
16818
+ .muka-alert--sm .muka-alert__title {
16819
+ font-family: var(--text-label-sm-semibold-fontFamily);
16820
+ font-weight: var(--text-label-sm-semibold-fontWeight);
16821
+ font-size: var(--text-label-sm-semibold-fontSize);
16822
+ line-height: var(--text-label-sm-semibold-lineHeight);
16823
+ }
16824
+
16825
+ .muka-alert--lg .muka-alert__title {
16826
+ font-family: var(--text-label-lg-semibold-fontFamily);
16827
+ font-weight: var(--text-label-lg-semibold-fontWeight);
16828
+ font-size: var(--text-label-lg-semibold-fontSize);
16829
+ line-height: var(--text-label-lg-semibold-lineHeight);
16830
+ }
16831
+
16832
+ .muka-alert__message {
16833
+ font-family: var(--text-body-sm-regular-fontFamily);
16834
+ font-weight: var(--text-body-sm-regular-fontWeight);
16835
+ font-size: var(--text-body-sm-regular-fontSize);
16836
+ line-height: var(--text-body-sm-regular-lineHeight);
16837
+ /* Beat ambient docs/page text colors (e.g. Storybook sbdocs) so variant
16838
+ foreground stays readable in light and dark themes. */
16839
+ color: inherit;
16840
+ }
16841
+
16842
+ .muka-alert .muka-alert__message,
16843
+ .muka-alert .muka-alert__message * {
16844
+ color: inherit;
16845
+ }
16846
+
16847
+ .muka-alert--lg .muka-alert__message {
16848
+ font-family: var(--text-body-base-regular-fontFamily);
16849
+ font-weight: var(--text-body-base-regular-fontWeight);
16850
+ font-size: var(--text-body-base-regular-fontSize);
16851
+ line-height: var(--text-body-base-regular-lineHeight);
16852
+ }
16853
+
16854
+ /* Action slot — TextLink (or similar) below the message, matching Figma */
16855
+ .muka-alert__action {
16856
+ display: flex;
16857
+ flex-direction: column;
16858
+ align-items: flex-start;
16859
+ padding-top: var(--spacing-1);
16860
+ }
16861
+
16862
+ /* Dismiss button - uses accent color per variant, aligned with icon row */
16863
+ .muka-alert__dismiss {
16864
+ display: flex;
16865
+ align-items: center;
16866
+ justify-content: center;
16867
+ flex-shrink: 0;
16868
+ align-self: flex-start;
16869
+ width: 24px;
16870
+ height: 24px;
16871
+ padding: 0;
16872
+ margin: 0 0 0 auto;
16873
+ border: none;
16874
+ background: transparent;
16875
+ cursor: pointer;
16876
+ border-radius: var(--border-radius-sm);
16877
+ transition: opacity 0.15s ease, background-color 0.15s ease;
16878
+ }
16879
+
16880
+ .muka-alert__dismiss:hover {
16881
+ opacity: 0.85;
16882
+ background-color: rgba(0, 0, 0, 0.05);
16883
+ }
16884
+
16885
+ .muka-alert__dismiss:focus-visible {
16886
+ outline: 2px solid var(--color-border-focus);
16887
+ outline-offset: 2px;
16888
+ }
16889
+
16890
+ .muka-alert__dismiss svg {
16891
+ width: 16px;
16892
+ height: 16px;
16893
+ }
16894
+
16895
+
16874
16896
  /* Accordion */
16875
16897
  /* Accordion Component Styles */
16876
16898