@developer_tribe/react-builder 1.2.7 → 1.2.9

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 (204) hide show
  1. package/dist/AttributesEditor.d.ts +2 -11
  2. package/dist/attribute-analyser/style/native/useExtractImageStyle.d.ts +10 -0
  3. package/dist/attribute-analyser/style/native/useExtractTextStyle.d.ts +9 -0
  4. package/dist/attribute-analyser/style/native/useExtractViewStyle.d.ts +8 -0
  5. package/dist/attribute-analyser/style/web/useExtractImageStyle.d.ts +4 -0
  6. package/dist/attribute-analyser/style/web/useExtractTextStyle.d.ts +4 -0
  7. package/dist/attribute-analyser/style/web/useExtractViewStyle.d.ts +4 -0
  8. package/dist/attributes-editor/AttributesEditorFields.d.ts +18 -0
  9. package/dist/attributes-editor/AttributesEditorView.d.ts +4 -0
  10. package/dist/attributes-editor/attributesEditorModelTypes.d.ts +67 -0
  11. package/dist/attributes-editor/attributesEditorUtils.d.ts +19 -0
  12. package/dist/attributes-editor/useAttributesEditorModel.d.ts +2 -0
  13. package/dist/build-components/BIcon/BIconProps.generated.d.ts +41 -38
  14. package/dist/build-components/BackgroundImage/BackgroundImageProps.generated.d.ts +37 -34
  15. package/dist/build-components/Button/ButtonProps.generated.d.ts +39 -36
  16. package/dist/build-components/Carousel/CarouselProps.generated.d.ts +37 -34
  17. package/dist/build-components/CarouselButtons/CarouselButtonsProps.generated.d.ts +37 -34
  18. package/dist/build-components/CarouselDots/CarouselDotsProps.generated.d.ts +37 -34
  19. package/dist/build-components/CarouselItem/CarouselItemProps.generated.d.ts +36 -33
  20. package/dist/build-components/CarouselProvider/CarouselProviderProps.generated.d.ts +36 -33
  21. package/dist/build-components/Image/ImageProps.generated.d.ts +38 -33
  22. package/dist/build-components/Main/MainProps.generated.d.ts +36 -33
  23. package/dist/build-components/Onboard/OnboardProps.generated.d.ts +36 -33
  24. package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +38 -34
  25. package/dist/build-components/OnboardButtons/OnboardButtonsProps.generated.d.ts +39 -36
  26. package/dist/build-components/OnboardDot/OnboardDotProps.generated.d.ts +43 -34
  27. package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +41 -38
  28. package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +36 -31
  29. package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +39 -33
  30. package/dist/build-components/OnboardProvider/OnboardProviderProps.generated.d.ts +38 -34
  31. package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +41 -38
  32. package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +41 -38
  33. package/dist/build-components/PaywallBackground/PaywallBackgroundProps.generated.d.ts +36 -33
  34. package/dist/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.d.ts +41 -38
  35. package/dist/build-components/PaywallOptions/PaywallOptionsProps.generated.d.ts +36 -33
  36. package/dist/build-components/PaywallProvider/PaywallProviderProps.generated.d.ts +36 -33
  37. package/dist/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.d.ts +39 -36
  38. package/dist/build-components/RadioButton/RadioButtonProps.generated.d.ts +36 -33
  39. package/dist/build-components/Text/TextProps.generated.d.ts +41 -38
  40. package/dist/build-components/View/ViewProps.generated.d.ts +36 -33
  41. package/dist/build-components/patterns.generated.d.ts +2673 -5787
  42. package/dist/components/BuilderProvider.d.ts +6 -0
  43. package/dist/index.cjs.js +5 -5
  44. package/dist/index.cjs.js.map +1 -1
  45. package/dist/index.d.ts +5 -26
  46. package/dist/index.esm.js +5 -5
  47. package/dist/index.esm.js.map +1 -1
  48. package/dist/index.native.cjs.js +6 -4
  49. package/dist/index.native.cjs.js.map +1 -1
  50. package/dist/index.native.d.ts +6 -3
  51. package/dist/index.native.esm.js +6 -4
  52. package/dist/index.native.esm.js.map +1 -1
  53. package/dist/migrations/migratePipe.d.ts +1 -1
  54. package/dist/migrations/migrations/1.1.2_extract_component_attributes_from_style.d.ts +2 -0
  55. package/dist/mockOS/components/PermissionModal.d.ts +1 -2
  56. package/dist/styles.css +1 -1
  57. package/dist/types/PreviewConfig.d.ts +1 -5
  58. package/dist/utils/extractImageStyle.d.ts +3 -0
  59. package/dist/utils/extractTextStyle/extractTextStyleNative.d.ts +17 -0
  60. package/dist/utils/extractTextStyle.d.ts +2 -0
  61. package/dist/utils/extractViewStyle/extractViewStyleNative.d.ts +12 -0
  62. package/dist/utils/extractViewStyle.d.ts +2 -0
  63. package/dist/utils/getMeta.d.ts +5 -0
  64. package/dist/utils/patterns.d.ts +14 -1
  65. package/package.json +2 -1
  66. package/scripts/prebuild/prebuild.js +14 -0
  67. package/scripts/prebuild/utils/createGeneratedProps.js +51 -3
  68. package/scripts/prebuild/utils/index.js +1 -0
  69. package/scripts/prebuild/utils/updateMetaJson.js +66 -0
  70. package/scripts/prebuild/utils/validateAllComponentsOrThrow.js +37 -3
  71. package/scripts/prebuild/utils/validatePatternJson.js +27 -2
  72. package/scripts/public/scripts/build/index.js +20 -3
  73. package/scripts/public/scripts/build/info.json +6 -0
  74. package/scripts/public/scripts/build/utils/createComponentsIndex.js +9 -3
  75. package/scripts/public/scripts/build/utils/createRenderNodeGenerated.js +66 -8
  76. package/src/AttributesEditor.tsx +8 -944
  77. package/src/assets/meta.json +4 -0
  78. package/src/assets/samples/carousel-sample.json +1 -1
  79. package/src/assets/samples/getSamples.ts +2 -0
  80. package/src/assets/samples/paywall-1.json +11 -7
  81. package/src/assets/samples/simple-1.json +3 -3
  82. package/src/assets/samples/simple-2.json +3 -3
  83. package/src/assets/samples/unmigrated-builder-1.1.1.json +87 -0
  84. package/src/assets/samples/unmigrated-builder1.json +1 -1
  85. package/src/assets/samples/unvalidated-builder1.json +3 -3
  86. package/src/assets/samples/unvalidated-crash1.json +1 -1
  87. package/src/assets/samples/unvalidated-crashcomponent1.json +1 -1
  88. package/src/assets/samples/vpn-onboard-1.json +1 -1
  89. package/src/assets/samples/vpn-onboard-2.json +1 -1
  90. package/src/assets/samples/vpn-onboard-3.json +1 -1
  91. package/src/assets/samples/vpn-onboard-4.json +1 -1
  92. package/src/assets/samples/vpn-onboard-5.json +1 -1
  93. package/src/assets/samples/vpn-onboard-6.json +1 -1
  94. package/src/attribute-analyser/style/native/useExtractImageStyle.ts +46 -0
  95. package/src/attribute-analyser/style/native/useExtractTextStyle.ts +50 -0
  96. package/src/attribute-analyser/style/native/useExtractViewStyle.ts +32 -0
  97. package/src/attribute-analyser/style/web/useExtractImageStyle.ts +20 -0
  98. package/src/{hooks → attribute-analyser/style/web}/useExtractTextStyle.ts +7 -6
  99. package/src/{hooks → attribute-analyser/style/web}/useExtractViewStyle.ts +7 -6
  100. package/src/attributes-editor/AttributesEditorFields.tsx +248 -0
  101. package/src/attributes-editor/AttributesEditorView.tsx +360 -0
  102. package/src/attributes-editor/LayoutPreviewPicker.tsx +4 -3
  103. package/src/attributes-editor/attributesEditorModelTypes.ts +86 -0
  104. package/src/attributes-editor/attributesEditorUtils.ts +102 -0
  105. package/src/attributes-editor/useAttributesEditorModel.ts +477 -0
  106. package/src/build-components/BIcon/BIcon.tsx +4 -3
  107. package/src/build-components/BIcon/BIconProps.generated.ts +42 -38
  108. package/src/build-components/BIcon/pattern.json +5 -6
  109. package/src/build-components/BackgroundImage/BackgroundImage.tsx +7 -4
  110. package/src/build-components/BackgroundImage/BackgroundImageProps.generated.ts +38 -34
  111. package/src/build-components/BackgroundImage/pattern.json +9 -17
  112. package/src/build-components/Button/Button.tsx +7 -6
  113. package/src/build-components/Button/ButtonProps.generated.ts +40 -36
  114. package/src/build-components/Button/pattern.json +17 -15
  115. package/src/build-components/Carousel/Carousel.tsx +1 -1
  116. package/src/build-components/Carousel/CarouselProps.generated.ts +38 -34
  117. package/src/build-components/CarouselButtons/CarouselButtons.tsx +4 -6
  118. package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +41 -37
  119. package/src/build-components/CarouselButtons/pattern.json +2 -1
  120. package/src/build-components/CarouselDots/CarouselDots.tsx +2 -2
  121. package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +44 -40
  122. package/src/build-components/CarouselItem/CarouselItem.tsx +1 -1
  123. package/src/build-components/CarouselItem/CarouselItemProps.generated.ts +37 -33
  124. package/src/build-components/CarouselProvider/CarouselProvider.tsx +1 -1
  125. package/src/build-components/CarouselProvider/CarouselProviderProps.generated.ts +37 -33
  126. package/src/build-components/Image/Image.tsx +4 -3
  127. package/src/build-components/Image/ImageProps.generated.ts +39 -33
  128. package/src/build-components/Image/pattern.json +5 -11
  129. package/src/build-components/Main/Main.tsx +1 -1
  130. package/src/build-components/Main/MainProps.generated.ts +37 -33
  131. package/src/build-components/Main/pattern.json +2 -1
  132. package/src/build-components/Onboard/OnboardProps.generated.ts +37 -33
  133. package/src/build-components/OnboardButton/OnboardButton.tsx +8 -6
  134. package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +44 -39
  135. package/src/build-components/OnboardButton/pattern.json +9 -7
  136. package/src/build-components/OnboardButtons/OnboardButtons.tsx +31 -31
  137. package/src/build-components/OnboardButtons/OnboardButtonsProps.generated.ts +43 -39
  138. package/src/build-components/OnboardButtons/pattern.json +9 -7
  139. package/src/build-components/OnboardDot/OnboardDot.tsx +7 -5
  140. package/src/build-components/OnboardDot/OnboardDotProps.generated.ts +55 -34
  141. package/src/build-components/OnboardFooter/OnboardFooter.tsx +19 -23
  142. package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +42 -38
  143. package/src/build-components/OnboardFooter/pattern.json +16 -14
  144. package/src/build-components/OnboardImage/OnboardImage.tsx +8 -7
  145. package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +37 -31
  146. package/src/build-components/OnboardImage/pattern.json +2 -1
  147. package/src/build-components/OnboardItem/OnboardItem.tsx +1 -1
  148. package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +40 -33
  149. package/src/build-components/OnboardItem/pattern.json +2 -1
  150. package/src/build-components/OnboardProvider/OnboardProvider.tsx +1 -1
  151. package/src/build-components/OnboardProvider/OnboardProviderProps.generated.ts +39 -34
  152. package/src/build-components/OnboardProvider/pattern.json +2 -1
  153. package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +42 -38
  154. package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +42 -38
  155. package/src/build-components/PaywallBackground/PaywallBackground.tsx +1 -1
  156. package/src/build-components/PaywallBackground/PaywallBackgroundProps.generated.ts +37 -33
  157. package/src/build-components/PaywallCloseButton/PaywallCloseButton.tsx +6 -5
  158. package/src/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.ts +42 -38
  159. package/src/build-components/PaywallOptions/PaywallOptionButton.tsx +1 -1
  160. package/src/build-components/PaywallOptions/PaywallOptionsProps.generated.ts +37 -33
  161. package/src/build-components/PaywallProvider/PaywallProvider.tsx +1 -1
  162. package/src/build-components/PaywallProvider/PaywallProviderProps.generated.ts +37 -33
  163. package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButton.tsx +1 -1
  164. package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.ts +40 -36
  165. package/src/build-components/RadioButton/RadioButton.tsx +5 -4
  166. package/src/build-components/RadioButton/RadioButtonProps.generated.ts +37 -33
  167. package/src/build-components/RadioButton/pattern.json +9 -7
  168. package/src/build-components/Text/Text.tsx +6 -8
  169. package/src/build-components/Text/TextProps.generated.ts +42 -38
  170. package/src/build-components/Text/pattern.json +15 -11
  171. package/src/build-components/View/View.tsx +1 -1
  172. package/src/build-components/View/ViewProps.generated.ts +37 -33
  173. package/src/build-components/View/pattern.json +71 -66
  174. package/src/build-components/patterns.generated.ts +3022 -5971
  175. package/src/components/AttributesEditorPanel.tsx +2 -2
  176. package/src/components/BuilderProvider.tsx +15 -1
  177. package/src/index.native.ts +7 -4
  178. package/src/index.ts +6 -77
  179. package/src/migrations/migratePipe.ts +7 -3
  180. package/src/migrations/migrations/1.1.2_extract_component_attributes_from_style.ts +211 -0
  181. package/src/mockOS/components/MockOSRouter.tsx +3 -1
  182. package/src/mockOS/components/PermissionModal.tsx +20 -160
  183. package/src/mockOS/components/SubscriptionModal.tsx +41 -278
  184. package/src/pages/ProjectPage.tsx +12 -6
  185. package/src/styles/components/_attributes-editor.scss +122 -0
  186. package/src/styles/components/_mockos-router.scss +388 -0
  187. package/src/styles/components/_onboard.scss +23 -0
  188. package/src/styles/index.scss +1 -0
  189. package/src/types/PreviewConfig.ts +1 -5
  190. package/src/utils/analyseNodeByPatterns.ts +39 -4
  191. package/src/utils/extractImageStyle.ts +34 -5
  192. package/src/utils/extractTextStyle/extractTextStyle.ts +7 -6
  193. package/src/utils/extractTextStyle/extractTextStyleNative.ts +106 -0
  194. package/src/utils/extractTextStyle.ts +2 -0
  195. package/src/utils/extractViewStyle/extractViewStyle.ts +2 -4
  196. package/src/utils/extractViewStyle/extractViewStyleNative.ts +111 -0
  197. package/src/utils/extractViewStyle.ts +2 -0
  198. package/src/utils/getMeta.ts +15 -0
  199. package/src/utils/patterns.ts +100 -3
  200. package/dist/hooks/useExtractImageStyle.d.ts +0 -3
  201. package/dist/hooks/useExtractTextStyle.d.ts +0 -3
  202. package/dist/hooks/useExtractViewStyle.d.ts +0 -3
  203. package/src/hooks/useExtractImageStyle.ts +0 -19
  204. package/src/migrations/migrations/1.1.0_normalize_style_attributes.ts +0 -80
@@ -1,6 +1,6 @@
1
1
  import type { Project } from '../types/Project';
2
2
  import type { Migration } from './types';
3
- export declare const CURRENT_PROJECT_VERSION = "1.1.0";
3
+ export declare const CURRENT_PROJECT_VERSION: string;
4
4
  export type MigrationPipe = {
5
5
  projectVersion: string;
6
6
  requiredVersion: string;
@@ -0,0 +1,2 @@
1
+ import type { Migration } from '../types';
2
+ export declare const migration_1_1_2_extract_component_attributes_from_style: Migration;
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  import type { PermissionType } from '../managers/mockPermissionManager';
3
2
  interface PermissionModalProps {
4
3
  permission: PermissionType | string;
5
4
  onAllow: () => void;
6
5
  onDeny: () => void;
7
6
  }
8
- export declare const PermissionModal: React.FC<PermissionModalProps>;
7
+ export declare function PermissionModal({ permission, onAllow, onDeny, }: PermissionModalProps): import("react/jsx-runtime").JSX.Element;
9
8
  export {};
package/dist/styles.css CHANGED
@@ -1 +1 @@
1
- :root{--rb-background: 220 14.3% 95.9%;--rb-foreground: 220.9 39.3% 11%;--rb-card: 0 0% 100%;--rb-card-foreground: 220.9 39.3% 11%;--rb-muted: 220 14.3% 95.9%;--rb-muted-foreground: 220 8.9% 46.1%;--rb-primary: 221.2 83.2% 53.3%;--rb-primary-foreground: 0 0% 100%;--rb-destructive: 0 84.2% 60.2%;--rb-destructive-foreground: 0 0% 100%;--rb-border: 220 13% 91%;color-scheme:light}.dark{--rb-background: 222.2 84% 4.9%;--rb-foreground: 210 40% 98%;--rb-card: 222.2 84% 4.9%;--rb-card-foreground: 210 40% 98%;--rb-muted: 217.2 32.6% 17.5%;--rb-muted-foreground: 215 20.2% 65.1%;--rb-primary: 217.2 91.2% 59.8%;--rb-primary-foreground: 222.2 84% 4.9%;--rb-destructive: 0 62.8% 30.6%;--rb-destructive-foreground: 210 40% 98%;--rb-border: 217.2 32.6% 17.5%;color-scheme:dark}@media(prefers-color-scheme: dark){:root:not(.light):not(.dark){--rb-background: 222.2 84% 4.9%;--rb-foreground: 210 40% 98%;--rb-card: 222.2 84% 4.9%;--rb-card-foreground: 210 40% 98%;--rb-muted: 217.2 32.6% 17.5%;--rb-muted-foreground: 215 20.2% 65.1%;--rb-primary: 217.2 91.2% 59.8%;--rb-primary-foreground: 222.2 84% 4.9%;--rb-destructive: 0 62.8% 30.6%;--rb-destructive-foreground: 210 40% 98%;--rb-border: 217.2 32.6% 17.5%;color-scheme:dark}}*,*::before,*::after{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0}body{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden}button{font-family:inherit}input,button{font-size:100%}p{margin:0;padding:0}html,body,#root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",sans-serif}.editor-container{height:100vh;width:100%;display:flex;overflow:hidden}.app-main{flex:1 1 auto;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.page-bg{background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.grid-cards{display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));gap:16px}.btn-add{height:120px;border:2px dashed hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));border-radius:8px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));cursor:pointer;font-weight:600;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));transition:border-color .2s ease,transform .1s ease,box-shadow .2s ease;box-shadow:0 1px 2px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.04)}.btn-add:hover{border-color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));transform:translateY(-1px);box-shadow:0 6px 16px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.1)}.split-left{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25) rgba(0,0,0,0)}.split-left::-webkit-scrollbar{width:8px;height:4px}.split-left{flex:1 1 10%;min-width:200px;border-right:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));overflow:auto}.split-right{position:relative;display:flex;flex-direction:column;flex:1 1 45%;width:100%;height:auto;max-height:calc(100vh - 120px);overflow:auto;padding:16px;background-image:var(--rb-canvas-bg, none);background-size:cover;background-position:center;background-repeat:repeat;background-size:500px auto}.split-right>*{position:relative;z-index:1}.dark .split-right{--rb-canvas-bg: none !important}.split-third{flex:1 1 25%;border-right:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));overflow:auto;overflow-x:hidden;max-height:calc(100vh - 120px)}.stage{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:4px;align-self:center;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));box-shadow:0 18px 50px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.16),0 6px 16px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.1);overflow:hidden}.stage .scroll-container::-webkit-scrollbar{width:8px;height:8px}.stage .scroll-container::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.stage .scroll-container::-webkit-scrollbar-thumb{background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25);border-radius:8px}.stage .scroll-container{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25) rgba(0,0,0,0)}.rb-node-selected{border:1px solid hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)))}.app-header{position:sticky;top:0;z-index:10;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-bottom:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));height:60px;padding:0 16px;display:flex;align-items:center;justify-content:space-between}.app-header a{color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));text-decoration:none}.app-header__brand{font-weight:700}.app-header__nav{display:flex;gap:16px}.warning{color:hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)));font-size:12px;font-weight:600;margin-bottom:16px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.breadcrumb__back{display:inline-flex;align-items:center;gap:4px;padding:0;border:none;background:none;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font-weight:600;cursor:pointer;transition:color .2s ease}.breadcrumb__back:hover,.breadcrumb__back:focus-visible{color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));outline:none}.breadcrumb__back-icon{font-size:14px;line-height:1}.breadcrumb__list{list-style:none;padding:0;margin:0;display:flex;align-items:center;gap:8px}.breadcrumb__item{display:inline-flex;align-items:center}.breadcrumb__item--clickable{cursor:pointer}.breadcrumb__separator{color:hsl(var(--border, var(--rb-border, 220 13% 91%)));margin:0 4px}.breadcrumb__link{color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));text-decoration:none}.breadcrumb__link:hover{text-decoration:underline}.breadcrumb__current{color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.device-status-bar{position:relative;z-index:100}.device-navigation-bar{position:relative;z-index:100}.mobile-panel-toggle{display:none;padding:0 16px 12px;gap:8px}.mobile-panel-toggle__button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:8px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font-weight:600;cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}.mobile-panel-toggle__button:focus-visible{outline:2px solid hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));outline-offset:2px}.mobile-panel-toggle__button--active{background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));box-shadow:0 6px 16px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.15)}.mobile-panel-toggle__icon{width:18px;height:12px;display:inline-flex}.mobile-panel-toggle__icon svg{width:100%;height:100%}.mobile-panel-toggle__label{line-height:1}.split-panel__close{display:none;position:absolute;top:12px;right:12px;border:none;border-radius:8px;background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.7);color:hsl(var(--card, var(--rb-card, 0 0% 100%)));padding:6px 16px;font-weight:600;cursor:pointer;z-index:5}.editor-container__overlay{display:none}@media(max-width: 1000px){.editor-container{position:relative;min-height:calc(100vh - 60px);flex-direction:column}.split-left,.split-third{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));box-shadow:0 25px 60px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.15);transition:transform .3s ease,opacity .3s ease;opacity:0;pointer-events:none;z-index:4}.split-left{transform:translate3d(-100%, 0, 0)}.split-third{transform:translate3d(100%, 0, 0)}.split-left.is-open,.split-third.is-open{opacity:1;pointer-events:auto;transform:translate3d(0, 0, 0)}.split-right{flex:1 1 auto;min-width:0;min-height:calc(100vh - 120px);padding:16px;padding-bottom:120px;position:relative}.mobile-panel-toggle{display:flex}.split-panel__close{display:inline-flex}.editor-container__overlay{display:block;position:absolute;inset:0;background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.35);border:none;padding:0;margin:0;cursor:pointer;z-index:3}}@media(max-width: 900px){.split-right__controls{top:12px;z-index:5;padding-bottom:12px}.split-right__controls .side-tool{width:100%}}.screen-preview{position:relative;width:100%;height:100%}.rb-loading-overlay{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;pointer-events:none;background:hsl(var(--card, var(--rb-card, 0 0% 100%))/0.55);backdrop-filter:blur(1px)}.rb-loading{position:relative;top:-20%;width:min(320px,70vw);max-width:360px;opacity:.95}.rb-empty-preview{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;pointer-events:none}.rb-empty-preview__card{width:min(320px,100% - 32px);padding:14px 16px;border-radius:8px;border:1px dashed hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%))/0.72);backdrop-filter:blur(1px);text-align:center}.rb-empty-preview__title{font-weight:700;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));margin-bottom:4px}.rb-empty-preview__hint{font-size:13px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.builder{display:flex;flex-direction:column;gap:12px}.builder__breadcrumbs{display:flex;flex-direction:row;gap:8px}.builder__breadcrumb{color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));font-size:12px}.builder__current{font-weight:600}.builder__list{display:flex;flex-wrap:wrap;gap:8px}.builder__list-item{flex:1 1 220px;min-width:220px}.builder__button{position:relative;display:flex;align-items:stretch}.builder__button>.builder__button-link{flex:1;min-width:0;display:flex;align-items:center;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:4px;height:40px;line-height:37px;padding:0 4px;margin:0;background:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)));font-size:clamp(11px,1.3vw,13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;border:none;text-align:left}.builder__button-actions{position:relative;display:flex;align-items:stretch}.builder__button-actions-trigger{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:4px;height:40px;width:40px;display:inline-flex;align-items:center;justify-content:center;border:none;margin-left:4px;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));cursor:pointer;box-shadow:inset 0 0 0 1px hsl(var(--border, var(--rb-border, 220 13% 91%)))}.builder__button-actions-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:160px;padding:6px;margin:0;list-style:none;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-radius:4px;box-shadow:0 10px 25px rgba(0,0,0,.15);border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));z-index:20}.builder__button-actions-item{width:100%;text-align:left;border:none;background:rgba(0,0,0,0);padding:8px 10px;border-radius:4px;cursor:pointer;font-size:12px;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.builder__button-actions-item:hover{background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.builder__button-actions-item:disabled{opacity:.5;cursor:not-allowed}.builder__button-actions-item--danger{color:hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)))}.builder__sort-controls{display:flex;flex-direction:column;gap:4px}.builder__sort-button{width:32px;height:18px;border:none;border-radius:4px;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));font-size:14px;cursor:pointer;line-height:1;box-shadow:inset 0 0 0 1px hsl(var(--border, var(--rb-border, 220 13% 91%)));padding:0}.builder__sort-button:disabled{opacity:.4;cursor:not-allowed}.builder__button-condition{position:absolute;bottom:-10px;font-size:8px}.builder__node{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:4px;padding:6px}.builder__node-type{margin:0 0 8px 0;font-weight:600}.builder__children{position:relative;display:flex;flex-direction:column;gap:16px}.builder__children>:not(:first-child){margin-left:16px}.builder__children::before{content:"";position:absolute;left:6px;top:24px;bottom:0;width:1px;background:hsl(var(--border, var(--rb-border, 220 13% 91%)))}.builder__text,.builder__placeholder{color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));font-size:12px}.rb-project-debug{display:flex;width:100%;height:calc(100vh - 60px);overflow:hidden;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.rb-project-debug__json{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25) rgba(0,0,0,0)}.rb-project-debug__json::-webkit-scrollbar{width:8px;height:4px}.rb-project-debug__json{flex:0 0 34%;min-width:320px;max-width:640px;border-right:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));overflow:auto;padding:16px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.rb-project-debug__preview{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25) rgba(0,0,0,0)}.rb-project-debug__preview::-webkit-scrollbar{width:8px;height:4px}.rb-project-debug__preview{position:relative;flex:1 1 auto;overflow:auto;padding:16px;display:flex;align-items:center;justify-content:center;background-image:var(--rb-canvas-bg, none);background-position:center;background-repeat:repeat;background-size:500px auto}.dark .rb-project-debug__preview{--rb-canvas-bg: none !important}.rb-project-debug__error{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25) rgba(0,0,0,0)}.rb-project-debug__error::-webkit-scrollbar{width:8px;height:4px}.rb-project-debug__error{flex:0 0 32%;min-width:280px;max-width:520px;border-left:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));overflow:auto;padding:16px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.rb-project-debug__title{margin:0 0 4px 0;font-size:16px;font-weight:700;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.rb-project-debug__error-block{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:4px;padding:12px;margin:0 0 12px 0;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.rb-project-debug__error-label{font-size:12px;font-weight:800;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));margin:0 0 4px 0}.rb-project-debug__error-pre{margin:0;padding:4px;border-radius:4px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:11px;line-height:1.45;white-space:pre-wrap;word-break:break-word;overflow:auto;max-height:220px}.rb-project-debug__meta{margin:0 0 12px 0;font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.rb-project-debug__meta-label{font-weight:700;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.rb-project-debug__toolbar{display:flex;gap:4px;align-items:center;margin:0 0 12px 0}.rb-project-debug__toolbar .editor-button{min-width:0;height:34px;padding:0 12px}.rb-project-debug__below-name{margin:0 0 12px 0}.rb-project-debug__error-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px 0}.rb-project-debug__error-head .rb-project-debug__title{margin:0}.rb-project-debug__error-head .editor-button{min-width:0;height:34px;padding:0 12px}.rb-project-validation__actions{display:flex;gap:4px;align-items:center}.rb-project-validation__actions .editor-button{min-width:0;height:34px;padding:0 12px}.rb-project-debug__code{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:4px;margin:0;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px;line-height:1.5;white-space:pre;overflow:auto;max-height:calc(100vh - 60px - 160px);background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.rb-project-validation__error{margin:0 0 12px 0;font-size:13px;line-height:1.4;color:hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)));font-weight:600}.rb-project-validation__error--render{color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)))}.rb-project-validation__error-label{font-weight:800}@media(max-width: 1000px){.rb-project-debug{flex-direction:column;height:calc(100vh - 60px)}.rb-project-debug__json{flex:0 0 auto;width:100%;min-width:0;max-width:none;border-right:none;border-bottom:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));max-height:45%}.rb-project-debug__preview{flex:1 1 auto;width:100%;min-height:0}.rb-project-debug__error{flex:0 0 auto;width:100%;min-width:0;max-width:none;border-left:none;border-top:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));max-height:40%}}.editor-controls{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:16px}.editor-section{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:8px;padding:16px}.form-row{display:grid;grid-template-columns:160px 1fr;align-items:center;gap:12px;margin-bottom:12px}.form-actions{display:flex;gap:12px;margin-top:16px}.btn{padding:8px 12px;border-radius:8px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%)));cursor:pointer;transition:background .2s ease,box-shadow .2s ease}.btn:hover{background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));box-shadow:0 6px 16px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.06)}.input{display:inline-flex;align-items:center;height:32px;padding:0 8px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:8px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.input:focus{border-color:hsl(var(--border, var(--rb-border, 220 13% 91%)));box-shadow:0 0 0 3px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.04)}.input--color{padding:0;width:40px;height:28px;border-radius:6px;cursor:pointer}.input--color::-webkit-color-swatch-wrapper{padding:0}.input--color::-webkit-color-swatch{border:none;border-radius:4px}.input--color::-moz-color-swatch{border:none;border-radius:4px}.builder-checkbox{display:inline-flex;flex-direction:column;gap:4px}.builder-checkbox__label{display:inline-flex;align-items:center;gap:10px;cursor:pointer;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font-weight:600;position:relative;user-select:none}.builder-checkbox__native{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.builder-checkbox__control{width:20px;height:20px;border-radius:6px;border:2px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%)));display:inline-flex;align-items:center;justify-content:center;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease;box-shadow:0 2px 6px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.12)}.builder-checkbox__control::after{content:"";width:6px;height:12px;border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0);transform:rotate(45deg) scale(0);transform-origin:center;transition:transform .2s ease,border-color .2s ease}.builder-checkbox__label:hover .builder-checkbox__control{transform:translateY(-1px)}.builder-checkbox__native:focus-visible+.builder-checkbox__control{box-shadow:0 0 0 3px hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))/0.3)}.builder-checkbox__native:checked+.builder-checkbox__control{background:linear-gradient(135deg, hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))), hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))));border-color:rgba(0,0,0,0);box-shadow:0 6px 14px hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))/0.35)}.builder-checkbox__native:checked+.builder-checkbox__control::after{border-color:hsl(var(--card, var(--rb-card, 0 0% 100%)));transform:rotate(45deg) scale(1)}.builder-checkbox__text{font-size:14px;line-height:1.4}.builder-checkbox__helper{font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));margin-left:30px}.builder-checkbox--disabled{opacity:.6}.builder-checkbox--disabled .builder-checkbox__label{cursor:not-allowed}.editor-tabs{display:flex;gap:8px;border-bottom:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)))}.editor-tab{cursor:pointer;border:1px solid rgba(0,0,0,0);border-top-left-radius:4px;border-top-right-radius:4px;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));padding:8px 12px;display:inline-flex;align-items:center;white-space:nowrap}.editor-tab__label{display:inline-flex;align-items:center;white-space:nowrap;line-height:1.2;font-size:clamp(.85rem,.9rem + .2vw,1rem)}.editor-tab--active{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-color:hsl(var(--border, var(--rb-border, 220 13% 91%))) hsl(var(--border, var(--rb-border, 220 13% 91%))) hsl(var(--card, var(--rb-card, 0 0% 100%))) hsl(var(--border, var(--rb-border, 220 13% 91%)))}.editor-panels{padding:12px}.editor-panels.editor-panels-debug{padding:0}.jer-editor-container{padding-left:0 !important;padding-right:0 !important}.editor-panel{display:none}.editor-panel--active{display:block}.editor-header{display:flex;align-items:center;gap:12px;padding:0 16px;height:60px;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));border-bottom:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)))}.editor-header__title{color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font-weight:600}.editor-header__devices{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25) rgba(0,0,0,0)}.editor-header__devices::-webkit-scrollbar{width:8px;height:4px}.editor-header__devices{display:flex;flex-direction:row;align-items:stretch;gap:8px;overflow:auto;height:60px;padding:4px}.editor-device-button{position:relative;min-width:160px;height:100%;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:6px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));cursor:pointer;font-size:12px}.editor-device-button.editor-device-button--selected{border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.editor-device-button img{position:absolute;bottom:4px;right:4px;width:16px;height:16px}.editor-header__actions{margin-left:auto;display:flex;align-items:center;gap:8px}.editor-actions-dropdown{position:relative;display:inline-flex;align-items:center}.editor-actions-dropdown__trigger{min-width:auto;gap:8px}.editor-actions-dropdown__caret{font-size:16px;line-height:1;opacity:.8}.editor-actions-dropdown__menu{position:absolute;top:calc(100% + 6px);right:0;z-index:20;min-width:220px;padding:6px;margin:0;list-style:none;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.18)}.editor-actions-dropdown__submenu-root{position:relative}.editor-actions-dropdown__submenu-root::after{content:"";position:absolute;top:0;right:100%;width:12px;height:100%}.editor-actions-dropdown__submenu{display:none;position:absolute;top:0;right:100%;z-index:21;min-width:240px;max-height:320px;overflow:auto;padding:6px;margin:0;list-style:none;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.18)}.editor-actions-dropdown__submenu-root:hover>.editor-actions-dropdown__submenu,.editor-actions-dropdown__submenu-root:focus-within>.editor-actions-dropdown__submenu{display:block}.editor-actions-dropdown__submenu-caret{margin-left:auto;font-size:14px;line-height:1;opacity:.7}.editor-actions-dropdown__item{width:100%;display:flex;align-items:center;justify-content:flex-start;height:36px;padding:0 10px;border:1px solid rgba(0,0,0,0);border-radius:8px;background:rgba(0,0,0,0);color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));cursor:pointer;font-size:12px;font-weight:600;text-align:left}.editor-actions-dropdown__item--compact{height:32px;font-weight:500}.editor-actions-dropdown__item:hover{background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.12)}.editor-actions-dropdown__item:disabled{opacity:.5;cursor:default}.editor-actions-dropdown__item:focus-visible{outline:2px solid hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));outline-offset:2px}.editor-button{display:inline-flex;align-items:center;justify-content:center;height:36px;min-width:120px;padding:0 12px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:6px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));cursor:pointer}.debug-button{min-width:auto;height:auto;padding:4px 12px;font-size:12px;line-height:1.2;border-radius:999px;background:hsl(var(--card, var(--rb-card, 0 0% 100%))/0.95);border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.15);box-shadow:0 2px 4px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.08)}.debug-button:hover{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.3)}.editor-button:disabled{opacity:.6;cursor:default}.editor-save-button,.editor-save-previewconfig-button{color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font-weight:600;font-size:12px}.builder__add-button{width:100%;margin-top:12px;min-height:52px;border-style:dashed;border-color:hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font-weight:600;gap:10px;transition:border-color .2s ease,background .2s ease,color .2s ease}.builder__add-button-icon{display:inline-flex;width:28px;height:28px;border-radius:999px;align-items:center;justify-content:center;background:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)));font-size:18px;line-height:1}.builder__add-button:hover{border-color:hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.side-tool-container{position:absolute;top:0;left:0;z-index:5}.side-tool select{width:100%;font-size:11px;padding:4px 6px}.side-tool .debug-button{border-radius:0;width:100%;justify-content:center}.attributes-editor__component-meta{margin-bottom:20px;padding:12px 16px;border-radius:8px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.attributes-editor__component-title,.attributes-editor__field-label{margin:0;font-weight:700}.attributes-editor__component-title{font-size:18px;text-transform:capitalize}.attributes-editor__component-description{margin:6px 0 0;font-size:14px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.attributes-editor__tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.attributes-editor__tab-button{padding:6px 12px;border-radius:6px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));cursor:pointer;font-weight:600;transition:background .15s ease,color .15s ease}.attributes-editor__tab-button:disabled{opacity:.4;cursor:default}.attributes-editor__tab-button--active{background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.attributes-editor__field-wrapper{position:relative;margin-bottom:16px;display:flex;flex-direction:column;gap:4px;width:100%}.attributes-editor__field-wrapper--boolean{flex-direction:row;align-items:center;gap:8px}.attributes-editor__field-label{font-size:14px}.attributes-editor__empty-state{padding:8px;opacity:.7}.attributes-editor__size-grid{display:grid;gap:12px;grid-template-columns:repeat(2, minmax(0, 1fr))}@media(max-width: 1400px){.attributes-editor__size-grid{grid-template-columns:minmax(0, 1fr)}}.attributes-editor__size-grid-item{min-width:0}.attributes-editor__size-field{display:flex;gap:6px;align-items:center;width:100%}.attributes-editor__size-field-input{flex:1;min-width:0;height:36px;line-height:36px}.attributes-editor__size-field-select{flex:0 0 72px;min-width:60px;height:36px;line-height:36px;padding-inline:6px}.attributes-editor__mockable{margin-bottom:16px;padding:12px 16px;border-radius:8px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.attributes-editor__mockable-title{margin:0 0 8px 0;font-weight:700}.attributes-editor__mockable-table{width:100%;border-collapse:collapse}.attributes-editor__mockable-row+.attributes-editor__mockable-row{border-top:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)))}.attributes-editor__mockable-name{padding:8px 0;font-weight:600;text-transform:capitalize}.attributes-editor__mockable-action{padding:8px 0;text-align:right}.field-info-tooltip{position:relative}.field-info-tooltip__trigger{position:absolute;top:0;right:0;font-size:11px;line-height:1.2;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));cursor:pointer;font-weight:600;white-space:nowrap;text-transform:uppercase;letter-spacing:.5px;background:rgba(0,0,0,0);border:none;padding:0;font-family:inherit;display:inline-flex;align-items:center;gap:4px}.field-info-tooltip__trigger:focus-visible{outline:2px solid hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.4);outline-offset:2px}.field-info-tooltip__bubble{position:absolute;top:50%;right:100%;transform:translate(-8px, -50%);background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)));padding:6px 10px;border-radius:4px;font-size:12px;line-height:1.4;width:220px;text-align:left;box-shadow:0 6px 16px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.2);z-index:20;opacity:0;pointer-events:none;transition:opacity .15s ease,transform .15s ease}.field-info-tooltip__bubble--visible{opacity:1;transform:translate(-12px, -50%)}.special-category-section{border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:8px;padding:12px;margin-bottom:16px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.special-category-section__header{display:flex;justify-content:space-between;align-items:center;gap:8px}.special-category-section__title{margin:0;font-weight:700}.special-category-section__toggle{border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));border-radius:4px;padding:4px 10px;cursor:pointer;font-weight:600;transition:background .15s ease,color .15s ease,border-color .15s ease}.special-category-section__toggle[data-active=true]{background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.special-category-section__description{margin:8px 0 0;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));font-size:13px;padding-bottom:16px}.special-category-section__fields{display:grid;gap:8px;margin-top:12px}.special-category-section__fields--box{grid-template-columns:repeat(2, minmax(0, 1fr));grid-template-areas:"top top" "left right" "bottom bottom"}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=top]){grid-area:top}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=left]){grid-area:left}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=right]){grid-area:right}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=bottom]){grid-area:bottom}@media(max-width: 1400px){.special-category-section__fields--box{grid-template-columns:minmax(0, 1fr);grid-template-areas:"top" "left" "right" "bottom"}}.special-category-section__field{min-width:0}.special-category-section__placeholder{margin-top:8px;font-style:italic;opacity:.7}.mockos-router{width:100%;height:100%;position:relative}.mockos-screen{width:100%;height:100%}.mockos-screen--center{display:flex;flex-direction:column;align-items:center;justify-content:center}.mockos-screen--launchscreen{background-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.mockos-screen--home{padding:20px;background-color:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.mockos-screen--onboard{padding:20px;background-color:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.mockos-screen--subscription{padding:20px;background-color:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.mockos-screen__title{font-size:32px;font-weight:bold;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));margin-bottom:16px}.mockos-screen__subtitle{font-size:16px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.mockos-screen__heading{font-size:24px;font-weight:bold;margin-bottom:20px}.mockos-screen__text{font-size:16px;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));margin-bottom:12px}.mockos-screen__plan{padding:16px;border-radius:8px;text-align:center;margin-bottom:12px}.mockos-screen__plan--premium{background-color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.mockos-screen__plan--basic{background-color:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.mockos-launcher{width:100%;height:100%;padding:40px 20px;display:flex;flex-direction:column}.mockos-launcher__grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:20px;padding:20px}.mockos-launcher__app{display:flex;flex-direction:column;align-items:center;gap:8px;background:rgba(0,0,0,0);border:none;cursor:pointer;padding:8px;border-radius:12px;transition:background-color .2s}.mockos-launcher__app:hover{background-color:hsl(var(--card, var(--rb-card, 0 0% 100%))/0.1)}.mockos-launcher__app:active{transform:scale(0.95)}.mockos-launcher__app-icon{width:60px;height:60px;border-radius:13px;overflow:hidden;box-shadow:0 2px 8px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.3)}.mockos-launcher__app-icon svg{width:100%;height:100%;display:block}.mockos-launcher__app-name{font-size:12px;color:hsl(var(--card, var(--rb-card, 0 0% 100%)));text-align:center;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rb-bottom-bar{position:fixed;left:50%;transform:translateX(-76%);bottom:10px;z-index:200;height:50px;border-radius:24px;background-color:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0 10px;gap:10px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));box-shadow:0 8px 20px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.08)}.rb-bottom-bar__button{appearance:none;border:none;background:rgba(0,0,0,0);padding:8px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.rb-bottom-bar__button.is-active{color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));background:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));background:color-mix(in srgb, hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))), transparent 92%);box-shadow:0 0 10px hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))/0.18)}.rb-bottom-bar__button+.rb-bottom-bar__button{border-left:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));padding-left:14px;margin-left:4px}.rb-bottom-bar__button--rtl{gap:6px;padding-right:10px}.rb-bottom-bar__rtl-text{font-size:12px;font-weight:700;letter-spacing:.3px;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.rb-bottom-bar__spacer{flex:1 1 auto}.rb-bottom-bar__langs{display:inline-flex;align-items:center;gap:0;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.rb-bottom-bar__lang{appearance:none;border:none;background:rgba(0,0,0,0);padding:6px 6px;cursor:pointer;font-size:12px;font-weight:700;text-transform:lowercase;color:inherit}.rb-bottom-bar__lang.is-active{color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));text-shadow:0 0 12px hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))/0.25)}.rb-bottom-bar__lang+.rb-bottom-bar__lang{border-left:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));margin-left:8px;padding-left:14px}.modal{position:fixed;inset:0;z-index:10000}.modal__overlay{position:absolute;inset:0;background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.4);z-index:0}.modal__content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-radius:12px;box-shadow:0 10px 30px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.12);width:min(960px,100vw - 40px);max-height:calc(100vh - 120px);display:flex;flex-direction:column;overflow:hidden;z-index:1}.modal__header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));gap:12px}.modal__title{margin:0;font-size:16px;font-weight:700}.add-component-modal{display:flex;flex-direction:column;height:100%}.add-component-modal__body{flex:1;overflow-y:auto;padding-bottom:24px}.add-component-modal__section{padding:0 24px;margin-bottom:24px}.add-component-modal__section:first-of-type{margin-top:24px}.add-component-modal__section-title{font-size:16px;font-weight:600;margin-bottom:12px}.add-component-modal__toggle{display:flex;align-items:center;gap:12px;margin:0 24px 24px;padding:12px 0;font-weight:500;user-select:none}.add-component-modal__toggle input{width:18px;height:18px}.add-component-modal__group{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:12px;padding:16px;margin-bottom:12px;box-shadow:0 10px 20px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.05)}.add-component-modal__group-title{font-size:14px;font-weight:600;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));margin-bottom:12px}.add-component-modal__grid{padding:16px;display:grid;grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));gap:12px;overflow:auto}.add-component-modal__card{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:10px;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));cursor:pointer;text-align:left;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;color:inherit}.add-component-modal__card:hover{border-color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));box-shadow:0 10px 25px hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))/0.15);transform:translateY(-2px)}.add-component-modal__thumbnail{width:100%;aspect-ratio:4/3;border-radius:8px;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));border:1px dashed hsl(var(--border, var(--rb-border, 220 13% 91%)));display:flex;align-items:center;justify-content:center;color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.add-component-modal__title{font-weight:600;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.add-component-modal__empty{margin:12px 0;padding:16px;border:1px dashed hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:10px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));font-size:14px;text-align:center}.device-selector-modal{padding-bottom:24px}.device-selector-modal__grid{padding:24px;display:grid;grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));gap:12px;overflow:auto}.device-selector-modal__grid .editor-device-button{height:80px;min-width:unset}.color-modal{width:min(520px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.color-modal__selected{display:flex;align-items:center;justify-content:space-between;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));border-radius:8px;padding:12px 16px}.color-modal__selected-info{display:flex;align-items:center;gap:12px}.color-modal__selected-preview{width:32px;height:32px;border-radius:6px;border:1px solid hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.1)}.color-modal__selected-label{margin:0;font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.color-modal__selected-value{margin:0;font-weight:600}.color-modal__toggle{display:flex;flex-direction:column;gap:6px;padding:0 8px}.color-modal__toggle-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));cursor:pointer}.color-modal__toggle-input{width:16px;height:16px;accent-color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)))}.color-modal__toggle-description{margin:0;font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.color-modal__link-button{border:none;background:none;color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));font-weight:600;font-size:13px;cursor:pointer;padding:4px 8px}.color-modal__add-color{position:relative;display:inline-flex;align-items:center}.color-modal__add-color-input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;border:0;padding:0;margin:0}.color-section{display:flex;flex-direction:column;gap:8px}.color-section__header{display:flex;align-items:center;justify-content:space-between;gap:8px}.color-section__title{margin:0;font-weight:600}.color-section__swatches{display:grid;grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));gap:8px}.color-section__empty{margin:0;font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.color-modal__swatch{border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:8px;padding:8px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));display:flex;flex-direction:column;gap:6px;text-align:left;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.color-modal__swatch--active{border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));box-shadow:0 0 0 1px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))) inset}.color-modal__swatch-preview{width:100%;height:32px;border-radius:6px}.color-modal__swatch-preview--light{border:1px solid hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.1)}.color-modal__swatch-label{font-size:12px;font-weight:600;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.color-modal__swatch-value{font-size:11px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.color-modal__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;opacity:0}.localication-modal__content{width:calc(100vw - 32px);height:calc(100vh - 32px);max-width:1600px;max-height:calc(100vh - 32px);padding:0;display:flex;flex-direction:column}.localication-modal__header{padding:16px 24px;border-bottom:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));display:flex;align-items:center;gap:16px}.localication-modal__header-main{flex:1;display:flex;flex-direction:column;gap:4px}.localication-modal__description{margin:0;font-size:13px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.localication-modal__body{flex:1;min-height:0;padding:24px;display:flex;flex-direction:column;gap:16px;overflow:auto}.localication-modal__editor{flex:1;min-height:0;overflow:auto;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:8px;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.localication-modal__json-editor{height:100%;width:100%;display:block;padding:12px;overflow:auto}.modal--scrollable .localication-modal__content{overflow:hidden}.modal--scrollable .localication-modal__body{overflow:auto}.mockable-feature-modal{width:min(520px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.mockable-feature-modal__body{min-height:120px}.product-edit-modal{width:min(640px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.product-edit-modal__body{display:flex;flex-direction:column;gap:12px}.product-edit-modal__textarea{min-height:90px;padding:8px;resize:vertical}.product-presets-modal{width:min(960px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.product-presets-modal__body{display:flex;flex-direction:column;gap:16px}.product-presets-modal__section-title{margin:0;font-weight:700}.product-presets-modal__muted{margin:6px 0 0;opacity:.7}.product-presets-modal__grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));gap:12px;margin-top:12px}.product-presets-modal__card{border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:12px;padding:12px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));display:flex;flex-direction:column;gap:8px}.product-presets-modal__card-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.product-presets-modal__card-title{margin:0;font-weight:700}.product-presets-modal__card-count{margin:0;opacity:.7;font-size:12px}.product-presets-modal__card-list{margin:0;padding-left:18px}.product-presets-modal__card-item{font-size:12px;word-break:break-word}.product-presets-modal__actions{display:flex;gap:8px;margin-top:8px}.benefit-edit-modal{width:min(640px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.benefit-edit-modal__body{display:flex;flex-direction:column;gap:12px}.benefit-presets-modal{width:min(960px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.benefit-presets-modal__body{display:flex;flex-direction:column;gap:16px}.benefit-presets-modal__section-title{margin:0;font-weight:700}.benefit-presets-modal__muted{margin:6px 0 0;opacity:.7}.benefit-presets-modal__grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));gap:12px;margin-top:12px}.benefit-presets-modal__card{border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:12px;padding:12px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));display:flex;flex-direction:column;gap:8px}.benefit-presets-modal__card-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.benefit-presets-modal__card-title{margin:0;font-weight:700}.benefit-presets-modal__card-count{margin:0;opacity:.7;font-size:12px}.benefit-presets-modal__card-list{margin:0;padding-left:18px}.benefit-presets-modal__card-item{font-size:12px;word-break:break-word}.benefit-presets-modal__actions{display:flex;gap:8px;margin-top:8px}.embla{max-width:48rem;margin:auto;--slide-height: 19rem;--slide-spacing: 1rem;--slide-size: 70%}.embla__viewport{overflow:hidden}.embla__container{display:flex;touch-action:pan-y pinch-zoom}.embla__slide{transform:translate3d(0, 0, 0);min-width:0;padding-left:var(--slide-spacing);flex:0 0 100%}.embla__slide__number{box-shadow:inset 0 0 0 .2rem var(--detail-medium-contrast);border-radius:1.8rem;font-size:4rem;font-weight:600;display:flex;align-items:center;justify-content:center;height:var(--slide-height);user-select:none}.embla__controls{display:grid;grid-template-columns:auto 1fr;justify-content:space-between;gap:1.2rem;margin-top:1.8rem}.embla__buttons{display:grid;grid-template-columns:repeat(2, 1fr);gap:.6rem;align-items:center}.embla__button{-webkit-tap-highlight-color:rgba(var(--text-high-contrast-rgb-value), 0.5);-webkit-appearance:none;appearance:none;background-color:rgba(0,0,0,0);touch-action:manipulation;display:inline-flex;text-decoration:none;cursor:pointer;border:0;padding:0;margin:0;box-shadow:inset 0 0 0 .2rem var(--detail-medium-contrast);width:3.6rem;height:3.6rem;z-index:1;border-radius:50%;color:var(--text-body);display:flex;align-items:center;justify-content:center}.embla__button:disabled{color:var(--detail-high-contrast)}.embla__button__svg{width:35%;height:35%}.embla__dots{flex-wrap:wrap;margin-right:0;height:50px;margin:0 auto}.embla__dot{-webkit-tap-highlight-color:rgba(var(--text-high-contrast-rgb-value), 0.5);-webkit-appearance:none;appearance:none;background-color:rgba(0,0,0,0);--embla-dot-color: var(--detail-medium-contrast);touch-action:manipulation;display:inline-flex;text-decoration:none;cursor:pointer;border:0;padding:0;margin:0;width:max(2.6rem,var(--embla-dot-size, 1.4rem) + 1.2rem);height:max(2.6rem,var(--embla-dot-size, 1.4rem) + 1.2rem);display:flex;align-items:center;border-radius:50%}.embla__dot:after{background-color:var(--embla-dot-color);width:var(--embla-dot-size, 1.4rem);height:var(--embla-dot-size, 1.4rem);border-radius:50%;display:flex;align-items:center;content:""}.embla__dot--selected{--embla-dot-color: var(--text-body)}.carousel-provider{height:100%}.embla{height:100%}.embla__viewport{height:100%;display:flex;flex-direction:column}.embla__container{flex:1}
1
+ :root{--rb-background: 220 14.3% 95.9%;--rb-foreground: 220.9 39.3% 11%;--rb-card: 0 0% 100%;--rb-card-foreground: 220.9 39.3% 11%;--rb-muted: 220 14.3% 95.9%;--rb-muted-foreground: 220 8.9% 46.1%;--rb-primary: 221.2 83.2% 53.3%;--rb-primary-foreground: 0 0% 100%;--rb-destructive: 0 84.2% 60.2%;--rb-destructive-foreground: 0 0% 100%;--rb-border: 220 13% 91%;color-scheme:light}.dark{--rb-background: 222.2 84% 4.9%;--rb-foreground: 210 40% 98%;--rb-card: 222.2 84% 4.9%;--rb-card-foreground: 210 40% 98%;--rb-muted: 217.2 32.6% 17.5%;--rb-muted-foreground: 215 20.2% 65.1%;--rb-primary: 217.2 91.2% 59.8%;--rb-primary-foreground: 222.2 84% 4.9%;--rb-destructive: 0 62.8% 30.6%;--rb-destructive-foreground: 210 40% 98%;--rb-border: 217.2 32.6% 17.5%;color-scheme:dark}@media(prefers-color-scheme: dark){:root:not(.light):not(.dark){--rb-background: 222.2 84% 4.9%;--rb-foreground: 210 40% 98%;--rb-card: 222.2 84% 4.9%;--rb-card-foreground: 210 40% 98%;--rb-muted: 217.2 32.6% 17.5%;--rb-muted-foreground: 215 20.2% 65.1%;--rb-primary: 217.2 91.2% 59.8%;--rb-primary-foreground: 222.2 84% 4.9%;--rb-destructive: 0 62.8% 30.6%;--rb-destructive-foreground: 210 40% 98%;--rb-border: 217.2 32.6% 17.5%;color-scheme:dark}}*,*::before,*::after{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0}body{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden}button{font-family:inherit}input,button{font-size:100%}p{margin:0;padding:0}html,body,#root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",sans-serif}.editor-container{height:100vh;width:100%;display:flex;overflow:hidden}.app-main{flex:1 1 auto;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.page-bg{background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.grid-cards{display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));gap:16px}.btn-add{height:120px;border:2px dashed hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));border-radius:8px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));cursor:pointer;font-weight:600;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));transition:border-color .2s ease,transform .1s ease,box-shadow .2s ease;box-shadow:0 1px 2px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.04)}.btn-add:hover{border-color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));transform:translateY(-1px);box-shadow:0 6px 16px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.1)}.split-left{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25) rgba(0,0,0,0)}.split-left::-webkit-scrollbar{width:8px;height:4px}.split-left{flex:1 1 10%;min-width:200px;border-right:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));overflow:auto}.split-right{position:relative;display:flex;flex-direction:column;flex:1 1 45%;width:100%;height:auto;max-height:calc(100vh - 120px);overflow:auto;padding:16px;background-image:var(--rb-canvas-bg, none);background-size:cover;background-position:center;background-repeat:repeat;background-size:500px auto}.split-right>*{position:relative;z-index:1}.dark .split-right{--rb-canvas-bg: none !important}.split-third{flex:1 1 25%;border-right:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));overflow:auto;overflow-x:hidden;max-height:calc(100vh - 120px)}.stage{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:4px;align-self:center;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));box-shadow:0 18px 50px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.16),0 6px 16px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.1);overflow:hidden}.stage .scroll-container::-webkit-scrollbar{width:8px;height:8px}.stage .scroll-container::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.stage .scroll-container::-webkit-scrollbar-thumb{background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25);border-radius:8px}.stage .scroll-container{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25) rgba(0,0,0,0)}.rb-node-selected{border:1px solid hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)))}.app-header{position:sticky;top:0;z-index:10;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-bottom:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));height:60px;padding:0 16px;display:flex;align-items:center;justify-content:space-between}.app-header a{color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));text-decoration:none}.app-header__brand{font-weight:700}.app-header__nav{display:flex;gap:16px}.warning{color:hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)));font-size:12px;font-weight:600;margin-bottom:16px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.breadcrumb__back{display:inline-flex;align-items:center;gap:4px;padding:0;border:none;background:none;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font-weight:600;cursor:pointer;transition:color .2s ease}.breadcrumb__back:hover,.breadcrumb__back:focus-visible{color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));outline:none}.breadcrumb__back-icon{font-size:14px;line-height:1}.breadcrumb__list{list-style:none;padding:0;margin:0;display:flex;align-items:center;gap:8px}.breadcrumb__item{display:inline-flex;align-items:center}.breadcrumb__item--clickable{cursor:pointer}.breadcrumb__separator{color:hsl(var(--border, var(--rb-border, 220 13% 91%)));margin:0 4px}.breadcrumb__link{color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));text-decoration:none}.breadcrumb__link:hover{text-decoration:underline}.breadcrumb__current{color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.device-status-bar{position:relative;z-index:100}.device-navigation-bar{position:relative;z-index:100}.mobile-panel-toggle{display:none;padding:0 16px 12px;gap:8px}.mobile-panel-toggle__button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:8px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font-weight:600;cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}.mobile-panel-toggle__button:focus-visible{outline:2px solid hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));outline-offset:2px}.mobile-panel-toggle__button--active{background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));box-shadow:0 6px 16px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.15)}.mobile-panel-toggle__icon{width:18px;height:12px;display:inline-flex}.mobile-panel-toggle__icon svg{width:100%;height:100%}.mobile-panel-toggle__label{line-height:1}.split-panel__close{display:none;position:absolute;top:12px;right:12px;border:none;border-radius:8px;background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.7);color:hsl(var(--card, var(--rb-card, 0 0% 100%)));padding:6px 16px;font-weight:600;cursor:pointer;z-index:5}.editor-container__overlay{display:none}@media(max-width: 1000px){.editor-container{position:relative;min-height:calc(100vh - 60px);flex-direction:column}.split-left,.split-third{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));box-shadow:0 25px 60px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.15);transition:transform .3s ease,opacity .3s ease;opacity:0;pointer-events:none;z-index:4}.split-left{transform:translate3d(-100%, 0, 0)}.split-third{transform:translate3d(100%, 0, 0)}.split-left.is-open,.split-third.is-open{opacity:1;pointer-events:auto;transform:translate3d(0, 0, 0)}.split-right{flex:1 1 auto;min-width:0;min-height:calc(100vh - 120px);padding:16px;padding-bottom:120px;position:relative}.mobile-panel-toggle{display:flex}.split-panel__close{display:inline-flex}.editor-container__overlay{display:block;position:absolute;inset:0;background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.35);border:none;padding:0;margin:0;cursor:pointer;z-index:3}}@media(max-width: 900px){.split-right__controls{top:12px;z-index:5;padding-bottom:12px}.split-right__controls .side-tool{width:100%}}.screen-preview{position:relative;width:100%;height:100%}.rb-loading-overlay{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;pointer-events:none;background:hsl(var(--card, var(--rb-card, 0 0% 100%))/0.55);backdrop-filter:blur(1px)}.rb-loading{position:relative;top:-20%;width:min(320px,70vw);max-width:360px;opacity:.95}.rb-empty-preview{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;pointer-events:none}.rb-empty-preview__card{width:min(320px,100% - 32px);padding:14px 16px;border-radius:8px;border:1px dashed hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%))/0.72);backdrop-filter:blur(1px);text-align:center}.rb-empty-preview__title{font-weight:700;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));margin-bottom:4px}.rb-empty-preview__hint{font-size:13px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.builder{display:flex;flex-direction:column;gap:12px}.builder__breadcrumbs{display:flex;flex-direction:row;gap:8px}.builder__breadcrumb{color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));font-size:12px}.builder__current{font-weight:600}.builder__list{display:flex;flex-wrap:wrap;gap:8px}.builder__list-item{flex:1 1 220px;min-width:220px}.builder__button{position:relative;display:flex;align-items:stretch}.builder__button>.builder__button-link{flex:1;min-width:0;display:flex;align-items:center;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:4px;height:40px;line-height:37px;padding:0 4px;margin:0;background:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)));font-size:clamp(11px,1.3vw,13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;border:none;text-align:left}.builder__button-actions{position:relative;display:flex;align-items:stretch}.builder__button-actions-trigger{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:4px;height:40px;width:40px;display:inline-flex;align-items:center;justify-content:center;border:none;margin-left:4px;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));cursor:pointer;box-shadow:inset 0 0 0 1px hsl(var(--border, var(--rb-border, 220 13% 91%)))}.builder__button-actions-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:160px;padding:6px;margin:0;list-style:none;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-radius:4px;box-shadow:0 10px 25px rgba(0,0,0,.15);border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));z-index:20}.builder__button-actions-item{width:100%;text-align:left;border:none;background:rgba(0,0,0,0);padding:8px 10px;border-radius:4px;cursor:pointer;font-size:12px;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.builder__button-actions-item:hover{background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.builder__button-actions-item:disabled{opacity:.5;cursor:not-allowed}.builder__button-actions-item--danger{color:hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)))}.builder__sort-controls{display:flex;flex-direction:column;gap:4px}.builder__sort-button{width:32px;height:18px;border:none;border-radius:4px;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));font-size:14px;cursor:pointer;line-height:1;box-shadow:inset 0 0 0 1px hsl(var(--border, var(--rb-border, 220 13% 91%)));padding:0}.builder__sort-button:disabled{opacity:.4;cursor:not-allowed}.builder__button-condition{position:absolute;bottom:-10px;font-size:8px}.builder__node{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:4px;padding:6px}.builder__node-type{margin:0 0 8px 0;font-weight:600}.builder__children{position:relative;display:flex;flex-direction:column;gap:16px}.builder__children>:not(:first-child){margin-left:16px}.builder__children::before{content:"";position:absolute;left:6px;top:24px;bottom:0;width:1px;background:hsl(var(--border, var(--rb-border, 220 13% 91%)))}.builder__text,.builder__placeholder{color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));font-size:12px}.rb-project-debug{display:flex;width:100%;height:calc(100vh - 60px);overflow:hidden;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.rb-project-debug__json{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25) rgba(0,0,0,0)}.rb-project-debug__json::-webkit-scrollbar{width:8px;height:4px}.rb-project-debug__json{flex:0 0 34%;min-width:320px;max-width:640px;border-right:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));overflow:auto;padding:16px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.rb-project-debug__preview{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25) rgba(0,0,0,0)}.rb-project-debug__preview::-webkit-scrollbar{width:8px;height:4px}.rb-project-debug__preview{position:relative;flex:1 1 auto;overflow:auto;padding:16px;display:flex;align-items:center;justify-content:center;background-image:var(--rb-canvas-bg, none);background-position:center;background-repeat:repeat;background-size:500px auto}.dark .rb-project-debug__preview{--rb-canvas-bg: none !important}.rb-project-debug__error{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25) rgba(0,0,0,0)}.rb-project-debug__error::-webkit-scrollbar{width:8px;height:4px}.rb-project-debug__error{flex:0 0 32%;min-width:280px;max-width:520px;border-left:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));overflow:auto;padding:16px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.rb-project-debug__title{margin:0 0 4px 0;font-size:16px;font-weight:700;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.rb-project-debug__error-block{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:4px;padding:12px;margin:0 0 12px 0;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.rb-project-debug__error-label{font-size:12px;font-weight:800;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));margin:0 0 4px 0}.rb-project-debug__error-pre{margin:0;padding:4px;border-radius:4px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:11px;line-height:1.45;white-space:pre-wrap;word-break:break-word;overflow:auto;max-height:220px}.rb-project-debug__meta{margin:0 0 12px 0;font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.rb-project-debug__meta-label{font-weight:700;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.rb-project-debug__toolbar{display:flex;gap:4px;align-items:center;margin:0 0 12px 0}.rb-project-debug__toolbar .editor-button{min-width:0;height:34px;padding:0 12px}.rb-project-debug__below-name{margin:0 0 12px 0}.rb-project-debug__error-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px 0}.rb-project-debug__error-head .rb-project-debug__title{margin:0}.rb-project-debug__error-head .editor-button{min-width:0;height:34px;padding:0 12px}.rb-project-validation__actions{display:flex;gap:4px;align-items:center}.rb-project-validation__actions .editor-button{min-width:0;height:34px;padding:0 12px}.rb-project-debug__code{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:4px;margin:0;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px;line-height:1.5;white-space:pre;overflow:auto;max-height:calc(100vh - 60px - 160px);background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.rb-project-validation__error{margin:0 0 12px 0;font-size:13px;line-height:1.4;color:hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)));font-weight:600}.rb-project-validation__error--render{color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)))}.rb-project-validation__error-label{font-weight:800}@media(max-width: 1000px){.rb-project-debug{flex-direction:column;height:calc(100vh - 60px)}.rb-project-debug__json{flex:0 0 auto;width:100%;min-width:0;max-width:none;border-right:none;border-bottom:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));max-height:45%}.rb-project-debug__preview{flex:1 1 auto;width:100%;min-height:0}.rb-project-debug__error{flex:0 0 auto;width:100%;min-width:0;max-width:none;border-left:none;border-top:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));max-height:40%}}.editor-controls{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:16px}.editor-section{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:8px;padding:16px}.form-row{display:grid;grid-template-columns:160px 1fr;align-items:center;gap:12px;margin-bottom:12px}.form-actions{display:flex;gap:12px;margin-top:16px}.btn{padding:8px 12px;border-radius:8px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%)));cursor:pointer;transition:background .2s ease,box-shadow .2s ease}.btn:hover{background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));box-shadow:0 6px 16px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.06)}.input{display:inline-flex;align-items:center;height:32px;padding:0 8px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:8px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.input:focus{border-color:hsl(var(--border, var(--rb-border, 220 13% 91%)));box-shadow:0 0 0 3px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.04)}.input--color{padding:0;width:40px;height:28px;border-radius:6px;cursor:pointer}.input--color::-webkit-color-swatch-wrapper{padding:0}.input--color::-webkit-color-swatch{border:none;border-radius:4px}.input--color::-moz-color-swatch{border:none;border-radius:4px}.builder-checkbox{display:inline-flex;flex-direction:column;gap:4px}.builder-checkbox__label{display:inline-flex;align-items:center;gap:10px;cursor:pointer;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font-weight:600;position:relative;user-select:none}.builder-checkbox__native{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.builder-checkbox__control{width:20px;height:20px;border-radius:6px;border:2px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%)));display:inline-flex;align-items:center;justify-content:center;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease;box-shadow:0 2px 6px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.12)}.builder-checkbox__control::after{content:"";width:6px;height:12px;border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0);transform:rotate(45deg) scale(0);transform-origin:center;transition:transform .2s ease,border-color .2s ease}.builder-checkbox__label:hover .builder-checkbox__control{transform:translateY(-1px)}.builder-checkbox__native:focus-visible+.builder-checkbox__control{box-shadow:0 0 0 3px hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))/0.3)}.builder-checkbox__native:checked+.builder-checkbox__control{background:linear-gradient(135deg, hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))), hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))));border-color:rgba(0,0,0,0);box-shadow:0 6px 14px hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))/0.35)}.builder-checkbox__native:checked+.builder-checkbox__control::after{border-color:hsl(var(--card, var(--rb-card, 0 0% 100%)));transform:rotate(45deg) scale(1)}.builder-checkbox__text{font-size:14px;line-height:1.4}.builder-checkbox__helper{font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));margin-left:30px}.builder-checkbox--disabled{opacity:.6}.builder-checkbox--disabled .builder-checkbox__label{cursor:not-allowed}.editor-tabs{display:flex;gap:8px;border-bottom:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)))}.editor-tab{cursor:pointer;border:1px solid rgba(0,0,0,0);border-top-left-radius:4px;border-top-right-radius:4px;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));padding:8px 12px;display:inline-flex;align-items:center;white-space:nowrap}.editor-tab__label{display:inline-flex;align-items:center;white-space:nowrap;line-height:1.2;font-size:clamp(.85rem,.9rem + .2vw,1rem)}.editor-tab--active{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-color:hsl(var(--border, var(--rb-border, 220 13% 91%))) hsl(var(--border, var(--rb-border, 220 13% 91%))) hsl(var(--card, var(--rb-card, 0 0% 100%))) hsl(var(--border, var(--rb-border, 220 13% 91%)))}.editor-panels{padding:12px}.editor-panels.editor-panels-debug{padding:0}.jer-editor-container{padding-left:0 !important;padding-right:0 !important}.editor-panel{display:none}.editor-panel--active{display:block}.editor-header{display:flex;align-items:center;gap:12px;padding:0 16px;height:60px;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));border-bottom:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)))}.editor-header__title{color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font-weight:600}.editor-header__devices{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.25) rgba(0,0,0,0)}.editor-header__devices::-webkit-scrollbar{width:8px;height:4px}.editor-header__devices{display:flex;flex-direction:row;align-items:stretch;gap:8px;overflow:auto;height:60px;padding:4px}.editor-device-button{position:relative;min-width:160px;height:100%;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:6px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));cursor:pointer;font-size:12px}.editor-device-button.editor-device-button--selected{border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.editor-device-button img{position:absolute;bottom:4px;right:4px;width:16px;height:16px}.editor-header__actions{margin-left:auto;display:flex;align-items:center;gap:8px}.editor-actions-dropdown{position:relative;display:inline-flex;align-items:center}.editor-actions-dropdown__trigger{min-width:auto;gap:8px}.editor-actions-dropdown__caret{font-size:16px;line-height:1;opacity:.8}.editor-actions-dropdown__menu{position:absolute;top:calc(100% + 6px);right:0;z-index:20;min-width:220px;padding:6px;margin:0;list-style:none;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.18)}.editor-actions-dropdown__submenu-root{position:relative}.editor-actions-dropdown__submenu-root::after{content:"";position:absolute;top:0;right:100%;width:12px;height:100%}.editor-actions-dropdown__submenu{display:none;position:absolute;top:0;right:100%;z-index:21;min-width:240px;max-height:320px;overflow:auto;padding:6px;margin:0;list-style:none;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.18)}.editor-actions-dropdown__submenu-root:hover>.editor-actions-dropdown__submenu,.editor-actions-dropdown__submenu-root:focus-within>.editor-actions-dropdown__submenu{display:block}.editor-actions-dropdown__submenu-caret{margin-left:auto;font-size:14px;line-height:1;opacity:.7}.editor-actions-dropdown__item{width:100%;display:flex;align-items:center;justify-content:flex-start;height:36px;padding:0 10px;border:1px solid rgba(0,0,0,0);border-radius:8px;background:rgba(0,0,0,0);color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));cursor:pointer;font-size:12px;font-weight:600;text-align:left}.editor-actions-dropdown__item--compact{height:32px;font-weight:500}.editor-actions-dropdown__item:hover{background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.12)}.editor-actions-dropdown__item:disabled{opacity:.5;cursor:default}.editor-actions-dropdown__item:focus-visible{outline:2px solid hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));outline-offset:2px}.editor-button{display:inline-flex;align-items:center;justify-content:center;height:36px;min-width:120px;padding:0 12px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:6px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));cursor:pointer}.debug-button{min-width:auto;height:auto;padding:4px 12px;font-size:12px;line-height:1.2;border-radius:999px;background:hsl(var(--card, var(--rb-card, 0 0% 100%))/0.95);border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.15);box-shadow:0 2px 4px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.08)}.debug-button:hover{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.3)}.editor-button:disabled{opacity:.6;cursor:default}.editor-save-button,.editor-save-previewconfig-button{color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font-weight:600;font-size:12px}.builder__add-button{width:100%;margin-top:12px;min-height:52px;border-style:dashed;border-color:hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));font-weight:600;gap:10px;transition:border-color .2s ease,background .2s ease,color .2s ease}.builder__add-button-icon{display:inline-flex;width:28px;height:28px;border-radius:999px;align-items:center;justify-content:center;background:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)));font-size:18px;line-height:1}.builder__add-button:hover{border-color:hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.side-tool-container{position:absolute;top:0;left:0;z-index:5}.side-tool select{width:100%;font-size:11px;padding:4px 6px}.side-tool .debug-button{border-radius:0;width:100%;justify-content:center}.attributes-editor__component-meta{margin-bottom:20px;padding:12px 16px;border-radius:8px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.attributes-editor__component-title,.attributes-editor__field-label{margin:0;font-weight:700}.attributes-editor__component-title{font-size:18px;text-transform:capitalize}.attributes-editor__component-description{margin:6px 0 0;font-size:14px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.attributes-editor__tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.attributes-editor__tab-button{padding:6px 12px;border-radius:6px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));cursor:pointer;font-weight:600;transition:background .15s ease,color .15s ease}.attributes-editor__tab-button:disabled{opacity:.4;cursor:default}.attributes-editor__tab-button--active{background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.attributes-editor__field-wrapper{position:relative;margin-bottom:16px;display:flex;flex-direction:column;gap:4px;width:100%}.attributes-editor__field-wrapper--boolean{flex-direction:row;align-items:center;gap:8px}.attributes-editor__field-label{font-size:14px}.attributes-editor__empty-state{padding:8px;opacity:.7}.attributes-editor__size-grid{display:grid;gap:12px;grid-template-columns:repeat(2, minmax(0, 1fr))}@media(max-width: 1400px){.attributes-editor__size-grid{grid-template-columns:minmax(0, 1fr)}}.attributes-editor__size-grid-item{min-width:0}.attributes-editor__size-field{display:flex;gap:6px;align-items:center;width:100%}.attributes-editor__size-field-input{flex:1;min-width:0;height:36px;line-height:36px}.attributes-editor__size-field-select{flex:0 0 72px;min-width:60px;height:36px;line-height:36px;padding-inline:6px}.attributes-editor__mockable{margin-bottom:16px;padding:12px 16px;border-radius:8px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.attributes-editor__mockable-title{margin:0 0 8px 0;font-weight:700}.attributes-editor__mockable-table{width:100%;border-collapse:collapse}.attributes-editor__mockable-row+.attributes-editor__mockable-row{border-top:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)))}.attributes-editor__mockable-name{padding:8px 0;font-weight:600;text-transform:capitalize}.attributes-editor__mockable-action{padding:8px 0;text-align:right}.attributes-editor__picker-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:6px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));padding:6px 10px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));cursor:pointer}.attributes-editor__picker-button-left{display:flex;align-items:center;gap:8px;min-width:0}.attributes-editor__picker-button-label{font-weight:600}.attributes-editor__picker-button-label--fill{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attributes-editor__picker-button-open{font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));flex:0 0 auto}.attributes-editor__font-modal{display:grid;gap:16px}.attributes-editor__font-modal-header{display:flex;align-items:center;gap:8px}.attributes-editor__font-modal-title{margin:0;font-weight:700}.attributes-editor__font-modal-spacer{flex:1}.attributes-editor__font-modal-note{font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.attributes-editor__font-modal-error{font-size:12px;color:hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)))}.attributes-editor__font-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));gap:8px;max-height:60vh;overflow:auto;padding-right:4px}.attributes-editor__font-option{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:8px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));padding:6px 10px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));cursor:pointer}.attributes-editor__font-option:disabled{opacity:.6;cursor:not-allowed}.attributes-editor__font-option--active{border:2px solid hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.attributes-editor__font-option-name{font-size:12px;font-weight:600;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.attributes-editor__font-option--active .attributes-editor__font-option-name{font-weight:700}.attributes-editor__font-option-status{font-size:11px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));flex:0 0 auto}.attributes-editor-panel{padding:16px}.field-info-tooltip{position:relative}.field-info-tooltip__trigger{position:absolute;top:0;right:0;font-size:11px;line-height:1.2;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));cursor:pointer;font-weight:600;white-space:nowrap;text-transform:uppercase;letter-spacing:.5px;background:rgba(0,0,0,0);border:none;padding:0;font-family:inherit;display:inline-flex;align-items:center;gap:4px}.field-info-tooltip__trigger:focus-visible{outline:2px solid hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.4);outline-offset:2px}.field-info-tooltip__bubble{position:absolute;top:50%;right:100%;transform:translate(-8px, -50%);background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)));padding:6px 10px;border-radius:4px;font-size:12px;line-height:1.4;width:220px;text-align:left;box-shadow:0 6px 16px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.2);z-index:20;opacity:0;pointer-events:none;transition:opacity .15s ease,transform .15s ease}.field-info-tooltip__bubble--visible{opacity:1;transform:translate(-12px, -50%)}.special-category-section{border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:8px;padding:12px;margin-bottom:16px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.special-category-section__header{display:flex;justify-content:space-between;align-items:center;gap:8px}.special-category-section__title{margin:0;font-weight:700}.special-category-section__toggle{border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));background:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));border-radius:4px;padding:4px 10px;cursor:pointer;font-weight:600;transition:background .15s ease,color .15s ease,border-color .15s ease}.special-category-section__toggle[data-active=true]{background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.special-category-section__description{margin:8px 0 0;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));font-size:13px;padding-bottom:16px}.special-category-section__fields{display:grid;gap:8px;margin-top:12px}.special-category-section__fields--box{grid-template-columns:repeat(2, minmax(0, 1fr));grid-template-areas:"top top" "left right" "bottom bottom"}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=top]){grid-area:top}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=left]){grid-area:left}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=right]){grid-area:right}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=bottom]){grid-area:bottom}@media(max-width: 1400px){.special-category-section__fields--box{grid-template-columns:minmax(0, 1fr);grid-template-areas:"top" "left" "right" "bottom"}}.special-category-section__field{min-width:0}.special-category-section__placeholder{margin-top:8px;font-style:italic;opacity:.7}.mockos-router{width:100%;height:100%;position:relative}.mockos-screen{width:100%;height:100%}.mockos-screen--center{display:flex;flex-direction:column;align-items:center;justify-content:center}.mockos-screen--launchscreen{background-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.mockos-screen--home{padding:20px;background-color:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.mockos-screen--onboard{padding:20px;background-color:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.mockos-screen--subscription{padding:20px;background-color:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.mockos-screen__title{font-size:32px;font-weight:bold;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));margin-bottom:16px}.mockos-screen__subtitle{font-size:16px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.mockos-screen__heading{font-size:24px;font-weight:bold;margin-bottom:20px}.mockos-screen__text{font-size:16px;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));margin-bottom:12px}.mockos-screen__plan{padding:16px;border-radius:8px;text-align:center;margin-bottom:12px}.mockos-screen__plan--premium{background-color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));color:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.mockos-screen__plan--basic{background-color:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.mockos-launcher{width:100%;height:100%;padding:40px 20px;display:flex;flex-direction:column}.mockos-launcher__grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:20px;padding:20px}.mockos-launcher__app{display:flex;flex-direction:column;align-items:center;gap:8px;background:rgba(0,0,0,0);border:none;cursor:pointer;padding:8px;border-radius:12px;transition:background-color .2s}.mockos-launcher__app:hover{background-color:hsl(var(--card, var(--rb-card, 0 0% 100%))/0.1)}.mockos-launcher__app:active{transform:scale(0.95)}.mockos-launcher__app-icon{width:60px;height:60px;border-radius:13px;overflow:hidden;box-shadow:0 2px 8px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.3)}.mockos-launcher__app-icon svg{width:100%;height:100%;display:block}.mockos-launcher__app-name{font-size:12px;color:hsl(var(--card, var(--rb-card, 0 0% 100%)));text-align:center;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mockos-modal-overlay{position:absolute;inset:0;display:flex;z-index:9999;background-color:rgba(0, 0, 0, var(--mockos-overlay-alpha, 0.5))}.mockos-modal-overlay--ios{--mockos-overlay-alpha: 0.4}.mockos-modal-overlay--android{--mockos-overlay-alpha: 0.5}.mockos-modal-overlay--center{align-items:center;justify-content:center;padding:20px}.mockos-modal-overlay--bottom{align-items:flex-end;justify-content:stretch;padding:0}.mockos-permission-modal{width:100%}.mockos-permission-modal--ios{max-width:270px;overflow:hidden;border-radius:14px;background-color:hsl(var(--card, var(--rb-card, 0 0% 100%))/0.95);backdrop-filter:blur(20px)}.mockos-permission-modal--android{max-width:280px;border-radius:4px;background-color:hsl(var(--card, var(--rb-card, 0 0% 100%)));box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14)}.mockos-permission-modal__content{padding:20px 16px}.mockos-permission-modal__content--center{text-align:center}.mockos-permission-modal__title{font-size:17px;font-weight:600;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));margin-bottom:8px;line-height:1.3}.mockos-permission-modal__title--android{font-size:20px;font-weight:500;margin-bottom:16px;line-height:1.2}.mockos-permission-modal__message{font-size:13px;line-height:1.4;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.mockos-permission-modal__message--android{font-size:16px;line-height:1.5}.mockos-permission-modal__actions{display:flex}.mockos-permission-modal__actions--ios{border-top:.5px solid hsl(var(--border, var(--rb-border, 220 13% 91%))/0.65)}.mockos-permission-modal__actions--android{padding:8px 8px 8px 0;justify-content:flex-end;gap:8px}.mockos-permission-modal__button{background:rgba(0,0,0,0);border:none;cursor:pointer;font:inherit}.mockos-permission-modal__button--ios{flex:1;padding:11px 0;font-size:17px;font-weight:400;color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)))}.mockos-permission-modal__actions--ios .mockos-permission-modal__button--ios:first-child{border-right:.5px solid hsl(var(--border, var(--rb-border, 220 13% 91%))/0.65)}.mockos-permission-modal__button--bold{font-weight:600}.mockos-permission-modal__button--android{padding:8px 16px;font-size:14px;font-weight:500;border-radius:4px;text-transform:uppercase;letter-spacing:.5px}.mockos-permission-modal__button--deny{color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.mockos-permission-modal__button--allow{color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)))}.mockos-subscription-sheet{width:100%;border-top-left-radius:16px;border-top-right-radius:16px;overflow:hidden;padding-bottom:max(12px,env(safe-area-inset-bottom));transform:translateY(0);background-color:hsl(var(--card, var(--rb-card, 0 0% 100%)))}.mockos-subscription-sheet--ios{background-color:hsl(var(--card, var(--rb-card, 0 0% 100%))/0.96);backdrop-filter:blur(20px);box-shadow:0 -12px 30px rgba(0,0,0,.18),0 -2px 6px rgba(0,0,0,.08)}.mockos-subscription-sheet--android{box-shadow:0 -10px 20px rgba(0,0,0,.22),0 -2px 6px rgba(0,0,0,.14)}.mockos-subscription-sheet__handle{width:44px;height:5px;border-radius:999px;background-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.18);margin:10px auto 0}.mockos-subscription-sheet__content{padding:14px 16px 10px}.mockos-subscription-sheet__content--ios{padding:10px 16px 10px;text-align:center}.mockos-subscription-sheet__top-actions{display:flex;justify-content:flex-end;margin-bottom:6px}.mockos-subscription-sheet__android-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.mockos-subscription-sheet__close{width:28px;height:28px;border-radius:999px;border:none;background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.06);color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.55);font-size:18px;line-height:28px;cursor:pointer}.mockos-subscription-sheet__title{font-weight:600;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.mockos-subscription-sheet__title--ios{font-size:15px;margin-bottom:8px;line-height:1.3;letter-spacing:.2px}.mockos-subscription-sheet__title--android{font-size:16px}.mockos-subscription-sheet__subtitle{color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));line-height:1.5}.mockos-subscription-sheet__subtitle--ios{font-size:13px;line-height:1.4}.mockos-subscription-sheet__subtitle--android{margin-top:8px;font-size:14px}.mockos-subscription-sheet__card{margin-top:12px;padding:10px 12px;background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.04);text-align:left}.mockos-subscription-sheet__card--ios{border-radius:12px}.mockos-subscription-sheet__card--android{margin-top:14px;border-radius:10px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%))/0.7)}.mockos-subscription-sheet__row{display:flex;align-items:center;gap:10px}.mockos-subscription-sheet__row--space-between{justify-content:space-between}.mockos-subscription-sheet__icon{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg, rgba(0, 122, 255, 0.25), rgba(88, 86, 214, 0.22));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%))/0.7)}.mockos-subscription-sheet__meta{flex:1;min-width:0}.mockos-subscription-sheet__meta--android{min-width:0}.mockos-subscription-sheet__product-id{font-size:14px;font-weight:600;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.9);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mockos-subscription-sheet__meta-subtitle{margin-top:2px;font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%))/0.95)}.mockos-subscription-sheet__price{font-size:13px;font-weight:700;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.86)}.mockos-subscription-sheet__actions{display:flex}.mockos-subscription-sheet__actions--ios{border-top:.5px solid hsl(var(--border, var(--rb-border, 220 13% 91%))/0.6)}.mockos-subscription-sheet__actions--android{padding:10px 12px 12px;justify-content:flex-end;gap:8px}.mockos-subscription-sheet__action{background:rgba(0,0,0,0);border:none;cursor:pointer;font:inherit}.mockos-subscription-sheet__action--ios{flex:1;padding:13px 0;font-size:17px;font-weight:400;color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)))}.mockos-subscription-sheet__actions--ios .mockos-subscription-sheet__action--ios:first-child{border-right:.5px solid hsl(var(--border, var(--rb-border, 220 13% 91%))/0.6)}.mockos-subscription-sheet__action--bold{font-weight:600}.mockos-subscription-sheet__action--android{padding:10px 16px;font-size:14px;font-weight:600;border-radius:4px;text-transform:uppercase;letter-spacing:.5px}.mockos-subscription-sheet__action--cancel{color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.mockos-subscription-sheet__action--primary{color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));background:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))/0.12);border-radius:999px;font-weight:700}.rb-bottom-bar{position:fixed;left:50%;transform:translateX(-76%);bottom:10px;z-index:200;height:50px;border-radius:24px;background-color:hsl(var(--card, var(--rb-card, 0 0% 100%)));color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0 10px;gap:10px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));box-shadow:0 8px 20px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.08)}.rb-bottom-bar__button{appearance:none;border:none;background:rgba(0,0,0,0);padding:8px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.rb-bottom-bar__button.is-active{color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));background:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));background:color-mix(in srgb, hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))), transparent 92%);box-shadow:0 0 10px hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))/0.18)}.rb-bottom-bar__button+.rb-bottom-bar__button{border-left:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));padding-left:14px;margin-left:4px}.rb-bottom-bar__button--rtl{gap:6px;padding-right:10px}.rb-bottom-bar__rtl-text{font-size:12px;font-weight:700;letter-spacing:.3px;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.rb-bottom-bar__spacer{flex:1 1 auto}.rb-bottom-bar__langs{display:inline-flex;align-items:center;gap:0;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.rb-bottom-bar__lang{appearance:none;border:none;background:rgba(0,0,0,0);padding:6px 6px;cursor:pointer;font-size:12px;font-weight:700;text-transform:lowercase;color:inherit}.rb-bottom-bar__lang.is-active{color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));text-shadow:0 0 12px hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))/0.25)}.rb-bottom-bar__lang+.rb-bottom-bar__lang{border-left:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));margin-left:8px;padding-left:14px}.onboard__separator{height:1px;width:100%}.onboard__buttons{display:flex;height:40px;gap:12px;align-items:center;justify-content:center;margin:12px 24px}.onboard__buttons--row{flex-direction:row}.onboard__buttons--column{flex-direction:column}.modal{position:fixed;inset:0;z-index:10000}.modal__overlay{position:absolute;inset:0;background:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.4);z-index:0}.modal__content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border-radius:12px;box-shadow:0 10px 30px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.12);width:min(960px,100vw - 40px);max-height:calc(100vh - 120px);display:flex;flex-direction:column;overflow:hidden;z-index:1}.modal__header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));gap:12px}.modal__title{margin:0;font-size:16px;font-weight:700}.add-component-modal{display:flex;flex-direction:column;height:100%}.add-component-modal__body{flex:1;overflow-y:auto;padding-bottom:24px}.add-component-modal__section{padding:0 24px;margin-bottom:24px}.add-component-modal__section:first-of-type{margin-top:24px}.add-component-modal__section-title{font-size:16px;font-weight:600;margin-bottom:12px}.add-component-modal__toggle{display:flex;align-items:center;gap:12px;margin:0 24px 24px;padding:12px 0;font-weight:500;user-select:none}.add-component-modal__toggle input{width:18px;height:18px}.add-component-modal__group{background:hsl(var(--card, var(--rb-card, 0 0% 100%)));border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:12px;padding:16px;margin-bottom:12px;box-shadow:0 10px 20px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.05)}.add-component-modal__group-title{font-size:14px;font-weight:600;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));margin-bottom:12px}.add-component-modal__grid{padding:16px;display:grid;grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));gap:12px;overflow:auto}.add-component-modal__card{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:10px;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));cursor:pointer;text-align:left;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;color:inherit}.add-component-modal__card:hover{border-color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));box-shadow:0 10px 25px hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%))/0.15);transform:translateY(-2px)}.add-component-modal__thumbnail{width:100%;aspect-ratio:4/3;border-radius:8px;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));border:1px dashed hsl(var(--border, var(--rb-border, 220 13% 91%)));display:flex;align-items:center;justify-content:center;color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.add-component-modal__title{font-weight:600;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.add-component-modal__empty{margin:12px 0;padding:16px;border:1px dashed hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:10px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)));font-size:14px;text-align:center}.device-selector-modal{padding-bottom:24px}.device-selector-modal__grid{padding:24px;display:grid;grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));gap:12px;overflow:auto}.device-selector-modal__grid .editor-device-button{height:80px;min-width:unset}.color-modal{width:min(520px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.color-modal__selected{display:flex;align-items:center;justify-content:space-between;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)));border-radius:8px;padding:12px 16px}.color-modal__selected-info{display:flex;align-items:center;gap:12px}.color-modal__selected-preview{width:32px;height:32px;border-radius:6px;border:1px solid hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.1)}.color-modal__selected-label{margin:0;font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.color-modal__selected-value{margin:0;font-weight:600}.color-modal__toggle{display:flex;flex-direction:column;gap:6px;padding:0 8px}.color-modal__toggle-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));cursor:pointer}.color-modal__toggle-input{width:16px;height:16px;accent-color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)))}.color-modal__toggle-description{margin:0;font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.color-modal__link-button{border:none;background:none;color:hsl(var(--primary, var(--rb-primary, 221.2 83.2% 53.3%)));font-weight:600;font-size:13px;cursor:pointer;padding:4px 8px}.color-modal__add-color{position:relative;display:inline-flex;align-items:center}.color-modal__add-color-input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;border:0;padding:0;margin:0}.color-section{display:flex;flex-direction:column;gap:8px}.color-section__header{display:flex;align-items:center;justify-content:space-between;gap:8px}.color-section__title{margin:0;font-weight:600}.color-section__swatches{display:grid;grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));gap:8px}.color-section__empty{margin:0;font-size:12px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.color-modal__swatch{border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:8px;padding:8px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));display:flex;flex-direction:column;gap:6px;text-align:left;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.color-modal__swatch--active{border-color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)));box-shadow:0 0 0 1px hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))) inset}.color-modal__swatch-preview{width:100%;height:32px;border-radius:6px}.color-modal__swatch-preview--light{border:1px solid hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%))/0.1)}.color-modal__swatch-label{font-size:12px;font-weight:600;color:hsl(var(--foreground, var(--rb-foreground, 220.9 39.3% 11%)))}.color-modal__swatch-value{font-size:11px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.color-modal__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;opacity:0}.localication-modal__content{width:calc(100vw - 32px);height:calc(100vh - 32px);max-width:1600px;max-height:calc(100vh - 32px);padding:0;display:flex;flex-direction:column}.localication-modal__header{padding:16px 24px;border-bottom:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));display:flex;align-items:center;gap:16px}.localication-modal__header-main{flex:1;display:flex;flex-direction:column;gap:4px}.localication-modal__description{margin:0;font-size:13px;color:hsl(var(--muted-foreground, var(--rb-muted-foreground, 220 8.9% 46.1%)))}.localication-modal__body{flex:1;min-height:0;padding:24px;display:flex;flex-direction:column;gap:16px;overflow:auto}.localication-modal__editor{flex:1;min-height:0;overflow:auto;border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:8px;background:hsl(var(--background, var(--rb-background, 220 14.3% 95.9%)))}.localication-modal__json-editor{height:100%;width:100%;display:block;padding:12px;overflow:auto}.modal--scrollable .localication-modal__content{overflow:hidden}.modal--scrollable .localication-modal__body{overflow:auto}.mockable-feature-modal{width:min(520px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.mockable-feature-modal__body{min-height:120px}.product-edit-modal{width:min(640px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.product-edit-modal__body{display:flex;flex-direction:column;gap:12px}.product-edit-modal__textarea{min-height:90px;padding:8px;resize:vertical}.product-presets-modal{width:min(960px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.product-presets-modal__body{display:flex;flex-direction:column;gap:16px}.product-presets-modal__section-title{margin:0;font-weight:700}.product-presets-modal__muted{margin:6px 0 0;opacity:.7}.product-presets-modal__grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));gap:12px;margin-top:12px}.product-presets-modal__card{border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:12px;padding:12px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));display:flex;flex-direction:column;gap:8px}.product-presets-modal__card-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.product-presets-modal__card-title{margin:0;font-weight:700}.product-presets-modal__card-count{margin:0;opacity:.7;font-size:12px}.product-presets-modal__card-list{margin:0;padding-left:18px}.product-presets-modal__card-item{font-size:12px;word-break:break-word}.product-presets-modal__actions{display:flex;gap:8px;margin-top:8px}.benefit-edit-modal{width:min(640px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.benefit-edit-modal__body{display:flex;flex-direction:column;gap:12px}.benefit-presets-modal{width:min(960px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.benefit-presets-modal__body{display:flex;flex-direction:column;gap:16px}.benefit-presets-modal__section-title{margin:0;font-weight:700}.benefit-presets-modal__muted{margin:6px 0 0;opacity:.7}.benefit-presets-modal__grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));gap:12px;margin-top:12px}.benefit-presets-modal__card{border:1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)));border-radius:12px;padding:12px;background:hsl(var(--card, var(--rb-card, 0 0% 100%)));display:flex;flex-direction:column;gap:8px}.benefit-presets-modal__card-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.benefit-presets-modal__card-title{margin:0;font-weight:700}.benefit-presets-modal__card-count{margin:0;opacity:.7;font-size:12px}.benefit-presets-modal__card-list{margin:0;padding-left:18px}.benefit-presets-modal__card-item{font-size:12px;word-break:break-word}.benefit-presets-modal__actions{display:flex;gap:8px;margin-top:8px}.embla{max-width:48rem;margin:auto;--slide-height: 19rem;--slide-spacing: 1rem;--slide-size: 70%}.embla__viewport{overflow:hidden}.embla__container{display:flex;touch-action:pan-y pinch-zoom}.embla__slide{transform:translate3d(0, 0, 0);min-width:0;padding-left:var(--slide-spacing);flex:0 0 100%}.embla__slide__number{box-shadow:inset 0 0 0 .2rem var(--detail-medium-contrast);border-radius:1.8rem;font-size:4rem;font-weight:600;display:flex;align-items:center;justify-content:center;height:var(--slide-height);user-select:none}.embla__controls{display:grid;grid-template-columns:auto 1fr;justify-content:space-between;gap:1.2rem;margin-top:1.8rem}.embla__buttons{display:grid;grid-template-columns:repeat(2, 1fr);gap:.6rem;align-items:center}.embla__button{-webkit-tap-highlight-color:rgba(var(--text-high-contrast-rgb-value), 0.5);-webkit-appearance:none;appearance:none;background-color:rgba(0,0,0,0);touch-action:manipulation;display:inline-flex;text-decoration:none;cursor:pointer;border:0;padding:0;margin:0;box-shadow:inset 0 0 0 .2rem var(--detail-medium-contrast);width:3.6rem;height:3.6rem;z-index:1;border-radius:50%;color:var(--text-body);display:flex;align-items:center;justify-content:center}.embla__button:disabled{color:var(--detail-high-contrast)}.embla__button__svg{width:35%;height:35%}.embla__dots{flex-wrap:wrap;margin-right:0;height:50px;margin:0 auto}.embla__dot{-webkit-tap-highlight-color:rgba(var(--text-high-contrast-rgb-value), 0.5);-webkit-appearance:none;appearance:none;background-color:rgba(0,0,0,0);--embla-dot-color: var(--detail-medium-contrast);touch-action:manipulation;display:inline-flex;text-decoration:none;cursor:pointer;border:0;padding:0;margin:0;width:max(2.6rem,var(--embla-dot-size, 1.4rem) + 1.2rem);height:max(2.6rem,var(--embla-dot-size, 1.4rem) + 1.2rem);display:flex;align-items:center;border-radius:50%}.embla__dot:after{background-color:var(--embla-dot-color);width:var(--embla-dot-size, 1.4rem);height:var(--embla-dot-size, 1.4rem);border-radius:50%;display:flex;align-items:center;content:""}.embla__dot--selected{--embla-dot-color: var(--text-body)}.carousel-provider{height:100%}.embla{height:100%}.embla__viewport{height:100%;display:flex;flex-direction:column}.embla__container{flex:1}
@@ -21,8 +21,4 @@ export interface AppConfig {
21
21
  };
22
22
  }
23
23
  export declare const defaultAppConfig: AppConfig;
24
- export type Localication = {
25
- [key: string]: {
26
- [key: string]: string;
27
- };
28
- };
24
+ export type Localication = Record<string, Record<string, string>>;
@@ -2,3 +2,6 @@ import { ImagePropsGenerated } from '../build-components/Image/ImageProps.genera
2
2
  import type { NodeData } from '../types/Node';
3
3
  import { ExtractViewStyleOptions } from './extractViewStyle';
4
4
  export declare function extractImageStyle<T extends ImagePropsGenerated['attributes']>(node: NodeData<T>, options?: ExtractViewStyleOptions): import("react").CSSProperties;
5
+ export declare function extractImageStyleNative<T extends ImagePropsGenerated['attributes']>(node: NodeData<T>, options?: ExtractViewStyleOptions): {
6
+ [x: string]: unknown;
7
+ };
@@ -0,0 +1,17 @@
1
+ import type { NodeData } from '../../types/Node';
2
+ import type { TextPropsGenerated } from '../../build-components/Text/TextProps.generated';
3
+ import type { AppConfig } from '../../types/PreviewConfig';
4
+ import type { ProjectColors } from '../../types/Project';
5
+ import type { Fonts } from '../../types/Fonts';
6
+ export type ExtractTextStyleNativeOptions = {
7
+ appConfig?: AppConfig;
8
+ projectColors?: ProjectColors;
9
+ fonts?: Fonts;
10
+ };
11
+ /**
12
+ * React Native-friendly text style extraction.
13
+ * - Avoids web-only quoting of fontFamily.
14
+ * - Returns numeric fontSize (dp) when possible.
15
+ * - Merges with extractViewStyleNative so padding/margin/etc still work in RN.
16
+ */
17
+ export declare function extractTextStyleNative<T extends TextPropsGenerated['attributes']>(node: NodeData<T>, options?: ExtractTextStyleNativeOptions): Record<string, unknown>;
@@ -1,2 +1,4 @@
1
1
  export type { ExtractTextStyleOptions } from './extractTextStyle/extractTextStyle';
2
2
  export { extractTextStyle } from './extractTextStyle/extractTextStyle';
3
+ export type { ExtractTextStyleNativeOptions } from './extractTextStyle/extractTextStyleNative';
4
+ export { extractTextStyleNative } from './extractTextStyle/extractTextStyleNative';
@@ -0,0 +1,12 @@
1
+ import { ViewPropsGenerated } from '../../build-components/View/ViewProps.generated';
2
+ import type { NodeData } from '../../types/Node';
3
+ import type { ProjectColors } from '../../types/Project';
4
+ export type ExtractViewStyleNativeOptions = {
5
+ projectColors?: ProjectColors;
6
+ theme?: string;
7
+ };
8
+ /**
9
+ * Extracts a React Native-friendly style object from node attributes.
10
+ * Unlike the web/CSS extractor, this avoids DOM-only props like overflowX/overflowY and maxWidth/maxHeight "100%" fallbacks.
11
+ */
12
+ export declare function extractViewStyleNative<T extends ViewPropsGenerated['attributes']>(node: NodeData<T>, options?: ExtractViewStyleNativeOptions): Record<string, unknown>;
@@ -1,2 +1,4 @@
1
1
  export type { ExtractViewStyleOptions } from './extractViewStyle/extractViewStyle';
2
2
  export { extractViewStyle } from './extractViewStyle/extractViewStyle';
3
+ export type { ExtractViewStyleNativeOptions } from './extractViewStyle/extractViewStyleNative';
4
+ export { extractViewStyleNative } from './extractViewStyle/extractViewStyleNative';
@@ -0,0 +1,5 @@
1
+ export type BuilderMeta = {
2
+ supportedProjectVersion: string;
3
+ reactBuilderVersion: string;
4
+ };
5
+ export declare function getMeta(): BuilderMeta;
@@ -45,11 +45,24 @@ type Pattern = {
45
45
  types?: Record<string, Record<string, string | string[]>>;
46
46
  meta?: PatternMeta;
47
47
  };
48
+ export type BuilderPlatform = 'web' | 'native';
49
+ /**
50
+ * Keys that conceptually behave like component props (behavior/flags) rather than
51
+ * style properties. These should NOT be normalized into `attributes.style`.
52
+ */
53
+ export declare const NON_STYLE_ATTRIBUTE_KEYS: Set<string>;
54
+ /**
55
+ * schemaVersion=2 stores style-like keys inside `attributes.style`.
56
+ *
57
+ * We treat View+Text schema keys as style-like by default, but explicitly exclude
58
+ * known non-style props (behavior flags).
59
+ */
60
+ export declare function getStyleAttributeKeySet(): Set<string>;
48
61
  /** Normalize legacy/variant component type strings to the canonical pattern.type (PascalCase). */
49
62
  export declare function normalizeComponentType(type?: string | null): string | undefined;
50
63
  export declare function getPatternByType(type?: string | null): Pattern | undefined;
51
64
  export declare function getAttributeSchema(type?: string | null): Record<string, string | string[]> | undefined;
52
- export declare function getAttributeMeta(type?: string | null): Record<string, AttributeMeta> | undefined;
65
+ export declare function getAttributeMeta(type?: string | null, platform?: BuilderPlatform): Record<string, AttributeMeta> | undefined;
53
66
  /** Returns defaults block (if any) for a given component type */
54
67
  export declare function getDefaultsForType(type?: string | null): NodeDefaultAttribute | undefined;
55
68
  /**
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@developer_tribe/react-builder",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "restricted": true,
7
+ "supportedProjectVersion": "1.1.2",
7
8
  "main": "dist/index.cjs.js",
8
9
  "module": "dist/index.esm.js",
9
10
  "types": "dist/index.d.ts",
@@ -1,9 +1,23 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ import path from 'path';
4
+ import url from 'url';
5
+
3
6
  import run from './build-components.js';
4
7
  import runIconGenerator from './icon-generator.js';
8
+ import { updateMetaJson } from './utils/index.js';
9
+
10
+ const __filename = url.fileURLToPath(import.meta.url);
11
+ const __dirname = path.dirname(__filename);
12
+ const PROJECT_ROOT = path.resolve(__dirname, '..', '..');
5
13
 
6
14
  try {
15
+ console.info('Updating meta.json...');
16
+ const { meta, changed } = await updateMetaJson(PROJECT_ROOT);
17
+ console.info(
18
+ `meta.json ${changed ? 'updated' : 'unchanged'} -> supportedProjectVersion=${meta.supportedProjectVersion}, reactBuilderVersion=${meta.reactBuilderVersion}`
19
+ );
20
+
7
21
  console.info('Generating icons...');
8
22
  const { count, wroteTypes, wroteComponent } = await runIconGenerator();
9
23
  console.info(
@@ -89,6 +89,10 @@ export async function createGeneratedProps(
89
89
  const { pattern } = patternJson;
90
90
  const attributes = pattern.attributes || {};
91
91
  const allTypes = patternJson.types || {};
92
+ const metaStyles =
93
+ (patternJson?.meta?.styles || patternJson?.meta?.attributes || {}) ?? {};
94
+ const isPlainObject = value =>
95
+ typeof value === 'object' && value != null && !Array.isArray(value);
92
96
 
93
97
  // Collect option type aliases for any enum arrays encountered across attributes and custom types
94
98
  const optionAliases = new Map(); // name -> union (string like `'a' | 'b'`)
@@ -134,8 +138,49 @@ export async function createGeneratedProps(
134
138
  return ` ${key}?: ${tsType};`;
135
139
  });
136
140
 
137
- // In schema v2 we always allow a nested `style` object (for CSSProperties-like overrides/defaults).
138
- const styleLine = ` style?: Record<string, unknown>;`;
141
+ // In schema v2, the source of truth for "style bag" fields is `pattern.attributes.style`.
142
+ // `meta.styles` is UI metadata (and can include non-style fields like "scrollable" or "condition"),
143
+ // so we must NOT treat its keys as belonging to `attributes.style`.
144
+ const nestedStyleSchema = isPlainObject(attributes?.style)
145
+ ? attributes.style
146
+ : {};
147
+ const styleKeys = Object.keys(nestedStyleSchema);
148
+ const styleInterfaceName = `${componentName}StyleGenerated`;
149
+ const styleInterfaceBlock =
150
+ styleKeys.length > 0
151
+ ? `export interface ${styleInterfaceName} {\n` +
152
+ styleKeys
153
+ .map(k => {
154
+ const attrType = Object.prototype.hasOwnProperty.call(
155
+ nestedStyleSchema,
156
+ k
157
+ )
158
+ ? nestedStyleSchema[k]
159
+ : 'string';
160
+ const tsType = tsTypeFromAttributeType(
161
+ attrType,
162
+ allTypes,
163
+ k,
164
+ registerEnumAlias
165
+ );
166
+ return ` ${k}?: ${tsType};`;
167
+ })
168
+ .join('\n') +
169
+ `\n}\n`
170
+ : '';
171
+
172
+ // In schema v2 we always allow a nested `style` object.
173
+ // If pattern.json declares meta.styles keys, we expose them for autocomplete while keeping flexibility via an index signature.
174
+ const styleLine =
175
+ styleKeys.length > 0
176
+ ? ` style?: ${styleInterfaceName};`
177
+ : ` style?: Record<string, unknown>;`;
178
+
179
+ // Avoid emitting `attributes.style?: string;` when `pattern.attributes.style` is the nested style schema object.
180
+ const attributeLinesWithoutNestedStyle =
181
+ styleKeys.length > 0
182
+ ? attributeLines.filter(line => !line.trim().startsWith('style?:'))
183
+ : attributeLines;
139
184
 
140
185
  const childTsType =
141
186
  typeof pattern.children === 'string' ? pattern.children : 'string';
@@ -158,12 +203,15 @@ export async function createGeneratedProps(
158
203
  .join('\n') + '\n\n'
159
204
  : '') +
160
205
  (customTypeBlocks.length ? customTypeBlocks.join('\n') + '\n' : '') +
206
+ (styleInterfaceBlock ? styleInterfaceBlock + '\n' : '') +
161
207
  `\n` +
162
208
  `export interface ${componentName}PropsGenerated {\n` +
163
209
  ` child: ${normalizedChildTsType};\n` +
164
210
  ` attributes: {\n` +
165
211
  `${styleLine}\n` +
166
- (attributeLines.length ? attributeLines.join('\n') + '\n' : '') +
212
+ (attributeLinesWithoutNestedStyle.length
213
+ ? attributeLinesWithoutNestedStyle.join('\n') + '\n'
214
+ : '') +
167
215
  ` };\n` +
168
216
  `}\n` +
169
217
  `\n` +
@@ -17,3 +17,4 @@ export { validateExistingComponentTsx } from './validateExistingComponentTsx.js'
17
17
  export { createGetDefaultsPerComponent } from './createGetDefaultsPerComponent.js';
18
18
  export { createRootGetDefaults } from './createRootGetDefaults.js';
19
19
  export { createBuildComponentsRootGetDefaults } from './createBuildComponentsRootGetDefaults.js';
20
+ export { updateMetaJson } from './updateMetaJson.js';
@@ -0,0 +1,66 @@
1
+ import { promises as fs } from 'fs';
2
+ import path from 'path';
3
+
4
+ async function readJsonIfExists(filePath) {
5
+ try {
6
+ const raw = await fs.readFile(filePath, 'utf8');
7
+ return JSON.parse(raw);
8
+ } catch (err) {
9
+ if (err && err.code === 'ENOENT') {
10
+ return null;
11
+ }
12
+ throw err;
13
+ }
14
+ }
15
+
16
+ async function readPackageVersion(repoRoot) {
17
+ const packageJsonPath = path.join(repoRoot, 'package.json');
18
+ const pkg = await readJsonIfExists(packageJsonPath);
19
+ const version =
20
+ pkg && typeof pkg.version === 'string' ? pkg.version.trim() : '';
21
+
22
+ if (!version) {
23
+ throw new Error('package.json is missing a valid version.');
24
+ }
25
+
26
+ return version;
27
+ }
28
+
29
+ async function readSupportedProjectVersion(repoRoot) {
30
+ // Pull supportedProjectVersion from package.json to avoid reading it at runtime (meta.json will carry it forward).
31
+ const packageJsonPath = path.join(repoRoot, 'package.json');
32
+ const pkg = await readJsonIfExists(packageJsonPath);
33
+ const version =
34
+ pkg && typeof pkg.supportedProjectVersion === 'string'
35
+ ? pkg.supportedProjectVersion.trim()
36
+ : '';
37
+
38
+ if (!version) {
39
+ throw new Error('package.json is missing a valid supportedProjectVersion.');
40
+ }
41
+
42
+ return version;
43
+ }
44
+
45
+ export async function updateMetaJson(repoRoot) {
46
+ const [reactBuilderVersion, supportedProjectVersion] = await Promise.all([
47
+ readPackageVersion(repoRoot),
48
+ readSupportedProjectVersion(repoRoot),
49
+ ]);
50
+
51
+ const meta = { supportedProjectVersion, reactBuilderVersion };
52
+ const metaPath = path.join(repoRoot, 'src', 'assets', 'meta.json');
53
+ const existing = await readJsonIfExists(metaPath);
54
+
55
+ const changed =
56
+ !existing ||
57
+ existing.supportedProjectVersion !== supportedProjectVersion ||
58
+ existing.reactBuilderVersion !== reactBuilderVersion;
59
+
60
+ if (changed) {
61
+ const body = JSON.stringify(meta, null, 2) + '\n';
62
+ await fs.writeFile(metaPath, body, 'utf8');
63
+ }
64
+
65
+ return { meta, changed, metaPath };
66
+ }