@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
@@ -1569,9 +1569,11 @@ body {
1569
1569
  --motion-duration-micro: 150ms;
1570
1570
  --motion-duration-component: 200ms;
1571
1571
  --motion-duration-view: 300ms;
1572
+ --motion-duration-exit: 100ms;
1572
1573
  --motion-easing-default: cubic-bezier(0.4, 0, 0.2, 1);
1573
1574
  --motion-easing-enter: cubic-bezier(0.16, 1, 0.3, 1);
1574
1575
  --motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
1576
+ --effect-blur-backdrop: 2px;
1575
1577
  --button-color-primary-background-default: #113264;
1576
1578
  --button-color-primary-background-hover: #0d74ce;
1577
1579
  --button-color-primary-background-pressed: #0d74ce;
@@ -1897,6 +1899,7 @@ body {
1897
1899
  --dialog-color-backdrop: rgba(0, 0, 0, 0.565);
1898
1900
  --dialog-color-background: #fcfcfc;
1899
1901
  --dialog-color-body-background: #fcfcfc;
1902
+ --dialog-backdrop-blur: 2px;
1900
1903
  --dialog-border-radius: 0px;
1901
1904
  --dialog-border-radius-desktop: 0px;
1902
1905
  --dialog-shadow-default: 0 48px 96px 0 rgba(0, 0, 0, 0.220), inset 0 0 1px 0 rgba(0, 0, 0, 0.220);
@@ -1916,6 +1919,8 @@ body {
1916
1919
  --dialog-drag-handle-padding-y: 0.75rem;
1917
1920
  --dialog-drag-handle-radius: 999rem;
1918
1921
  --dialog-padding-x: 1rem;
1922
+ --dialog-padding-x-desktop: 1.5rem;
1923
+ --dialog-motion-offset-desktop: 80px;
1919
1924
  --menu-content-color-background: #fcfcfc;
1920
1925
  --menu-content-color-border: #bbbbbb;
1921
1926
  --menu-content-border-radius: 0px;
@@ -2139,6 +2144,9 @@ body {
2139
2144
  --bottombar-color-border: #e0e0e0;
2140
2145
  --bottombar-color-tab-active: #202020;
2141
2146
  --bottombar-color-tab-inactive: #838383;
2147
+ --bottombar-color-message-neutral: #202020;
2148
+ --bottombar-color-message-success: #18794e;
2149
+ --bottombar-color-message-warning: #ab6400;
2142
2150
  --bottombar-floating-radius: 0px;
2143
2151
  --bottombar-floating-padding: 0.75rem;
2144
2152
  --bottombar-floating-margin-x: 0.75rem;
@@ -2158,6 +2166,7 @@ body {
2158
2166
  --bottombar-actions-gap: 0.75rem;
2159
2167
  --bottombar-actions-button-height-sm: 3rem;
2160
2168
  --bottombar-actions-button-height-lg: 4rem;
2169
+ --bottombar-actions-message-gap: 0.5rem;
2161
2170
  --bottombar-navigation-floating-padding: 0.5rem;
2162
2171
  --view-color-background: #e8e8e8;
2163
2172
  --badge-size-height-sm: 1.5rem;
@@ -2352,6 +2361,8 @@ body {
2352
2361
  --gantt-wait-border: #bbbbbb;
2353
2362
  --gantt-wait-foreground: #202020;
2354
2363
  --gantt-ghost-border: #ab6400;
2364
+ --drawer-padding-x: 1rem;
2365
+ --drawer-padding-x-desktop: 1.5rem;
2355
2366
  }
2356
2367
 
2357
2368
  /* Responsive overrides: md (min-width: 768px) */
@@ -2440,6 +2451,7 @@ body {
2440
2451
  --motion-duration-micro: 0ms;
2441
2452
  --motion-duration-component: 0ms;
2442
2453
  --motion-duration-view: 0ms;
2454
+ --motion-duration-exit: 0ms;
2443
2455
  }
2444
2456
  }
2445
2457
 
@@ -2503,6 +2515,116 @@ body {
2503
2515
  }
2504
2516
 
2505
2517
 
2518
+ /* View */
2519
+ /* View Component Styles */
2520
+
2521
+ /* ─── Base layout ─────────────────────────────────────── */
2522
+
2523
+ .muka-view {
2524
+ display: flex;
2525
+ flex-direction: column;
2526
+ height: 100dvh;
2527
+ background-color: var(--view-color-background);
2528
+ position: relative;
2529
+ isolation: isolate;
2530
+ box-sizing: border-box;
2531
+
2532
+ /* Width reserved for the footer nav once it becomes a left sidebar at the
2533
+ large tier (matches BottomBar's desktopAs="sidebar" rail width). */
2534
+ --view-sidebar-width: 240px;
2535
+ }
2536
+
2537
+ /* ─── Surface level variants ─────────────────────────── */
2538
+
2539
+ .muka-view--surface-3 {
2540
+ background-color: var(--color-surface-level3);
2541
+ }
2542
+
2543
+ /* ─── Large screens: make room for the left sidebar ──────────
2544
+ A footer nav with desktopAs="sidebar" becomes a fixed 240px left rail at
2545
+ ≥1024px. Offset the shell so the TopBar/body clear it — tied to the sidebar's
2546
+ actual presence (the `.muka-bottombar--desktop-sidebar` element) rather than
2547
+ the View's `size`, so a forced `size="lg"` below 1024px never reserves space
2548
+ for a sidebar that hasn't rendered yet. */
2549
+ @media (min-width: 1024px) {
2550
+ .muka-view:has(.muka-bottombar--desktop-sidebar) {
2551
+ padding-left: var(--view-sidebar-width);
2552
+ }
2553
+ }
2554
+
2555
+ /* ─── TopBar elevation ────────────────────────────────── */
2556
+
2557
+ .muka-view .muka-topbar {
2558
+ flex-shrink: 0;
2559
+ z-index: 3;
2560
+ box-shadow: var(--shadow-level2);
2561
+ }
2562
+
2563
+ /* ─── Scrollable body ─────────────────────────────────── */
2564
+
2565
+ .muka-view__body {
2566
+ flex: 1 1 0%;
2567
+ min-height: 0;
2568
+ overflow-y: auto;
2569
+ overflow-x: clip;
2570
+ z-index: 1;
2571
+
2572
+ /* Column flow so the footer (now a scroll-area child) can pin to the bottom and
2573
+ content scrolls *behind* it — letting a floating BottomBar's frosted backdrop
2574
+ reveal the content underneath. */
2575
+ display: flex;
2576
+ flex-direction: column;
2577
+ }
2578
+
2579
+ /* Inner wrapper constrains content width at the large tier (enterprise desktop)
2580
+ using the alias-layer section/container tokens, while the body scrolls full
2581
+ width. Full-bleed below large. */
2582
+ .muka-view__body-inner {
2583
+ width: 100%;
2584
+ /* Grow on short content so the sticky footer is pushed to the bottom rather
2585
+ than floating mid-screen. */
2586
+ flex: 1 0 auto;
2587
+ }
2588
+
2589
+ @media (min-width: 1024px) {
2590
+ .muka-view:not([data-size]) .muka-view__body-inner {
2591
+ max-width: var(--container-max-width-xl);
2592
+ margin-inline: auto;
2593
+ padding-inline: var(--section-padding-horizontal-default);
2594
+ }
2595
+ }
2596
+
2597
+ .muka-view[data-size='lg'] .muka-view__body-inner {
2598
+ max-width: var(--container-max-width-xl);
2599
+ margin-inline: auto;
2600
+ padding-inline: var(--section-padding-horizontal-default);
2601
+ }
2602
+
2603
+ /* ─── Footer (e.g. BottomBar) ─────────────────────────── */
2604
+
2605
+ .muka-view__footer {
2606
+ position: sticky;
2607
+ bottom: 0;
2608
+ flex-shrink: 0;
2609
+ z-index: 2;
2610
+ }
2611
+
2612
+ /* Inside an AppShell, the persistent left rail replaces the per-view bottom
2613
+ navigation at the large tier, so hide a footer that holds a navigation bar.
2614
+ Scoped to `.muka-app-shell` so bare Views (and the standalone
2615
+ desktopAs="sidebar" footer pattern above) are unaffected. Action-bar footers
2616
+ (`.muka-bottombar--actions`) don't match and remain at the bottom. */
2617
+ @media (min-width: 1024px) {
2618
+ .muka-app-shell .muka-view__footer:has(.muka-bottombar--navigation) {
2619
+ display: none;
2620
+ }
2621
+ }
2622
+
2623
+ .muka-app-shell[data-size='lg'] .muka-view__footer:has(.muka-bottombar--navigation) {
2624
+ display: none;
2625
+ }
2626
+
2627
+
2506
2628
  /* Typography */
2507
2629
  .muka-typography-catalog {
2508
2630
  display: flex;
@@ -2853,116 +2975,6 @@ body {
2853
2975
  }
2854
2976
 
2855
2977
 
2856
- /* View */
2857
- /* View Component Styles */
2858
-
2859
- /* ─── Base layout ─────────────────────────────────────── */
2860
-
2861
- .muka-view {
2862
- display: flex;
2863
- flex-direction: column;
2864
- height: 100dvh;
2865
- background-color: var(--view-color-background);
2866
- position: relative;
2867
- isolation: isolate;
2868
- box-sizing: border-box;
2869
-
2870
- /* Width reserved for the footer nav once it becomes a left sidebar at the
2871
- large tier (matches BottomBar's desktopAs="sidebar" rail width). */
2872
- --view-sidebar-width: 240px;
2873
- }
2874
-
2875
- /* ─── Surface level variants ─────────────────────────── */
2876
-
2877
- .muka-view--surface-3 {
2878
- background-color: var(--color-surface-level3);
2879
- }
2880
-
2881
- /* ─── Large screens: make room for the left sidebar ──────────
2882
- A footer nav with desktopAs="sidebar" becomes a fixed 240px left rail at
2883
- ≥1024px. Offset the shell so the TopBar/body clear it — tied to the sidebar's
2884
- actual presence (the `.muka-bottombar--desktop-sidebar` element) rather than
2885
- the View's `size`, so a forced `size="lg"` below 1024px never reserves space
2886
- for a sidebar that hasn't rendered yet. */
2887
- @media (min-width: 1024px) {
2888
- .muka-view:has(.muka-bottombar--desktop-sidebar) {
2889
- padding-left: var(--view-sidebar-width);
2890
- }
2891
- }
2892
-
2893
- /* ─── TopBar elevation ────────────────────────────────── */
2894
-
2895
- .muka-view .muka-topbar {
2896
- flex-shrink: 0;
2897
- z-index: 3;
2898
- box-shadow: var(--shadow-level2);
2899
- }
2900
-
2901
- /* ─── Scrollable body ─────────────────────────────────── */
2902
-
2903
- .muka-view__body {
2904
- flex: 1 1 0%;
2905
- min-height: 0;
2906
- overflow-y: auto;
2907
- overflow-x: clip;
2908
- z-index: 1;
2909
-
2910
- /* Column flow so the footer (now a scroll-area child) can pin to the bottom and
2911
- content scrolls *behind* it — letting a floating BottomBar's frosted backdrop
2912
- reveal the content underneath. */
2913
- display: flex;
2914
- flex-direction: column;
2915
- }
2916
-
2917
- /* Inner wrapper constrains content width at the large tier (enterprise desktop)
2918
- using the alias-layer section/container tokens, while the body scrolls full
2919
- width. Full-bleed below large. */
2920
- .muka-view__body-inner {
2921
- width: 100%;
2922
- /* Grow on short content so the sticky footer is pushed to the bottom rather
2923
- than floating mid-screen. */
2924
- flex: 1 0 auto;
2925
- }
2926
-
2927
- @media (min-width: 1024px) {
2928
- .muka-view:not([data-size]) .muka-view__body-inner {
2929
- max-width: var(--container-max-width-xl);
2930
- margin-inline: auto;
2931
- padding-inline: var(--section-padding-horizontal-default);
2932
- }
2933
- }
2934
-
2935
- .muka-view[data-size='lg'] .muka-view__body-inner {
2936
- max-width: var(--container-max-width-xl);
2937
- margin-inline: auto;
2938
- padding-inline: var(--section-padding-horizontal-default);
2939
- }
2940
-
2941
- /* ─── Footer (e.g. BottomBar) ─────────────────────────── */
2942
-
2943
- .muka-view__footer {
2944
- position: sticky;
2945
- bottom: 0;
2946
- flex-shrink: 0;
2947
- z-index: 2;
2948
- }
2949
-
2950
- /* Inside an AppShell, the persistent left rail replaces the per-view bottom
2951
- navigation at the large tier, so hide a footer that holds a navigation bar.
2952
- Scoped to `.muka-app-shell` so bare Views (and the standalone
2953
- desktopAs="sidebar" footer pattern above) are unaffected. Action-bar footers
2954
- (`.muka-bottombar--actions`) don't match and remain at the bottom. */
2955
- @media (min-width: 1024px) {
2956
- .muka-app-shell .muka-view__footer:has(.muka-bottombar--navigation) {
2957
- display: none;
2958
- }
2959
- }
2960
-
2961
- .muka-app-shell[data-size='lg'] .muka-view__footer:has(.muka-bottombar--navigation) {
2962
- display: none;
2963
- }
2964
-
2965
-
2966
2978
  /* Toast */
2967
2979
  /* Toast Component Styles - Using Muka Design Tokens */
2968
2980
 
@@ -3153,191 +3165,28 @@ body {
3153
3165
  }
3154
3166
 
3155
3167
 
3156
- /* Toggle */
3157
- /* Toggle Component Styles - Using Muka Design Tokens */
3168
+ /* Tile */
3169
+ /* Tile Component Styles - Using Muka Design Tokens */
3158
3170
 
3159
- /* Wrapper container */
3160
- .muka-toggle {
3171
+ /* ─── Base ────────────────────────────────────────────── */
3172
+
3173
+ .muka-tile {
3161
3174
  display: flex;
3162
- align-items: center;
3163
- gap: var(--spacing-2);
3164
- position: relative;
3165
- padding: var(--spacing-4) 0;
3175
+ color: var(--color-text-default-default);
3166
3176
  }
3167
3177
 
3168
- .muka-toggle--with-caption {
3169
- padding: var(--spacing-5) 0;
3178
+ .muka-tile--interactive {
3179
+ cursor: pointer;
3180
+ user-select: none;
3170
3181
  }
3171
3182
 
3172
- .muka-toggle--disabled {
3173
- opacity: 0.6;
3183
+ .muka-tile--interactive:focus-visible {
3184
+ outline: 2px solid var(--color-border-focus);
3185
+ outline-offset: 2px;
3186
+ border-radius: var(--border-radius-lg);
3174
3187
  }
3175
3188
 
3176
- /* Icon */
3177
- .muka-toggle__icon {
3178
- display: flex;
3179
- align-items: center;
3180
- justify-content: center;
3181
- flex-shrink: 0;
3182
- width: var(--icon-size-default);
3183
- height: var(--icon-size-default);
3184
- color: var(--color-text-default-default);
3185
- }
3186
-
3187
- .muka-toggle__icon svg {
3188
- width: 100%;
3189
- height: 100%;
3190
- }
3191
-
3192
- /* Content area (label + caption) */
3193
- .muka-toggle__content {
3194
- display: flex;
3195
- flex-direction: column;
3196
- flex: 1;
3197
- min-width: 0;
3198
- gap: var(--spacing-1);
3199
- }
3200
-
3201
- /* Label */
3202
- .muka-toggle__label {
3203
- font-family: var(--text-label-lg-regular-fontFamily);
3204
- font-weight: var(--text-label-lg-regular-fontWeight);
3205
- font-size: var(--text-label-lg-regular-fontSize);
3206
- line-height: var(--text-label-lg-regular-lineHeight);
3207
- color: var(--color-text-default-default);
3208
- cursor: pointer;
3209
- }
3210
-
3211
- .muka-toggle--with-caption .muka-toggle__label {
3212
- font-family: var(--text-label-lg-semibold-fontFamily);
3213
- font-weight: var(--text-label-lg-semibold-fontWeight);
3214
- font-size: var(--text-label-lg-semibold-fontSize);
3215
- line-height: var(--text-label-lg-semibold-lineHeight);
3216
- }
3217
-
3218
- .muka-toggle--disabled .muka-toggle__label {
3219
- color: var(--color-text-subtle-default);
3220
- cursor: not-allowed;
3221
- }
3222
-
3223
- /* Caption */
3224
- .muka-toggle__caption {
3225
- font-family: var(--text-body-base-regular-fontFamily);
3226
- font-weight: var(--text-body-base-regular-fontWeight);
3227
- font-size: var(--text-body-base-regular-fontSize);
3228
- line-height: var(--text-body-base-regular-lineHeight);
3229
- color: var(--color-text-subtle-default);
3230
- }
3231
-
3232
- /* Switch container */
3233
- .muka-toggle__switch {
3234
- position: relative;
3235
- display: inline-flex;
3236
- flex-shrink: 0;
3237
- cursor: pointer;
3238
- }
3239
-
3240
- .muka-toggle--disabled .muka-toggle__switch {
3241
- cursor: not-allowed;
3242
- }
3243
-
3244
- /* Hidden native input */
3245
- .muka-toggle__input {
3246
- position: absolute;
3247
- width: 1px;
3248
- height: 1px;
3249
- padding: 0;
3250
- margin: -1px;
3251
- overflow: hidden;
3252
- clip: rect(0, 0, 0, 0);
3253
- white-space: nowrap;
3254
- border: 0;
3255
- }
3256
-
3257
- /* Track (background pill) */
3258
- .muka-toggle__track {
3259
- display: flex;
3260
- align-items: center;
3261
- width: var(--toggle-track-width);
3262
- height: var(--toggle-track-height);
3263
- border-radius: var(--toggle-track-radius);
3264
- background-color: var(--toggle-track-color-off);
3265
- transition: background-color 0.2s ease;
3266
- box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.16);
3267
- position: relative;
3268
- }
3269
-
3270
- /* Knob (sliding circle) */
3271
- .muka-toggle__knob {
3272
- position: absolute;
3273
- width: var(--toggle-knob-size);
3274
- height: var(--toggle-knob-size);
3275
- border-radius: var(--border-radius-full);
3276
- background-color: var(--toggle-knob-color-default);
3277
- box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
3278
- left: var(--toggle-knob-offset);
3279
- transition: left 0.2s ease, transform 0.2s ease;
3280
- }
3281
-
3282
- /* Focus state */
3283
- .muka-toggle__input:focus-visible + .muka-toggle__track {
3284
- outline: 2px solid var(--color-border-focus);
3285
- outline-offset: 2px;
3286
- }
3287
-
3288
- /* Checked (on) state */
3289
- .muka-toggle__input:checked + .muka-toggle__track {
3290
- background-color: var(--toggle-track-color-on);
3291
- }
3292
-
3293
- .muka-toggle__input:checked + .muka-toggle__track .muka-toggle__knob {
3294
- left: calc(var(--toggle-track-width) - var(--toggle-knob-size) - var(--toggle-knob-offset));
3295
- }
3296
-
3297
- /* Disabled state */
3298
- .muka-toggle--disabled .muka-toggle__track {
3299
- background-color: var(--toggle-track-color-disabled);
3300
- box-shadow: none;
3301
- }
3302
-
3303
- .muka-toggle--disabled .muka-toggle__knob {
3304
- background-color: var(--toggle-knob-color-disabled);
3305
- box-shadow: none;
3306
- }
3307
-
3308
- /* Divider */
3309
- .muka-toggle__divider {
3310
- position: absolute;
3311
- bottom: 0;
3312
- left: 0;
3313
- right: 0;
3314
- height: 1px;
3315
- background-color: var(--color-border-muted);
3316
- }
3317
-
3318
-
3319
- /* Tile */
3320
- /* Tile Component Styles - Using Muka Design Tokens */
3321
-
3322
- /* ─── Base ────────────────────────────────────────────── */
3323
-
3324
- .muka-tile {
3325
- display: flex;
3326
- color: var(--color-text-default-default);
3327
- }
3328
-
3329
- .muka-tile--interactive {
3330
- cursor: pointer;
3331
- user-select: none;
3332
- }
3333
-
3334
- .muka-tile--interactive:focus-visible {
3335
- outline: 2px solid var(--color-border-focus);
3336
- outline-offset: 2px;
3337
- border-radius: var(--border-radius-lg);
3338
- }
3339
-
3340
- /* ─── Image position variants ─────────────────────────── */
3189
+ /* ─── Image position variants ─────────────────────────── */
3341
3190
 
3342
3191
  .muka-tile--image-top {
3343
3192
  flex-direction: column;
@@ -3677,73 +3526,258 @@ body {
3677
3526
  }
3678
3527
 
3679
3528
 
3680
- /* Textarea */
3681
- /* Textarea Component Styles - Using Muka Design Tokens */
3529
+ /* Thumbnail */
3530
+ /* Thumbnail Component Styles - Using Muka Design Tokens */
3682
3531
 
3683
- .muka-textarea {
3684
- display: inline-flex;
3685
- flex-direction: column;
3686
- gap: var(--spacing-2);
3532
+ .muka-thumbnail {
3533
+ position: relative;
3534
+ flex-shrink: 0;
3687
3535
  }
3688
3536
 
3689
- /* Label */
3690
- .muka-textarea__label {
3691
- color: var(--color-text-default-default);
3692
- cursor: pointer;
3537
+ /* The frame carries the border, background and shape clip. Keeping it separate
3538
+ from the root lets the remove (×) button sit outside the clip (needed for the
3539
+ circular/ellipse shape, whose corners would otherwise clip the button). */
3540
+ .muka-thumbnail__frame {
3541
+ position: absolute;
3542
+ inset: 0;
3543
+ overflow: hidden;
3544
+ border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
3545
+ border-radius: var(--border-radius-lg);
3546
+ background-color: var(--color-surface-level1);
3693
3547
  }
3694
3548
 
3695
- .muka-textarea__label--sm {
3696
- font-family: var(--text-label-sm-semibold-fontFamily);
3697
- font-weight: var(--text-label-sm-semibold-fontWeight);
3698
- font-size: var(--text-label-sm-semibold-fontSize);
3699
- line-height: var(--text-label-sm-semibold-lineHeight);
3549
+ /* ─── Shapes ──────────────────────────────────────────── */
3550
+ .muka-thumbnail--4-3 {
3551
+ width: 160px;
3552
+ height: 120px;
3700
3553
  }
3701
3554
 
3702
- .muka-textarea__label--md {
3703
- font-family: var(--text-label-md-semibold-fontFamily);
3704
- font-weight: var(--text-label-md-semibold-fontWeight);
3705
- font-size: var(--text-label-md-semibold-fontSize);
3706
- line-height: var(--text-label-md-semibold-lineHeight);
3555
+ .muka-thumbnail--1-1 {
3556
+ width: 120px;
3557
+ height: 120px;
3707
3558
  }
3708
3559
 
3709
- .muka-textarea__label--lg {
3710
- font-family: var(--text-label-lg-semibold-fontFamily);
3711
- font-weight: var(--text-label-lg-semibold-fontWeight);
3712
- font-size: var(--text-label-lg-semibold-fontSize);
3713
- line-height: var(--text-label-lg-semibold-lineHeight);
3560
+ .muka-thumbnail--ellipse {
3561
+ width: 120px;
3562
+ height: 120px;
3714
3563
  }
3715
3564
 
3716
- .muka-textarea__required {
3717
- color: var(--color-state-error-default);
3565
+ /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
3566
+ .muka-thumbnail--fluid {
3567
+ width: 100%;
3568
+ height: auto;
3569
+ aspect-ratio: 1 / 1;
3718
3570
  }
3719
3571
 
3720
- /* Field container */
3721
- .muka-textarea__field {
3722
- display: flex;
3723
- background-color: var(--input-field-color-default-background);
3724
- border: var(--border-width-regular) solid var(--input-field-color-default-border);
3725
- border-radius: var(--input-field-radius-md);
3726
- padding: var(--input-field-padding-y) var(--input-field-padding-x);
3727
- transition: border-color 0.2s ease, background-color 0.2s ease;
3728
- box-sizing: border-box;
3572
+ .muka-thumbnail--fluid.muka-thumbnail--4-3 {
3573
+ aspect-ratio: 4 / 3;
3729
3574
  }
3730
3575
 
3731
- .muka-textarea__field--sm {
3732
- min-height: var(--input-textarea-height-sm);
3733
- border-radius: var(--input-field-radius-sm);
3576
+ .muka-thumbnail--ellipse .muka-thumbnail__frame {
3577
+ border-radius: var(--border-radius-full);
3734
3578
  }
3735
3579
 
3736
- .muka-textarea__field--md {
3737
- min-height: var(--input-textarea-height-default);
3738
- border-radius: var(--input-field-radius-md);
3580
+ /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
3581
+ interactive hover zoom has a clean origin. */
3582
+ .muka-thumbnail__image {
3583
+ position: absolute;
3584
+ inset: 0;
3585
+ width: 100%;
3586
+ height: 100%;
3587
+ object-fit: cover;
3588
+ display: block;
3589
+ transform-origin: center;
3590
+ /* Micro-interaction: hover zoom eases out over the "micro" duration. */
3591
+ transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
3739
3592
  }
3740
3593
 
3741
- .muka-textarea__field--lg {
3742
- min-height: var(--input-textarea-height-lg);
3743
- border-radius: var(--input-field-radius-lg);
3594
+ /* ─── Interactive (click-to-enlarge) ──────────────────── */
3595
+ .muka-thumbnail__trigger {
3596
+ position: absolute;
3597
+ inset: 0;
3598
+ padding: 0;
3599
+ border: 0;
3600
+ background: none;
3601
+ cursor: pointer;
3602
+ overflow: hidden;
3744
3603
  }
3745
3604
 
3746
- /* Focus state */
3605
+ .muka-thumbnail__trigger:focus-visible {
3606
+ outline: 2px solid var(--color-border-focus);
3607
+ outline-offset: -2px;
3608
+ }
3609
+
3610
+ /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
3611
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3612
+ transform: scale(1.05);
3613
+ }
3614
+
3615
+ /* ─── Loading overlay + progress donut ────────────────── */
3616
+ .muka-thumbnail__overlay {
3617
+ position: absolute;
3618
+ inset: 0;
3619
+ display: flex;
3620
+ align-items: center;
3621
+ justify-content: center;
3622
+ background-color: var(--dialog-color-backdrop);
3623
+ }
3624
+
3625
+ .muka-thumbnail__progress {
3626
+ width: 40px;
3627
+ height: 40px;
3628
+ }
3629
+
3630
+ /* ─── Error / corrupt state ───────────────────────────── */
3631
+ .muka-thumbnail--error .muka-thumbnail__frame {
3632
+ background-color: var(--alias-color-state-error-muted);
3633
+ border-color: var(--alias-color-state-error-default);
3634
+ }
3635
+
3636
+ .muka-thumbnail__error {
3637
+ position: absolute;
3638
+ inset: 0;
3639
+ display: flex;
3640
+ flex-direction: column;
3641
+ align-items: center;
3642
+ justify-content: center;
3643
+ gap: var(--spacing-2);
3644
+ padding: var(--spacing-3);
3645
+ text-align: center;
3646
+ }
3647
+
3648
+ .muka-thumbnail__error-icon {
3649
+ color: var(--alert-color-error-accent);
3650
+ }
3651
+
3652
+ .muka-thumbnail__caption {
3653
+ max-width: 100%;
3654
+ overflow: hidden;
3655
+ text-overflow: ellipsis;
3656
+ white-space: nowrap;
3657
+ color: var(--alert-color-error-accent);
3658
+ font-family: var(--text-body-sm-regular-fontFamily);
3659
+ font-size: var(--text-body-sm-regular-fontSize);
3660
+ font-weight: var(--text-body-sm-regular-fontWeight);
3661
+ line-height: var(--text-body-sm-regular-lineHeight);
3662
+ }
3663
+
3664
+ /* ─── Remove (×) button ───────────────────────────────── */
3665
+ .muka-thumbnail__remove {
3666
+ position: absolute;
3667
+ top: var(--spacing-2);
3668
+ right: var(--spacing-2);
3669
+ display: flex;
3670
+ align-items: center;
3671
+ justify-content: center;
3672
+ width: var(--size-2xl);
3673
+ height: var(--size-2xl);
3674
+ padding: 0;
3675
+ color: var(--button-color-tertiary-foreground-default);
3676
+ background-color: var(--button-color-tertiary-background-default);
3677
+ border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
3678
+ border-radius: var(--border-radius-lg);
3679
+ cursor: pointer;
3680
+ transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
3681
+ border-color var(--motion-duration-micro) var(--motion-easing-enter);
3682
+ }
3683
+
3684
+ .muka-thumbnail__remove:hover {
3685
+ color: var(--button-color-tertiary-foreground-hover);
3686
+ background-color: var(--button-color-tertiary-background-hover);
3687
+ border-color: var(--button-color-tertiary-border-hover);
3688
+ }
3689
+
3690
+ .muka-thumbnail__remove:active {
3691
+ color: var(--button-color-tertiary-foreground-pressed);
3692
+ background-color: var(--button-color-tertiary-background-pressed);
3693
+ border-color: var(--button-color-tertiary-border-pressed);
3694
+ }
3695
+
3696
+ .muka-thumbnail__remove:focus-visible {
3697
+ outline: 2px solid var(--color-border-focus);
3698
+ outline-offset: 2px;
3699
+ }
3700
+
3701
+ /* ─── Reduced motion ──────────────────────────────────── */
3702
+ @media (prefers-reduced-motion: reduce) {
3703
+ .muka-thumbnail__image,
3704
+ .muka-thumbnail__remove {
3705
+ transition: none;
3706
+ }
3707
+
3708
+ .muka-thumbnail--interactive:hover .muka-thumbnail__image {
3709
+ transform: none;
3710
+ }
3711
+ }
3712
+
3713
+
3714
+ /* Textarea */
3715
+ /* Textarea Component Styles - Using Muka Design Tokens */
3716
+
3717
+ .muka-textarea {
3718
+ display: inline-flex;
3719
+ flex-direction: column;
3720
+ gap: var(--spacing-2);
3721
+ }
3722
+
3723
+ /* Label */
3724
+ .muka-textarea__label {
3725
+ color: var(--color-text-default-default);
3726
+ cursor: pointer;
3727
+ }
3728
+
3729
+ .muka-textarea__label--sm {
3730
+ font-family: var(--text-label-sm-semibold-fontFamily);
3731
+ font-weight: var(--text-label-sm-semibold-fontWeight);
3732
+ font-size: var(--text-label-sm-semibold-fontSize);
3733
+ line-height: var(--text-label-sm-semibold-lineHeight);
3734
+ }
3735
+
3736
+ .muka-textarea__label--md {
3737
+ font-family: var(--text-label-md-semibold-fontFamily);
3738
+ font-weight: var(--text-label-md-semibold-fontWeight);
3739
+ font-size: var(--text-label-md-semibold-fontSize);
3740
+ line-height: var(--text-label-md-semibold-lineHeight);
3741
+ }
3742
+
3743
+ .muka-textarea__label--lg {
3744
+ font-family: var(--text-label-lg-semibold-fontFamily);
3745
+ font-weight: var(--text-label-lg-semibold-fontWeight);
3746
+ font-size: var(--text-label-lg-semibold-fontSize);
3747
+ line-height: var(--text-label-lg-semibold-lineHeight);
3748
+ }
3749
+
3750
+ .muka-textarea__required {
3751
+ color: var(--color-state-error-default);
3752
+ }
3753
+
3754
+ /* Field container */
3755
+ .muka-textarea__field {
3756
+ display: flex;
3757
+ background-color: var(--input-field-color-default-background);
3758
+ border: var(--border-width-regular) solid var(--input-field-color-default-border);
3759
+ border-radius: var(--input-field-radius-md);
3760
+ padding: var(--input-field-padding-y) var(--input-field-padding-x);
3761
+ transition: border-color 0.2s ease, background-color 0.2s ease;
3762
+ box-sizing: border-box;
3763
+ }
3764
+
3765
+ .muka-textarea__field--sm {
3766
+ min-height: var(--input-textarea-height-sm);
3767
+ border-radius: var(--input-field-radius-sm);
3768
+ }
3769
+
3770
+ .muka-textarea__field--md {
3771
+ min-height: var(--input-textarea-height-default);
3772
+ border-radius: var(--input-field-radius-md);
3773
+ }
3774
+
3775
+ .muka-textarea__field--lg {
3776
+ min-height: var(--input-textarea-height-lg);
3777
+ border-radius: var(--input-field-radius-lg);
3778
+ }
3779
+
3780
+ /* Focus state */
3747
3781
  .muka-textarea__field--focused:not(.muka-textarea__field--disabled) {
3748
3782
  border-width: var(--border-width-bold);
3749
3783
  border-color: var(--input-field-color-focus-border);
@@ -4113,188 +4147,166 @@ body {
4113
4147
  }
4114
4148
 
4115
4149
 
4116
- /* Thumbnail */
4117
- /* Thumbnail Component Styles - Using Muka Design Tokens */
4150
+ /* Toggle */
4151
+ /* Toggle Component Styles - Using Muka Design Tokens */
4118
4152
 
4119
- .muka-thumbnail {
4153
+ /* Wrapper container */
4154
+ .muka-toggle {
4155
+ display: flex;
4156
+ align-items: center;
4157
+ gap: var(--spacing-2);
4120
4158
  position: relative;
4121
- flex-shrink: 0;
4159
+ padding: var(--spacing-4) 0;
4122
4160
  }
4123
4161
 
4124
- /* The frame carries the border, background and shape clip. Keeping it separate
4125
- from the root lets the remove (×) button sit outside the clip (needed for the
4126
- circular/ellipse shape, whose corners would otherwise clip the button). */
4127
- .muka-thumbnail__frame {
4128
- position: absolute;
4129
- inset: 0;
4130
- overflow: hidden;
4131
- border: var(--border-width-regular, 1px) solid var(--color-black-alpha-3);
4132
- border-radius: var(--border-radius-lg);
4133
- background-color: var(--color-surface-level1);
4162
+ .muka-toggle--with-caption {
4163
+ padding: var(--spacing-5) 0;
4134
4164
  }
4135
4165
 
4136
- /* ─── Shapes ──────────────────────────────────────────── */
4137
- .muka-thumbnail--4-3 {
4138
- width: 160px;
4139
- height: 120px;
4166
+ .muka-toggle--disabled {
4167
+ opacity: 0.6;
4140
4168
  }
4141
4169
 
4142
- .muka-thumbnail--1-1 {
4143
- width: 120px;
4144
- height: 120px;
4170
+ /* Icon */
4171
+ .muka-toggle__icon {
4172
+ display: flex;
4173
+ align-items: center;
4174
+ justify-content: center;
4175
+ flex-shrink: 0;
4176
+ width: var(--icon-size-default);
4177
+ height: var(--icon-size-default);
4178
+ color: var(--color-text-default-default);
4145
4179
  }
4146
4180
 
4147
- .muka-thumbnail--ellipse {
4148
- width: 120px;
4149
- height: 120px;
4181
+ .muka-toggle__icon svg {
4182
+ width: 100%;
4183
+ height: 100%;
4150
4184
  }
4151
4185
 
4152
- /* Fluid: fill the parent's width; the shape sets the height via aspect-ratio. */
4153
- .muka-thumbnail--fluid {
4154
- width: 100%;
4155
- height: auto;
4156
- aspect-ratio: 1 / 1;
4186
+ /* Content area (label + caption) */
4187
+ .muka-toggle__content {
4188
+ display: flex;
4189
+ flex-direction: column;
4190
+ flex: 1;
4191
+ min-width: 0;
4192
+ gap: var(--spacing-1);
4157
4193
  }
4158
4194
 
4159
- .muka-thumbnail--fluid.muka-thumbnail--4-3 {
4160
- aspect-ratio: 4 / 3;
4195
+ /* Label */
4196
+ .muka-toggle__label {
4197
+ font-family: var(--text-label-lg-regular-fontFamily);
4198
+ font-weight: var(--text-label-lg-regular-fontWeight);
4199
+ font-size: var(--text-label-lg-regular-fontSize);
4200
+ line-height: var(--text-label-lg-regular-lineHeight);
4201
+ color: var(--color-text-default-default);
4202
+ cursor: pointer;
4161
4203
  }
4162
4204
 
4163
- .muka-thumbnail--ellipse .muka-thumbnail__frame {
4164
- border-radius: var(--border-radius-full);
4205
+ .muka-toggle--with-caption .muka-toggle__label {
4206
+ font-family: var(--text-label-lg-semibold-fontFamily);
4207
+ font-weight: var(--text-label-lg-semibold-fontWeight);
4208
+ font-size: var(--text-label-lg-semibold-fontSize);
4209
+ line-height: var(--text-label-lg-semibold-lineHeight);
4165
4210
  }
4166
4211
 
4167
- /* Image fills the frame, cropped to cover. Sits at scale(1) by default so the
4168
- interactive hover zoom has a clean origin. */
4169
- .muka-thumbnail__image {
4170
- position: absolute;
4171
- inset: 0;
4172
- width: 100%;
4173
- height: 100%;
4174
- object-fit: cover;
4175
- display: block;
4176
- transform-origin: center;
4177
- /* Micro-interaction: hover zoom eases out over the "micro" duration. */
4178
- transition: transform var(--motion-duration-micro) var(--motion-easing-enter);
4212
+ .muka-toggle--disabled .muka-toggle__label {
4213
+ color: var(--color-text-subtle-default);
4214
+ cursor: not-allowed;
4179
4215
  }
4180
4216
 
4181
- /* ─── Interactive (click-to-enlarge) ──────────────────── */
4182
- .muka-thumbnail__trigger {
4183
- position: absolute;
4184
- inset: 0;
4185
- padding: 0;
4186
- border: 0;
4187
- background: none;
4188
- cursor: pointer;
4189
- overflow: hidden;
4217
+ /* Caption */
4218
+ .muka-toggle__caption {
4219
+ font-family: var(--text-body-base-regular-fontFamily);
4220
+ font-weight: var(--text-body-base-regular-fontWeight);
4221
+ font-size: var(--text-body-base-regular-fontSize);
4222
+ line-height: var(--text-body-base-regular-lineHeight);
4223
+ color: var(--color-text-subtle-default);
4190
4224
  }
4191
4225
 
4192
- .muka-thumbnail__trigger:focus-visible {
4193
- outline: 2px solid var(--color-border-focus);
4194
- outline-offset: -2px;
4226
+ /* Switch container */
4227
+ .muka-toggle__switch {
4228
+ position: relative;
4229
+ display: inline-flex;
4230
+ flex-shrink: 0;
4231
+ cursor: pointer;
4195
4232
  }
4196
4233
 
4197
- /* On hover the image scales up ~8px (160px → 168px) with an ease-out feel. */
4198
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4199
- transform: scale(1.05);
4234
+ .muka-toggle--disabled .muka-toggle__switch {
4235
+ cursor: not-allowed;
4200
4236
  }
4201
4237
 
4202
- /* ─── Loading overlay + progress donut ────────────────── */
4203
- .muka-thumbnail__overlay {
4238
+ /* Hidden native input */
4239
+ .muka-toggle__input {
4204
4240
  position: absolute;
4205
- inset: 0;
4206
- display: flex;
4207
- align-items: center;
4208
- justify-content: center;
4209
- background-color: var(--dialog-color-backdrop);
4210
- }
4211
-
4212
- .muka-thumbnail__progress {
4213
- width: 40px;
4214
- height: 40px;
4215
- }
4216
-
4217
- /* ─── Error / corrupt state ───────────────────────────── */
4218
- .muka-thumbnail--error .muka-thumbnail__frame {
4219
- background-color: var(--alias-color-state-error-muted);
4220
- border-color: var(--alias-color-state-error-default);
4241
+ width: 1px;
4242
+ height: 1px;
4243
+ padding: 0;
4244
+ margin: -1px;
4245
+ overflow: hidden;
4246
+ clip: rect(0, 0, 0, 0);
4247
+ white-space: nowrap;
4248
+ border: 0;
4221
4249
  }
4222
4250
 
4223
- .muka-thumbnail__error {
4224
- position: absolute;
4225
- inset: 0;
4251
+ /* Track (background pill) */
4252
+ .muka-toggle__track {
4226
4253
  display: flex;
4227
- flex-direction: column;
4228
4254
  align-items: center;
4229
- justify-content: center;
4230
- gap: var(--spacing-2);
4231
- padding: var(--spacing-3);
4232
- text-align: center;
4255
+ width: var(--toggle-track-width);
4256
+ height: var(--toggle-track-height);
4257
+ border-radius: var(--toggle-track-radius);
4258
+ background-color: var(--toggle-track-color-off);
4259
+ transition: background-color 0.2s ease;
4260
+ box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.16);
4261
+ position: relative;
4233
4262
  }
4234
4263
 
4235
- .muka-thumbnail__error-icon {
4236
- color: var(--alert-color-error-accent);
4264
+ /* Knob (sliding circle) */
4265
+ .muka-toggle__knob {
4266
+ position: absolute;
4267
+ width: var(--toggle-knob-size);
4268
+ height: var(--toggle-knob-size);
4269
+ border-radius: var(--border-radius-full);
4270
+ background-color: var(--toggle-knob-color-default);
4271
+ box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
4272
+ left: var(--toggle-knob-offset);
4273
+ transition: left 0.2s ease, transform 0.2s ease;
4237
4274
  }
4238
4275
 
4239
- .muka-thumbnail__caption {
4240
- max-width: 100%;
4241
- overflow: hidden;
4242
- text-overflow: ellipsis;
4243
- white-space: nowrap;
4244
- color: var(--alert-color-error-accent);
4245
- font-family: var(--text-body-sm-regular-fontFamily);
4246
- font-size: var(--text-body-sm-regular-fontSize);
4247
- font-weight: var(--text-body-sm-regular-fontWeight);
4248
- line-height: var(--text-body-sm-regular-lineHeight);
4276
+ /* Focus state */
4277
+ .muka-toggle__input:focus-visible + .muka-toggle__track {
4278
+ outline: 2px solid var(--color-border-focus);
4279
+ outline-offset: 2px;
4249
4280
  }
4250
4281
 
4251
- /* ─── Remove (×) button ───────────────────────────────── */
4252
- .muka-thumbnail__remove {
4253
- position: absolute;
4254
- top: var(--spacing-2);
4255
- right: var(--spacing-2);
4256
- display: flex;
4257
- align-items: center;
4258
- justify-content: center;
4259
- width: var(--size-2xl);
4260
- height: var(--size-2xl);
4261
- padding: 0;
4262
- color: var(--button-color-tertiary-foreground-default);
4263
- background-color: var(--button-color-tertiary-background-default);
4264
- border: var(--border-width-regular, 1px) solid var(--button-color-tertiary-border-default);
4265
- border-radius: var(--border-radius-lg);
4266
- cursor: pointer;
4267
- transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
4268
- border-color var(--motion-duration-micro) var(--motion-easing-enter);
4282
+ /* Checked (on) state */
4283
+ .muka-toggle__input:checked + .muka-toggle__track {
4284
+ background-color: var(--toggle-track-color-on);
4269
4285
  }
4270
4286
 
4271
- .muka-thumbnail__remove:hover {
4272
- color: var(--button-color-tertiary-foreground-hover);
4273
- background-color: var(--button-color-tertiary-background-hover);
4274
- border-color: var(--button-color-tertiary-border-hover);
4287
+ .muka-toggle__input:checked + .muka-toggle__track .muka-toggle__knob {
4288
+ left: calc(var(--toggle-track-width) - var(--toggle-knob-size) - var(--toggle-knob-offset));
4275
4289
  }
4276
4290
 
4277
- .muka-thumbnail__remove:active {
4278
- color: var(--button-color-tertiary-foreground-pressed);
4279
- background-color: var(--button-color-tertiary-background-pressed);
4280
- border-color: var(--button-color-tertiary-border-pressed);
4291
+ /* Disabled state */
4292
+ .muka-toggle--disabled .muka-toggle__track {
4293
+ background-color: var(--toggle-track-color-disabled);
4294
+ box-shadow: none;
4281
4295
  }
4282
4296
 
4283
- .muka-thumbnail__remove:focus-visible {
4284
- outline: 2px solid var(--color-border-focus);
4285
- outline-offset: 2px;
4297
+ .muka-toggle--disabled .muka-toggle__knob {
4298
+ background-color: var(--toggle-knob-color-disabled);
4299
+ box-shadow: none;
4286
4300
  }
4287
4301
 
4288
- /* ─── Reduced motion ──────────────────────────────────── */
4289
- @media (prefers-reduced-motion: reduce) {
4290
- .muka-thumbnail__image,
4291
- .muka-thumbnail__remove {
4292
- transition: none;
4293
- }
4294
-
4295
- .muka-thumbnail--interactive:hover .muka-thumbnail__image {
4296
- transform: none;
4297
- }
4302
+ /* Divider */
4303
+ .muka-toggle__divider {
4304
+ position: absolute;
4305
+ bottom: 0;
4306
+ left: 0;
4307
+ right: 0;
4308
+ height: 1px;
4309
+ background-color: var(--color-border-muted);
4298
4310
  }
4299
4311
 
4300
4312
 
@@ -4702,84 +4714,6 @@ body {
4702
4714
  }
4703
4715
 
4704
4716
 
4705
- /* Spinner */
4706
- /* Spinner Component Styles */
4707
-
4708
- .muka-spinner {
4709
- display: inline-flex;
4710
- align-items: center;
4711
- justify-content: center;
4712
- color: var(--color-text-default-default);
4713
- line-height: 0;
4714
- }
4715
-
4716
- .muka-spinner--subtle {
4717
- color: var(--color-text-subtle-default);
4718
- }
4719
-
4720
- .muka-spinner--inverse {
4721
- color: var(--color-text-default-inverse);
4722
- }
4723
-
4724
- .muka-spinner__circle {
4725
- display: inline-block;
4726
- border-radius: 50%;
4727
- border-style: solid;
4728
- border-color: currentColor;
4729
- border-right-color: transparent;
4730
- animation: muka-spinner-rotate 0.7s linear infinite;
4731
- box-sizing: border-box;
4732
- }
4733
-
4734
- /* ─── Sizes ───────────────────────────────────────────── */
4735
-
4736
- .muka-spinner--sm .muka-spinner__circle {
4737
- width: 16px;
4738
- height: 16px;
4739
- border-width: 2px;
4740
- }
4741
-
4742
- .muka-spinner--md .muka-spinner__circle {
4743
- width: 20px;
4744
- height: 20px;
4745
- border-width: 2px;
4746
- }
4747
-
4748
- .muka-spinner--lg .muka-spinner__circle {
4749
- width: 24px;
4750
- height: 24px;
4751
- border-width: 3px;
4752
- }
4753
-
4754
- /* ─── Visually-hidden label ───────────────────────────── */
4755
-
4756
- .muka-spinner__sr-label {
4757
- position: absolute;
4758
- width: 1px;
4759
- height: 1px;
4760
- padding: 0;
4761
- margin: -1px;
4762
- overflow: hidden;
4763
- clip: rect(0, 0, 0, 0);
4764
- white-space: nowrap;
4765
- border: 0;
4766
- }
4767
-
4768
- /* ─── Reduced motion ──────────────────────────────────── */
4769
-
4770
- @keyframes muka-spinner-rotate {
4771
- to {
4772
- transform: rotate(360deg);
4773
- }
4774
- }
4775
-
4776
- @media (prefers-reduced-motion: reduce) {
4777
- .muka-spinner__circle {
4778
- animation-duration: 2.5s;
4779
- }
4780
- }
4781
-
4782
-
4783
4717
  /* SwipeActions */
4784
4718
  /* SwipeActions Component Styles */
4785
4719
 
@@ -4888,11 +4822,89 @@ body {
4888
4822
  }
4889
4823
 
4890
4824
 
4891
- /* SpecList */
4892
- /* SpecList Component Styles */
4825
+ /* Spinner */
4826
+ /* Spinner Component Styles */
4893
4827
 
4894
- .muka-spec-list {
4895
- margin: 0;
4828
+ .muka-spinner {
4829
+ display: inline-flex;
4830
+ align-items: center;
4831
+ justify-content: center;
4832
+ color: var(--color-text-default-default);
4833
+ line-height: 0;
4834
+ }
4835
+
4836
+ .muka-spinner--subtle {
4837
+ color: var(--color-text-subtle-default);
4838
+ }
4839
+
4840
+ .muka-spinner--inverse {
4841
+ color: var(--color-text-default-inverse);
4842
+ }
4843
+
4844
+ .muka-spinner__circle {
4845
+ display: inline-block;
4846
+ border-radius: 50%;
4847
+ border-style: solid;
4848
+ border-color: currentColor;
4849
+ border-right-color: transparent;
4850
+ animation: muka-spinner-rotate 0.7s linear infinite;
4851
+ box-sizing: border-box;
4852
+ }
4853
+
4854
+ /* ─── Sizes ───────────────────────────────────────────── */
4855
+
4856
+ .muka-spinner--sm .muka-spinner__circle {
4857
+ width: 16px;
4858
+ height: 16px;
4859
+ border-width: 2px;
4860
+ }
4861
+
4862
+ .muka-spinner--md .muka-spinner__circle {
4863
+ width: 20px;
4864
+ height: 20px;
4865
+ border-width: 2px;
4866
+ }
4867
+
4868
+ .muka-spinner--lg .muka-spinner__circle {
4869
+ width: 24px;
4870
+ height: 24px;
4871
+ border-width: 3px;
4872
+ }
4873
+
4874
+ /* ─── Visually-hidden label ───────────────────────────── */
4875
+
4876
+ .muka-spinner__sr-label {
4877
+ position: absolute;
4878
+ width: 1px;
4879
+ height: 1px;
4880
+ padding: 0;
4881
+ margin: -1px;
4882
+ overflow: hidden;
4883
+ clip: rect(0, 0, 0, 0);
4884
+ white-space: nowrap;
4885
+ border: 0;
4886
+ }
4887
+
4888
+ /* ─── Reduced motion ──────────────────────────────────── */
4889
+
4890
+ @keyframes muka-spinner-rotate {
4891
+ to {
4892
+ transform: rotate(360deg);
4893
+ }
4894
+ }
4895
+
4896
+ @media (prefers-reduced-motion: reduce) {
4897
+ .muka-spinner__circle {
4898
+ animation-duration: 2.5s;
4899
+ }
4900
+ }
4901
+
4902
+
4903
+ /* SpecList */
4904
+ /* SpecList Component Styles */
4905
+
4906
+ .muka-spec-list {
4907
+ margin: 0;
4896
4908
  padding: 0;
4897
4909
  }
4898
4910
 
@@ -5399,6 +5411,8 @@ body {
5399
5411
  position: fixed;
5400
5412
  inset: 0;
5401
5413
  background-color: var(--color-surface-backdrop);
5414
+ -webkit-backdrop-filter: blur(var(--effect-blur-backdrop));
5415
+ backdrop-filter: blur(var(--effect-blur-backdrop));
5402
5416
  z-index: 50;
5403
5417
  }
5404
5418
 
@@ -11207,6 +11221,8 @@ li.muka-listitem {
11207
11221
  /* Backdrop */
11208
11222
  .muka-drawer::backdrop {
11209
11223
  background-color: var(--color-surface-backdrop);
11224
+ -webkit-backdrop-filter: blur(var(--effect-blur-backdrop));
11225
+ backdrop-filter: blur(var(--effect-blur-backdrop));
11210
11226
  opacity: 0;
11211
11227
  transition: opacity 200ms ease;
11212
11228
  }
@@ -11309,7 +11325,14 @@ li.muka-listitem {
11309
11325
  .muka-drawer__body {
11310
11326
  flex: 1;
11311
11327
  overflow-y: auto;
11312
- padding: var(--spacing-4);
11328
+ padding: var(--drawer-padding-x);
11329
+ }
11330
+
11331
+ /* Roomier body on desktop; the header and footer keep their padding */
11332
+ @media (min-width: 1024px) {
11333
+ .muka-drawer__body {
11334
+ padding: var(--drawer-padding-x-desktop);
11335
+ }
11313
11336
  }
11314
11337
 
11315
11338
  /* Footer */
@@ -11650,6 +11673,8 @@ li.muka-listitem {
11650
11673
 
11651
11674
  .muka-dialog::backdrop {
11652
11675
  background-color: var(--dialog-color-backdrop);
11676
+ -webkit-backdrop-filter: blur(var(--dialog-backdrop-blur));
11677
+ backdrop-filter: blur(var(--dialog-backdrop-blur));
11653
11678
  }
11654
11679
 
11655
11680
  /* ─── Non-modal modifier ──────────────────────────────── */
@@ -11787,6 +11812,40 @@ li.muka-listitem {
11787
11812
  cursor: grabbing;
11788
11813
  }
11789
11814
 
11815
+ /* ─── Desktop entrance animation (≥ 1024px) ─────────── */
11816
+
11817
+ /* The card rises into place while it fades in, then drops back out in half
11818
+ the time. A transition takes its timing from the state it moves to, so the
11819
+ resting rule carries the exit and the --slide-in rule the entrance. Reduced
11820
+ motion zeroes both durations. */
11821
+ @media (min-width: 1024px) {
11822
+ .muka-dialog .muka-dialog__surface {
11823
+ transform: translateY(var(--dialog-motion-offset-desktop));
11824
+ opacity: 0;
11825
+ transition:
11826
+ transform var(--motion-duration-exit) var(--motion-easing-exit),
11827
+ opacity var(--motion-duration-exit) var(--motion-easing-exit);
11828
+ }
11829
+
11830
+ .muka-dialog--slide-in .muka-dialog__surface {
11831
+ transform: translateY(0);
11832
+ opacity: 1;
11833
+ transition:
11834
+ transform var(--motion-duration-component) var(--motion-easing-enter),
11835
+ opacity var(--motion-duration-component) var(--motion-easing-enter);
11836
+ }
11837
+
11838
+ .muka-dialog::backdrop {
11839
+ opacity: 0;
11840
+ transition: opacity var(--motion-duration-exit) var(--motion-easing-exit);
11841
+ }
11842
+
11843
+ .muka-dialog--slide-in::backdrop {
11844
+ opacity: 1;
11845
+ transition: opacity var(--motion-duration-component) var(--motion-easing-enter);
11846
+ }
11847
+ }
11848
+
11790
11849
  /* ─── Desktop overrides (≥ 1024px) ────────────────────── */
11791
11850
 
11792
11851
  @media (min-width: 1024px) {
@@ -11806,6 +11865,13 @@ li.muka-listitem {
11806
11865
  width: 100%;
11807
11866
  }
11808
11867
 
11868
+ /* Roomier body on desktop; the TopBar and BottomBar keep their padding */
11869
+ .muka-dialog--sm .muka-dialog__body,
11870
+ .muka-dialog--md .muka-dialog__body,
11871
+ .muka-dialog--lg .muka-dialog__body {
11872
+ padding: var(--dialog-padding-x-desktop);
11873
+ }
11874
+
11809
11875
  /* Half-height override not needed on desktop */
11810
11876
  .muka-dialog--mobile-half .muka-dialog__surface {
11811
11877
  height: auto;
@@ -15153,6 +15219,62 @@ button.muka-chat-photo-grid__tile:focus-visible {
15153
15219
  width: 100%;
15154
15220
  }
15155
15221
 
15222
+ /* ─── Message (actions variants only) ────────────────── */
15223
+
15224
+ /* Below 1024px the message takes its own line above the buttons. */
15225
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content {
15226
+ flex-wrap: wrap;
15227
+ row-gap: var(--bottombar-actions-message-gap);
15228
+ }
15229
+
15230
+ .muka-bottombar--actions-vertical.muka-bottombar--with-message .muka-bottombar__content {
15231
+ row-gap: var(--bottombar-actions-message-gap);
15232
+ }
15233
+
15234
+ .muka-bottombar--with-message .muka-bottombar__content > .muka-bottombar__message {
15235
+ flex: 1 0 100%;
15236
+ width: 100%;
15237
+ }
15238
+
15239
+ .muka-bottombar__message {
15240
+ margin: 0;
15241
+ min-width: 0;
15242
+ overflow-wrap: anywhere;
15243
+ font-family: var(--text-body-sm-regular-fontFamily);
15244
+ font-weight: var(--text-body-sm-regular-fontWeight);
15245
+ font-size: var(--text-body-sm-regular-fontSize);
15246
+ line-height: var(--text-body-sm-regular-lineHeight);
15247
+ }
15248
+
15249
+ .muka-bottombar__message--neutral {
15250
+ color: var(--bottombar-color-message-neutral);
15251
+ }
15252
+
15253
+ .muka-bottombar__message--success {
15254
+ color: var(--bottombar-color-message-success);
15255
+ }
15256
+
15257
+ .muka-bottombar__message--warning {
15258
+ color: var(--bottombar-color-message-warning);
15259
+ }
15260
+
15261
+ /* From 1024px the horizontal bar puts the message left, the buttons right at
15262
+ their own width. The vertical variant keeps stacking. */
15263
+ @media (min-width: 1024px) {
15264
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content {
15265
+ flex-wrap: nowrap;
15266
+ }
15267
+
15268
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content > * {
15269
+ flex: 0 0 auto;
15270
+ }
15271
+
15272
+ .muka-bottombar--actions.muka-bottombar--with-message .muka-bottombar__content > .muka-bottombar__message {
15273
+ flex: 1 1 auto;
15274
+ width: auto;
15275
+ }
15276
+ }
15277
+
15156
15278
  /* ─── Size modifiers (actions variants only) ─────────── */
15157
15279
 
15158
15280
  /* ─── Navigation variant ──────────────────────────────── */
@@ -15731,6 +15853,72 @@ button.muka-chat-photo-grid__tile:focus-visible {
15731
15853
  }
15732
15854
 
15733
15855
 
15856
+ /* Autocomplete */
15857
+ /* Autocomplete — Figma Input Autocomplete (Input field + single-line suggestion Menu).
15858
+ The field reuses the Input styles (.muka-input*); only the menu wiring lives here. */
15859
+
15860
+ .muka-autocomplete {
15861
+ min-width: 200px;
15862
+ }
15863
+
15864
+ /* Covers the field's outer edge so the menu matches its full width. The menu
15865
+ is only open while focused, when the field has the bold border. */
15866
+ .muka-autocomplete__menu-anchor {
15867
+ position: absolute;
15868
+ inset: calc(-1 * var(--border-width-bold));
15869
+ z-index: 0;
15870
+ margin: 0;
15871
+ padding: 0;
15872
+ border: none;
15873
+ background: transparent;
15874
+ pointer-events: none;
15875
+ opacity: 0;
15876
+ }
15877
+
15878
+ /* Keep the field content above the invisible anchor. */
15879
+ .muka-autocomplete__field > :not(.muka-autocomplete__menu-anchor) {
15880
+ position: relative;
15881
+ z-index: 1;
15882
+ }
15883
+
15884
+ /* Figma: the menu is as wide as the field (never below the menu min-width token). */
15885
+ .muka-autocomplete__menu {
15886
+ width: var(--radix-dropdown-menu-trigger-width);
15887
+ max-width: calc(100vw - 2rem);
15888
+ }
15889
+
15890
+ /* Suggestions are single-line; long labels truncate. */
15891
+ .muka-autocomplete__menu .muka-menu__item-label {
15892
+ overflow: hidden;
15893
+ text-overflow: ellipsis;
15894
+ }
15895
+
15896
+ /* Loading and empty rows: menu-row geometry, not selectable. */
15897
+ .muka-autocomplete__status {
15898
+ display: flex;
15899
+ align-items: center;
15900
+ gap: var(--menu-item-gap);
15901
+ min-height: var(--menu-item-height);
15902
+ padding: var(--menu-item-padding-y) var(--menu-item-padding-x);
15903
+ color: var(--color-text-subtle-default);
15904
+ font-family: var(--text-label-md-regular-fontFamily);
15905
+ font-size: var(--text-label-md-regular-fontSize);
15906
+ font-weight: var(--text-label-md-regular-fontWeight);
15907
+ line-height: var(--text-label-md-regular-lineHeight);
15908
+ }
15909
+
15910
+ .muka-autocomplete__footer {
15911
+ flex-shrink: 0;
15912
+ padding: var(--spacing-2) var(--spacing-3);
15913
+ border-top: var(--border-width-regular) solid var(--color-border-default);
15914
+ color: var(--color-text-subtle-default);
15915
+ font-family: var(--text-label-sm-regular-fontFamily);
15916
+ font-size: var(--text-label-sm-regular-fontSize);
15917
+ font-weight: var(--text-label-sm-regular-fontWeight);
15918
+ line-height: var(--text-label-sm-regular-lineHeight);
15919
+ }
15920
+
15921
+
15734
15922
  /* Avatar */
15735
15923
  /* Avatar Component Styles - Using Muka Design Tokens */
15736
15924
 
@@ -16083,168 +16271,6 @@ button.muka-chat-photo-grid__tile:focus-visible {
16083
16271
  }
16084
16272
 
16085
16273
 
16086
- /* Autocomplete */
16087
- /* Autocomplete — Figma Input Autocomplete (Input field + single-line suggestion Menu).
16088
- The field reuses the Input styles (.muka-input*); only the menu wiring lives here. */
16089
-
16090
- .muka-autocomplete {
16091
- min-width: 200px;
16092
- }
16093
-
16094
- /* Covers the field's outer edge so the menu matches its full width. The menu
16095
- is only open while focused, when the field has the bold border. */
16096
- .muka-autocomplete__menu-anchor {
16097
- position: absolute;
16098
- inset: calc(-1 * var(--border-width-bold));
16099
- z-index: 0;
16100
- margin: 0;
16101
- padding: 0;
16102
- border: none;
16103
- background: transparent;
16104
- pointer-events: none;
16105
- opacity: 0;
16106
- }
16107
-
16108
- /* Keep the field content above the invisible anchor. */
16109
- .muka-autocomplete__field > :not(.muka-autocomplete__menu-anchor) {
16110
- position: relative;
16111
- z-index: 1;
16112
- }
16113
-
16114
- /* Figma: the menu is as wide as the field (never below the menu min-width token). */
16115
- .muka-autocomplete__menu {
16116
- width: var(--radix-dropdown-menu-trigger-width);
16117
- max-width: calc(100vw - 2rem);
16118
- }
16119
-
16120
- /* Suggestions are single-line; long labels truncate. */
16121
- .muka-autocomplete__menu .muka-menu__item-label {
16122
- overflow: hidden;
16123
- text-overflow: ellipsis;
16124
- }
16125
-
16126
- /* Loading and empty rows: menu-row geometry, not selectable. */
16127
- .muka-autocomplete__status {
16128
- display: flex;
16129
- align-items: center;
16130
- gap: var(--menu-item-gap);
16131
- min-height: var(--menu-item-height);
16132
- padding: var(--menu-item-padding-y) var(--menu-item-padding-x);
16133
- color: var(--color-text-subtle-default);
16134
- font-family: var(--text-label-md-regular-fontFamily);
16135
- font-size: var(--text-label-md-regular-fontSize);
16136
- font-weight: var(--text-label-md-regular-fontWeight);
16137
- line-height: var(--text-label-md-regular-lineHeight);
16138
- }
16139
-
16140
- .muka-autocomplete__footer {
16141
- flex-shrink: 0;
16142
- padding: var(--spacing-2) var(--spacing-3);
16143
- border-top: var(--border-width-regular) solid var(--color-border-default);
16144
- color: var(--color-text-subtle-default);
16145
- font-family: var(--text-label-sm-regular-fontFamily);
16146
- font-size: var(--text-label-sm-regular-fontSize);
16147
- font-weight: var(--text-label-sm-regular-fontWeight);
16148
- line-height: var(--text-label-sm-regular-lineHeight);
16149
- }
16150
-
16151
-
16152
- /* AppShell */
16153
- /* AppShell Component Styles */
16154
-
16155
- /*
16156
- * Layout wrapper for a persistent left navigation rail + main view area, with an
16157
- * optional full-width top app bar. The rail itself is styled by the BottomBar
16158
- * `desktopAs="sidebar"` rules (fixed 240px left rail at ≥1024px); AppShell shows/
16159
- * hides the sidebar + app-bar slots and offsets the main area to match. Both
16160
- * appear at the large tier — responsively (no `size`, scoped with
16161
- * `:not([data-size])`) or forced via `[data-size="lg"]`.
16162
- */
16163
- .muka-app-shell {
16164
- position: relative;
16165
- /* Reserved width for the rail; matches BottomBar's desktop-sidebar width. */
16166
- --app-shell-sidebar-width: 240px;
16167
- /* Height of the optional top app bar. */
16168
- --app-shell-appbar-height: 64px;
16169
- }
16170
-
16171
- /* Sidebar slot: hidden below the large tier (per-view nav handles small/medium). */
16172
- .muka-app-shell__sidebar {
16173
- display: none;
16174
- }
16175
-
16176
- .muka-app-shell__main {
16177
- min-height: 100dvh;
16178
- }
16179
-
16180
- /*
16181
- * App bar: full-width top strip. Intrinsic styling lives here (harmless while
16182
- * hidden); it is revealed only at the large tier. Sits above the sidebar rail.
16183
- */
16184
- .muka-app-shell__appbar {
16185
- display: none;
16186
- align-items: center;
16187
- justify-content: space-between;
16188
- gap: var(--spacing-4);
16189
- position: fixed;
16190
- top: 0;
16191
- left: 0;
16192
- right: 0;
16193
- height: var(--app-shell-appbar-height);
16194
- padding-inline: var(--spacing-4);
16195
- background-color: var(--color-surface-level3);
16196
- border-bottom: var(--border-width-regular) solid var(--color-border-default);
16197
- z-index: 11; /* above the sidebar rail (z-index 10) */
16198
- }
16199
-
16200
- /* ─── Large tier (responsive) ─── */
16201
- @media (min-width: 1024px) {
16202
- .muka-app-shell:not([data-size]) .muka-app-shell__sidebar {
16203
- display: block;
16204
- }
16205
- .muka-app-shell:not([data-size]) .muka-app-shell__main {
16206
- padding-left: var(--app-shell-sidebar-width);
16207
- }
16208
- .muka-app-shell:not([data-size]) .muka-app-shell__appbar {
16209
- display: flex;
16210
- }
16211
- /* When an app bar is present, drop the rail + content below it so nothing overlaps. */
16212
- .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-app-shell__main {
16213
- padding-top: var(--app-shell-appbar-height);
16214
- }
16215
- .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
16216
- top: var(--app-shell-appbar-height);
16217
- height: calc(100vh - var(--app-shell-appbar-height));
16218
- }
16219
- .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view,
16220
- .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-nav-transition {
16221
- height: calc(100dvh - var(--app-shell-appbar-height));
16222
- }
16223
- }
16224
-
16225
- /* ─── Large tier (forced via size="lg") ─── */
16226
- .muka-app-shell[data-size='lg'] .muka-app-shell__sidebar {
16227
- display: block;
16228
- }
16229
- .muka-app-shell[data-size='lg'] .muka-app-shell__main {
16230
- padding-left: var(--app-shell-sidebar-width);
16231
- }
16232
- .muka-app-shell[data-size='lg'] .muka-app-shell__appbar {
16233
- display: flex;
16234
- }
16235
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-app-shell__main {
16236
- padding-top: var(--app-shell-appbar-height);
16237
- }
16238
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
16239
- top: var(--app-shell-appbar-height);
16240
- height: calc(100vh - var(--app-shell-appbar-height));
16241
- }
16242
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view,
16243
- .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-nav-transition {
16244
- height: calc(100dvh - var(--app-shell-appbar-height));
16245
- }
16246
-
16247
-
16248
16274
  /* Alert */
16249
16275
  /* Alert Component Styles - Using Muka Design Tokens */
16250
16276
 
@@ -16456,6 +16482,102 @@ button.muka-chat-photo-grid__tile:focus-visible {
16456
16482
  }
16457
16483
 
16458
16484
 
16485
+ /* AppShell */
16486
+ /* AppShell Component Styles */
16487
+
16488
+ /*
16489
+ * Layout wrapper for a persistent left navigation rail + main view area, with an
16490
+ * optional full-width top app bar. The rail itself is styled by the BottomBar
16491
+ * `desktopAs="sidebar"` rules (fixed 240px left rail at ≥1024px); AppShell shows/
16492
+ * hides the sidebar + app-bar slots and offsets the main area to match. Both
16493
+ * appear at the large tier — responsively (no `size`, scoped with
16494
+ * `:not([data-size])`) or forced via `[data-size="lg"]`.
16495
+ */
16496
+ .muka-app-shell {
16497
+ position: relative;
16498
+ /* Reserved width for the rail; matches BottomBar's desktop-sidebar width. */
16499
+ --app-shell-sidebar-width: 240px;
16500
+ /* Height of the optional top app bar. */
16501
+ --app-shell-appbar-height: 64px;
16502
+ }
16503
+
16504
+ /* Sidebar slot: hidden below the large tier (per-view nav handles small/medium). */
16505
+ .muka-app-shell__sidebar {
16506
+ display: none;
16507
+ }
16508
+
16509
+ .muka-app-shell__main {
16510
+ min-height: 100dvh;
16511
+ }
16512
+
16513
+ /*
16514
+ * App bar: full-width top strip. Intrinsic styling lives here (harmless while
16515
+ * hidden); it is revealed only at the large tier. Sits above the sidebar rail.
16516
+ */
16517
+ .muka-app-shell__appbar {
16518
+ display: none;
16519
+ align-items: center;
16520
+ justify-content: space-between;
16521
+ gap: var(--spacing-4);
16522
+ position: fixed;
16523
+ top: 0;
16524
+ left: 0;
16525
+ right: 0;
16526
+ height: var(--app-shell-appbar-height);
16527
+ padding-inline: var(--spacing-4);
16528
+ background-color: var(--color-surface-level3);
16529
+ border-bottom: var(--border-width-regular) solid var(--color-border-default);
16530
+ z-index: 11; /* above the sidebar rail (z-index 10) */
16531
+ }
16532
+
16533
+ /* ─── Large tier (responsive) ─── */
16534
+ @media (min-width: 1024px) {
16535
+ .muka-app-shell:not([data-size]) .muka-app-shell__sidebar {
16536
+ display: block;
16537
+ }
16538
+ .muka-app-shell:not([data-size]) .muka-app-shell__main {
16539
+ padding-left: var(--app-shell-sidebar-width);
16540
+ }
16541
+ .muka-app-shell:not([data-size]) .muka-app-shell__appbar {
16542
+ display: flex;
16543
+ }
16544
+ /* When an app bar is present, drop the rail + content below it so nothing overlaps. */
16545
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-app-shell__main {
16546
+ padding-top: var(--app-shell-appbar-height);
16547
+ }
16548
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
16549
+ top: var(--app-shell-appbar-height);
16550
+ height: calc(100vh - var(--app-shell-appbar-height));
16551
+ }
16552
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-view,
16553
+ .muka-app-shell:not([data-size]):has(.muka-app-shell__appbar) .muka-nav-transition {
16554
+ height: calc(100dvh - var(--app-shell-appbar-height));
16555
+ }
16556
+ }
16557
+
16558
+ /* ─── Large tier (forced via size="lg") ─── */
16559
+ .muka-app-shell[data-size='lg'] .muka-app-shell__sidebar {
16560
+ display: block;
16561
+ }
16562
+ .muka-app-shell[data-size='lg'] .muka-app-shell__main {
16563
+ padding-left: var(--app-shell-sidebar-width);
16564
+ }
16565
+ .muka-app-shell[data-size='lg'] .muka-app-shell__appbar {
16566
+ display: flex;
16567
+ }
16568
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-app-shell__main {
16569
+ padding-top: var(--app-shell-appbar-height);
16570
+ }
16571
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-bottombar--desktop-sidebar {
16572
+ top: var(--app-shell-appbar-height);
16573
+ height: calc(100vh - var(--app-shell-appbar-height));
16574
+ }
16575
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-view,
16576
+ .muka-app-shell[data-size='lg']:has(.muka-app-shell__appbar) .muka-nav-transition {
16577
+ height: calc(100dvh - var(--app-shell-appbar-height));
16578
+ }
16579
+
16580
+
16459
16581
  /* AgentTaskList */
16460
16582
  /* AgentTaskList Component Styles */
16461
16583