@revikornmann/muka-ui 0.49.0 → 0.50.1

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 (71) hide show
  1. package/cli/templates/agents-block.md +16 -0
  2. package/dist/cjs/components/AppShell/AppShell.css +36 -10
  3. package/dist/cjs/components/BottomBar/BottomBar.css +2 -0
  4. package/dist/cjs/components/Dialog/Dialog.css +38 -0
  5. package/dist/cjs/components/DocumentViewer/DocumentViewer.css +22 -0
  6. package/dist/cjs/components/Drawer/Drawer.css +43 -0
  7. package/dist/cjs/components/Page/Page.css +57 -0
  8. package/dist/cjs/components/Page/Page.js +31 -0
  9. package/dist/cjs/components/Page/Page.js.map +1 -0
  10. package/dist/cjs/components/Page/index.js +6 -0
  11. package/dist/cjs/components/Page/index.js.map +1 -0
  12. package/dist/cjs/components/SiteHeader/SiteHeader.css +104 -0
  13. package/dist/cjs/components/SiteHeader/SiteHeader.js +34 -0
  14. package/dist/cjs/components/SiteHeader/SiteHeader.js.map +1 -0
  15. package/dist/cjs/components/SiteHeader/index.js +6 -0
  16. package/dist/cjs/components/SiteHeader/index.js.map +1 -0
  17. package/dist/cjs/components/Toast/Toast.css +12 -10
  18. package/dist/cjs/components/View/View.css +12 -0
  19. package/dist/cjs/components/index.js +7 -3
  20. package/dist/cjs/components/index.js.map +1 -1
  21. package/dist/esm/components/AppShell/AppShell.css +36 -10
  22. package/dist/esm/components/BottomBar/BottomBar.css +2 -0
  23. package/dist/esm/components/Dialog/Dialog.css +38 -0
  24. package/dist/esm/components/DocumentViewer/DocumentViewer.css +22 -0
  25. package/dist/esm/components/Drawer/Drawer.css +43 -0
  26. package/dist/esm/components/Page/Page.css +57 -0
  27. package/dist/esm/components/Page/Page.js +27 -0
  28. package/dist/esm/components/Page/Page.js.map +1 -0
  29. package/dist/esm/components/Page/index.js +2 -0
  30. package/dist/esm/components/Page/index.js.map +1 -0
  31. package/dist/esm/components/SiteHeader/SiteHeader.css +104 -0
  32. package/dist/esm/components/SiteHeader/SiteHeader.js +30 -0
  33. package/dist/esm/components/SiteHeader/SiteHeader.js.map +1 -0
  34. package/dist/esm/components/SiteHeader/index.js +2 -0
  35. package/dist/esm/components/SiteHeader/index.js.map +1 -0
  36. package/dist/esm/components/Toast/Toast.css +12 -10
  37. package/dist/esm/components/View/View.css +12 -0
  38. package/dist/esm/components/index.js +2 -0
  39. package/dist/esm/components/index.js.map +1 -1
  40. package/dist/styles/components/AppShell.css +36 -10
  41. package/dist/styles/components/BottomBar.css +2 -0
  42. package/dist/styles/components/ControlBar.css +72 -0
  43. package/dist/styles/components/Dialog.css +38 -0
  44. package/dist/styles/components/DocumentViewer.css +22 -0
  45. package/dist/styles/components/Drawer.css +43 -0
  46. package/dist/styles/components/Page.css +57 -0
  47. package/dist/styles/components/SiteHeader.css +104 -0
  48. package/dist/styles/components/TablePagination.css +199 -0
  49. package/dist/styles/components/Toast.css +12 -10
  50. package/dist/styles/components/TopBar.css +225 -43
  51. package/dist/styles/components/View.css +12 -0
  52. package/dist/styles/index.css +2145 -1651
  53. package/dist/styles/muka-dark.css +2145 -1651
  54. package/dist/styles/muka-light.css +2145 -1651
  55. package/dist/styles/wireframe-dark.css +2145 -1651
  56. package/dist/styles/wireframe-light.css +2145 -1651
  57. package/dist/types/components/Page/Page.d.ts +38 -0
  58. package/dist/types/components/Page/Page.d.ts.map +1 -0
  59. package/dist/types/components/Page/index.d.ts +3 -0
  60. package/dist/types/components/Page/index.d.ts.map +1 -0
  61. package/dist/types/components/SiteHeader/SiteHeader.d.ts +43 -0
  62. package/dist/types/components/SiteHeader/SiteHeader.d.ts.map +1 -0
  63. package/dist/types/components/SiteHeader/index.d.ts +3 -0
  64. package/dist/types/components/SiteHeader/index.d.ts.map +1 -0
  65. package/dist/types/components/index.d.ts +2 -0
  66. package/dist/types/components/index.d.ts.map +1 -1
  67. package/docs/consumers/README.md +1 -0
  68. package/docs/consumers/devices.md +59 -0
  69. package/docs/consumers/setup-instructions.md +7 -0
  70. package/package.json +1 -1
  71. package/skills/setup-muka/SKILL.md +9 -0
@@ -2669,6 +2669,18 @@ body {
2669
2669
  /* Grow on short content so the sticky footer is pushed to the bottom rather
2670
2670
  than floating mid-screen. */
2671
2671
  flex: 1 0 auto;
2672
+ /* Keep content clear of the notch in landscape (0 everywhere else). The
2673
+ large tier below replaces this with its section padding. */
2674
+ padding-left: env(safe-area-inset-left, 0px);
2675
+ padding-right: env(safe-area-inset-right, 0px);
2676
+ }
2677
+
2678
+ /* Home indicator: the body pads for it only when nothing inside does. A
2679
+ BottomBar pads itself, whether it sits in the footer slot or in the content
2680
+ (a chat composer pinned under a message list), so the body must not do it
2681
+ twice; doing so left a strip of body colour under the bar. */
2682
+ .muka-view__body:not(:has(.muka-view__footer, .muka-bottombar:not(.muka-bottombar--no-safe-area))) {
2683
+ padding-bottom: env(safe-area-inset-bottom, 0px);
2672
2684
  }
2673
2685
 
2674
2686
  @media (min-width: 1024px) {
@@ -2875,81 +2887,263 @@ body {
2875
2887
 
2876
2888
 
2877
2889
  /* TopBar */
2878
- /* ControlBar Component Styles */
2890
+ /* TopBar Component Styles */
2879
2891
 
2880
2892
  /*
2881
- * Sizing is driven by `--cb-*` custom properties set per tier. Base (small)
2882
- * values live on `.muka-controlbar`; the large tier flips them — either
2883
- * responsively (no `size` prop, scoped with `:not([data-size])`, large at
2884
- * 1024px+ to track the TopBar large tier) or forced via `[data-size="…"]`.
2885
- * Size affects the bar's own box only; `--controlbar-content-radius` is exposed
2886
- * for consumers to apply to nested fields.
2893
+ * Sizing is driven by a batch of `--tb-*` custom properties set per tier.
2894
+ * The base (small) values live on `.muka-topbar`; the medium/large tiers flip
2895
+ * the same vars. Tiers are applied either responsively (when no `size` prop is
2896
+ * set, scoped with `:not([data-size])`) or forced via `[data-size="…"]`.
2887
2897
  */
2888
- .muka-controlbar {
2898
+ .muka-topbar {
2889
2899
  display: flex;
2890
- justify-content: center;
2891
- background-color: var(--controlbar-color-background);
2900
+ flex-direction: column;
2901
+ align-items: stretch;
2902
+ background-color: var(--topbar-color-background);
2892
2903
  width: 100%;
2904
+ box-shadow: var(--shadow-level2);
2893
2905
 
2894
2906
  /* ─── Small tier (base) ─── */
2895
- --cb-padding-x: var(--controlbar-padding-x-sm);
2896
- --cb-padding-bottom: var(--controlbar-padding-bottom-sm);
2897
- --cb-max-width: var(--controlbar-max-width-sm);
2898
- --cb-gap: var(--controlbar-gap-sm);
2899
- --controlbar-content-radius: var(--controlbar-content-radius-sm);
2907
+ --tb-height: var(--topbar-height-sm);
2908
+ --tb-pad: var(--topbar-padding-x-sm);
2909
+ /* Three-column grid (leading | title | trailing): the equal 1fr side columns
2910
+ keep the title centered, and since each side column is at least as wide
2911
+ as its content, wide (text) actions shrink and truncate the title instead
2912
+ of overlapping it. */
2913
+ --tb-container-display: grid;
2914
+ --tb-title-align: center;
2915
+ --tb-title-font-family: var(--text-heading-xs-fontFamily);
2916
+ --tb-title-font-weight: var(--text-heading-xs-fontWeight);
2917
+ --tb-title-font-size: var(--text-heading-xs-fontSize);
2918
+ --tb-title-line-height: var(--text-heading-xs-lineHeight);
2919
+ --tb-title-letter-spacing: var(--text-heading-xs-letterSpacing);
2920
+ --tb-breadcrumb-display: none;
2921
+ --tb-pad-y: 0;
2922
+ }
2923
+
2924
+ /* ─── Medium tier ─── */
2925
+ @media (min-width: 768px) {
2926
+ .muka-topbar:not([data-size]) {
2927
+ --tb-height: var(--topbar-height-md);
2928
+ --tb-pad: var(--topbar-padding-x-md);
2929
+ --tb-title-font-family: var(--text-heading-md-fontFamily);
2930
+ --tb-title-font-weight: var(--text-heading-md-fontWeight);
2931
+ --tb-title-font-size: var(--text-heading-md-fontSize);
2932
+ --tb-title-line-height: var(--text-heading-md-lineHeight);
2933
+ --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2934
+ }
2935
+ }
2900
2936
 
2901
- padding: 0 var(--cb-padding-x) var(--cb-padding-bottom);
2937
+ .muka-topbar[data-size='md'] {
2938
+ --tb-height: var(--topbar-height-md);
2939
+ --tb-pad: var(--topbar-padding-x-md);
2940
+ --tb-title-font-family: var(--text-heading-md-fontFamily);
2941
+ --tb-title-font-weight: var(--text-heading-md-fontWeight);
2942
+ --tb-title-font-size: var(--text-heading-md-fontSize);
2943
+ --tb-title-line-height: var(--text-heading-md-lineHeight);
2944
+ --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2902
2945
  }
2903
2946
 
2904
- /* ─── Large tier ─── */
2947
+ /* ─── Large tier: left-aligned title, breadcrumb row ─── */
2905
2948
  @media (min-width: 1024px) {
2906
- .muka-controlbar:not([data-size]) {
2907
- --cb-padding-x: var(--controlbar-padding-x-lg);
2908
- --cb-padding-bottom: var(--controlbar-padding-bottom-lg);
2909
- --cb-max-width: var(--controlbar-max-width-lg);
2910
- --cb-gap: var(--controlbar-gap-lg);
2911
- --controlbar-content-radius: var(--controlbar-content-radius-lg);
2949
+ .muka-topbar:not([data-size]):not([data-max-size='md']) {
2950
+ --tb-height: var(--topbar-height-lg);
2951
+ --tb-pad: var(--topbar-padding-x-lg);
2952
+ --tb-pad-y: var(--spacing-4);
2953
+ --tb-container-display: flex;
2954
+ --tb-title-align: left;
2955
+ --tb-title-font-family: var(--text-heading-md-fontFamily);
2956
+ --tb-title-font-weight: var(--text-heading-md-fontWeight);
2957
+ --tb-title-font-size: var(--text-heading-md-fontSize);
2958
+ --tb-title-line-height: var(--text-heading-md-lineHeight);
2959
+ --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2960
+ --tb-breadcrumb-display: flex;
2912
2961
  }
2913
2962
  }
2914
2963
 
2915
- .muka-controlbar[data-size='lg'] {
2916
- --cb-padding-x: var(--controlbar-padding-x-lg);
2917
- --cb-padding-bottom: var(--controlbar-padding-bottom-lg);
2918
- --cb-max-width: var(--controlbar-max-width-lg);
2919
- --cb-gap: var(--controlbar-gap-lg);
2920
- --controlbar-content-radius: var(--controlbar-content-radius-lg);
2964
+ .muka-topbar[data-size='lg'] {
2965
+ --tb-height: var(--topbar-height-lg);
2966
+ --tb-pad: var(--topbar-padding-x-lg);
2967
+ --tb-pad-y: var(--spacing-4);
2968
+ --tb-container-display: flex;
2969
+ --tb-title-align: left;
2970
+ --tb-title-font-family: var(--text-heading-md-fontFamily);
2971
+ --tb-title-font-weight: var(--text-heading-md-fontWeight);
2972
+ --tb-title-font-size: var(--text-heading-md-fontSize);
2973
+ --tb-title-line-height: var(--text-heading-md-lineHeight);
2974
+ --tb-title-letter-spacing: var(--text-heading-md-letterSpacing);
2975
+ --tb-breadcrumb-display: flex;
2921
2976
  }
2922
2977
 
2923
- /* Contents are capped at the tier max-width and centered, so they don't
2924
- stretch full-width on larger viewports while the bar background stays edge-to-edge. */
2925
- .muka-controlbar__content {
2978
+ /* Push content below the iOS notch / status bar. Opt out via disableSafeArea. */
2979
+ .muka-topbar:not(.muka-topbar--no-safe-area) {
2980
+ padding-top: env(safe-area-inset-top);
2981
+ }
2982
+
2983
+ /* ─── Drag Handle (draggable variant) ─────────────────── */
2984
+
2985
+ .muka-topbar__drag-handle-container {
2926
2986
  display: flex;
2987
+ flex-direction: column;
2927
2988
  align-items: center;
2928
- gap: var(--cb-gap);
2929
- width: 100%;
2930
- max-width: var(--cb-max-width);
2989
+ padding: var(--topbar-drag-handle-padding-y) 0;
2931
2990
  }
2932
2991
 
2933
- /* ─── Justification variants ─────────────────────────── */
2992
+ .muka-topbar__drag-handle {
2993
+ width: var(--topbar-drag-handle-width);
2994
+ height: var(--topbar-drag-handle-height);
2995
+ background-color: var(--topbar-drag-handle-color);
2996
+ border-radius: var(--topbar-drag-handle-radius);
2997
+ }
2934
2998
 
2935
- .muka-controlbar--justify-start .muka-controlbar__content {
2936
- justify-content: flex-start;
2999
+ /* ─── Breadcrumb (large tier, stacked above the title) ── */
3000
+
3001
+ .muka-topbar__breadcrumb {
3002
+ display: var(--tb-breadcrumb-display);
3003
+ align-items: center;
2937
3004
  }
2938
3005
 
2939
- .muka-controlbar--justify-center .muka-controlbar__content {
3006
+ /* ─── Container (the bar itself) ──────────────────────── */
3007
+
3008
+ .muka-topbar__container {
3009
+ position: relative;
3010
+ display: var(--tb-container-display);
3011
+ grid-template-columns: 1fr auto 1fr;
3012
+ align-items: center;
3013
+ min-height: var(--tb-height);
3014
+ padding: var(--tb-pad-y) var(--tb-pad);
3015
+ }
3016
+
3017
+ /* Inset content on iPhone landscape with notch / iPad with curved corners. */
3018
+ .muka-topbar:not(.muka-topbar--no-safe-area) .muka-topbar__container {
3019
+ padding-left: max(var(--tb-pad), env(safe-area-inset-left));
3020
+ padding-right: max(var(--tb-pad), env(safe-area-inset-right));
3021
+ }
3022
+
3023
+ /* ─── Leading slot ────────────────────────────────────── */
3024
+
3025
+ .muka-topbar__leading {
3026
+ grid-column: 1;
3027
+ justify-self: start;
3028
+ flex-shrink: 0;
3029
+ /* Text actions keep their width; the title is what truncates. */
3030
+ white-space: nowrap;
3031
+ z-index: 1;
3032
+ }
3033
+
3034
+ /* Large tier with a breadcrumb replaces the back button with the breadcrumb. */
3035
+ @media (min-width: 1024px) {
3036
+ .muka-topbar:not([data-size]):not([data-max-size='md']):has(.muka-topbar__breadcrumb) .muka-topbar__leading {
3037
+ display: none;
3038
+ }
3039
+ }
3040
+
3041
+ .muka-topbar[data-size='lg']:has(.muka-topbar__breadcrumb) .muka-topbar__leading {
3042
+ display: none;
3043
+ }
3044
+
3045
+ /* ─── Heading (breadcrumb + title) ────────────────────── */
3046
+
3047
+ /* Base/sm/md: transparent wrapper so the title is the center grid item and
3048
+ the breadcrumb stays hidden. */
3049
+ .muka-topbar__heading {
3050
+ display: contents;
3051
+ }
3052
+
3053
+ /* Large tier: a tight column with the breadcrumb stacked above the title. */
3054
+ @media (min-width: 1024px) {
3055
+ .muka-topbar:not([data-size]):not([data-max-size='md']) .muka-topbar__heading {
3056
+ display: flex;
3057
+ flex-direction: column;
3058
+ justify-content: center;
3059
+ gap: var(--spacing-1);
3060
+ flex: 1 1 0%;
3061
+ min-width: 0;
3062
+ }
3063
+ }
3064
+
3065
+ .muka-topbar[data-size='lg'] .muka-topbar__heading {
3066
+ display: flex;
3067
+ flex-direction: column;
2940
3068
  justify-content: center;
3069
+ gap: var(--spacing-1);
3070
+ flex: 1 1 0%;
3071
+ min-width: 0;
2941
3072
  }
2942
3073
 
2943
- .muka-controlbar--justify-end .muka-controlbar__content {
2944
- justify-content: flex-end;
3074
+ /* ─── Title ───────────────────────────────────────────── */
3075
+
3076
+ .muka-topbar__title {
3077
+ grid-column: 2;
3078
+ min-width: 0;
3079
+ overflow: hidden;
3080
+ text-overflow: ellipsis;
3081
+ white-space: nowrap;
3082
+ text-align: var(--tb-title-align);
3083
+ color: var(--topbar-color-foreground);
3084
+ font-family: var(--tb-title-font-family);
3085
+ font-weight: var(--tb-title-font-weight);
3086
+ font-size: var(--tb-title-font-size);
3087
+ line-height: var(--tb-title-line-height);
3088
+ letter-spacing: var(--tb-title-letter-spacing);
3089
+ margin: 0;
2945
3090
  }
2946
3091
 
2947
- .muka-controlbar--justify-between .muka-controlbar__content {
2948
- justify-content: space-between;
3092
+ /* ─── Trailing slot ───────────────────────────────────── */
3093
+
3094
+ .muka-topbar__trailing {
3095
+ grid-column: 3;
3096
+ justify-self: end;
3097
+ display: flex;
3098
+ align-items: center;
3099
+ margin-left: auto;
3100
+ flex-shrink: 0;
3101
+ white-space: nowrap;
3102
+ z-index: 1;
3103
+ }
3104
+
3105
+ .muka-topbar__trailing-action {
3106
+ flex-shrink: 0;
2949
3107
  }
2950
3108
 
3109
+ /* ─── Icon-only actions: md in the small tier ────────── */
2951
3110
 
2952
- /* TopBar */
3111
+ /* Below 768px (the small tier), `lg` icon-only action buttons in the
3112
+ leading/trailing slots render at the `md` button size (40px). The medium and
3113
+ large tiers keep `lg` (48px), per the TopBar design. Scoped to the action
3114
+ slots so ControlBar buttons are unaffected. */
3115
+ @media (max-width: 767.98px) {
3116
+ .muka-topbar:not([data-size]) :is(.muka-topbar__leading, .muka-topbar__trailing-action) .muka-button--icon-only.muka-button--lg {
3117
+ width: 40px;
3118
+ min-height: 40px;
3119
+ border-radius: var(--button-radius-md);
3120
+ }
3121
+
3122
+ .muka-topbar:not([data-size]) :is(.muka-topbar__leading, .muka-topbar__trailing-action) .muka-button--icon-only.muka-button--lg .muka-button__icon {
3123
+ width: var(--button-icon-md);
3124
+ height: var(--button-icon-md);
3125
+ }
3126
+ }
3127
+
3128
+ .muka-topbar[data-size='sm'] :is(.muka-topbar__leading, .muka-topbar__trailing-action) .muka-button--icon-only.muka-button--lg {
3129
+ width: 40px;
3130
+ min-height: 40px;
3131
+ border-radius: var(--button-radius-md);
3132
+ }
3133
+
3134
+ .muka-topbar[data-size='sm'] :is(.muka-topbar__leading, .muka-topbar__trailing-action) .muka-button--icon-only.muka-button--lg .muka-button__icon {
3135
+ width: var(--button-icon-md);
3136
+ height: var(--button-icon-md);
3137
+ }
3138
+
3139
+ /* ─── ControlBar slot ────────────────────────────────── */
3140
+
3141
+ .muka-topbar__controlbar {
3142
+ width: 100%;
3143
+ }
3144
+
3145
+
3146
+ /* ControlBar */
2953
3147
  /* ControlBar Component Styles */
2954
3148
 
2955
3149
  /*
@@ -3262,34 +3456,36 @@ body {
3262
3456
  z-index: 9999;
3263
3457
  }
3264
3458
 
3459
+ /* Offsets clear the status bar, home indicator and landscape notch on a device
3460
+ that has them (env() is 0 elsewhere). */
3265
3461
  .muka-toast--top-right {
3266
- top: var(--spacing-4);
3267
- right: var(--spacing-4);
3462
+ top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
3463
+ right: max(var(--spacing-4), env(safe-area-inset-right, 0px));
3268
3464
  }
3269
3465
 
3270
3466
  .muka-toast--top-left {
3271
- top: var(--spacing-4);
3272
- left: var(--spacing-4);
3467
+ top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
3468
+ left: max(var(--spacing-4), env(safe-area-inset-left, 0px));
3273
3469
  }
3274
3470
 
3275
3471
  .muka-toast--top-center {
3276
- top: var(--spacing-4);
3472
+ top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
3277
3473
  left: 50%;
3278
3474
  transform: translateX(-50%);
3279
3475
  }
3280
3476
 
3281
3477
  .muka-toast--bottom-right {
3282
- bottom: var(--spacing-4);
3283
- right: var(--spacing-4);
3478
+ bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
3479
+ right: max(var(--spacing-4), env(safe-area-inset-right, 0px));
3284
3480
  }
3285
3481
 
3286
3482
  .muka-toast--bottom-left {
3287
- bottom: var(--spacing-4);
3288
- left: var(--spacing-4);
3483
+ bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
3484
+ left: max(var(--spacing-4), env(safe-area-inset-left, 0px));
3289
3485
  }
3290
3486
 
3291
3487
  .muka-toast--bottom-center {
3292
- bottom: var(--spacing-4);
3488
+ bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
3293
3489
  left: 50%;
3294
3490
  transform: translateX(-50%);
3295
3491
  }
@@ -3413,795 +3609,795 @@ body {
3413
3609
  }
3414
3610
 
3415
3611
 
3416
- /* Tile */
3417
- /* Tile Component Styles - Using Muka Design Tokens */
3418
-
3419
- /* ─── Base ────────────────────────────────────────────── */
3612
+ /* Thumbnail */
3613
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
3420
3614
 
3421
- .muka-tile {
3422
- display: flex;
3423
- color: var(--color-text-default-default);
3615
+ .muka-thumbnail {
3616
+ position: relative;
3617
+ flex-shrink: 0;
3424
3618
  }
3425
3619
 
3426
- .muka-tile--interactive {
3427
- cursor: pointer;
3428
- user-select: none;
3620
+ /* The frame carries the border, background and shape clip. Keeping it separate
3621
+ from the root lets the remove (×) button sit outside the clip (needed for the
3622
+ circular/ellipse shape, whose corners would otherwise clip the button). */
3623
+ .muka-thumbnail__frame {
3624
+ position: absolute;
3625
+ inset: 0;
3626
+ overflow: hidden;
3627
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3628
+ border-radius: var(--border-radius-lg);
3629
+ background-color: var(--color-surface-level1);
3429
3630
  }
3430
3631
 
3431
- .muka-tile--interactive:focus-visible {
3432
- outline: 2px solid var(--color-border-focus);
3433
- outline-offset: 2px;
3434
- border-radius: var(--border-radius-lg);
3632
+ /* ─── Shapes ──────────────────────────────────────────── */
3633
+ .muka-thumbnail--4-3 {
3634
+ width: 160px;
3635
+ height: 120px;
3435
3636
  }
3436
3637
 
3437
- /* ─── Image position variants ─────────────────────────── */
3638
+ .muka-thumbnail--1-1 {
3639
+ width: 120px;
3640
+ height: 120px;
3641
+ }
3438
3642
 
3439
- .muka-tile--image-top {
3440
- flex-direction: column;
3643
+ .muka-thumbnail--ellipse {
3644
+ width: 120px;
3645
+ height: 120px;
3441
3646
  }
3442
3647
 
3443
- .muka-tile--image-left {
3444
- flex-direction: row;
3648
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3649
+ .muka-thumbnail--fluid {
3650
+ width: 100%;
3651
+ height: auto;
3652
+ aspect-ratio: 1 / 1;
3445
3653
  }
3446
3654
 
3447
- .muka-tile--image-right {
3448
- flex-direction: row;
3655
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3656
+ aspect-ratio: 4 / 3;
3449
3657
  }
3450
3658
 
3451
- /* ─── Gap by size (top) ───────────────────────────────── */
3659
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
3660
+ border-radius: var(--border-radius-full);
3661
+ }
3452
3662
 
3453
- .muka-tile--image-top.muka-tile--lg {
3454
- gap: var(--spacing-6);
3663
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3664
+ interactive hover zoom has a clean origin. */
3665
+ .muka-thumbnail__image {
3666
+ position: absolute;
3667
+ inset: 0;
3668
+ width: 100%;
3669
+ height: 100%;
3670
+ object-fit: cover;
3671
+ display: block;
3672
+ transform-origin: center;
3673
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3674
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3455
3675
  }
3456
3676
 
3457
- .muka-tile--image-top.muka-tile--md {
3458
- gap: var(--spacing-6);
3459
- width: 320px;
3677
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
3678
+ .muka-thumbnail__trigger {
3679
+ position: absolute;
3680
+ inset: 0;
3681
+ padding: 0;
3682
+ border: 0;
3683
+ background: none;
3684
+ cursor: pointer;
3685
+ overflow: hidden;
3460
3686
  }
3461
3687
 
3462
- .muka-tile--image-top.muka-tile--sm {
3463
- gap: var(--spacing-4);
3464
- min-width: 120px;
3688
+ .muka-thumbnail__trigger:focus-visible {
3689
+ outline: 2px solid var(--color-border-focus);
3690
+ outline-offset: -2px;
3465
3691
  }
3466
3692
 
3467
- /* ─── Gap by size (left/right) ────────────────────────── */
3693
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3694
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3695
+ transform: scale(1.05);
3696
+ }
3468
3697
 
3469
- .muka-tile--image-left.muka-tile--lg,
3470
- .muka-tile--image-right.muka-tile--lg {
3471
- gap: var(--spacing-6);
3698
+ /* ─── Loading overlay + progress donut ────────────────── */
3699
+ .muka-thumbnail__overlay {
3700
+ position: absolute;
3701
+ inset: 0;
3702
+ display: flex;
3472
3703
  align-items: center;
3704
+ justify-content: center;
3705
+ background-color: var(--dialog-color-backdrop);
3473
3706
  }
3474
3707
 
3475
- .muka-tile--image-left.muka-tile--md,
3476
- .muka-tile--image-right.muka-tile--md {
3477
- gap: var(--spacing-6);
3478
- align-items: center;
3708
+ .muka-thumbnail__progress {
3709
+ width: 40px;
3710
+ height: 40px;
3479
3711
  }
3480
3712
 
3481
- .muka-tile--image-left.muka-tile--sm,
3482
- .muka-tile--image-right.muka-tile--sm {
3483
- gap: var(--spacing-4);
3484
- align-items: flex-start;
3713
+ /* ─── Error / corrupt state ───────────────────────────── */
3714
+ .muka-thumbnail--error .muka-thumbnail__frame {
3715
+ background-color: var(--alias-color-state-error-muted);
3716
+ border-color: var(--alias-color-state-error-default);
3485
3717
  }
3486
3718
 
3487
- /* ─── Photos container ────────────────────────────────── */
3488
-
3489
- .muka-tile__photos {
3490
- position: relative;
3491
- flex-shrink: 0;
3492
- overflow: hidden;
3719
+ .muka-thumbnail__error {
3720
+ position: absolute;
3721
+ inset: 0;
3493
3722
  display: flex;
3494
3723
  flex-direction: column;
3495
- isolation: isolate;
3724
+ align-items: center;
3725
+ justify-content: center;
3726
+ gap: var(--spacing-2);
3727
+ padding: var(--spacing-3);
3728
+ text-align: center;
3496
3729
  }
3497
3730
 
3498
- /* Photos border radius by size */
3499
- .muka-tile--lg .muka-tile__photos,
3500
- .muka-tile--md .muka-tile__photos {
3501
- border-radius: var(--border-radius-lg);
3731
+ .muka-thumbnail__error-icon {
3732
+ color: var(--alert-color-error-accent);
3502
3733
  }
3503
3734
 
3504
- .muka-tile--sm .muka-tile__photos {
3505
- border-radius: var(--border-radius-md);
3735
+ .muka-thumbnail__caption {
3736
+ max-width: 100%;
3737
+ overflow: hidden;
3738
+ text-overflow: ellipsis;
3739
+ white-space: nowrap;
3740
+ color: var(--alert-color-error-accent);
3741
+ font-family: var(--text-body-sm-regular-fontFamily);
3742
+ font-size: var(--text-body-sm-regular-fontSize);
3743
+ font-weight: var(--text-body-sm-regular-fontWeight);
3744
+ line-height: var(--text-body-sm-regular-lineHeight);
3506
3745
  }
3507
3746
 
3508
- /* Photos sizing: top layout */
3509
- .muka-tile--image-top .muka-tile__photos {
3510
- width: 100%;
3747
+ /* ─── Remove (×) button ───────────────────────────────── */
3748
+ .muka-thumbnail__remove {
3749
+ position: absolute;
3750
+ top: var(--spacing-2);
3751
+ right: var(--spacing-2);
3752
+ display: flex;
3753
+ align-items: center;
3754
+ justify-content: center;
3755
+ width: var(--size-2xl);
3756
+ height: var(--size-2xl);
3757
+ padding: 0;
3758
+ color: var(--button-color-tertiary-foreground-default);
3759
+ background-color: var(--button-color-tertiary-background-default);
3760
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3761
+ border-radius: var(--border-radius-lg);
3762
+ cursor: pointer;
3763
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3764
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
3511
3765
  }
3512
3766
 
3513
- /* Photos sizing: left/right large */
3514
- .muka-tile--image-left.muka-tile--lg .muka-tile__photos,
3515
- .muka-tile--image-right.muka-tile--lg .muka-tile__photos {
3516
- width: 520px;
3767
+ .muka-thumbnail__remove:hover {
3768
+ color: var(--button-color-tertiary-foreground-hover);
3769
+ background-color: var(--button-color-tertiary-background-hover);
3770
+ border-color: var(--button-color-tertiary-border-hover);
3517
3771
  }
3518
3772
 
3519
- /* Photos sizing: left/right medium */
3520
- .muka-tile--image-left.muka-tile--md .muka-tile__photos,
3521
- .muka-tile--image-right.muka-tile--md .muka-tile__photos {
3522
- width: 320px;
3773
+ .muka-thumbnail__remove:active {
3774
+ color: var(--button-color-tertiary-foreground-pressed);
3775
+ background-color: var(--button-color-tertiary-background-pressed);
3776
+ border-color: var(--button-color-tertiary-border-pressed);
3523
3777
  }
3524
3778
 
3525
- /* Photos sizing: left/right small (single 80x80 thumbnail) */
3526
- .muka-tile--image-left.muka-tile--sm .muka-tile__photos,
3527
- .muka-tile--image-right.muka-tile--sm .muka-tile__photos {
3528
- width: 80px;
3529
- align-self: stretch;
3779
+ .muka-thumbnail__remove:focus-visible {
3780
+ outline: 2px solid var(--color-border-focus);
3781
+ outline-offset: 2px;
3530
3782
  }
3531
3783
 
3532
- /* ─── Main photo ──────────────────────────────────────── */
3784
+ /* ─── Reduced motion ──────────────────────────────────── */
3785
+ @media (prefers-reduced-motion: reduce) {
3786
+ .muka-thumbnail__image,
3787
+ .muka-thumbnail__remove {
3788
+ transition: none;
3789
+ }
3533
3790
 
3534
- .muka-tile__photo-main {
3535
- position: relative;
3536
- width: 100%;
3537
- overflow: hidden;
3538
- flex-shrink: 0;
3791
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3792
+ transform: none;
3793
+ }
3539
3794
  }
3540
3795
 
3541
- /* 16:9 aspect for lg and md */
3542
- .muka-tile--lg .muka-tile__photo-main,
3543
- .muka-tile--md .muka-tile__photo-main {
3544
- aspect-ratio: 1280 / 720;
3545
- }
3546
3796
 
3547
- /* 1:1 aspect for top + sm */
3548
- .muka-tile--image-top.muka-tile--sm .muka-tile__photo-main {
3549
- aspect-ratio: 1 / 1;
3550
- }
3797
+ /* Textarea */
3798
+ /* Textarea Component Styles - Using Muka Design Tokens */
3551
3799
 
3552
- /* Fixed size for left/right + sm */
3553
- .muka-tile--image-left.muka-tile--sm .muka-tile__photo-main,
3554
- .muka-tile--image-right.muka-tile--sm .muka-tile__photo-main {
3555
- width: 80px;
3556
- height: 80px;
3557
- aspect-ratio: auto;
3800
+ .muka-textarea {
3801
+ display: inline-flex;
3802
+ flex-direction: column;
3803
+ gap: var(--spacing-2);
3558
3804
  }
3559
3805
 
3560
- .muka-tile__photo-main img {
3561
- width: 100%;
3562
- height: 100%;
3563
- object-fit: cover;
3564
- display: block;
3806
+ /* Label */
3807
+ .muka-textarea__label {
3808
+ color: var(--color-text-default-default);
3809
+ cursor: pointer;
3565
3810
  }
3566
3811
 
3567
- /* ─── Favourite overlay ───────────────────────────────── */
3568
-
3569
- .muka-tile__favourite {
3570
- position: absolute;
3571
- z-index: 3;
3812
+ .muka-textarea__label--sm {
3813
+ font-family: var(--text-label-sm-semibold-fontFamily);
3814
+ font-weight: var(--text-label-sm-semibold-fontWeight);
3815
+ font-size: var(--text-label-sm-semibold-fontSize);
3816
+ line-height: var(--text-label-sm-semibold-lineHeight);
3572
3817
  }
3573
3818
 
3574
- .muka-tile--lg .muka-tile__favourite,
3575
- .muka-tile--md .muka-tile__favourite {
3576
- top: var(--spacing-4);
3577
- right: var(--spacing-4);
3819
+ .muka-textarea__label--md {
3820
+ font-family: var(--text-label-md-semibold-fontFamily);
3821
+ font-weight: var(--text-label-md-semibold-fontWeight);
3822
+ font-size: var(--text-label-md-semibold-fontSize);
3823
+ line-height: var(--text-label-md-semibold-lineHeight);
3578
3824
  }
3579
3825
 
3580
- .muka-tile--image-top.muka-tile--sm .muka-tile__favourite {
3581
- top: var(--spacing-1);
3582
- right: var(--spacing-1);
3826
+ .muka-textarea__label--lg {
3827
+ font-family: var(--text-label-lg-semibold-fontFamily);
3828
+ font-weight: var(--text-label-lg-semibold-fontWeight);
3829
+ font-size: var(--text-label-lg-semibold-fontSize);
3830
+ line-height: var(--text-label-lg-semibold-lineHeight);
3583
3831
  }
3584
3832
 
3585
- /* ─── Thumbnails ──────────────────────────────────────── */
3833
+ .muka-textarea__required {
3834
+ color: var(--color-state-error-default);
3835
+ }
3586
3836
 
3587
- .muka-tile__thumbnails {
3837
+ /* Field container */
3838
+ .muka-textarea__field {
3588
3839
  display: flex;
3589
- gap: 2px;
3590
- overflow: hidden;
3591
- flex-shrink: 0;
3592
- height: 80px;
3840
+ background-color: var(--input-field-color-default-background);
3841
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
3842
+ border-radius: var(--input-field-radius-md);
3843
+ padding: var(--input-field-padding-y) var(--input-field-padding-x);
3844
+ transition: border-color 0.2s ease, background-color 0.2s ease;
3845
+ box-sizing: border-box;
3593
3846
  }
3594
3847
 
3595
- .muka-tile__thumbnail {
3596
- width: 80px;
3597
- height: 80px;
3598
- flex-shrink: 0;
3599
- overflow: hidden;
3848
+ .muka-textarea__field--sm {
3849
+ min-height: var(--input-textarea-height-sm);
3850
+ border-radius: var(--input-field-radius-sm);
3600
3851
  }
3601
3852
 
3602
- .muka-tile__thumbnail img {
3603
- width: 100%;
3604
- height: 100%;
3605
- object-fit: cover;
3606
- display: block;
3853
+ .muka-textarea__field--md {
3854
+ min-height: var(--input-textarea-height-default);
3855
+ border-radius: var(--input-field-radius-md);
3607
3856
  }
3608
3857
 
3609
- /* Gap between main photo and thumbnails */
3610
- .muka-tile__photos > .muka-tile__photo-main + .muka-tile__thumbnails {
3611
- margin-top: 2px;
3858
+ .muka-textarea__field--lg {
3859
+ min-height: var(--input-textarea-height-lg);
3860
+ border-radius: var(--input-field-radius-lg);
3612
3861
  }
3613
3862
 
3614
- /* ─── Content section ─────────────────────────────────── */
3615
-
3616
- .muka-tile__content {
3617
- display: flex;
3618
- flex-direction: column;
3619
- flex: 1;
3620
- min-width: 0;
3863
+ /* Focus state */
3864
+ .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
3865
+ border-width: var(--border-width-bold);
3866
+ border-color: var(--input-field-color-focus-border);
3867
+ background-color: var(--input-field-color-focus-background);
3868
+ padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
3621
3869
  }
3622
3870
 
3623
- /* Top layout: content has horizontal padding */
3624
- .muka-tile--image-top.muka-tile--lg .muka-tile__content {
3625
- padding: 0 var(--spacing-3);
3626
- gap: var(--spacing-1);
3871
+ /* Error state */
3872
+ .muka-textarea__field--error:not(.muka-textarea__field--disabled) {
3873
+ border-width: var(--border-width-bold);
3874
+ border-color: var(--input-field-color-error-border);
3875
+ background-color: var(--input-field-color-error-background);
3876
+ padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
3627
3877
  }
3628
3878
 
3629
- .muka-tile--image-top.muka-tile--md .muka-tile__content {
3630
- padding: 0 var(--spacing-3);
3631
- gap: var(--spacing-2);
3879
+ /* Disabled state */
3880
+ .muka-textarea__field--disabled {
3881
+ background-color: var(--input-field-color-disabled-background);
3882
+ border-color: var(--input-field-color-disabled-border);
3883
+ cursor: not-allowed;
3632
3884
  }
3633
3885
 
3634
- .muka-tile--image-top.muka-tile--sm .muka-tile__content {
3635
- gap: var(--spacing-2);
3886
+ /* Native textarea */
3887
+ .muka-textarea__native {
3888
+ flex: 1;
3889
+ border: none;
3890
+ outline: none;
3891
+ background: transparent;
3892
+ color: var(--input-field-color-default-foreground);
3893
+ font-family: var(--text-input-md-fontFamily);
3894
+ font-weight: var(--text-input-md-fontWeight);
3895
+ font-size: var(--text-input-md-fontSize);
3896
+ line-height: var(--text-input-md-lineHeight);
3897
+ padding: 0;
3898
+ width: 100%;
3899
+ min-width: 0;
3636
3900
  }
3637
3901
 
3638
- /* Left/right layout: content grows to fill space */
3639
- .muka-tile--image-left .muka-tile__content,
3640
- .muka-tile--image-right .muka-tile__content {
3641
- gap: var(--spacing-3);
3902
+ .muka-textarea__field--sm .muka-textarea__native {
3903
+ font-family: var(--text-input-sm-fontFamily);
3904
+ font-weight: var(--text-input-sm-fontWeight);
3905
+ font-size: var(--text-input-sm-fontSize);
3906
+ line-height: var(--text-input-sm-lineHeight);
3642
3907
  }
3643
3908
 
3644
- .muka-tile--image-left.muka-tile--lg .muka-tile__content,
3645
- .muka-tile--image-right.muka-tile--lg .muka-tile__content {
3646
- padding: 0 var(--spacing-3);
3909
+ .muka-textarea__field--lg .muka-textarea__native {
3910
+ font-family: var(--text-input-lg-fontFamily);
3911
+ font-weight: var(--text-input-lg-fontWeight);
3912
+ font-size: var(--text-input-lg-fontSize);
3913
+ line-height: var(--text-input-lg-lineHeight);
3647
3914
  }
3648
3915
 
3649
- .muka-tile--image-left.muka-tile--md .muka-tile__content,
3650
- .muka-tile--image-right.muka-tile--md .muka-tile__content {
3651
- padding: var(--spacing-2) var(--spacing-3);
3916
+ .muka-textarea__native::placeholder {
3917
+ color: var(--color-text-subtle-default);
3652
3918
  }
3653
3919
 
3654
- .muka-tile--image-left.muka-tile--sm .muka-tile__content,
3655
- .muka-tile--image-right.muka-tile--sm .muka-tile__content {
3656
- gap: var(--spacing-2);
3920
+ .muka-textarea__field--disabled .muka-textarea__native {
3921
+ color: var(--input-field-color-disabled-foreground);
3922
+ cursor: not-allowed;
3657
3923
  }
3658
3924
 
3659
- /* ─── Header (heading row + price) ────────────────────── */
3660
-
3661
- .muka-tile__header {
3925
+ /* Footer (helper/error + count) */
3926
+ .muka-textarea__footer {
3662
3927
  display: flex;
3928
+ justify-content: space-between;
3663
3929
  align-items: flex-start;
3664
- gap: var(--spacing-4);
3665
- }
3666
-
3667
- /* Small horizontal: row with text and action */
3668
- .muka-tile--sm:not(.muka-tile--image-top) .muka-tile__header {
3669
- gap: var(--spacing-2);
3670
- align-items: center;
3671
- padding-top: var(--spacing-1);
3672
- }
3673
-
3674
- /* ─── Text group ──────────────────────────────────────── */
3675
-
3676
- .muka-tile__text {
3677
- display: flex;
3678
- flex-direction: column;
3679
- flex: 1;
3680
- min-width: 0;
3681
3930
  gap: var(--spacing-2);
3682
3931
  }
3683
3932
 
3684
- /* ─── Heading typography ──────────────────────────────── */
3685
-
3686
- .muka-tile__heading {
3933
+ .muka-textarea__helper {
3934
+ font-family: var(--text-label-sm-regular-fontFamily);
3935
+ font-weight: var(--text-label-sm-regular-fontWeight);
3936
+ font-size: var(--text-label-sm-regular-fontSize);
3937
+ line-height: var(--text-label-sm-regular-lineHeight);
3938
+ color: var(--color-text-subtle-default);
3687
3939
  margin: 0;
3688
3940
  }
3689
3941
 
3690
- .muka-tile--lg .muka-tile__heading {
3691
- font-family: var(--text-label-2xl-semibold-fontFamily);
3692
- font-weight: var(--text-label-2xl-semibold-fontWeight);
3693
- font-size: var(--text-label-2xl-semibold-fontSize);
3694
- line-height: var(--text-label-2xl-semibold-lineHeight);
3695
- color: var(--color-text-default-default);
3696
- }
3697
-
3698
- .muka-tile--md .muka-tile__heading {
3699
- font-family: var(--text-label-xl-semibold-fontFamily);
3700
- font-weight: var(--text-label-xl-semibold-fontWeight);
3701
- font-size: var(--text-label-xl-semibold-fontSize);
3702
- line-height: var(--text-label-xl-semibold-lineHeight);
3703
- color: var(--color-text-default-default);
3704
- }
3705
-
3706
- .muka-tile--sm .muka-tile__heading {
3707
- font-family: var(--text-label-lg-bold-fontFamily);
3708
- font-weight: var(--text-label-lg-bold-fontWeight);
3709
- font-size: var(--text-label-lg-bold-fontSize);
3710
- line-height: var(--text-label-lg-bold-lineHeight);
3711
- color: var(--color-text-default-default);
3712
- }
3713
-
3714
- /* ─── Subheading typography ───────────────────────────── */
3715
-
3716
- .muka-tile__subheading {
3942
+ .muka-textarea__error {
3943
+ font-family: var(--text-label-sm-regular-fontFamily);
3944
+ font-weight: var(--text-label-sm-regular-fontWeight);
3945
+ font-size: var(--text-label-sm-regular-fontSize);
3946
+ line-height: var(--text-label-sm-regular-lineHeight);
3947
+ color: var(--color-state-error-default);
3717
3948
  margin: 0;
3718
- color: var(--color-text-subtle-default);
3719
3949
  }
3720
3950
 
3721
- .muka-tile--lg .muka-tile__subheading {
3722
- font-family: var(--text-subheading-md-fontFamily);
3723
- font-weight: var(--text-subheading-md-fontWeight);
3724
- font-size: var(--text-subheading-md-fontSize);
3725
- line-height: var(--text-subheading-md-lineHeight);
3951
+ .muka-textarea__count {
3952
+ font-family: var(--text-label-sm-regular-fontFamily);
3953
+ font-weight: var(--text-label-sm-regular-fontWeight);
3954
+ font-size: var(--text-label-sm-regular-fontSize);
3955
+ line-height: var(--text-label-sm-regular-lineHeight);
3956
+ color: var(--color-text-subtle-default);
3957
+ margin-left: auto;
3726
3958
  }
3727
3959
 
3728
- .muka-tile--md .muka-tile__subheading,
3729
- .muka-tile--sm .muka-tile__subheading {
3730
- font-family: var(--text-subheading-sm-fontFamily);
3731
- font-weight: var(--text-subheading-sm-fontWeight);
3732
- font-size: var(--text-subheading-sm-fontSize);
3733
- line-height: var(--text-subheading-sm-lineHeight);
3734
- }
3735
3960
 
3736
- /* ─── Description typography ──────────────────────────── */
3961
+ /* TextLink */
3962
+ /* TextLink Component Styles - Using Muka Design Tokens */
3737
3963
 
3738
- .muka-tile__description {
3739
- margin: 0;
3740
- color: var(--color-text-default-default);
3964
+ .muka-text-link {
3965
+ display: inline;
3966
+ cursor: pointer;
3967
+ text-decoration: underline;
3968
+ /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
3969
+ text-underline-offset: 0.2em;
3970
+ text-decoration-thickness: from-font;
3971
+ /* Rounds the focus ring's corners; the link itself has no visible box. */
3972
+ border-radius: var(--border-radius-sm);
3973
+ transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
3741
3974
  }
3742
3975
 
3743
- .muka-tile--lg .muka-tile__description {
3744
- font-family: var(--text-body-lg-regular-fontFamily);
3745
- font-weight: var(--text-body-lg-regular-fontWeight);
3746
- font-size: var(--text-body-lg-regular-fontSize);
3747
- line-height: var(--text-body-lg-regular-lineHeight);
3976
+ /* ─── Sizes ───────────────────────────────────────────────
3977
+ Mirrors the body text scale so a link matches the copy it sits in. */
3978
+ .muka-text-link--sm {
3979
+ font-family: var(--text-body-sm-regular-fontFamily);
3980
+ font-weight: var(--text-body-sm-regular-fontWeight);
3981
+ font-size: var(--text-body-sm-regular-fontSize);
3982
+ line-height: var(--text-body-sm-regular-lineHeight);
3748
3983
  }
3749
3984
 
3750
- .muka-tile--md .muka-tile__description,
3751
- .muka-tile--sm .muka-tile__description {
3985
+ .muka-text-link--base {
3752
3986
  font-family: var(--text-body-base-regular-fontFamily);
3753
3987
  font-weight: var(--text-body-base-regular-fontWeight);
3754
3988
  font-size: var(--text-body-base-regular-fontSize);
3755
3989
  line-height: var(--text-body-base-regular-lineHeight);
3756
3990
  }
3757
3991
 
3758
- /* Description overflow for medium */
3759
- .muka-tile--md .muka-tile__description {
3760
- overflow: hidden;
3761
- text-overflow: ellipsis;
3992
+ .muka-text-link--lg {
3993
+ font-family: var(--text-body-lg-regular-fontFamily);
3994
+ font-weight: var(--text-body-lg-regular-fontWeight);
3995
+ font-size: var(--text-body-lg-regular-fontSize);
3996
+ line-height: var(--text-body-lg-regular-lineHeight);
3762
3997
  }
3763
3998
 
3764
- /* ─── Price slot ──────────────────────────────────────── */
3765
-
3766
- .muka-tile__price {
3767
- flex-shrink: 0;
3999
+ /* ─── Variant: default (accent) ───────────────────────────
4000
+ Visited repeats the default colour on purpose: the design treats visited and
4001
+ default the same, and pinning it stops the browser's purple from showing. */
4002
+ .muka-text-link--default,
4003
+ .muka-text-link--default:visited {
4004
+ color: var(--color-text-action-default);
3768
4005
  }
3769
4006
 
3770
- /* ─── Action slot ─────────────────────────────────────── */
3771
-
3772
- .muka-tile__action {
3773
- flex-shrink: 0;
4007
+ .muka-text-link--default:hover,
4008
+ .muka-text-link--default:focus-visible {
4009
+ color: var(--color-text-action-hover);
3774
4010
  }
3775
4011
 
3776
-
3777
- /* Thumbnail */
3778
- /* Thumbnail Component Styles - Using Muka Design Tokens */
3779
-
3780
- .muka-thumbnail {
3781
- position: relative;
3782
- flex-shrink: 0;
4012
+ .muka-text-link--default:active {
4013
+ color: var(--color-text-action-pressed);
3783
4014
  }
3784
4015
 
3785
- /* The frame carries the border, background and shape clip. Keeping it separate
3786
- from the root lets the remove (×) button sit outside the clip (needed for the
3787
- circular/ellipse shape, whose corners would otherwise clip the button). */
3788
- .muka-thumbnail__frame {
3789
- position: absolute;
3790
- inset: 0;
3791
- overflow: hidden;
3792
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3793
- border-radius: var(--border-radius-lg);
3794
- background-color: var(--color-surface-level1);
4016
+ /* ─── Variant: subtle (neutral) ───────────────────────────
4017
+ Hover, focus and pressed all darken to the default text colour. */
4018
+ .muka-text-link--subtle,
4019
+ .muka-text-link--subtle:visited {
4020
+ color: var(--color-text-subtle-default);
3795
4021
  }
3796
4022
 
3797
- /* ─── Shapes ──────────────────────────────────────────── */
3798
- .muka-thumbnail--4-3 {
3799
- width: 160px;
3800
- height: 120px;
4023
+ .muka-text-link--subtle:hover,
4024
+ .muka-text-link--subtle:focus-visible,
4025
+ .muka-text-link--subtle:active {
4026
+ color: var(--color-text-default-default);
3801
4027
  }
3802
4028
 
3803
- .muka-thumbnail--1-1 {
3804
- width: 120px;
3805
- height: 120px;
4029
+ /* ─── Focus ───────────────────────────────────────────────
4030
+ Same ring as every other focusable Muka component. */
4031
+ .muka-text-link:focus-visible {
4032
+ outline: 2px solid var(--color-border-focus);
4033
+ outline-offset: 2px;
3806
4034
  }
3807
4035
 
3808
- .muka-thumbnail--ellipse {
3809
- width: 120px;
3810
- height: 120px;
4036
+ @media (prefers-reduced-motion: reduce) {
4037
+ .muka-text-link {
4038
+ transition: none;
4039
+ }
3811
4040
  }
3812
4041
 
3813
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3814
- .muka-thumbnail--fluid {
3815
- width: 100%;
3816
- height: auto;
3817
- aspect-ratio: 1 / 1;
4042
+
4043
+ /* Tile */
4044
+ /* Tile Component Styles - Using Muka Design Tokens */
4045
+
4046
+ /* ─── Base ────────────────────────────────────────────── */
4047
+
4048
+ .muka-tile {
4049
+ display: flex;
4050
+ color: var(--color-text-default-default);
3818
4051
  }
3819
4052
 
3820
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3821
- aspect-ratio: 4 / 3;
4053
+ .muka-tile--interactive {
4054
+ cursor: pointer;
4055
+ user-select: none;
3822
4056
  }
3823
4057
 
3824
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
3825
- border-radius: var(--border-radius-full);
4058
+ .muka-tile--interactive:focus-visible {
4059
+ outline: 2px solid var(--color-border-focus);
4060
+ outline-offset: 2px;
4061
+ border-radius: var(--border-radius-lg);
3826
4062
  }
3827
4063
 
3828
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3829
- interactive hover zoom has a clean origin. */
3830
- .muka-thumbnail__image {
3831
- position: absolute;
3832
- inset: 0;
3833
- width: 100%;
3834
- height: 100%;
3835
- object-fit: cover;
3836
- display: block;
3837
- transform-origin: center;
3838
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3839
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4064
+ /* ─── Image position variants ─────────────────────────── */
4065
+
4066
+ .muka-tile--image-top {
4067
+ flex-direction: column;
3840
4068
  }
3841
4069
 
3842
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
3843
- .muka-thumbnail__trigger {
3844
- position: absolute;
3845
- inset: 0;
3846
- padding: 0;
3847
- border: 0;
3848
- background: none;
3849
- cursor: pointer;
3850
- overflow: hidden;
4070
+ .muka-tile--image-left {
4071
+ flex-direction: row;
3851
4072
  }
3852
4073
 
3853
- .muka-thumbnail__trigger:focus-visible {
3854
- outline: 2px solid var(--color-border-focus);
3855
- outline-offset: -2px;
4074
+ .muka-tile--image-right {
4075
+ flex-direction: row;
3856
4076
  }
3857
4077
 
3858
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3859
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3860
- transform: scale(1.05);
4078
+ /* ─── Gap by size (top) ───────────────────────────────── */
4079
+
4080
+ .muka-tile--image-top.muka-tile--lg {
4081
+ gap: var(--spacing-6);
3861
4082
  }
3862
4083
 
3863
- /* ─── Loading overlay + progress donut ────────────────── */
3864
- .muka-thumbnail__overlay {
3865
- position: absolute;
3866
- inset: 0;
3867
- display: flex;
3868
- align-items: center;
3869
- justify-content: center;
3870
- background-color: var(--dialog-color-backdrop);
4084
+ .muka-tile--image-top.muka-tile--md {
4085
+ gap: var(--spacing-6);
4086
+ width: 320px;
3871
4087
  }
3872
4088
 
3873
- .muka-thumbnail__progress {
3874
- width: 40px;
3875
- height: 40px;
4089
+ .muka-tile--image-top.muka-tile--sm {
4090
+ gap: var(--spacing-4);
4091
+ min-width: 120px;
3876
4092
  }
3877
4093
 
3878
- /* ─── Error / corrupt state ───────────────────────────── */
3879
- .muka-thumbnail--error .muka-thumbnail__frame {
3880
- background-color: var(--alias-color-state-error-muted);
3881
- border-color: var(--alias-color-state-error-default);
4094
+ /* ─── Gap by size (left/right) ────────────────────────── */
4095
+
4096
+ .muka-tile--image-left.muka-tile--lg,
4097
+ .muka-tile--image-right.muka-tile--lg {
4098
+ gap: var(--spacing-6);
4099
+ align-items: center;
3882
4100
  }
3883
4101
 
3884
- .muka-thumbnail__error {
3885
- position: absolute;
3886
- inset: 0;
3887
- display: flex;
3888
- flex-direction: column;
4102
+ .muka-tile--image-left.muka-tile--md,
4103
+ .muka-tile--image-right.muka-tile--md {
4104
+ gap: var(--spacing-6);
3889
4105
  align-items: center;
3890
- justify-content: center;
3891
- gap: var(--spacing-2);
3892
- padding: var(--spacing-3);
3893
- text-align: center;
3894
4106
  }
3895
4107
 
3896
- .muka-thumbnail__error-icon {
3897
- color: var(--alert-color-error-accent);
4108
+ .muka-tile--image-left.muka-tile--sm,
4109
+ .muka-tile--image-right.muka-tile--sm {
4110
+ gap: var(--spacing-4);
4111
+ align-items: flex-start;
3898
4112
  }
3899
4113
 
3900
- .muka-thumbnail__caption {
3901
- max-width: 100%;
4114
+ /* ─── Photos container ────────────────────────────────── */
4115
+
4116
+ .muka-tile__photos {
4117
+ position: relative;
4118
+ flex-shrink: 0;
3902
4119
  overflow: hidden;
3903
- text-overflow: ellipsis;
3904
- white-space: nowrap;
3905
- color: var(--alert-color-error-accent);
3906
- font-family: var(--text-body-sm-regular-fontFamily);
3907
- font-size: var(--text-body-sm-regular-fontSize);
3908
- font-weight: var(--text-body-sm-regular-fontWeight);
3909
- line-height: var(--text-body-sm-regular-lineHeight);
4120
+ display: flex;
4121
+ flex-direction: column;
4122
+ isolation: isolate;
3910
4123
  }
3911
4124
 
3912
- /* ─── Remove (×) button ───────────────────────────────── */
3913
- .muka-thumbnail__remove {
3914
- position: absolute;
3915
- top: var(--spacing-2);
3916
- right: var(--spacing-2);
3917
- display: flex;
3918
- align-items: center;
3919
- justify-content: center;
3920
- width: var(--size-2xl);
3921
- height: var(--size-2xl);
3922
- padding: 0;
3923
- color: var(--button-color-tertiary-foreground-default);
3924
- background-color: var(--button-color-tertiary-background-default);
3925
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4125
+ /* Photos border radius by size */
4126
+ .muka-tile--lg .muka-tile__photos,
4127
+ .muka-tile--md .muka-tile__photos {
3926
4128
  border-radius: var(--border-radius-lg);
3927
- cursor: pointer;
3928
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3929
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
3930
4129
  }
3931
4130
 
3932
- .muka-thumbnail__remove:hover {
3933
- color: var(--button-color-tertiary-foreground-hover);
3934
- background-color: var(--button-color-tertiary-background-hover);
3935
- border-color: var(--button-color-tertiary-border-hover);
4131
+ .muka-tile--sm .muka-tile__photos {
4132
+ border-radius: var(--border-radius-md);
3936
4133
  }
3937
4134
 
3938
- .muka-thumbnail__remove:active {
3939
- color: var(--button-color-tertiary-foreground-pressed);
3940
- background-color: var(--button-color-tertiary-background-pressed);
3941
- border-color: var(--button-color-tertiary-border-pressed);
4135
+ /* Photos sizing: top layout */
4136
+ .muka-tile--image-top .muka-tile__photos {
4137
+ width: 100%;
3942
4138
  }
3943
4139
 
3944
- .muka-thumbnail__remove:focus-visible {
3945
- outline: 2px solid var(--color-border-focus);
3946
- outline-offset: 2px;
4140
+ /* Photos sizing: left/right large */
4141
+ .muka-tile--image-left.muka-tile--lg .muka-tile__photos,
4142
+ .muka-tile--image-right.muka-tile--lg .muka-tile__photos {
4143
+ width: 520px;
3947
4144
  }
3948
4145
 
3949
- /* ─── Reduced motion ──────────────────────────────────── */
3950
- @media (prefers-reduced-motion: reduce) {
3951
- .muka-thumbnail__image,
3952
- .muka-thumbnail__remove {
3953
- transition: none;
3954
- }
4146
+ /* Photos sizing: left/right medium */
4147
+ .muka-tile--image-left.muka-tile--md .muka-tile__photos,
4148
+ .muka-tile--image-right.muka-tile--md .muka-tile__photos {
4149
+ width: 320px;
4150
+ }
3955
4151
 
3956
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3957
- transform: none;
3958
- }
4152
+ /* Photos sizing: left/right small (single 80x80 thumbnail) */
4153
+ .muka-tile--image-left.muka-tile--sm .muka-tile__photos,
4154
+ .muka-tile--image-right.muka-tile--sm .muka-tile__photos {
4155
+ width: 80px;
4156
+ align-self: stretch;
3959
4157
  }
3960
4158
 
4159
+ /* ─── Main photo ──────────────────────────────────────── */
3961
4160
 
3962
- /* Textarea */
3963
- /* Textarea Component Styles - Using Muka Design Tokens */
4161
+ .muka-tile__photo-main {
4162
+ position: relative;
4163
+ width: 100%;
4164
+ overflow: hidden;
4165
+ flex-shrink: 0;
4166
+ }
3964
4167
 
3965
- .muka-textarea {
3966
- display: inline-flex;
3967
- flex-direction: column;
3968
- gap: var(--spacing-2);
4168
+ /* 16:9 aspect for lg and md */
4169
+ .muka-tile--lg .muka-tile__photo-main,
4170
+ .muka-tile--md .muka-tile__photo-main {
4171
+ aspect-ratio: 1280 / 720;
3969
4172
  }
3970
4173
 
3971
- /* Label */
3972
- .muka-textarea__label {
3973
- color: var(--color-text-default-default);
3974
- cursor: pointer;
4174
+ /* 1:1 aspect for top + sm */
4175
+ .muka-tile--image-top.muka-tile--sm .muka-tile__photo-main {
4176
+ aspect-ratio: 1 / 1;
3975
4177
  }
3976
4178
 
3977
- .muka-textarea__label--sm {
3978
- font-family: var(--text-label-sm-semibold-fontFamily);
3979
- font-weight: var(--text-label-sm-semibold-fontWeight);
3980
- font-size: var(--text-label-sm-semibold-fontSize);
3981
- line-height: var(--text-label-sm-semibold-lineHeight);
4179
+ /* Fixed size for left/right + sm */
4180
+ .muka-tile--image-left.muka-tile--sm .muka-tile__photo-main,
4181
+ .muka-tile--image-right.muka-tile--sm .muka-tile__photo-main {
4182
+ width: 80px;
4183
+ height: 80px;
4184
+ aspect-ratio: auto;
3982
4185
  }
3983
4186
 
3984
- .muka-textarea__label--md {
3985
- font-family: var(--text-label-md-semibold-fontFamily);
3986
- font-weight: var(--text-label-md-semibold-fontWeight);
3987
- font-size: var(--text-label-md-semibold-fontSize);
3988
- line-height: var(--text-label-md-semibold-lineHeight);
4187
+ .muka-tile__photo-main img {
4188
+ width: 100%;
4189
+ height: 100%;
4190
+ object-fit: cover;
4191
+ display: block;
3989
4192
  }
3990
4193
 
3991
- .muka-textarea__label--lg {
3992
- font-family: var(--text-label-lg-semibold-fontFamily);
3993
- font-weight: var(--text-label-lg-semibold-fontWeight);
3994
- font-size: var(--text-label-lg-semibold-fontSize);
3995
- line-height: var(--text-label-lg-semibold-lineHeight);
4194
+ /* ─── Favourite overlay ───────────────────────────────── */
4195
+
4196
+ .muka-tile__favourite {
4197
+ position: absolute;
4198
+ z-index: 3;
3996
4199
  }
3997
4200
 
3998
- .muka-textarea__required {
3999
- color: var(--color-state-error-default);
4201
+ .muka-tile--lg .muka-tile__favourite,
4202
+ .muka-tile--md .muka-tile__favourite {
4203
+ top: var(--spacing-4);
4204
+ right: var(--spacing-4);
4000
4205
  }
4001
4206
 
4002
- /* Field container */
4003
- .muka-textarea__field {
4207
+ .muka-tile--image-top.muka-tile--sm .muka-tile__favourite {
4208
+ top: var(--spacing-1);
4209
+ right: var(--spacing-1);
4210
+ }
4211
+
4212
+ /* ─── Thumbnails ──────────────────────────────────────── */
4213
+
4214
+ .muka-tile__thumbnails {
4004
4215
  display: flex;
4005
- background-color: var(--input-field-color-default-background);
4006
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
4007
- border-radius: var(--input-field-radius-md);
4008
- padding: var(--input-field-padding-y) var(--input-field-padding-x);
4009
- transition: border-color 0.2s ease, background-color 0.2s ease;
4010
- box-sizing: border-box;
4216
+ gap: 2px;
4217
+ overflow: hidden;
4218
+ flex-shrink: 0;
4219
+ height: 80px;
4011
4220
  }
4012
4221
 
4013
- .muka-textarea__field--sm {
4014
- min-height: var(--input-textarea-height-sm);
4015
- border-radius: var(--input-field-radius-sm);
4222
+ .muka-tile__thumbnail {
4223
+ width: 80px;
4224
+ height: 80px;
4225
+ flex-shrink: 0;
4226
+ overflow: hidden;
4016
4227
  }
4017
4228
 
4018
- .muka-textarea__field--md {
4019
- min-height: var(--input-textarea-height-default);
4020
- border-radius: var(--input-field-radius-md);
4229
+ .muka-tile__thumbnail img {
4230
+ width: 100%;
4231
+ height: 100%;
4232
+ object-fit: cover;
4233
+ display: block;
4021
4234
  }
4022
4235
 
4023
- .muka-textarea__field--lg {
4024
- min-height: var(--input-textarea-height-lg);
4025
- border-radius: var(--input-field-radius-lg);
4236
+ /* Gap between main photo and thumbnails */
4237
+ .muka-tile__photos > .muka-tile__photo-main + .muka-tile__thumbnails {
4238
+ margin-top: 2px;
4026
4239
  }
4027
4240
 
4028
- /* Focus state */
4029
- .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
4030
- border-width: var(--border-width-bold);
4031
- border-color: var(--input-field-color-focus-border);
4032
- background-color: var(--input-field-color-focus-background);
4033
- padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4241
+ /* ─── Content section ─────────────────────────────────── */
4242
+
4243
+ .muka-tile__content {
4244
+ display: flex;
4245
+ flex-direction: column;
4246
+ flex: 1;
4247
+ min-width: 0;
4034
4248
  }
4035
4249
 
4036
- /* Error state */
4037
- .muka-textarea__field--error:not(.muka-textarea__field--disabled) {
4038
- border-width: var(--border-width-bold);
4039
- border-color: var(--input-field-color-error-border);
4040
- background-color: var(--input-field-color-error-background);
4041
- padding: calc(var(--input-field-padding-y) - 1px) calc(var(--input-field-padding-x) - 1px);
4250
+ /* Top layout: content has horizontal padding */
4251
+ .muka-tile--image-top.muka-tile--lg .muka-tile__content {
4252
+ padding: 0 var(--spacing-3);
4253
+ gap: var(--spacing-1);
4042
4254
  }
4043
4255
 
4044
- /* Disabled state */
4045
- .muka-textarea__field--disabled {
4046
- background-color: var(--input-field-color-disabled-background);
4047
- border-color: var(--input-field-color-disabled-border);
4048
- cursor: not-allowed;
4256
+ .muka-tile--image-top.muka-tile--md .muka-tile__content {
4257
+ padding: 0 var(--spacing-3);
4258
+ gap: var(--spacing-2);
4049
4259
  }
4050
4260
 
4051
- /* Native textarea */
4052
- .muka-textarea__native {
4053
- flex: 1;
4054
- border: none;
4055
- outline: none;
4056
- background: transparent;
4057
- color: var(--input-field-color-default-foreground);
4058
- font-family: var(--text-input-md-fontFamily);
4059
- font-weight: var(--text-input-md-fontWeight);
4060
- font-size: var(--text-input-md-fontSize);
4061
- line-height: var(--text-input-md-lineHeight);
4062
- padding: 0;
4063
- width: 100%;
4064
- min-width: 0;
4261
+ .muka-tile--image-top.muka-tile--sm .muka-tile__content {
4262
+ gap: var(--spacing-2);
4065
4263
  }
4066
4264
 
4067
- .muka-textarea__field--sm .muka-textarea__native {
4068
- font-family: var(--text-input-sm-fontFamily);
4069
- font-weight: var(--text-input-sm-fontWeight);
4070
- font-size: var(--text-input-sm-fontSize);
4071
- line-height: var(--text-input-sm-lineHeight);
4265
+ /* Left/right layout: content grows to fill space */
4266
+ .muka-tile--image-left .muka-tile__content,
4267
+ .muka-tile--image-right .muka-tile__content {
4268
+ gap: var(--spacing-3);
4072
4269
  }
4073
4270
 
4074
- .muka-textarea__field--lg .muka-textarea__native {
4075
- font-family: var(--text-input-lg-fontFamily);
4076
- font-weight: var(--text-input-lg-fontWeight);
4077
- font-size: var(--text-input-lg-fontSize);
4078
- line-height: var(--text-input-lg-lineHeight);
4271
+ .muka-tile--image-left.muka-tile--lg .muka-tile__content,
4272
+ .muka-tile--image-right.muka-tile--lg .muka-tile__content {
4273
+ padding: 0 var(--spacing-3);
4079
4274
  }
4080
4275
 
4081
- .muka-textarea__native::placeholder {
4082
- color: var(--color-text-subtle-default);
4276
+ .muka-tile--image-left.muka-tile--md .muka-tile__content,
4277
+ .muka-tile--image-right.muka-tile--md .muka-tile__content {
4278
+ padding: var(--spacing-2) var(--spacing-3);
4083
4279
  }
4084
4280
 
4085
- .muka-textarea__field--disabled .muka-textarea__native {
4086
- color: var(--input-field-color-disabled-foreground);
4087
- cursor: not-allowed;
4281
+ .muka-tile--image-left.muka-tile--sm .muka-tile__content,
4282
+ .muka-tile--image-right.muka-tile--sm .muka-tile__content {
4283
+ gap: var(--spacing-2);
4088
4284
  }
4089
4285
 
4090
- /* Footer (helper/error + count) */
4091
- .muka-textarea__footer {
4286
+ /* ─── Header (heading row + price) ────────────────────── */
4287
+
4288
+ .muka-tile__header {
4092
4289
  display: flex;
4093
- justify-content: space-between;
4094
4290
  align-items: flex-start;
4291
+ gap: var(--spacing-4);
4292
+ }
4293
+
4294
+ /* Small horizontal: row with text and action */
4295
+ .muka-tile--sm:not(.muka-tile--image-top) .muka-tile__header {
4095
4296
  gap: var(--spacing-2);
4297
+ align-items: center;
4298
+ padding-top: var(--spacing-1);
4096
4299
  }
4097
4300
 
4098
- .muka-textarea__helper {
4099
- font-family: var(--text-label-sm-regular-fontFamily);
4100
- font-weight: var(--text-label-sm-regular-fontWeight);
4101
- font-size: var(--text-label-sm-regular-fontSize);
4102
- line-height: var(--text-label-sm-regular-lineHeight);
4103
- color: var(--color-text-subtle-default);
4301
+ /* ─── Text group ──────────────────────────────────────── */
4302
+
4303
+ .muka-tile__text {
4304
+ display: flex;
4305
+ flex-direction: column;
4306
+ flex: 1;
4307
+ min-width: 0;
4308
+ gap: var(--spacing-2);
4309
+ }
4310
+
4311
+ /* ─── Heading typography ──────────────────────────────── */
4312
+
4313
+ .muka-tile__heading {
4104
4314
  margin: 0;
4105
4315
  }
4106
4316
 
4107
- .muka-textarea__error {
4108
- font-family: var(--text-label-sm-regular-fontFamily);
4109
- font-weight: var(--text-label-sm-regular-fontWeight);
4110
- font-size: var(--text-label-sm-regular-fontSize);
4111
- line-height: var(--text-label-sm-regular-lineHeight);
4112
- color: var(--color-state-error-default);
4113
- margin: 0;
4317
+ .muka-tile--lg .muka-tile__heading {
4318
+ font-family: var(--text-label-2xl-semibold-fontFamily);
4319
+ font-weight: var(--text-label-2xl-semibold-fontWeight);
4320
+ font-size: var(--text-label-2xl-semibold-fontSize);
4321
+ line-height: var(--text-label-2xl-semibold-lineHeight);
4322
+ color: var(--color-text-default-default);
4323
+ }
4324
+
4325
+ .muka-tile--md .muka-tile__heading {
4326
+ font-family: var(--text-label-xl-semibold-fontFamily);
4327
+ font-weight: var(--text-label-xl-semibold-fontWeight);
4328
+ font-size: var(--text-label-xl-semibold-fontSize);
4329
+ line-height: var(--text-label-xl-semibold-lineHeight);
4330
+ color: var(--color-text-default-default);
4114
4331
  }
4115
4332
 
4116
- .muka-textarea__count {
4117
- font-family: var(--text-label-sm-regular-fontFamily);
4118
- font-weight: var(--text-label-sm-regular-fontWeight);
4119
- font-size: var(--text-label-sm-regular-fontSize);
4120
- line-height: var(--text-label-sm-regular-lineHeight);
4121
- color: var(--color-text-subtle-default);
4122
- margin-left: auto;
4333
+ .muka-tile--sm .muka-tile__heading {
4334
+ font-family: var(--text-label-lg-bold-fontFamily);
4335
+ font-weight: var(--text-label-lg-bold-fontWeight);
4336
+ font-size: var(--text-label-lg-bold-fontSize);
4337
+ line-height: var(--text-label-lg-bold-lineHeight);
4338
+ color: var(--color-text-default-default);
4123
4339
  }
4124
4340
 
4341
+ /* ─── Subheading typography ───────────────────────────── */
4125
4342
 
4126
- /* TextLink */
4127
- /* TextLink Component Styles - Using Muka Design Tokens */
4343
+ .muka-tile__subheading {
4344
+ margin: 0;
4345
+ color: var(--color-text-subtle-default);
4346
+ }
4128
4347
 
4129
- .muka-text-link {
4130
- display: inline;
4131
- cursor: pointer;
4132
- text-decoration: underline;
4133
- /* Nudge the rule clear of descenders; the Figma underline sits off baseline. */
4134
- text-underline-offset: 0.2em;
4135
- text-decoration-thickness: from-font;
4136
- /* Rounds the focus ring's corners; the link itself has no visible box. */
4137
- border-radius: var(--border-radius-sm);
4138
- transition: color var(--motion-duration-micro, 0.15s) var(--motion-easing-enter, ease);
4348
+ .muka-tile--lg .muka-tile__subheading {
4349
+ font-family: var(--text-subheading-md-fontFamily);
4350
+ font-weight: var(--text-subheading-md-fontWeight);
4351
+ font-size: var(--text-subheading-md-fontSize);
4352
+ line-height: var(--text-subheading-md-lineHeight);
4139
4353
  }
4140
4354
 
4141
- /* ─── Sizes ───────────────────────────────────────────────
4142
- Mirrors the body text scale so a link matches the copy it sits in. */
4143
- .muka-text-link--sm {
4144
- font-family: var(--text-body-sm-regular-fontFamily);
4145
- font-weight: var(--text-body-sm-regular-fontWeight);
4146
- font-size: var(--text-body-sm-regular-fontSize);
4147
- line-height: var(--text-body-sm-regular-lineHeight);
4355
+ .muka-tile--md .muka-tile__subheading,
4356
+ .muka-tile--sm .muka-tile__subheading {
4357
+ font-family: var(--text-subheading-sm-fontFamily);
4358
+ font-weight: var(--text-subheading-sm-fontWeight);
4359
+ font-size: var(--text-subheading-sm-fontSize);
4360
+ line-height: var(--text-subheading-sm-lineHeight);
4148
4361
  }
4149
4362
 
4150
- .muka-text-link--base {
4151
- font-family: var(--text-body-base-regular-fontFamily);
4152
- font-weight: var(--text-body-base-regular-fontWeight);
4153
- font-size: var(--text-body-base-regular-fontSize);
4154
- line-height: var(--text-body-base-regular-lineHeight);
4363
+ /* ─── Description typography ──────────────────────────── */
4364
+
4365
+ .muka-tile__description {
4366
+ margin: 0;
4367
+ color: var(--color-text-default-default);
4155
4368
  }
4156
4369
 
4157
- .muka-text-link--lg {
4370
+ .muka-tile--lg .muka-tile__description {
4158
4371
  font-family: var(--text-body-lg-regular-fontFamily);
4159
4372
  font-weight: var(--text-body-lg-regular-fontWeight);
4160
4373
  font-size: var(--text-body-lg-regular-fontSize);
4161
4374
  line-height: var(--text-body-lg-regular-lineHeight);
4162
4375
  }
4163
4376
 
4164
- /* ─── Variant: default (accent) ───────────────────────────
4165
- Visited repeats the default colour on purpose: the design treats visited and
4166
- default the same, and pinning it stops the browser's purple from showing. */
4167
- .muka-text-link--default,
4168
- .muka-text-link--default:visited {
4169
- color: var(--color-text-action-default);
4170
- }
4171
-
4172
- .muka-text-link--default:hover,
4173
- .muka-text-link--default:focus-visible {
4174
- color: var(--color-text-action-hover);
4377
+ .muka-tile--md .muka-tile__description,
4378
+ .muka-tile--sm .muka-tile__description {
4379
+ font-family: var(--text-body-base-regular-fontFamily);
4380
+ font-weight: var(--text-body-base-regular-fontWeight);
4381
+ font-size: var(--text-body-base-regular-fontSize);
4382
+ line-height: var(--text-body-base-regular-lineHeight);
4175
4383
  }
4176
4384
 
4177
- .muka-text-link--default:active {
4178
- color: var(--color-text-action-pressed);
4385
+ /* Description overflow for medium */
4386
+ .muka-tile--md .muka-tile__description {
4387
+ overflow: hidden;
4388
+ text-overflow: ellipsis;
4179
4389
  }
4180
4390
 
4181
- /* ─── Variant: subtle (neutral) ───────────────────────────
4182
- Hover, focus and pressed all darken to the default text colour. */
4183
- .muka-text-link--subtle,
4184
- .muka-text-link--subtle:visited {
4185
- color: var(--color-text-subtle-default);
4186
- }
4391
+ /* ─── Price slot ──────────────────────────────────────── */
4187
4392
 
4188
- .muka-text-link--subtle:hover,
4189
- .muka-text-link--subtle:focus-visible,
4190
- .muka-text-link--subtle:active {
4191
- color: var(--color-text-default-default);
4393
+ .muka-tile__price {
4394
+ flex-shrink: 0;
4192
4395
  }
4193
4396
 
4194
- /* ─── Focus ───────────────────────────────────────────────
4195
- Same ring as every other focusable Muka component. */
4196
- .muka-text-link:focus-visible {
4197
- outline: 2px solid var(--color-border-focus);
4198
- outline-offset: 2px;
4199
- }
4397
+ /* ─── Action slot ─────────────────────────────────────── */
4200
4398
 
4201
- @media (prefers-reduced-motion: reduce) {
4202
- .muka-text-link {
4203
- transition: none;
4204
- }
4399
+ .muka-tile__action {
4400
+ flex-shrink: 0;
4205
4401
  }
4206
4402
 
4207
4403
 
@@ -4395,205 +4591,205 @@ body {
4395
4591
  }
4396
4592
 
4397
4593
 
4398
- /* Table */
4399
- /* Table Component Styles - Using Muka Design Tokens */
4594
+ /* TablePagination */
4595
+ /* TablePagination Component Styles - Using Muka Design Tokens */
4400
4596
 
4401
4597
  /* ========================================
4402
- TABLE WRAPPER (Responsive)
4598
+ PAGINATION CONTAINER
4403
4599
  ======================================== */
4404
4600
 
4405
- .muka-table-wrapper {
4406
- width: 100%;
4407
- overflow-x: auto;
4408
- -webkit-overflow-scrolling: touch;
4601
+ .muka-table-pagination {
4602
+ display: flex;
4603
+ align-items: center;
4604
+ justify-content: space-between;
4605
+ flex-wrap: wrap;
4606
+ gap: var(--table-pagination-gap, var(--spacing-4));
4607
+ padding: var(--table-pagination-padding, var(--spacing-3));
4608
+ background-color: var(--table-pagination-background, var(--color-surface-level1));
4609
+ border-top: var(--border-width-regular) solid var(--table-pagination-border, var(--color-border-default));
4610
+ font-family: var(--text-body-base-regular-fontFamily);
4611
+ font-size: var(--text-body-sm-regular-fontSize);
4612
+ line-height: var(--text-body-sm-regular-lineHeight);
4613
+ color: var(--color-text-default-default);
4409
4614
  }
4410
4615
 
4411
4616
  /* ========================================
4412
- TABLE BASE
4617
+ LEFT SECTION (Page Size & Range)
4413
4618
  ======================================== */
4414
4619
 
4415
- .muka-table {
4416
- width: 100%;
4417
- border-collapse: collapse;
4418
- border-spacing: 0;
4419
- font-family: var(--text-body-base-regular-fontFamily);
4420
- font-size: var(--text-body-base-regular-fontSize);
4421
- font-weight: var(--text-body-base-regular-fontWeight);
4422
- line-height: var(--text-body-base-regular-lineHeight);
4423
- color: var(--color-text-default-default);
4424
- background-color: var(--color-surface-level3);
4620
+ .muka-table-pagination__left {
4621
+ display: flex;
4622
+ align-items: center;
4623
+ gap: var(--spacing-4);
4425
4624
  }
4426
4625
 
4427
- .muka-table--fixed {
4428
- table-layout: fixed;
4626
+ .muka-table-pagination__page-size {
4627
+ display: flex;
4628
+ align-items: center;
4629
+ gap: var(--spacing-2);
4429
4630
  }
4430
4631
 
4431
- .muka-table__caption {
4432
- padding: var(--spacing-3);
4433
- font-weight: var(--text-label-md-semibold-fontWeight);
4434
- text-align: left;
4435
- color: var(--color-text-default-default);
4436
- caption-side: top;
4632
+ .muka-table-pagination__label {
4633
+ color: var(--color-text-subtle-default);
4634
+ white-space: nowrap;
4437
4635
  }
4438
4636
 
4439
- /* ========================================
4440
- TABLE HEAD
4441
- ======================================== */
4442
-
4443
- .muka-table__head {
4444
- border-bottom: var(--border-width-regular) solid var(--color-border-default);
4637
+ .muka-table-pagination__select {
4638
+ appearance: none;
4639
+ padding: var(--spacing-1) var(--spacing-3) var(--spacing-1) var(--spacing-2);
4640
+ background-color: var(--color-surface-level0);
4641
+ border: var(--border-width-regular) solid var(--color-border-default);
4642
+ border-radius: var(--border-radius-sm);
4643
+ font-family: inherit;
4644
+ font-size: inherit;
4645
+ line-height: inherit;
4646
+ color: var(--color-text-default-default);
4647
+ cursor: pointer;
4648
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
4649
+ background-repeat: no-repeat;
4650
+ background-position: right var(--spacing-1) center;
4651
+ background-size: 12px;
4652
+ padding-right: var(--spacing-5);
4445
4653
  }
4446
4654
 
4447
- .muka-table__head .muka-table__row {
4448
- background-color: var(--color-surface-level0);
4655
+ .muka-table-pagination__select:hover {
4656
+ border-color: var(--color-border-contrast);
4449
4657
  }
4450
4658
 
4451
- /* Plain (MUK-103): no tint; small subtle capitals under a section heading. */
4452
- .muka-table__head--plain .muka-table__row {
4453
- background-color: transparent;
4659
+ .muka-table-pagination__select:focus {
4660
+ outline: 2px solid var(--color-action-default);
4661
+ outline-offset: -2px;
4454
4662
  }
4455
4663
 
4456
- .muka-table__head--plain .muka-table__header-cell {
4457
- font-family: var(--text-label-sm-regular-fontFamily);
4458
- font-weight: var(--text-label-sm-regular-fontWeight);
4459
- font-size: var(--text-label-sm-regular-fontSize);
4460
- line-height: var(--text-label-sm-regular-lineHeight);
4664
+ .muka-table-pagination__range {
4461
4665
  color: var(--color-text-subtle-default);
4462
- text-transform: uppercase;
4666
+ white-space: nowrap;
4463
4667
  }
4464
4668
 
4465
4669
  /* ========================================
4466
- TABLE BODY
4670
+ RIGHT SECTION (Page Numbers & Navigation)
4467
4671
  ======================================== */
4468
4672
 
4469
- .muka-table__body .muka-table__row {
4470
- border-bottom: var(--border-width-regular) solid var(--color-border-muted);
4471
- }
4472
-
4473
- .muka-table__body .muka-table__row:last-child {
4474
- border-bottom: none;
4475
- }
4476
-
4477
- .muka-table__body .muka-table__row:hover {
4478
- background-color: var(--color-surface-hover);
4673
+ .muka-table-pagination__right {
4674
+ display: flex;
4675
+ align-items: center;
4676
+ gap: var(--spacing-2);
4479
4677
  }
4480
4678
 
4481
- /* Tone (MUK-102): a light warning tint. Hover lays its overlay on the tint
4482
- instead of replacing it. */
4483
- .muka-table__body .muka-table__row--warning {
4484
- background-color: var(--table-row-tone-warning-background);
4485
- border-bottom-color: var(--table-row-tone-warning-border);
4679
+ .muka-table-pagination__pages {
4680
+ display: flex;
4681
+ align-items: center;
4682
+ gap: var(--spacing-1);
4486
4683
  }
4487
4684
 
4488
- .muka-table__body .muka-table__row--warning:hover {
4489
- background-color: var(--table-row-tone-warning-background);
4490
- background-image: linear-gradient(var(--color-surface-hover), var(--color-surface-hover));
4685
+ .muka-table-pagination__nav-only {
4686
+ display: flex;
4687
+ align-items: center;
4688
+ gap: var(--spacing-2);
4491
4689
  }
4492
4690
 
4493
- .muka-table__body .muka-table__row--selected {
4494
- background-color: var(--table-row-selected-background, var(--color-action-default));
4691
+ .muka-table-pagination__page-indicator {
4692
+ color: var(--color-text-subtle-default);
4693
+ white-space: nowrap;
4694
+ min-width: 80px;
4695
+ text-align: center;
4495
4696
  }
4496
4697
 
4497
- .muka-table__body .muka-table__row--selected:hover {
4498
- background-color: var(--table-row-selected-background, var(--color-action-default));
4499
- }
4698
+ /* ========================================
4699
+ BUTTONS
4700
+ ======================================== */
4500
4701
 
4501
- .muka-table__row--clickable {
4702
+ .muka-table-pagination__button {
4703
+ display: inline-flex;
4704
+ align-items: center;
4705
+ justify-content: center;
4706
+ min-width: var(--size-2xl);
4707
+ height: var(--size-2xl);
4708
+ padding: var(--spacing-1);
4709
+ border: var(--border-width-regular) solid transparent;
4710
+ border-radius: var(--border-radius-sm);
4711
+ background-color: transparent;
4712
+ color: var(--color-text-default-default);
4713
+ font-family: inherit;
4714
+ font-size: inherit;
4715
+ line-height: 1;
4502
4716
  cursor: pointer;
4717
+ transition: background-color 0.15s, border-color 0.15s, color 0.15s;
4503
4718
  }
4504
4719
 
4505
- /* ========================================
4506
- TABLE CELLS
4507
- ======================================== */
4720
+ .muka-table-pagination__button:hover:not(:disabled) {
4721
+ background-color: var(--color-surface-level2);
4722
+ }
4508
4723
 
4509
- .muka-table__cell,
4510
- .muka-table__header-cell {
4511
- vertical-align: middle;
4724
+ .muka-table-pagination__button:focus-visible {
4725
+ outline: 2px solid var(--color-action-default);
4726
+ outline-offset: -2px;
4512
4727
  }
4513
4728
 
4514
- /* Size: Small */
4515
- .muka-table--sm .muka-table__cell,
4516
- .muka-table--sm .muka-table__header-cell {
4517
- padding: var(--table-cell-padding-y-sm) var(--table-cell-padding-x-sm);
4729
+ .muka-table-pagination__button:disabled {
4730
+ color: var(--color-text-muted-default);
4731
+ cursor: not-allowed;
4732
+ opacity: 0.5;
4518
4733
  }
4519
4734
 
4520
- /* Size: Medium */
4521
- .muka-table--md .muka-table__cell,
4522
- .muka-table--md .muka-table__header-cell {
4523
- padding: var(--table-cell-padding-y-md) var(--table-cell-padding-x-md);
4735
+ /* Navigation buttons (arrows) */
4736
+ .muka-table-pagination__button--nav {
4737
+ gap: -4px;
4524
4738
  }
4525
4739
 
4526
- /* Size: Large */
4527
- .muka-table--lg .muka-table__cell,
4528
- .muka-table--lg .muka-table__header-cell {
4529
- padding: var(--table-cell-padding-y-lg) var(--table-cell-padding-x-lg);
4740
+ .muka-table-pagination__button--nav svg {
4741
+ margin: -2px;
4530
4742
  }
4531
4743
 
4532
- /* Alignment */
4533
- .muka-table__cell--left,
4534
- .muka-table__header-cell--left {
4535
- text-align: left;
4744
+ /* Page number buttons */
4745
+ .muka-table-pagination__button--page {
4746
+ font-weight: var(--text-label-md-regular-fontWeight);
4536
4747
  }
4537
4748
 
4538
- .muka-table__cell--center,
4539
- .muka-table__header-cell--center {
4540
- text-align: center;
4749
+ .muka-table-pagination__button--active {
4750
+ background-color: var(--color-action-default);
4751
+ color: var(--color-text-default-inverse);
4752
+ border-color: var(--color-action-default);
4541
4753
  }
4542
4754
 
4543
- .muka-table__cell--right,
4544
- .muka-table__header-cell--right {
4545
- text-align: right;
4755
+ .muka-table-pagination__button--active:hover:not(:disabled) {
4756
+ background-color: var(--color-action-hover);
4757
+ border-color: var(--color-action-hover);
4546
4758
  }
4547
4759
 
4548
4760
  /* ========================================
4549
- HEADER CELLS
4761
+ ELLIPSIS
4550
4762
  ======================================== */
4551
4763
 
4552
- .muka-table__header-cell {
4553
- font-family: var(--text-body-base-bold-fontFamily);
4554
- font-weight: var(--text-body-base-bold-fontWeight);
4555
- font-size: var(--text-body-base-bold-fontSize);
4556
- line-height: var(--text-body-base-bold-lineHeight);
4557
- color: var(--color-text-default-default);
4558
- white-space: nowrap;
4559
- }
4560
-
4561
- .muka-table__header-content {
4764
+ .muka-table-pagination__ellipsis {
4562
4765
  display: inline-flex;
4563
4766
  align-items: center;
4564
- gap: var(--spacing-1);
4565
- }
4566
-
4567
- /* Sortable */
4568
- .muka-table__header-cell--sortable {
4569
- cursor: pointer;
4767
+ justify-content: center;
4768
+ min-width: var(--size-2xl);
4769
+ height: var(--size-2xl);
4770
+ color: var(--color-text-muted-default);
4570
4771
  user-select: none;
4571
4772
  }
4572
4773
 
4573
- .muka-table__header-cell--sortable:hover {
4574
- color: var(--color-text-default-default);
4575
- }
4576
-
4577
- .muka-table__header-cell--sortable:focus-visible {
4578
- outline: 2px solid var(--color-action-default);
4579
- outline-offset: -2px;
4580
- }
4774
+ /* ========================================
4775
+ RESPONSIVE
4776
+ ======================================== */
4581
4777
 
4582
- /* Sort icon */
4583
- .muka-table__sort-icon {
4584
- width: 1em;
4585
- height: 1em;
4586
- opacity: 0.4;
4587
- transition: opacity 0.2s, transform 0.2s;
4588
- }
4778
+ @media (max-width: 640px) {
4779
+ .muka-table-pagination {
4780
+ flex-direction: column;
4781
+ align-items: stretch;
4782
+ }
4589
4783
 
4590
- .muka-table__header-cell--sortable:hover .muka-table__sort-icon {
4591
- opacity: 0.7;
4592
- }
4784
+ .muka-table-pagination__left,
4785
+ .muka-table-pagination__right {
4786
+ justify-content: center;
4787
+ }
4593
4788
 
4594
- .muka-table__sort-icon--asc,
4595
- .muka-table__sort-icon--desc {
4596
- opacity: 1;
4789
+ .muka-table-pagination__pages {
4790
+ flex-wrap: wrap;
4791
+ justify-content: center;
4792
+ }
4597
4793
  }
4598
4794
 
4599
4795
 
@@ -4799,114 +4995,6 @@ body {
4799
4995
  }
4800
4996
 
4801
4997
 
4802
- /* SwipeActions */
4803
- /* SwipeActions Component Styles */
4804
-
4805
- .muka-swipe-actions {
4806
- position: relative;
4807
- overflow: hidden;
4808
- touch-action: pan-y;
4809
- -webkit-user-select: none;
4810
- user-select: none;
4811
- background-color: var(--color-surface-level3);
4812
- }
4813
-
4814
- .muka-swipe-actions--disabled {
4815
- touch-action: auto;
4816
- }
4817
-
4818
- /* ─── Row that holds the actual content ────────────────── */
4819
-
4820
- .muka-swipe-actions__row {
4821
- position: relative;
4822
- z-index: 1;
4823
- background-color: inherit;
4824
- will-change: transform;
4825
- }
4826
-
4827
- /* ─── Action panels — sit beneath the row ──────────────── */
4828
-
4829
- .muka-swipe-actions__panel {
4830
- position: absolute;
4831
- top: 0;
4832
- bottom: 0;
4833
- display: flex;
4834
- align-items: stretch;
4835
- z-index: 0;
4836
- }
4837
-
4838
- .muka-swipe-actions__panel--left {
4839
- left: 0;
4840
- }
4841
-
4842
- .muka-swipe-actions__panel--right {
4843
- right: 0;
4844
- }
4845
-
4846
- /* ─── Single action button ─────────────────────────────── */
4847
-
4848
- .muka-swipe-actions__button {
4849
- display: flex;
4850
- flex-direction: column;
4851
- align-items: center;
4852
- justify-content: center;
4853
- gap: var(--spacing-1);
4854
- border: none;
4855
- cursor: pointer;
4856
- padding: var(--spacing-2);
4857
- background-color: var(--color-surface-level2);
4858
- color: var(--color-text-default-default);
4859
- font-family: var(--text-label-sm-semibold-fontFamily);
4860
- font-weight: var(--text-label-sm-semibold-fontWeight);
4861
- font-size: var(--text-label-sm-semibold-fontSize);
4862
- line-height: var(--text-label-sm-semibold-lineHeight);
4863
- -webkit-tap-highlight-color: transparent;
4864
- transition: filter 0.12s ease;
4865
- }
4866
-
4867
- .muka-swipe-actions__button:hover {
4868
- filter: brightness(0.95);
4869
- }
4870
-
4871
- .muka-swipe-actions__button:focus-visible {
4872
- outline: 2px solid var(--color-action-default);
4873
- outline-offset: -2px;
4874
- }
4875
-
4876
- .muka-swipe-actions__button-icon {
4877
- display: inline-flex;
4878
- align-items: center;
4879
- justify-content: center;
4880
- }
4881
-
4882
- /* ─── Color variants ───────────────────────────────────── */
4883
-
4884
- .muka-swipe-actions__button--neutral {
4885
- background-color: var(--color-surface-level2);
4886
- color: var(--color-text-default-default);
4887
- }
4888
-
4889
- .muka-swipe-actions__button--primary {
4890
- background-color: var(--color-action-default);
4891
- color: var(--color-text-default-inverse);
4892
- }
4893
-
4894
- .muka-swipe-actions__button--success {
4895
- background-color: var(--color-state-success-default);
4896
- color: var(--color-text-default-inverse);
4897
- }
4898
-
4899
- .muka-swipe-actions__button--warning {
4900
- background-color: var(--color-state-warning-default);
4901
- color: var(--color-text-default-default);
4902
- }
4903
-
4904
- .muka-swipe-actions__button--destructive {
4905
- background-color: var(--color-state-error-default);
4906
- color: var(--color-text-default-inverse);
4907
- }
4908
-
4909
-
4910
4998
  /* Spinner */
4911
4999
  /* Spinner Component Styles */
4912
5000
 
@@ -5472,18 +5560,125 @@ body {
5472
5560
  animation: muka-skeleton-shimmer 1.5s ease-in-out infinite;
5473
5561
  }
5474
5562
 
5475
- /* Pulse animation */
5476
- @keyframes muka-skeleton-pulse {
5477
- 0%, 100% {
5478
- opacity: 1;
5563
+ /* Pulse animation */
5564
+ @keyframes muka-skeleton-pulse {
5565
+ 0%, 100% {
5566
+ opacity: 1;
5567
+ }
5568
+ 50% {
5569
+ opacity: 0.4;
5570
+ }
5571
+ }
5572
+
5573
+ .muka-skeleton--pulse {
5574
+ animation: muka-skeleton-pulse 1.5s ease-in-out infinite;
5575
+ }
5576
+
5577
+
5578
+ /* SiteHeader */
5579
+ /* SiteHeader Component Styles */
5580
+
5581
+ /*
5582
+ * Header for document-scrolling pages. Its colour comes from, in order:
5583
+ * `--muka-site-header-background` (set by the consumer), the surrounding
5584
+ * Page's `--muka-page-background`, and the base surface.
5585
+ *
5586
+ * Safe areas: env(safe-area-inset-*) is 0 outside notched devices. In an app
5587
+ * running edge to edge, the header extends behind the status bar in its own
5588
+ * colour and keeps its content clear of a landscape notch.
5589
+ */
5590
+ .muka-site-header {
5591
+ width: 100%;
5592
+ flex-shrink: 0;
5593
+ background-color: var(--muka-site-header-background, var(--muka-page-background, var(--color-surface-level3)));
5594
+ padding-top: env(safe-area-inset-top, 0px);
5595
+ }
5596
+
5597
+ .muka-site-header--sticky {
5598
+ position: sticky;
5599
+ top: 0;
5600
+ z-index: 30;
5601
+ border-bottom: var(--border-width-regular) solid var(--color-border-default);
5602
+ }
5603
+
5604
+ /*
5605
+ * A header that scrolls away would leave the status bar over the content. A
5606
+ * fixed strip in the header's colour stays behind the status bar instead.
5607
+ * Below Muka's overlays, so a dialog's backdrop dims it with the page.
5608
+ */
5609
+ .muka-site-header:not(.muka-site-header--sticky)::before {
5610
+ content: '';
5611
+ position: fixed;
5612
+ top: 0;
5613
+ left: 0;
5614
+ right: 0;
5615
+ height: env(safe-area-inset-top, 0px);
5616
+ background-color: inherit;
5617
+ pointer-events: none;
5618
+ z-index: 30;
5619
+ }
5620
+
5621
+ .muka-site-header__inner {
5622
+ display: flex;
5623
+ align-items: center;
5624
+ gap: var(--spacing-2);
5625
+ width: 100%;
5626
+ max-width: var(--container-max-width-xl);
5627
+ margin: 0 auto;
5628
+ padding-block: var(--spacing-6);
5629
+ padding-left: max(var(--spacing-4), env(safe-area-inset-left, 0px));
5630
+ padding-right: max(var(--spacing-4), env(safe-area-inset-right, 0px));
5631
+ }
5632
+
5633
+ .muka-site-header__brand {
5634
+ display: flex;
5635
+ align-items: center;
5636
+ flex-shrink: 0;
5637
+ min-width: 0;
5638
+ }
5639
+
5640
+ .muka-site-header__nav {
5641
+ display: none;
5642
+ align-items: center;
5643
+ gap: var(--spacing-1);
5644
+ min-width: 0;
5645
+ }
5646
+
5647
+ .muka-site-header__actions {
5648
+ display: flex;
5649
+ align-items: center;
5650
+ margin-left: auto;
5651
+ min-width: 0;
5652
+ }
5653
+
5654
+ .muka-site-header__action-group {
5655
+ display: flex;
5656
+ align-items: center;
5657
+ gap: var(--spacing-2);
5658
+ }
5659
+
5660
+ /* Small screens: the compact set replaces the full one. */
5661
+ .muka-site-header__action-group--wide {
5662
+ display: none;
5663
+ }
5664
+
5665
+ @media (min-width: 768px) {
5666
+ .muka-site-header__inner {
5667
+ gap: var(--spacing-4);
5668
+ padding-block: var(--spacing-8);
5479
5669
  }
5480
- 50% {
5481
- opacity: 0.4;
5670
+
5671
+ .muka-site-header__nav {
5672
+ display: flex;
5482
5673
  }
5483
- }
5484
5674
 
5485
- .muka-skeleton--pulse {
5486
- animation: muka-skeleton-pulse 1.5s ease-in-out infinite;
5675
+ .muka-site-header__action-group--wide {
5676
+ display: flex;
5677
+ }
5678
+
5679
+ .muka-site-header__action-group--compact {
5680
+ display: none;
5681
+ }
5487
5682
  }
5488
5683
 
5489
5684
 
@@ -5951,6 +6146,29 @@ body {
5951
6146
  }
5952
6147
 
5953
6148
 
6149
+ /* Section */
6150
+ /* Section Component - Layout tokens (section.padding) */
6151
+
6152
+ .muka-section {
6153
+ box-sizing: border-box;
6154
+ }
6155
+
6156
+ .muka-section--padding-compact {
6157
+ padding-block: var(--section-padding-vertical-compact);
6158
+ padding-inline: var(--section-padding-horizontal-compact);
6159
+ }
6160
+
6161
+ .muka-section--padding-default {
6162
+ padding-block: var(--section-padding-vertical-default);
6163
+ padding-inline: var(--section-padding-horizontal-default);
6164
+ }
6165
+
6166
+ .muka-section--padding-spacious {
6167
+ padding-block: var(--section-padding-vertical-spacious);
6168
+ padding-inline: var(--section-padding-horizontal-spacious);
6169
+ }
6170
+
6171
+
5954
6172
  /* SearchInput */
5955
6173
  /* SearchInput Component Styles */
5956
6174
 
@@ -6247,29 +6465,6 @@ body {
6247
6465
  }
6248
6466
 
6249
6467
 
6250
- /* Section */
6251
- /* Section Component - Layout tokens (section.padding) */
6252
-
6253
- .muka-section {
6254
- box-sizing: border-box;
6255
- }
6256
-
6257
- .muka-section--padding-compact {
6258
- padding-block: var(--section-padding-vertical-compact);
6259
- padding-inline: var(--section-padding-horizontal-compact);
6260
- }
6261
-
6262
- .muka-section--padding-default {
6263
- padding-block: var(--section-padding-vertical-default);
6264
- padding-inline: var(--section-padding-horizontal-default);
6265
- }
6266
-
6267
- .muka-section--padding-spacious {
6268
- padding-block: var(--section-padding-vertical-spacious);
6269
- padding-inline: var(--section-padding-horizontal-spacious);
6270
- }
6271
-
6272
-
6273
6468
  /* RecordingBar */
6274
6469
  /* RecordingBar Component Styles */
6275
6470
 
@@ -6536,6 +6731,114 @@ body {
6536
6731
  }
6537
6732
 
6538
6733
 
6734
+ /* SwipeActions */
6735
+ /* SwipeActions Component Styles */
6736
+
6737
+ .muka-swipe-actions {
6738
+ position: relative;
6739
+ overflow: hidden;
6740
+ touch-action: pan-y;
6741
+ -webkit-user-select: none;
6742
+ user-select: none;
6743
+ background-color: var(--color-surface-level3);
6744
+ }
6745
+
6746
+ .muka-swipe-actions--disabled {
6747
+ touch-action: auto;
6748
+ }
6749
+
6750
+ /* ─── Row that holds the actual content ────────────────── */
6751
+
6752
+ .muka-swipe-actions__row {
6753
+ position: relative;
6754
+ z-index: 1;
6755
+ background-color: inherit;
6756
+ will-change: transform;
6757
+ }
6758
+
6759
+ /* ─── Action panels — sit beneath the row ──────────────── */
6760
+
6761
+ .muka-swipe-actions__panel {
6762
+ position: absolute;
6763
+ top: 0;
6764
+ bottom: 0;
6765
+ display: flex;
6766
+ align-items: stretch;
6767
+ z-index: 0;
6768
+ }
6769
+
6770
+ .muka-swipe-actions__panel--left {
6771
+ left: 0;
6772
+ }
6773
+
6774
+ .muka-swipe-actions__panel--right {
6775
+ right: 0;
6776
+ }
6777
+
6778
+ /* ─── Single action button ─────────────────────────────── */
6779
+
6780
+ .muka-swipe-actions__button {
6781
+ display: flex;
6782
+ flex-direction: column;
6783
+ align-items: center;
6784
+ justify-content: center;
6785
+ gap: var(--spacing-1);
6786
+ border: none;
6787
+ cursor: pointer;
6788
+ padding: var(--spacing-2);
6789
+ background-color: var(--color-surface-level2);
6790
+ color: var(--color-text-default-default);
6791
+ font-family: var(--text-label-sm-semibold-fontFamily);
6792
+ font-weight: var(--text-label-sm-semibold-fontWeight);
6793
+ font-size: var(--text-label-sm-semibold-fontSize);
6794
+ line-height: var(--text-label-sm-semibold-lineHeight);
6795
+ -webkit-tap-highlight-color: transparent;
6796
+ transition: filter 0.12s ease;
6797
+ }
6798
+
6799
+ .muka-swipe-actions__button:hover {
6800
+ filter: brightness(0.95);
6801
+ }
6802
+
6803
+ .muka-swipe-actions__button:focus-visible {
6804
+ outline: 2px solid var(--color-action-default);
6805
+ outline-offset: -2px;
6806
+ }
6807
+
6808
+ .muka-swipe-actions__button-icon {
6809
+ display: inline-flex;
6810
+ align-items: center;
6811
+ justify-content: center;
6812
+ }
6813
+
6814
+ /* ─── Color variants ───────────────────────────────────── */
6815
+
6816
+ .muka-swipe-actions__button--neutral {
6817
+ background-color: var(--color-surface-level2);
6818
+ color: var(--color-text-default-default);
6819
+ }
6820
+
6821
+ .muka-swipe-actions__button--primary {
6822
+ background-color: var(--color-action-default);
6823
+ color: var(--color-text-default-inverse);
6824
+ }
6825
+
6826
+ .muka-swipe-actions__button--success {
6827
+ background-color: var(--color-state-success-default);
6828
+ color: var(--color-text-default-inverse);
6829
+ }
6830
+
6831
+ .muka-swipe-actions__button--warning {
6832
+ background-color: var(--color-state-warning-default);
6833
+ color: var(--color-text-default-default);
6834
+ }
6835
+
6836
+ .muka-swipe-actions__button--destructive {
6837
+ background-color: var(--color-state-error-default);
6838
+ color: var(--color-text-default-inverse);
6839
+ }
6840
+
6841
+
6539
6842
  /* RadioTile */
6540
6843
  /* RadioTile Component Styles - Using Muka Design Tokens */
6541
6844
 
@@ -7841,26 +8144,97 @@ button.muka-progress-tracker__tab:focus-visible {
7841
8144
  animation: muka-progress-circle-rotate 2s linear infinite;
7842
8145
  }
7843
8146
 
7844
- .muka-progress--circle.muka-progress--indeterminate .muka-progress__fill {
7845
- animation: muka-progress-circle-dash 1.5s ease-in-out infinite;
8147
+ .muka-progress--circle.muka-progress--indeterminate .muka-progress__fill {
8148
+ animation: muka-progress-circle-dash 1.5s ease-in-out infinite;
8149
+ }
8150
+
8151
+ @keyframes muka-progress-circle-rotate {
8152
+ 100% {
8153
+ transform: rotate(270deg);
8154
+ }
8155
+ }
8156
+
8157
+ @keyframes muka-progress-circle-dash {
8158
+ 0% {
8159
+ stroke-dashoffset: 220;
8160
+ }
8161
+ 50% {
8162
+ stroke-dashoffset: 70;
8163
+ }
8164
+ 100% {
8165
+ stroke-dashoffset: 220;
8166
+ }
8167
+ }
8168
+
8169
+
8170
+ /* ProfileBadge */
8171
+ /* ProfileBadge Component Styles - Using Muka Design Tokens */
8172
+
8173
+ .muka-profile-badge {
8174
+ display: inline-flex;
8175
+ align-items: center;
8176
+ font-family: var(--text-body-base-regular-fontFamily);
8177
+ }
8178
+
8179
+ /* Size variants */
8180
+ .muka-profile-badge--lg {
8181
+ gap: var(--spacing-4); /* 16px */
8182
+ }
8183
+
8184
+ .muka-profile-badge--md {
8185
+ gap: var(--spacing-3); /* 12px */
8186
+ }
8187
+
8188
+ .muka-profile-badge__avatar {
8189
+ flex-shrink: 0;
8190
+ }
8191
+
8192
+ /* Text stack */
8193
+ .muka-profile-badge__text {
8194
+ display: flex;
8195
+ flex-direction: column;
8196
+ align-items: flex-start;
8197
+ min-width: 0;
8198
+ }
8199
+
8200
+ .muka-profile-badge__name {
8201
+ font-family: var(--text-body-base-regular-fontFamily);
8202
+ font-size: var(--text-body-base-regular-fontSize);
8203
+ font-weight: var(--text-body-base-regular-fontWeight);
8204
+ line-height: var(--text-body-base-regular-lineHeight);
8205
+ color: var(--color-text-default-default);
8206
+ }
8207
+
8208
+ .muka-profile-badge__email {
8209
+ font-family: var(--text-body-xs-regular-fontFamily);
8210
+ font-size: var(--text-body-xs-regular-fontSize);
8211
+ font-weight: var(--text-body-xs-regular-fontWeight);
8212
+ line-height: var(--text-body-xs-regular-lineHeight);
8213
+ color: var(--color-text-subtle-default);
8214
+ }
8215
+
8216
+ /* Clickable state */
8217
+ .muka-profile-badge--clickable {
8218
+ cursor: pointer;
8219
+ border: none;
8220
+ background: none;
8221
+ padding: 0;
8222
+ text-align: left;
8223
+ border-radius: var(--radius-md);
8224
+ transition: opacity 0.2s ease;
8225
+ }
8226
+
8227
+ .muka-profile-badge--clickable:hover {
8228
+ opacity: 0.9;
7846
8229
  }
7847
8230
 
7848
- @keyframes muka-progress-circle-rotate {
7849
- 100% {
7850
- transform: rotate(270deg);
7851
- }
8231
+ .muka-profile-badge--clickable:active {
8232
+ opacity: 0.8;
7852
8233
  }
7853
8234
 
7854
- @keyframes muka-progress-circle-dash {
7855
- 0% {
7856
- stroke-dashoffset: 220;
7857
- }
7858
- 50% {
7859
- stroke-dashoffset: 70;
7860
- }
7861
- 100% {
7862
- stroke-dashoffset: 220;
7863
- }
8235
+ .muka-profile-badge--clickable:focus-visible {
8236
+ outline: 2px solid var(--color-border-focus);
8237
+ outline-offset: 2px;
7864
8238
  }
7865
8239
 
7866
8240
 
@@ -7961,77 +8335,6 @@ button.muka-progress-tracker__tab:focus-visible {
7961
8335
  }
7962
8336
 
7963
8337
 
7964
- /* ProfileBadge */
7965
- /* ProfileBadge Component Styles - Using Muka Design Tokens */
7966
-
7967
- .muka-profile-badge {
7968
- display: inline-flex;
7969
- align-items: center;
7970
- font-family: var(--text-body-base-regular-fontFamily);
7971
- }
7972
-
7973
- /* Size variants */
7974
- .muka-profile-badge--lg {
7975
- gap: var(--spacing-4); /* 16px */
7976
- }
7977
-
7978
- .muka-profile-badge--md {
7979
- gap: var(--spacing-3); /* 12px */
7980
- }
7981
-
7982
- .muka-profile-badge__avatar {
7983
- flex-shrink: 0;
7984
- }
7985
-
7986
- /* Text stack */
7987
- .muka-profile-badge__text {
7988
- display: flex;
7989
- flex-direction: column;
7990
- align-items: flex-start;
7991
- min-width: 0;
7992
- }
7993
-
7994
- .muka-profile-badge__name {
7995
- font-family: var(--text-body-base-regular-fontFamily);
7996
- font-size: var(--text-body-base-regular-fontSize);
7997
- font-weight: var(--text-body-base-regular-fontWeight);
7998
- line-height: var(--text-body-base-regular-lineHeight);
7999
- color: var(--color-text-default-default);
8000
- }
8001
-
8002
- .muka-profile-badge__email {
8003
- font-family: var(--text-body-xs-regular-fontFamily);
8004
- font-size: var(--text-body-xs-regular-fontSize);
8005
- font-weight: var(--text-body-xs-regular-fontWeight);
8006
- line-height: var(--text-body-xs-regular-lineHeight);
8007
- color: var(--color-text-subtle-default);
8008
- }
8009
-
8010
- /* Clickable state */
8011
- .muka-profile-badge--clickable {
8012
- cursor: pointer;
8013
- border: none;
8014
- background: none;
8015
- padding: 0;
8016
- text-align: left;
8017
- border-radius: var(--radius-md);
8018
- transition: opacity 0.2s ease;
8019
- }
8020
-
8021
- .muka-profile-badge--clickable:hover {
8022
- opacity: 0.9;
8023
- }
8024
-
8025
- .muka-profile-badge--clickable:active {
8026
- opacity: 0.8;
8027
- }
8028
-
8029
- .muka-profile-badge--clickable:focus-visible {
8030
- outline: 2px solid var(--color-border-focus);
8031
- outline-offset: 2px;
8032
- }
8033
-
8034
-
8035
8338
  /* Popover */
8036
8339
  /* Popover Component Styles */
8037
8340
 
@@ -9449,82 +9752,276 @@ button.muka-progress-tracker__tab:focus-visible {
9449
9752
  transition: opacity var(--motion-duration-micro) var(--motion-easing-enter);
9450
9753
  }
9451
9754
 
9452
- .muka-media-viewer__nav--previous {
9453
- left: var(--spacing-4);
9755
+ .muka-media-viewer__nav--previous {
9756
+ left: var(--spacing-4);
9757
+ }
9758
+
9759
+ .muka-media-viewer__nav--next {
9760
+ right: var(--spacing-4);
9761
+ }
9762
+
9763
+ @media (hover: hover) and (pointer: fine) {
9764
+ .muka-media-viewer__nav {
9765
+ display: block;
9766
+ }
9767
+
9768
+ .muka-media-viewer__stage:hover .muka-media-viewer__nav,
9769
+ .muka-media-viewer__nav:focus-within {
9770
+ opacity: 1;
9771
+ }
9772
+ }
9773
+
9774
+ /* ─── Footer: caption, meta and actions ───────────────── */
9775
+ .muka-media-viewer__footer {
9776
+ flex-shrink: 0;
9777
+ display: flex;
9778
+ flex-direction: column;
9779
+ gap: var(--spacing-3);
9780
+ padding: var(--spacing-4);
9781
+ padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
9782
+ background-color: var(--color-surface-level3);
9783
+ }
9784
+
9785
+ .muka-media-viewer__details {
9786
+ display: flex;
9787
+ align-items: flex-start;
9788
+ justify-content: space-between;
9789
+ gap: var(--spacing-3);
9790
+ }
9791
+
9792
+ .muka-media-viewer__caption {
9793
+ min-width: 0;
9794
+ color: var(--color-text-subtle-default);
9795
+ font-family: var(--text-body-sm-regular-fontFamily);
9796
+ font-size: var(--text-body-sm-regular-fontSize);
9797
+ font-weight: var(--text-body-sm-regular-fontWeight);
9798
+ line-height: var(--text-body-sm-regular-lineHeight);
9799
+ overflow-wrap: anywhere;
9800
+ }
9801
+
9802
+ .muka-media-viewer__meta {
9803
+ flex-shrink: 0;
9804
+ }
9805
+
9806
+ .muka-media-viewer__actions {
9807
+ display: flex;
9808
+ flex-wrap: wrap;
9809
+ gap: var(--spacing-2);
9810
+ }
9811
+
9812
+ /* Mobile: actions stack full width, like Dialog footers. */
9813
+ @media (max-width: 1023px) {
9814
+ .muka-media-viewer__actions {
9815
+ flex-direction: column;
9816
+ }
9817
+
9818
+ .muka-media-viewer__actions > * {
9819
+ width: 100%;
9820
+ }
9821
+ }
9822
+
9823
+ /* ─── Reduced motion ──────────────────────────────────── */
9824
+ @media (prefers-reduced-motion: reduce) {
9825
+ .muka-media-viewer,
9826
+ .muka-media-viewer__slide,
9827
+ .muka-media-viewer__nav {
9828
+ animation: none;
9829
+ transition: none;
9830
+ }
9831
+ }
9832
+
9833
+
9834
+ /* ListItem */
9835
+ /* ListItem Component Styles - Using Muka Design Tokens */
9836
+
9837
+ /* Base list item styles */
9838
+ .muka-listitem {
9839
+ /* Layout */
9840
+ display: flex;
9841
+ align-items: flex-start;
9842
+ gap: var(--spacing-4);
9843
+ padding: var(--spacing-5) var(--spacing-4);
9844
+
9845
+ /* Background - using semantic tokens */
9846
+ background-color: var(--color-surface-level3);
9847
+
9848
+ /* Typography */
9849
+ font-family: var(--alias-font-brand-family);
9850
+
9851
+ /* Border and spacing */
9852
+ border: none;
9853
+ position: relative;
9854
+
9855
+ /* Interaction - only apply if interactive */
9856
+ transition: background-color 0.2s ease, box-shadow 0.2s ease;
9857
+ }
9858
+
9859
+ /* Interactive state */
9860
+ .muka-listitem--interactive {
9861
+ cursor: pointer;
9862
+ }
9863
+
9864
+ /*
9865
+ * surface.hover / surface.pressed are theme-adaptive translucent tints, so they
9866
+ * are layered on top of the item's base surface via an inset box-shadow overlay
9867
+ * rather than replacing background-color. This preserves the base level (level3,
9868
+ * or level2 when selected) and lets the tint read correctly on any surface.
9869
+ */
9870
+ .muka-listitem--interactive:hover:not(:disabled):not(.muka-listitem--disabled) {
9871
+ box-shadow: inset 0 0 0 9999px var(--color-surface-hover);
9872
+ }
9873
+
9874
+ .muka-listitem--interactive:active:not(:disabled):not(.muka-listitem--disabled),
9875
+ .muka-listitem--interactive.muka-listitem--pressed:not(:disabled):not(.muka-listitem--disabled) {
9876
+ box-shadow: inset 0 0 0 9999px var(--color-surface-pressed);
9877
+ }
9878
+
9879
+ /* Focus styles for accessibility */
9880
+ .muka-listitem:focus-visible {
9881
+ outline: 2px solid var(--color-border-focus);
9882
+ outline-offset: -2px;
9883
+ }
9884
+
9885
+ /* Disabled state */
9886
+ .muka-listitem--disabled {
9887
+ opacity: 0.5;
9888
+ cursor: not-allowed;
9889
+ pointer-events: none;
9890
+ }
9891
+
9892
+ .muka-listitem--disabled:hover {
9893
+ background-color: var(--color-surface-level3);
9894
+ }
9895
+
9896
+ /* Selected state */
9897
+ .muka-listitem--selected {
9898
+ background-color: var(--color-surface-level2);
9899
+ }
9900
+
9901
+ .muka-listitem--selected:hover {
9902
+ box-shadow: inset 0 0 0 9999px var(--color-surface-hover);
9903
+ }
9904
+
9905
+ /* No divider modifier */
9906
+ .muka-listitem--no-divider .muka-listitem__divider {
9907
+ display: none;
9908
+ }
9909
+
9910
+ /* Center content vertically when no caption */
9911
+ .muka-listitem--no-caption {
9912
+ align-items: center;
9913
+ }
9914
+
9915
+ /* Leading content (icon or image) */
9916
+ .muka-listitem__leading {
9917
+ display: flex;
9918
+ align-items: center;
9919
+ justify-content: center;
9920
+ flex-shrink: 0;
9921
+ width: 48px;
9922
+ height: 48px;
9454
9923
  }
9455
9924
 
9456
- .muka-media-viewer__nav--next {
9457
- right: var(--spacing-4);
9925
+ .muka-listitem__icon {
9926
+ display: inline-flex;
9927
+ align-items: center;
9928
+ justify-content: center;
9929
+ width: 32px;
9930
+ height: 32px;
9931
+ color: var(--color-text-default-default);
9458
9932
  }
9459
9933
 
9460
- @media (hover: hover) and (pointer: fine) {
9461
- .muka-media-viewer__nav {
9462
- display: block;
9463
- }
9934
+ .muka-listitem__image {
9935
+ width: 48px;
9936
+ height: 48px;
9937
+ border-radius: var(--radius-md);
9938
+ object-fit: cover;
9939
+ }
9464
9940
 
9465
- .muka-media-viewer__stage:hover .muka-media-viewer__nav,
9466
- .muka-media-viewer__nav:focus-within {
9467
- opacity: 1;
9468
- }
9941
+ /* Main content area */
9942
+ .muka-listitem__content {
9943
+ flex: 1;
9944
+ display: flex;
9945
+ align-items: center;
9946
+ gap: var(--spacing-4);
9947
+ min-width: 0;
9469
9948
  }
9470
9949
 
9471
- /* ─── Footer: caption, meta and actions ───────────────── */
9472
- .muka-media-viewer__footer {
9473
- flex-shrink: 0;
9950
+ .muka-listitem__text {
9951
+ flex: 1;
9474
9952
  display: flex;
9475
9953
  flex-direction: column;
9476
- gap: var(--spacing-3);
9477
- padding: var(--spacing-4);
9478
- padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
9479
- background-color: var(--color-surface-level3);
9954
+ gap: var(--spacing-1);
9955
+ min-width: 0;
9480
9956
  }
9481
9957
 
9482
- .muka-media-viewer__details {
9483
- display: flex;
9484
- align-items: flex-start;
9485
- justify-content: space-between;
9486
- gap: var(--spacing-3);
9958
+ /* Label text */
9959
+ .muka-listitem__label {
9960
+ margin: 0;
9961
+ padding: 0;
9962
+
9963
+ /* Typography - using semantic tokens */
9964
+ font-family: var(--alias-font-plain-family);
9965
+ font-weight: var(--alias-font-plain-weight-semibold, 600);
9966
+ font-size: var(--text-label-md-fontSize);
9967
+ line-height: var(--text-label-md-lineHeight);
9968
+ color: var(--color-text-default-default);
9969
+
9970
+ /* Text handling */
9971
+ overflow: hidden;
9972
+ text-overflow: ellipsis;
9973
+ white-space: nowrap;
9487
9974
  }
9488
9975
 
9489
- .muka-media-viewer__caption {
9490
- min-width: 0;
9976
+ /* Caption text */
9977
+ .muka-listitem__caption {
9978
+ margin: 0;
9979
+ padding: 0;
9980
+
9981
+ /* Typography - using semantic tokens */
9982
+ font-family: var(--alias-font-plain-family);
9983
+ font-weight: var(--alias-font-plain-weight-regular, 400);
9984
+ font-size: var(--text-body-sm-fontSize);
9985
+ line-height: var(--text-body-sm-lineHeight);
9491
9986
  color: var(--color-text-subtle-default);
9492
- font-family: var(--text-body-sm-regular-fontFamily);
9493
- font-size: var(--text-body-sm-regular-fontSize);
9494
- font-weight: var(--text-body-sm-regular-fontWeight);
9495
- line-height: var(--text-body-sm-regular-lineHeight);
9496
- overflow-wrap: anywhere;
9987
+
9988
+ /* Text handling */
9989
+ overflow: hidden;
9990
+ text-overflow: ellipsis;
9991
+ white-space: nowrap;
9497
9992
  }
9498
9993
 
9499
- .muka-media-viewer__meta {
9994
+ /* Trailing chevron */
9995
+ .muka-listitem__chevron {
9996
+ display: inline-flex;
9997
+ align-items: center;
9998
+ justify-content: center;
9500
9999
  flex-shrink: 0;
10000
+ width: 24px;
10001
+ height: 24px;
10002
+ color: var(--color-text-subtle-default);
9501
10003
  }
9502
10004
 
9503
- .muka-media-viewer__actions {
9504
- display: flex;
9505
- flex-wrap: wrap;
9506
- gap: var(--spacing-2);
10005
+ /* Bottom divider */
10006
+ .muka-listitem__divider {
10007
+ position: absolute;
10008
+ bottom: 0;
10009
+ left: 0;
10010
+ right: 0;
10011
+ height: 1px;
10012
+ background-color: var(--color-border-default);
9507
10013
  }
9508
10014
 
9509
- /* Mobile: actions stack full width, like Dialog footers. */
9510
- @media (max-width: 1023px) {
9511
- .muka-media-viewer__actions {
9512
- flex-direction: column;
9513
- }
9514
-
9515
- .muka-media-viewer__actions > * {
9516
- width: 100%;
9517
- }
10015
+ /* Button and anchor specific styles */
10016
+ button.muka-listitem,
10017
+ a.muka-listitem {
10018
+ text-align: left;
10019
+ width: 100%;
9518
10020
  }
9519
10021
 
9520
- /* ─── Reduced motion ──────────────────────────────────── */
9521
- @media (prefers-reduced-motion: reduce) {
9522
- .muka-media-viewer,
9523
- .muka-media-viewer__slide,
9524
- .muka-media-viewer__nav {
9525
- animation: none;
9526
- transition: none;
9527
- }
10022
+ /* List item specific styles */
10023
+ li.muka-listitem {
10024
+ list-style: none;
9528
10025
  }
9529
10026
 
9530
10027
 
@@ -9745,214 +10242,80 @@ button.muka-progress-tracker__tab:focus-visible {
9745
10242
  line-height: var(--text-label-md-semibold-lineHeight);
9746
10243
  }
9747
10244
 
9748
- .muka-label--lg {
9749
- font-family: var(--text-label-lg-semibold-fontFamily);
9750
- font-weight: var(--text-label-lg-semibold-fontWeight);
9751
- font-size: var(--text-label-lg-semibold-fontSize);
9752
- line-height: var(--text-label-lg-semibold-lineHeight);
9753
- }
9754
-
9755
- .muka-label--disabled {
9756
- color: var(--color-text-subtle-default);
9757
- cursor: not-allowed;
9758
- }
9759
-
9760
- .muka-label__required {
9761
- color: var(--color-state-error-default);
9762
- }
9763
-
9764
-
9765
- /* ListItem */
9766
- /* ListItem Component Styles - Using Muka Design Tokens */
9767
-
9768
- /* Base list item styles */
9769
- .muka-listitem {
9770
- /* Layout */
9771
- display: flex;
9772
- align-items: flex-start;
9773
- gap: var(--spacing-4);
9774
- padding: var(--spacing-5) var(--spacing-4);
9775
-
9776
- /* Background - using semantic tokens */
9777
- background-color: var(--color-surface-level3);
9778
-
9779
- /* Typography */
9780
- font-family: var(--alias-font-brand-family);
9781
-
9782
- /* Border and spacing */
9783
- border: none;
9784
- position: relative;
9785
-
9786
- /* Interaction - only apply if interactive */
9787
- transition: background-color 0.2s ease, box-shadow 0.2s ease;
9788
- }
9789
-
9790
- /* Interactive state */
9791
- .muka-listitem--interactive {
9792
- cursor: pointer;
9793
- }
9794
-
9795
- /*
9796
- * surface.hover / surface.pressed are theme-adaptive translucent tints, so they
9797
- * are layered on top of the item's base surface via an inset box-shadow overlay
9798
- * rather than replacing background-color. This preserves the base level (level3,
9799
- * or level2 when selected) and lets the tint read correctly on any surface.
9800
- */
9801
- .muka-listitem--interactive:hover:not(:disabled):not(.muka-listitem--disabled) {
9802
- box-shadow: inset 0 0 0 9999px var(--color-surface-hover);
9803
- }
9804
-
9805
- .muka-listitem--interactive:active:not(:disabled):not(.muka-listitem--disabled),
9806
- .muka-listitem--interactive.muka-listitem--pressed:not(:disabled):not(.muka-listitem--disabled) {
9807
- box-shadow: inset 0 0 0 9999px var(--color-surface-pressed);
9808
- }
9809
-
9810
- /* Focus styles for accessibility */
9811
- .muka-listitem:focus-visible {
9812
- outline: 2px solid var(--color-border-focus);
9813
- outline-offset: -2px;
9814
- }
9815
-
9816
- /* Disabled state */
9817
- .muka-listitem--disabled {
9818
- opacity: 0.5;
9819
- cursor: not-allowed;
9820
- pointer-events: none;
9821
- }
9822
-
9823
- .muka-listitem--disabled:hover {
9824
- background-color: var(--color-surface-level3);
9825
- }
9826
-
9827
- /* Selected state */
9828
- .muka-listitem--selected {
9829
- background-color: var(--color-surface-level2);
9830
- }
9831
-
9832
- .muka-listitem--selected:hover {
9833
- box-shadow: inset 0 0 0 9999px var(--color-surface-hover);
9834
- }
9835
-
9836
- /* No divider modifier */
9837
- .muka-listitem--no-divider .muka-listitem__divider {
9838
- display: none;
9839
- }
9840
-
9841
- /* Center content vertically when no caption */
9842
- .muka-listitem--no-caption {
9843
- align-items: center;
9844
- }
9845
-
9846
- /* Leading content (icon or image) */
9847
- .muka-listitem__leading {
9848
- display: flex;
9849
- align-items: center;
9850
- justify-content: center;
9851
- flex-shrink: 0;
9852
- width: 48px;
9853
- height: 48px;
9854
- }
9855
-
9856
- .muka-listitem__icon {
9857
- display: inline-flex;
9858
- align-items: center;
9859
- justify-content: center;
9860
- width: 32px;
9861
- height: 32px;
9862
- color: var(--color-text-default-default);
10245
+ .muka-label--lg {
10246
+ font-family: var(--text-label-lg-semibold-fontFamily);
10247
+ font-weight: var(--text-label-lg-semibold-fontWeight);
10248
+ font-size: var(--text-label-lg-semibold-fontSize);
10249
+ line-height: var(--text-label-lg-semibold-lineHeight);
9863
10250
  }
9864
10251
 
9865
- .muka-listitem__image {
9866
- width: 48px;
9867
- height: 48px;
9868
- border-radius: var(--radius-md);
9869
- object-fit: cover;
10252
+ .muka-label--disabled {
10253
+ color: var(--color-text-subtle-default);
10254
+ cursor: not-allowed;
9870
10255
  }
9871
10256
 
9872
- /* Main content area */
9873
- .muka-listitem__content {
9874
- flex: 1;
9875
- display: flex;
9876
- align-items: center;
9877
- gap: var(--spacing-4);
9878
- min-width: 0;
10257
+ .muka-label__required {
10258
+ color: var(--color-state-error-default);
9879
10259
  }
9880
10260
 
9881
- .muka-listitem__text {
9882
- flex: 1;
10261
+
10262
+ /* Page */
10263
+ /* Page Component Styles */
10264
+
10265
+ /*
10266
+ * Shell for document-scrolling pages (marketing, sign-in, legal). Safe areas:
10267
+ * env(safe-area-inset-*) is 0 outside notched devices, so the padding below
10268
+ * only appears in an app running edge to edge (viewport-fit=cover).
10269
+ *
10270
+ * `--muka-page-background` is the page colour. SiteHeader reads it, so a
10271
+ * header and its status-bar scrim match the page without configuration.
10272
+ */
10273
+ .muka-page {
10274
+ --muka-page-background: var(--color-surface-level3);
9883
10275
  display: flex;
9884
10276
  flex-direction: column;
9885
- gap: var(--spacing-1);
9886
- min-width: 0;
10277
+ min-height: 100vh;
10278
+ min-height: 100dvh;
10279
+ background-color: var(--muka-page-background);
9887
10280
  }
9888
10281
 
9889
- /* Label text */
9890
- .muka-listitem__label {
9891
- margin: 0;
9892
- padding: 0;
9893
-
9894
- /* Typography - using semantic tokens */
9895
- font-family: var(--alias-font-plain-family);
9896
- font-weight: var(--alias-font-plain-weight-semibold, 600);
9897
- font-size: var(--text-label-md-fontSize);
9898
- line-height: var(--text-label-md-lineHeight);
9899
- color: var(--color-text-default-default);
9900
-
9901
- /* Text handling */
9902
- overflow: hidden;
9903
- text-overflow: ellipsis;
9904
- white-space: nowrap;
10282
+ .muka-page--surface-2 {
10283
+ --muka-page-background: var(--color-surface-level2);
9905
10284
  }
9906
10285
 
9907
- /* Caption text */
9908
- .muka-listitem__caption {
9909
- margin: 0;
9910
- padding: 0;
9911
-
9912
- /* Typography - using semantic tokens */
9913
- font-family: var(--alias-font-plain-family);
9914
- font-weight: var(--alias-font-plain-weight-regular, 400);
9915
- font-size: var(--text-body-sm-fontSize);
9916
- line-height: var(--text-body-sm-lineHeight);
9917
- color: var(--color-text-subtle-default);
9918
-
9919
- /* Text handling */
9920
- overflow: hidden;
9921
- text-overflow: ellipsis;
9922
- white-space: nowrap;
10286
+ /* Overscroll (rubber band) shows the document background: keep it the page's. */
10287
+ :root:has(.muka-page--surface-2) body {
10288
+ background-color: var(--color-surface-level2);
9923
10289
  }
9924
10290
 
9925
- /* Trailing chevron */
9926
- .muka-listitem__chevron {
9927
- display: inline-flex;
9928
- align-items: center;
9929
- justify-content: center;
10291
+ .muka-page__main {
10292
+ flex: 1 0 auto;
10293
+ display: flex;
10294
+ flex-direction: column;
10295
+ /* Landscape: clear the notch. */
10296
+ padding-left: env(safe-area-inset-left, 0px);
10297
+ padding-right: env(safe-area-inset-right, 0px);
10298
+ }
10299
+
10300
+ .muka-page__footer {
9930
10301
  flex-shrink: 0;
9931
- width: 24px;
9932
- height: 24px;
9933
- color: var(--color-text-subtle-default);
10302
+ padding-left: env(safe-area-inset-left, 0px);
10303
+ padding-right: env(safe-area-inset-right, 0px);
10304
+ padding-bottom: env(safe-area-inset-bottom, 0px);
9934
10305
  }
9935
10306
 
9936
- /* Bottom divider */
9937
- .muka-listitem__divider {
9938
- position: absolute;
9939
- bottom: 0;
9940
- left: 0;
9941
- right: 0;
9942
- height: 1px;
9943
- background-color: var(--color-border-default);
10307
+ /* A footer with its own colour: the colour runs under the home indicator. */
10308
+ .muka-page__footer--surface-2 {
10309
+ background-color: var(--color-surface-level2);
9944
10310
  }
9945
10311
 
9946
- /* Button and anchor specific styles */
9947
- button.muka-listitem,
9948
- a.muka-listitem {
9949
- text-align: left;
9950
- width: 100%;
10312
+ .muka-page__footer--surface-3 {
10313
+ background-color: var(--color-surface-level3);
9951
10314
  }
9952
10315
 
9953
- /* List item specific styles */
9954
- li.muka-listitem {
9955
- list-style: none;
10316
+ /* Without a footer, the content is last and clears the home indicator. */
10317
+ .muka-page:not(:has(> .muka-page__footer)) > .muka-page__main {
10318
+ padding-bottom: env(safe-area-inset-bottom, 0px);
9956
10319
  }
9957
10320
 
9958
10321
 
@@ -10469,6 +10832,26 @@ li.muka-listitem {
10469
10832
  }
10470
10833
 
10471
10834
 
10835
+ /* Form */
10836
+ .muka-form {
10837
+ display: flex;
10838
+ flex-direction: column;
10839
+ width: 100%;
10840
+ }
10841
+
10842
+ .muka-form--gap-sm {
10843
+ gap: var(--size-sm);
10844
+ }
10845
+
10846
+ .muka-form--gap-md {
10847
+ gap: var(--size-md);
10848
+ }
10849
+
10850
+ .muka-form--gap-lg {
10851
+ gap: var(--size-lg);
10852
+ }
10853
+
10854
+
10472
10855
  /* FileUpload */
10473
10856
  /* FileUpload Component Styles */
10474
10857
 
@@ -11407,6 +11790,49 @@ li.muka-listitem {
11407
11790
  flex-shrink: 0;
11408
11791
  }
11409
11792
 
11793
+ /* ─── Safe areas (notch, status bar, home indicator) ────
11794
+ env(safe-area-inset-*) is 0 outside notched devices, so these only change
11795
+ an app running edge to edge (viewport-fit=cover, e.g. an iOS shell). */
11796
+
11797
+ /* Top edge. Side, top and full-height drawers reach the status bar: their
11798
+ TopBar pads for it; without a header the surface does. A bottom drawer
11799
+ stops short of it, so its TopBar must not. */
11800
+ .muka-drawer--right .muka-drawer__surface:not(:has(> .muka-topbar)),
11801
+ .muka-drawer--left .muka-drawer__surface:not(:has(> .muka-topbar)),
11802
+ .muka-drawer--top .muka-drawer__surface:not(:has(> .muka-topbar)) {
11803
+ padding-top: env(safe-area-inset-top, 0px);
11804
+ }
11805
+
11806
+ .muka-drawer--bottom:not(.muka-drawer--full) .muka-topbar {
11807
+ padding-top: 0;
11808
+ }
11809
+
11810
+ /* Bottom edge. Side and bottom drawers reach the home indicator: the footer
11811
+ pads for it, or the surface when there is no footer. */
11812
+ .muka-drawer:not(.muka-drawer--top) .muka-drawer__footer {
11813
+ padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
11814
+ }
11815
+
11816
+ .muka-drawer:not(.muka-drawer--top) .muka-drawer__surface:not(:has(> .muka-drawer__footer)) {
11817
+ padding-bottom: env(safe-area-inset-bottom, 0px);
11818
+ }
11819
+
11820
+ /* Sides (landscape notch): the edge the drawer is attached to. The TopBar
11821
+ already insets its own content. */
11822
+ @media (max-width: 1023px) {
11823
+ .muka-drawer--left .muka-drawer__body,
11824
+ .muka-drawer--top .muka-drawer__body,
11825
+ .muka-drawer--bottom .muka-drawer__body {
11826
+ padding-left: max(var(--drawer-padding-x), env(safe-area-inset-left, 0px));
11827
+ }
11828
+
11829
+ .muka-drawer--right .muka-drawer__body,
11830
+ .muka-drawer--top .muka-drawer__body,
11831
+ .muka-drawer--bottom .muka-drawer__body {
11832
+ padding-right: max(var(--drawer-padding-x), env(safe-area-inset-right, 0px));
11833
+ }
11834
+ }
11835
+
11410
11836
 
11411
11837
  /* DocumentViewer */
11412
11838
  /* DocumentViewer Component Styles - Using Muka Design Tokens */
@@ -11686,6 +12112,28 @@ li.muka-listitem {
11686
12112
  max-width: 100%;
11687
12113
  }
11688
12114
 
12115
+ /* ─── Safe areas in full screen ─────────────────────────
12116
+ Full screen covers the whole display: the toolbar extends behind the status
12117
+ bar and the content clears the home indicator and a landscape notch.
12118
+ env(safe-area-inset-*) is 0 outside notched devices. */
12119
+ .muka-documentviewer--fullscreen {
12120
+ height: 100dvh;
12121
+ }
12122
+
12123
+ .muka-documentviewer--fullscreen .muka-documentviewer__toolbar {
12124
+ box-sizing: border-box;
12125
+ height: calc(var(--documentviewer-toolbar-height) + env(safe-area-inset-top, 0px));
12126
+ padding-top: calc(var(--documentviewer-toolbar-padding-y) + env(safe-area-inset-top, 0px));
12127
+ padding-left: max(var(--documentviewer-toolbar-padding-x), env(safe-area-inset-left, 0px));
12128
+ padding-right: max(var(--documentviewer-toolbar-padding-x), env(safe-area-inset-right, 0px));
12129
+ }
12130
+
12131
+ .muka-documentviewer--fullscreen .muka-documentviewer__content {
12132
+ padding-bottom: env(safe-area-inset-bottom, 0px);
12133
+ padding-left: env(safe-area-inset-left, 0px);
12134
+ padding-right: env(safe-area-inset-right, 0px);
12135
+ }
12136
+
11689
12137
 
11690
12138
  /* Divider */
11691
12139
  /* Divider Component Styles - Using Muka Design Tokens */
@@ -12037,6 +12485,44 @@ li.muka-listitem {
12037
12485
  line-height: var(--text-body-base-regular-lineHeight);
12038
12486
  }
12039
12487
 
12488
+ /* ─── Safe areas (notch, status bar, home indicator) ────
12489
+ env(safe-area-inset-*) is 0 outside notched devices, so these only change
12490
+ an app running edge to edge (viewport-fit=cover, e.g. an iOS shell). */
12491
+
12492
+ /* The surface never reaches the top of the screen, so its TopBar must not pad
12493
+ for the status bar. */
12494
+ .muka-dialog .muka-topbar {
12495
+ padding-top: 0;
12496
+ }
12497
+
12498
+ @media (max-width: 1023px) {
12499
+ /* The tallest sheet still starts below the status bar. */
12500
+ .muka-dialog--lg .muka-dialog__surface {
12501
+ height: calc(100vh - var(--dialog-margin-top-mobile) - env(safe-area-inset-top, 0px));
12502
+ height: calc(100dvh - var(--dialog-margin-top-mobile) - env(safe-area-inset-top, 0px));
12503
+ }
12504
+
12505
+ /* Landscape: keep the body clear of the notch. */
12506
+ .muka-dialog__body {
12507
+ padding-left: max(var(--dialog-padding-x), env(safe-area-inset-left, 0px));
12508
+ padding-right: max(var(--dialog-padding-x), env(safe-area-inset-right, 0px));
12509
+ }
12510
+
12511
+ /* The sheet is bottom-attached. A footer BottomBar pads itself for the home
12512
+ indicator; without a visible footer the body does. */
12513
+ .muka-dialog__surface:not(:has(.muka-dialog__footer)) .muka-dialog__body,
12514
+ .muka-dialog:not(.muka-dialog--non-modal):not(.muka-dialog--no-inputs):not(.muka-dialog--mobile-actions-footer) .muka-dialog__body {
12515
+ padding-bottom: calc(var(--dialog-padding-x) + env(safe-area-inset-bottom, 0px));
12516
+ }
12517
+ }
12518
+
12519
+ @media (min-width: 1024px) {
12520
+ /* Centred card: nothing touches the bottom edge. */
12521
+ .muka-dialog__footer .muka-bottombar {
12522
+ padding-bottom: 0;
12523
+ }
12524
+ }
12525
+
12040
12526
 
12041
12527
  /* DatePicker */
12042
12528
  /* DatePicker — compact native date field. */
@@ -13807,49 +14293,6 @@ button.muka-chat-photo-grid__tile:focus-visible {
13807
14293
  }
13808
14294
 
13809
14295
 
13810
- /* ChatMessageList */
13811
- /* ChatMessageList Component Styles */
13812
-
13813
- .muka-chat-message-list {
13814
- flex: 1 1 auto;
13815
- min-height: 0;
13816
- width: 100%;
13817
- overflow-x: clip;
13818
- overflow-y: auto;
13819
- background-color: var(--color-surface-level3);
13820
- padding: var(--section-padding-vertical-default, var(--spacing-8))
13821
- var(--section-padding-horizontal-default, var(--spacing-4));
13822
- -webkit-overflow-scrolling: touch;
13823
- overscroll-behavior: contain;
13824
- }
13825
-
13826
- .muka-chat-message-list__inner {
13827
- display: flex;
13828
- flex-direction: column;
13829
- align-items: stretch;
13830
- gap: var(--spacing-8);
13831
- width: 100%;
13832
- max-width: var(--chat-column-max-width);
13833
- margin: 0 auto;
13834
- }
13835
-
13836
- /* ─── Print ────────────────────────────────────────────── */
13837
-
13838
- @media print {
13839
- .muka-chat-message-list {
13840
- overflow: visible;
13841
- height: auto;
13842
- max-height: none;
13843
- background: none;
13844
- padding: 0;
13845
- }
13846
-
13847
- .muka-chat-message-list__inner {
13848
- max-width: 100%;
13849
- }
13850
- }
13851
-
13852
-
13853
14296
  /* ChatMessageStack */
13854
14297
  /* ChatMessageStack Component Styles */
13855
14298
 
@@ -13889,31 +14332,74 @@ button.muka-chat-photo-grid__tile:focus-visible {
13889
14332
  padding-left: calc(var(--chatbubble-avatar-size) + var(--chatbubble-row-gap));
13890
14333
  }
13891
14334
 
13892
- .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
13893
- .muka-chat-message-stack__widgets,
13894
- .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
13895
- .muka-chat-message-stack__reasoning {
13896
- padding-left: 0;
13897
- padding-right: calc(var(--chatbubble-avatar-size) + var(--chatbubble-row-gap));
13898
- }
14335
+ .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
14336
+ .muka-chat-message-stack__widgets,
14337
+ .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
14338
+ .muka-chat-message-stack__reasoning {
14339
+ padding-left: 0;
14340
+ padding-right: calc(var(--chatbubble-avatar-size) + var(--chatbubble-row-gap));
14341
+ }
14342
+
14343
+ /* Follow the message's compact rail and gap below the desktop breakpoint */
14344
+ @media (max-width: 1023px) {
14345
+ .muka-chat-message-stack--has-avatar .muka-chat-message-stack__widgets,
14346
+ .muka-chat-message-stack--has-avatar .muka-chat-message-stack__reasoning {
14347
+ padding-left: calc(
14348
+ var(--chatbubble-avatar-size-compact) + var(--chatbubble-row-gap-compact)
14349
+ );
14350
+ }
14351
+
14352
+ .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
14353
+ .muka-chat-message-stack__widgets,
14354
+ .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
14355
+ .muka-chat-message-stack__reasoning {
14356
+ padding-left: 0;
14357
+ padding-right: calc(
14358
+ var(--chatbubble-avatar-size-compact) + var(--chatbubble-row-gap-compact)
14359
+ );
14360
+ }
14361
+ }
14362
+
14363
+
14364
+ /* ChatMessageList */
14365
+ /* ChatMessageList Component Styles */
14366
+
14367
+ .muka-chat-message-list {
14368
+ flex: 1 1 auto;
14369
+ min-height: 0;
14370
+ width: 100%;
14371
+ overflow-x: clip;
14372
+ overflow-y: auto;
14373
+ background-color: var(--color-surface-level3);
14374
+ padding: var(--section-padding-vertical-default, var(--spacing-8))
14375
+ var(--section-padding-horizontal-default, var(--spacing-4));
14376
+ -webkit-overflow-scrolling: touch;
14377
+ overscroll-behavior: contain;
14378
+ }
14379
+
14380
+ .muka-chat-message-list__inner {
14381
+ display: flex;
14382
+ flex-direction: column;
14383
+ align-items: stretch;
14384
+ gap: var(--spacing-8);
14385
+ width: 100%;
14386
+ max-width: var(--chat-column-max-width);
14387
+ margin: 0 auto;
14388
+ }
14389
+
14390
+ /* ─── Print ────────────────────────────────────────────── */
13899
14391
 
13900
- /* Follow the message's compact rail and gap below the desktop breakpoint */
13901
- @media (max-width: 1023px) {
13902
- .muka-chat-message-stack--has-avatar .muka-chat-message-stack__widgets,
13903
- .muka-chat-message-stack--has-avatar .muka-chat-message-stack__reasoning {
13904
- padding-left: calc(
13905
- var(--chatbubble-avatar-size-compact) + var(--chatbubble-row-gap-compact)
13906
- );
14392
+ @media print {
14393
+ .muka-chat-message-list {
14394
+ overflow: visible;
14395
+ height: auto;
14396
+ max-height: none;
14397
+ background: none;
14398
+ padding: 0;
13907
14399
  }
13908
14400
 
13909
- .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
13910
- .muka-chat-message-stack__widgets,
13911
- .muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
13912
- .muka-chat-message-stack__reasoning {
13913
- padding-left: 0;
13914
- padding-right: calc(
13915
- var(--chatbubble-avatar-size-compact) + var(--chatbubble-row-gap-compact)
13916
- );
14401
+ .muka-chat-message-list__inner {
14402
+ max-width: 100%;
13917
14403
  }
13918
14404
  }
13919
14405
 
@@ -14541,6 +15027,42 @@ button.muka-chat-photo-grid__tile:focus-visible {
14541
15027
  }
14542
15028
 
14543
15029
 
15030
+ /* ChatChoiceCard */
15031
+ /* ChatChoiceCard — compact option rows (experimental) */
15032
+ .muka-chat-choice__list {
15033
+ display: flex;
15034
+ flex-direction: column;
15035
+ gap: var(--spacing-2);
15036
+ }
15037
+
15038
+ .muka-chat-choice__row {
15039
+ display: flex;
15040
+ align-items: center;
15041
+ min-height: var(--spacing-8);
15042
+ min-width: 0;
15043
+ }
15044
+
15045
+ .muka-chat-choice__row--other {
15046
+ gap: var(--spacing-2);
15047
+ }
15048
+
15049
+ /* The free-text option: the control, then the field filling the row. */
15050
+ .muka-chat-choice__row--other {
15051
+ flex-wrap: nowrap;
15052
+ }
15053
+
15054
+ .muka-chat-choice__row--other > .muka-radio,
15055
+ .muka-chat-choice__row--other > .muka-checkbox {
15056
+ flex: 0 0 auto;
15057
+ }
15058
+
15059
+ .muka-chat-choice__row--other > .muka-input {
15060
+ flex: 1 1 auto;
15061
+ width: auto;
15062
+ min-width: 0;
15063
+ }
15064
+
15065
+
14544
15066
  /* ChatAttachmentChip */
14545
15067
  /* ChatAttachmentChip Component Styles */
14546
15068
 
@@ -14637,245 +15159,63 @@ button.muka-chat-photo-grid__tile:focus-visible {
14637
15159
  }
14638
15160
 
14639
15161
  .muka-chat-attachment-chip--error .muka-chat-attachment-chip__meta {
14640
- color: var(--color-state-error-default, var(--color-text-default-default));
14641
- }
14642
-
14643
- /* ─── Remove button ────────────────────────────────────── */
14644
-
14645
- .muka-chat-attachment-chip__remove {
14646
- display: inline-flex;
14647
- align-items: center;
14648
- justify-content: center;
14649
- width: 20px;
14650
- height: 20px;
14651
- border: none;
14652
- background: none;
14653
- padding: 0;
14654
- border-radius: var(--radius-sm);
14655
- cursor: pointer;
14656
- color: var(--color-text-subtle-default);
14657
- flex-shrink: 0;
14658
- -webkit-tap-highlight-color: transparent;
14659
- }
14660
-
14661
- .muka-chat-attachment-chip__remove:hover:not(:disabled) {
14662
- color: var(--color-text-default-default);
14663
- background-color: var(--color-surface-level2);
14664
- }
14665
-
14666
- .muka-chat-attachment-chip__remove:focus-visible {
14667
- outline: 2px solid var(--color-action-default);
14668
- outline-offset: 2px;
14669
- }
14670
-
14671
- .muka-chat-attachment-chip__remove:disabled {
14672
- cursor: not-allowed;
14673
- opacity: 0.5;
14674
- }
14675
-
14676
- /* ─── Progress bar ─────────────────────────────────────── */
14677
-
14678
- .muka-chat-attachment-chip__progress {
14679
- position: absolute;
14680
- left: 0;
14681
- right: 0;
14682
- bottom: 0;
14683
- height: 2px;
14684
- background-color: var(--color-surface-level2);
14685
- overflow: hidden;
14686
- }
14687
-
14688
- .muka-chat-attachment-chip__progress-fill {
14689
- display: block;
14690
- height: 100%;
14691
- background-color: var(--color-action-default);
14692
- transition: width 0.16s ease;
14693
- }
14694
-
14695
- .muka-chat-attachment-chip--error .muka-chat-attachment-chip__progress-fill {
14696
- background-color: var(--color-state-error-default, var(--color-text-default-default));
14697
- }
14698
-
14699
-
14700
- /* ChatChoiceCard */
14701
- /* ChatChoiceCard — compact option rows (experimental) */
14702
- .muka-chat-choice__list {
14703
- display: flex;
14704
- flex-direction: column;
14705
- gap: var(--spacing-2);
14706
- }
14707
-
14708
- .muka-chat-choice__row {
14709
- display: flex;
14710
- align-items: center;
14711
- min-height: var(--spacing-8);
14712
- min-width: 0;
14713
- }
14714
-
14715
- .muka-chat-choice__row--other {
14716
- gap: var(--spacing-2);
14717
- }
14718
-
14719
- /* The free-text option: the control, then the field filling the row. */
14720
- .muka-chat-choice__row--other {
14721
- flex-wrap: nowrap;
14722
- }
14723
-
14724
- .muka-chat-choice__row--other > .muka-radio,
14725
- .muka-chat-choice__row--other > .muka-checkbox {
14726
- flex: 0 0 auto;
14727
- }
14728
-
14729
- .muka-chat-choice__row--other > .muka-input {
14730
- flex: 1 1 auto;
14731
- width: auto;
14732
- min-width: 0;
14733
- }
14734
-
14735
-
14736
- /* Card */
14737
- /* Card Component Styles - Using Muka Design Tokens */
14738
-
14739
- .muka-card {
14740
- background-color: var(--card-color-default-background);
14741
- color: var(--card-color-default-foreground);
14742
- border: var(--border-width-regular) solid var(--card-color-default-border);
14743
- box-shadow: var(--card-shadow-default);
14744
- transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
14745
- overflow: hidden;
14746
- }
14747
-
14748
- /* Padding variants */
14749
- .muka-card--padding-none {
14750
- padding: 0;
14751
- }
14752
-
14753
- .muka-card--padding-sm {
14754
- padding: var(--card-padding-sm);
14755
- }
14756
-
14757
- .muka-card--padding-md {
14758
- padding: var(--card-padding-md);
14759
- }
14760
-
14761
- .muka-card--padding-lg {
14762
- padding: var(--card-padding-lg);
14763
- }
14764
-
14765
- /* Radius variants */
14766
- .muka-card--radius-sm {
14767
- border-radius: var(--card-radius-sm);
14768
- }
14769
-
14770
- .muka-card--radius-md {
14771
- border-radius: var(--card-radius-md);
14772
- }
14773
-
14774
- .muka-card--radius-lg {
14775
- border-radius: var(--card-radius-lg);
14776
- }
14777
-
14778
- /* Interactive variant */
14779
- .muka-card--interactive {
14780
- cursor: pointer;
14781
- user-select: none;
14782
- }
14783
-
14784
- .muka-card--interactive:hover {
14785
- background-color: var(--card-color-hover-background);
14786
- border-color: var(--card-color-hover-border);
14787
- box-shadow: var(--card-shadow-hover);
14788
- }
14789
-
14790
- .muka-card--interactive:active,
14791
- .muka-card--interactive.muka-card--pressed {
14792
- background-color: var(--card-color-pressed-background);
14793
- border-color: var(--card-color-pressed-border);
14794
- box-shadow: var(--card-shadow-pressed);
14795
- }
14796
-
14797
- .muka-card--interactive:focus-visible {
14798
- outline: 2px solid var(--color-border-focus);
14799
- outline-offset: 2px;
14800
- }
14801
-
14802
- /* Selected variant */
14803
- .muka-card--selected {
14804
- background-color: var(--card-color-selected-background);
14805
- border-color: var(--card-color-selected-border);
14806
- border-width: var(--border-width-bold);
14807
- box-shadow: var(--card-shadow-selected);
14808
- }
14809
-
14810
- /* Tone: sticky note (MUK-105) */
14811
- .muka-card--tone-note {
14812
- background-color: var(--card-color-note-background);
14813
- color: var(--card-color-note-foreground);
14814
- border-color: var(--card-color-note-border);
14815
- box-shadow: var(--card-shadow-note);
14816
- }
14817
-
14818
- .muka-card--tone-note.muka-card--interactive:hover,
14819
- .muka-card--tone-note.muka-card--interactive:active,
14820
- .muka-card--tone-note.muka-card--interactive.muka-card--pressed {
14821
- background-color: var(--card-color-note-background);
14822
- border-color: var(--card-color-note-border);
14823
- }
14824
-
14825
- .muka-card--tilt-left {
14826
- transform: rotate(-0.75deg);
15162
+ color: var(--color-state-error-default, var(--color-text-default-default));
14827
15163
  }
14828
15164
 
14829
- .muka-card--tilt-right {
14830
- transform: rotate(0.6deg);
14831
- }
15165
+ /* ─── Remove button ────────────────────────────────────── */
14832
15166
 
14833
- @media (prefers-reduced-motion: no-preference) {
14834
- .muka-card--tilt-left,
14835
- .muka-card--tilt-right {
14836
- transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
14837
- }
15167
+ .muka-chat-attachment-chip__remove {
15168
+ display: inline-flex;
15169
+ align-items: center;
15170
+ justify-content: center;
15171
+ width: 20px;
15172
+ height: 20px;
15173
+ border: none;
15174
+ background: none;
15175
+ padding: 0;
15176
+ border-radius: var(--radius-sm);
15177
+ cursor: pointer;
15178
+ color: var(--color-text-subtle-default);
15179
+ flex-shrink: 0;
15180
+ -webkit-tap-highlight-color: transparent;
14838
15181
  }
14839
15182
 
14840
- .muka-card--interactive.muka-card--tilt-left:hover,
14841
- .muka-card--interactive.muka-card--tilt-right:hover {
14842
- transform: none;
15183
+ .muka-chat-attachment-chip__remove:hover:not(:disabled) {
15184
+ color: var(--color-text-default-default);
15185
+ background-color: var(--color-surface-level2);
14843
15186
  }
14844
15187
 
14845
- /* Optional header (title + description) */
14846
- .muka-card__header {
14847
- margin-bottom: var(--spacing-4);
15188
+ .muka-chat-attachment-chip__remove:focus-visible {
15189
+ outline: 2px solid var(--color-action-default);
15190
+ outline-offset: 2px;
14848
15191
  }
14849
15192
 
14850
- .muka-card__title {
14851
- margin: 0;
14852
- color: var(--color-text-default-default);
14853
- font-family: var(--text-heading-xs-fontFamily);
14854
- font-weight: var(--text-heading-xs-fontWeight);
14855
- font-size: var(--text-heading-xs-fontSize);
14856
- line-height: var(--text-heading-xs-lineHeight);
14857
- letter-spacing: var(--text-heading-xs-letterSpacing);
15193
+ .muka-chat-attachment-chip__remove:disabled {
15194
+ cursor: not-allowed;
15195
+ opacity: 0.5;
14858
15196
  }
14859
15197
 
14860
- .muka-card__description {
14861
- margin: var(--spacing-1) 0 0;
14862
- color: var(--color-text-subtle-default);
14863
- font-family: var(--text-body-sm-regular-fontFamily);
14864
- font-weight: var(--text-body-sm-regular-fontWeight);
14865
- font-size: var(--text-body-sm-regular-fontSize);
14866
- line-height: var(--text-body-sm-regular-lineHeight);
15198
+ /* ─── Progress bar ─────────────────────────────────────── */
15199
+
15200
+ .muka-chat-attachment-chip__progress {
15201
+ position: absolute;
15202
+ left: 0;
15203
+ right: 0;
15204
+ bottom: 0;
15205
+ height: 2px;
15206
+ background-color: var(--color-surface-level2);
15207
+ overflow: hidden;
14867
15208
  }
14868
15209
 
14869
- /* Hide divider on last list item inside card */
14870
- .muka-card > .muka-listitem:last-child > .muka-listitem__divider {
14871
- display: none;
15210
+ .muka-chat-attachment-chip__progress-fill {
15211
+ display: block;
15212
+ height: 100%;
15213
+ background-color: var(--color-action-default);
15214
+ transition: width 0.16s ease;
14872
15215
  }
14873
15216
 
14874
- /* Disabled state */
14875
- .muka-card--disabled {
14876
- opacity: 0.5;
14877
- cursor: not-allowed;
14878
- pointer-events: none;
15217
+ .muka-chat-attachment-chip--error .muka-chat-attachment-chip__progress-fill {
15218
+ background-color: var(--color-state-error-default, var(--color-text-default-default));
14879
15219
  }
14880
15220
 
14881
15221
 
@@ -15233,6 +15573,98 @@ button.muka-chat-photo-grid__tile:focus-visible {
15233
15573
  }
15234
15574
 
15235
15575
 
15576
+ /* Breadcrumb */
15577
+ /* Breadcrumb Component Styles (Figma: Breadcrumb 6770:12446)
15578
+ *
15579
+ * Every level is a ghost Chip (Chip.css); this file only lays them out,
15580
+ * with the same gap (breadcrumb.gap.separator, 4px) on either side of the
15581
+ * separator.
15582
+ */
15583
+
15584
+ .muka-breadcrumb__list {
15585
+ display: flex;
15586
+ align-items: center;
15587
+ flex-wrap: wrap;
15588
+ list-style: none;
15589
+ margin: 0;
15590
+ padding: 0;
15591
+ gap: var(--breadcrumb-gap-separator);
15592
+ }
15593
+
15594
+ .muka-breadcrumb__item {
15595
+ display: inline-flex;
15596
+ align-items: center;
15597
+ gap: var(--breadcrumb-gap-separator);
15598
+ min-width: 0;
15599
+ }
15600
+
15601
+ .muka-breadcrumb__separator,
15602
+ .muka-breadcrumb__ellipsis {
15603
+ color: var(--breadcrumb-separator-color);
15604
+ user-select: none;
15605
+ }
15606
+
15607
+ /* Size variants: separator and ellipsis type (the chips size themselves) */
15608
+ .muka-breadcrumb--sm {
15609
+ font-family: var(--text-label-sm-regular-fontFamily);
15610
+ font-weight: var(--text-label-sm-regular-fontWeight);
15611
+ font-size: var(--text-label-sm-regular-fontSize);
15612
+ line-height: var(--text-label-sm-regular-lineHeight);
15613
+ }
15614
+
15615
+ .muka-breadcrumb--md {
15616
+ font-family: var(--text-label-md-regular-fontFamily);
15617
+ font-weight: var(--text-label-md-regular-fontWeight);
15618
+ font-size: var(--text-label-md-regular-fontSize);
15619
+ line-height: var(--text-label-md-regular-lineHeight);
15620
+ }
15621
+
15622
+ .muka-breadcrumb--lg {
15623
+ font-family: var(--text-label-lg-regular-fontFamily);
15624
+ font-weight: var(--text-label-lg-regular-fontWeight);
15625
+ font-size: var(--text-label-lg-regular-fontSize);
15626
+ line-height: var(--text-label-lg-regular-lineHeight);
15627
+ }
15628
+
15629
+ .muka-breadcrumb__menu {
15630
+ min-width: 17.5rem;
15631
+ }
15632
+
15633
+ /*
15634
+ * Truncate: one line. The current page shortens first, down to
15635
+ * breadcrumb.truncate.current.minWidth (4rem: an ellipsis and a few
15636
+ * characters, and below the width of almost any chip, so it rarely reserves
15637
+ * space a short label doesn't use); after that the earlier levels shorten too,
15638
+ * each with an ellipsis.
15639
+ *
15640
+ * Only min-width sets the floor. A width (or flex-basis) on the item would
15641
+ * also become the breadcrumb's intrinsic width, and a breadcrumb sized by its
15642
+ * content would then collapse to the floor.
15643
+ */
15644
+ .muka-breadcrumb--truncate {
15645
+ min-width: 0;
15646
+ overflow: hidden;
15647
+ }
15648
+
15649
+ .muka-breadcrumb--truncate .muka-breadcrumb__list {
15650
+ flex-wrap: nowrap;
15651
+ min-width: 0;
15652
+ }
15653
+
15654
+ .muka-breadcrumb--truncate .muka-breadcrumb__item {
15655
+ flex: 0 1 auto;
15656
+ }
15657
+
15658
+ .muka-breadcrumb--truncate .muka-breadcrumb__item:last-child {
15659
+ flex-shrink: 1000;
15660
+ min-width: min(var(--breadcrumb-truncate-current-minWidth), 100%);
15661
+ }
15662
+
15663
+ .muka-breadcrumb--truncate .muka-breadcrumb__chip {
15664
+ min-width: 0;
15665
+ }
15666
+
15667
+
15236
15668
  /* BottomBar */
15237
15669
  /* BottomBar Component Styles */
15238
15670
 
@@ -15497,6 +15929,8 @@ button.muka-chat-photo-grid__tile:focus-visible {
15497
15929
  flex-direction: column;
15498
15930
  align-items: stretch;
15499
15931
  padding: var(--spacing-4) var(--spacing-3);
15932
+ /* The rail runs to the top of the screen: clear the status bar there. */
15933
+ padding-top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
15500
15934
  gap: var(--spacing-1);
15501
15935
  }
15502
15936
 
@@ -15551,149 +15985,57 @@ button.muka-chat-photo-grid__tile:focus-visible {
15551
15985
  display: none;
15552
15986
  }
15553
15987
 
15554
- .muka-bottombar--desktop-topnav .muka-bottombar__content {
15555
- flex-direction: row;
15556
- justify-content: center;
15557
- gap: var(--spacing-1);
15558
- padding: 0 var(--spacing-4);
15559
- max-width: var(--container-max-width-large, 1200px);
15560
- margin: 0 auto;
15561
- }
15562
-
15563
- .muka-bottombar--desktop-topnav .muka-bottombar__tab {
15564
- flex: 0 0 auto;
15565
- flex-direction: row;
15566
- gap: var(--spacing-2);
15567
- padding: var(--spacing-3) var(--spacing-4);
15568
- border-radius: 0;
15569
- border-bottom: 2px solid transparent;
15570
- }
15571
-
15572
- .muka-bottombar--desktop-topnav .muka-bottombar__tab--active {
15573
- border-bottom-color: var(--color-action-default);
15574
- }
15575
-
15576
- .muka-bottombar--desktop-topnav .muka-bottombar__tab:hover {
15577
- background-color: var(--color-surface-level2);
15578
- }
15579
-
15580
- .muka-bottombar--desktop-topnav .muka-bottombar__tab-label {
15581
- font-family: var(--text-label-md-regular-fontFamily);
15582
- font-weight: var(--text-label-md-regular-fontWeight);
15583
- font-size: var(--text-label-md-regular-fontSize);
15584
- line-height: var(--text-label-md-regular-lineHeight);
15585
- }
15586
-
15587
- /* When floating and topnav, remove the floating card styles */
15588
- .muka-bottombar--desktop-topnav.muka-bottombar--floating {
15589
- padding: 0;
15590
- }
15591
-
15592
- .muka-bottombar--desktop-topnav.muka-bottombar--floating .muka-bottombar__content {
15593
- background-color: transparent;
15594
- border-radius: 0;
15595
- box-shadow: none;
15596
- }
15597
- }
15598
-
15599
- /* ─── Print ────────────────────────────────────────────── */
15600
-
15601
- @media print {
15602
- .muka-bottombar {
15603
- display: none;
15604
- }
15605
- }
15606
-
15607
-
15608
- /* Breadcrumb */
15609
- /* Breadcrumb Component Styles (Figma: Breadcrumb 6770:12446)
15610
- *
15611
- * Every level is a ghost Chip (Chip.css); this file only lays them out,
15612
- * with the same gap (breadcrumb.gap.separator, 4px) on either side of the
15613
- * separator.
15614
- */
15615
-
15616
- .muka-breadcrumb__list {
15617
- display: flex;
15618
- align-items: center;
15619
- flex-wrap: wrap;
15620
- list-style: none;
15621
- margin: 0;
15622
- padding: 0;
15623
- gap: var(--breadcrumb-gap-separator);
15624
- }
15625
-
15626
- .muka-breadcrumb__item {
15627
- display: inline-flex;
15628
- align-items: center;
15629
- gap: var(--breadcrumb-gap-separator);
15630
- min-width: 0;
15631
- }
15632
-
15633
- .muka-breadcrumb__separator,
15634
- .muka-breadcrumb__ellipsis {
15635
- color: var(--breadcrumb-separator-color);
15636
- user-select: none;
15637
- }
15638
-
15639
- /* Size variants: separator and ellipsis type (the chips size themselves) */
15640
- .muka-breadcrumb--sm {
15641
- font-family: var(--text-label-sm-regular-fontFamily);
15642
- font-weight: var(--text-label-sm-regular-fontWeight);
15643
- font-size: var(--text-label-sm-regular-fontSize);
15644
- line-height: var(--text-label-sm-regular-lineHeight);
15645
- }
15988
+ .muka-bottombar--desktop-topnav .muka-bottombar__content {
15989
+ flex-direction: row;
15990
+ justify-content: center;
15991
+ gap: var(--spacing-1);
15992
+ padding: 0 var(--spacing-4);
15993
+ max-width: var(--container-max-width-large, 1200px);
15994
+ margin: 0 auto;
15995
+ }
15646
15996
 
15647
- .muka-breadcrumb--md {
15648
- font-family: var(--text-label-md-regular-fontFamily);
15649
- font-weight: var(--text-label-md-regular-fontWeight);
15650
- font-size: var(--text-label-md-regular-fontSize);
15651
- line-height: var(--text-label-md-regular-lineHeight);
15652
- }
15997
+ .muka-bottombar--desktop-topnav .muka-bottombar__tab {
15998
+ flex: 0 0 auto;
15999
+ flex-direction: row;
16000
+ gap: var(--spacing-2);
16001
+ padding: var(--spacing-3) var(--spacing-4);
16002
+ border-radius: 0;
16003
+ border-bottom: 2px solid transparent;
16004
+ }
15653
16005
 
15654
- .muka-breadcrumb--lg {
15655
- font-family: var(--text-label-lg-regular-fontFamily);
15656
- font-weight: var(--text-label-lg-regular-fontWeight);
15657
- font-size: var(--text-label-lg-regular-fontSize);
15658
- line-height: var(--text-label-lg-regular-lineHeight);
15659
- }
16006
+ .muka-bottombar--desktop-topnav .muka-bottombar__tab--active {
16007
+ border-bottom-color: var(--color-action-default);
16008
+ }
15660
16009
 
15661
- .muka-breadcrumb__menu {
15662
- min-width: 17.5rem;
15663
- }
16010
+ .muka-bottombar--desktop-topnav .muka-bottombar__tab:hover {
16011
+ background-color: var(--color-surface-level2);
16012
+ }
15664
16013
 
15665
- /*
15666
- * Truncate: one line. The current page shortens first, down to
15667
- * breadcrumb.truncate.current.minWidth (4rem: an ellipsis and a few
15668
- * characters, and below the width of almost any chip, so it rarely reserves
15669
- * space a short label doesn't use); after that the earlier levels shorten too,
15670
- * each with an ellipsis.
15671
- *
15672
- * Only min-width sets the floor. A width (or flex-basis) on the item would
15673
- * also become the breadcrumb's intrinsic width, and a breadcrumb sized by its
15674
- * content would then collapse to the floor.
15675
- */
15676
- .muka-breadcrumb--truncate {
15677
- min-width: 0;
15678
- overflow: hidden;
15679
- }
16014
+ .muka-bottombar--desktop-topnav .muka-bottombar__tab-label {
16015
+ font-family: var(--text-label-md-regular-fontFamily);
16016
+ font-weight: var(--text-label-md-regular-fontWeight);
16017
+ font-size: var(--text-label-md-regular-fontSize);
16018
+ line-height: var(--text-label-md-regular-lineHeight);
16019
+ }
15680
16020
 
15681
- .muka-breadcrumb--truncate .muka-breadcrumb__list {
15682
- flex-wrap: nowrap;
15683
- min-width: 0;
15684
- }
16021
+ /* When floating and topnav, remove the floating card styles */
16022
+ .muka-bottombar--desktop-topnav.muka-bottombar--floating {
16023
+ padding: 0;
16024
+ }
15685
16025
 
15686
- .muka-breadcrumb--truncate .muka-breadcrumb__item {
15687
- flex: 0 1 auto;
16026
+ .muka-bottombar--desktop-topnav.muka-bottombar--floating .muka-bottombar__content {
16027
+ background-color: transparent;
16028
+ border-radius: 0;
16029
+ box-shadow: none;
16030
+ }
15688
16031
  }
15689
16032
 
15690
- .muka-breadcrumb--truncate .muka-breadcrumb__item:last-child {
15691
- flex-shrink: 1000;
15692
- min-width: min(var(--breadcrumb-truncate-current-minWidth), 100%);
15693
- }
16033
+ /* ─── Print ────────────────────────────────────────────── */
15694
16034
 
15695
- .muka-breadcrumb--truncate .muka-breadcrumb__chip {
15696
- min-width: 0;
16035
+ @media print {
16036
+ .muka-bottombar {
16037
+ display: none;
16038
+ }
15697
16039
  }
15698
16040
 
15699
16041
 
@@ -16449,8 +16791,11 @@ button.muka-chat-photo-grid__tile:focus-visible {
16449
16791
  position: relative;
16450
16792
  /* Reserved width for the rail; matches BottomBar's desktop-sidebar width. */
16451
16793
  --app-shell-sidebar-width: 240px;
16452
- /* Height of the optional top app bar. */
16794
+ /* Height of the optional top app bar, without the status-bar inset. */
16453
16795
  --app-shell-appbar-height: 64px;
16796
+ /* What the app bar actually takes from the top: its height plus the status
16797
+ bar on a device with one (an iPad in an app shell); 0 inset elsewhere. */
16798
+ --app-shell-appbar-offset: calc(var(--app-shell-appbar-height) + env(safe-area-inset-top, 0px));
16454
16799
  }
16455
16800
 
16456
16801
  /* Sidebar slot: hidden below the large tier (per-view nav handles small/medium). */
@@ -16475,7 +16820,10 @@ button.muka-chat-photo-grid__tile:focus-visible {
16475
16820
  top: 0;
16476
16821
  left: 0;
16477
16822
  right: 0;
16478
- height: var(--app-shell-appbar-height);
16823
+ /* Extends behind the status bar in its own colour; content starts below it. */
16824
+ box-sizing: border-box;
16825
+ height: var(--app-shell-appbar-offset);
16826
+ padding-top: env(safe-area-inset-top, 0px);
16479
16827
  padding-inline: var(--spacing-4);
16480
16828
  background-color: var(--color-surface-level3);
16481
16829
  border-bottom: var(--border-width-regular) solid var(--color-border-default);
@@ -16495,15 +16843,15 @@ button.muka-chat-photo-grid__tile:focus-visible {
16495
16843
  }
16496
16844
  /* When an app bar is present, drop the rail + content below it so nothing overlaps. */
16497
16845
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-app-shell__main {
16498
- padding-top: var(--app-shell-appbar-height);
16846
+ padding-top: var(--app-shell-appbar-offset);
16499
16847
  }
16500
16848
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
16501
- top: var(--app-shell-appbar-height);
16502
- height: calc(100vh - var(--app-shell-appbar-height));
16849
+ top: var(--app-shell-appbar-offset);
16850
+ height: calc(100vh - var(--app-shell-appbar-offset));
16503
16851
  }
16504
16852
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view,
16505
16853
  .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-nav-transition {
16506
- height: calc(100dvh - var(--app-shell-appbar-height));
16854
+ height: calc(100dvh - var(--app-shell-appbar-offset));
16507
16855
  }
16508
16856
  }
16509
16857
 
@@ -16518,35 +16866,35 @@ button.muka-chat-photo-grid__tile:focus-visible {
16518
16866
  display: flex;
16519
16867
  }
16520
16868
  .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-app-shell__main {
16521
- padding-top: var(--app-shell-appbar-height);
16869
+ padding-top: var(--app-shell-appbar-offset);
16522
16870
  }
16523
16871
  .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
16524
- top: var(--app-shell-appbar-height);
16525
- height: calc(100vh - var(--app-shell-appbar-height));
16872
+ top: var(--app-shell-appbar-offset);
16873
+ height: calc(100vh - var(--app-shell-appbar-offset));
16526
16874
  }
16527
16875
  .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view,
16528
16876
  .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-nav-transition {
16529
- height: calc(100dvh - var(--app-shell-appbar-height));
16530
- }
16531
-
16532
-
16533
- /* Form */
16534
- .muka-form {
16535
- display: flex;
16536
- flex-direction: column;
16537
- width: 100%;
16877
+ height: calc(100dvh - var(--app-shell-appbar-offset));
16538
16878
  }
16539
16879
 
16540
- .muka-form--gap-sm {
16541
- gap: var(--size-sm);
16880
+ /* ─── Below an app bar, the status bar is already covered ───
16881
+ The app bar takes the top inset, so the View's TopBar and the sidebar rail
16882
+ under it must not pad for the status bar a second time. */
16883
+ @media (min-width: 1024px) {
16884
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view .muka-topbar {
16885
+ padding-top: 0;
16886
+ }
16887
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar .muka-bottombar__content {
16888
+ padding-top: var(--spacing-4);
16889
+ }
16542
16890
  }
16543
16891
 
16544
- .muka-form--gap-md {
16545
- gap: var(--size-md);
16892
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view .muka-topbar {
16893
+ padding-top: 0;
16546
16894
  }
16547
16895
 
16548
- .muka-form--gap-lg {
16549
- gap: var(--size-lg);
16896
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar .muka-bottombar__content {
16897
+ padding-top: var(--spacing-4);
16550
16898
  }
16551
16899
 
16552
16900
 
@@ -17202,3 +17550,149 @@ button.muka-chat-photo-grid__tile:focus-visible {
17202
17550
  border-bottom: none;
17203
17551
  }
17204
17552
 
17553
+
17554
+ /* Card */
17555
+ /* Card Component Styles - Using Muka Design Tokens */
17556
+
17557
+ .muka-card {
17558
+ background-color: var(--card-color-default-background);
17559
+ color: var(--card-color-default-foreground);
17560
+ border: var(--border-width-regular) solid var(--card-color-default-border);
17561
+ box-shadow: var(--card-shadow-default);
17562
+ transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
17563
+ overflow: hidden;
17564
+ }
17565
+
17566
+ /* Padding variants */
17567
+ .muka-card--padding-none {
17568
+ padding: 0;
17569
+ }
17570
+
17571
+ .muka-card--padding-sm {
17572
+ padding: var(--card-padding-sm);
17573
+ }
17574
+
17575
+ .muka-card--padding-md {
17576
+ padding: var(--card-padding-md);
17577
+ }
17578
+
17579
+ .muka-card--padding-lg {
17580
+ padding: var(--card-padding-lg);
17581
+ }
17582
+
17583
+ /* Radius variants */
17584
+ .muka-card--radius-sm {
17585
+ border-radius: var(--card-radius-sm);
17586
+ }
17587
+
17588
+ .muka-card--radius-md {
17589
+ border-radius: var(--card-radius-md);
17590
+ }
17591
+
17592
+ .muka-card--radius-lg {
17593
+ border-radius: var(--card-radius-lg);
17594
+ }
17595
+
17596
+ /* Interactive variant */
17597
+ .muka-card--interactive {
17598
+ cursor: pointer;
17599
+ user-select: none;
17600
+ }
17601
+
17602
+ .muka-card--interactive:hover {
17603
+ background-color: var(--card-color-hover-background);
17604
+ border-color: var(--card-color-hover-border);
17605
+ box-shadow: var(--card-shadow-hover);
17606
+ }
17607
+
17608
+ .muka-card--interactive:active,
17609
+ .muka-card--interactive.muka-card--pressed {
17610
+ background-color: var(--card-color-pressed-background);
17611
+ border-color: var(--card-color-pressed-border);
17612
+ box-shadow: var(--card-shadow-pressed);
17613
+ }
17614
+
17615
+ .muka-card--interactive:focus-visible {
17616
+ outline: 2px solid var(--color-border-focus);
17617
+ outline-offset: 2px;
17618
+ }
17619
+
17620
+ /* Selected variant */
17621
+ .muka-card--selected {
17622
+ background-color: var(--card-color-selected-background);
17623
+ border-color: var(--card-color-selected-border);
17624
+ border-width: var(--border-width-bold);
17625
+ box-shadow: var(--card-shadow-selected);
17626
+ }
17627
+
17628
+ /* Tone: sticky note (MUK-105) */
17629
+ .muka-card--tone-note {
17630
+ background-color: var(--card-color-note-background);
17631
+ color: var(--card-color-note-foreground);
17632
+ border-color: var(--card-color-note-border);
17633
+ box-shadow: var(--card-shadow-note);
17634
+ }
17635
+
17636
+ .muka-card--tone-note.muka-card--interactive:hover,
17637
+ .muka-card--tone-note.muka-card--interactive:active,
17638
+ .muka-card--tone-note.muka-card--interactive.muka-card--pressed {
17639
+ background-color: var(--card-color-note-background);
17640
+ border-color: var(--card-color-note-border);
17641
+ }
17642
+
17643
+ .muka-card--tilt-left {
17644
+ transform: rotate(-0.75deg);
17645
+ }
17646
+
17647
+ .muka-card--tilt-right {
17648
+ transform: rotate(0.6deg);
17649
+ }
17650
+
17651
+ @media (prefers-reduced-motion: no-preference) {
17652
+ .muka-card--tilt-left,
17653
+ .muka-card--tilt-right {
17654
+ transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
17655
+ }
17656
+ }
17657
+
17658
+ .muka-card--interactive.muka-card--tilt-left:hover,
17659
+ .muka-card--interactive.muka-card--tilt-right:hover {
17660
+ transform: none;
17661
+ }
17662
+
17663
+ /* Optional header (title + description) */
17664
+ .muka-card__header {
17665
+ margin-bottom: var(--spacing-4);
17666
+ }
17667
+
17668
+ .muka-card__title {
17669
+ margin: 0;
17670
+ color: var(--color-text-default-default);
17671
+ font-family: var(--text-heading-xs-fontFamily);
17672
+ font-weight: var(--text-heading-xs-fontWeight);
17673
+ font-size: var(--text-heading-xs-fontSize);
17674
+ line-height: var(--text-heading-xs-lineHeight);
17675
+ letter-spacing: var(--text-heading-xs-letterSpacing);
17676
+ }
17677
+
17678
+ .muka-card__description {
17679
+ margin: var(--spacing-1) 0 0;
17680
+ color: var(--color-text-subtle-default);
17681
+ font-family: var(--text-body-sm-regular-fontFamily);
17682
+ font-weight: var(--text-body-sm-regular-fontWeight);
17683
+ font-size: var(--text-body-sm-regular-fontSize);
17684
+ line-height: var(--text-body-sm-regular-lineHeight);
17685
+ }
17686
+
17687
+ /* Hide divider on last list item inside card */
17688
+ .muka-card > .muka-listitem:last-child > .muka-listitem__divider {
17689
+ display: none;
17690
+ }
17691
+
17692
+ /* Disabled state */
17693
+ .muka-card--disabled {
17694
+ opacity: 0.5;
17695
+ cursor: not-allowed;
17696
+ pointer-events: none;
17697
+ }
17698
+