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