@revikornmann/muka-ui 0.37.0 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/cli/templates/agents-block.md +4 -2
  2. package/dist/cjs/components/Dialog/Dialog.js +1 -1
  3. package/dist/cjs/components/Dialog/Dialog.js.map +1 -1
  4. package/dist/cjs/components/Dialog/index.js +2 -1
  5. package/dist/cjs/components/Dialog/index.js.map +1 -1
  6. package/dist/cjs/components/Drawer/Drawer.js.map +1 -1
  7. package/dist/cjs/components/index.js +4 -3
  8. package/dist/cjs/components/index.js.map +1 -1
  9. package/dist/cjs/utils/useDismissGuard.js +29 -0
  10. package/dist/cjs/utils/useDismissGuard.js.map +1 -1
  11. package/dist/esm/components/Dialog/Dialog.js +2 -2
  12. package/dist/esm/components/Dialog/Dialog.js.map +1 -1
  13. package/dist/esm/components/Dialog/index.js +1 -1
  14. package/dist/esm/components/Dialog/index.js.map +1 -1
  15. package/dist/esm/components/Drawer/Drawer.js.map +1 -1
  16. package/dist/esm/components/index.js +1 -1
  17. package/dist/esm/components/index.js.map +1 -1
  18. package/dist/esm/utils/useDismissGuard.js +28 -1
  19. package/dist/esm/utils/useDismissGuard.js.map +1 -1
  20. package/dist/styles/index.css +733 -733
  21. package/dist/styles/muka-dark.css +733 -733
  22. package/dist/styles/muka-light.css +733 -733
  23. package/dist/styles/wireframe-dark.css +733 -733
  24. package/dist/styles/wireframe-light.css +733 -733
  25. package/dist/types/components/Dialog/Dialog.d.ts +4 -1
  26. package/dist/types/components/Dialog/Dialog.d.ts.map +1 -1
  27. package/dist/types/components/Dialog/index.d.ts +1 -1
  28. package/dist/types/components/Dialog/index.d.ts.map +1 -1
  29. package/dist/types/components/Drawer/Drawer.d.ts +4 -1
  30. package/dist/types/components/Drawer/Drawer.d.ts.map +1 -1
  31. package/dist/types/components/index.d.ts +1 -1
  32. package/dist/types/components/index.d.ts.map +1 -1
  33. package/dist/types/utils/useDismissGuard.d.ts +19 -0
  34. package/dist/types/utils/useDismissGuard.d.ts.map +1 -1
  35. package/docs/consumers/dialogs.md +28 -6
  36. package/eslint/index.js +10 -1
  37. package/package.json +1 -1
@@ -2476,38 +2476,6 @@ body {
2476
2476
  }
2477
2477
 
2478
2478
 
2479
- /* VoiceMessage */
2480
- /* VoiceMessage Component Styles */
2481
-
2482
- .muka-voice-message {
2483
- display: flex;
2484
- align-items: center;
2485
- gap: var(--spacing-3);
2486
- width: 100%;
2487
- min-width: min(16rem, 60vw);
2488
- }
2489
-
2490
- .muka-voice-message__wave {
2491
- flex: 1 1 auto;
2492
- min-width: 0;
2493
- }
2494
-
2495
- .muka-voice-message__time {
2496
- flex: 0 0 auto;
2497
- white-space: nowrap;
2498
- font-size: var(--text-label-sm-fontSize, 0.75rem);
2499
- line-height: var(--text-label-sm-lineHeight, 1);
2500
- font-variant-numeric: tabular-nums;
2501
- color: var(--color-text-subtle-default);
2502
- }
2503
-
2504
- /* On the tinted own bubble the surface is the action color, so the timer flips
2505
- * to the inverse text token for contrast. */
2506
- .muka-voice-message--own .muka-voice-message__time {
2507
- color: var(--color-text-default-inverse);
2508
- }
2509
-
2510
-
2511
2479
  /* View */
2512
2480
  /* View Component Styles */
2513
2481
 
@@ -2618,6 +2586,38 @@ body {
2618
2586
  }
2619
2587
 
2620
2588
 
2589
+ /* VoiceMessage */
2590
+ /* VoiceMessage Component Styles */
2591
+
2592
+ .muka-voice-message {
2593
+ display: flex;
2594
+ align-items: center;
2595
+ gap: var(--spacing-3);
2596
+ width: 100%;
2597
+ min-width: min(16rem, 60vw);
2598
+ }
2599
+
2600
+ .muka-voice-message__wave {
2601
+ flex: 1 1 auto;
2602
+ min-width: 0;
2603
+ }
2604
+
2605
+ .muka-voice-message__time {
2606
+ flex: 0 0 auto;
2607
+ white-space: nowrap;
2608
+ font-size: var(--text-label-sm-fontSize, 0.75rem);
2609
+ line-height: var(--text-label-sm-lineHeight, 1);
2610
+ font-variant-numeric: tabular-nums;
2611
+ color: var(--color-text-subtle-default);
2612
+ }
2613
+
2614
+ /* On the tinted own bubble the surface is the action color, so the timer flips
2615
+ * to the inverse text token for contrast. */
2616
+ .muka-voice-message--own .muka-voice-message__time {
2617
+ color: var(--color-text-default-inverse);
2618
+ }
2619
+
2620
+
2621
2621
  /* Typography */
2622
2622
  .muka-typography-catalog {
2623
2623
  display: flex;
@@ -3321,985 +3321,985 @@ body {
3321
3321
  }
3322
3322
 
3323
3323
 
3324
- /* Tile */
3325
- /* Tile Component Styles - Using Muka Design Tokens */
3326
-
3327
- /* ─── Base ────────────────────────────────────────────── */
3328
-
3329
- .muka-tile {
3330
- display: flex;
3331
- color: var(--color-text-default-default);
3332
- }
3324
+ /* Thumbnail */
3325
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
3333
3326
 
3334
- .muka-tile--interactive {
3335
- cursor: pointer;
3336
- user-select: none;
3327
+ .muka-thumbnail {
3328
+ position: relative;
3329
+ flex-shrink: 0;
3337
3330
  }
3338
3331
 
3339
- .muka-tile--interactive:focus-visible {
3340
- outline: 2px solid var(--color-border-focus);
3341
- outline-offset: 2px;
3332
+ /* The frame carries the border, background and shape clip. Keeping it separate
3333
+ from the root lets the remove (×) button sit outside the clip (needed for the
3334
+ circular/ellipse shape, whose corners would otherwise clip the button). */
3335
+ .muka-thumbnail__frame {
3336
+ position: absolute;
3337
+ inset: 0;
3338
+ overflow: hidden;
3339
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3342
3340
  border-radius: var(--border-radius-lg);
3341
+ background-color: var(--color-surface-level1);
3343
3342
  }
3344
3343
 
3345
- /* ─── Image position variants ─────────────────────────── */
3344
+ /* ─── Shapes ──────────────────────────────────────────── */
3345
+ .muka-thumbnail--4-3 {
3346
+ width: 160px;
3347
+ height: 120px;
3348
+ }
3346
3349
 
3347
- .muka-tile--image-top {
3348
- flex-direction: column;
3350
+ .muka-thumbnail--1-1 {
3351
+ width: 120px;
3352
+ height: 120px;
3349
3353
  }
3350
3354
 
3351
- .muka-tile--image-left {
3352
- flex-direction: row;
3355
+ .muka-thumbnail--ellipse {
3356
+ width: 120px;
3357
+ height: 120px;
3353
3358
  }
3354
3359
 
3355
- .muka-tile--image-right {
3356
- flex-direction: row;
3360
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3361
+ .muka-thumbnail--fluid {
3362
+ width: 100%;
3363
+ height: auto;
3364
+ aspect-ratio: 1 / 1;
3357
3365
  }
3358
3366
 
3359
- /* ─── Gap by size (top) ───────────────────────────────── */
3367
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3368
+ aspect-ratio: 4 / 3;
3369
+ }
3360
3370
 
3361
- .muka-tile--image-top.muka-tile--lg {
3362
- gap: var(--spacing-6);
3371
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
3372
+ border-radius: var(--border-radius-full);
3363
3373
  }
3364
3374
 
3365
- .muka-tile--image-top.muka-tile--md {
3366
- gap: var(--spacing-6);
3367
- width: 320px;
3375
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3376
+ interactive hover zoom has a clean origin. */
3377
+ .muka-thumbnail__image {
3378
+ position: absolute;
3379
+ inset: 0;
3380
+ width: 100%;
3381
+ height: 100%;
3382
+ object-fit: cover;
3383
+ display: block;
3384
+ transform-origin: center;
3385
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3386
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3368
3387
  }
3369
3388
 
3370
- .muka-tile--image-top.muka-tile--sm {
3371
- gap: var(--spacing-4);
3372
- min-width: 120px;
3389
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
3390
+ .muka-thumbnail__trigger {
3391
+ position: absolute;
3392
+ inset: 0;
3393
+ padding: 0;
3394
+ border: 0;
3395
+ background: none;
3396
+ cursor: pointer;
3397
+ overflow: hidden;
3373
3398
  }
3374
3399
 
3375
- /* ─── Gap by size (left/right) ────────────────────────── */
3400
+ .muka-thumbnail__trigger:focus-visible {
3401
+ outline: 2px solid var(--color-border-focus);
3402
+ outline-offset: -2px;
3403
+ }
3376
3404
 
3377
- .muka-tile--image-left.muka-tile--lg,
3378
- .muka-tile--image-right.muka-tile--lg {
3379
- gap: var(--spacing-6);
3380
- align-items: center;
3405
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3406
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3407
+ transform: scale(1.05);
3381
3408
  }
3382
3409
 
3383
- .muka-tile--image-left.muka-tile--md,
3384
- .muka-tile--image-right.muka-tile--md {
3385
- gap: var(--spacing-6);
3410
+ /* ─── Loading overlay + progress donut ────────────────── */
3411
+ .muka-thumbnail__overlay {
3412
+ position: absolute;
3413
+ inset: 0;
3414
+ display: flex;
3386
3415
  align-items: center;
3416
+ justify-content: center;
3417
+ background-color: var(--dialog-color-backdrop);
3387
3418
  }
3388
3419
 
3389
- .muka-tile--image-left.muka-tile--sm,
3390
- .muka-tile--image-right.muka-tile--sm {
3391
- gap: var(--spacing-4);
3392
- align-items: flex-start;
3420
+ .muka-thumbnail__progress {
3421
+ width: 40px;
3422
+ height: 40px;
3393
3423
  }
3394
3424
 
3395
- /* ─── Photos container ────────────────────────────────── */
3425
+ /* ─── Error / corrupt state ───────────────────────────── */
3426
+ .muka-thumbnail--error .muka-thumbnail__frame {
3427
+ background-color: var(--alias-color-state-error-muted);
3428
+ border-color: var(--alias-color-state-error-default);
3429
+ }
3396
3430
 
3397
- .muka-tile__photos {
3398
- position: relative;
3399
- flex-shrink: 0;
3400
- overflow: hidden;
3431
+ .muka-thumbnail__error {
3432
+ position: absolute;
3433
+ inset: 0;
3401
3434
  display: flex;
3402
3435
  flex-direction: column;
3403
- isolation: isolate;
3436
+ align-items: center;
3437
+ justify-content: center;
3438
+ gap: var(--spacing-2);
3439
+ padding: var(--spacing-3);
3440
+ text-align: center;
3404
3441
  }
3405
3442
 
3406
- /* Photos border radius by size */
3407
- .muka-tile--lg .muka-tile__photos,
3408
- .muka-tile--md .muka-tile__photos {
3409
- border-radius: var(--border-radius-lg);
3443
+ .muka-thumbnail__error-icon {
3444
+ color: var(--alert-color-error-accent);
3410
3445
  }
3411
3446
 
3412
- .muka-tile--sm .muka-tile__photos {
3413
- border-radius: var(--border-radius-md);
3447
+ .muka-thumbnail__caption {
3448
+ max-width: 100%;
3449
+ overflow: hidden;
3450
+ text-overflow: ellipsis;
3451
+ white-space: nowrap;
3452
+ color: var(--alert-color-error-accent);
3453
+ font-family: var(--text-body-sm-regular-fontFamily);
3454
+ font-size: var(--text-body-sm-regular-fontSize);
3455
+ font-weight: var(--text-body-sm-regular-fontWeight);
3456
+ line-height: var(--text-body-sm-regular-lineHeight);
3414
3457
  }
3415
3458
 
3416
- /* Photos sizing: top layout */
3417
- .muka-tile--image-top .muka-tile__photos {
3418
- width: 100%;
3459
+ /* ─── Remove (×) button ───────────────────────────────── */
3460
+ .muka-thumbnail__remove {
3461
+ position: absolute;
3462
+ top: var(--spacing-2);
3463
+ right: var(--spacing-2);
3464
+ display: flex;
3465
+ align-items: center;
3466
+ justify-content: center;
3467
+ width: var(--size-2xl);
3468
+ height: var(--size-2xl);
3469
+ padding: 0;
3470
+ color: var(--button-color-tertiary-foreground-default);
3471
+ background-color: var(--button-color-tertiary-background-default);
3472
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3473
+ border-radius: var(--border-radius-lg);
3474
+ cursor: pointer;
3475
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3476
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
3419
3477
  }
3420
3478
 
3421
- /* Photos sizing: left/right large */
3422
- .muka-tile--image-left.muka-tile--lg .muka-tile__photos,
3423
- .muka-tile--image-right.muka-tile--lg .muka-tile__photos {
3424
- width: 520px;
3479
+ .muka-thumbnail__remove:hover {
3480
+ color: var(--button-color-tertiary-foreground-hover);
3481
+ background-color: var(--button-color-tertiary-background-hover);
3482
+ border-color: var(--button-color-tertiary-border-hover);
3425
3483
  }
3426
3484
 
3427
- /* Photos sizing: left/right medium */
3428
- .muka-tile--image-left.muka-tile--md .muka-tile__photos,
3429
- .muka-tile--image-right.muka-tile--md .muka-tile__photos {
3430
- width: 320px;
3485
+ .muka-thumbnail__remove:active {
3486
+ color: var(--button-color-tertiary-foreground-pressed);
3487
+ background-color: var(--button-color-tertiary-background-pressed);
3488
+ border-color: var(--button-color-tertiary-border-pressed);
3431
3489
  }
3432
3490
 
3433
- /* Photos sizing: left/right small (single 80x80 thumbnail) */
3434
- .muka-tile--image-left.muka-tile--sm .muka-tile__photos,
3435
- .muka-tile--image-right.muka-tile--sm .muka-tile__photos {
3436
- width: 80px;
3437
- align-self: stretch;
3491
+ .muka-thumbnail__remove:focus-visible {
3492
+ outline: 2px solid var(--color-border-focus);
3493
+ outline-offset: 2px;
3438
3494
  }
3439
3495
 
3440
- /* ─── Main photo ──────────────────────────────────────── */
3496
+ /* ─── Reduced motion ──────────────────────────────────── */
3497
+ @media (prefers-reduced-motion: reduce) {
3498
+ .muka-thumbnail__image,
3499
+ .muka-thumbnail__remove {
3500
+ transition: none;
3501
+ }
3441
3502
 
3442
- .muka-tile__photo-main {
3443
- position: relative;
3444
- width: 100%;
3445
- overflow: hidden;
3446
- flex-shrink: 0;
3503
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3504
+ transform: none;
3505
+ }
3447
3506
  }
3448
3507
 
3449
- /* 16:9 aspect for lg and md */
3450
- .muka-tile--lg .muka-tile__photo-main,
3451
- .muka-tile--md .muka-tile__photo-main {
3452
- aspect-ratio: 1280 / 720;
3453
- }
3454
3508
 
3455
- /* 1:1 aspect for top + sm */
3456
- .muka-tile--image-top.muka-tile--sm .muka-tile__photo-main {
3457
- aspect-ratio: 1 / 1;
3458
- }
3509
+ /* Textarea */
3510
+ /* Textarea Component Styles - Using Muka Design Tokens */
3459
3511
 
3460
- /* Fixed size for left/right + sm */
3461
- .muka-tile--image-left.muka-tile--sm .muka-tile__photo-main,
3462
- .muka-tile--image-right.muka-tile--sm .muka-tile__photo-main {
3463
- width: 80px;
3464
- height: 80px;
3465
- aspect-ratio: auto;
3512
+ .muka-textarea {
3513
+ display: inline-flex;
3514
+ flex-direction: column;
3515
+ gap: var(--spacing-2);
3466
3516
  }
3467
3517
 
3468
- .muka-tile__photo-main img {
3469
- width: 100%;
3470
- height: 100%;
3471
- object-fit: cover;
3472
- display: block;
3518
+ /* Label */
3519
+ .muka-textarea__label {
3520
+ color: var(--color-text-default-default);
3521
+ cursor: pointer;
3473
3522
  }
3474
3523
 
3475
- /* ─── Favourite overlay ───────────────────────────────── */
3476
-
3477
- .muka-tile__favourite {
3478
- position: absolute;
3479
- z-index: 3;
3524
+ .muka-textarea__label--sm {
3525
+ font-family: var(--text-label-sm-semibold-fontFamily);
3526
+ font-weight: var(--text-label-sm-semibold-fontWeight);
3527
+ font-size: var(--text-label-sm-semibold-fontSize);
3528
+ line-height: var(--text-label-sm-semibold-lineHeight);
3480
3529
  }
3481
3530
 
3482
- .muka-tile--lg .muka-tile__favourite,
3483
- .muka-tile--md .muka-tile__favourite {
3484
- top: var(--spacing-4);
3485
- right: var(--spacing-4);
3531
+ .muka-textarea__label--md {
3532
+ font-family: var(--text-label-md-semibold-fontFamily);
3533
+ font-weight: var(--text-label-md-semibold-fontWeight);
3534
+ font-size: var(--text-label-md-semibold-fontSize);
3535
+ line-height: var(--text-label-md-semibold-lineHeight);
3486
3536
  }
3487
3537
 
3488
- .muka-tile--image-top.muka-tile--sm .muka-tile__favourite {
3489
- top: var(--spacing-1);
3490
- right: var(--spacing-1);
3538
+ .muka-textarea__label--lg {
3539
+ font-family: var(--text-label-lg-semibold-fontFamily);
3540
+ font-weight: var(--text-label-lg-semibold-fontWeight);
3541
+ font-size: var(--text-label-lg-semibold-fontSize);
3542
+ line-height: var(--text-label-lg-semibold-lineHeight);
3491
3543
  }
3492
3544
 
3493
- /* ─── Thumbnails ──────────────────────────────────────── */
3545
+ .muka-textarea__required {
3546
+ color: var(--color-state-error-default);
3547
+ }
3494
3548
 
3495
- .muka-tile__thumbnails {
3549
+ /* Field container */
3550
+ .muka-textarea__field {
3496
3551
  display: flex;
3497
- gap: 2px;
3498
- overflow: hidden;
3499
- flex-shrink: 0;
3500
- height: 80px;
3552
+ background-color: var(--input-field-color-default-background);
3553
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
3554
+ border-radius: var(--input-field-radius-md);
3555
+ padding: var(--input-field-padding-y) var(--input-field-padding-x);
3556
+ transition: border-color 0.2s ease, background-color 0.2s ease;
3557
+ box-sizing: border-box;
3501
3558
  }
3502
3559
 
3503
- .muka-tile__thumbnail {
3504
- width: 80px;
3505
- height: 80px;
3506
- flex-shrink: 0;
3507
- overflow: hidden;
3560
+ .muka-textarea__field--sm {
3561
+ min-height: var(--input-textarea-height-sm);
3562
+ border-radius: var(--input-field-radius-sm);
3508
3563
  }
3509
3564
 
3510
- .muka-tile__thumbnail img {
3511
- width: 100%;
3512
- height: 100%;
3513
- object-fit: cover;
3514
- display: block;
3565
+ .muka-textarea__field--md {
3566
+ min-height: var(--input-textarea-height-default);
3567
+ border-radius: var(--input-field-radius-md);
3515
3568
  }
3516
3569
 
3517
- /* Gap between main photo and thumbnails */
3518
- .muka-tile__photos > .muka-tile__photo-main + .muka-tile__thumbnails {
3519
- margin-top: 2px;
3570
+ .muka-textarea__field--lg {
3571
+ min-height: var(--input-textarea-height-lg);
3572
+ border-radius: var(--input-field-radius-lg);
3520
3573
  }
3521
3574
 
3522
- /* ─── Content section ─────────────────────────────────── */
3523
-
3524
- .muka-tile__content {
3525
- display: flex;
3526
- flex-direction: column;
3527
- flex: 1;
3528
- min-width: 0;
3575
+ /* Focus state */
3576
+ .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
3577
+ border-width: var(--border-width-bold);
3578
+ border-color: var(--input-field-color-focus-border);
3579
+ background-color: var(--input-field-color-focus-background);
3580
+ padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
3529
3581
  }
3530
3582
 
3531
- /* Top layout: content has horizontal padding */
3532
- .muka-tile--image-top.muka-tile--lg .muka-tile__content {
3533
- padding: 0 var(--spacing-3);
3534
- gap: var(--spacing-1);
3583
+ /* Error state */
3584
+ .muka-textarea__field--error:not(.muka-textarea__field--disabled) {
3585
+ border-width: var(--border-width-bold);
3586
+ border-color: var(--input-field-color-error-border);
3587
+ background-color: var(--input-field-color-error-background);
3588
+ padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
3535
3589
  }
3536
3590
 
3537
- .muka-tile--image-top.muka-tile--md .muka-tile__content {
3538
- padding: 0 var(--spacing-3);
3539
- gap: var(--spacing-2);
3591
+ /* Disabled state */
3592
+ .muka-textarea__field--disabled {
3593
+ background-color: var(--input-field-color-disabled-background);
3594
+ border-color: var(--input-field-color-disabled-border);
3595
+ cursor: not-allowed;
3540
3596
  }
3541
3597
 
3542
- .muka-tile--image-top.muka-tile--sm .muka-tile__content {
3543
- gap: var(--spacing-2);
3598
+ /* Native textarea */
3599
+ .muka-textarea__native {
3600
+ flex: 1;
3601
+ border: none;
3602
+ outline: none;
3603
+ background: transparent;
3604
+ color: var(--input-field-color-default-foreground);
3605
+ font-family: var(--text-input-md-fontFamily);
3606
+ font-weight: var(--text-input-md-fontWeight);
3607
+ font-size: var(--text-input-md-fontSize);
3608
+ line-height: var(--text-input-md-lineHeight);
3609
+ padding: 0;
3610
+ width: 100%;
3611
+ min-width: 0;
3544
3612
  }
3545
3613
 
3546
- /* Left/right layout: content grows to fill space */
3547
- .muka-tile--image-left .muka-tile__content,
3548
- .muka-tile--image-right .muka-tile__content {
3549
- gap: var(--spacing-3);
3614
+ .muka-textarea__field--sm .muka-textarea__native {
3615
+ font-family: var(--text-input-sm-fontFamily);
3616
+ font-weight: var(--text-input-sm-fontWeight);
3617
+ font-size: var(--text-input-sm-fontSize);
3618
+ line-height: var(--text-input-sm-lineHeight);
3550
3619
  }
3551
3620
 
3552
- .muka-tile--image-left.muka-tile--lg .muka-tile__content,
3553
- .muka-tile--image-right.muka-tile--lg .muka-tile__content {
3554
- padding: 0 var(--spacing-3);
3621
+ .muka-textarea__field--lg .muka-textarea__native {
3622
+ font-family: var(--text-input-lg-fontFamily);
3623
+ font-weight: var(--text-input-lg-fontWeight);
3624
+ font-size: var(--text-input-lg-fontSize);
3625
+ line-height: var(--text-input-lg-lineHeight);
3555
3626
  }
3556
3627
 
3557
- .muka-tile--image-left.muka-tile--md .muka-tile__content,
3558
- .muka-tile--image-right.muka-tile--md .muka-tile__content {
3559
- padding: var(--spacing-2) var(--spacing-3);
3628
+ .muka-textarea__native::placeholder {
3629
+ color: var(--color-text-subtle-default);
3560
3630
  }
3561
3631
 
3562
- .muka-tile--image-left.muka-tile--sm .muka-tile__content,
3563
- .muka-tile--image-right.muka-tile--sm .muka-tile__content {
3564
- gap: var(--spacing-2);
3632
+ .muka-textarea__field--disabled .muka-textarea__native {
3633
+ color: var(--input-field-color-disabled-foreground);
3634
+ cursor: not-allowed;
3565
3635
  }
3566
3636
 
3567
- /* ─── Header (heading row + price) ────────────────────── */
3568
-
3569
- .muka-tile__header {
3637
+ /* Footer (helper/error + count) */
3638
+ .muka-textarea__footer {
3570
3639
  display: flex;
3640
+ justify-content: space-between;
3571
3641
  align-items: flex-start;
3572
- gap: var(--spacing-4);
3573
- }
3574
-
3575
- /* Small horizontal: row with text and action */
3576
- .muka-tile--sm:not(.muka-tile--image-top) .muka-tile__header {
3577
3642
  gap: var(--spacing-2);
3578
- align-items: center;
3579
- padding-top: var(--spacing-1);
3580
3643
  }
3581
3644
 
3582
- /* ─── Text group ──────────────────────────────────────── */
3583
-
3584
- .muka-tile__text {
3585
- display: flex;
3586
- flex-direction: column;
3587
- flex: 1;
3588
- min-width: 0;
3589
- gap: var(--spacing-2);
3645
+ .muka-textarea__helper {
3646
+ font-family: var(--text-label-sm-regular-fontFamily);
3647
+ font-weight: var(--text-label-sm-regular-fontWeight);
3648
+ font-size: var(--text-label-sm-regular-fontSize);
3649
+ line-height: var(--text-label-sm-regular-lineHeight);
3650
+ color: var(--color-text-subtle-default);
3651
+ margin: 0;
3590
3652
  }
3591
3653
 
3592
- /* ─── Heading typography ──────────────────────────────── */
3593
-
3594
- .muka-tile__heading {
3654
+ .muka-textarea__error {
3655
+ font-family: var(--text-label-sm-regular-fontFamily);
3656
+ font-weight: var(--text-label-sm-regular-fontWeight);
3657
+ font-size: var(--text-label-sm-regular-fontSize);
3658
+ line-height: var(--text-label-sm-regular-lineHeight);
3659
+ color: var(--color-state-error-default);
3595
3660
  margin: 0;
3596
3661
  }
3597
3662
 
3598
- .muka-tile--lg .muka-tile__heading {
3599
- font-family: var(--text-label-2xl-semibold-fontFamily);
3600
- font-weight: var(--text-label-2xl-semibold-fontWeight);
3601
- font-size: var(--text-label-2xl-semibold-fontSize);
3602
- line-height: var(--text-label-2xl-semibold-lineHeight);
3603
- color: var(--color-text-default-default);
3663
+ .muka-textarea__count {
3664
+ font-family: var(--text-label-sm-regular-fontFamily);
3665
+ font-weight: var(--text-label-sm-regular-fontWeight);
3666
+ font-size: var(--text-label-sm-regular-fontSize);
3667
+ line-height: var(--text-label-sm-regular-lineHeight);
3668
+ color: var(--color-text-subtle-default);
3669
+ margin-left: auto;
3604
3670
  }
3605
3671
 
3606
- .muka-tile--md .muka-tile__heading {
3607
- font-family: var(--text-label-xl-semibold-fontFamily);
3608
- font-weight: var(--text-label-xl-semibold-fontWeight);
3609
- font-size: var(--text-label-xl-semibold-fontSize);
3610
- line-height: var(--text-label-xl-semibold-lineHeight);
3611
- color: var(--color-text-default-default);
3612
- }
3613
3672
 
3614
- .muka-tile--sm .muka-tile__heading {
3615
- font-family: var(--text-label-lg-bold-fontFamily);
3616
- font-weight: var(--text-label-lg-bold-fontWeight);
3617
- font-size: var(--text-label-lg-bold-fontSize);
3618
- line-height: var(--text-label-lg-bold-lineHeight);
3619
- color: var(--color-text-default-default);
3620
- }
3621
-
3622
- /* ─── Subheading typography ───────────────────────────── */
3623
-
3624
- .muka-tile__subheading {
3625
- margin: 0;
3626
- color: var(--color-text-subtle-default);
3627
- }
3673
+ /* TextLink */
3674
+ /* TextLink Component Styles - Using Muka Design Tokens */
3628
3675
 
3629
- .muka-tile--lg .muka-tile__subheading {
3630
- font-family: var(--text-subheading-md-fontFamily);
3631
- font-weight: var(--text-subheading-md-fontWeight);
3632
- font-size: var(--text-subheading-md-fontSize);
3633
- line-height: var(--text-subheading-md-lineHeight);
3676
+ .muka-text-link {
3677
+ display: inline;
3678
+ cursor: pointer;
3679
+ text-decoration: underline;
3680
+ /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
3681
+ text-underline-offset: 0.2em;
3682
+ text-decoration-thickness: from-font;
3683
+ /* Rounds the focus ring's corners; the link itself has no visible box. */
3684
+ border-radius: var(--border-radius-sm);
3685
+ transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
3634
3686
  }
3635
3687
 
3636
- .muka-tile--md .muka-tile__subheading,
3637
- .muka-tile--sm .muka-tile__subheading {
3638
- font-family: var(--text-subheading-sm-fontFamily);
3639
- font-weight: var(--text-subheading-sm-fontWeight);
3640
- font-size: var(--text-subheading-sm-fontSize);
3641
- line-height: var(--text-subheading-sm-lineHeight);
3688
+ /* ─── Sizes ───────────────────────────────────────────────
3689
+ Mirrors the body text scale so a link matches the copy it sits in. */
3690
+ .muka-text-link--sm {
3691
+ font-family: var(--text-body-sm-regular-fontFamily);
3692
+ font-weight: var(--text-body-sm-regular-fontWeight);
3693
+ font-size: var(--text-body-sm-regular-fontSize);
3694
+ line-height: var(--text-body-sm-regular-lineHeight);
3642
3695
  }
3643
3696
 
3644
- /* ─── Description typography ──────────────────────────── */
3645
-
3646
- .muka-tile__description {
3647
- margin: 0;
3648
- color: var(--color-text-default-default);
3697
+ .muka-text-link--base {
3698
+ font-family: var(--text-body-base-regular-fontFamily);
3699
+ font-weight: var(--text-body-base-regular-fontWeight);
3700
+ font-size: var(--text-body-base-regular-fontSize);
3701
+ line-height: var(--text-body-base-regular-lineHeight);
3649
3702
  }
3650
3703
 
3651
- .muka-tile--lg .muka-tile__description {
3704
+ .muka-text-link--lg {
3652
3705
  font-family: var(--text-body-lg-regular-fontFamily);
3653
3706
  font-weight: var(--text-body-lg-regular-fontWeight);
3654
3707
  font-size: var(--text-body-lg-regular-fontSize);
3655
3708
  line-height: var(--text-body-lg-regular-lineHeight);
3656
3709
  }
3657
3710
 
3658
- .muka-tile--md .muka-tile__description,
3659
- .muka-tile--sm .muka-tile__description {
3660
- font-family: var(--text-body-base-regular-fontFamily);
3661
- font-weight: var(--text-body-base-regular-fontWeight);
3662
- font-size: var(--text-body-base-regular-fontSize);
3663
- line-height: var(--text-body-base-regular-lineHeight);
3711
+ /* ─── Variant: default (accent) ───────────────────────────
3712
+ Visited repeats the default colour on purpose: the design treats visited and
3713
+ default the same, and pinning it stops the browser's purple from showing. */
3714
+ .muka-text-link--default,
3715
+ .muka-text-link--default:visited {
3716
+ color: var(--color-text-action-default);
3664
3717
  }
3665
3718
 
3666
- /* Description overflow for medium */
3667
- .muka-tile--md .muka-tile__description {
3668
- overflow: hidden;
3669
- text-overflow: ellipsis;
3719
+ .muka-text-link--default:hover,
3720
+ .muka-text-link--default:focus-visible {
3721
+ color: var(--color-text-action-hover);
3670
3722
  }
3671
3723
 
3672
- /* ─── Price slot ──────────────────────────────────────── */
3673
-
3674
- .muka-tile__price {
3675
- flex-shrink: 0;
3724
+ .muka-text-link--default:active {
3725
+ color: var(--color-text-action-pressed);
3676
3726
  }
3677
3727
 
3678
- /* ─── Action slot ─────────────────────────────────────── */
3679
-
3680
- .muka-tile__action {
3681
- flex-shrink: 0;
3728
+ /* ─── Variant: subtle (neutral) ───────────────────────────
3729
+ Hover, focus and pressed all darken to the default text colour. */
3730
+ .muka-text-link--subtle,
3731
+ .muka-text-link--subtle:visited {
3732
+ color: var(--color-text-subtle-default);
3682
3733
  }
3683
3734
 
3684
-
3685
- /* Thumbnail */
3686
- /* Thumbnail Component Styles - Using Muka Design Tokens */
3687
-
3688
- .muka-thumbnail {
3689
- position: relative;
3690
- flex-shrink: 0;
3735
+ .muka-text-link--subtle:hover,
3736
+ .muka-text-link--subtle:focus-visible,
3737
+ .muka-text-link--subtle:active {
3738
+ color: var(--color-text-default-default);
3691
3739
  }
3692
3740
 
3693
- /* The frame carries the border, background and shape clip. Keeping it separate
3694
- from the root lets the remove (×) button sit outside the clip (needed for the
3695
- circular/ellipse shape, whose corners would otherwise clip the button). */
3696
- .muka-thumbnail__frame {
3697
- position: absolute;
3698
- inset: 0;
3699
- overflow: hidden;
3700
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3701
- border-radius: var(--border-radius-lg);
3702
- background-color: var(--color-surface-level1);
3741
+ /* ─── Focus ───────────────────────────────────────────────
3742
+ Same ring as every other focusable Muka component. */
3743
+ .muka-text-link:focus-visible {
3744
+ outline: 2px solid var(--color-border-focus);
3745
+ outline-offset: 2px;
3703
3746
  }
3704
3747
 
3705
- /* ─── Shapes ──────────────────────────────────────────── */
3706
- .muka-thumbnail--4-3 {
3707
- width: 160px;
3708
- height: 120px;
3748
+ @media (prefers-reduced-motion: reduce) {
3749
+ .muka-text-link {
3750
+ transition: none;
3751
+ }
3709
3752
  }
3710
3753
 
3711
- .muka-thumbnail--1-1 {
3712
- width: 120px;
3713
- height: 120px;
3714
- }
3715
3754
 
3716
- .muka-thumbnail--ellipse {
3717
- width: 120px;
3718
- height: 120px;
3719
- }
3755
+ /* Tabs */
3756
+ /* Tabs Component Styles - Clean underline style tabs matching Figma */
3720
3757
 
3721
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3722
- .muka-thumbnail--fluid {
3723
- width: 100%;
3724
- height: auto;
3725
- aspect-ratio: 1 / 1;
3758
+ .muka-tabs {
3759
+ display: flex;
3760
+ flex-direction: column;
3726
3761
  }
3727
3762
 
3728
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3729
- aspect-ratio: 4 / 3;
3763
+ /* Alignment Variants */
3764
+ .muka-tabs--align-left .muka-tabs__list {
3765
+ justify-content: flex-start;
3730
3766
  }
3731
-
3732
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
3733
- border-radius: var(--border-radius-full);
3767
+ .muka-tabs--align-center .muka-tabs__list {
3768
+ justify-content: center;
3734
3769
  }
3735
-
3736
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3737
- interactive hover zoom has a clean origin. */
3738
- .muka-thumbnail__image {
3739
- position: absolute;
3740
- inset: 0;
3741
- width: 100%;
3742
- height: 100%;
3743
- object-fit: cover;
3744
- display: block;
3745
- transform-origin: center;
3746
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3747
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3770
+ .muka-tabs--align-fill .muka-tabs__list {
3771
+ justify-content: space-between;
3748
3772
  }
3749
-
3750
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
3751
- .muka-thumbnail__trigger {
3752
- position: absolute;
3753
- inset: 0;
3754
- padding: 0;
3755
- border: 0;
3756
- background: none;
3757
- cursor: pointer;
3758
- overflow: hidden;
3773
+ .muka-tabs--align-fill .muka-tabs__trigger {
3774
+ flex: 1;
3759
3775
  }
3760
3776
 
3761
- .muka-thumbnail__trigger:focus-visible {
3762
- outline: 2px solid var(--color-border-focus);
3763
- outline-offset: -2px;
3777
+ /* Tab List — strip container */
3778
+ .muka-tabs__list {
3779
+ display: flex;
3780
+ align-items: center;
3781
+ position: relative;
3782
+ z-index: 2;
3783
+ border-bottom: 1px solid var(--tabs-trigger-color-default-border);
3764
3784
  }
3765
3785
 
3766
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3767
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3768
- transform: scale(1.05);
3786
+ /* Padding: inset the tabs; the divider (border) still spans the full width */
3787
+ .muka-tabs--padding-default .muka-tabs__list {
3788
+ padding-inline: var(--tabs-list-padding-x);
3769
3789
  }
3770
3790
 
3771
- /* ─── Loading overlay + progress donut ────────────────── */
3772
- .muka-thumbnail__overlay {
3773
- position: absolute;
3774
- inset: 0;
3775
- display: flex;
3791
+ /* Tab Trigger — clean underline style */
3792
+ .muka-tabs__trigger {
3793
+ display: inline-flex;
3776
3794
  align-items: center;
3777
3795
  justify-content: center;
3778
- background-color: var(--dialog-color-backdrop);
3796
+ gap: var(--spacing-1);
3797
+ background: transparent;
3798
+ border: none;
3799
+ cursor: pointer;
3800
+ user-select: none;
3801
+ transition: background-color 0.2s ease, color 0.2s ease;
3802
+ outline: none;
3803
+ white-space: nowrap;
3804
+ position: relative;
3805
+ z-index: 2;
3806
+ color: var(--tabs-trigger-color-default-foreground);
3807
+
3808
+ /* Default MD size values */
3809
+ min-height: var(--tabs-trigger-min-height-md);
3810
+ padding: var(--spacing-3);
3811
+ font-family: var(--text-label-md-regular-fontFamily);
3812
+ font-weight: var(--text-label-md-regular-fontWeight);
3813
+ font-size: var(--text-label-md-regular-fontSize);
3814
+ line-height: var(--text-label-md-regular-lineHeight);
3779
3815
  }
3780
3816
 
3781
- .muka-thumbnail__progress {
3782
- width: 40px;
3783
- height: 40px;
3817
+ /* Size Variants */
3818
+ .muka-tabs--size-sm .muka-tabs__trigger {
3819
+ min-height: var(--tabs-trigger-min-height-sm);
3820
+ padding: 0 var(--spacing-2);
3821
+ font-family: var(--text-label-sm-regular-fontFamily);
3822
+ font-weight: var(--text-label-sm-regular-fontWeight);
3823
+ font-size: var(--text-label-sm-regular-fontSize);
3824
+ line-height: var(--text-label-sm-regular-lineHeight);
3784
3825
  }
3785
3826
 
3786
- /* ─── Error / corrupt state ───────────────────────────── */
3787
- .muka-thumbnail--error .muka-thumbnail__frame {
3788
- background-color: var(--alias-color-state-error-muted);
3789
- border-color: var(--alias-color-state-error-default);
3827
+ .muka-tabs--size-lg .muka-tabs__trigger {
3828
+ min-height: var(--tabs-trigger-min-height-lg);
3829
+ padding: var(--spacing-4);
3830
+ font-family: var(--text-label-lg-regular-fontFamily);
3831
+ font-weight: var(--text-label-lg-regular-fontWeight);
3832
+ font-size: var(--text-label-lg-regular-fontSize);
3833
+ line-height: var(--text-label-lg-regular-lineHeight);
3790
3834
  }
3791
3835
 
3792
- .muka-thumbnail__error {
3793
- position: absolute;
3794
- inset: 0;
3795
- display: flex;
3796
- flex-direction: column;
3797
- align-items: center;
3798
- justify-content: center;
3799
- gap: var(--spacing-2);
3800
- padding: var(--spacing-3);
3801
- text-align: center;
3836
+ /* Hover state */
3837
+ .muka-tabs__trigger:hover:not(:disabled):not(.muka-tabs__trigger--current) {
3838
+ color: var(--tabs-trigger-color-hover-foreground);
3802
3839
  }
3803
3840
 
3804
- .muka-thumbnail__error-icon {
3805
- color: var(--alert-color-error-accent);
3841
+ /* Current tab */
3842
+ .muka-tabs__trigger--current {
3843
+ color: var(--tabs-trigger-color-current-foreground);
3806
3844
  }
3807
3845
 
3808
- .muka-thumbnail__caption {
3809
- max-width: 100%;
3810
- overflow: hidden;
3811
- text-overflow: ellipsis;
3812
- white-space: nowrap;
3813
- color: var(--alert-color-error-accent);
3814
- font-family: var(--text-body-sm-regular-fontFamily);
3815
- font-size: var(--text-body-sm-regular-fontSize);
3816
- font-weight: var(--text-body-sm-regular-fontWeight);
3817
- line-height: var(--text-body-sm-regular-lineHeight);
3846
+ /* Active bottom border (underline) */
3847
+ .muka-tabs__trigger--current::after {
3848
+ content: '';
3849
+ position: absolute;
3850
+ bottom: -1px; /* Overlap the 1px border */
3851
+ left: 0;
3852
+ right: 0;
3853
+ height: var(--tabs-indicator-height-md);
3854
+ background-color: var(--tabs-indicator-color);
3855
+ border-bottom-left-radius: 1px;
3856
+ border-bottom-right-radius: 1px;
3857
+ border-top-left-radius: 3px;
3858
+ border-top-right-radius: 3px;
3859
+ z-index: 3;
3818
3860
  }
3819
3861
 
3820
- /* ─── Remove (×) button ───────────────────────────────── */
3821
- .muka-thumbnail__remove {
3822
- position: absolute;
3823
- top: var(--spacing-2);
3824
- right: var(--spacing-2);
3862
+ .muka-tabs--size-sm .muka-tabs__trigger--current::after {
3863
+ height: var(--tabs-indicator-height-sm);
3864
+ }
3865
+ .muka-tabs--size-lg .muka-tabs__trigger--current::after {
3866
+ height: var(--tabs-indicator-height-lg);
3867
+ }
3868
+
3869
+ .muka-tabs__trigger--disabled {
3870
+ color: var(--tabs-trigger-color-disabled-foreground);
3871
+ cursor: not-allowed;
3872
+ }
3873
+
3874
+ .muka-tabs__trigger:focus-visible {
3875
+ outline: 2px solid var(--color-border-focus);
3876
+ outline-offset: -2px;
3877
+ }
3878
+
3879
+ /* Label: Figma pads the label 8px either side, so with the 4px gap a leading
3880
+ item sits 12px from the text */
3881
+ .muka-tabs__label {
3882
+ padding: 0 var(--spacing-2);
3883
+ }
3884
+
3885
+ /* Leading item: icon, avatar, avatar group or data pie chart */
3886
+ .muka-tabs__leading {
3825
3887
  display: flex;
3826
3888
  align-items: center;
3827
3889
  justify-content: center;
3828
- width: var(--size-2xl);
3829
- height: var(--size-2xl);
3830
- padding: 0;
3831
- color: var(--button-color-tertiary-foreground-default);
3832
- background-color: var(--button-color-tertiary-background-default);
3833
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3834
- border-radius: var(--border-radius-lg);
3835
- cursor: pointer;
3836
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3837
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
3890
+ flex-shrink: 0;
3891
+ }
3892
+ .muka-tabs__trigger .muka-icon {
3893
+ color: inherit;
3838
3894
  }
3895
+ /* Icon sizes only: avatars and pie charts are sized through their size prop */
3896
+ .muka-tabs--size-sm .muka-tabs__leading > svg,
3897
+ .muka-tabs--size-sm .muka-tabs__leading > .muka-icon svg { width: 16px; height: 16px; }
3898
+ .muka-tabs--size-md .muka-tabs__leading > svg,
3899
+ .muka-tabs--size-md .muka-tabs__leading > .muka-icon svg { width: 20px; height: 20px; }
3900
+ .muka-tabs--size-lg .muka-tabs__leading > svg,
3901
+ .muka-tabs--size-lg .muka-tabs__leading > .muka-icon svg { width: 24px; height: 24px; }
3839
3902
 
3840
- .muka-thumbnail__remove:hover {
3841
- color: var(--button-color-tertiary-foreground-hover);
3842
- background-color: var(--button-color-tertiary-background-hover);
3843
- border-color: var(--button-color-tertiary-border-hover);
3903
+ /* Responsive Scroll behavior on small screens */
3904
+ @media (max-width: 768px) {
3905
+ .muka-tabs__list {
3906
+ /* Make scrollable */
3907
+ overflow-x: auto;
3908
+ overflow-y: hidden;
3909
+ /* Force left alignment on mobile to prevent clipping when scrolling */
3910
+ justify-content: flex-start !important;
3911
+ max-width: 100vw;
3912
+ -webkit-overflow-scrolling: touch;
3913
+ /* Hide scrollbar for cleaner look */
3914
+ scrollbar-width: none;
3915
+ }
3916
+ .muka-tabs__list::-webkit-scrollbar {
3917
+ display: none;
3918
+ }
3919
+ /* Remove flex: 1 behavior for Fill tabs on mobile so they map correctly */
3920
+ .muka-tabs--align-fill .muka-tabs__trigger {
3921
+ flex: 0 0 auto;
3922
+ }
3844
3923
  }
3845
3924
 
3846
- .muka-thumbnail__remove:active {
3847
- color: var(--button-color-tertiary-foreground-pressed);
3848
- background-color: var(--button-color-tertiary-background-pressed);
3849
- border-color: var(--button-color-tertiary-border-pressed);
3925
+ /* Tab Panel — content area */
3926
+ .muka-tabs__panel {
3927
+ background-color: var(--tabs-panel-background);
3928
+ /* border-top: var(--border-width-regular) solid var(--tabs-panel-border); removed in favor of the new tablist border */
3929
+ border-bottom: var(--border-width-regular) solid var(--tabs-panel-border);
3930
+ padding: var(--spacing-4);
3931
+ position: relative;
3932
+ z-index: 1;
3933
+ font-family: var(--text-body-base-regular-fontFamily);
3934
+ font-weight: var(--text-body-base-regular-fontWeight);
3935
+ font-size: var(--text-body-base-regular-fontSize);
3936
+ line-height: var(--text-body-base-regular-lineHeight);
3850
3937
  }
3851
3938
 
3852
- .muka-thumbnail__remove:focus-visible {
3939
+ .muka-tabs__panel:focus-visible {
3853
3940
  outline: 2px solid var(--color-border-focus);
3854
3941
  outline-offset: 2px;
3855
3942
  }
3856
3943
 
3857
- /* ─── Reduced motion ──────────────────────────────────── */
3858
- @media (prefers-reduced-motion: reduce) {
3859
- .muka-thumbnail__image,
3860
- .muka-thumbnail__remove {
3861
- transition: none;
3862
- }
3863
3944
 
3864
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3865
- transform: none;
3866
- }
3945
+ /* Tile */
3946
+ /* Tile Component Styles - Using Muka Design Tokens */
3947
+
3948
+ /* ─── Base ────────────────────────────────────────────── */
3949
+
3950
+ .muka-tile {
3951
+ display: flex;
3952
+ color: var(--color-text-default-default);
3867
3953
  }
3868
3954
 
3955
+ .muka-tile--interactive {
3956
+ cursor: pointer;
3957
+ user-select: none;
3958
+ }
3869
3959
 
3870
- /* Textarea */
3871
- /* Textarea Component Styles - Using Muka Design Tokens */
3960
+ .muka-tile--interactive:focus-visible {
3961
+ outline: 2px solid var(--color-border-focus);
3962
+ outline-offset: 2px;
3963
+ border-radius: var(--border-radius-lg);
3964
+ }
3872
3965
 
3873
- .muka-textarea {
3874
- display: inline-flex;
3966
+ /* ─── Image position variants ─────────────────────────── */
3967
+
3968
+ .muka-tile--image-top {
3875
3969
  flex-direction: column;
3876
- gap: var(--spacing-2);
3877
3970
  }
3878
3971
 
3879
- /* Label */
3880
- .muka-textarea__label {
3881
- color: var(--color-text-default-default);
3882
- cursor: pointer;
3972
+ .muka-tile--image-left {
3973
+ flex-direction: row;
3883
3974
  }
3884
3975
 
3885
- .muka-textarea__label--sm {
3886
- font-family: var(--text-label-sm-semibold-fontFamily);
3887
- font-weight: var(--text-label-sm-semibold-fontWeight);
3888
- font-size: var(--text-label-sm-semibold-fontSize);
3889
- line-height: var(--text-label-sm-semibold-lineHeight);
3976
+ .muka-tile--image-right {
3977
+ flex-direction: row;
3890
3978
  }
3891
3979
 
3892
- .muka-textarea__label--md {
3893
- font-family: var(--text-label-md-semibold-fontFamily);
3894
- font-weight: var(--text-label-md-semibold-fontWeight);
3895
- font-size: var(--text-label-md-semibold-fontSize);
3896
- line-height: var(--text-label-md-semibold-lineHeight);
3980
+ /* ─── Gap by size (top) ───────────────────────────────── */
3981
+
3982
+ .muka-tile--image-top.muka-tile--lg {
3983
+ gap: var(--spacing-6);
3897
3984
  }
3898
3985
 
3899
- .muka-textarea__label--lg {
3900
- font-family: var(--text-label-lg-semibold-fontFamily);
3901
- font-weight: var(--text-label-lg-semibold-fontWeight);
3902
- font-size: var(--text-label-lg-semibold-fontSize);
3903
- line-height: var(--text-label-lg-semibold-lineHeight);
3986
+ .muka-tile--image-top.muka-tile--md {
3987
+ gap: var(--spacing-6);
3988
+ width: 320px;
3904
3989
  }
3905
3990
 
3906
- .muka-textarea__required {
3907
- color: var(--color-state-error-default);
3991
+ .muka-tile--image-top.muka-tile--sm {
3992
+ gap: var(--spacing-4);
3993
+ min-width: 120px;
3908
3994
  }
3909
3995
 
3910
- /* Field container */
3911
- .muka-textarea__field {
3912
- display: flex;
3913
- background-color: var(--input-field-color-default-background);
3914
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
3915
- border-radius: var(--input-field-radius-md);
3916
- padding: var(--input-field-padding-y) var(--input-field-padding-x);
3917
- transition: border-color 0.2s ease, background-color 0.2s ease;
3918
- box-sizing: border-box;
3996
+ /* ─── Gap by size (left/right) ────────────────────────── */
3997
+
3998
+ .muka-tile--image-left.muka-tile--lg,
3999
+ .muka-tile--image-right.muka-tile--lg {
4000
+ gap: var(--spacing-6);
4001
+ align-items: center;
3919
4002
  }
3920
4003
 
3921
- .muka-textarea__field--sm {
3922
- min-height: var(--input-textarea-height-sm);
3923
- border-radius: var(--input-field-radius-sm);
4004
+ .muka-tile--image-left.muka-tile--md,
4005
+ .muka-tile--image-right.muka-tile--md {
4006
+ gap: var(--spacing-6);
4007
+ align-items: center;
3924
4008
  }
3925
4009
 
3926
- .muka-textarea__field--md {
3927
- min-height: var(--input-textarea-height-default);
3928
- border-radius: var(--input-field-radius-md);
4010
+ .muka-tile--image-left.muka-tile--sm,
4011
+ .muka-tile--image-right.muka-tile--sm {
4012
+ gap: var(--spacing-4);
4013
+ align-items: flex-start;
3929
4014
  }
3930
4015
 
3931
- .muka-textarea__field--lg {
3932
- min-height: var(--input-textarea-height-lg);
3933
- border-radius: var(--input-field-radius-lg);
4016
+ /* ─── Photos container ────────────────────────────────── */
4017
+
4018
+ .muka-tile__photos {
4019
+ position: relative;
4020
+ flex-shrink: 0;
4021
+ overflow: hidden;
4022
+ display: flex;
4023
+ flex-direction: column;
4024
+ isolation: isolate;
3934
4025
  }
3935
4026
 
3936
- /* Focus state */
3937
- .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
3938
- border-width: var(--border-width-bold);
3939
- border-color: var(--input-field-color-focus-border);
3940
- background-color: var(--input-field-color-focus-background);
3941
- padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4027
+ /* Photos border radius by size */
4028
+ .muka-tile--lg .muka-tile__photos,
4029
+ .muka-tile--md .muka-tile__photos {
4030
+ border-radius: var(--border-radius-lg);
3942
4031
  }
3943
4032
 
3944
- /* Error state */
3945
- .muka-textarea__field--error:not(.muka-textarea__field--disabled) {
3946
- border-width: var(--border-width-bold);
3947
- border-color: var(--input-field-color-error-border);
3948
- background-color: var(--input-field-color-error-background);
3949
- padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4033
+ .muka-tile--sm .muka-tile__photos {
4034
+ border-radius: var(--border-radius-md);
3950
4035
  }
3951
4036
 
3952
- /* Disabled state */
3953
- .muka-textarea__field--disabled {
3954
- background-color: var(--input-field-color-disabled-background);
3955
- border-color: var(--input-field-color-disabled-border);
3956
- cursor: not-allowed;
4037
+ /* Photos sizing: top layout */
4038
+ .muka-tile--image-top .muka-tile__photos {
4039
+ width: 100%;
3957
4040
  }
3958
4041
 
3959
- /* Native textarea */
3960
- .muka-textarea__native {
3961
- flex: 1;
3962
- border: none;
3963
- outline: none;
3964
- background: transparent;
3965
- color: var(--input-field-color-default-foreground);
3966
- font-family: var(--text-input-md-fontFamily);
3967
- font-weight: var(--text-input-md-fontWeight);
3968
- font-size: var(--text-input-md-fontSize);
3969
- line-height: var(--text-input-md-lineHeight);
3970
- padding: 0;
3971
- width: 100%;
3972
- min-width: 0;
4042
+ /* Photos sizing: left/right large */
4043
+ .muka-tile--image-left.muka-tile--lg .muka-tile__photos,
4044
+ .muka-tile--image-right.muka-tile--lg .muka-tile__photos {
4045
+ width: 520px;
3973
4046
  }
3974
4047
 
3975
- .muka-textarea__field--sm .muka-textarea__native {
3976
- font-family: var(--text-input-sm-fontFamily);
3977
- font-weight: var(--text-input-sm-fontWeight);
3978
- font-size: var(--text-input-sm-fontSize);
3979
- line-height: var(--text-input-sm-lineHeight);
4048
+ /* Photos sizing: left/right medium */
4049
+ .muka-tile--image-left.muka-tile--md .muka-tile__photos,
4050
+ .muka-tile--image-right.muka-tile--md .muka-tile__photos {
4051
+ width: 320px;
3980
4052
  }
3981
4053
 
3982
- .muka-textarea__field--lg .muka-textarea__native {
3983
- font-family: var(--text-input-lg-fontFamily);
3984
- font-weight: var(--text-input-lg-fontWeight);
3985
- font-size: var(--text-input-lg-fontSize);
3986
- line-height: var(--text-input-lg-lineHeight);
4054
+ /* Photos sizing: left/right small (single 80x80 thumbnail) */
4055
+ .muka-tile--image-left.muka-tile--sm .muka-tile__photos,
4056
+ .muka-tile--image-right.muka-tile--sm .muka-tile__photos {
4057
+ width: 80px;
4058
+ align-self: stretch;
3987
4059
  }
3988
4060
 
3989
- .muka-textarea__native::placeholder {
3990
- color: var(--color-text-subtle-default);
3991
- }
4061
+ /* ─── Main photo ──────────────────────────────────────── */
3992
4062
 
3993
- .muka-textarea__field--disabled .muka-textarea__native {
3994
- color: var(--input-field-color-disabled-foreground);
3995
- cursor: not-allowed;
4063
+ .muka-tile__photo-main {
4064
+ position: relative;
4065
+ width: 100%;
4066
+ overflow: hidden;
4067
+ flex-shrink: 0;
3996
4068
  }
3997
4069
 
3998
- /* Footer (helper/error + count) */
3999
- .muka-textarea__footer {
4000
- display: flex;
4001
- justify-content: space-between;
4002
- align-items: flex-start;
4003
- gap: var(--spacing-2);
4070
+ /* 16:9 aspect for lg and md */
4071
+ .muka-tile--lg .muka-tile__photo-main,
4072
+ .muka-tile--md .muka-tile__photo-main {
4073
+ aspect-ratio: 1280 / 720;
4004
4074
  }
4005
4075
 
4006
- .muka-textarea__helper {
4007
- font-family: var(--text-label-sm-regular-fontFamily);
4008
- font-weight: var(--text-label-sm-regular-fontWeight);
4009
- font-size: var(--text-label-sm-regular-fontSize);
4010
- line-height: var(--text-label-sm-regular-lineHeight);
4011
- color: var(--color-text-subtle-default);
4012
- margin: 0;
4076
+ /* 1:1 aspect for top + sm */
4077
+ .muka-tile--image-top.muka-tile--sm .muka-tile__photo-main {
4078
+ aspect-ratio: 1 / 1;
4013
4079
  }
4014
4080
 
4015
- .muka-textarea__error {
4016
- font-family: var(--text-label-sm-regular-fontFamily);
4017
- font-weight: var(--text-label-sm-regular-fontWeight);
4018
- font-size: var(--text-label-sm-regular-fontSize);
4019
- line-height: var(--text-label-sm-regular-lineHeight);
4020
- color: var(--color-state-error-default);
4021
- margin: 0;
4081
+ /* Fixed size for left/right + sm */
4082
+ .muka-tile--image-left.muka-tile--sm .muka-tile__photo-main,
4083
+ .muka-tile--image-right.muka-tile--sm .muka-tile__photo-main {
4084
+ width: 80px;
4085
+ height: 80px;
4086
+ aspect-ratio: auto;
4022
4087
  }
4023
4088
 
4024
- .muka-textarea__count {
4025
- font-family: var(--text-label-sm-regular-fontFamily);
4026
- font-weight: var(--text-label-sm-regular-fontWeight);
4027
- font-size: var(--text-label-sm-regular-fontSize);
4028
- line-height: var(--text-label-sm-regular-lineHeight);
4029
- color: var(--color-text-subtle-default);
4030
- margin-left: auto;
4089
+ .muka-tile__photo-main img {
4090
+ width: 100%;
4091
+ height: 100%;
4092
+ object-fit: cover;
4093
+ display: block;
4031
4094
  }
4032
4095
 
4096
+ /* ─── Favourite overlay ───────────────────────────────── */
4033
4097
 
4034
- /* TextLink */
4035
- /* TextLink Component Styles - Using Muka Design Tokens */
4036
-
4037
- .muka-text-link {
4038
- display: inline;
4039
- cursor: pointer;
4040
- text-decoration: underline;
4041
- /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4042
- text-underline-offset: 0.2em;
4043
- text-decoration-thickness: from-font;
4044
- /* Rounds the focus ring's corners; the link itself has no visible box. */
4045
- border-radius: var(--border-radius-sm);
4046
- transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4098
+ .muka-tile__favourite {
4099
+ position: absolute;
4100
+ z-index: 3;
4047
4101
  }
4048
4102
 
4049
- /* ─── Sizes ───────────────────────────────────────────────
4050
- Mirrors the body text scale so a link matches the copy it sits in. */
4051
- .muka-text-link--sm {
4052
- font-family: var(--text-body-sm-regular-fontFamily);
4053
- font-weight: var(--text-body-sm-regular-fontWeight);
4054
- font-size: var(--text-body-sm-regular-fontSize);
4055
- line-height: var(--text-body-sm-regular-lineHeight);
4103
+ .muka-tile--lg .muka-tile__favourite,
4104
+ .muka-tile--md .muka-tile__favourite {
4105
+ top: var(--spacing-4);
4106
+ right: var(--spacing-4);
4056
4107
  }
4057
4108
 
4058
- .muka-text-link--base {
4059
- font-family: var(--text-body-base-regular-fontFamily);
4060
- font-weight: var(--text-body-base-regular-fontWeight);
4061
- font-size: var(--text-body-base-regular-fontSize);
4062
- line-height: var(--text-body-base-regular-lineHeight);
4109
+ .muka-tile--image-top.muka-tile--sm .muka-tile__favourite {
4110
+ top: var(--spacing-1);
4111
+ right: var(--spacing-1);
4063
4112
  }
4064
4113
 
4065
- .muka-text-link--lg {
4066
- font-family: var(--text-body-lg-regular-fontFamily);
4067
- font-weight: var(--text-body-lg-regular-fontWeight);
4068
- font-size: var(--text-body-lg-regular-fontSize);
4069
- line-height: var(--text-body-lg-regular-lineHeight);
4070
- }
4114
+ /* ─── Thumbnails ──────────────────────────────────────── */
4071
4115
 
4072
- /* ─── Variant: default (accent) ───────────────────────────
4073
- Visited repeats the default colour on purpose: the design treats visited and
4074
- default the same, and pinning it stops the browser's purple from showing. */
4075
- .muka-text-link--default,
4076
- .muka-text-link--default:visited {
4077
- color: var(--color-text-action-default);
4116
+ .muka-tile__thumbnails {
4117
+ display: flex;
4118
+ gap: 2px;
4119
+ overflow: hidden;
4120
+ flex-shrink: 0;
4121
+ height: 80px;
4078
4122
  }
4079
4123
 
4080
- .muka-text-link--default:hover,
4081
- .muka-text-link--default:focus-visible {
4082
- color: var(--color-text-action-hover);
4124
+ .muka-tile__thumbnail {
4125
+ width: 80px;
4126
+ height: 80px;
4127
+ flex-shrink: 0;
4128
+ overflow: hidden;
4083
4129
  }
4084
4130
 
4085
- .muka-text-link--default:active {
4086
- color: var(--color-text-action-pressed);
4131
+ .muka-tile__thumbnail img {
4132
+ width: 100%;
4133
+ height: 100%;
4134
+ object-fit: cover;
4135
+ display: block;
4087
4136
  }
4088
4137
 
4089
- /* ─── Variant: subtle (neutral) ───────────────────────────
4090
- Hover, focus and pressed all darken to the default text colour. */
4091
- .muka-text-link--subtle,
4092
- .muka-text-link--subtle:visited {
4093
- color: var(--color-text-subtle-default);
4138
+ /* Gap between main photo and thumbnails */
4139
+ .muka-tile__photos > .muka-tile__photo-main + .muka-tile__thumbnails {
4140
+ margin-top: 2px;
4094
4141
  }
4095
4142
 
4096
- .muka-text-link--subtle:hover,
4097
- .muka-text-link--subtle:focus-visible,
4098
- .muka-text-link--subtle:active {
4099
- color: var(--color-text-default-default);
4100
- }
4143
+ /* ─── Content section ─────────────────────────────────── */
4101
4144
 
4102
- /* ─── Focus ───────────────────────────────────────────────
4103
- Same ring as every other focusable Muka component. */
4104
- .muka-text-link:focus-visible {
4105
- outline: 2px solid var(--color-border-focus);
4106
- outline-offset: 2px;
4145
+ .muka-tile__content {
4146
+ display: flex;
4147
+ flex-direction: column;
4148
+ flex: 1;
4149
+ min-width: 0;
4107
4150
  }
4108
4151
 
4109
- @media (prefers-reduced-motion: reduce) {
4110
- .muka-text-link {
4111
- transition: none;
4112
- }
4152
+ /* Top layout: content has horizontal padding */
4153
+ .muka-tile--image-top.muka-tile--lg .muka-tile__content {
4154
+ padding: 0 var(--spacing-3);
4155
+ gap: var(--spacing-1);
4113
4156
  }
4114
4157
 
4158
+ .muka-tile--image-top.muka-tile--md .muka-tile__content {
4159
+ padding: 0 var(--spacing-3);
4160
+ gap: var(--spacing-2);
4161
+ }
4115
4162
 
4116
- /* Tabs */
4117
- /* Tabs Component Styles - Clean underline style tabs matching Figma */
4118
-
4119
- .muka-tabs {
4120
- display: flex;
4121
- flex-direction: column;
4163
+ .muka-tile--image-top.muka-tile--sm .muka-tile__content {
4164
+ gap: var(--spacing-2);
4122
4165
  }
4123
4166
 
4124
- /* Alignment Variants */
4125
- .muka-tabs--align-left .muka-tabs__list {
4126
- justify-content: flex-start;
4167
+ /* Left/right layout: content grows to fill space */
4168
+ .muka-tile--image-left .muka-tile__content,
4169
+ .muka-tile--image-right .muka-tile__content {
4170
+ gap: var(--spacing-3);
4127
4171
  }
4128
- .muka-tabs--align-center .muka-tabs__list {
4129
- justify-content: center;
4172
+
4173
+ .muka-tile--image-left.muka-tile--lg .muka-tile__content,
4174
+ .muka-tile--image-right.muka-tile--lg .muka-tile__content {
4175
+ padding: 0 var(--spacing-3);
4130
4176
  }
4131
- .muka-tabs--align-fill .muka-tabs__list {
4132
- justify-content: space-between;
4177
+
4178
+ .muka-tile--image-left.muka-tile--md .muka-tile__content,
4179
+ .muka-tile--image-right.muka-tile--md .muka-tile__content {
4180
+ padding: var(--spacing-2) var(--spacing-3);
4133
4181
  }
4134
- .muka-tabs--align-fill .muka-tabs__trigger {
4135
- flex: 1;
4182
+
4183
+ .muka-tile--image-left.muka-tile--sm .muka-tile__content,
4184
+ .muka-tile--image-right.muka-tile--sm .muka-tile__content {
4185
+ gap: var(--spacing-2);
4136
4186
  }
4137
4187
 
4138
- /* Tab List — strip container */
4139
- .muka-tabs__list {
4188
+ /* ─── Header (heading row + price) ────────────────────── */
4189
+
4190
+ .muka-tile__header {
4140
4191
  display: flex;
4141
- align-items: center;
4142
- position: relative;
4143
- z-index: 2;
4144
- border-bottom: 1px solid var(--tabs-trigger-color-default-border);
4192
+ align-items: flex-start;
4193
+ gap: var(--spacing-4);
4145
4194
  }
4146
4195
 
4147
- /* Padding: inset the tabs; the divider (border) still spans the full width */
4148
- .muka-tabs--padding-default .muka-tabs__list {
4149
- padding-inline: var(--tabs-list-padding-x);
4196
+ /* Small horizontal: row with text and action */
4197
+ .muka-tile--sm:not(.muka-tile--image-top) .muka-tile__header {
4198
+ gap: var(--spacing-2);
4199
+ align-items: center;
4200
+ padding-top: var(--spacing-1);
4150
4201
  }
4151
4202
 
4152
- /* Tab Trigger — clean underline style */
4153
- .muka-tabs__trigger {
4154
- display: inline-flex;
4155
- align-items: center;
4156
- justify-content: center;
4157
- gap: var(--spacing-1);
4158
- background: transparent;
4159
- border: none;
4160
- cursor: pointer;
4161
- user-select: none;
4162
- transition: background-color 0.2s ease, color 0.2s ease;
4163
- outline: none;
4164
- white-space: nowrap;
4165
- position: relative;
4166
- z-index: 2;
4167
- color: var(--tabs-trigger-color-default-foreground);
4203
+ /* ─── Text group ──────────────────────────────────────── */
4168
4204
 
4169
- /* Default MD size values */
4170
- min-height: var(--tabs-trigger-min-height-md);
4171
- padding: var(--spacing-3);
4172
- font-family: var(--text-label-md-regular-fontFamily);
4173
- font-weight: var(--text-label-md-regular-fontWeight);
4174
- font-size: var(--text-label-md-regular-fontSize);
4175
- line-height: var(--text-label-md-regular-lineHeight);
4205
+ .muka-tile__text {
4206
+ display: flex;
4207
+ flex-direction: column;
4208
+ flex: 1;
4209
+ min-width: 0;
4210
+ gap: var(--spacing-2);
4176
4211
  }
4177
4212
 
4178
- /* Size Variants */
4179
- .muka-tabs--size-sm .muka-tabs__trigger {
4180
- min-height: var(--tabs-trigger-min-height-sm);
4181
- padding: 0 var(--spacing-2);
4182
- font-family: var(--text-label-sm-regular-fontFamily);
4183
- font-weight: var(--text-label-sm-regular-fontWeight);
4184
- font-size: var(--text-label-sm-regular-fontSize);
4185
- line-height: var(--text-label-sm-regular-lineHeight);
4186
- }
4213
+ /* ─── Heading typography ──────────────────────────────── */
4187
4214
 
4188
- .muka-tabs--size-lg .muka-tabs__trigger {
4189
- min-height: var(--tabs-trigger-min-height-lg);
4190
- padding: var(--spacing-4);
4191
- font-family: var(--text-label-lg-regular-fontFamily);
4192
- font-weight: var(--text-label-lg-regular-fontWeight);
4193
- font-size: var(--text-label-lg-regular-fontSize);
4194
- line-height: var(--text-label-lg-regular-lineHeight);
4215
+ .muka-tile__heading {
4216
+ margin: 0;
4195
4217
  }
4196
4218
 
4197
- /* Hover state */
4198
- .muka-tabs__trigger:hover:not(:disabled):not(.muka-tabs__trigger--current) {
4199
- color: var(--tabs-trigger-color-hover-foreground);
4219
+ .muka-tile--lg .muka-tile__heading {
4220
+ font-family: var(--text-label-2xl-semibold-fontFamily);
4221
+ font-weight: var(--text-label-2xl-semibold-fontWeight);
4222
+ font-size: var(--text-label-2xl-semibold-fontSize);
4223
+ line-height: var(--text-label-2xl-semibold-lineHeight);
4224
+ color: var(--color-text-default-default);
4200
4225
  }
4201
4226
 
4202
- /* Current tab */
4203
- .muka-tabs__trigger--current {
4204
- color: var(--tabs-trigger-color-current-foreground);
4227
+ .muka-tile--md .muka-tile__heading {
4228
+ font-family: var(--text-label-xl-semibold-fontFamily);
4229
+ font-weight: var(--text-label-xl-semibold-fontWeight);
4230
+ font-size: var(--text-label-xl-semibold-fontSize);
4231
+ line-height: var(--text-label-xl-semibold-lineHeight);
4232
+ color: var(--color-text-default-default);
4205
4233
  }
4206
4234
 
4207
- /* Active bottom border (underline) */
4208
- .muka-tabs__trigger--current::after {
4209
- content: '';
4210
- position: absolute;
4211
- bottom: -1px; /* Overlap the 1px border */
4212
- left: 0;
4213
- right: 0;
4214
- height: var(--tabs-indicator-height-md);
4215
- background-color: var(--tabs-indicator-color);
4216
- border-bottom-left-radius: 1px;
4217
- border-bottom-right-radius: 1px;
4218
- border-top-left-radius: 3px;
4219
- border-top-right-radius: 3px;
4220
- z-index: 3;
4235
+ .muka-tile--sm .muka-tile__heading {
4236
+ font-family: var(--text-label-lg-bold-fontFamily);
4237
+ font-weight: var(--text-label-lg-bold-fontWeight);
4238
+ font-size: var(--text-label-lg-bold-fontSize);
4239
+ line-height: var(--text-label-lg-bold-lineHeight);
4240
+ color: var(--color-text-default-default);
4221
4241
  }
4222
4242
 
4223
- .muka-tabs--size-sm .muka-tabs__trigger--current::after {
4224
- height: var(--tabs-indicator-height-sm);
4225
- }
4226
- .muka-tabs--size-lg .muka-tabs__trigger--current::after {
4227
- height: var(--tabs-indicator-height-lg);
4228
- }
4243
+ /* ─── Subheading typography ───────────────────────────── */
4229
4244
 
4230
- .muka-tabs__trigger--disabled {
4231
- color: var(--tabs-trigger-color-disabled-foreground);
4232
- cursor: not-allowed;
4245
+ .muka-tile__subheading {
4246
+ margin: 0;
4247
+ color: var(--color-text-subtle-default);
4233
4248
  }
4234
4249
 
4235
- .muka-tabs__trigger:focus-visible {
4236
- outline: 2px solid var(--color-border-focus);
4237
- outline-offset: -2px;
4250
+ .muka-tile--lg .muka-tile__subheading {
4251
+ font-family: var(--text-subheading-md-fontFamily);
4252
+ font-weight: var(--text-subheading-md-fontWeight);
4253
+ font-size: var(--text-subheading-md-fontSize);
4254
+ line-height: var(--text-subheading-md-lineHeight);
4238
4255
  }
4239
4256
 
4240
- /* Label: Figma pads the label 8px either side, so with the 4px gap a leading
4241
- item sits 12px from the text */
4242
- .muka-tabs__label {
4243
- padding: 0 var(--spacing-2);
4257
+ .muka-tile--md .muka-tile__subheading,
4258
+ .muka-tile--sm .muka-tile__subheading {
4259
+ font-family: var(--text-subheading-sm-fontFamily);
4260
+ font-weight: var(--text-subheading-sm-fontWeight);
4261
+ font-size: var(--text-subheading-sm-fontSize);
4262
+ line-height: var(--text-subheading-sm-lineHeight);
4244
4263
  }
4245
4264
 
4246
- /* Leading item: icon, avatar, avatar group or data pie chart */
4247
- .muka-tabs__leading {
4248
- display: flex;
4249
- align-items: center;
4250
- justify-content: center;
4251
- flex-shrink: 0;
4252
- }
4253
- .muka-tabs__trigger .muka-icon {
4254
- color: inherit;
4265
+ /* ─── Description typography ──────────────────────────── */
4266
+
4267
+ .muka-tile__description {
4268
+ margin: 0;
4269
+ color: var(--color-text-default-default);
4255
4270
  }
4256
- /* Icon sizes only: avatars and pie charts are sized through their size prop */
4257
- .muka-tabs--size-sm .muka-tabs__leading > svg,
4258
- .muka-tabs--size-sm .muka-tabs__leading > .muka-icon svg { width: 16px; height: 16px; }
4259
- .muka-tabs--size-md .muka-tabs__leading > svg,
4260
- .muka-tabs--size-md .muka-tabs__leading > .muka-icon svg { width: 20px; height: 20px; }
4261
- .muka-tabs--size-lg .muka-tabs__leading > svg,
4262
- .muka-tabs--size-lg .muka-tabs__leading > .muka-icon svg { width: 24px; height: 24px; }
4263
4271
 
4264
- /* Responsive Scroll behavior on small screens */
4265
- @media (max-width: 768px) {
4266
- .muka-tabs__list {
4267
- /* Make scrollable */
4268
- overflow-x: auto;
4269
- overflow-y: hidden;
4270
- /* Force left alignment on mobile to prevent clipping when scrolling */
4271
- justify-content: flex-start !important;
4272
- max-width: 100vw;
4273
- -webkit-overflow-scrolling: touch;
4274
- /* Hide scrollbar for cleaner look */
4275
- scrollbar-width: none;
4276
- }
4277
- .muka-tabs__list::-webkit-scrollbar {
4278
- display: none;
4279
- }
4280
- /* Remove flex: 1 behavior for Fill tabs on mobile so they map correctly */
4281
- .muka-tabs--align-fill .muka-tabs__trigger {
4282
- flex: 0 0 auto;
4283
- }
4272
+ .muka-tile--lg .muka-tile__description {
4273
+ font-family: var(--text-body-lg-regular-fontFamily);
4274
+ font-weight: var(--text-body-lg-regular-fontWeight);
4275
+ font-size: var(--text-body-lg-regular-fontSize);
4276
+ line-height: var(--text-body-lg-regular-lineHeight);
4284
4277
  }
4285
4278
 
4286
- /* Tab Panel — content area */
4287
- .muka-tabs__panel {
4288
- background-color: var(--tabs-panel-background);
4289
- /* border-top: var(--border-width-regular) solid var(--tabs-panel-border); removed in favor of the new tablist border */
4290
- border-bottom: var(--border-width-regular) solid var(--tabs-panel-border);
4291
- padding: var(--spacing-4);
4292
- position: relative;
4293
- z-index: 1;
4279
+ .muka-tile--md .muka-tile__description,
4280
+ .muka-tile--sm .muka-tile__description {
4294
4281
  font-family: var(--text-body-base-regular-fontFamily);
4295
4282
  font-weight: var(--text-body-base-regular-fontWeight);
4296
4283
  font-size: var(--text-body-base-regular-fontSize);
4297
4284
  line-height: var(--text-body-base-regular-lineHeight);
4298
4285
  }
4299
4286
 
4300
- .muka-tabs__panel:focus-visible {
4301
- outline: 2px solid var(--color-border-focus);
4302
- outline-offset: 2px;
4287
+ /* Description overflow for medium */
4288
+ .muka-tile--md .muka-tile__description {
4289
+ overflow: hidden;
4290
+ text-overflow: ellipsis;
4291
+ }
4292
+
4293
+ /* ─── Price slot ──────────────────────────────────────── */
4294
+
4295
+ .muka-tile__price {
4296
+ flex-shrink: 0;
4297
+ }
4298
+
4299
+ /* ─── Action slot ─────────────────────────────────────── */
4300
+
4301
+ .muka-tile__action {
4302
+ flex-shrink: 0;
4303
4303
  }
4304
4304
 
4305
4305