@revikornmann/muka-ui 0.41.0 → 0.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/build/manifest.json +20 -10
  2. package/dist/cjs/components/BottomBar/BottomBar.css +56 -0
  3. package/dist/cjs/components/BottomBar/BottomBar.js +8 -2
  4. package/dist/cjs/components/BottomBar/BottomBar.js.map +1 -1
  5. package/dist/cjs/components/Dialog/Dialog.css +43 -0
  6. package/dist/cjs/components/Dialog/Dialog.js +34 -9
  7. package/dist/cjs/components/Dialog/Dialog.js.map +1 -1
  8. package/dist/cjs/components/Drawer/Drawer.css +10 -1
  9. package/dist/cjs/components/Sheet/Sheet.css +2 -0
  10. package/dist/esm/components/BottomBar/BottomBar.css +56 -0
  11. package/dist/esm/components/BottomBar/BottomBar.js +8 -2
  12. package/dist/esm/components/BottomBar/BottomBar.js.map +1 -1
  13. package/dist/esm/components/Dialog/Dialog.css +43 -0
  14. package/dist/esm/components/Dialog/Dialog.js +34 -9
  15. package/dist/esm/components/Dialog/Dialog.js.map +1 -1
  16. package/dist/esm/components/Drawer/Drawer.css +10 -1
  17. package/dist/esm/components/Sheet/Sheet.css +2 -0
  18. package/dist/styles/components/BottomBar.css +56 -0
  19. package/dist/styles/components/Dialog.css +43 -0
  20. package/dist/styles/components/Drawer.css +10 -1
  21. package/dist/styles/components/Sheet.css +2 -0
  22. package/dist/styles/index.css +837 -715
  23. package/dist/styles/muka-dark.css +837 -715
  24. package/dist/styles/muka-light.css +837 -715
  25. package/dist/styles/tokens-bouwplan-dark.css +12 -0
  26. package/dist/styles/tokens-bouwplan-light.css +12 -0
  27. package/dist/styles/tokens-fscl-dark.css +12 -0
  28. package/dist/styles/tokens-fscl-light.css +12 -0
  29. package/dist/styles/tokens-grip-dark.css +12 -0
  30. package/dist/styles/tokens-grip-light.css +12 -0
  31. package/dist/styles/tokens-muka-dark.css +12 -0
  32. package/dist/styles/tokens-muka-light.css +12 -0
  33. package/dist/styles/tokens-wireframe-dark.css +12 -0
  34. package/dist/styles/tokens-wireframe-light.css +12 -0
  35. package/dist/styles/wireframe-dark.css +837 -715
  36. package/dist/styles/wireframe-light.css +837 -715
  37. package/dist/types/components/BottomBar/BottomBar.d.ts +16 -0
  38. package/dist/types/components/BottomBar/BottomBar.d.ts.map +1 -1
  39. package/dist/types/components/Dialog/Dialog.d.ts +8 -0
  40. package/dist/types/components/Dialog/Dialog.d.ts.map +1 -1
  41. package/package.json +1 -1
  42. package/scripts/build-tokens.js +1 -1
  43. package/tokens/t3-semantics/ui.json +7 -1
  44. package/tokens/t4-components/bottombar.json +20 -0
  45. package/tokens/t4-components/dialog.json +16 -0
  46. package/tokens/t4-components/drawer.json +19 -0
@@ -1602,9 +1602,11 @@ body {
1602
1602
  --motion-duration-micro: 150ms;
1603
1603
  --motion-duration-component: 200ms;
1604
1604
  --motion-duration-view: 300ms;
1605
+ --motion-duration-exit: 100ms;
1605
1606
  --motion-easing-default: cubic-bezier(0.4, 0, 0.2, 1);
1606
1607
  --motion-easing-enter: cubic-bezier(0.16, 1, 0.3, 1);
1607
1608
  --motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
1609
+ --effect-blur-backdrop: 2px;
1608
1610
  --button-color-primary-background-default: #3e63dd;
1609
1611
  --button-color-primary-background-hover: #3358d4;
1610
1612
  --button-color-primary-background-pressed: #3a5ccc;
@@ -1930,6 +1932,7 @@ body {
1930
1932
  --dialog-color-backdrop: rgba(0, 0, 0, 0.565);
1931
1933
  --dialog-color-background: #fdfcfd;
1932
1934
  --dialog-color-body-background: #fdfcfd;
1935
+ --dialog-backdrop-blur: 2px;
1933
1936
  --dialog-border-radius: 1.5rem;
1934
1937
  --dialog-border-radius-desktop: 1.5rem;
1935
1938
  --dialog-shadow-default: 0 48px 96px 0 rgba(0, 0, 0, 0.220), inset 0 0 1px 0 rgba(0, 0, 0, 0.220);
@@ -1949,6 +1952,8 @@ body {
1949
1952
  --dialog-drag-handle-padding-y: 0.75rem;
1950
1953
  --dialog-drag-handle-radius: 999rem;
1951
1954
  --dialog-padding-x: 1rem;
1955
+ --dialog-padding-x-desktop: 1.5rem;
1956
+ --dialog-motion-offset-desktop: 80px;
1952
1957
  --menu-content-color-background: #fdfcfd;
1953
1958
  --menu-content-color-border: #d0cdd7;
1954
1959
  --menu-content-border-radius: 0.75rem;
@@ -2172,6 +2177,9 @@ body {
2172
2177
  --bottombar-color-border: #eae7ec;
2173
2178
  --bottombar-color-tab-active: #211f26;
2174
2179
  --bottombar-color-tab-inactive: #8e8c99;
2180
+ --bottombar-color-message-neutral: #211f26;
2181
+ --bottombar-color-message-success: #16433c;
2182
+ --bottombar-color-message-warning: #ab6400;
2175
2183
  --bottombar-floating-radius: 1.5rem;
2176
2184
  --bottombar-floating-padding: 0.75rem;
2177
2185
  --bottombar-floating-margin-x: 0.75rem;
@@ -2191,6 +2199,7 @@ body {
2191
2199
  --bottombar-actions-gap: 0.75rem;
2192
2200
  --bottombar-actions-button-height-sm: 3rem;
2193
2201
  --bottombar-actions-button-height-lg: 4rem;
2202
+ --bottombar-actions-message-gap: 0.5rem;
2194
2203
  --bottombar-navigation-floating-padding: 0.5rem;
2195
2204
  --view-color-background: #f2eff3;
2196
2205
  --badge-size-height-sm: 1.5rem;
@@ -2385,6 +2394,8 @@ body {
2385
2394
  --gantt-wait-border: #d0cdd7;
2386
2395
  --gantt-wait-foreground: #211f26;
2387
2396
  --gantt-ghost-border: #ab6400;
2397
+ --drawer-padding-x: 1rem;
2398
+ --drawer-padding-x-desktop: 1.5rem;
2388
2399
  }
2389
2400
 
2390
2401
  /* Responsive overrides: md (min-width: 768px) */
@@ -2473,6 +2484,7 @@ body {
2473
2484
  --motion-duration-micro: 0ms;
2474
2485
  --motion-duration-component: 0ms;
2475
2486
  --motion-duration-view: 0ms;
2487
+ --motion-duration-exit: 0ms;
2476
2488
  }
2477
2489
  }
2478
2490
 
@@ -2536,6 +2548,116 @@ body {
2536
2548
  }
2537
2549
 
2538
2550
 
2551
+ /* View */
2552
+ /* View Component Styles */
2553
+
2554
+ /* ─── Base layout ─────────────────────────────────────── */
2555
+
2556
+ .muka-view {
2557
+ display: flex;
2558
+ flex-direction: column;
2559
+ height: 100dvh;
2560
+ background-color: var(--view-color-background);
2561
+ position: relative;
2562
+ isolation: isolate;
2563
+ box-sizing: border-box;
2564
+
2565
+ /* Width reserved for the footer nav once it becomes a left sidebar at the
2566
+ large tier (matches BottomBar's desktopAs="sidebar" rail width). */
2567
+ --view-sidebar-width: 240px;
2568
+ }
2569
+
2570
+ /* ─── Surface level variants ─────────────────────────── */
2571
+
2572
+ .muka-view--surface-3 {
2573
+ background-color: var(--color-surface-level3);
2574
+ }
2575
+
2576
+ /* ─── Large screens: make room for the left sidebar ──────────
2577
+ A footer nav with desktopAs="sidebar" becomes a fixed 240px left rail at
2578
+ ≥1024px. Offset the shell so the TopBar/body clear it — tied to the sidebar's
2579
+ actual presence (the `.muka-bottombar--desktop-sidebar` element) rather than
2580
+ the View's `size`, so a forced `size="lg"` below 1024px never reserves space
2581
+ for a sidebar that hasn't rendered yet. */
2582
+ @media (min-width: 1024px) {
2583
+ .muka-view:has(.muka-bottombar--desktop-sidebar) {
2584
+ padding-left: var(--view-sidebar-width);
2585
+ }
2586
+ }
2587
+
2588
+ /* ─── TopBar elevation ────────────────────────────────── */
2589
+
2590
+ .muka-view .muka-topbar {
2591
+ flex-shrink: 0;
2592
+ z-index: 3;
2593
+ box-shadow: var(--shadow-level2);
2594
+ }
2595
+
2596
+ /* ─── Scrollable body ─────────────────────────────────── */
2597
+
2598
+ .muka-view__body {
2599
+ flex: 1 1 0%;
2600
+ min-height: 0;
2601
+ overflow-y: auto;
2602
+ overflow-x: clip;
2603
+ z-index: 1;
2604
+
2605
+ /* Column flow so the footer (now a scroll-area child) can pin to the bottom and
2606
+ content scrolls *behind* it — letting a floating BottomBar's frosted backdrop
2607
+ reveal the content underneath. */
2608
+ display: flex;
2609
+ flex-direction: column;
2610
+ }
2611
+
2612
+ /* Inner wrapper constrains content width at the large tier (enterprise desktop)
2613
+ using the alias-layer section/container tokens, while the body scrolls full
2614
+ width. Full-bleed below large. */
2615
+ .muka-view__body-inner {
2616
+ width: 100%;
2617
+ /* Grow on short content so the sticky footer is pushed to the bottom rather
2618
+ than floating mid-screen. */
2619
+ flex: 1 0 auto;
2620
+ }
2621
+
2622
+ @media (min-width: 1024px) {
2623
+ .muka-view:not([data-size]) .muka-view__body-inner {
2624
+ max-width: var(--container-max-width-xl);
2625
+ margin-inline: auto;
2626
+ padding-inline: var(--section-padding-horizontal-default);
2627
+ }
2628
+ }
2629
+
2630
+ .muka-view[data-size='lg'] .muka-view__body-inner {
2631
+ max-width: var(--container-max-width-xl);
2632
+ margin-inline: auto;
2633
+ padding-inline: var(--section-padding-horizontal-default);
2634
+ }
2635
+
2636
+ /* ─── Footer (e.g. BottomBar) ─────────────────────────── */
2637
+
2638
+ .muka-view__footer {
2639
+ position: sticky;
2640
+ bottom: 0;
2641
+ flex-shrink: 0;
2642
+ z-index: 2;
2643
+ }
2644
+
2645
+ /* Inside an AppShell, the persistent left rail replaces the per-view bottom
2646
+ navigation at the large tier, so hide a footer that holds a navigation bar.
2647
+ Scoped to `.muka-app-shell` so bare Views (and the standalone
2648
+ desktopAs="sidebar" footer pattern above) are unaffected. Action-bar footers
2649
+ (`.muka-bottombar--actions`) don't match and remain at the bottom. */
2650
+ @media (min-width: 1024px) {
2651
+ .muka-app-shell .muka-view__footer:has(.muka-bottombar--navigation) {
2652
+ display: none;
2653
+ }
2654
+ }
2655
+
2656
+ .muka-app-shell[data-size='lg'] .muka-view__footer:has(.muka-bottombar--navigation) {
2657
+ display: none;
2658
+ }
2659
+
2660
+
2539
2661
  /* Typography */
2540
2662
  .muka-typography-catalog {
2541
2663
  display: flex;
@@ -2886,116 +3008,6 @@ body {
2886
3008
  }
2887
3009
 
2888
3010
 
2889
- /* View */
2890
- /* View Component Styles */
2891
-
2892
- /* ─── Base layout ─────────────────────────────────────── */
2893
-
2894
- .muka-view {
2895
- display: flex;
2896
- flex-direction: column;
2897
- height: 100dvh;
2898
- background-color: var(--view-color-background);
2899
- position: relative;
2900
- isolation: isolate;
2901
- box-sizing: border-box;
2902
-
2903
- /* Width reserved for the footer nav once it becomes a left sidebar at the
2904
- large tier (matches BottomBar's desktopAs="sidebar" rail width). */
2905
- --view-sidebar-width: 240px;
2906
- }
2907
-
2908
- /* ─── Surface level variants ─────────────────────────── */
2909
-
2910
- .muka-view--surface-3 {
2911
- background-color: var(--color-surface-level3);
2912
- }
2913
-
2914
- /* ─── Large screens: make room for the left sidebar ──────────
2915
- A footer nav with desktopAs="sidebar" becomes a fixed 240px left rail at
2916
- ≥1024px. Offset the shell so the TopBar/body clear it — tied to the sidebar's
2917
- actual presence (the `.muka-bottombar--desktop-sidebar` element) rather than
2918
- the View's `size`, so a forced `size="lg"` below 1024px never reserves space
2919
- for a sidebar that hasn't rendered yet. */
2920
- @media (min-width: 1024px) {
2921
- .muka-view:has(.muka-bottombar--desktop-sidebar) {
2922
- padding-left: var(--view-sidebar-width);
2923
- }
2924
- }
2925
-
2926
- /* ─── TopBar elevation ────────────────────────────────── */
2927
-
2928
- .muka-view .muka-topbar {
2929
- flex-shrink: 0;
2930
- z-index: 3;
2931
- box-shadow: var(--shadow-level2);
2932
- }
2933
-
2934
- /* ─── Scrollable body ─────────────────────────────────── */
2935
-
2936
- .muka-view__body {
2937
- flex: 1 1 0%;
2938
- min-height: 0;
2939
- overflow-y: auto;
2940
- overflow-x: clip;
2941
- z-index: 1;
2942
-
2943
- /* Column flow so the footer (now a scroll-area child) can pin to the bottom and
2944
- content scrolls *behind* it — letting a floating BottomBar's frosted backdrop
2945
- reveal the content underneath. */
2946
- display: flex;
2947
- flex-direction: column;
2948
- }
2949
-
2950
- /* Inner wrapper constrains content width at the large tier (enterprise desktop)
2951
- using the alias-layer section/container tokens, while the body scrolls full
2952
- width. Full-bleed below large. */
2953
- .muka-view__body-inner {
2954
- width: 100%;
2955
- /* Grow on short content so the sticky footer is pushed to the bottom rather
2956
- than floating mid-screen. */
2957
- flex: 1 0 auto;
2958
- }
2959
-
2960
- @media (min-width: 1024px) {
2961
- .muka-view:not([data-size]) .muka-view__body-inner {
2962
- max-width: var(--container-max-width-xl);
2963
- margin-inline: auto;
2964
- padding-inline: var(--section-padding-horizontal-default);
2965
- }
2966
- }
2967
-
2968
- .muka-view[data-size='lg'] .muka-view__body-inner {
2969
- max-width: var(--container-max-width-xl);
2970
- margin-inline: auto;
2971
- padding-inline: var(--section-padding-horizontal-default);
2972
- }
2973
-
2974
- /* ─── Footer (e.g. BottomBar) ─────────────────────────── */
2975
-
2976
- .muka-view__footer {
2977
- position: sticky;
2978
- bottom: 0;
2979
- flex-shrink: 0;
2980
- z-index: 2;
2981
- }
2982
-
2983
- /* Inside an AppShell, the persistent left rail replaces the per-view bottom
2984
- navigation at the large tier, so hide a footer that holds a navigation bar.
2985
- Scoped to `.muka-app-shell` so bare Views (and the standalone
2986
- desktopAs="sidebar" footer pattern above) are unaffected. Action-bar footers
2987
- (`.muka-bottombar--actions`) don't match and remain at the bottom. */
2988
- @media (min-width: 1024px) {
2989
- .muka-app-shell .muka-view__footer:has(.muka-bottombar--navigation) {
2990
- display: none;
2991
- }
2992
- }
2993
-
2994
- .muka-app-shell[data-size='lg'] .muka-view__footer:has(.muka-bottombar--navigation) {
2995
- display: none;
2996
- }
2997
-
2998
-
2999
3011
  /* Toast */
3000
3012
  /* Toast Component Styles - Using Muka Design Tokens */
3001
3013
 
@@ -3186,191 +3198,28 @@ body {
3186
3198
  }
3187
3199
 
3188
3200
 
3189
- /* Toggle */
3190
- /* Toggle Component Styles - Using Muka Design Tokens */
3201
+ /* Tile */
3202
+ /* Tile Component Styles - Using Muka Design Tokens */
3191
3203
 
3192
- /* Wrapper container */
3193
- .muka-toggle {
3204
+ /* ─── Base ────────────────────────────────────────────── */
3205
+
3206
+ .muka-tile {
3194
3207
  display: flex;
3195
- align-items: center;
3196
- gap: var(--spacing-2);
3197
- position: relative;
3198
- padding: var(--spacing-4) 0;
3208
+ color: var(--color-text-default-default);
3199
3209
  }
3200
3210
 
3201
- .muka-toggle--with-caption {
3202
- padding: var(--spacing-5) 0;
3211
+ .muka-tile--interactive {
3212
+ cursor: pointer;
3213
+ user-select: none;
3203
3214
  }
3204
3215
 
3205
- .muka-toggle--disabled {
3206
- opacity: 0.6;
3216
+ .muka-tile--interactive:focus-visible {
3217
+ outline: 2px solid var(--color-border-focus);
3218
+ outline-offset: 2px;
3219
+ border-radius: var(--border-radius-lg);
3207
3220
  }
3208
3221
 
3209
- /* Icon */
3210
- .muka-toggle__icon {
3211
- display: flex;
3212
- align-items: center;
3213
- justify-content: center;
3214
- flex-shrink: 0;
3215
- width: var(--icon-size-default);
3216
- height: var(--icon-size-default);
3217
- color: var(--color-text-default-default);
3218
- }
3219
-
3220
- .muka-toggle__icon svg {
3221
- width: 100%;
3222
- height: 100%;
3223
- }
3224
-
3225
- /* Content area (label + caption) */
3226
- .muka-toggle__content {
3227
- display: flex;
3228
- flex-direction: column;
3229
- flex: 1;
3230
- min-width: 0;
3231
- gap: var(--spacing-1);
3232
- }
3233
-
3234
- /* Label */
3235
- .muka-toggle__label {
3236
- font-family: var(--text-label-lg-regular-fontFamily);
3237
- font-weight: var(--text-label-lg-regular-fontWeight);
3238
- font-size: var(--text-label-lg-regular-fontSize);
3239
- line-height: var(--text-label-lg-regular-lineHeight);
3240
- color: var(--color-text-default-default);
3241
- cursor: pointer;
3242
- }
3243
-
3244
- .muka-toggle--with-caption .muka-toggle__label {
3245
- font-family: var(--text-label-lg-semibold-fontFamily);
3246
- font-weight: var(--text-label-lg-semibold-fontWeight);
3247
- font-size: var(--text-label-lg-semibold-fontSize);
3248
- line-height: var(--text-label-lg-semibold-lineHeight);
3249
- }
3250
-
3251
- .muka-toggle--disabled .muka-toggle__label {
3252
- color: var(--color-text-subtle-default);
3253
- cursor: not-allowed;
3254
- }
3255
-
3256
- /* Caption */
3257
- .muka-toggle__caption {
3258
- font-family: var(--text-body-base-regular-fontFamily);
3259
- font-weight: var(--text-body-base-regular-fontWeight);
3260
- font-size: var(--text-body-base-regular-fontSize);
3261
- line-height: var(--text-body-base-regular-lineHeight);
3262
- color: var(--color-text-subtle-default);
3263
- }
3264
-
3265
- /* Switch container */
3266
- .muka-toggle__switch {
3267
- position: relative;
3268
- display: inline-flex;
3269
- flex-shrink: 0;
3270
- cursor: pointer;
3271
- }
3272
-
3273
- .muka-toggle--disabled .muka-toggle__switch {
3274
- cursor: not-allowed;
3275
- }
3276
-
3277
- /* Hidden native input */
3278
- .muka-toggle__input {
3279
- position: absolute;
3280
- width: 1px;
3281
- height: 1px;
3282
- padding: 0;
3283
- margin: -1px;
3284
- overflow: hidden;
3285
- clip: rect(0, 0, 0, 0);
3286
- white-space: nowrap;
3287
- border: 0;
3288
- }
3289
-
3290
- /* Track (background pill) */
3291
- .muka-toggle__track {
3292
- display: flex;
3293
- align-items: center;
3294
- width: var(--toggle-track-width);
3295
- height: var(--toggle-track-height);
3296
- border-radius: var(--toggle-track-radius);
3297
- background-color: var(--toggle-track-color-off);
3298
- transition: background-color 0.2s ease;
3299
- box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.16);
3300
- position: relative;
3301
- }
3302
-
3303
- /* Knob (sliding circle) */
3304
- .muka-toggle__knob {
3305
- position: absolute;
3306
- width: var(--toggle-knob-size);
3307
- height: var(--toggle-knob-size);
3308
- border-radius: var(--border-radius-full);
3309
- background-color: var(--toggle-knob-color-default);
3310
- box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
3311
- left: var(--toggle-knob-offset);
3312
- transition: left 0.2s ease, transform 0.2s ease;
3313
- }
3314
-
3315
- /* Focus state */
3316
- .muka-toggle__input:focus-visible + .muka-toggle__track {
3317
- outline: 2px solid var(--color-border-focus);
3318
- outline-offset: 2px;
3319
- }
3320
-
3321
- /* Checked (on) state */
3322
- .muka-toggle__input:checked + .muka-toggle__track {
3323
- background-color: var(--toggle-track-color-on);
3324
- }
3325
-
3326
- .muka-toggle__input:checked + .muka-toggle__track .muka-toggle__knob {
3327
- left: calc(var(--toggle-track-width) - var(--toggle-knob-size) - var(--toggle-knob-offset));
3328
- }
3329
-
3330
- /* Disabled state */
3331
- .muka-toggle--disabled .muka-toggle__track {
3332
- background-color: var(--toggle-track-color-disabled);
3333
- box-shadow: none;
3334
- }
3335
-
3336
- .muka-toggle--disabled .muka-toggle__knob {
3337
- background-color: var(--toggle-knob-color-disabled);
3338
- box-shadow: none;
3339
- }
3340
-
3341
- /* Divider */
3342
- .muka-toggle__divider {
3343
- position: absolute;
3344
- bottom: 0;
3345
- left: 0;
3346
- right: 0;
3347
- height: 1px;
3348
- background-color: var(--color-border-muted);
3349
- }
3350
-
3351
-
3352
- /* Tile */
3353
- /* Tile Component Styles - Using Muka Design Tokens */
3354
-
3355
- /* ─── Base ────────────────────────────────────────────── */
3356
-
3357
- .muka-tile {
3358
- display: flex;
3359
- color: var(--color-text-default-default);
3360
- }
3361
-
3362
- .muka-tile--interactive {
3363
- cursor: pointer;
3364
- user-select: none;
3365
- }
3366
-
3367
- .muka-tile--interactive:focus-visible {
3368
- outline: 2px solid var(--color-border-focus);
3369
- outline-offset: 2px;
3370
- border-radius: var(--border-radius-lg);
3371
- }
3372
-
3373
- /* ─── Image position variants ─────────────────────────── */
3222
+ /* ─── Image position variants ─────────────────────────── */
3374
3223
 
3375
3224
  .muka-tile--image-top {
3376
3225
  flex-direction: column;
@@ -3710,73 +3559,258 @@ body {
3710
3559
  }
3711
3560
 
3712
3561
 
3713
- /* Textarea */
3714
- /* Textarea Component Styles - Using Muka Design Tokens */
3562
+ /* Thumbnail */
3563
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
3715
3564
 
3716
- .muka-textarea {
3717
- display: inline-flex;
3718
- flex-direction: column;
3719
- gap: var(--spacing-2);
3565
+ .muka-thumbnail {
3566
+ position: relative;
3567
+ flex-shrink: 0;
3720
3568
  }
3721
3569
 
3722
- /* Label */
3723
- .muka-textarea__label {
3724
- color: var(--color-text-default-default);
3725
- cursor: pointer;
3570
+ /* The frame carries the border, background and shape clip. Keeping it separate
3571
+ from the root lets the remove (×) button sit outside the clip (needed for the
3572
+ circular/ellipse shape, whose corners would otherwise clip the button). */
3573
+ .muka-thumbnail__frame {
3574
+ position: absolute;
3575
+ inset: 0;
3576
+ overflow: hidden;
3577
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3578
+ border-radius: var(--border-radius-lg);
3579
+ background-color: var(--color-surface-level1);
3726
3580
  }
3727
3581
 
3728
- .muka-textarea__label--sm {
3729
- font-family: var(--text-label-sm-semibold-fontFamily);
3730
- font-weight: var(--text-label-sm-semibold-fontWeight);
3731
- font-size: var(--text-label-sm-semibold-fontSize);
3732
- line-height: var(--text-label-sm-semibold-lineHeight);
3582
+ /* ─── Shapes ──────────────────────────────────────────── */
3583
+ .muka-thumbnail--4-3 {
3584
+ width: 160px;
3585
+ height: 120px;
3733
3586
  }
3734
3587
 
3735
- .muka-textarea__label--md {
3736
- font-family: var(--text-label-md-semibold-fontFamily);
3737
- font-weight: var(--text-label-md-semibold-fontWeight);
3738
- font-size: var(--text-label-md-semibold-fontSize);
3739
- line-height: var(--text-label-md-semibold-lineHeight);
3588
+ .muka-thumbnail--1-1 {
3589
+ width: 120px;
3590
+ height: 120px;
3740
3591
  }
3741
3592
 
3742
- .muka-textarea__label--lg {
3743
- font-family: var(--text-label-lg-semibold-fontFamily);
3744
- font-weight: var(--text-label-lg-semibold-fontWeight);
3745
- font-size: var(--text-label-lg-semibold-fontSize);
3746
- line-height: var(--text-label-lg-semibold-lineHeight);
3593
+ .muka-thumbnail--ellipse {
3594
+ width: 120px;
3595
+ height: 120px;
3747
3596
  }
3748
3597
 
3749
- .muka-textarea__required {
3750
- color: var(--color-state-error-default);
3598
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3599
+ .muka-thumbnail--fluid {
3600
+ width: 100%;
3601
+ height: auto;
3602
+ aspect-ratio: 1 / 1;
3751
3603
  }
3752
3604
 
3753
- /* Field container */
3754
- .muka-textarea__field {
3755
- display: flex;
3756
- background-color: var(--input-field-color-default-background);
3757
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
3758
- border-radius: var(--input-field-radius-md);
3759
- padding: var(--input-field-padding-y) var(--input-field-padding-x);
3760
- transition: border-color 0.2s ease, background-color 0.2s ease;
3761
- box-sizing: border-box;
3605
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3606
+ aspect-ratio: 4 / 3;
3762
3607
  }
3763
3608
 
3764
- .muka-textarea__field--sm {
3765
- min-height: var(--input-textarea-height-sm);
3766
- border-radius: var(--input-field-radius-sm);
3609
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
3610
+ border-radius: var(--border-radius-full);
3767
3611
  }
3768
3612
 
3769
- .muka-textarea__field--md {
3770
- min-height: var(--input-textarea-height-default);
3771
- border-radius: var(--input-field-radius-md);
3613
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3614
+ interactive hover zoom has a clean origin. */
3615
+ .muka-thumbnail__image {
3616
+ position: absolute;
3617
+ inset: 0;
3618
+ width: 100%;
3619
+ height: 100%;
3620
+ object-fit: cover;
3621
+ display: block;
3622
+ transform-origin: center;
3623
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3624
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3772
3625
  }
3773
3626
 
3774
- .muka-textarea__field--lg {
3775
- min-height: var(--input-textarea-height-lg);
3776
- border-radius: var(--input-field-radius-lg);
3627
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
3628
+ .muka-thumbnail__trigger {
3629
+ position: absolute;
3630
+ inset: 0;
3631
+ padding: 0;
3632
+ border: 0;
3633
+ background: none;
3634
+ cursor: pointer;
3635
+ overflow: hidden;
3777
3636
  }
3778
3637
 
3779
- /* Focus state */
3638
+ .muka-thumbnail__trigger:focus-visible {
3639
+ outline: 2px solid var(--color-border-focus);
3640
+ outline-offset: -2px;
3641
+ }
3642
+
3643
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3644
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3645
+ transform: scale(1.05);
3646
+ }
3647
+
3648
+ /* ─── Loading overlay + progress donut ────────────────── */
3649
+ .muka-thumbnail__overlay {
3650
+ position: absolute;
3651
+ inset: 0;
3652
+ display: flex;
3653
+ align-items: center;
3654
+ justify-content: center;
3655
+ background-color: var(--dialog-color-backdrop);
3656
+ }
3657
+
3658
+ .muka-thumbnail__progress {
3659
+ width: 40px;
3660
+ height: 40px;
3661
+ }
3662
+
3663
+ /* ─── Error / corrupt state ───────────────────────────── */
3664
+ .muka-thumbnail--error .muka-thumbnail__frame {
3665
+ background-color: var(--alias-color-state-error-muted);
3666
+ border-color: var(--alias-color-state-error-default);
3667
+ }
3668
+
3669
+ .muka-thumbnail__error {
3670
+ position: absolute;
3671
+ inset: 0;
3672
+ display: flex;
3673
+ flex-direction: column;
3674
+ align-items: center;
3675
+ justify-content: center;
3676
+ gap: var(--spacing-2);
3677
+ padding: var(--spacing-3);
3678
+ text-align: center;
3679
+ }
3680
+
3681
+ .muka-thumbnail__error-icon {
3682
+ color: var(--alert-color-error-accent);
3683
+ }
3684
+
3685
+ .muka-thumbnail__caption {
3686
+ max-width: 100%;
3687
+ overflow: hidden;
3688
+ text-overflow: ellipsis;
3689
+ white-space: nowrap;
3690
+ color: var(--alert-color-error-accent);
3691
+ font-family: var(--text-body-sm-regular-fontFamily);
3692
+ font-size: var(--text-body-sm-regular-fontSize);
3693
+ font-weight: var(--text-body-sm-regular-fontWeight);
3694
+ line-height: var(--text-body-sm-regular-lineHeight);
3695
+ }
3696
+
3697
+ /* ─── Remove (×) button ───────────────────────────────── */
3698
+ .muka-thumbnail__remove {
3699
+ position: absolute;
3700
+ top: var(--spacing-2);
3701
+ right: var(--spacing-2);
3702
+ display: flex;
3703
+ align-items: center;
3704
+ justify-content: center;
3705
+ width: var(--size-2xl);
3706
+ height: var(--size-2xl);
3707
+ padding: 0;
3708
+ color: var(--button-color-tertiary-foreground-default);
3709
+ background-color: var(--button-color-tertiary-background-default);
3710
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3711
+ border-radius: var(--border-radius-lg);
3712
+ cursor: pointer;
3713
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3714
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
3715
+ }
3716
+
3717
+ .muka-thumbnail__remove:hover {
3718
+ color: var(--button-color-tertiary-foreground-hover);
3719
+ background-color: var(--button-color-tertiary-background-hover);
3720
+ border-color: var(--button-color-tertiary-border-hover);
3721
+ }
3722
+
3723
+ .muka-thumbnail__remove:active {
3724
+ color: var(--button-color-tertiary-foreground-pressed);
3725
+ background-color: var(--button-color-tertiary-background-pressed);
3726
+ border-color: var(--button-color-tertiary-border-pressed);
3727
+ }
3728
+
3729
+ .muka-thumbnail__remove:focus-visible {
3730
+ outline: 2px solid var(--color-border-focus);
3731
+ outline-offset: 2px;
3732
+ }
3733
+
3734
+ /* ─── Reduced motion ──────────────────────────────────── */
3735
+ @media (prefers-reduced-motion: reduce) {
3736
+ .muka-thumbnail__image,
3737
+ .muka-thumbnail__remove {
3738
+ transition: none;
3739
+ }
3740
+
3741
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3742
+ transform: none;
3743
+ }
3744
+ }
3745
+
3746
+
3747
+ /* Textarea */
3748
+ /* Textarea Component Styles - Using Muka Design Tokens */
3749
+
3750
+ .muka-textarea {
3751
+ display: inline-flex;
3752
+ flex-direction: column;
3753
+ gap: var(--spacing-2);
3754
+ }
3755
+
3756
+ /* Label */
3757
+ .muka-textarea__label {
3758
+ color: var(--color-text-default-default);
3759
+ cursor: pointer;
3760
+ }
3761
+
3762
+ .muka-textarea__label--sm {
3763
+ font-family: var(--text-label-sm-semibold-fontFamily);
3764
+ font-weight: var(--text-label-sm-semibold-fontWeight);
3765
+ font-size: var(--text-label-sm-semibold-fontSize);
3766
+ line-height: var(--text-label-sm-semibold-lineHeight);
3767
+ }
3768
+
3769
+ .muka-textarea__label--md {
3770
+ font-family: var(--text-label-md-semibold-fontFamily);
3771
+ font-weight: var(--text-label-md-semibold-fontWeight);
3772
+ font-size: var(--text-label-md-semibold-fontSize);
3773
+ line-height: var(--text-label-md-semibold-lineHeight);
3774
+ }
3775
+
3776
+ .muka-textarea__label--lg {
3777
+ font-family: var(--text-label-lg-semibold-fontFamily);
3778
+ font-weight: var(--text-label-lg-semibold-fontWeight);
3779
+ font-size: var(--text-label-lg-semibold-fontSize);
3780
+ line-height: var(--text-label-lg-semibold-lineHeight);
3781
+ }
3782
+
3783
+ .muka-textarea__required {
3784
+ color: var(--color-state-error-default);
3785
+ }
3786
+
3787
+ /* Field container */
3788
+ .muka-textarea__field {
3789
+ display: flex;
3790
+ background-color: var(--input-field-color-default-background);
3791
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
3792
+ border-radius: var(--input-field-radius-md);
3793
+ padding: var(--input-field-padding-y) var(--input-field-padding-x);
3794
+ transition: border-color 0.2s ease, background-color 0.2s ease;
3795
+ box-sizing: border-box;
3796
+ }
3797
+
3798
+ .muka-textarea__field--sm {
3799
+ min-height: var(--input-textarea-height-sm);
3800
+ border-radius: var(--input-field-radius-sm);
3801
+ }
3802
+
3803
+ .muka-textarea__field--md {
3804
+ min-height: var(--input-textarea-height-default);
3805
+ border-radius: var(--input-field-radius-md);
3806
+ }
3807
+
3808
+ .muka-textarea__field--lg {
3809
+ min-height: var(--input-textarea-height-lg);
3810
+ border-radius: var(--input-field-radius-lg);
3811
+ }
3812
+
3813
+ /* Focus state */
3780
3814
  .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
3781
3815
  border-width: var(--border-width-bold);
3782
3816
  border-color: var(--input-field-color-focus-border);
@@ -4146,188 +4180,166 @@ body {
4146
4180
  }
4147
4181
 
4148
4182
 
4149
- /* Thumbnail */
4150
- /* Thumbnail Component Styles - Using Muka Design Tokens */
4183
+ /* Toggle */
4184
+ /* Toggle Component Styles - Using Muka Design Tokens */
4151
4185
 
4152
- .muka-thumbnail {
4186
+ /* Wrapper container */
4187
+ .muka-toggle {
4188
+ display: flex;
4189
+ align-items: center;
4190
+ gap: var(--spacing-2);
4153
4191
  position: relative;
4154
- flex-shrink: 0;
4192
+ padding: var(--spacing-4) 0;
4155
4193
  }
4156
4194
 
4157
- /* The frame carries the border, background and shape clip. Keeping it separate
4158
- from the root lets the remove (×) button sit outside the clip (needed for the
4159
- circular/ellipse shape, whose corners would otherwise clip the button). */
4160
- .muka-thumbnail__frame {
4161
- position: absolute;
4162
- inset: 0;
4163
- overflow: hidden;
4164
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4165
- border-radius: var(--border-radius-lg);
4166
- background-color: var(--color-surface-level1);
4195
+ .muka-toggle--with-caption {
4196
+ padding: var(--spacing-5) 0;
4167
4197
  }
4168
4198
 
4169
- /* ─── Shapes ──────────────────────────────────────────── */
4170
- .muka-thumbnail--4-3 {
4171
- width: 160px;
4172
- height: 120px;
4199
+ .muka-toggle--disabled {
4200
+ opacity: 0.6;
4173
4201
  }
4174
4202
 
4175
- .muka-thumbnail--1-1 {
4176
- width: 120px;
4177
- height: 120px;
4203
+ /* Icon */
4204
+ .muka-toggle__icon {
4205
+ display: flex;
4206
+ align-items: center;
4207
+ justify-content: center;
4208
+ flex-shrink: 0;
4209
+ width: var(--icon-size-default);
4210
+ height: var(--icon-size-default);
4211
+ color: var(--color-text-default-default);
4178
4212
  }
4179
4213
 
4180
- .muka-thumbnail--ellipse {
4181
- width: 120px;
4182
- height: 120px;
4214
+ .muka-toggle__icon svg {
4215
+ width: 100%;
4216
+ height: 100%;
4183
4217
  }
4184
4218
 
4185
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4186
- .muka-thumbnail--fluid {
4187
- width: 100%;
4188
- height: auto;
4189
- aspect-ratio: 1 / 1;
4219
+ /* Content area (label + caption) */
4220
+ .muka-toggle__content {
4221
+ display: flex;
4222
+ flex-direction: column;
4223
+ flex: 1;
4224
+ min-width: 0;
4225
+ gap: var(--spacing-1);
4190
4226
  }
4191
4227
 
4192
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4193
- aspect-ratio: 4 / 3;
4228
+ /* Label */
4229
+ .muka-toggle__label {
4230
+ font-family: var(--text-label-lg-regular-fontFamily);
4231
+ font-weight: var(--text-label-lg-regular-fontWeight);
4232
+ font-size: var(--text-label-lg-regular-fontSize);
4233
+ line-height: var(--text-label-lg-regular-lineHeight);
4234
+ color: var(--color-text-default-default);
4235
+ cursor: pointer;
4194
4236
  }
4195
4237
 
4196
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
4197
- border-radius: var(--border-radius-full);
4238
+ .muka-toggle--with-caption .muka-toggle__label {
4239
+ font-family: var(--text-label-lg-semibold-fontFamily);
4240
+ font-weight: var(--text-label-lg-semibold-fontWeight);
4241
+ font-size: var(--text-label-lg-semibold-fontSize);
4242
+ line-height: var(--text-label-lg-semibold-lineHeight);
4198
4243
  }
4199
4244
 
4200
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4201
- interactive hover zoom has a clean origin. */
4202
- .muka-thumbnail__image {
4203
- position: absolute;
4204
- inset: 0;
4205
- width: 100%;
4206
- height: 100%;
4207
- object-fit: cover;
4208
- display: block;
4209
- transform-origin: center;
4210
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4211
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4245
+ .muka-toggle--disabled .muka-toggle__label {
4246
+ color: var(--color-text-subtle-default);
4247
+ cursor: not-allowed;
4212
4248
  }
4213
4249
 
4214
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
4215
- .muka-thumbnail__trigger {
4216
- position: absolute;
4217
- inset: 0;
4218
- padding: 0;
4219
- border: 0;
4220
- background: none;
4221
- cursor: pointer;
4222
- overflow: hidden;
4250
+ /* Caption */
4251
+ .muka-toggle__caption {
4252
+ font-family: var(--text-body-base-regular-fontFamily);
4253
+ font-weight: var(--text-body-base-regular-fontWeight);
4254
+ font-size: var(--text-body-base-regular-fontSize);
4255
+ line-height: var(--text-body-base-regular-lineHeight);
4256
+ color: var(--color-text-subtle-default);
4223
4257
  }
4224
4258
 
4225
- .muka-thumbnail__trigger:focus-visible {
4226
- outline: 2px solid var(--color-border-focus);
4227
- outline-offset: -2px;
4259
+ /* Switch container */
4260
+ .muka-toggle__switch {
4261
+ position: relative;
4262
+ display: inline-flex;
4263
+ flex-shrink: 0;
4264
+ cursor: pointer;
4228
4265
  }
4229
4266
 
4230
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4231
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4232
- transform: scale(1.05);
4267
+ .muka-toggle--disabled .muka-toggle__switch {
4268
+ cursor: not-allowed;
4233
4269
  }
4234
4270
 
4235
- /* ─── Loading overlay + progress donut ────────────────── */
4236
- .muka-thumbnail__overlay {
4271
+ /* Hidden native input */
4272
+ .muka-toggle__input {
4237
4273
  position: absolute;
4238
- inset: 0;
4239
- display: flex;
4240
- align-items: center;
4241
- justify-content: center;
4242
- background-color: var(--dialog-color-backdrop);
4243
- }
4244
-
4245
- .muka-thumbnail__progress {
4246
- width: 40px;
4247
- height: 40px;
4248
- }
4249
-
4250
- /* ─── Error / corrupt state ───────────────────────────── */
4251
- .muka-thumbnail--error .muka-thumbnail__frame {
4252
- background-color: var(--alias-color-state-error-muted);
4253
- border-color: var(--alias-color-state-error-default);
4274
+ width: 1px;
4275
+ height: 1px;
4276
+ padding: 0;
4277
+ margin: -1px;
4278
+ overflow: hidden;
4279
+ clip: rect(0, 0, 0, 0);
4280
+ white-space: nowrap;
4281
+ border: 0;
4254
4282
  }
4255
4283
 
4256
- .muka-thumbnail__error {
4257
- position: absolute;
4258
- inset: 0;
4284
+ /* Track (background pill) */
4285
+ .muka-toggle__track {
4259
4286
  display: flex;
4260
- flex-direction: column;
4261
4287
  align-items: center;
4262
- justify-content: center;
4263
- gap: var(--spacing-2);
4264
- padding: var(--spacing-3);
4265
- text-align: center;
4288
+ width: var(--toggle-track-width);
4289
+ height: var(--toggle-track-height);
4290
+ border-radius: var(--toggle-track-radius);
4291
+ background-color: var(--toggle-track-color-off);
4292
+ transition: background-color 0.2s ease;
4293
+ box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.16);
4294
+ position: relative;
4266
4295
  }
4267
4296
 
4268
- .muka-thumbnail__error-icon {
4269
- color: var(--alert-color-error-accent);
4297
+ /* Knob (sliding circle) */
4298
+ .muka-toggle__knob {
4299
+ position: absolute;
4300
+ width: var(--toggle-knob-size);
4301
+ height: var(--toggle-knob-size);
4302
+ border-radius: var(--border-radius-full);
4303
+ background-color: var(--toggle-knob-color-default);
4304
+ box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
4305
+ left: var(--toggle-knob-offset);
4306
+ transition: left 0.2s ease, transform 0.2s ease;
4270
4307
  }
4271
4308
 
4272
- .muka-thumbnail__caption {
4273
- max-width: 100%;
4274
- overflow: hidden;
4275
- text-overflow: ellipsis;
4276
- white-space: nowrap;
4277
- color: var(--alert-color-error-accent);
4278
- font-family: var(--text-body-sm-regular-fontFamily);
4279
- font-size: var(--text-body-sm-regular-fontSize);
4280
- font-weight: var(--text-body-sm-regular-fontWeight);
4281
- line-height: var(--text-body-sm-regular-lineHeight);
4309
+ /* Focus state */
4310
+ .muka-toggle__input:focus-visible + .muka-toggle__track {
4311
+ outline: 2px solid var(--color-border-focus);
4312
+ outline-offset: 2px;
4282
4313
  }
4283
4314
 
4284
- /* ─── Remove (×) button ───────────────────────────────── */
4285
- .muka-thumbnail__remove {
4286
- position: absolute;
4287
- top: var(--spacing-2);
4288
- right: var(--spacing-2);
4289
- display: flex;
4290
- align-items: center;
4291
- justify-content: center;
4292
- width: var(--size-2xl);
4293
- height: var(--size-2xl);
4294
- padding: 0;
4295
- color: var(--button-color-tertiary-foreground-default);
4296
- background-color: var(--button-color-tertiary-background-default);
4297
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4298
- border-radius: var(--border-radius-lg);
4299
- cursor: pointer;
4300
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4301
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
4315
+ /* Checked (on) state */
4316
+ .muka-toggle__input:checked + .muka-toggle__track {
4317
+ background-color: var(--toggle-track-color-on);
4302
4318
  }
4303
4319
 
4304
- .muka-thumbnail__remove:hover {
4305
- color: var(--button-color-tertiary-foreground-hover);
4306
- background-color: var(--button-color-tertiary-background-hover);
4307
- border-color: var(--button-color-tertiary-border-hover);
4320
+ .muka-toggle__input:checked + .muka-toggle__track .muka-toggle__knob {
4321
+ left: calc(var(--toggle-track-width) - var(--toggle-knob-size) - var(--toggle-knob-offset));
4308
4322
  }
4309
4323
 
4310
- .muka-thumbnail__remove:active {
4311
- color: var(--button-color-tertiary-foreground-pressed);
4312
- background-color: var(--button-color-tertiary-background-pressed);
4313
- border-color: var(--button-color-tertiary-border-pressed);
4324
+ /* Disabled state */
4325
+ .muka-toggle--disabled .muka-toggle__track {
4326
+ background-color: var(--toggle-track-color-disabled);
4327
+ box-shadow: none;
4314
4328
  }
4315
4329
 
4316
- .muka-thumbnail__remove:focus-visible {
4317
- outline: 2px solid var(--color-border-focus);
4318
- outline-offset: 2px;
4330
+ .muka-toggle--disabled .muka-toggle__knob {
4331
+ background-color: var(--toggle-knob-color-disabled);
4332
+ box-shadow: none;
4319
4333
  }
4320
4334
 
4321
- /* ─── Reduced motion ──────────────────────────────────── */
4322
- @media (prefers-reduced-motion: reduce) {
4323
- .muka-thumbnail__image,
4324
- .muka-thumbnail__remove {
4325
- transition: none;
4326
- }
4327
-
4328
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4329
- transform: none;
4330
- }
4335
+ /* Divider */
4336
+ .muka-toggle__divider {
4337
+ position: absolute;
4338
+ bottom: 0;
4339
+ left: 0;
4340
+ right: 0;
4341
+ height: 1px;
4342
+ background-color: var(--color-border-muted);
4331
4343
  }
4332
4344
 
4333
4345
 
@@ -4735,84 +4747,6 @@ body {
4735
4747
  }
4736
4748
 
4737
4749
 
4738
- /* Spinner */
4739
- /* Spinner Component Styles */
4740
-
4741
- .muka-spinner {
4742
- display: inline-flex;
4743
- align-items: center;
4744
- justify-content: center;
4745
- color: var(--color-text-default-default);
4746
- line-height: 0;
4747
- }
4748
-
4749
- .muka-spinner--subtle {
4750
- color: var(--color-text-subtle-default);
4751
- }
4752
-
4753
- .muka-spinner--inverse {
4754
- color: var(--color-text-default-inverse);
4755
- }
4756
-
4757
- .muka-spinner__circle {
4758
- display: inline-block;
4759
- border-radius: 50%;
4760
- border-style: solid;
4761
- border-color: currentColor;
4762
- border-right-color: transparent;
4763
- animation: muka-spinner-rotate 0.7s linear infinite;
4764
- box-sizing: border-box;
4765
- }
4766
-
4767
- /* ─── Sizes ───────────────────────────────────────────── */
4768
-
4769
- .muka-spinner--sm .muka-spinner__circle {
4770
- width: 16px;
4771
- height: 16px;
4772
- border-width: 2px;
4773
- }
4774
-
4775
- .muka-spinner--md .muka-spinner__circle {
4776
- width: 20px;
4777
- height: 20px;
4778
- border-width: 2px;
4779
- }
4780
-
4781
- .muka-spinner--lg .muka-spinner__circle {
4782
- width: 24px;
4783
- height: 24px;
4784
- border-width: 3px;
4785
- }
4786
-
4787
- /* ─── Visually-hidden label ───────────────────────────── */
4788
-
4789
- .muka-spinner__sr-label {
4790
- position: absolute;
4791
- width: 1px;
4792
- height: 1px;
4793
- padding: 0;
4794
- margin: -1px;
4795
- overflow: hidden;
4796
- clip: rect(0, 0, 0, 0);
4797
- white-space: nowrap;
4798
- border: 0;
4799
- }
4800
-
4801
- /* ─── Reduced motion ──────────────────────────────────── */
4802
-
4803
- @keyframes muka-spinner-rotate {
4804
- to {
4805
- transform: rotate(360deg);
4806
- }
4807
- }
4808
-
4809
- @media (prefers-reduced-motion: reduce) {
4810
- .muka-spinner__circle {
4811
- animation-duration: 2.5s;
4812
- }
4813
- }
4814
-
4815
-
4816
4750
  /* SwipeActions */
4817
4751
  /* SwipeActions Component Styles */
4818
4752
 
@@ -4921,11 +4855,89 @@ body {
4921
4855
  }
4922
4856
 
4923
4857
 
4924
- /* SpecList */
4925
- /* SpecList Component Styles */
4858
+ /* Spinner */
4859
+ /* Spinner Component Styles */
4926
4860
 
4927
- .muka-spec-list {
4928
- margin: 0;
4861
+ .muka-spinner {
4862
+ display: inline-flex;
4863
+ align-items: center;
4864
+ justify-content: center;
4865
+ color: var(--color-text-default-default);
4866
+ line-height: 0;
4867
+ }
4868
+
4869
+ .muka-spinner--subtle {
4870
+ color: var(--color-text-subtle-default);
4871
+ }
4872
+
4873
+ .muka-spinner--inverse {
4874
+ color: var(--color-text-default-inverse);
4875
+ }
4876
+
4877
+ .muka-spinner__circle {
4878
+ display: inline-block;
4879
+ border-radius: 50%;
4880
+ border-style: solid;
4881
+ border-color: currentColor;
4882
+ border-right-color: transparent;
4883
+ animation: muka-spinner-rotate 0.7s linear infinite;
4884
+ box-sizing: border-box;
4885
+ }
4886
+
4887
+ /* ─── Sizes ───────────────────────────────────────────── */
4888
+
4889
+ .muka-spinner--sm .muka-spinner__circle {
4890
+ width: 16px;
4891
+ height: 16px;
4892
+ border-width: 2px;
4893
+ }
4894
+
4895
+ .muka-spinner--md .muka-spinner__circle {
4896
+ width: 20px;
4897
+ height: 20px;
4898
+ border-width: 2px;
4899
+ }
4900
+
4901
+ .muka-spinner--lg .muka-spinner__circle {
4902
+ width: 24px;
4903
+ height: 24px;
4904
+ border-width: 3px;
4905
+ }
4906
+
4907
+ /* ─── Visually-hidden label ───────────────────────────── */
4908
+
4909
+ .muka-spinner__sr-label {
4910
+ position: absolute;
4911
+ width: 1px;
4912
+ height: 1px;
4913
+ padding: 0;
4914
+ margin: -1px;
4915
+ overflow: hidden;
4916
+ clip: rect(0, 0, 0, 0);
4917
+ white-space: nowrap;
4918
+ border: 0;
4919
+ }
4920
+
4921
+ /* ─── Reduced motion ──────────────────────────────────── */
4922
+
4923
+ @keyframes muka-spinner-rotate {
4924
+ to {
4925
+ transform: rotate(360deg);
4926
+ }
4927
+ }
4928
+
4929
+ @media (prefers-reduced-motion: reduce) {
4930
+ .muka-spinner__circle {
4931
+ animation-duration: 2.5s;
4932
+ }
4933
+ }
4934
+
4935
+
4936
+ /* SpecList */
4937
+ /* SpecList Component Styles */
4938
+
4939
+ .muka-spec-list {
4940
+ margin: 0;
4929
4941
  padding: 0;
4930
4942
  }
4931
4943
 
@@ -5432,6 +5444,8 @@ body {
5432
5444
  position: fixed;
5433
5445
  inset: 0;
5434
5446
  background-color: var(--color-surface-backdrop);
5447
+ -webkit-backdrop-filter: blur(var(--effect-blur-backdrop));
5448
+ backdrop-filter: blur(var(--effect-blur-backdrop));
5435
5449
  z-index: 50;
5436
5450
  }
5437
5451
 
@@ -11240,6 +11254,8 @@ li.muka-listitem {
11240
11254
  /* Backdrop */
11241
11255
  .muka-drawer::backdrop {
11242
11256
  background-color: var(--color-surface-backdrop);
11257
+ -webkit-backdrop-filter: blur(var(--effect-blur-backdrop));
11258
+ backdrop-filter: blur(var(--effect-blur-backdrop));
11243
11259
  opacity: 0;
11244
11260
  transition: opacity 200ms ease;
11245
11261
  }
@@ -11342,7 +11358,14 @@ li.muka-listitem {
11342
11358
  .muka-drawer__body {
11343
11359
  flex: 1;
11344
11360
  overflow-y: auto;
11345
- padding: var(--spacing-4);
11361
+ padding: var(--drawer-padding-x);
11362
+ }
11363
+
11364
+ /* Roomier body on desktop; the header and footer keep their padding */
11365
+ @media (min-width: 1024px) {
11366
+ .muka-drawer__body {
11367
+ padding: var(--drawer-padding-x-desktop);
11368
+ }
11346
11369
  }
11347
11370
 
11348
11371
  /* Footer */
@@ -11683,6 +11706,8 @@ li.muka-listitem {
11683
11706
 
11684
11707
  .muka-dialog::backdrop {
11685
11708
  background-color: var(--dialog-color-backdrop);
11709
+ -webkit-backdrop-filter: blur(var(--dialog-backdrop-blur));
11710
+ backdrop-filter: blur(var(--dialog-backdrop-blur));
11686
11711
  }
11687
11712
 
11688
11713
  /* ─── Non-modal modifier ──────────────────────────────── */
@@ -11820,6 +11845,40 @@ li.muka-listitem {
11820
11845
  cursor: grabbing;
11821
11846
  }
11822
11847
 
11848
+ /* ─── Desktop entrance animation (≥ 1024px) ─────────── */
11849
+
11850
+ /* The card rises into place while it fades in, then drops back out in half
11851
+ the time. A transition takes its timing from the state it moves to, so the
11852
+ resting rule carries the exit and the --slide-in rule the entrance. Reduced
11853
+ motion zeroes both durations. */
11854
+ @media (min-width: 1024px) {
11855
+ .muka-dialog .muka-dialog__surface {
11856
+ transform: translateY(var(--dialog-motion-offset-desktop));
11857
+ opacity: 0;
11858
+ transition:
11859
+ transform var(--motion-duration-exit) var(--motion-easing-exit),
11860
+ opacity var(--motion-duration-exit) var(--motion-easing-exit);
11861
+ }
11862
+
11863
+ .muka-dialog--slide-in .muka-dialog__surface {
11864
+ transform: translateY(0);
11865
+ opacity: 1;
11866
+ transition:
11867
+ transform var(--motion-duration-component) var(--motion-easing-enter),
11868
+ opacity var(--motion-duration-component) var(--motion-easing-enter);
11869
+ }
11870
+
11871
+ .muka-dialog::backdrop {
11872
+ opacity: 0;
11873
+ transition: opacity var(--motion-duration-exit) var(--motion-easing-exit);
11874
+ }
11875
+
11876
+ .muka-dialog--slide-in::backdrop {
11877
+ opacity: 1;
11878
+ transition: opacity var(--motion-duration-component) var(--motion-easing-enter);
11879
+ }
11880
+ }
11881
+
11823
11882
  /* ─── Desktop overrides (≥ 1024px) ────────────────────── */
11824
11883
 
11825
11884
  @media (min-width: 1024px) {
@@ -11839,6 +11898,13 @@ li.muka-listitem {
11839
11898
  width: 100%;
11840
11899
  }
11841
11900
 
11901
+ /* Roomier body on desktop; the TopBar and BottomBar keep their padding */
11902
+ .muka-dialog--sm .muka-dialog__body,
11903
+ .muka-dialog--md .muka-dialog__body,
11904
+ .muka-dialog--lg .muka-dialog__body {
11905
+ padding: var(--dialog-padding-x-desktop);
11906
+ }
11907
+
11842
11908
  /* Half-height override not needed on desktop */
11843
11909
  .muka-dialog--mobile-half .muka-dialog__surface {
11844
11910
  height: auto;
@@ -15186,6 +15252,62 @@ button.muka-chat-photo-grid__tile:focus-visible {
15186
15252
  width: 100%;
15187
15253
  }
15188
15254
 
15255
+ /* ─── Message (actions variants only) ────────────────── */
15256
+
15257
+ /* Below 1024px the message takes its own line above the buttons. */
15258
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content {
15259
+ flex-wrap: wrap;
15260
+ row-gap: var(--bottombar-actions-message-gap);
15261
+ }
15262
+
15263
+ .muka-bottombar--actions-vertical.muka-bottombar--with-message .muka-bottombar__content {
15264
+ row-gap: var(--bottombar-actions-message-gap);
15265
+ }
15266
+
15267
+ .muka-bottombar--with-message .muka-bottombar__content > .muka-bottombar__message {
15268
+ flex: 1 0 100%;
15269
+ width: 100%;
15270
+ }
15271
+
15272
+ .muka-bottombar__message {
15273
+ margin: 0;
15274
+ min-width: 0;
15275
+ overflow-wrap: anywhere;
15276
+ font-family: var(--text-body-sm-regular-fontFamily);
15277
+ font-weight: var(--text-body-sm-regular-fontWeight);
15278
+ font-size: var(--text-body-sm-regular-fontSize);
15279
+ line-height: var(--text-body-sm-regular-lineHeight);
15280
+ }
15281
+
15282
+ .muka-bottombar__message--neutral {
15283
+ color: var(--bottombar-color-message-neutral);
15284
+ }
15285
+
15286
+ .muka-bottombar__message--success {
15287
+ color: var(--bottombar-color-message-success);
15288
+ }
15289
+
15290
+ .muka-bottombar__message--warning {
15291
+ color: var(--bottombar-color-message-warning);
15292
+ }
15293
+
15294
+ /* From 1024px the horizontal bar puts the message left, the buttons right at
15295
+ their own width. The vertical variant keeps stacking. */
15296
+ @media (min-width: 1024px) {
15297
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content {
15298
+ flex-wrap: nowrap;
15299
+ }
15300
+
15301
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content > * {
15302
+ flex: 0 0 auto;
15303
+ }
15304
+
15305
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content > .muka-bottombar__message {
15306
+ flex: 1 1 auto;
15307
+ width: auto;
15308
+ }
15309
+ }
15310
+
15189
15311
  /* ─── Size modifiers (actions variants only) ─────────── */
15190
15312
 
15191
15313
  /* ─── Navigation variant ──────────────────────────────── */
@@ -15764,6 +15886,72 @@ button.muka-chat-photo-grid__tile:focus-visible {
15764
15886
  }
15765
15887
 
15766
15888
 
15889
+ /* Autocomplete */
15890
+ /* Autocomplete — Figma Input Autocomplete (Input field + single-line suggestion Menu).
15891
+ The field reuses the Input styles (.muka-input*); only the menu wiring lives here. */
15892
+
15893
+ .muka-autocomplete {
15894
+ min-width: 200px;
15895
+ }
15896
+
15897
+ /* Covers the field's outer edge so the menu matches its full width. The menu
15898
+ is only open while focused, when the field has the bold border. */
15899
+ .muka-autocomplete__menu-anchor {
15900
+ position: absolute;
15901
+ inset: calc(-1 * var(--border-width-bold));
15902
+ z-index: 0;
15903
+ margin: 0;
15904
+ padding: 0;
15905
+ border: none;
15906
+ background: transparent;
15907
+ pointer-events: none;
15908
+ opacity: 0;
15909
+ }
15910
+
15911
+ /* Keep the field content above the invisible anchor. */
15912
+ .muka-autocomplete__field > :not(.muka-autocomplete__menu-anchor) {
15913
+ position: relative;
15914
+ z-index: 1;
15915
+ }
15916
+
15917
+ /* Figma: the menu is as wide as the field (never below the menu min-width token). */
15918
+ .muka-autocomplete__menu {
15919
+ width: var(--radix-dropdown-menu-trigger-width);
15920
+ max-width: calc(100vw - 2rem);
15921
+ }
15922
+
15923
+ /* Suggestions are single-line; long labels truncate. */
15924
+ .muka-autocomplete__menu .muka-menu__item-label {
15925
+ overflow: hidden;
15926
+ text-overflow: ellipsis;
15927
+ }
15928
+
15929
+ /* Loading and empty rows: menu-row geometry, not selectable. */
15930
+ .muka-autocomplete__status {
15931
+ display: flex;
15932
+ align-items: center;
15933
+ gap: var(--menu-item-gap);
15934
+ min-height: var(--menu-item-height);
15935
+ padding: var(--menu-item-padding-y) var(--menu-item-padding-x);
15936
+ color: var(--color-text-subtle-default);
15937
+ font-family: var(--text-label-md-regular-fontFamily);
15938
+ font-size: var(--text-label-md-regular-fontSize);
15939
+ font-weight: var(--text-label-md-regular-fontWeight);
15940
+ line-height: var(--text-label-md-regular-lineHeight);
15941
+ }
15942
+
15943
+ .muka-autocomplete__footer {
15944
+ flex-shrink: 0;
15945
+ padding: var(--spacing-2) var(--spacing-3);
15946
+ border-top: var(--border-width-regular) solid var(--color-border-default);
15947
+ color: var(--color-text-subtle-default);
15948
+ font-family: var(--text-label-sm-regular-fontFamily);
15949
+ font-size: var(--text-label-sm-regular-fontSize);
15950
+ font-weight: var(--text-label-sm-regular-fontWeight);
15951
+ line-height: var(--text-label-sm-regular-lineHeight);
15952
+ }
15953
+
15954
+
15767
15955
  /* Avatar */
15768
15956
  /* Avatar Component Styles - Using Muka Design Tokens */
15769
15957
 
@@ -16116,168 +16304,6 @@ button.muka-chat-photo-grid__tile:focus-visible {
16116
16304
  }
16117
16305
 
16118
16306
 
16119
- /* Autocomplete */
16120
- /* Autocomplete — Figma Input Autocomplete (Input field + single-line suggestion Menu).
16121
- The field reuses the Input styles (.muka-input*); only the menu wiring lives here. */
16122
-
16123
- .muka-autocomplete {
16124
- min-width: 200px;
16125
- }
16126
-
16127
- /* Covers the field's outer edge so the menu matches its full width. The menu
16128
- is only open while focused, when the field has the bold border. */
16129
- .muka-autocomplete__menu-anchor {
16130
- position: absolute;
16131
- inset: calc(-1 * var(--border-width-bold));
16132
- z-index: 0;
16133
- margin: 0;
16134
- padding: 0;
16135
- border: none;
16136
- background: transparent;
16137
- pointer-events: none;
16138
- opacity: 0;
16139
- }
16140
-
16141
- /* Keep the field content above the invisible anchor. */
16142
- .muka-autocomplete__field > :not(.muka-autocomplete__menu-anchor) {
16143
- position: relative;
16144
- z-index: 1;
16145
- }
16146
-
16147
- /* Figma: the menu is as wide as the field (never below the menu min-width token). */
16148
- .muka-autocomplete__menu {
16149
- width: var(--radix-dropdown-menu-trigger-width);
16150
- max-width: calc(100vw - 2rem);
16151
- }
16152
-
16153
- /* Suggestions are single-line; long labels truncate. */
16154
- .muka-autocomplete__menu .muka-menu__item-label {
16155
- overflow: hidden;
16156
- text-overflow: ellipsis;
16157
- }
16158
-
16159
- /* Loading and empty rows: menu-row geometry, not selectable. */
16160
- .muka-autocomplete__status {
16161
- display: flex;
16162
- align-items: center;
16163
- gap: var(--menu-item-gap);
16164
- min-height: var(--menu-item-height);
16165
- padding: var(--menu-item-padding-y) var(--menu-item-padding-x);
16166
- color: var(--color-text-subtle-default);
16167
- font-family: var(--text-label-md-regular-fontFamily);
16168
- font-size: var(--text-label-md-regular-fontSize);
16169
- font-weight: var(--text-label-md-regular-fontWeight);
16170
- line-height: var(--text-label-md-regular-lineHeight);
16171
- }
16172
-
16173
- .muka-autocomplete__footer {
16174
- flex-shrink: 0;
16175
- padding: var(--spacing-2) var(--spacing-3);
16176
- border-top: var(--border-width-regular) solid var(--color-border-default);
16177
- color: var(--color-text-subtle-default);
16178
- font-family: var(--text-label-sm-regular-fontFamily);
16179
- font-size: var(--text-label-sm-regular-fontSize);
16180
- font-weight: var(--text-label-sm-regular-fontWeight);
16181
- line-height: var(--text-label-sm-regular-lineHeight);
16182
- }
16183
-
16184
-
16185
- /* AppShell */
16186
- /* AppShell Component Styles */
16187
-
16188
- /*
16189
- * Layout wrapper for a persistent left navigation rail + main view area, with an
16190
- * optional full-width top app bar. The rail itself is styled by the BottomBar
16191
- * `desktopAs="sidebar"` rules (fixed 240px left rail at ≥1024px); AppShell shows/
16192
- * hides the sidebar + app-bar slots and offsets the main area to match. Both
16193
- * appear at the large tier — responsively (no `size`, scoped with
16194
- * `:not([data-size])`) or forced via `[data-size="lg"]`.
16195
- */
16196
- .muka-app-shell {
16197
- position: relative;
16198
- /* Reserved width for the rail; matches BottomBar's desktop-sidebar width. */
16199
- --app-shell-sidebar-width: 240px;
16200
- /* Height of the optional top app bar. */
16201
- --app-shell-appbar-height: 64px;
16202
- }
16203
-
16204
- /* Sidebar slot: hidden below the large tier (per-view nav handles small/medium). */
16205
- .muka-app-shell__sidebar {
16206
- display: none;
16207
- }
16208
-
16209
- .muka-app-shell__main {
16210
- min-height: 100dvh;
16211
- }
16212
-
16213
- /*
16214
- * App bar: full-width top strip. Intrinsic styling lives here (harmless while
16215
- * hidden); it is revealed only at the large tier. Sits above the sidebar rail.
16216
- */
16217
- .muka-app-shell__appbar {
16218
- display: none;
16219
- align-items: center;
16220
- justify-content: space-between;
16221
- gap: var(--spacing-4);
16222
- position: fixed;
16223
- top: 0;
16224
- left: 0;
16225
- right: 0;
16226
- height: var(--app-shell-appbar-height);
16227
- padding-inline: var(--spacing-4);
16228
- background-color: var(--color-surface-level3);
16229
- border-bottom: var(--border-width-regular) solid var(--color-border-default);
16230
- z-index: 11; /* above the sidebar rail (z-index 10) */
16231
- }
16232
-
16233
- /* ─── Large tier (responsive) ─── */
16234
- @media (min-width: 1024px) {
16235
- .muka-app-shell:not([data-size]) .muka-app-shell__sidebar {
16236
- display: block;
16237
- }
16238
- .muka-app-shell:not([data-size]) .muka-app-shell__main {
16239
- padding-left: var(--app-shell-sidebar-width);
16240
- }
16241
- .muka-app-shell:not([data-size]) .muka-app-shell__appbar {
16242
- display: flex;
16243
- }
16244
- /* When an app bar is present, drop the rail + content below it so nothing overlaps. */
16245
- .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-app-shell__main {
16246
- padding-top: var(--app-shell-appbar-height);
16247
- }
16248
- .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
16249
- top: var(--app-shell-appbar-height);
16250
- height: calc(100vh - var(--app-shell-appbar-height));
16251
- }
16252
- .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view,
16253
- .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-nav-transition {
16254
- height: calc(100dvh - var(--app-shell-appbar-height));
16255
- }
16256
- }
16257
-
16258
- /* ─── Large tier (forced via size="lg") ─── */
16259
- .muka-app-shell[data-size='lg'] .muka-app-shell__sidebar {
16260
- display: block;
16261
- }
16262
- .muka-app-shell[data-size='lg'] .muka-app-shell__main {
16263
- padding-left: var(--app-shell-sidebar-width);
16264
- }
16265
- .muka-app-shell[data-size='lg'] .muka-app-shell__appbar {
16266
- display: flex;
16267
- }
16268
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-app-shell__main {
16269
- padding-top: var(--app-shell-appbar-height);
16270
- }
16271
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
16272
- top: var(--app-shell-appbar-height);
16273
- height: calc(100vh - var(--app-shell-appbar-height));
16274
- }
16275
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view,
16276
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-nav-transition {
16277
- height: calc(100dvh - var(--app-shell-appbar-height));
16278
- }
16279
-
16280
-
16281
16307
  /* Alert */
16282
16308
  /* Alert Component Styles - Using Muka Design Tokens */
16283
16309
 
@@ -16489,6 +16515,102 @@ button.muka-chat-photo-grid__tile:focus-visible {
16489
16515
  }
16490
16516
 
16491
16517
 
16518
+ /* AppShell */
16519
+ /* AppShell Component Styles */
16520
+
16521
+ /*
16522
+ * Layout wrapper for a persistent left navigation rail + main view area, with an
16523
+ * optional full-width top app bar. The rail itself is styled by the BottomBar
16524
+ * `desktopAs="sidebar"` rules (fixed 240px left rail at ≥1024px); AppShell shows/
16525
+ * hides the sidebar + app-bar slots and offsets the main area to match. Both
16526
+ * appear at the large tier — responsively (no `size`, scoped with
16527
+ * `:not([data-size])`) or forced via `[data-size="lg"]`.
16528
+ */
16529
+ .muka-app-shell {
16530
+ position: relative;
16531
+ /* Reserved width for the rail; matches BottomBar's desktop-sidebar width. */
16532
+ --app-shell-sidebar-width: 240px;
16533
+ /* Height of the optional top app bar. */
16534
+ --app-shell-appbar-height: 64px;
16535
+ }
16536
+
16537
+ /* Sidebar slot: hidden below the large tier (per-view nav handles small/medium). */
16538
+ .muka-app-shell__sidebar {
16539
+ display: none;
16540
+ }
16541
+
16542
+ .muka-app-shell__main {
16543
+ min-height: 100dvh;
16544
+ }
16545
+
16546
+ /*
16547
+ * App bar: full-width top strip. Intrinsic styling lives here (harmless while
16548
+ * hidden); it is revealed only at the large tier. Sits above the sidebar rail.
16549
+ */
16550
+ .muka-app-shell__appbar {
16551
+ display: none;
16552
+ align-items: center;
16553
+ justify-content: space-between;
16554
+ gap: var(--spacing-4);
16555
+ position: fixed;
16556
+ top: 0;
16557
+ left: 0;
16558
+ right: 0;
16559
+ height: var(--app-shell-appbar-height);
16560
+ padding-inline: var(--spacing-4);
16561
+ background-color: var(--color-surface-level3);
16562
+ border-bottom: var(--border-width-regular) solid var(--color-border-default);
16563
+ z-index: 11; /* above the sidebar rail (z-index 10) */
16564
+ }
16565
+
16566
+ /* ─── Large tier (responsive) ─── */
16567
+ @media (min-width: 1024px) {
16568
+ .muka-app-shell:not([data-size]) .muka-app-shell__sidebar {
16569
+ display: block;
16570
+ }
16571
+ .muka-app-shell:not([data-size]) .muka-app-shell__main {
16572
+ padding-left: var(--app-shell-sidebar-width);
16573
+ }
16574
+ .muka-app-shell:not([data-size]) .muka-app-shell__appbar {
16575
+ display: flex;
16576
+ }
16577
+ /* When an app bar is present, drop the rail + content below it so nothing overlaps. */
16578
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-app-shell__main {
16579
+ padding-top: var(--app-shell-appbar-height);
16580
+ }
16581
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
16582
+ top: var(--app-shell-appbar-height);
16583
+ height: calc(100vh - var(--app-shell-appbar-height));
16584
+ }
16585
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view,
16586
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-nav-transition {
16587
+ height: calc(100dvh - var(--app-shell-appbar-height));
16588
+ }
16589
+ }
16590
+
16591
+ /* ─── Large tier (forced via size="lg") ─── */
16592
+ .muka-app-shell[data-size='lg'] .muka-app-shell__sidebar {
16593
+ display: block;
16594
+ }
16595
+ .muka-app-shell[data-size='lg'] .muka-app-shell__main {
16596
+ padding-left: var(--app-shell-sidebar-width);
16597
+ }
16598
+ .muka-app-shell[data-size='lg'] .muka-app-shell__appbar {
16599
+ display: flex;
16600
+ }
16601
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-app-shell__main {
16602
+ padding-top: var(--app-shell-appbar-height);
16603
+ }
16604
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
16605
+ top: var(--app-shell-appbar-height);
16606
+ height: calc(100vh - var(--app-shell-appbar-height));
16607
+ }
16608
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view,
16609
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-nav-transition {
16610
+ height: calc(100dvh - var(--app-shell-appbar-height));
16611
+ }
16612
+
16613
+
16492
16614
  /* AgentTaskList */
16493
16615
  /* AgentTaskList Component Styles */
16494
16616