{
  "version": "2.7",
  "children": [
    {
      "type": "frame",
      "id": "SyncConflictDialog",
      "x": 0,
      "y": 0,
      "name": "Dialog/SyncConflict",
      "reusable": true,
      "width": 400,
      "height": 514,
      "fill": "$bg-elevated",
      "cornerRadius": 20,
      "layout": "vertical",
      "children": [
        {
          "type": "frame",
          "id": "ConflictContent",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "gap": 20,
          "padding": [
            28,
            24
          ],
          "children": [
            {
              "type": "frame",
              "id": "ConflictIconWrap",
              "width": "fill_container",
              "justifyContent": "center",
              "children": [
                {
                  "type": "frame",
                  "id": "ConflictIconBg",
                  "width": 72,
                  "height": 72,
                  "fill": "#EAB30820",
                  "cornerRadius": 36,
                  "justifyContent": "center",
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "ConflictIconInner",
                      "width": 52,
                      "height": 52,
                      "fill": "#EAB30820",
                      "cornerRadius": 26,
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "ConflictIcon",
                          "width": 28,
                          "height": 28,
                          "iconFontName": "git-merge",
                          "iconFontFamily": "lucide",
                          "fill": "#EAB308"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "type": "frame",
              "id": "ConflictTitle",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 6,
              "alignItems": "center",
              "children": [
                {
                  "type": "text",
                  "id": "ConflictTitleText",
                  "fill": "$text-primary",
                  "content": "Xung Đột Dữ Liệu",
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 20,
                  "fontWeight": "700"
                },
                {
                  "type": "text",
                  "id": "ConflictSubtitle",
                  "fill": "$text-tertiary",
                  "content": "Có thay đổi từ nhiều nguồn",
                  "textAlign": "center",
                  "fontFamily": "Roboto",
                  "fontSize": 14,
                  "fontWeight": "normal"
                }
              ]
            },
            {
              "type": "frame",
              "id": "ConflictOptions",
              "width": "fill_container",
              "layout": "vertical",
              "gap": 10,
              "children": [
                {
                  "type": "frame",
                  "id": "KeepLocal",
                  "width": "fill_container",
                  "fill": "$bg-page",
                  "cornerRadius": 14,
                  "stroke": {
                    "thickness": 2,
                    "fill": "$orange-primary"
                  },
                  "gap": 12,
                  "padding": 14,
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "KeepLocalIcon",
                      "width": 40,
                      "height": 40,
                      "fill": "#FF5C0020",
                      "cornerRadius": 10,
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "KeepLocalIconI",
                          "width": 20,
                          "height": 20,
                          "iconFontName": "smartphone",
                          "iconFontFamily": "lucide",
                          "fill": "$orange-primary"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "KeepLocalInfo",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "children": [
                        {
                          "type": "text",
                          "id": "KeepLocalTitle",
                          "fill": "$text-primary",
                          "content": "Giữ phiên bản thiết bị",
                          "fontFamily": "Roboto",
                          "fontSize": 14,
                          "fontWeight": "600"
                        },
                        {
                          "type": "text",
                          "id": "KeepLocalDesc",
                          "fill": "$text-tertiary",
                          "content": "Cập nhật lúc 20:45 hôm nay",
                          "fontFamily": "Roboto",
                          "fontSize": 12,
                          "fontWeight": "normal"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "KeepLocalRadio",
                      "width": 22,
                      "height": 22,
                      "cornerRadius": 11,
                      "stroke": {
                        "thickness": 2,
                        "fill": "$orange-primary"
                      },
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "frame",
                          "id": "KeepLocalDot",
                          "width": 12,
                          "height": 12,
                          "fill": "$orange-primary",
                          "cornerRadius": 6
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "KeepServer",
                  "width": "fill_container",
                  "fill": "$bg-page",
                  "cornerRadius": 14,
                  "stroke": {
                    "thickness": 1,
                    "fill": "$border-default"
                  },
                  "gap": 12,
                  "padding": 14,
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "KeepServerIcon",
                      "width": 40,
                      "height": 40,
                      "fill": "#3B82F620",
                      "cornerRadius": 10,
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "KeepServerIconI",
                          "width": 20,
                          "height": 20,
                          "iconFontName": "cloud",
                          "iconFontFamily": "lucide",
                          "fill": "#3B82F6"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "KeepServerInfo",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "children": [
                        {
                          "type": "text",
                          "id": "KeepServerTitle",
                          "fill": "$text-primary",
                          "content": "Giữ phiên bản server",
                          "fontFamily": "Roboto",
                          "fontSize": 14,
                          "fontWeight": "500"
                        },
                        {
                          "type": "text",
                          "id": "KeepServerDesc",
                          "fill": "$text-tertiary",
                          "content": "Cập nhật lúc 19:30 hôm nay",
                          "fontFamily": "Roboto",
                          "fontSize": 12,
                          "fontWeight": "normal"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "KeepServerRadio",
                      "width": 22,
                      "height": 22,
                      "cornerRadius": 11,
                      "stroke": {
                        "thickness": 2,
                        "fill": "$border-default"
                      }
                    }
                  ]
                },
                {
                  "type": "frame",
                  "id": "MergeBoth",
                  "width": "fill_container",
                  "fill": "$bg-page",
                  "cornerRadius": 14,
                  "stroke": {
                    "thickness": 1,
                    "fill": "$border-default"
                  },
                  "gap": 12,
                  "padding": 14,
                  "alignItems": "center",
                  "children": [
                    {
                      "type": "frame",
                      "id": "MergeIcon",
                      "width": 40,
                      "height": 40,
                      "fill": "#22C55E20",
                      "cornerRadius": 10,
                      "justifyContent": "center",
                      "alignItems": "center",
                      "children": [
                        {
                          "type": "icon_font",
                          "id": "MergeIconI",
                          "width": 20,
                          "height": 20,
                          "iconFontName": "git-merge",
                          "iconFontFamily": "lucide",
                          "fill": "#22C55E"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "MergeInfo",
                      "width": "fill_container",
                      "layout": "vertical",
                      "gap": 2,
                      "children": [
                        {
                          "type": "text",
                          "id": "MergeTitle",
                          "fill": "$text-primary",
                          "content": "Gộp cả hai",
                          "fontFamily": "Roboto",
                          "fontSize": 14,
                          "fontWeight": "500"
                        },
                        {
                          "type": "text",
                          "id": "MergeDesc",
                          "fill": "$text-tertiary",
                          "content": "Tự động hợp nhất (khuyên dùng)",
                          "fontFamily": "Roboto",
                          "fontSize": 12,
                          "fontWeight": "normal"
                        }
                      ]
                    },
                    {
                      "type": "frame",
                      "id": "MergeRadio",
                      "width": 22,
                      "height": 22,
                      "cornerRadius": 11,
                      "stroke": {
                        "thickness": 2,
                        "fill": "$border-default"
                      }
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "type": "frame",
          "id": "ConflictFooter",
          "width": "fill_container",
          "stroke": {
            "thickness": 1,
            "fill": "$border-subtle"
          },
          "gap": 12,
          "padding": [
            16,
            24
          ],
          "children": [
            {
              "type": "frame",
              "id": "ViewDiffBtn",
              "width": "fill_container",
              "height": 48,
              "fill": "$bg-interactive",
              "cornerRadius": 12,
              "gap": 6,
              "justifyContent": "center",
              "alignItems": "center",
              "children": [
                {
                  "type": "icon_font",
                  "id": "ViewDiffIcon",
                  "width": 18,
                  "height": 18,
                  "iconFontName": "eye",
                  "iconFontFamily": "lucide",
                  "fill": "$text-secondary"
                },
                {
                  "type": "text",
                  "id": "ViewDiffText",
                  "fill": "$text-secondary",
                  "content": "Xem khác biệt",
                  "fontFamily": "Roboto",
                  "fontSize": 14,
                  "fontWeight": "500"
                }
              ]
            },
            {
              "type": "frame",
              "id": "ResolveBtn",
              "width": "fill_container",
              "height": 48,
              "fill": {
                "type": "gradient",
                "gradientType": "linear",
                "enabled": true,
                "rotation": 135,
                "size": {
                  "height": 1
                },
                "colors": [
                  {
                    "color": "#FF5C00",
                    "position": 0
                  },
                  {
                    "color": "#FF8A4C",
                    "position": 1
                  }
                ]
              },
              "cornerRadius": 12,
              "gap": 8,
              "justifyContent": "center",
              "alignItems": "center",
              "children": [
                {
                  "type": "icon_font",
                  "id": "ResolveIcon",
                  "width": 18,
                  "height": 18,
                  "iconFontName": "check",
                  "iconFontFamily": "lucide",
                  "fill": "#FFFFFF"
                },
                {
                  "type": "text",
                  "id": "ResolveText",
                  "fill": "#FFFFFF",
                  "content": "Áp dụng",
                  "fontFamily": "Roboto",
                  "fontSize": 14,
                  "fontWeight": "600"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {
      "type": "color",
      "value": "#1A1A1D"
    },
    "bg-interactive": {
      "type": "color",
      "value": "#2A2A2E"
    },
    "bg-page": {
      "type": "color",
      "value": "#0A0A0B"
    },
    "border-default": {
      "type": "color",
      "value": "#2A2A2E"
    },
    "border-subtle": {
      "type": "color",
      "value": "#1F1F23"
    },
    "orange-primary": {
      "type": "color",
      "value": "#FF5C00"
    },
    "text-primary": {
      "type": "color",
      "value": "#FFFFFF"
    },
    "text-secondary": {
      "type": "color",
      "value": "#ADADB0"
    },
    "text-tertiary": {
      "type": "color",
      "value": "#8B8B90"
    }
  }
}