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