@shellui/core 0.7.0-alpha.1 → 0.7.0-alpha.11

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 (94) hide show
  1. package/package.json +2 -2
  2. package/schemas/shellui.config.schema.json +37 -4
  3. package/src/components/ContentView.tsx +19 -8
  4. package/src/components/ui/drawer.tsx +47 -30
  5. package/src/components/ui/sheet.tsx +18 -12
  6. package/src/components/ui/sidebar.tsx +25 -11
  7. package/src/components/ui/tooltip.tsx +4 -2
  8. package/src/features/admin/AdminView.tsx +9 -6
  9. package/src/features/auth/AuthProvider.tsx +25 -4
  10. package/src/features/auth/appBackend/appBackendSessions.spec.ts +134 -0
  11. package/src/features/auth/appBackend/appBackendSessions.ts +168 -17
  12. package/src/features/auth/appBackend/childFrames.spec.ts +328 -0
  13. package/src/features/auth/appBackend/childFrames.ts +180 -0
  14. package/src/features/auth/appBackend/frameAuth.ts +47 -10
  15. package/src/features/auth/appBackend/silentSignIn.spec.ts +18 -0
  16. package/src/features/auth/appBackend/silentSignIn.ts +15 -1
  17. package/src/features/auth/appBackend/tokenExchange.spec.ts +98 -0
  18. package/src/features/auth/appBackend/tokenExchange.ts +76 -0
  19. package/src/features/auth/components/LoginButton.spec.tsx +155 -0
  20. package/src/features/auth/components/LoginButton.tsx +52 -27
  21. package/src/features/auth/components/LoginButtonIcons.tsx +4 -8
  22. package/src/features/auth/components/OAuthCallbackView.tsx +7 -5
  23. package/src/features/auth/utils/buildOAuthSessionRedirectTo.spec.ts +42 -1
  24. package/src/features/auth/utils/buildOAuthSessionRedirectTo.ts +23 -0
  25. package/src/features/auth/utils/canRestoreStoredSession.spec.ts +29 -0
  26. package/src/features/auth/utils/canRestoreStoredSession.ts +12 -0
  27. package/src/features/auth/utils/index.ts +7 -1
  28. package/src/features/auth/utils/resolveSdkLoginRedirectPath.spec.ts +41 -0
  29. package/src/features/auth/utils/resolveSdkLoginRedirectPath.ts +31 -0
  30. package/src/features/auth/utils/webPkce.spec.ts +23 -0
  31. package/src/features/auth/utils/webPkce.ts +23 -6
  32. package/src/features/chromeActions/ChromeActionsHost.tsx +5 -1
  33. package/src/features/chromeActions/computeActionInsets.ts +7 -4
  34. package/src/features/config/types.ts +30 -4
  35. package/src/features/layouts/OverlayShell.tsx +58 -40
  36. package/src/features/layouts/appbar/AppBarItemIcon.spec.tsx +45 -0
  37. package/src/features/layouts/appbar/AppBarItemIcon.tsx +19 -0
  38. package/src/features/layouts/appbar/AppBarLayout.tsx +115 -110
  39. package/src/features/layouts/appbar/appBarOverflow.spec.ts +27 -0
  40. package/src/features/layouts/appbar/appBarOverflow.ts +42 -0
  41. package/src/features/layouts/chrome/CollapsedDesktopTitlebar.tsx +13 -24
  42. package/src/features/layouts/chrome/ContentDragOverlay.tsx +5 -6
  43. package/src/features/layouts/chrome/DesktopChrome.tsx +37 -0
  44. package/src/features/layouts/chrome/DesktopHistoryButtons.tsx +15 -4
  45. package/src/features/layouts/chrome/MacStrip.tsx +33 -0
  46. package/src/features/layouts/chrome/constants.ts +36 -8
  47. package/src/features/layouts/chrome/index.ts +8 -0
  48. package/src/features/layouts/chrome/stripDragMap.ts +35 -0
  49. package/src/features/layouts/chrome/stripNoDrag.spec.tsx +103 -0
  50. package/src/features/layouts/chrome/useScrollHideChrome.ts +3 -8
  51. package/src/features/layouts/chrome/viewport.ts +11 -4
  52. package/src/features/layouts/filterNavigationForAuthState.spec.ts +5 -3
  53. package/src/features/layouts/floating/FloatingBottomDock.tsx +263 -43
  54. package/src/features/layouts/floating/FloatingLayout.tsx +14 -8
  55. package/src/features/layouts/floating/FloatingSidebar.tsx +165 -73
  56. package/src/features/layouts/floating/computeFloatingInsets.ts +22 -4
  57. package/src/features/layouts/floating/moreSections.spec.ts +28 -0
  58. package/src/features/layouts/floating/moreSections.ts +31 -0
  59. package/src/features/layouts/floating/useFloatingChrome.ts +3 -1
  60. package/src/features/layouts/floating/useSoftKeyboard.spec.ts +39 -0
  61. package/src/features/layouts/floating/useSoftKeyboard.ts +82 -0
  62. package/src/features/layouts/fullscreen/FullscreenLayout.spec.tsx +68 -0
  63. package/src/features/layouts/fullscreen/FullscreenLayout.tsx +47 -10
  64. package/src/features/layouts/sidebar/NavigationContent.tsx +17 -9
  65. package/src/features/layouts/sidebar/SidebarIcons.tsx +70 -9
  66. package/src/features/layouts/sidebar/SidebarInner.spec.tsx +109 -0
  67. package/src/features/layouts/sidebar/SidebarInner.tsx +94 -43
  68. package/src/features/layouts/sidebar/SidebarLayout.tsx +24 -17
  69. package/src/features/layouts/utils.ts +4 -3
  70. package/src/features/layouts/windows/DesktopDots.tsx +76 -0
  71. package/src/features/layouts/windows/WindowsLayout.tsx +251 -161
  72. package/src/features/layouts/windows/deskDots.spec.ts +54 -0
  73. package/src/features/layouts/windows/deskDots.ts +314 -0
  74. package/src/features/overlays/ResponsiveModal.tsx +5 -3
  75. package/src/features/overlays/overlaySize.spec.ts +56 -16
  76. package/src/features/overlays/overlaySize.ts +114 -31
  77. package/src/features/overlays/phoneDrawerAnchoring.spec.ts +187 -0
  78. package/src/features/overlays/useOverlayReportedSize.ts +8 -3
  79. package/src/features/settings/SettingsProvider.tsx +158 -2
  80. package/src/features/settings/utils/buildSettingsForPropagation.spec.ts +8 -7
  81. package/src/features/settings/utils/buildSettingsForPropagation.ts +4 -6
  82. package/src/features/theme/applyTheme.ts +8 -0
  83. package/src/features/theme/navContrast.spec.ts +49 -0
  84. package/src/features/theme/navContrast.ts +108 -0
  85. package/src/features/transfers/transferQueue.spec.ts +6 -2
  86. package/src/i18n/translations/en/common.json +26 -0
  87. package/src/i18n/translations/fr/common.json +26 -0
  88. package/src/index.css +1145 -77
  89. package/src/index.ts +1 -0
  90. package/src/routes/hooks/useNavigationItems.ts +14 -3
  91. package/src/routes/hooks/withShellSearch.spec.ts +13 -0
  92. package/src/service-worker/devCaches.spec.ts +32 -0
  93. package/src/service-worker/devCaches.ts +27 -0
  94. package/src/service-worker/sw-dev.ts +23 -23
package/src/index.css CHANGED
@@ -95,6 +95,109 @@
95
95
  --shellui-inset-accent-foreground: var(--sidebar-foreground);
96
96
  }
97
97
 
98
+ /*
99
+ * Shell chrome tokens (layouts redesign). Every value is a theme token or a
100
+ * color-mix of tokens. They stay on :root / .dark so they resolve on <html>,
101
+ * where applyThemeToDocument writes the theme vars inline.
102
+ */
103
+ :root {
104
+ --shellui-ease: cubic-bezier(0.32, 0.72, 0, 1);
105
+ --shellui-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
106
+ --shellui-r-row: max(0px, calc(var(--radius) - 1px));
107
+ --shellui-r-card: calc(var(--radius) + 6px);
108
+ --shellui-r-float: min(calc(var(--radius) * 2), 1.25rem);
109
+ --shellui-r-pill: calc(var(--radius) * 999);
110
+ --shellui-nav-fg: color-mix(in oklch, var(--sidebar-foreground) 88%, transparent);
111
+ --shellui-nav-icon: color-mix(in oklch, var(--sidebar-foreground) 66%, transparent);
112
+ --shellui-nav-label: color-mix(in oklch, var(--sidebar-foreground) 58%, transparent);
113
+ --shellui-nav-hover: var(--sidebar-accent);
114
+ --shellui-nav-hover-inset: color-mix(in oklch, var(--sidebar-foreground) 7%, transparent);
115
+ --shellui-nav-active: var(--sidebar-primary);
116
+ --shellui-nav-active-fg: var(--sidebar-primary-foreground);
117
+ --shellui-nav-indicator: var(--sidebar-primary);
118
+ --shellui-hairline: color-mix(in oklch, var(--sidebar-border) 80%, transparent);
119
+ --shellui-dock-capsule: color-mix(in oklch, var(--sidebar-primary) 24%, transparent);
120
+ --shellui-dock-dim: color-mix(in oklch, var(--sidebar-foreground) 62%, transparent);
121
+ --shellui-glass: color-mix(in oklch, var(--sidebar) 72%, transparent);
122
+ --shellui-glass-solid: color-mix(in oklch, var(--sidebar) 97%, transparent);
123
+ --shellui-glass-edge: color-mix(in oklch, var(--sidebar-border) 70%, transparent);
124
+ --shellui-glass-hi: color-mix(in oklch, white 38%, transparent);
125
+ --shellui-glass-shadow:
126
+ 0 1px 0 var(--shellui-glass-hi) inset, 0 8px 28px color-mix(in oklch, black 12%, transparent),
127
+ 0 1px 3px color-mix(in oklch, black 8%, transparent);
128
+ --shellui-win-shadow:
129
+ 0 1px 2px color-mix(in oklch, black 8%, transparent),
130
+ 0 20px 44px -14px color-mix(in oklch, black 26%, transparent);
131
+ --shellui-win-shadow-idle:
132
+ 0 1px 2px color-mix(in oklch, black 6%, transparent),
133
+ 0 10px 24px -12px color-mix(in oklch, black 16%, transparent);
134
+ --shellui-desk-dot: color-mix(in oklch, var(--foreground) 15%, transparent);
135
+ --shellui-desk-wash: color-mix(in oklch, var(--primary) 12%, transparent);
136
+ --shellui-scrim: color-mix(in oklch, black 38%, transparent);
137
+ }
138
+
139
+ .dark {
140
+ --shellui-glass: color-mix(in oklch, var(--sidebar) 70%, transparent);
141
+ --shellui-glass-hi: color-mix(in oklch, white 10%, transparent);
142
+ --shellui-glass-shadow:
143
+ 0 1px 0 var(--shellui-glass-hi) inset, 0 12px 36px color-mix(in oklch, black 42%, transparent),
144
+ 0 1px 4px color-mix(in oklch, black 24%, transparent);
145
+ --shellui-win-shadow:
146
+ 0 1px 2px color-mix(in oklch, black 30%, transparent),
147
+ 0 24px 52px -14px color-mix(in oklch, black 60%, transparent);
148
+ --shellui-win-shadow-idle:
149
+ 0 1px 2px color-mix(in oklch, black 24%, transparent),
150
+ 0 12px 28px -12px color-mix(in oklch, black 40%, transparent);
151
+ --shellui-desk-dot: color-mix(in oklch, var(--foreground) 11%, transparent);
152
+ --shellui-desk-wash: color-mix(in oklch, var(--primary) 9%, transparent);
153
+ --shellui-dock-capsule: color-mix(in oklch, var(--sidebar-primary) 26%, transparent);
154
+ --shellui-scrim: color-mix(in oklch, black 55%, transparent);
155
+ }
156
+
157
+ /*
158
+ * Contrast guard: applyTheme sets data-shellui-nav-contrast="low" when the
159
+ * solid active pill falls under 4.5:1. Active rows switch to a tinted pill.
160
+ */
161
+ :root {
162
+ --shellui-nav-active-icon: var(--shellui-nav-active-fg);
163
+ }
164
+ html[data-shellui-nav-contrast='low'] {
165
+ --shellui-nav-active: color-mix(in oklch, var(--sidebar-primary) 20%, transparent);
166
+ --shellui-nav-active-fg: var(--sidebar-foreground);
167
+ --shellui-nav-active-icon: var(--sidebar-primary);
168
+ }
169
+
170
+ /* Glass falls back to a near solid fill when transparency is unwanted or unsupported. */
171
+ @media (prefers-reduced-transparency: reduce) {
172
+ :root {
173
+ --shellui-glass: var(--shellui-glass-solid);
174
+ }
175
+ }
176
+ @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
177
+ :root {
178
+ --shellui-glass: var(--shellui-glass-solid);
179
+ }
180
+ }
181
+
182
+ /* Shared glass surface: floating chrome, taskbar, start menu, phone dock. */
183
+ .shellui-glass {
184
+ background: var(--shellui-glass);
185
+ -webkit-backdrop-filter: blur(24px) saturate(180%);
186
+ backdrop-filter: blur(24px) saturate(180%);
187
+ border: 1px solid var(--shellui-glass-edge);
188
+ box-shadow: var(--shellui-glass-shadow);
189
+ }
190
+
191
+ /* Chrome focus: inset ring, no detached halo on tinted chrome backgrounds. */
192
+ .shellui-chrome-focus:focus-visible,
193
+ [data-shellui-chrome-focus] :is(a, button, [role='tab'], [role='menuitem']):focus-visible {
194
+ outline: 2px solid var(--sidebar-ring);
195
+ outline-offset: -2px;
196
+ box-shadow: none;
197
+ --tw-ring-shadow: 0 0 transparent;
198
+ --tw-ring-offset-shadow: 0 0 transparent;
199
+ }
200
+
98
201
  /*
99
202
  * Padding only — never fold these into shell height. Use for chrome clearance
100
203
  * (titlebar, sheet edges, home indicator). The shell itself is sized by
@@ -114,6 +217,39 @@
114
217
  );
115
218
  }
116
219
 
220
+ /*
221
+ * Floating drawers: every drawer, sheet and phone bottom sheet sits a gap away
222
+ * from the window edge (8px on phones, 12px from 768px), plus the safe area.
223
+ * Radii follow the theme radius, so --radius: 0 gives square panels.
224
+ */
225
+ :root {
226
+ --shellui-drawer-gap: 8px;
227
+ --shellui-drawer-radius: var(--shellui-r-float);
228
+ --shellui-sheet-radius: calc(var(--shellui-r-float) * 1.5);
229
+ --shellui-drawer-border: var(--border);
230
+ --shellui-drawer-shadow: var(--shellui-win-shadow);
231
+ --shellui-drawer-top: calc(var(--shellui-drawer-gap) + var(--shellui-safe-area-top));
232
+ --shellui-drawer-right: calc(var(--shellui-drawer-gap) + var(--shellui-safe-area-right));
233
+ --shellui-drawer-bottom: calc(var(--shellui-drawer-gap) + var(--shellui-safe-area-bottom));
234
+ --shellui-drawer-left: calc(var(--shellui-drawer-gap) + var(--shellui-safe-area-left));
235
+ --shellui-drawer-max-width: calc(
236
+ 100vw - var(--shellui-drawer-left) - var(--shellui-drawer-right)
237
+ );
238
+ --shellui-drawer-max-height: calc(
239
+ var(--shellui-app-height) - var(--shellui-drawer-top) - var(--shellui-drawer-bottom)
240
+ );
241
+ }
242
+ @media (min-width: 768px) {
243
+ :root {
244
+ --shellui-drawer-gap: 12px;
245
+ }
246
+ }
247
+ /* macOS desktop: drawers clear the 32px strip and the default traffic lights. */
248
+ html[data-shellui-mac-chrome],
249
+ html[data-shellui-overlay-chrome] {
250
+ --shellui-drawer-top: calc(var(--shellui-mac-titlebar-h) + var(--shellui-drawer-gap));
251
+ }
252
+
117
253
  /*
118
254
  * Content padding that clears the notch / home indicator, then keeps the
119
255
  * configured inset beyond that edge. Override with --shellui-safe-pad-x / -y.
@@ -138,30 +274,18 @@
138
274
  --shellui-inset-right: 0px;
139
275
  --shellui-inset-bottom: 0px;
140
276
  --shellui-inset-left: 0px;
141
- --shellui-floating-sidebar-radius: min(var(--radius), 5rem);
277
+ --shellui-floating-sidebar-radius: var(--shellui-r-float);
142
278
  /* Any positive --radius → huge radius (pill); 0 → square. */
143
279
  --shellui-floating-mobile-radius: calc(var(--radius) * 999);
144
280
  }
145
281
 
146
282
  .shellui-floating-glass {
147
283
  color: var(--sidebar-foreground);
148
- background:
149
- linear-gradient(
150
- 145deg,
151
- color-mix(in oklch, white 40%, transparent) 0%,
152
- color-mix(in oklch, white 10%, transparent) 42%,
153
- color-mix(in oklch, white 16%, transparent) 100%
154
- ),
155
- /* Frost from sidebar surface so chrome tracks theme, not raw background grey */
156
- color-mix(in oklch, var(--sidebar) 82%, transparent);
157
- backdrop-filter: blur(40px) saturate(160%);
158
- -webkit-backdrop-filter: blur(40px) saturate(160%);
159
- border: 1px solid color-mix(in oklch, var(--sidebar-border) 80%, transparent);
160
- box-shadow:
161
- 0 1px 0 color-mix(in oklch, white 40%, transparent) inset,
162
- 0 -1px 0 color-mix(in oklch, black 6%, transparent) inset,
163
- 0 10px 32px color-mix(in oklch, black 14%, transparent),
164
- 0 2px 6px color-mix(in oklch, black 6%, transparent);
284
+ background: var(--shellui-glass);
285
+ backdrop-filter: blur(24px) saturate(180%);
286
+ -webkit-backdrop-filter: blur(24px) saturate(180%);
287
+ border: 1px solid var(--shellui-glass-edge);
288
+ box-shadow: var(--shellui-glass-shadow);
165
289
  }
166
290
 
167
291
  .shellui-floating-sidebar-panel .shellui-floating-glass,
@@ -174,27 +298,10 @@
174
298
  border-radius: 0;
175
299
  }
176
300
 
177
- .dark .shellui-floating-glass {
178
- background:
179
- linear-gradient(
180
- 145deg,
181
- color-mix(in oklch, white 16%, transparent) 0%,
182
- color-mix(in oklch, white 4%, transparent) 45%,
183
- color-mix(in oklch, white 9%, transparent) 100%
184
- ),
185
- color-mix(in oklch, var(--sidebar) 78%, transparent);
186
- border-color: color-mix(in oklch, var(--sidebar-border) 90%, transparent);
187
- box-shadow:
188
- 0 1px 0 color-mix(in oklch, white 12%, transparent) inset,
189
- 0 -1px 0 color-mix(in oklch, black 30%, transparent) inset,
190
- 0 14px 40px color-mix(in oklch, black 40%, transparent),
191
- 0 2px 8px color-mix(in oklch, black 22%, transparent);
192
- }
193
-
194
301
  /* Desktop floating nav rows / chrome controls: match capped sidebar radius. */
195
302
  .shellui-floating-sidebar-panel .shellui-floating-nav-item,
196
303
  .shellui-floating-sidebar-panel .shellui-floating-nav-control {
197
- border-radius: var(--shellui-floating-sidebar-radius);
304
+ border-radius: min(var(--shellui-floating-sidebar-radius), 10px);
198
305
  }
199
306
 
200
307
  /* Phone/tablet floating dock + pill FAB: binary radius (0 theme → square). */
@@ -351,7 +458,7 @@ html[data-shellui-chrome-hidden='true']
351
458
  content: '';
352
459
  position: absolute;
353
460
  inset: 0;
354
- border-radius: 1rem 1rem 0 0;
461
+ border-radius: var(--shellui-r-card) var(--shellui-r-card) 0 0;
355
462
  border: 1px solid var(--border);
356
463
  border-bottom-width: 0;
357
464
  box-shadow: 0 0 0 100vmax var(--shellui-inset-chrome);
@@ -837,10 +944,10 @@ html.shellui-theme-switching
837
944
  * Do not set `transform: none` — enter/exit slide and swipe-dismiss own transform.
838
945
  * Morph transitions omit `transform` so keyframes / drag aren’t fought. */
839
946
  [data-dialog-content][data-presentation='sheet'] {
840
- left: 0;
841
- right: 0;
947
+ left: var(--shellui-drawer-left);
948
+ right: var(--shellui-drawer-right);
842
949
  top: auto;
843
- bottom: 0;
950
+ bottom: var(--shellui-drawer-bottom);
844
951
  transition-property:
845
952
  width, height, max-width, max-height, border-radius, left, right, top, bottom, padding;
846
953
  transition-duration: 220ms;
@@ -933,7 +1040,7 @@ html.shellui-theme-switching
933
1040
  @keyframes responsive-modal-sheet-in {
934
1041
  from {
935
1042
  opacity: 1;
936
- transform: translateY(100%);
1043
+ transform: translateY(calc(100% + var(--shellui-drawer-bottom) + 48px));
937
1044
  }
938
1045
  to {
939
1046
  opacity: 1;
@@ -947,7 +1054,7 @@ html.shellui-theme-switching
947
1054
  }
948
1055
  to {
949
1056
  opacity: 1;
950
- transform: translateY(100%);
1057
+ transform: translateY(calc(100% + var(--shellui-drawer-bottom) + 48px));
951
1058
  }
952
1059
  }
953
1060
 
@@ -1050,7 +1157,7 @@ html.shellui-theme-switching
1050
1157
  }
1051
1158
  @keyframes sheet-content-in-left {
1052
1159
  from {
1053
- transform: translateX(-100%);
1160
+ transform: translateX(calc(-100% - var(--shellui-drawer-left) - 48px));
1054
1161
  }
1055
1162
  to {
1056
1163
  transform: translateX(0);
@@ -1061,12 +1168,12 @@ html.shellui-theme-switching
1061
1168
  transform: translateX(0);
1062
1169
  }
1063
1170
  to {
1064
- transform: translateX(-100%);
1171
+ transform: translateX(calc(-100% - var(--shellui-drawer-left) - 48px));
1065
1172
  }
1066
1173
  }
1067
1174
  @keyframes sheet-content-in-right {
1068
1175
  from {
1069
- transform: translateX(100%);
1176
+ transform: translateX(calc(100% + var(--shellui-drawer-right) + 48px));
1070
1177
  }
1071
1178
  to {
1072
1179
  transform: translateX(0);
@@ -1077,12 +1184,12 @@ html.shellui-theme-switching
1077
1184
  transform: translateX(0);
1078
1185
  }
1079
1186
  to {
1080
- transform: translateX(100%);
1187
+ transform: translateX(calc(100% + var(--shellui-drawer-right) + 48px));
1081
1188
  }
1082
1189
  }
1083
1190
  @keyframes sheet-content-in-top {
1084
1191
  from {
1085
- transform: translateY(-100%);
1192
+ transform: translateY(calc(-100% - var(--shellui-drawer-top) - 48px));
1086
1193
  }
1087
1194
  to {
1088
1195
  transform: translateY(0);
@@ -1093,12 +1200,12 @@ html.shellui-theme-switching
1093
1200
  transform: translateY(0);
1094
1201
  }
1095
1202
  to {
1096
- transform: translateY(-100%);
1203
+ transform: translateY(calc(-100% - var(--shellui-drawer-top) - 48px));
1097
1204
  }
1098
1205
  }
1099
1206
  @keyframes sheet-content-in-bottom {
1100
1207
  from {
1101
- transform: translateY(100%);
1208
+ transform: translateY(calc(100% + var(--shellui-drawer-bottom) + 48px));
1102
1209
  }
1103
1210
  to {
1104
1211
  transform: translateY(0);
@@ -1109,7 +1216,7 @@ html.shellui-theme-switching
1109
1216
  transform: translateY(0);
1110
1217
  }
1111
1218
  to {
1112
- transform: translateY(100%);
1219
+ transform: translateY(calc(100% + var(--shellui-drawer-bottom) + 48px));
1113
1220
  }
1114
1221
  }
1115
1222
 
@@ -1154,6 +1261,78 @@ html.shellui-theme-switching
1154
1261
  pointer-events: none;
1155
1262
  }
1156
1263
 
1264
+ /*
1265
+ * Floating drawers (vaul). Offsets, radius, border and shadow live on the
1266
+ * drawerContentByDirection classes. The closed position adds the edge offset
1267
+ * plus 48px so no strip of panel or shadow stays on screen as it slides.
1268
+ */
1269
+ [data-drawer-content][data-drawer-direction='right'] {
1270
+ --initial-transform: calc(100% + var(--shellui-drawer-right) + 48px);
1271
+ }
1272
+ [data-drawer-content][data-drawer-direction='left'] {
1273
+ --initial-transform: calc(100% + var(--shellui-drawer-left) + 48px);
1274
+ }
1275
+ [data-drawer-content][data-drawer-direction='top'] {
1276
+ --initial-transform: calc(100% + var(--shellui-drawer-top) + 48px);
1277
+ }
1278
+ [data-drawer-content][data-drawer-direction='bottom'] {
1279
+ --initial-transform: calc(100% + var(--shellui-drawer-bottom) + 48px);
1280
+ }
1281
+ /* vaul paints a 200% ::after past the anchored edge; it would fill the gap. */
1282
+ [data-drawer-content]::after {
1283
+ content: none !important;
1284
+ }
1285
+ /* macOS desktop: the scrim starts under the 32px strip so the lights and window drag keep working. */
1286
+ html[data-shellui-mac-chrome] [data-drawer-overlay],
1287
+ html[data-shellui-overlay-chrome] [data-drawer-overlay] {
1288
+ top: var(--shellui-mac-titlebar-h);
1289
+ }
1290
+
1291
+ @keyframes shellui-drawer-fade-in {
1292
+ from {
1293
+ opacity: 0;
1294
+ }
1295
+ to {
1296
+ opacity: 1;
1297
+ }
1298
+ }
1299
+ @keyframes shellui-drawer-fade-out {
1300
+ from {
1301
+ opacity: 1;
1302
+ }
1303
+ to {
1304
+ opacity: 0;
1305
+ }
1306
+ }
1307
+
1308
+ /* Reduced motion: drawers and sheets fade in place instead of sliding. !important beats vaul's injected slide rules. */
1309
+ @media (prefers-reduced-motion: reduce) {
1310
+ [data-drawer-content] {
1311
+ --initial-transform: 0px;
1312
+ transition: none !important;
1313
+ }
1314
+ [data-drawer-content][data-state='open'] {
1315
+ animation: shellui-drawer-fade-in 150ms ease-out both !important;
1316
+ }
1317
+ [data-drawer-content][data-state='closed'] {
1318
+ animation: shellui-drawer-fade-out 120ms ease-in both !important;
1319
+ }
1320
+ [data-sheet-content][data-side][data-state='open'] {
1321
+ animation: shellui-drawer-fade-in 150ms ease-out both;
1322
+ }
1323
+ [data-sheet-content][data-side][data-state='closed'] {
1324
+ animation: shellui-drawer-fade-out 120ms ease-in both;
1325
+ }
1326
+ [data-dialog-content][data-presentation='sheet'][data-state='open'][data-enter-motion] {
1327
+ animation: shellui-drawer-fade-in 150ms ease-out;
1328
+ }
1329
+ [data-dialog-content][data-presentation='sheet'][data-state='closed']:not(
1330
+ [data-dismiss='swipe']
1331
+ ) {
1332
+ animation: shellui-drawer-fade-out 120ms ease-in forwards;
1333
+ }
1334
+ }
1335
+
1157
1336
  /* Cookie consent dialog (bottom-left) animations */
1158
1337
  @keyframes cookie-dialog-content-in {
1159
1338
  from {
@@ -1288,6 +1467,12 @@ html.shellui-theme-switching
1288
1467
  animation: auth-menu-out 0.12s cubic-bezier(0.4, 0, 1, 1) both;
1289
1468
  pointer-events: none;
1290
1469
  }
1470
+ @media (prefers-reduced-motion: reduce) {
1471
+ [data-auth-menu-content][data-state],
1472
+ [data-shellui-auth-loading] .animate-pulse {
1473
+ animation: none;
1474
+ }
1475
+ }
1291
1476
 
1292
1477
  /* Tauri overlay titlebar: drag via data-tauri-drag-region; keep controls clickable. */
1293
1478
  [data-shellui-drag-region],
@@ -1307,9 +1492,65 @@ html.shellui-theme-switching
1307
1492
  -webkit-app-region: no-drag;
1308
1493
  }
1309
1494
 
1495
+ /*
1496
+ * macOS strip (rules v2). The traffic lights stay at the AppKit default; the shell adapts
1497
+ * to them. Strip 32px, lights centre 16px, drag-only safe area 80px from the left edge.
1498
+ * In native fullscreen AppKit hides the lights and the safe area collapses to 12px.
1499
+ */
1500
+ html {
1501
+ --shellui-mac-titlebar-h: 32px;
1502
+ --shellui-mac-lights-cy: 16px;
1503
+ --shellui-mac-lights-safe: 12px;
1504
+ --shellui-titlebar-height: var(--shellui-mac-titlebar-h);
1505
+ }
1506
+
1310
1507
  html[data-shellui-overlay-chrome] {
1311
- --shellui-titlebar-height: 42px;
1312
- --shellui-traffic-lights-width: 78px;
1508
+ --shellui-mac-lights-safe: 80px;
1509
+ --shellui-traffic-lights-width: 68px;
1510
+ }
1511
+
1512
+ .shellui-mac-safe {
1513
+ width: var(--shellui-mac-lights-safe, 80px);
1514
+ transition: width 200ms ease;
1515
+ }
1516
+
1517
+ @media (prefers-reduced-motion: reduce) {
1518
+ .shellui-mac-safe {
1519
+ transition: none;
1520
+ }
1521
+ }
1522
+
1523
+ /* Strip controls: 24px boxes, 16px icons, centred on the lights line. */
1524
+ html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-item {
1525
+ height: 24px;
1526
+ font-size: 13px;
1527
+ }
1528
+ html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-item svg,
1529
+ html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-item img {
1530
+ width: 15px;
1531
+ height: 15px;
1532
+ }
1533
+ html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-end,
1534
+ html[data-shellui-mac-chrome] [data-shellui-mac-strip] [data-shellui-strip-end] button {
1535
+ height: 24px;
1536
+ min-width: 24px;
1537
+ }
1538
+ html[data-shellui-mac-chrome] [data-shellui-mac-strip] .shellui-appbar-end,
1539
+ html[data-shellui-mac-chrome] [data-shellui-mac-strip] [data-shellui-strip-end] button.size-7 {
1540
+ width: 24px;
1541
+ }
1542
+ html[data-shellui-mac-chrome]
1543
+ [data-shellui-mac-strip]
1544
+ [data-shellui-strip-end]
1545
+ [data-slot='avatar'] {
1546
+ width: 22px;
1547
+ height: 22px;
1548
+ }
1549
+
1550
+ /* Inactive window: AppKit greys the lights, the strip text follows. */
1551
+ html[data-shellui-window-inactive] [data-shellui-mac-strip],
1552
+ html[data-shellui-window-inactive] [data-shellui-mac-strip] :is(button, a, span) {
1553
+ color: var(--shellui-nav-label);
1313
1554
  }
1314
1555
 
1315
1556
  /* Keep sidebar chrome above the full-width drag strip so Back / trigger stay clickable. */
@@ -1320,9 +1561,9 @@ html[data-shellui-overlay-chrome] [data-slot='sidebar-container'] {
1320
1561
  /*
1321
1562
  * Tablet / desktop: fixed shell sidebar sits below the layout safe-area strip.
1322
1563
  * Only when the root (non-iframe) layout advertised the topbar via
1323
- * data-shellui-safe-area-topbar. Drawer overlay stays full-bleed (topbar dims
1324
- * behind it); left/right/top drawer panels clear the inset so they never cover
1325
- * the strip. Height is 0 when env(safe-area-inset-top) is 0.
1564
+ * data-shellui-safe-area-topbar. Drawers clear the inset through
1565
+ * --shellui-drawer-top, which already includes the safe area.
1566
+ * Height is 0 when env(safe-area-inset-top) is 0.
1326
1567
  */
1327
1568
  @media (min-width: 768px) {
1328
1569
  html[data-shellui-safe-area-topbar]
@@ -1334,31 +1575,16 @@ html[data-shellui-overlay-chrome] [data-slot='sidebar-container'] {
1334
1575
  bottom: auto;
1335
1576
  height: calc(var(--shellui-app-height, 100dvh) - var(--shellui-safe-area-top));
1336
1577
  }
1337
-
1338
- html[data-shellui-safe-area-topbar] [data-drawer-content][data-drawer-direction='left'],
1339
- html[data-shellui-safe-area-topbar] [data-drawer-content][data-drawer-direction='right'] {
1340
- top: var(--shellui-safe-area-top);
1341
- bottom: 0;
1342
- height: auto;
1343
- }
1344
-
1345
- /* Top drawer: sit below the safe-area band (no extra pt — offset replaces it). */
1346
- html[data-shellui-safe-area-topbar] [data-drawer-content][data-drawer-direction='top'] {
1347
- top: var(--shellui-safe-area-top);
1348
- padding-top: 0;
1349
- border-top-left-radius: 0.75rem;
1350
- border-top-right-radius: 0.75rem;
1351
- }
1352
1578
  }
1353
1579
 
1354
- /* Collapsed Tauri: full-width 42px titlebar; push sidebar + content below it. */
1580
+ /* Collapsed Tauri: full-width 32px macOS strip; push sidebar + content below it. */
1355
1581
  html[data-shellui-collapsed-titlebar]
1356
1582
  [data-shellui-sidebar-layout]
1357
1583
  > [data-slot='sidebar-wrapper']
1358
1584
  > [data-slot='sidebar']
1359
1585
  > [data-slot='sidebar-container'] {
1360
- top: var(--shellui-titlebar-height, 42px);
1361
- height: calc(var(--shellui-app-height, 100dvh) - var(--shellui-titlebar-height, 42px));
1586
+ top: var(--shellui-titlebar-height, 32px);
1587
+ height: calc(var(--shellui-app-height, 100dvh) - var(--shellui-titlebar-height, 32px));
1362
1588
  }
1363
1589
 
1364
1590
  html[data-shellui-collapsed-titlebar][data-shellui-safe-area-topbar]
@@ -1366,10 +1592,10 @@ html[data-shellui-collapsed-titlebar][data-shellui-safe-area-topbar]
1366
1592
  > [data-slot='sidebar-wrapper']
1367
1593
  > [data-slot='sidebar']
1368
1594
  > [data-slot='sidebar-container'] {
1369
- top: calc(var(--shellui-safe-area-top) + var(--shellui-titlebar-height, 42px));
1595
+ top: calc(var(--shellui-safe-area-top) + var(--shellui-titlebar-height, 32px));
1370
1596
  height: calc(
1371
1597
  var(--shellui-app-height, 100dvh) - var(--shellui-safe-area-top) -
1372
- var(--shellui-titlebar-height, 42px)
1598
+ var(--shellui-titlebar-height, 32px)
1373
1599
  );
1374
1600
  }
1375
1601
 
@@ -1377,7 +1603,7 @@ html[data-shellui-collapsed-titlebar]
1377
1603
  [data-shellui-sidebar-layout]:not([data-shellui-layout-variant='inset'])
1378
1604
  > [data-slot='sidebar-wrapper']
1379
1605
  > [data-slot='sidebar-inset'] {
1380
- padding-top: var(--shellui-titlebar-height, 42px);
1606
+ padding-top: var(--shellui-titlebar-height, 32px);
1381
1607
  }
1382
1608
 
1383
1609
  /* Inset card keeps its own radius: sit the frame under the titlebar instead of
@@ -1386,7 +1612,7 @@ html[data-shellui-collapsed-titlebar]
1386
1612
  [data-shellui-layout-variant='inset']
1387
1613
  > [data-slot='sidebar-wrapper']
1388
1614
  > [data-slot='sidebar-inset'] {
1389
- margin-top: var(--shellui-titlebar-height, 42px);
1615
+ margin-top: var(--shellui-titlebar-height, 32px);
1390
1616
  padding-top: 0;
1391
1617
  }
1392
1618
 
@@ -1399,3 +1625,845 @@ html[data-shellui-safe-area-topbar] [data-shellui-collapsed-titlebar] {
1399
1625
  [data-slot='sidebar-wrapper'][data-resizing] iframe {
1400
1626
  pointer-events: none;
1401
1627
  }
1628
+
1629
+ /*
1630
+ * Sidebar nav rows (sidebar and sidebar-inset, desktop column and mobile sheet).
1631
+ * `.shellui-nav` wraps SidebarContent and SidebarFooter in SidebarInner, so the
1632
+ * same rules reach the Sheet portal. Unlayered: wins over the shadcn utilities.
1633
+ */
1634
+ .shellui-nav [data-sidebar='menu-button'] {
1635
+ height: 32px;
1636
+ padding-inline: 10px;
1637
+ gap: 10px;
1638
+ border-radius: var(--shellui-r-row);
1639
+ font-size: 13.5px;
1640
+ font-weight: 450;
1641
+ color: var(--shellui-nav-fg);
1642
+ transition:
1643
+ background-color 150ms var(--shellui-ease),
1644
+ color 150ms var(--shellui-ease);
1645
+ }
1646
+ .shellui-nav [data-sidebar='menu-button'] .shellui-nav-icon {
1647
+ width: 16px;
1648
+ height: 16px;
1649
+ color: var(--shellui-nav-icon);
1650
+ transition: color 150ms var(--shellui-ease);
1651
+ }
1652
+ .shellui-nav [data-sidebar='menu-button']:hover,
1653
+ .shellui-nav [data-sidebar='menu-button']:active {
1654
+ background-color: var(--shellui-nav-hover);
1655
+ color: var(--sidebar-accent-foreground);
1656
+ }
1657
+ .shellui-nav [data-sidebar='menu-button']:hover .shellui-nav-icon {
1658
+ color: currentColor;
1659
+ }
1660
+ .shellui-nav [data-sidebar='menu-button'][data-active='true'],
1661
+ .shellui-nav [data-sidebar='menu-button'][data-active='true']:hover {
1662
+ background-color: var(--shellui-nav-active);
1663
+ color: var(--shellui-nav-active-fg);
1664
+ font-weight: 550;
1665
+ }
1666
+ .shellui-nav [data-sidebar='menu-button'][data-active='true'] .shellui-nav-icon {
1667
+ color: var(--shellui-nav-active-icon);
1668
+ }
1669
+ .shellui-nav [data-sidebar='menu-button']:focus-visible {
1670
+ outline: 2px solid var(--sidebar-ring);
1671
+ outline-offset: -2px;
1672
+ --tw-ring-shadow: 0 0 transparent;
1673
+ --tw-ring-offset-shadow: 0 0 transparent;
1674
+ }
1675
+ .shellui-nav .shellui-nav-label {
1676
+ height: auto;
1677
+ padding: 12px 10px 4px;
1678
+ font-size: 12px;
1679
+ font-weight: 600;
1680
+ text-transform: none;
1681
+ letter-spacing: 0;
1682
+ color: var(--shellui-nav-label);
1683
+ }
1684
+ .shellui-nav [data-sidebar='group'] {
1685
+ position: relative;
1686
+ }
1687
+ /* Collapsed rail: the hidden group label leaves a 24 x 1 px hairline. */
1688
+ .group[data-collapsible='icon']
1689
+ .shellui-nav
1690
+ [data-sidebar='group']:has(.shellui-nav-label)::before {
1691
+ content: '';
1692
+ position: absolute;
1693
+ top: 4px;
1694
+ left: 50%;
1695
+ width: 24px;
1696
+ height: 1px;
1697
+ transform: translateX(-50%);
1698
+ background: var(--shellui-hairline);
1699
+ }
1700
+ .shellui-nav[data-shellui-nav-footer] {
1701
+ border-top-color: var(--shellui-hairline);
1702
+ padding: 6px 0 max(8px, var(--shellui-safe-area-bottom));
1703
+ }
1704
+
1705
+ /* Rail: 2 px ring line on hover and while dragging. */
1706
+ [data-shellui-sidebar-layout] [data-sidebar='rail']:hover::after,
1707
+ [data-shellui-sidebar-layout]
1708
+ [data-slot='sidebar-wrapper'][data-resizing]
1709
+ [data-sidebar='rail']::after {
1710
+ background-color: var(--sidebar-ring);
1711
+ }
1712
+
1713
+ /* Phones: sheet rows grow to touch size. */
1714
+ [data-mobile='true'] .shellui-nav [data-sidebar='menu-button'] {
1715
+ height: 44px;
1716
+ font-size: 15px;
1717
+ }
1718
+ [data-mobile='true'] .shellui-nav [data-sidebar='menu-button'] .shellui-nav-icon {
1719
+ width: 18px;
1720
+ height: 18px;
1721
+ }
1722
+ [data-mobile='true'] .shellui-nav .shellui-nav-label {
1723
+ font-size: 12.5px;
1724
+ }
1725
+ [data-sheet-overlay]:has(+ [data-sidebar='sidebar'][data-mobile='true']) {
1726
+ background-color: var(--shellui-scrim);
1727
+ }
1728
+
1729
+ /* Tauri desktop: denser rows, closer to native source lists. */
1730
+ @media (min-width: 768px) {
1731
+ html[data-shellui-host='tauri'] .shellui-nav [data-sidebar='menu-button'] {
1732
+ height: 30px;
1733
+ font-size: 13px;
1734
+ }
1735
+ html[data-shellui-host='tauri'] .shellui-nav .shellui-nav-label {
1736
+ font-size: 11.5px;
1737
+ }
1738
+ }
1739
+
1740
+ @media (prefers-reduced-motion: reduce) {
1741
+ .shellui-nav [data-sidebar='menu-button'],
1742
+ .shellui-nav [data-sidebar='menu-button'] .shellui-nav-icon {
1743
+ transition: none;
1744
+ }
1745
+ }
1746
+
1747
+ /*
1748
+ * Sidebar-inset: the column sits on the chrome tray, so hover uses a foreground
1749
+ * mix (accent is too close to the tray tint) and the active pill gets a 1 px lift.
1750
+ */
1751
+ [data-shellui-layout-variant='inset'] .shellui-nav {
1752
+ --shellui-nav-hover: var(--shellui-nav-hover-inset);
1753
+ }
1754
+ [data-shellui-layout-variant='inset']
1755
+ .shellui-nav
1756
+ [data-sidebar='menu-button'][data-active='true'] {
1757
+ box-shadow: 0 1px 2px color-mix(in oklch, black 10%, transparent);
1758
+ }
1759
+ [data-shellui-layout-variant='inset'] .shellui-nav[data-shellui-nav-footer] {
1760
+ border-top-color: transparent;
1761
+ }
1762
+ @media (min-width: 768px) {
1763
+ [data-shellui-layout-variant='inset'] [data-slot='sidebar-inset'] {
1764
+ border-radius: var(--shellui-r-card);
1765
+ box-shadow: 0 1px 2px color-mix(in oklch, black 5%, transparent);
1766
+ }
1767
+ }
1768
+
1769
+ /*
1770
+ * App bar (app-bar and app-bar-inset): nav items, end buttons and menus.
1771
+ * Underline marks the active item; the inset bar uses a raised pill instead.
1772
+ */
1773
+ .shellui-appbar-item,
1774
+ .shellui-appbar-end {
1775
+ position: relative;
1776
+ border-radius: var(--shellui-r-row);
1777
+ color: var(--shellui-dock-dim);
1778
+ transition:
1779
+ background-color 150ms var(--shellui-ease),
1780
+ color 150ms var(--shellui-ease);
1781
+ }
1782
+ .shellui-appbar-item {
1783
+ padding-inline: 10px;
1784
+ font-size: 13.5px;
1785
+ font-weight: 500;
1786
+ }
1787
+ .shellui-appbar-item:hover,
1788
+ .shellui-appbar-item[aria-expanded='true'],
1789
+ .shellui-appbar-end:hover {
1790
+ background-color: var(--shellui-nav-hover);
1791
+ color: var(--sidebar-foreground);
1792
+ }
1793
+ .shellui-appbar-item.is-active,
1794
+ .shellui-appbar-end.is-active {
1795
+ color: var(--sidebar-foreground);
1796
+ font-weight: 600;
1797
+ }
1798
+ .shellui-appbar-item.is-active::after {
1799
+ content: '';
1800
+ position: absolute;
1801
+ left: 10px;
1802
+ right: 10px;
1803
+ bottom: 0;
1804
+ height: 2px;
1805
+ border-radius: 2px;
1806
+ background: var(--shellui-nav-indicator);
1807
+ }
1808
+ .shellui-appbar-end.is-active {
1809
+ background-color: var(--shellui-nav-hover);
1810
+ }
1811
+ /*
1812
+ * Web bar (56px, 6px top pad, 1px border): the underline sits on the bar's bottom
1813
+ * border, half the leftover height below the item. Tauri keeps it at the item bottom.
1814
+ */
1815
+ html:not([data-shellui-host='tauri'])
1816
+ [data-shellui-app-bar-layout]
1817
+ > header
1818
+ .shellui-appbar-item.is-active::after,
1819
+ html:not([data-shellui-host='tauri'])
1820
+ [data-shellui-mobile-chrome-stack]
1821
+ > header[data-layout]
1822
+ .shellui-appbar-item.is-active::after {
1823
+ bottom: calc((var(--shellui-appbar-item-h, 32px) - 49px) / 2 - 1px);
1824
+ }
1825
+ @media (max-width: 767px) {
1826
+ [data-shellui-app-bar-layout] .shellui-appbar-item {
1827
+ --shellui-appbar-item-h: 40px;
1828
+ height: 40px;
1829
+ }
1830
+ }
1831
+ .shellui-appbar-item:focus-visible,
1832
+ .shellui-appbar-end:focus-visible {
1833
+ outline: 2px solid var(--sidebar-ring);
1834
+ outline-offset: -2px;
1835
+ --tw-ring-shadow: 0 0 transparent;
1836
+ --tw-ring-offset-shadow: 0 0 transparent;
1837
+ }
1838
+ .shellui-appbar-menu {
1839
+ padding: 4px;
1840
+ border-radius: calc(var(--radius) + 2px);
1841
+ border: 1px solid var(--border);
1842
+ box-shadow:
1843
+ 0 12px 32px -8px color-mix(in oklch, black 22%, transparent),
1844
+ 0 2px 6px color-mix(in oklch, black 8%, transparent);
1845
+ }
1846
+ .shellui-appbar-menu .shellui-appbar-menu-item {
1847
+ min-height: 32px;
1848
+ font-size: 13.5px;
1849
+ border-radius: var(--shellui-r-row);
1850
+ }
1851
+ .shellui-appbar-menu .shellui-appbar-menu-item > :first-child:is(svg, img, span[aria-hidden]) {
1852
+ color: var(--muted-foreground);
1853
+ }
1854
+ .shellui-appbar-menu .shellui-appbar-menu-item.is-active {
1855
+ background-color: var(--accent);
1856
+ color: var(--accent-foreground);
1857
+ font-weight: 550;
1858
+ }
1859
+ .shellui-appbar-menu .shellui-appbar-menu-label {
1860
+ font-size: 12px;
1861
+ font-weight: 600;
1862
+ }
1863
+ @media (max-width: 767px) {
1864
+ .shellui-appbar-menu .shellui-appbar-menu-item {
1865
+ min-height: 44px;
1866
+ font-size: 15px;
1867
+ }
1868
+ }
1869
+ @media (min-width: 768px) {
1870
+ html[data-shellui-host='tauri'] .shellui-appbar-item {
1871
+ height: 30px;
1872
+ font-size: 13px;
1873
+ }
1874
+ }
1875
+
1876
+ [data-shellui-app-bar-layout][data-shellui-layout-variant='inset'] {
1877
+ --shellui-nav-hover: var(--shellui-nav-hover-inset);
1878
+ }
1879
+ [data-shellui-app-bar-layout][data-shellui-layout-variant='inset'] .shellui-appbar-item.is-active {
1880
+ background-color: var(--background);
1881
+ box-shadow:
1882
+ 0 0 0 1px var(--border),
1883
+ 0 1px 2px color-mix(in oklch, black 8%, transparent);
1884
+ }
1885
+ [data-shellui-app-bar-layout][data-shellui-layout-variant='inset']
1886
+ .shellui-appbar-item.is-active::after {
1887
+ content: none;
1888
+ }
1889
+ @media (min-width: 768px) {
1890
+ [data-shellui-app-bar-layout][data-shellui-layout-variant='inset'] > main {
1891
+ border-radius: var(--shellui-r-card);
1892
+ box-shadow: 0 1px 2px color-mix(in oklch, black 5%, transparent);
1893
+ }
1894
+ }
1895
+
1896
+ @media (prefers-reduced-motion: reduce) {
1897
+ .shellui-appbar-item,
1898
+ .shellui-appbar-end {
1899
+ transition: none;
1900
+ }
1901
+ }
1902
+
1903
+ /*
1904
+ * Floating layout: desktop glass sidebar rows, phone / tablet dock, More sheet.
1905
+ */
1906
+ .shellui-floating-nav-item {
1907
+ font-size: 13.5px;
1908
+ font-weight: 450;
1909
+ color: var(--shellui-nav-fg);
1910
+ transition:
1911
+ background-color 150ms var(--shellui-ease),
1912
+ color 150ms var(--shellui-ease);
1913
+ }
1914
+ .shellui-floating-nav-item .shellui-nav-icon {
1915
+ color: var(--shellui-nav-icon);
1916
+ }
1917
+ .shellui-floating-nav-item:hover {
1918
+ background-color: var(--shellui-nav-hover);
1919
+ color: var(--sidebar-accent-foreground);
1920
+ }
1921
+ .shellui-floating-nav-item:hover .shellui-nav-icon {
1922
+ color: currentColor;
1923
+ }
1924
+ .shellui-floating-nav-item.is-active,
1925
+ .shellui-floating-nav-item.is-active:hover {
1926
+ background-color: var(--shellui-nav-active);
1927
+ color: var(--shellui-nav-active-fg);
1928
+ font-weight: 550;
1929
+ }
1930
+ .shellui-floating-nav-item.is-active .shellui-nav-icon {
1931
+ color: var(--shellui-nav-active-icon);
1932
+ }
1933
+ .shellui-floating-nav-item:focus-visible,
1934
+ .shellui-floating-nav-control:focus-visible {
1935
+ outline: 2px solid var(--sidebar-ring);
1936
+ outline-offset: -2px;
1937
+ }
1938
+ .shellui-floating-nav-label {
1939
+ font-size: 12px;
1940
+ font-weight: 600;
1941
+ text-transform: none;
1942
+ letter-spacing: 0;
1943
+ color: var(--shellui-nav-label);
1944
+ }
1945
+ @media (min-width: 768px) {
1946
+ html[data-shellui-host='tauri'] .shellui-floating-nav-item {
1947
+ height: 30px;
1948
+ font-size: 13px;
1949
+ }
1950
+ }
1951
+
1952
+ .shellui-dock-tab {
1953
+ color: var(--shellui-dock-dim);
1954
+ -webkit-tap-highlight-color: transparent;
1955
+ user-select: none;
1956
+ -webkit-user-select: none;
1957
+ -webkit-touch-callout: none;
1958
+ touch-action: manipulation;
1959
+ min-height: 48px;
1960
+ }
1961
+ .shellui-dock-tab:focus-visible {
1962
+ outline: none;
1963
+ --tw-ring-shadow: 0 0 transparent;
1964
+ --tw-ring-offset-shadow: 0 0 transparent;
1965
+ }
1966
+ .shellui-dock-tab .shellui-dock-label {
1967
+ font-size: 11px;
1968
+ line-height: 13px;
1969
+ font-weight: 500;
1970
+ letter-spacing: 0.01em;
1971
+ }
1972
+ [data-dock-align='center'] .shellui-dock-tab .shellui-dock-label {
1973
+ font-size: 12px;
1974
+ line-height: 15px;
1975
+ }
1976
+ .shellui-dock-capsule {
1977
+ width: 52px;
1978
+ height: 28px;
1979
+ flex-shrink: 0;
1980
+ border-radius: var(--shellui-floating-mobile-radius);
1981
+ transition:
1982
+ background-color 240ms var(--shellui-ease),
1983
+ transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
1984
+ }
1985
+ .shellui-dock-capsule .shellui-dock-glyph {
1986
+ width: 21px;
1987
+ height: 21px;
1988
+ }
1989
+ .shellui-dock-tab[data-state='active'] {
1990
+ color: var(--sidebar-foreground);
1991
+ }
1992
+ .shellui-dock-tab[data-state='active'] .shellui-dock-label {
1993
+ font-weight: 650;
1994
+ }
1995
+ .shellui-dock-tab[data-state='active'] .shellui-dock-capsule {
1996
+ background-color: var(--shellui-dock-capsule);
1997
+ }
1998
+ .shellui-dock-tab:active .shellui-dock-capsule {
1999
+ transform: scale(0.9);
2000
+ background-color: color-mix(in oklch, var(--sidebar-foreground) 10%, transparent);
2001
+ transition-duration: 90ms;
2002
+ transition-timing-function: ease-out;
2003
+ }
2004
+ .shellui-dock-tab:active {
2005
+ color: var(--sidebar-foreground);
2006
+ }
2007
+ .shellui-dock-tab:focus-visible .shellui-dock-capsule {
2008
+ outline: 2px solid var(--sidebar-ring);
2009
+ outline-offset: 1px;
2010
+ }
2011
+
2012
+ /* Phone More sheet (vaul). */
2013
+ .shellui-more-sheet {
2014
+ left: calc(8px + var(--shellui-safe-area-left));
2015
+ right: calc(8px + var(--shellui-safe-area-right));
2016
+ bottom: calc(8px + var(--shellui-safe-area-bottom));
2017
+ padding-top: 8px;
2018
+ border-radius: var(--shellui-sheet-radius);
2019
+ background: color-mix(in oklch, var(--sidebar) 92%, transparent);
2020
+ backdrop-filter: blur(24px) saturate(180%);
2021
+ -webkit-backdrop-filter: blur(24px) saturate(180%);
2022
+ border: 1px solid var(--shellui-glass-edge);
2023
+ box-shadow: var(--shellui-glass-shadow);
2024
+ }
2025
+ .shellui-more-sheet-handle {
2026
+ width: 36px;
2027
+ height: 5px;
2028
+ margin-bottom: 6px;
2029
+ border-radius: 999px;
2030
+ background: color-mix(in oklch, var(--sidebar-foreground) 22%, transparent);
2031
+ }
2032
+ /* More sheet group label (sidebar sheet label size, 12.5px / 600). */
2033
+ .shellui-more-sheet-label {
2034
+ padding: 14px 12px 4px;
2035
+ font-size: 12.5px;
2036
+ font-weight: 600;
2037
+ color: var(--shellui-nav-label);
2038
+ }
2039
+ .shellui-more-sheet-row {
2040
+ min-height: 48px;
2041
+ padding-inline: 12px;
2042
+ border-radius: min(var(--shellui-r-float), 12px);
2043
+ font-size: 15.5px;
2044
+ color: var(--sidebar-foreground);
2045
+ -webkit-tap-highlight-color: transparent;
2046
+ }
2047
+ .shellui-more-sheet-row .shellui-dock-glyph {
2048
+ width: 20px;
2049
+ height: 20px;
2050
+ color: var(--shellui-nav-icon);
2051
+ }
2052
+ .shellui-more-sheet-row:active,
2053
+ .shellui-more-sheet-row:hover {
2054
+ background-color: var(--shellui-nav-hover);
2055
+ }
2056
+ .shellui-more-sheet-row[data-active='true'] {
2057
+ background-color: var(--shellui-dock-capsule);
2058
+ font-weight: 600;
2059
+ }
2060
+ .shellui-more-sheet-row:focus-visible {
2061
+ outline: 2px solid var(--sidebar-ring);
2062
+ outline-offset: -2px;
2063
+ }
2064
+ .shellui-more-sheet-account:empty {
2065
+ display: none;
2066
+ }
2067
+ /* Account row: 48 px in the mobile sidebar sheet, 56 px with a 32 px avatar in the More sheet. */
2068
+ [data-mobile='true'] .shellui-account-row {
2069
+ height: 3rem;
2070
+ }
2071
+ .shellui-more-sheet-account .shellui-account-row {
2072
+ height: 3.5rem;
2073
+ padding-inline: 0.75rem;
2074
+ font-size: 15px;
2075
+ }
2076
+ .shellui-more-sheet-account .shellui-account-row [data-shellui-account-initials],
2077
+ .shellui-more-sheet-account .shellui-account-row img {
2078
+ width: 2rem;
2079
+ height: 2rem;
2080
+ font-size: 12px;
2081
+ }
2082
+ /* vaul paints an ::after below bottom drawers; the sheet floats, so drop it. */
2083
+ .shellui-more-sheet::after {
2084
+ content: none !important;
2085
+ }
2086
+
2087
+ /* Soft keyboard open: dock and FAB step aside (same slide as scroll hide). */
2088
+ html[data-shellui-keyboard='open'] [data-shellui-floating-dock],
2089
+ html[data-shellui-keyboard='open']
2090
+ [data-shellui-chrome-actions-fab][data-shellui-floating-fab='true'] {
2091
+ translate: 0 120%;
2092
+ opacity: 0;
2093
+ pointer-events: none;
2094
+ }
2095
+
2096
+ @media (prefers-reduced-transparency: reduce) {
2097
+ .shellui-more-sheet {
2098
+ background: var(--shellui-glass-solid);
2099
+ }
2100
+ }
2101
+ @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
2102
+ .shellui-more-sheet {
2103
+ background: var(--shellui-glass-solid);
2104
+ }
2105
+ }
2106
+
2107
+ @media (prefers-reduced-motion: reduce) {
2108
+ .shellui-floating-nav-item,
2109
+ .shellui-dock-capsule {
2110
+ transition: none;
2111
+ }
2112
+ .shellui-dock-tab:active .shellui-dock-capsule {
2113
+ transform: none;
2114
+ }
2115
+ }
2116
+
2117
+ /*
2118
+ * Windows layout: calm desktop, opaque cards, glass taskbar and start menu.
2119
+ */
2120
+ [data-shellui-windows-layout] .shellui-desk-wash {
2121
+ background-image:
2122
+ radial-gradient(ellipse 90% 60% at 20% 112%, var(--shellui-desk-wash), transparent 62%),
2123
+ radial-gradient(
2124
+ ellipse 70% 50% at 80% 118%,
2125
+ color-mix(in oklch, var(--primary) 7%, transparent),
2126
+ transparent 64%
2127
+ );
2128
+ }
2129
+ /* Static dot grid: reduced motion, and the frame before the canvas mounts. */
2130
+ [data-shellui-desk-dots]:not([data-live])::before {
2131
+ content: '';
2132
+ position: absolute;
2133
+ inset: 0;
2134
+ background-image: radial-gradient(
2135
+ circle at center,
2136
+ var(--shellui-desk-dot) 1.1px,
2137
+ transparent 1.6px
2138
+ );
2139
+ background-size: 24px 24px;
2140
+ background-position: center 0;
2141
+ }
2142
+ .shellui-win {
2143
+ background: var(--card);
2144
+ color: var(--card-foreground);
2145
+ border: 1px solid var(--border);
2146
+ border-radius: calc(var(--radius) + 4px);
2147
+ box-shadow: var(--shellui-win-shadow-idle);
2148
+ }
2149
+ .shellui-win.is-focused {
2150
+ border-color: color-mix(in oklch, var(--border) 92%, var(--foreground));
2151
+ box-shadow: var(--shellui-win-shadow);
2152
+ }
2153
+ .shellui-win.is-flat {
2154
+ border: 0;
2155
+ border-radius: 0;
2156
+ box-shadow: none;
2157
+ }
2158
+ .shellui-win-titlebar {
2159
+ min-height: 36px;
2160
+ background: var(--card);
2161
+ border-bottom: 1px solid var(--border);
2162
+ font-size: 13px;
2163
+ font-weight: 600;
2164
+ }
2165
+ .shellui-win:not(.is-focused) .shellui-win-titlebar {
2166
+ color: var(--muted-foreground);
2167
+ font-weight: 550;
2168
+ }
2169
+ .shellui-win-tile {
2170
+ width: 18px;
2171
+ height: 18px;
2172
+ }
2173
+ .shellui-win-control {
2174
+ display: inline-flex;
2175
+ align-items: center;
2176
+ justify-content: center;
2177
+ width: 28px;
2178
+ height: 28px;
2179
+ border-radius: var(--shellui-r-row);
2180
+ color: var(--muted-foreground);
2181
+ cursor: pointer;
2182
+ transition:
2183
+ background-color 120ms var(--shellui-ease-out),
2184
+ color 120ms var(--shellui-ease-out);
2185
+ }
2186
+ .shellui-win-control:hover {
2187
+ background: var(--accent);
2188
+ color: var(--accent-foreground);
2189
+ }
2190
+ .shellui-win-control.shellui-win-close:hover {
2191
+ background: var(--destructive);
2192
+ color: var(--destructive-foreground, white);
2193
+ }
2194
+ .shellui-win.is-flat .shellui-win-control {
2195
+ width: 40px;
2196
+ height: 40px;
2197
+ }
2198
+ .shellui-win.is-flat .shellui-win-control svg {
2199
+ width: 18px;
2200
+ height: 18px;
2201
+ }
2202
+
2203
+ /*
2204
+ * The taskbar glass sits on a pseudo element: a backdrop-filter on the bar itself
2205
+ * would become the backdrop root of the start menu and stop its blur at the bar.
2206
+ */
2207
+ .shellui-taskbar {
2208
+ color: var(--sidebar-foreground);
2209
+ }
2210
+ .shellui-taskbar::before {
2211
+ content: '';
2212
+ position: absolute;
2213
+ inset: 0;
2214
+ z-index: -1;
2215
+ background: var(--shellui-glass);
2216
+ -webkit-backdrop-filter: blur(24px) saturate(180%);
2217
+ backdrop-filter: blur(24px) saturate(180%);
2218
+ border-top: 1px solid var(--shellui-glass-edge);
2219
+ pointer-events: none;
2220
+ }
2221
+ .shellui-windows-strip {
2222
+ background: var(--shellui-glass);
2223
+ -webkit-backdrop-filter: blur(24px) saturate(180%);
2224
+ backdrop-filter: blur(24px) saturate(180%);
2225
+ border-bottom: 1px solid var(--shellui-glass-edge);
2226
+ }
2227
+ /* Centred on the window, text only: drag passes through to the strip. */
2228
+ .shellui-windows-strip-title {
2229
+ position: absolute;
2230
+ left: 50%;
2231
+ top: 50%;
2232
+ max-width: calc(100% - 2 * 180px);
2233
+ transform: translate(-50%, -50%);
2234
+ font-size: 12.5px;
2235
+ font-weight: 600;
2236
+ color: var(--sidebar-foreground);
2237
+ pointer-events: none;
2238
+ }
2239
+ .shellui-start {
2240
+ display: flex;
2241
+ align-items: center;
2242
+ gap: 8px;
2243
+ height: 38px;
2244
+ padding: 0 10px 0 7px;
2245
+ border-radius: var(--shellui-r-row);
2246
+ color: var(--sidebar-foreground);
2247
+ cursor: pointer;
2248
+ transition: background-color 120ms var(--shellui-ease-out);
2249
+ }
2250
+ .shellui-start :is(img, svg) {
2251
+ width: 24px;
2252
+ height: 24px;
2253
+ }
2254
+ .shellui-start:hover {
2255
+ background: var(--shellui-nav-hover-inset);
2256
+ }
2257
+ .shellui-start.is-open {
2258
+ background: color-mix(in oklch, var(--sidebar-foreground) 10%, transparent);
2259
+ }
2260
+ .shellui-start-name {
2261
+ font-size: 13.5px;
2262
+ font-weight: 600;
2263
+ }
2264
+ .shellui-task {
2265
+ position: relative;
2266
+ display: flex;
2267
+ align-items: center;
2268
+ gap: 8px;
2269
+ height: 38px;
2270
+ max-width: 160px;
2271
+ min-width: 0;
2272
+ padding: 0 10px;
2273
+ border-radius: var(--shellui-r-row);
2274
+ font-size: 13px;
2275
+ color: var(--sidebar-foreground);
2276
+ cursor: pointer;
2277
+ transition: background-color 120ms var(--shellui-ease-out);
2278
+ }
2279
+ .shellui-task:hover {
2280
+ background: var(--shellui-nav-hover-inset);
2281
+ }
2282
+ .shellui-task-list .shellui-task::after {
2283
+ content: '';
2284
+ position: absolute;
2285
+ left: 50%;
2286
+ bottom: 2px;
2287
+ width: 6px;
2288
+ height: 3px;
2289
+ border-radius: 3px;
2290
+ background: color-mix(in oklch, var(--sidebar-foreground) 40%, transparent);
2291
+ transform: translateX(-50%);
2292
+ transition:
2293
+ width 200ms var(--shellui-ease),
2294
+ background-color 200ms var(--shellui-ease);
2295
+ }
2296
+ .shellui-task.is-focused {
2297
+ background: color-mix(in oklch, var(--sidebar-foreground) 8%, transparent);
2298
+ font-weight: 600;
2299
+ }
2300
+ .shellui-task-list .shellui-task.is-focused::after {
2301
+ width: 16px;
2302
+ background: var(--shellui-nav-indicator);
2303
+ }
2304
+ .shellui-clock {
2305
+ color: var(--sidebar-foreground);
2306
+ border-left: 1px solid var(--shellui-hairline);
2307
+ }
2308
+ .shellui-clock-time {
2309
+ font-size: 12.5px;
2310
+ font-weight: 550;
2311
+ line-height: 1.2;
2312
+ }
2313
+ .shellui-clock-date {
2314
+ font-size: 11px;
2315
+ line-height: 1.2;
2316
+ color: color-mix(in oklch, var(--sidebar-foreground) 72%, transparent);
2317
+ }
2318
+ .shellui-taskbar[data-phone] .shellui-clock-date {
2319
+ display: none;
2320
+ }
2321
+ .shellui-taskbar[data-phone] .shellui-start-name {
2322
+ display: none;
2323
+ }
2324
+
2325
+ .shellui-start-menu {
2326
+ background: color-mix(in oklch, var(--popover) 86%, transparent);
2327
+ -webkit-backdrop-filter: blur(24px) saturate(180%);
2328
+ backdrop-filter: blur(24px) saturate(180%);
2329
+ border: 1px solid var(--shellui-glass-edge);
2330
+ border-radius: calc(var(--radius) + 6px);
2331
+ box-shadow: var(--shellui-glass-shadow);
2332
+ }
2333
+ .shellui-start-head {
2334
+ border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
2335
+ }
2336
+ .shellui-start-title {
2337
+ font-size: 14px;
2338
+ font-weight: 600;
2339
+ letter-spacing: -0.01em;
2340
+ }
2341
+ .shellui-start-hint {
2342
+ margin-top: 2px;
2343
+ font-size: 12.5px;
2344
+ }
2345
+ .shellui-start-foot {
2346
+ border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
2347
+ }
2348
+ .shellui-start-label {
2349
+ font-size: 12px;
2350
+ font-weight: 600;
2351
+ text-transform: none;
2352
+ letter-spacing: 0;
2353
+ }
2354
+ .shellui-task.shellui-task-icon {
2355
+ width: 38px;
2356
+ justify-content: center;
2357
+ padding: 0;
2358
+ }
2359
+ .shellui-start-settings {
2360
+ display: inline-flex;
2361
+ width: 36px;
2362
+ height: 36px;
2363
+ flex: none;
2364
+ align-items: center;
2365
+ justify-content: center;
2366
+ border-radius: var(--shellui-r-row);
2367
+ color: var(--shellui-nav-icon);
2368
+ cursor: pointer;
2369
+ }
2370
+ .shellui-start-settings:hover {
2371
+ background: var(--shellui-nav-hover);
2372
+ color: var(--popover-foreground);
2373
+ }
2374
+ .shellui-start-row {
2375
+ display: flex;
2376
+ width: 100%;
2377
+ min-height: 44px;
2378
+ align-items: center;
2379
+ gap: 12px;
2380
+ padding: 6px 8px;
2381
+ border-radius: var(--shellui-r-row);
2382
+ text-align: left;
2383
+ color: var(--popover-foreground);
2384
+ cursor: pointer;
2385
+ transition: background-color 120ms var(--shellui-ease-out);
2386
+ }
2387
+ .shellui-start-row:hover {
2388
+ background: var(--accent);
2389
+ color: var(--accent-foreground);
2390
+ }
2391
+ .shellui-start-row.is-open {
2392
+ background: color-mix(in oklch, var(--accent) 50%, transparent);
2393
+ }
2394
+ .shellui-start-tile {
2395
+ display: flex;
2396
+ width: 28px;
2397
+ height: 28px;
2398
+ flex-shrink: 0;
2399
+ align-items: center;
2400
+ justify-content: center;
2401
+ border-radius: calc(var(--radius) - 2px);
2402
+ background: color-mix(in oklch, var(--muted) 70%, transparent);
2403
+ color: var(--foreground);
2404
+ box-shadow: 0 0 0 1px color-mix(in oklch, var(--border) 50%, transparent);
2405
+ }
2406
+ /* Phone: the start menu becomes a sheet above the taskbar. */
2407
+ .shellui-taskbar[data-phone] .shellui-start-menu {
2408
+ position: fixed;
2409
+ left: 8px;
2410
+ right: 8px;
2411
+ width: auto;
2412
+ bottom: calc(48px + var(--shellui-safe-area-bottom, 0px) + 8px);
2413
+ max-height: 70vh;
2414
+ margin: 0;
2415
+ }
2416
+ .shellui-taskbar[data-phone] .shellui-start-row {
2417
+ min-height: 48px;
2418
+ font-size: 15px;
2419
+ }
2420
+ /* Tauri density on desktop sized windows. */
2421
+ @media (min-width: 768px) {
2422
+ html[data-shellui-host='tauri'] .shellui-task {
2423
+ height: 36px;
2424
+ }
2425
+ html[data-shellui-host='tauri'] .shellui-start-row {
2426
+ min-height: 40px;
2427
+ }
2428
+ }
2429
+ @media (prefers-reduced-transparency: reduce) {
2430
+ .shellui-start-menu {
2431
+ background: var(--popover);
2432
+ }
2433
+ }
2434
+ @media (prefers-reduced-motion: reduce) {
2435
+ .shellui-task,
2436
+ .shellui-task::after,
2437
+ .shellui-start,
2438
+ .shellui-start-row,
2439
+ .shellui-win-control {
2440
+ transition: none;
2441
+ }
2442
+ }
2443
+
2444
+ /*
2445
+ * Fullscreen layout on phones: top pads by safe-area-top + 12px, sides and bottom
2446
+ * by their safe area. The 12px only applies when there is a top inset (the min()
2447
+ * term is 0 on a plain desktop browser).
2448
+ */
2449
+ .shellui-fullscreen-safe {
2450
+ padding-top: calc(var(--shellui-safe-area-top) + min(12px, var(--shellui-safe-area-top) * 1000));
2451
+ padding-right: var(--shellui-safe-area-right);
2452
+ padding-bottom: var(--shellui-safe-area-bottom);
2453
+ padding-left: var(--shellui-safe-area-left);
2454
+ }
2455
+
2456
+ /* Fullscreen layout (Tauri): a small glass group keeps history buttons legible on any content. */
2457
+ .shellui-history-glass {
2458
+ gap: 2px;
2459
+ padding: 2px;
2460
+ border-radius: var(--shellui-r-row);
2461
+ background: var(--shellui-glass);
2462
+ -webkit-backdrop-filter: blur(24px) saturate(180%);
2463
+ backdrop-filter: blur(24px) saturate(180%);
2464
+ box-shadow: 0 0 0 1px var(--shellui-glass-edge);
2465
+ }
2466
+ .shellui-history-glass :is(button, a):focus-visible {
2467
+ outline: 2px solid var(--sidebar-ring);
2468
+ outline-offset: -2px;
2469
+ }