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