@a16n/web-sim 0.0.0-stage → 0.1.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 (279) hide show
  1. package/README.md +13 -2
  2. package/bin/cli.ts +255 -0
  3. package/bin/web-sim.js +39 -0
  4. package/overrides/@backpackapp-io/react-native-toast/overrides.ts +15 -0
  5. package/overrides/@react-native-firebase/app/overrides.ts +34 -0
  6. package/overrides/@tiktok-for-business/react-native-sdk/NativeTiktokSdk.ts +29 -0
  7. package/overrides/@tiktok-for-business/react-native-sdk/overrides.ts +9 -0
  8. package/overrides/expo-application/ExpoApplication.ts +81 -0
  9. package/overrides/expo-application/overrides.ts +16 -0
  10. package/overrides/expo-background-task/ExpoBackgroundTaskModule.ts +30 -0
  11. package/overrides/expo-background-task/overrides.ts +9 -0
  12. package/overrides/expo-constants/ExponentConstants.ts +66 -0
  13. package/overrides/expo-constants/overrides.ts +9 -0
  14. package/overrides/expo-device/ExpoDevice.ts +104 -0
  15. package/overrides/expo-device/overrides.ts +9 -0
  16. package/overrides/expo-glass-effect/GlassContainer.tsx +9 -0
  17. package/overrides/expo-glass-effect/GlassView.tsx +95 -0
  18. package/overrides/expo-glass-effect/availability.ts +14 -0
  19. package/overrides/expo-glass-effect/overrides.ts +14 -0
  20. package/overrides/expo-haptics/Haptics.ts +67 -0
  21. package/overrides/expo-haptics/overrides.ts +5 -0
  22. package/overrides/expo-mail-composer/ExpoMailComposer.ts +40 -0
  23. package/overrides/expo-mail-composer/overrides.ts +9 -0
  24. package/overrides/expo-mesh-gradient/MeshGradientView.tsx +44 -0
  25. package/overrides/expo-mesh-gradient/overrides.ts +9 -0
  26. package/overrides/expo-modules-core/overrides.ts +12 -0
  27. package/overrides/expo-navigation-bar/ExpoNavigationBar.ts +29 -0
  28. package/overrides/expo-navigation-bar/NavigationBar.ts +43 -0
  29. package/overrides/expo-navigation-bar/overrides.ts +12 -0
  30. package/overrides/expo-router/NativeStackView.tsx +74 -0
  31. package/overrides/expo-router/NativeTabsView.tsx +263 -0
  32. package/overrides/expo-router/SafeAreaProvider.ts +6 -0
  33. package/overrides/expo-router/overrides.ts +23 -0
  34. package/overrides/expo-router/statusBarRequests.ts +51 -0
  35. package/overrides/expo-screen-orientation/ExpoScreenOrientation.ts +173 -0
  36. package/overrides/expo-screen-orientation/overrides.ts +21 -0
  37. package/overrides/expo-sharing/SharingNativeModule.ts +21 -0
  38. package/overrides/expo-sharing/overrides.ts +9 -0
  39. package/overrides/expo-sms/ExpoSMS.ts +24 -0
  40. package/overrides/expo-sms/overrides.ts +9 -0
  41. package/overrides/expo-splash-screen/SplashScreen.ts +25 -0
  42. package/overrides/expo-splash-screen/overrides.ts +5 -0
  43. package/overrides/expo-status-bar/StatusBar.tsx +44 -0
  44. package/overrides/expo-status-bar/overrides.ts +5 -0
  45. package/overrides/expo-store-review/ExpoStoreReview.ts +18 -0
  46. package/overrides/expo-store-review/overrides.ts +9 -0
  47. package/overrides/expo-symbols/SymbolView.tsx +192 -0
  48. package/overrides/expo-symbols/overrides.ts +9 -0
  49. package/overrides/expo-system-ui/ExpoSystemUI.ts +34 -0
  50. package/overrides/expo-system-ui/overrides.ts +9 -0
  51. package/overrides/expo-task-manager/ExpoTaskManager.ts +39 -0
  52. package/overrides/expo-task-manager/overrides.ts +9 -0
  53. package/overrides/expo-tracking-transparency/ExpoTrackingTransparency.ts +30 -0
  54. package/overrides/expo-tracking-transparency/overrides.ts +11 -0
  55. package/overrides/expo-video/ExpoVideo.ts +16 -0
  56. package/overrides/expo-video/overrides.ts +9 -0
  57. package/overrides/lottie-react-native/LottieView.tsx +87 -0
  58. package/overrides/lottie-react-native/overrides.ts +9 -0
  59. package/overrides/react-native-pager-view/PagerViewNativeComponent.tsx +254 -0
  60. package/overrides/react-native-pager-view/overrides.ts +9 -0
  61. package/overrides/react-native-reanimated/overrides.ts +28 -0
  62. package/overrides/react-native-safe-area-context/NativeSafeAreaProvider.tsx +40 -0
  63. package/overrides/react-native-safe-area-context/overrides.ts +12 -0
  64. package/overrides/react-native-share/NativeRNShare.ts +22 -0
  65. package/overrides/react-native-share/overrides.ts +12 -0
  66. package/overrides/react-native-share/platform.ts +14 -0
  67. package/overrides/react-native-turbo-image/TurboImage.tsx +101 -0
  68. package/overrides/react-native-turbo-image/overrides.ts +9 -0
  69. package/overrides/react-native-web/RefreshControl.tsx +57 -0
  70. package/overrides/react-native-web/overrides.ts +153 -0
  71. package/overrides/react-native-web/useElementLayout.ts +140 -0
  72. package/package.json +78 -4
  73. package/plugins/battery/overrides/expo-battery/ExpoBattery.ts +57 -0
  74. package/plugins/battery/overrides/expo-battery/overrides.ts +9 -0
  75. package/plugins/battery/plugin.ts +8 -0
  76. package/plugins/battery/shell.tsx +56 -0
  77. package/plugins/battery/state.ts +11 -0
  78. package/plugins/biometrics/overrides/expo-local-authentication/ExpoLocalAuthentication.ts +90 -0
  79. package/plugins/biometrics/overrides/expo-local-authentication/overrides.ts +11 -0
  80. package/plugins/biometrics/plugin.ts +8 -0
  81. package/plugins/biometrics/shell.tsx +88 -0
  82. package/plugins/biometrics/state.ts +41 -0
  83. package/plugins/brightness/app.ts +5 -0
  84. package/plugins/brightness/overrides/expo-brightness/Brightness.ts +98 -0
  85. package/plugins/brightness/overrides/expo-brightness/overrides.ts +10 -0
  86. package/plugins/brightness/plugin.ts +9 -0
  87. package/plugins/brightness/shell.tsx +55 -0
  88. package/plugins/brightness/state.ts +19 -0
  89. package/plugins/calendar/calendar.ts +299 -0
  90. package/plugins/calendar/overrides/expo-calendar/ExpoCalendar.ts +358 -0
  91. package/plugins/calendar/overrides/expo-calendar/LegacyExpoCalendar.ts +163 -0
  92. package/plugins/calendar/overrides/expo-calendar/overrides.ts +14 -0
  93. package/plugins/calendar/plugin.ts +8 -0
  94. package/plugins/calendar/shell.tsx +123 -0
  95. package/plugins/camera/overrides/expo-camera/ExpoCamera.tsx +269 -0
  96. package/plugins/camera/overrides/expo-camera/ExpoCameraManager.ts +56 -0
  97. package/plugins/camera/overrides/expo-camera/overrides.ts +12 -0
  98. package/plugins/camera/plugin.ts +9 -0
  99. package/plugins/camera/shell.tsx +107 -0
  100. package/plugins/camera/state.ts +61 -0
  101. package/plugins/clipboard/overrides/expo-clipboard/ExpoClipboard.ts +138 -0
  102. package/plugins/clipboard/overrides/expo-clipboard/overrides.ts +9 -0
  103. package/plugins/clipboard/plugin.ts +8 -0
  104. package/plugins/clipboard/shell.tsx +122 -0
  105. package/plugins/clipboard/state.ts +93 -0
  106. package/plugins/clock/app.ts +25 -0
  107. package/plugins/clock/plugin.ts +8 -0
  108. package/plugins/clock/shell.tsx +225 -0
  109. package/plugins/clock/state.ts +12 -0
  110. package/plugins/contacts/contacts.ts +125 -0
  111. package/plugins/contacts/overrides/expo-contacts/ExpoContacts.ts +153 -0
  112. package/plugins/contacts/overrides/expo-contacts/ExpoContactsNext.ts +232 -0
  113. package/plugins/contacts/overrides/expo-contacts/overrides.ts +12 -0
  114. package/plugins/contacts/plugin.ts +8 -0
  115. package/plugins/contacts/shell.tsx +109 -0
  116. package/plugins/home-indicator/app.ts +5 -0
  117. package/plugins/home-indicator/plugin.ts +9 -0
  118. package/plugins/home-indicator/requests.ts +48 -0
  119. package/plugins/home-indicator/shell.tsx +68 -0
  120. package/plugins/home-indicator/state.ts +31 -0
  121. package/plugins/keep-awake/app.ts +5 -0
  122. package/plugins/keep-awake/overrides/expo-keep-awake/ExpoKeepAwake.ts +27 -0
  123. package/plugins/keep-awake/overrides/expo-keep-awake/overrides.ts +9 -0
  124. package/plugins/keep-awake/plugin.ts +9 -0
  125. package/plugins/keep-awake/shell.tsx +80 -0
  126. package/plugins/keep-awake/state.ts +12 -0
  127. package/plugins/keyboard/Keyboard.tsx +354 -0
  128. package/plugins/keyboard/app.ts +90 -0
  129. package/plugins/keyboard/controller.ts +384 -0
  130. package/plugins/keyboard/fields.ts +244 -0
  131. package/plugins/keyboard/icons.tsx +283 -0
  132. package/plugins/keyboard/keyboard.css +362 -0
  133. package/plugins/keyboard/layouts/android.ts +175 -0
  134. package/plugins/keyboard/layouts/index.ts +10 -0
  135. package/plugins/keyboard/layouts/ios.ts +219 -0
  136. package/plugins/keyboard/layouts/types.ts +80 -0
  137. package/plugins/keyboard/overrides/react-native-keyboard-controller/KeyboardController.tsx +470 -0
  138. package/plugins/keyboard/overrides/react-native-keyboard-controller/overrides.ts +9 -0
  139. package/plugins/keyboard/plugin.ts +13 -0
  140. package/plugins/keyboard/shell.tsx +133 -0
  141. package/plugins/keyboard/state.ts +92 -0
  142. package/plugins/keyboard/suggestions.ts +63 -0
  143. package/plugins/keyboard/taps.ts +77 -0
  144. package/plugins/keyboard/typing.ts +112 -0
  145. package/plugins/locale/app.ts +232 -0
  146. package/plugins/locale/locale.ts +143 -0
  147. package/plugins/locale/overrides/expo-localization/ExpoLocalization.ts +41 -0
  148. package/plugins/locale/overrides/expo-localization/overrides.ts +9 -0
  149. package/plugins/locale/plugin.ts +9 -0
  150. package/plugins/locale/shell.tsx +147 -0
  151. package/plugins/locale/state.ts +36 -0
  152. package/plugins/location/geo.ts +56 -0
  153. package/plugins/location/overrides/expo-location/ExpoLocation.ts +235 -0
  154. package/plugins/location/overrides/expo-location/overrides.ts +11 -0
  155. package/plugins/location/places.ts +38 -0
  156. package/plugins/location/plugin.ts +8 -0
  157. package/plugins/location/shell.tsx +188 -0
  158. package/plugins/location/state.ts +51 -0
  159. package/plugins/motion/overrides/expo-sensors/DeviceSensor.ts +169 -0
  160. package/plugins/motion/overrides/expo-sensors/ExponentPedometer.ts +54 -0
  161. package/plugins/motion/overrides/expo-sensors/overrides.ts +14 -0
  162. package/plugins/motion/plugin.ts +8 -0
  163. package/plugins/motion/sensors.ts +116 -0
  164. package/plugins/motion/shell.tsx +136 -0
  165. package/plugins/motion/state.ts +46 -0
  166. package/plugins/network/app.ts +400 -0
  167. package/plugins/network/overrides/expo-network/ExpoNetwork.ts +51 -0
  168. package/plugins/network/overrides/expo-network/overrides.ts +9 -0
  169. package/plugins/network/plugin.ts +8 -0
  170. package/plugins/network/shell.tsx +67 -0
  171. package/plugins/network/state.ts +29 -0
  172. package/plugins/notifications/center.ts +255 -0
  173. package/plugins/notifications/content.ts +36 -0
  174. package/plugins/notifications/overrides/expo-notifications/NotificationsModule.ts +175 -0
  175. package/plugins/notifications/overrides/expo-notifications/channels.ts +108 -0
  176. package/plugins/notifications/overrides/expo-notifications/getDevicePushTokenAsync.ts +19 -0
  177. package/plugins/notifications/overrides/expo-notifications/getExpoPushTokenAsync.ts +16 -0
  178. package/plugins/notifications/overrides/expo-notifications/overrides.ts +36 -0
  179. package/plugins/notifications/plugin.ts +8 -0
  180. package/plugins/notifications/shell.tsx +192 -0
  181. package/plugins/notifications/state.ts +56 -0
  182. package/plugins/notifications/tokens.ts +47 -0
  183. package/plugins/notifications/trigger.ts +107 -0
  184. package/plugins/permissions/plugin.ts +6 -0
  185. package/plugins/permissions/shell.tsx +50 -0
  186. package/plugins/permissions/state.ts +38 -0
  187. package/plugins/photos/appLibrary.ts +114 -0
  188. package/plugins/photos/library.ts +322 -0
  189. package/plugins/photos/overrides/expo-image-picker/ExponentImagePicker.ts +153 -0
  190. package/plugins/photos/overrides/expo-image-picker/overrides.ts +13 -0
  191. package/plugins/photos/overrides/expo-media-library/ExpoMediaLibrary.ts +235 -0
  192. package/plugins/photos/overrides/expo-media-library/NativeMediaLibraryModule.ts +318 -0
  193. package/plugins/photos/overrides/expo-media-library/overrides.ts +19 -0
  194. package/plugins/photos/plugin.ts +8 -0
  195. package/plugins/photos/samples.ts +367 -0
  196. package/plugins/photos/shell.tsx +164 -0
  197. package/plugins/photos/state.ts +88 -0
  198. package/plugins/storage/files.ts +351 -0
  199. package/plugins/storage/overrides/expo-file-system/ExpoFileSystem.ts +770 -0
  200. package/plugins/storage/overrides/expo-file-system/ExponentFileSystem.ts +196 -0
  201. package/plugins/storage/overrides/expo-file-system/overrides.ts +13 -0
  202. package/plugins/storage/overrides/expo-secure-store/ExpoSecureStore.ts +75 -0
  203. package/plugins/storage/overrides/expo-secure-store/overrides.ts +9 -0
  204. package/plugins/storage/plugin.ts +8 -0
  205. package/plugins/storage/reset.ts +136 -0
  206. package/plugins/storage/secure.ts +71 -0
  207. package/plugins/storage/shell.tsx +365 -0
  208. package/plugins/storage/state.ts +13 -0
  209. package/src/client/app/appDocument.ts +113 -0
  210. package/src/client/app/appFocus.ts +97 -0
  211. package/src/client/app/console.ts +118 -0
  212. package/src/client/app/fonts.ts +59 -0
  213. package/src/client/app/main.tsx +99 -0
  214. package/src/client/app/routeContext.ts +45 -0
  215. package/src/client/app/touch.ts +640 -0
  216. package/src/client/entry.ts +20 -0
  217. package/src/client/modules.d.ts +8 -0
  218. package/src/client/react-native/app.ts +57 -0
  219. package/src/client/react-native/deep.ts +13 -0
  220. package/src/client/react-native/keyboard.tsx +192 -0
  221. package/src/client/react-native/library.ts +256 -0
  222. package/src/client/shell/Cookies.tsx +95 -0
  223. package/src/client/shell/LogDrawer.tsx +415 -0
  224. package/src/client/shell/PhotoPicker.tsx +174 -0
  225. package/src/client/shell/PluginOverlays.tsx +42 -0
  226. package/src/client/shell/PluginPanels.tsx +82 -0
  227. package/src/client/shell/ResetApp.tsx +87 -0
  228. package/src/client/shell/Resizer.tsx +99 -0
  229. package/src/client/shell/Shell.tsx +531 -0
  230. package/src/client/shell/SystemBars.tsx +376 -0
  231. package/src/client/shell/SystemCamera.tsx +181 -0
  232. package/src/client/shell/SystemOverlay.tsx +422 -0
  233. package/src/client/shell/SystemSheets.tsx +462 -0
  234. package/src/client/shell/backdrop.ts +229 -0
  235. package/src/client/shell/control.ts +91 -0
  236. package/src/client/shell/events.ts +226 -0
  237. package/src/client/shell/geometry.ts +68 -0
  238. package/src/client/shell/host.ts +492 -0
  239. package/src/client/shell/icons.tsx +34 -0
  240. package/src/client/shell/logFeed.ts +102 -0
  241. package/src/client/shell/main.tsx +22 -0
  242. package/src/client/shell/permissionCopy.ts +169 -0
  243. package/src/client/shell/plugins.ts +266 -0
  244. package/src/client/shell/popout.ts +185 -0
  245. package/src/client/shell/popover.ts +27 -0
  246. package/src/client/shell/shell.css +878 -0
  247. package/src/client/shell/statusTime.ts +31 -0
  248. package/src/client/shell/tooltips.ts +104 -0
  249. package/src/client/virtual.d.ts +21 -0
  250. package/src/devices/catalog.ts +223 -0
  251. package/src/devices/types.ts +83 -0
  252. package/src/node/appInfo.ts +186 -0
  253. package/src/node/appSource.ts +138 -0
  254. package/src/node/config.ts +180 -0
  255. package/src/node/control.ts +144 -0
  256. package/src/node/doctor.ts +199 -0
  257. package/src/node/events/cli.ts +206 -0
  258. package/src/node/events/shared.ts +238 -0
  259. package/src/node/events/store.ts +266 -0
  260. package/src/node/index.ts +5 -0
  261. package/src/node/overrides/define.ts +56 -0
  262. package/src/node/overrides/packages.ts +136 -0
  263. package/src/node/overrides/platformPatch.ts +56 -0
  264. package/src/node/overrides/plugin.ts +166 -0
  265. package/src/node/overrides/registry.ts +258 -0
  266. package/src/node/paths.ts +18 -0
  267. package/src/node/platform.ts +171 -0
  268. package/src/node/plugins.ts +98 -0
  269. package/src/node/proxy.ts +421 -0
  270. package/src/node/server.ts +253 -0
  271. package/src/plugin/index.ts +33 -0
  272. package/src/plugin/types.ts +127 -0
  273. package/src/plugin/ui.tsx +562 -0
  274. package/src/runtime/clock.ts +112 -0
  275. package/src/runtime/draw.ts +196 -0
  276. package/src/runtime/index.ts +513 -0
  277. package/src/runtime/media.ts +379 -0
  278. package/src/runtime/records.ts +76 -0
  279. package/src/runtime/timezone.ts +81 -0
@@ -0,0 +1,878 @@
1
+ :root {
2
+ --ws-bg: #f1f1f3;
3
+ --ws-stage: radial-gradient(circle at 50% 40%, #ffffff 0%, #e9e9ec 70%);
4
+ --ws-toolbar: rgba(255, 255, 255, 0.82);
5
+ --ws-border: rgba(0, 0, 0, 0.08);
6
+ --ws-text: #1c1c1e;
7
+ --ws-muted: #6e6e73;
8
+ --ws-hover: rgba(0, 0, 0, 0.06);
9
+ --ws-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35), 0 12px 24px -12px rgba(0, 0, 0, 0.25);
10
+ color-scheme: light;
11
+ }
12
+
13
+ @media (prefers-color-scheme: dark) {
14
+ :root {
15
+ --ws-bg: #141416;
16
+ --ws-stage: radial-gradient(circle at 50% 40%, #26262a 0%, #141416 70%);
17
+ --ws-toolbar: rgba(28, 28, 31, 0.85);
18
+ --ws-border: rgba(255, 255, 255, 0.08);
19
+ --ws-text: #f2f2f7;
20
+ --ws-muted: #98989f;
21
+ --ws-hover: rgba(255, 255, 255, 0.08);
22
+ --ws-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
23
+ color-scheme: dark;
24
+ }
25
+ }
26
+
27
+ html, body, #root { height: 100%; margin: 0; }
28
+ /* The shell is exactly the window: only its regions (stage, panels, log) scroll, never the page. */
29
+ html, body { overflow: hidden; }
30
+
31
+ body {
32
+ background: var(--ws-bg);
33
+ color: var(--ws-text);
34
+ font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
35
+ -webkit-font-smoothing: antialiased;
36
+ }
37
+
38
+ .ws-shell { display: flex; flex-direction: column; height: 100%; }
39
+
40
+ .ws-toolbar {
41
+ display: grid;
42
+ grid-template-columns: 1fr auto 1fr;
43
+ align-items: center;
44
+ height: 52px;
45
+ padding: 0 16px;
46
+ box-sizing: border-box;
47
+ background: var(--ws-toolbar);
48
+ border-bottom: 1px solid var(--ws-border);
49
+ backdrop-filter: blur(20px);
50
+ position: relative;
51
+ z-index: 1;
52
+ }
53
+
54
+ .ws-toolbar-title { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
55
+ .ws-toolbar-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
56
+ .ws-toolbar-controls { display: flex; align-items: center; gap: 4px; }
57
+ .ws-toolbar-meta { color: var(--ws-muted); font-variant-numeric: tabular-nums; }
58
+ .ws-toolbar-end { justify-self: end; display: flex; align-items: center; gap: 12px; min-width: 0; }
59
+ .ws-toolbar-group { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--ws-border); }
60
+ .ws-toolbar-group .ws-icon-button { width: 28px; height: 28px; }
61
+
62
+ /* The toolbar's popovers (Cookies.tsx): a card under their button, right-aligned. */
63
+ .ws-popover-anchor { position: relative; display: flex; }
64
+ .ws-popover {
65
+ position: absolute;
66
+ top: calc(100% + 8px);
67
+ right: 0;
68
+ z-index: 10;
69
+ width: 300px;
70
+ max-height: 60vh;
71
+ overflow-y: auto;
72
+ padding: 8px;
73
+ border-radius: 12px;
74
+ background: var(--ws-bg);
75
+ border: 1px solid var(--ws-border);
76
+ box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.3);
77
+ color: var(--ws-text);
78
+ font-variant-numeric: normal;
79
+ }
80
+ .ws-popover-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px; }
81
+ .ws-popover-title { font-size: 11px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--ws-muted); }
82
+ .ws-popover-empty { padding: 8px 4px; color: var(--ws-muted); }
83
+ .ws-cookie-list { list-style: none; margin: 0; padding: 0; }
84
+ .ws-cookie-list li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-top: 1px solid var(--ws-border); }
85
+ .ws-cookie-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
86
+ .ws-cookie-domain { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
87
+ .ws-cookie-count { margin-left: 4px; padding: 0 5px; border-radius: 4px; background: var(--ws-hover); color: var(--ws-muted); font-size: 11px; }
88
+ .ws-cookie-names { color: var(--ws-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
89
+ .ws-cookie-clear { flex: none; width: 26px; height: 26px; color: var(--ws-muted); }
90
+ .ws-reset { width: 280px; }
91
+ .ws-reset-stores { display: flex; flex-direction: column; }
92
+ .ws-reset-store { display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; border-radius: 6px; cursor: pointer; }
93
+ .ws-reset-store:hover { background: var(--ws-hover); }
94
+ .ws-reset-store input { margin: 2px 0 0; accent-color: #0a84ff; }
95
+ .ws-reset-text { display: flex; flex-direction: column; min-width: 0; }
96
+ .ws-reset-detail { color: var(--ws-muted); font-size: 12px; }
97
+ .ws-reset-note { margin: 6px 4px 8px; color: var(--ws-muted); font-size: 12px; }
98
+ .ws-text-button.ws-danger-button { width: 100%; background: #ff3b30; border-color: transparent; color: #fff; }
99
+ .ws-text-button.ws-danger-button:hover:not(:disabled) { background: #e5352b; }
100
+ .ws-divider { width: 1px; height: 20px; background: var(--ws-border); margin: 0 6px; }
101
+
102
+ .ws-select {
103
+ height: 30px;
104
+ padding: 0 28px 0 10px;
105
+ border-radius: 8px;
106
+ border: 1px solid var(--ws-border);
107
+ background: transparent;
108
+ color: inherit;
109
+ font: inherit;
110
+ font-weight: 500;
111
+ cursor: pointer;
112
+ }
113
+
114
+ .ws-icon-button {
115
+ display: grid;
116
+ place-items: center;
117
+ width: 30px;
118
+ height: 30px;
119
+ border: 0;
120
+ border-radius: 8px;
121
+ background: transparent;
122
+ color: inherit;
123
+ cursor: pointer;
124
+ }
125
+ .ws-icon-button:hover:not(:disabled) { background: var(--ws-hover); }
126
+ .ws-icon-button:disabled { opacity: 0.35; cursor: default; }
127
+
128
+ .ws-stage {
129
+ flex: 1;
130
+ display: grid;
131
+ place-items: center;
132
+ overflow: hidden;
133
+ background: var(--ws-stage);
134
+ }
135
+
136
+ .ws-device-slot { position: relative; }
137
+
138
+ .ws-device {
139
+ position: absolute;
140
+ left: 0;
141
+ top: 0;
142
+ flex: none;
143
+ box-shadow: var(--ws-shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), inset 0 0 0 4px rgba(0, 0, 0, 0.25);
144
+ }
145
+
146
+ .ws-button { position: absolute; border-radius: 2px; filter: brightness(0.85); }
147
+ .ws-button-left { left: -3px; width: 4px; }
148
+ .ws-button-right { right: -3px; width: 4px; }
149
+ .ws-button-top { top: -3px; height: 4px; }
150
+ .ws-button-bottom { bottom: -3px; height: 4px; }
151
+
152
+ .ws-home-button {
153
+ position: absolute;
154
+ border-radius: 50%;
155
+ box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
156
+ }
157
+
158
+ .ws-screen { position: absolute; overflow: hidden; isolation: isolate; }
159
+ .ws-app-frame { display: block; border: 0; background: transparent; }
160
+ /* A plugin's screen effect that keeps presses from the app (a locked, black screen). */
161
+ .ws-screen-block { position: absolute; inset: 0; z-index: 100; }
162
+
163
+ .ws-plugin-overlays { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
164
+ .ws-system { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
165
+ /* In its default style iOS's status bar follows the content under it, easing between dark and light. */
166
+ .ws-system[data-adaptive] .ws-status { transition: color 0.3s ease; }
167
+
168
+ .ws-status { position: absolute; top: 0; left: 0; right: 0; }
169
+ .ws-status-time { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.2px; }
170
+ /* A cluster of the iOS status bar, centred on its point. */
171
+ .ws-status-cluster { position: absolute; display: flex; align-items: center; white-space: nowrap; transform: translate(-50%, -50%); }
172
+ /* system-ui, not -apple-system: Chrome then picks SF Pro's display optical size, which the status bar's clock uses. */
173
+ .ws-ios-signal { transform: translateY(var(--ws-bars-y, 0)); }
174
+ .ws-ios-battery { transform: translateY(var(--ws-battery-y, 0)); }
175
+ .ws-ios-time { font-family: system-ui, -apple-system, "SF Pro", sans-serif; font-weight: 600; font-variant-numeric: normal; letter-spacing: 0; line-height: 1; }
176
+ .ws-status-side { display: flex; align-items: center; gap: 4px; }
177
+
178
+ .ws-status-classic { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font-size: 12px; }
179
+ .ws-status-classic .ws-status-side { flex: 1; }
180
+ .ws-status-classic .ws-status-right { justify-content: flex-end; }
181
+
182
+ .ws-android-row {
183
+ position: absolute;
184
+ left: 0;
185
+ right: 0;
186
+ height: 20px;
187
+ display: flex;
188
+ align-items: center;
189
+ justify-content: space-between;
190
+ padding: 0 22px 0 26px;
191
+ }
192
+ .ws-android-time { font-family: Roboto, "Google Sans", system-ui, sans-serif; font-weight: 500; font-size: 14px; }
193
+
194
+ .ws-island, .ws-notch, .ws-punch-hole { position: absolute; background: #000; }
195
+ .ws-notch { border-radius: 0 0 20px 20px; }
196
+ /* The notch flares into the screen's top edge with small inward curves. */
197
+ .ws-notch::before, .ws-notch::after { content: ''; position: absolute; top: 0; width: 6px; height: 6px; }
198
+ .ws-notch::before { left: -6px; background: radial-gradient(circle at 0 100%, transparent 5.6px, #000 6px); }
199
+ .ws-notch::after { right: -6px; background: radial-gradient(circle at 100% 100%, transparent 5.6px, #000 6px); }
200
+ .ws-notch-turned { border-radius: 0 20px 20px 0; }
201
+ .ws-notch-turned::before { left: 0; top: -6px; background: radial-gradient(circle at 100% 0, transparent 5.6px, #000 6px); }
202
+ .ws-notch-turned::after { left: 0; right: auto; top: auto; bottom: -6px; background: radial-gradient(circle at 100% 100%, transparent 5.6px, #000 6px); }
203
+ .ws-punch-hole { border-radius: 50%; }
204
+
205
+ .ws-home-indicator {
206
+ position: absolute;
207
+ bottom: 8px;
208
+ left: 50%;
209
+ height: 5px;
210
+ border-radius: 3px;
211
+ transform: translateX(-50%);
212
+ /* iOS eases the indicator's colour as the content under it changes, and fades it out when it auto-hides. */
213
+ transition: background-color 0.3s ease, opacity 0.35s ease;
214
+ }
215
+ .ws-home-indicator[data-hidden] { opacity: 0; }
216
+
217
+ .ws-gesture-bar {
218
+ position: absolute;
219
+ bottom: 9px;
220
+ left: 50%;
221
+ width: 108px;
222
+ height: 4px;
223
+ border-radius: 2px;
224
+ transform: translateX(-50%);
225
+ opacity: 0.85;
226
+ }
227
+
228
+ .ws-nav-buttons { position: absolute; display: flex; justify-content: space-around; align-items: center; pointer-events: auto; }
229
+ .ws-nav-portrait { left: 0; right: 0; bottom: 0; padding: 0 56px; }
230
+ .ws-nav-landscape { top: 0; bottom: 0; right: 0; flex-direction: column-reverse; padding: 56px 0; }
231
+ .ws-nav-button {
232
+ display: grid;
233
+ place-items: center;
234
+ width: 40px;
235
+ height: 40px;
236
+ border: 0;
237
+ border-radius: 50%;
238
+ background: transparent;
239
+ color: inherit;
240
+ opacity: 0.8;
241
+ cursor: pointer;
242
+ }
243
+ .ws-nav-button:hover { background: rgba(127, 127, 127, 0.2); }
244
+
245
+ /* System UI drawn over the app */
246
+ .ws-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; }
247
+ .ws-overlay.ws-android { font-family: Roboto, "Google Sans", system-ui, sans-serif; }
248
+ .ws-overlay > * { pointer-events: auto; }
249
+ .ws-overlay button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
250
+
251
+ .ws-splash { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; }
252
+
253
+ .ws-scrim { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; background: rgba(0, 0, 0, 0.2); animation: ws-fade 0.18s ease; }
254
+ .ws-android .ws-scrim { background: rgba(0, 0, 0, 0.32); }
255
+ .ws-scrim-center { justify-content: center; }
256
+ .ws-scrim-bottom { justify-content: flex-end; }
257
+ .ws-scrim-clear { background: transparent; gap: 16px; }
258
+ @keyframes ws-fade { from { opacity: 0; } }
259
+ @keyframes ws-pop { from { transform: scale(1.1); opacity: 0; } }
260
+ @keyframes ws-rise { from { transform: translateY(100%); } }
261
+
262
+ /* iOS alert */
263
+ .ws-ios-alert {
264
+ width: 270px; border-radius: 14px; overflow: hidden; text-align: center;
265
+ background: rgba(242, 242, 247, 0.82); backdrop-filter: blur(30px) saturate(1.8); color: #000;
266
+ animation: ws-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
267
+ }
268
+ .ws-dark .ws-ios-alert { background: rgba(44, 44, 46, 0.82); color: #fff; }
269
+ .ws-ios-alert-text { padding: 19px 16px 18px; }
270
+ .ws-ios-alert-title { font-size: 17px; font-weight: 600; line-height: 22px; }
271
+ .ws-ios-alert-message { font-size: 13px; line-height: 17px; margin-top: 4px; }
272
+ .ws-ios-alert-input { margin-top: 14px; width: 100%; box-sizing: border-box; padding: 6px 7px; border-radius: 7px; border: 0.5px solid rgba(60,60,67,0.3); font: inherit; font-size: 13px; background: #fff; color: #000; outline: none; }
273
+ .ws-dark .ws-ios-alert-input { background: #1c1c1e; color: #fff; border-color: rgba(84,84,88,0.65); }
274
+ .ws-ios-alert-buttons { display: flex; border-top: 0.5px solid rgba(60, 60, 67, 0.29); }
275
+ .ws-ios-alert-buttons > * + * { border-left: 0.5px solid rgba(60, 60, 67, 0.29) !important; }
276
+ .ws-ios-alert-buttons-stacked { display: flex; flex-direction: column; }
277
+ .ws-ios-alert-buttons-stacked > * { border-top: 0.5px solid rgba(60, 60, 67, 0.29) !important; }
278
+ .ws-ios-alert-button { flex: 1; height: 44px; font-size: 17px !important; color: #007aff !important; }
279
+ .ws-dark .ws-ios-alert-button { color: #0a84ff !important; }
280
+ .ws-ios-alert-button:active { background: rgba(0,0,0,0.06) !important; }
281
+ .ws-bold { font-weight: 600 !important; }
282
+ .ws-destructive { color: #ff3b30 !important; }
283
+
284
+ /* iOS action sheet */
285
+ .ws-ios-sheet { width: calc(100% - 16px); margin-bottom: 34px; display: flex; flex-direction: column; gap: 8px; animation: ws-rise 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); }
286
+ .ws-ios-sheet-group { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: rgba(242, 242, 247, 0.85) !important; backdrop-filter: blur(30px) saturate(1.8); }
287
+ .ws-dark .ws-ios-sheet-group { background: rgba(44, 44, 46, 0.85) !important; }
288
+ .ws-ios-sheet-header { padding: 14px 16px; text-align: center; color: #8a8a8e; font-size: 13px; }
289
+ .ws-ios-sheet-title { font-weight: 600; }
290
+ .ws-ios-sheet-button { height: 57px; font-size: 20px !important; color: #007aff !important; border-top: 0.5px solid rgba(60, 60, 67, 0.29) !important; }
291
+ .ws-ios-sheet-group > .ws-ios-sheet-button:first-child { border-top: 0 !important; }
292
+
293
+ /* Material 3 dialog and sheet */
294
+ .ws-m3-dialog {
295
+ width: min(312px, calc(100% - 48px)); box-sizing: border-box; padding: 24px; border-radius: 28px;
296
+ background: #ece6f0; color: #1d1b20; animation: ws-pop 0.2s ease;
297
+ }
298
+ .ws-dark .ws-m3-dialog, .ws-dark .ws-m3-sheet { background: #2b2930; color: #e6e0e9; }
299
+ .ws-m3-permission { text-align: center; }
300
+ .ws-m3-permission-icon { color: #6750a4; font-size: 22px; margin-bottom: 12px; }
301
+ .ws-m3-title { font-size: 24px; line-height: 32px; margin-bottom: 16px; }
302
+ .ws-m3-permission .ws-m3-title { font-size: 20px; line-height: 28px; }
303
+ .ws-m3-message { font-size: 14px; line-height: 20px; color: #49454f; letter-spacing: 0.25px; }
304
+ .ws-dark .ws-m3-message { color: #cac4d0; }
305
+ .ws-m3-input { width: 100%; box-sizing: border-box; margin-top: 16px; padding: 14px 16px; border: 1px solid #79747e; border-radius: 4px; font: inherit; font-size: 16px; background: transparent; color: inherit; outline-color: #6750a4; }
306
+ .ws-m3-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
307
+ .ws-m3-actions-stacked { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
308
+ .ws-m3-actions-stacked .ws-m3-button { background: rgba(103, 80, 164, 0.12) !important; height: 48px; border-radius: 24px; }
309
+ .ws-m3-button { height: 40px; padding: 0 12px !important; border-radius: 20px; font-size: 14px !important; font-weight: 500 !important; letter-spacing: 0.1px; color: #6750a4 !important; }
310
+ .ws-dark .ws-m3-button { color: #d0bcff !important; }
311
+ .ws-m3-button:hover { background: rgba(103, 80, 164, 0.08) !important; }
312
+ .ws-m3-sheet { width: 100%; box-sizing: border-box; padding: 8px 24px 40px; border-radius: 28px 28px 0 0; background: #f7f2fa; color: #1d1b20; animation: ws-rise 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); }
313
+ .ws-m3-sheet-handle { width: 32px; height: 4px; border-radius: 2px; background: #79747e; margin: 14px auto 18px; opacity: 0.5; }
314
+ .ws-m3-sheet-title { font-size: 22px; line-height: 28px; margin-bottom: 8px; }
315
+ .ws-m3-sheet-item { display: block; width: 100%; text-align: left; height: 56px; font-size: 16px !important; }
316
+ .ws-biometric-sheet { text-align: center; padding-top: 32px; }
317
+ .ws-fingerprint { width: 64px; height: 64px; margin: 24px auto 12px; border-radius: 50%; display: grid; place-items: center; color: #6750a4; background: rgba(103, 80, 164, 0.12); }
318
+
319
+ /* Face ID */
320
+ .ws-faceid { width: 160px; height: 160px; border-radius: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(200, 200, 205, 0.7); backdrop-filter: blur(30px); color: #1c1c1e; font-size: 15px; font-weight: 500; animation: ws-pop 0.25s ease; }
321
+ .ws-dark .ws-faceid { background: rgba(60, 60, 64, 0.7); color: #fff; }
322
+
323
+ /* The simulator's own controls, styled apart from the OS */
324
+ .ws-sim-controls { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
325
+ .ws-sim-controls button { padding: 6px 10px !important; border-radius: 999px; background: #1f6feb !important; color: #fff !important; font: 600 11px/1.2 -apple-system, system-ui, sans-serif !important; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
326
+ .ws-sim-controls button + button { background: #3d3d42 !important; }
327
+
328
+ /* Notification banners */
329
+ .ws-banners { position: absolute; left: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
330
+ .ws-banner { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px !important; animation: ws-drop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
331
+ @keyframes ws-drop { from { transform: translateY(-120%); opacity: 0; } }
332
+ .ws-banner-ios { border-radius: 24px; background: rgba(245, 245, 247, 0.78) !important; backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 8px 30px rgba(0,0,0,0.18); color: #000 !important; }
333
+ .ws-dark .ws-banner-ios { background: rgba(40, 40, 42, 0.78) !important; color: #fff !important; }
334
+ .ws-banner-android { border-radius: 24px; background: #f3edf7 !important; box-shadow: 0 4px 16px rgba(0,0,0,0.18); color: #1d1b20 !important; }
335
+ .ws-dark .ws-banner-android { background: #2b2930 !important; color: #e6e0e9 !important; }
336
+ .ws-banner-icon { width: 38px; height: 38px; border-radius: 9px; background: #8e8e93; flex: none; object-fit: cover; }
337
+ .ws-banner-android .ws-banner-icon { width: 24px; height: 24px; border-radius: 50%; }
338
+ .ws-banner-text { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 15px; line-height: 20px; }
339
+ .ws-banner-meta { display: flex; justify-content: space-between; font-weight: 600; }
340
+ .ws-banner-android .ws-banner-meta { font-weight: 400; font-size: 12px; opacity: 0.75; }
341
+ .ws-banner-time { font-weight: 400; opacity: 0.5; font-size: 13px; }
342
+ .ws-banner-title { font-weight: 600; }
343
+ .ws-banner-body { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
344
+
345
+ .ws-stage { position: relative; }
346
+ .ws-ios-sheet-button.ws-destructive, .ws-m3-sheet-item.ws-destructive { color: #ff3b30 !important; }
347
+ .ws-ios-sheet > button.ws-ios-sheet-group { justify-content: center; align-items: center; }
348
+
349
+ /* System sheets: the store's rating prompt, the share sheet, compose sheets (SystemSheets.tsx) */
350
+ .ws-sheet-app-icon { display: block; flex: none; background: #8e8e93; object-fit: cover; }
351
+ .ws-review-ios .ws-sheet-app-icon { margin: 0 auto 12px; }
352
+ .ws-overlay .ws-review-stars { display: flex; justify-content: center; gap: 4px; padding: 8px 0 12px; color: #007aff; }
353
+ .ws-overlay .ws-review-stars button { display: grid; place-items: center; padding: 2px; color: inherit; }
354
+ .ws-dark .ws-review-ios .ws-review-stars { color: #0a84ff; }
355
+ .ws-review-play { padding-top: 24px; }
356
+ .ws-review-play-app { display: flex; align-items: center; gap: 12px; font-size: 16px; margin-bottom: 20px; }
357
+ .ws-overlay .ws-review-play .ws-review-stars { justify-content: space-between; padding: 24px 8px 8px; color: #01875f; }
358
+ .ws-dark .ws-review-play .ws-review-stars { color: #6dd58c; }
359
+ .ws-review-play-text { height: 88px; resize: none; }
360
+ .ws-overlay .ws-m3-filled { background: #6750a4; color: #fff !important; padding: 0 24px !important; }
361
+ .ws-dark .ws-m3-filled { background: #d0bcff; color: #381e72 !important; }
362
+ .ws-overlay .ws-m3-filled:disabled { opacity: 0.38; cursor: default; }
363
+
364
+ .ws-share-ios { width: 100%; box-sizing: border-box; padding-bottom: 34px; border-radius: 14px 14px 0 0; background: #f2f2f7; color: #000; animation: ws-rise 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); }
365
+ .ws-dark .ws-share-ios { background: #1c1c1e; color: #fff; }
366
+ .ws-share-ios-header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 0.5px solid rgba(60, 60, 67, 0.29); }
367
+ .ws-share-thumb { width: 44px; height: 44px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #fff; color: #8e8e93; }
368
+ .ws-dark .ws-share-thumb { background: #2c2c2e; }
369
+ .ws-share-what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
370
+ .ws-share-name, .ws-share-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
371
+ .ws-share-name { font-size: 15px; font-weight: 600; }
372
+ .ws-share-detail { font-size: 13px; color: #8a8a8e; }
373
+ .ws-overlay .ws-share-close { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(118, 118, 128, 0.12); color: #8a8a8e; }
374
+ .ws-share-ios-targets { display: flex; gap: 12px; padding: 18px 16px; overflow-x: auto; }
375
+ .ws-overlay .ws-share-target { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; flex: none; font-size: 12px; }
376
+ .ws-share-target-icon { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
377
+ .ws-share-ios-actions { margin: 0 16px; border-radius: 12px; overflow: hidden; background: #fff; }
378
+ .ws-dark .ws-share-ios-actions { background: #2c2c2e; }
379
+ .ws-overlay .ws-share-ios-actions button { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 50px; padding: 0 16px; font-size: 17px; border-top: 0.5px solid rgba(60, 60, 67, 0.2); }
380
+ .ws-overlay .ws-share-ios-actions button:first-child { border-top: 0; }
381
+ .ws-share-android { padding-bottom: 32px; }
382
+ .ws-share-android-title { font-size: 16px; text-align: center; margin-bottom: 12px; }
383
+ .ws-share-android-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; }
384
+ .ws-dark .ws-share-android-preview { background: #1d1b20; }
385
+ .ws-share-android-preview .ws-share-thumb { background: #ece6f0; color: #49454f; }
386
+ .ws-overlay .ws-share-copy { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(103, 80, 164, 0.12); color: #6750a4; }
387
+ .ws-dark .ws-share-copy { color: #d0bcff !important; }
388
+ .ws-share-android-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 0; margin-top: 24px; }
389
+ .ws-overlay .ws-share-android .ws-share-target { width: auto; }
390
+ .ws-share-android .ws-share-target-icon { width: 52px; height: 52px; border-radius: 50%; }
391
+
392
+ .ws-compose { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; box-sizing: border-box; background: #fff; color: #000; font-size: 15px; }
393
+ .ws-dark .ws-compose { background: #1c1c1e; color: #fff; }
394
+ .ws-compose-ios { padding-bottom: 34px; border-radius: 10px 10px 0 0; box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15); animation: ws-rise 0.35s cubic-bezier(0.2, 0.9, 0.3, 1); }
395
+ .ws-compose-ios-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; padding: 0 16px; flex: none; }
396
+ .ws-compose-ios-nav > :first-child { justify-self: start; }
397
+ .ws-compose-ios-nav > :last-child { justify-self: end; }
398
+ .ws-compose-ios-title { font-size: 17px; font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
399
+ .ws-overlay .ws-compose-ios-link { font-size: 17px; color: #007aff; }
400
+ .ws-dark .ws-compose-ios-link { color: #0a84ff !important; }
401
+ .ws-compose-row { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 16px; box-sizing: border-box; flex: none; border-bottom: 0.5px solid rgba(60, 60, 67, 0.2); }
402
+ .ws-compose-label { color: #8a8a8e; }
403
+ .ws-compose-recipients { display: flex; flex-wrap: wrap; gap: 4px; }
404
+ .ws-compose-chip { padding: 2px 8px; border-radius: 12px; background: rgba(0, 122, 255, 0.12); color: #007aff; }
405
+ .ws-compose-input, .ws-compose-body, .ws-compose textarea { border: 0; outline: 0; font: inherit; background: transparent; color: inherit; resize: none; }
406
+ .ws-compose-input { flex: 1; min-width: 0; }
407
+ .ws-compose-body { flex: 1; padding: 12px 16px; }
408
+ .ws-compose-thread { flex: 1; }
409
+ .ws-compose-attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px; flex: none; }
410
+ .ws-compose-attachment { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; background: rgba(120, 120, 128, 0.12); font-size: 12px; }
411
+ .ws-compose-ios-bar { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 4px; flex: none; }
412
+ .ws-compose-ios-plus { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(120, 120, 128, 0.16); color: #8a8a8e; }
413
+ .ws-compose-ios-field { flex: 1; display: flex; align-items: flex-end; min-height: 34px; box-sizing: border-box; padding: 3px 3px 3px 12px; border: 1px solid rgba(60, 60, 67, 0.29); border-radius: 17px; }
414
+ .ws-compose-ios-field textarea { flex: 1; font-size: 16px; line-height: 22px; padding: 3px 0; max-height: 110px; field-sizing: content; }
415
+ .ws-overlay .ws-compose-ios-send { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #007aff; color: #fff; }
416
+ .ws-overlay .ws-compose-ios-send-large { width: 32px; height: 32px; }
417
+ .ws-overlay .ws-compose-ios-send:disabled { opacity: 0.35; cursor: default; }
418
+ .ws-compose-android { top: 0; background: #fff; animation: ws-fade 0.2s ease; font-size: 16px; }
419
+ .ws-dark .ws-compose-android { background: #141218; }
420
+ .ws-compose-android .ws-compose-row { border-bottom-color: #e0e0e0; min-height: 52px; }
421
+ .ws-dark .ws-compose-android .ws-compose-row { border-bottom-color: #2c2c2c; }
422
+ .ws-compose-android .ws-compose-chip { background: none; color: inherit; border: 1px solid #c4c7c5; border-radius: 8px; padding: 3px 10px; }
423
+ .ws-compose-android-bar { display: flex; align-items: center; gap: 4px; height: 64px; padding: 0 4px; flex: none; }
424
+ .ws-compose-android-title { flex: 1; font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
425
+ .ws-overlay .ws-compose-android-icon { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; }
426
+ .ws-overlay .ws-compose-android-icon:disabled, .ws-overlay .ws-compose-android-send:disabled { opacity: 0.38; cursor: default; }
427
+ .ws-compose-android-input { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 12px; flex: none; }
428
+ .ws-compose-android-field { flex: 1; display: flex; border-radius: 24px; background: #e9eef6; }
429
+ .ws-dark .ws-compose-android-field { background: #2b2930; }
430
+ .ws-compose-android-field textarea { flex: 1; padding: 13px 18px; line-height: 22px; max-height: 120px; field-sizing: content; }
431
+ .ws-overlay .ws-compose-android-send { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #0b57d0; color: #fff; }
432
+
433
+ /* Plugin panels: the side panel and the controls in web-sim/shell's ui.tsx. */
434
+
435
+ .ws-body { flex: 1; display: flex; min-height: 0; }
436
+ .ws-body .ws-stage { min-width: 0; }
437
+ .ws-icon-button[aria-pressed="true"] { background: var(--ws-hover); }
438
+
439
+ .ws-panels {
440
+ position: relative;
441
+ width: 300px;
442
+ flex: none;
443
+ overflow-y: auto;
444
+ background: var(--ws-toolbar);
445
+ border-left: 1px solid var(--ws-border);
446
+ box-sizing: border-box;
447
+ }
448
+
449
+ .ws-panel { border-bottom: 1px solid var(--ws-border); }
450
+ .ws-panel-head { display: flex; align-items: center; padding: 4px 8px 4px 4px; }
451
+ .ws-panel-title {
452
+ flex: 1;
453
+ display: flex;
454
+ align-items: center;
455
+ gap: 6px;
456
+ height: 32px;
457
+ padding: 0 6px;
458
+ border: 0;
459
+ border-radius: 8px;
460
+ background: transparent;
461
+ color: inherit;
462
+ font: inherit;
463
+ font-weight: 600;
464
+ cursor: pointer;
465
+ text-align: left;
466
+ }
467
+ .ws-panel-title:hover { background: var(--ws-hover); }
468
+ .ws-panel-chevron { color: var(--ws-muted); transition: transform 0.15s ease; }
469
+ .ws-panel-chevron-open { transform: rotate(90deg); }
470
+ .ws-panel-reset { width: 26px; height: 26px; color: var(--ws-muted); }
471
+ .ws-panel-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 16px; }
472
+
473
+ .wsp-field { display: flex; flex-direction: column; gap: 6px; }
474
+ .wsp-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
475
+ .wsp-label { color: var(--ws-muted); font-size: 12px; }
476
+ .wsp-value { font-variant-numeric: tabular-nums; font-weight: 500; }
477
+
478
+ .wsp-slider { width: 100%; margin: 0; accent-color: #0a84ff; }
479
+
480
+ .wsp-toggle { position: relative; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
481
+ .wsp-toggle input { position: absolute; opacity: 0; pointer-events: none; }
482
+ .wsp-switch {
483
+ width: 32px;
484
+ height: 18px;
485
+ border-radius: 9px;
486
+ background: var(--ws-border);
487
+ position: relative;
488
+ transition: background 0.15s ease;
489
+ box-shadow: inset 0 0 0 1px var(--ws-border);
490
+ }
491
+ .wsp-switch::after {
492
+ content: '';
493
+ position: absolute;
494
+ top: 2px;
495
+ left: 2px;
496
+ width: 14px;
497
+ height: 14px;
498
+ border-radius: 50%;
499
+ background: #fff;
500
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
501
+ transition: transform 0.15s ease;
502
+ }
503
+ .wsp-toggle input:checked + .wsp-switch { background: #34c759; }
504
+ .wsp-toggle input:checked + .wsp-switch::after { transform: translateX(14px); }
505
+ .wsp-toggle input:focus-visible + .wsp-switch { outline: 2px solid #0a84ff; outline-offset: 2px; }
506
+
507
+ .wsp-segmented { display: flex; padding: 2px; border-radius: 8px; background: var(--ws-hover); }
508
+ .wsp-segment {
509
+ flex: 1;
510
+ height: 26px;
511
+ border: 0;
512
+ border-radius: 6px;
513
+ background: transparent;
514
+ color: inherit;
515
+ font: inherit;
516
+ font-size: 12px;
517
+ cursor: pointer;
518
+ }
519
+ .wsp-segment-on { background: var(--ws-bg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); font-weight: 600; }
520
+
521
+ .wsp-select, .wsp-input {
522
+ width: 100%;
523
+ height: 30px;
524
+ box-sizing: border-box;
525
+ padding: 0 8px;
526
+ border-radius: 8px;
527
+ border: 1px solid var(--ws-border);
528
+ background: transparent;
529
+ color: inherit;
530
+ font: inherit;
531
+ }
532
+ .wsp-textarea { height: 72px; padding: 6px 8px; resize: vertical; }
533
+
534
+ .wsp-row { display: flex; gap: 6px; flex-wrap: wrap; }
535
+ .wsp-button {
536
+ height: 28px;
537
+ padding: 0 10px;
538
+ border-radius: 8px;
539
+ border: 1px solid var(--ws-border);
540
+ background: transparent;
541
+ color: inherit;
542
+ font: inherit;
543
+ font-size: 12px;
544
+ font-weight: 500;
545
+ cursor: pointer;
546
+ }
547
+ .wsp-button:hover { background: var(--ws-hover); }
548
+ .wsp-button-on { background: var(--ws-hover); font-weight: 600; }
549
+
550
+ .wsp-number { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
551
+ .wsp-number .wsp-label { flex: none; }
552
+ .wsp-number .wsp-input { min-width: 0; height: 26px; padding: 0 6px; font-variant-numeric: tabular-nums; font-size: 12px; }
553
+ .wsp-unit { color: var(--ws-muted); font-size: 12px; flex: none; }
554
+ .wsp-row > .wsp-number { flex: 1 1 calc(50% - 3px); }
555
+
556
+ .wsp-progress { height: 4px; border-radius: 2px; background: var(--ws-hover); overflow: hidden; }
557
+ .wsp-progress-fill { height: 100%; background: #0a84ff; transition: width 0.3s linear; }
558
+
559
+ .wsp-readout { display: grid; grid-template-columns: 1fr; gap: 2px 12px; margin: 0; font-size: 11px; }
560
+ .wsp-readout-2 { grid-template-columns: 1fr 1fr; }
561
+ .wsp-readout-row { display: flex; justify-content: space-between; gap: 6px; min-width: 0; }
562
+ .wsp-readout-row .wsp-label { font-size: 11px; }
563
+ .wsp-readout dd { margin: 0; font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
564
+
565
+ .wsp-button:disabled, .wsp-icon-button:disabled { opacity: 0.4; cursor: default; }
566
+ .wsp-button:disabled:hover { background: transparent; }
567
+
568
+ .wsp-icon-button {
569
+ width: 24px;
570
+ height: 24px;
571
+ display: inline-grid;
572
+ place-items: center;
573
+ flex: none;
574
+ padding: 0;
575
+ border: 0;
576
+ border-radius: 6px;
577
+ background: transparent;
578
+ color: var(--ws-muted);
579
+ cursor: pointer;
580
+ }
581
+ .wsp-icon-button:hover:not(:disabled) { background: var(--ws-hover); color: var(--ws-text); }
582
+
583
+ .wsp-empty { color: var(--ws-muted); font-size: 12px; padding: 2px 0; }
584
+ .wsp-badge {
585
+ margin-left: 6px;
586
+ padding: 1px 5px;
587
+ border-radius: 4px;
588
+ background: var(--ws-hover);
589
+ color: var(--ws-muted);
590
+ font-size: 10px;
591
+ font-weight: 600;
592
+ vertical-align: 1px;
593
+ }
594
+
595
+ .wsp-thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
596
+ .wsp-thumbnail { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--ws-hover); }
597
+ .wsp-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
598
+ .wsp-thumbnail-badge {
599
+ position: absolute;
600
+ left: 3px;
601
+ bottom: 3px;
602
+ padding: 0 4px;
603
+ border-radius: 4px;
604
+ background: rgba(0, 0, 0, 0.6);
605
+ color: #fff;
606
+ font-size: 9px;
607
+ font-weight: 600;
608
+ line-height: 14px;
609
+ }
610
+ .wsp-thumbnail-remove {
611
+ position: absolute;
612
+ top: 3px;
613
+ right: 3px;
614
+ width: 18px;
615
+ height: 18px;
616
+ display: grid;
617
+ place-items: center;
618
+ padding: 0;
619
+ border: 0;
620
+ border-radius: 50%;
621
+ background: rgba(0, 0, 0, 0.6);
622
+ color: #fff;
623
+ font-size: 13px;
624
+ line-height: 1;
625
+ cursor: pointer;
626
+ opacity: 0;
627
+ transition: opacity 0.1s ease;
628
+ }
629
+ .wsp-thumbnail:hover .wsp-thumbnail-remove, .wsp-thumbnail-remove:focus-visible { opacity: 1; }
630
+
631
+ .wsp-list { display: flex; flex-direction: column; margin: 0 -6px; max-height: 340px; overflow-y: auto; }
632
+ .wsp-item { border-radius: 8px; }
633
+ .wsp-item-selected { background: var(--ws-hover); }
634
+ .wsp-item-row { display: flex; align-items: center; gap: 2px; padding-right: 4px; }
635
+ .wsp-item-main {
636
+ flex: 1;
637
+ min-width: 0;
638
+ display: flex;
639
+ align-items: center;
640
+ gap: 6px;
641
+ padding: 5px 6px;
642
+ border: 0;
643
+ border-radius: 8px;
644
+ background: transparent;
645
+ color: inherit;
646
+ font: inherit;
647
+ text-align: left;
648
+ cursor: pointer;
649
+ }
650
+ .wsp-item-main:disabled { cursor: default; }
651
+ .wsp-item-main:hover:not(:disabled) { background: var(--ws-hover); }
652
+ .wsp-item-title, .wsp-item-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
653
+ .wsp-item-detail { color: var(--ws-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
654
+ .wsp-item-actions { display: flex; align-items: center; }
655
+ .wsp-item-body { display: flex; flex-direction: column; gap: 6px; padding: 2px 6px 8px; }
656
+ .wsp-item-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
657
+ .wsp-item-lead { display: grid; place-items: center; width: 12px; flex: none; color: var(--ws-muted); }
658
+ .wsp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
659
+ .wsp-tree-chevron { transition: transform 0.15s ease; }
660
+ .wsp-tree-chevron-open { transform: rotate(90deg); }
661
+ .wsp-tree-leaf { width: 4px; height: 4px; border-radius: 50%; background: var(--ws-border); }
662
+
663
+ .wsp-section { display: flex; flex-direction: column; gap: 6px; }
664
+ .wsp-section + .wsp-section { padding-top: 4px; }
665
+ .wsp-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
666
+ .wsp-section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ws-muted); }
667
+ .wsp-actions { display: flex; align-items: center; gap: 2px; flex: none; }
668
+ .wsp-actions .wsp-select { width: 112px; height: 26px; font-size: 12px; }
669
+ .wsp-image { display: block; min-width: 48px; min-height: 48px; max-width: calc(100% - 32px); max-height: 160px; object-fit: contain; align-self: flex-start; border-radius: 6px; border: 1px solid var(--ws-border); background: repeating-conic-gradient(var(--ws-hover) 0 25%, transparent 0 50%) 0 0 / 12px 12px; }
670
+ .wsp-copyable { display: flex; align-items: flex-start; gap: 4px; padding: 6px 4px 6px 8px; border: 1px solid var(--ws-border); border-radius: 8px; }
671
+ .wsp-copyable-value { flex: 1; min-width: 0; word-break: break-all; line-height: 1.4; padding-top: 3px; user-select: all; }
672
+ .wsp-code {
673
+ margin: 0;
674
+ max-height: 180px;
675
+ overflow: auto;
676
+ padding: 8px;
677
+ border-radius: 8px;
678
+ background: var(--ws-hover);
679
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
680
+ font-size: 11px;
681
+ line-height: 1.45;
682
+ white-space: pre-wrap;
683
+ word-break: break-word;
684
+ }
685
+
686
+ .wsp-log { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; list-style: none; font-size: 12px; }
687
+ .wsp-log li { display: flex; gap: 8px; min-width: 0; }
688
+ .wsp-log time { color: var(--ws-muted); font-variant-numeric: tabular-nums; flex: none; }
689
+ .wsp-log span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
690
+ /* Photo picker, system camera and Touch ID */
691
+ .ws-picker { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; overflow: hidden; animation: ws-rise 0.32s cubic-bezier(0.2, 0.9, 0.3, 1); }
692
+ .ws-picker-ios { border-radius: 12px 12px 0 0; background: #fff; color: #000; }
693
+ .ws-dark .ws-picker-ios { background: #1c1c1e; color: #fff; }
694
+ .ws-picker-android { border-radius: 28px 28px 0 0; background: #f7f2fa; color: #1d1b20; }
695
+ .ws-dark .ws-picker-android { background: #211f26; color: #e6e0e9; }
696
+ .ws-picker-android .ws-m3-sheet-handle { margin: 10px auto 4px; }
697
+ .ws-picker-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 12px; flex: none; }
698
+ .ws-picker-bar > :last-child { justify-self: end; }
699
+ .ws-picker-text { font-size: 17px !important; color: #007aff !important; min-width: 44px; text-align: left; padding: 4px !important; }
700
+ .ws-dark .ws-picker-text { color: #0a84ff !important; }
701
+ .ws-picker-text:disabled { color: rgba(60, 60, 67, 0.3) !important; cursor: default; }
702
+ .ws-dark .ws-picker-text:disabled { color: rgba(235, 235, 245, 0.3) !important; }
703
+ .ws-picker-segments { display: flex; padding: 2px; border-radius: 9px; background: rgba(118, 118, 128, 0.12); }
704
+ .ws-picker-segments button { padding: 4px 14px !important; border-radius: 7px; font-size: 13px !important; font-weight: 500 !important; }
705
+ .ws-picker-segments .ws-on { background: #fff !important; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); }
706
+ .ws-dark .ws-picker-segments .ws-on { background: #636366 !important; }
707
+ .ws-picker-chips { display: flex; gap: 8px; }
708
+ .ws-picker-chips button { height: 32px; padding: 0 16px !important; border-radius: 8px; border: 1px solid #79747e !important; font-size: 14px !important; font-weight: 500 !important; }
709
+ .ws-picker-chips .ws-on { background: #e8def8 !important; border-color: transparent !important; }
710
+ .ws-dark .ws-picker-chips .ws-on { background: #4a4458 !important; }
711
+ .ws-picker-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
712
+ .ws-picker-scroll { flex: 1; overflow-y: auto; }
713
+ .ws-picker-section { padding: 8px 16px 10px; font-size: 14px; font-weight: 500; }
714
+ .ws-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
715
+ .ws-picker-android .ws-picker-grid { gap: 3px; padding: 0 12px 12px; }
716
+ .ws-picker-cell { position: relative; aspect-ratio: 1; padding: 0 !important; overflow: hidden; }
717
+ .ws-picker-android .ws-picker-cell { border-radius: 4px; }
718
+ .ws-picker-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.15s ease; }
719
+ .ws-picker-ios .ws-picker-selected img { opacity: 0.75; }
720
+ .ws-picker-android .ws-picker-selected img { transform: scale(0.86); border-radius: 12px; }
721
+ .ws-picker-badge { position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #fff; box-shadow: 0 0 2px rgba(0, 0, 0, 0.4); color: #fff; font-size: 12px; font-weight: 600; }
722
+ .ws-picker-selected .ws-picker-badge { background: #007aff; }
723
+ .ws-picker-android .ws-picker-badge { right: auto; bottom: auto; left: 8px; top: 8px; }
724
+ .ws-picker-android .ws-picker-selected .ws-picker-badge { background: #6750a4; }
725
+ .ws-picker-empty { display: grid; place-items: center; height: 60%; font-size: 20px; font-weight: 600; opacity: 0.4; }
726
+ .ws-picker-albums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 12px 16px; }
727
+ .ws-picker-album { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 0 !important; }
728
+ .ws-picker-album-cover { width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: rgba(120, 120, 128, 0.16); margin-bottom: 6px; }
729
+ .ws-picker-android .ws-picker-album-cover { border-radius: 16px; }
730
+ .ws-picker-album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
731
+ .ws-picker-album-title { font-size: 15px; }
732
+ .ws-picker-album-count { font-size: 13px; opacity: 0.55; }
733
+ .ws-picker-status { flex: none; padding: 10px 0 30px; text-align: center; font-size: 13px; font-weight: 600; border-top: 0.5px solid rgba(60, 60, 67, 0.2); }
734
+ .ws-picker-footer { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 28px; }
735
+ .ws-picker-count { font-size: 14px; }
736
+ .ws-picker-add { height: 40px; padding: 0 24px !important; border-radius: 20px; background: #6750a4 !important; color: #fff !important; font-size: 14px !important; font-weight: 500 !important; }
737
+ .ws-dark .ws-picker-add { background: #d0bcff !important; color: #381e72 !important; }
738
+
739
+ .ws-camera { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; color: #fff; animation: ws-rise 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); }
740
+ .ws-camera button { color: #fff !important; }
741
+ .ws-camera-view { position: relative; flex: 1; overflow: hidden; }
742
+ .ws-camera-ios .ws-camera-view { flex: none; aspect-ratio: 3 / 4; }
743
+ .ws-camera-feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
744
+ .ws-camera-shutter { position: absolute; inset: 0; background: #000; animation: ws-shutter 0.25s ease forwards; pointer-events: none; }
745
+ @keyframes ws-shutter { from { opacity: 1; } to { opacity: 0; } }
746
+ .ws-camera-top { flex: 1; min-height: 44px; display: flex; align-items: flex-end; padding: 0 16px 8px; }
747
+ .ws-camera-flash { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.12) !important; }
748
+ .ws-camera-bottom { flex: 1.4; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-bottom: 24px; }
749
+ .ws-camera-mode { text-align: center; color: #ffd60a; font-size: 13px; font-weight: 600; letter-spacing: 1px; }
750
+ .ws-camera-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; }
751
+ .ws-camera-row > :first-child { justify-self: start; }
752
+ .ws-camera-row > :last-child { justify-self: end; }
753
+ .ws-camera-text { font-size: 17px !important; }
754
+ .ws-shutter { width: 70px; height: 70px; border-radius: 50%; background: #fff !important; box-shadow: 0 0 0 3px #000, 0 0 0 6px #fff; }
755
+ .ws-shutter:active { transform: scale(0.92); }
756
+ .ws-camera-round { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.14) !important; }
757
+ .ws-camera-android .ws-camera-controls { position: absolute; left: 0; right: 0; bottom: 36px; display: flex; justify-content: space-evenly; align-items: center; }
758
+ .ws-camera-android .ws-camera-round { width: 52px; height: 52px; background: rgba(0, 0, 0, 0.35) !important; }
759
+ .ws-camera-android .ws-camera-done { width: 68px; height: 68px; background: #d0bcff !important; color: #381e72 !important; }
760
+
761
+ .ws-touchid-icon { color: #ff2d55; margin-bottom: 10px; display: flex; justify-content: center; }
762
+ .ws-picker-ios .ws-picker-cell:not(.ws-picker-selected) .ws-picker-badge { display: none; }
763
+ .ws-camera-review { display: flex; justify-content: space-between; }
764
+ .ws-ios-alert-buttons-stacked .ws-ios-alert-button { flex: none; }
765
+ .ws-status-generation { font-weight: 600; letter-spacing: -0.3px; }
766
+
767
+ /* Resizable devices: the drag handles around the device and the size fields in the toolbar (Resizer.tsx). */
768
+ .ws-resize { position: absolute; z-index: 3; border-radius: 4px; background: var(--ws-border); }
769
+ .ws-resize:hover, .ws-resize:active { background: #0a84ff; }
770
+ .ws-resize-x { top: 0; width: 6px; cursor: ew-resize; }
771
+ .ws-resize-y { left: 0; height: 6px; cursor: ns-resize; }
772
+ .ws-resize-xy { width: 12px; height: 12px; border-radius: 3px; cursor: nwse-resize; }
773
+ .ws-toolbar-meta { display: flex; align-items: center; gap: 4px; }
774
+ .ws-size-fields { display: inline-flex; align-items: center; gap: 2px; }
775
+ .ws-size-times { color: var(--ws-muted); }
776
+ .ws-size-field {
777
+ width: 46px;
778
+ height: 26px;
779
+ box-sizing: border-box;
780
+ padding: 0 6px;
781
+ border-radius: 6px;
782
+ border: 1px solid var(--ws-border);
783
+ background: transparent;
784
+ color: var(--ws-text);
785
+ font: inherit;
786
+ font-variant-numeric: tabular-nums;
787
+ text-align: center;
788
+ }
789
+ .ws-size-field:focus { outline: 2px solid #0a84ff; outline-offset: -1px; }
790
+
791
+ /* Tooltips for the shell's controls (tooltips.ts): any element with `data-tooltip`. */
792
+ .ws-tooltip {
793
+ position: fixed;
794
+ z-index: 1000;
795
+ max-width: 240px;
796
+ padding: 4px 8px;
797
+ border-radius: 6px;
798
+ background: var(--ws-text);
799
+ color: var(--ws-bg);
800
+ font: 500 12px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
801
+ white-space: nowrap;
802
+ pointer-events: none;
803
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
804
+ animation: ws-tooltip-in 100ms ease-out;
805
+ }
806
+ .ws-tooltip[hidden] { display: none; }
807
+ @keyframes ws-tooltip-in { from { opacity: 0; } }
808
+
809
+ /* The log drawer under the stage (LogDrawer.tsx) */
810
+ .ws-stage-column { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
811
+ .ws-stage-column .ws-stage { min-height: 0; }
812
+ .ws-log-button { position: relative; }
813
+ .ws-log-badge { position: absolute; top: 1px; right: 0; min-width: 14px; height: 14px; padding: 0 3px; box-sizing: border-box; border-radius: 7px; background: #ff3b30; color: white; font-size: 9px; font-weight: 700; line-height: 14px; text-align: center; pointer-events: none; }
814
+ .ws-log { position: relative; flex: none; display: flex; flex-direction: column; min-height: 0; background: var(--ws-toolbar); border-top: 1px solid var(--ws-border); font-size: 12px; }
815
+ .ws-log-edge { position: absolute; top: -3px; left: 0; right: 0; height: 6px; cursor: ns-resize; z-index: 2; touch-action: none; }
816
+ .ws-log-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--ws-border); min-width: 0; flex-wrap: wrap; }
817
+ .ws-log-search { width: 160px; flex: 0 1 160px; min-width: 100px; height: 26px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--ws-border); background: var(--ws-bg); color: var(--ws-text); font: inherit; }
818
+ .ws-log-select { flex: none; height: 26px; font-size: 12px; }
819
+ .ws-log-sources { display: flex; gap: 4px; flex: 1 1 80px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
820
+ .ws-log-chip { flex: none; height: 22px; padding: 0 8px; border-radius: 11px; border: 1px solid var(--ws-border); background: transparent; color: var(--ws-text); font: inherit; font-size: 11px; cursor: pointer; }
821
+ .ws-log-chip:hover { background: var(--ws-hover); }
822
+ .ws-log-chip[aria-pressed="true"] { background: var(--ws-text); color: var(--ws-bg); border-color: transparent; }
823
+ .ws-log-chip-count { opacity: 0.6; font-variant-numeric: tabular-nums; }
824
+ .ws-log-actions { display: flex; gap: 2px; flex: none; margin-left: auto; }
825
+ .ws-log-icon { width: 26px; height: 26px; color: var(--ws-muted); }
826
+ .ws-log-body { flex: 1; display: flex; min-height: 0; }
827
+ .ws-log-rows-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
828
+ .ws-log-rows { flex: 1; min-width: 0; overflow-y: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
829
+ .ws-log-empty { margin: 16px; color: var(--ws-muted); font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-size: 12px; }
830
+ .ws-log-row, .ws-log-launch { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 0 10px; box-sizing: border-box; white-space: nowrap; }
831
+ .ws-log-row { border: 0; background: transparent; color: var(--ws-text); font: inherit; text-align: left; cursor: pointer; }
832
+ .ws-log-row:hover { background: var(--ws-hover); }
833
+ .ws-log-row[aria-current="true"] { background: rgba(10, 132, 255, 0.16); }
834
+ .ws-log-time { flex: none; color: var(--ws-muted); font-variant-numeric: tabular-nums; }
835
+ .ws-log-kind { flex: none; width: 150px; overflow: hidden; text-overflow: ellipsis; color: var(--ws-muted); }
836
+ .ws-log-summary { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
837
+ .ws-log-pending { color: var(--ws-muted); font-style: italic; }
838
+ .ws-log-count { flex: none; padding: 0 5px; border-radius: 6px; background: var(--ws-hover); color: var(--ws-muted); font-size: 10px; }
839
+ .ws-log-actor { flex: none; padding: 0 5px; border-radius: 6px; font-size: 10px; background: var(--ws-hover); color: var(--ws-muted); }
840
+ .ws-log-actor-cli { background: rgba(175, 82, 222, 0.16); color: #af52de; }
841
+ .ws-log-actor-user { background: rgba(10, 132, 255, 0.14); color: #0a84ff; }
842
+ .ws-log-debug { color: var(--ws-muted); }
843
+ .ws-log-warn { background: rgba(255, 159, 10, 0.1); }
844
+ .ws-log-warn .ws-log-summary { color: #c77700; }
845
+ .ws-log-error { background: rgba(255, 59, 48, 0.1); }
846
+ .ws-log-error .ws-log-summary { color: #e0352b; }
847
+ .ws-log-launch { color: #0a84ff; border-top: 1px solid rgba(10, 132, 255, 0.35); font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-weight: 600; font-size: 11px; }
848
+ .ws-log-launch-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 400; color: var(--ws-muted); }
849
+ .ws-log-jump { position: absolute; right: 14px; bottom: 10px; display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--ws-border); background: var(--ws-bg); color: var(--ws-text); font: inherit; font-size: 11px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); cursor: pointer; }
850
+ .ws-log-detail { width: 40%; max-width: 520px; min-width: 260px; flex: none; display: flex; flex-direction: column; border-left: 1px solid var(--ws-border); min-height: 0; }
851
+ .ws-log-detail-head { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-bottom: 1px solid var(--ws-border); font-weight: 600; }
852
+ .ws-log-detail-head > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
853
+ .ws-log-detail-body { flex: 1; overflow-y: auto; padding: 4px 10px 10px; }
854
+ .ws-log-event { padding: 8px 0; border-bottom: 1px solid var(--ws-border); }
855
+ .ws-log-event:last-child { border-bottom: 0; }
856
+ .ws-log-event-head { display: flex; justify-content: space-between; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
857
+ .ws-log-event-summary { margin: 4px 0 6px; }
858
+ .ws-log-facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0 0 6px; color: var(--ws-muted); }
859
+ .ws-log-facts dt { margin: 0; }
860
+ .ws-log-facts dd { margin: 0; color: var(--ws-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; overflow-wrap: anywhere; }
861
+ .ws-log-data { margin: 0; padding: 8px; border-radius: 6px; background: var(--ws-hover); font-size: 11px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; }
862
+
863
+ /* The phone in its own window (Picture-in-Picture, or a popup), and what the tab shows meanwhile. */
864
+ .ws-popout { height: 100%; display: grid; place-items: center; overflow: hidden; background: var(--ws-stage); }
865
+ .ws-popped-out { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ws-muted); }
866
+ .ws-popped-out p { margin: 6px 0 8px; }
867
+ .ws-text-button {
868
+ font: inherit;
869
+ font-weight: 500;
870
+ color: var(--ws-text);
871
+ background: var(--ws-hover);
872
+ border: 1px solid var(--ws-border);
873
+ border-radius: 7px;
874
+ padding: 5px 12px;
875
+ cursor: pointer;
876
+ }
877
+ .ws-text-button:hover:not(:disabled) { background: var(--ws-border); }
878
+ .ws-text-button:disabled { opacity: 0.4; cursor: default; }