{
  "Type": "Window",
  "Id": "race_editor",
  "Title": "Create New Race",
  "Icon": "🧬",
  "State": "Maximized",
  "DisplayLocation": "Taskbar",
  "WindowGroup": "static_menu",
  "IsRestorable": false,
  "IsMinimizable": false,
  "IsClosable": false,
  "Children": [
    {
      "Type": "Grid",
      "Id": "race_editor_root",
      "RowDefinitions": [
        "1fr",
        "auto"
      ],
      "ColumnDefinitions": [
        "1fr"
      ],
      "HorizontalAlignment": "Stretch",
      "VerticalAlignment": "Stretch",
      "Margin": "0",
      "Padding": "0 32px",
      "Width": "100%",
      "Height": "100%",
      "Children": [
        {
          "Type": "Panel",
          "Id": "race_editor_glass",
          "Grid.Row": 0,
          "Grid.Column": 0,
          "Classes": [
            "ps-panel--glass",
            "ps-panel--borderless"
          ],
          "Padding": "16px",
          "Margin": "16px 0 0 0",
          "Children": [
            {
              "Type": "ScrollBox",
              "Id": "race_editor_scroll",
              "Width": "100%",
              "Height": "100%",
              "Children": [
                {
                  "Type": "StackPanel",
                  "Id": "race_editor_content",
                  "Orientation": "Vertical",
                  "Gap": 16,
                  "Padding": "8",
                  "Width": "100%",
                  "Children": [
                    {
                      "Type": "Grid",
                      "Id": "race_editor_columns",
                      "ColumnDefinitions": [
                        "1fr",
                        "1fr"
                      ],
                      "RowDefinitions": [
                        "auto"
                      ],
                      "Gap": 24,
                      "Children": [
                        {
                          "Type": "StackPanel",
                          "Id": "left_column",
                          "Grid.Column": 0,
                          "Orientation": "Vertical",
                          "Gap": 16,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "IDENTITY",
                              "Style": "Label.H1",
                              "Classes": [
                                "ps-heading--accent"
                              ]
                            },
                            {
                              "Type": "Grid",
                              "ColumnDefinitions": [
                                "1fr",
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "auto",
                                "auto",
                                "auto",
                                "auto"
                              ],
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "Text": "Race Title"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "race_name",
                                  "Grid.Column": 1,
                                  "Grid.Row": 0,
                                  "Placeholder": "Enter race title...",
                                  "Command": "core.race_editor.update_field"
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 1,
                                  "Text": "Race Short Name"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "short_name",
                                  "Grid.Column": 1,
                                  "Grid.Row": 1,
                                  "Placeholder": "Enter short name...",
                                  "Command": "core.race_editor.update_field"
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 2,
                                  "Text": "Species Name"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "species_name",
                                  "Grid.Column": 1,
                                  "Grid.Row": 2,
                                  "Value": "Human",
                                  "Command": "core.race_editor.update_field"
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 3,
                                  "Text": "Homeworld Name"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "homeworld_name",
                                  "Grid.Column": 1,
                                  "Grid.Row": 3,
                                  "Placeholder": "Enter homeworld name...",
                                  "Command": "core.race_editor.update_field"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Text": "OPTIONS",
                              "Style": "Label.H1",
                              "Classes": [
                                "ps-heading--accent"
                              ]
                            },
                            {
                              "Type": "Grid",
                              "Id": "checkboxes_grid",
                              "ColumnDefinitions": [
                                "1fr",
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "auto",
                                "auto",
                                "auto",
                                "auto",
                                "auto"
                              ],
                              "Gap": 6,
                              "Children": [
                                {
                                  "Type": "Checkbox",
                                  "Id": "is_npr",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "Label": "Non-Player Race",
                                  "Command": "core.race_editor.update_field"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "is_conventional",
                                  "Grid.Column": 1,
                                  "Grid.Row": 0,
                                  "Label": "Industrial (Low Tech)",
                                  "Command": "core.race_editor.update_field"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "is_neutral",
                                  "Grid.Column": 0,
                                  "Grid.Row": 1,
                                  "Label": "Neutral Race",
                                  "Command": "core.race_editor.update_field"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "auto_assign_tp",
                                  "Grid.Column": 1,
                                  "Grid.Row": 1,
                                  "Label": "Auto-Assign Tech Points",
                                  "Command": "core.race_editor.update_field"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "home_grav_surveyed",
                                  "Grid.Column": 0,
                                  "Grid.Row": 2,
                                  "Label": "Home System Grav Surveyed",
                                  "Command": "core.race_editor.update_field"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "home_geo_surveyed",
                                  "Grid.Column": 1,
                                  "Grid.Row": 2,
                                  "Label": "Home System Geo Surveyed",
                                  "Command": "core.race_editor.update_field"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "auto_design_ships",
                                  "Grid.Column": 0,
                                  "Grid.Row": 3,
                                  "Label": "Auto-Design Ship Classes",
                                  "Command": "core.race_editor.update_field"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "auto_design_ground",
                                  "Grid.Column": 1,
                                  "Grid.Row": 3,
                                  "Label": "Auto-Design Ground Forces",
                                  "Command": "core.race_editor.update_field"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Text": "SPECIES TOLERANCES",
                              "Style": "Label.H1",
                              "Classes": [
                                "ps-heading--accent"
                              ]
                            },
                            {
                              "Type": "Grid",
                              "Id": "tolerances_grid",
                              "ColumnDefinitions": [
                                "1fr",
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "auto",
                                "auto",
                                "auto",
                                "auto",
                                "auto",
                                "auto",
                                "auto"
                              ],
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "Text": "Ideal Gravity (G)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "species_gravity",
                                  "Grid.Column": 1,
                                  "Grid.Row": 0,
                                  "Value": "1.0",
                                  "Command": "core.race_editor.update_field",
                                  "min": 0,
                                  "max": 5,
                                  "step": 0.01
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 1,
                                  "Text": "Max Gravity Deviation (G)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "species_gravity_tolerance",
                                  "Grid.Column": 1,
                                  "Grid.Row": 1,
                                  "Value": "0.9",
                                  "Command": "core.race_editor.update_field",
                                  "min": 0,
                                  "max": 5,
                                  "step": 0.01
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 2,
                                  "Text": "Ideal Temperature (°C)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "species_temperature",
                                  "Grid.Column": 1,
                                  "Grid.Row": 2,
                                  "Value": "14.03",
                                  "Command": "core.race_editor.update_field",
                                  "min": -200,
                                  "max": 200,
                                  "step": 0.01
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 3,
                                  "Text": "Max Temperature Deviation (°C)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "species_temperature_tolerance",
                                  "Grid.Column": 1,
                                  "Grid.Row": 3,
                                  "Value": "24",
                                  "Command": "core.race_editor.update_field",
                                  "min": 0,
                                  "max": 200,
                                  "step": 0.01
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 4,
                                  "Text": "Ideal Oxygen (atm)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "species_oxygen",
                                  "Grid.Column": 1,
                                  "Grid.Row": 4,
                                  "Value": "0.20",
                                  "Command": "core.race_editor.update_field",
                                  "min": 0,
                                  "max": 1,
                                  "step": 0.01
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 5,
                                  "Text": "Max Oxygen Deviation (atm)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "species_oxygen_tolerance",
                                  "Grid.Column": 1,
                                  "Grid.Row": 5,
                                  "Value": "0.10",
                                  "Command": "core.race_editor.update_field",
                                  "min": 0,
                                  "max": 1,
                                  "step": 0.01
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 6,
                                  "Text": "Max Atmospheric Pressure (atm)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "species_pressure",
                                  "Grid.Column": 1,
                                  "Grid.Row": 6,
                                  "Value": "4.0",
                                  "Command": "core.race_editor.update_field",
                                  "min": 0,
                                  "max": 100,
                                  "step": 0.01
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "StackPanel",
                          "Id": "right_column",
                          "Grid.Column": 1,
                          "Orientation": "Vertical",
                          "Gap": 16,
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "BEHAVIORAL TRAITS",
                              "Style": "Label.H1",
                              "Classes": [
                                "ps-heading--accent"
                              ]
                            },
                            {
                              "Type": "Grid",
                              "Id": "traits_grid",
                              "ColumnDefinitions": [
                                "1fr",
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "auto",
                                "auto",
                                "auto",
                                "auto",
                                "auto",
                                "auto",
                                "auto",
                                "auto"
                              ],
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "Text": "Determination (1-100)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "trait_determination",
                                  "Grid.Column": 1,
                                  "Grid.Row": 0,
                                  "Value": "44",
                                  "Command": "core.race_editor.update_field",
                                  "min": 1,
                                  "max": 100,
                                  "step": 1
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 1,
                                  "Text": "Diplomacy (1-100)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "trait_diplomacy",
                                  "Grid.Column": 1,
                                  "Grid.Row": 1,
                                  "Value": "72",
                                  "Command": "core.race_editor.update_field",
                                  "min": 1,
                                  "max": 100,
                                  "step": 1
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 2,
                                  "Text": "Expansionism (1-100)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "trait_expansionism",
                                  "Grid.Column": 1,
                                  "Grid.Row": 2,
                                  "Value": "60",
                                  "Command": "core.race_editor.update_field",
                                  "min": 1,
                                  "max": 100,
                                  "step": 1
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 3,
                                  "Text": "Militancy (1-100)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "trait_militancy",
                                  "Grid.Column": 1,
                                  "Grid.Row": 3,
                                  "Value": "27",
                                  "Command": "core.race_editor.update_field",
                                  "min": 1,
                                  "max": 100,
                                  "step": 1
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 4,
                                  "Text": "Trade (1-100)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "trait_trade",
                                  "Grid.Column": 1,
                                  "Grid.Row": 4,
                                  "Value": "41",
                                  "Command": "core.race_editor.update_field",
                                  "min": 1,
                                  "max": 100,
                                  "step": 1
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 5,
                                  "Text": "Translation (-25 to 25)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "trait_translation",
                                  "Grid.Column": 1,
                                  "Grid.Row": 5,
                                  "Value": "-12",
                                  "Command": "core.race_editor.update_field",
                                  "min": -25,
                                  "max": 25,
                                  "step": 1
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 6,
                                  "Text": "Xenophobia (1-100)"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "trait_xenophobia",
                                  "Grid.Column": 1,
                                  "Grid.Row": 6,
                                  "Value": "36",
                                  "Command": "core.race_editor.update_field",
                                  "min": 1,
                                  "max": 100,
                                  "step": 1
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 7,
                                  "Text": "Officer Graduation Age"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "officer_graduation_age",
                                  "Grid.Column": 1,
                                  "Grid.Row": 7,
                                  "Value": "21",
                                  "Command": "core.race_editor.update_field",
                                  "min": 1,
                                  "max": 999,
                                  "step": 1
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Text": "SPECIES MODIFIERS",
                              "Style": "Label.H1",
                              "Classes": [
                                "ps-heading--accent"
                              ]
                            },
                            {
                              "Type": "Grid",
                              "Id": "modifiers_grid",
                              "ColumnDefinitions": [
                                "1fr",
                                "1fr"
                              ],
                              "RowDefinitions": [
                                "auto",
                                "auto",
                                "auto",
                                "auto"
                              ],
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 0,
                                  "Text": "Population Density Modifier"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "modifier_density",
                                  "Grid.Column": 1,
                                  "Grid.Row": 0,
                                  "Value": "1.0",
                                  "Command": "core.race_editor.update_field",
                                  "min": 0,
                                  "max": 999,
                                  "step": 0.01
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 1,
                                  "Text": "Population Growth Modifier"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "modifier_growth",
                                  "Grid.Column": 1,
                                  "Grid.Row": 1,
                                  "Value": "1.0",
                                  "Command": "core.race_editor.update_field",
                                  "min": 0,
                                  "max": 999,
                                  "step": 0.01
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 2,
                                  "Text": "Research Rate Modifier"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "modifier_research",
                                  "Grid.Column": 1,
                                  "Grid.Row": 2,
                                  "Value": "1.0",
                                  "Command": "core.race_editor.update_field",
                                  "min": 0,
                                  "max": 999,
                                  "step": 0.01
                                },
                                {
                                  "Type": "Label",
                                  "Grid.Column": 0,
                                  "Grid.Row": 3,
                                  "Text": "Factory Production Modifier"
                                },
                                {
                                  "Type": "Input",
                                  "Id": "modifier_production",
                                  "Grid.Column": 1,
                                  "Grid.Row": 3,
                                  "Value": "1.0",
                                  "Command": "core.race_editor.update_field",
                                  "min": 0,
                                  "max": 999,
                                  "step": 0.01
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "Type": "Label",
                      "Text": "NAMING THEMES",
                      "Style": "Label.H1",
                      "Classes": [
                        "ps-heading--accent"
                      ]
                    },
                    {
                      "Type": "Grid",
                      "Id": "themes_grid",
                      "ColumnDefinitions": [
                        "1fr",
                        "1fr"
                      ],
                      "RowDefinitions": [
                        "auto",
                        "auto",
                        "auto",
                        "auto"
                      ],
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 0,
                          "Text": "System Theme"
                        },
                        {
                          "Type": "Select",
                          "Id": "theme_system",
                          "Grid.Column": 1,
                          "Grid.Row": 0,
                          "Command": "core.race_editor.update_field",
                          "IsSearchable": true
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 1,
                          "Text": "Class Theme"
                        },
                        {
                          "Type": "Select",
                          "Id": "theme_class",
                          "Grid.Column": 1,
                          "Grid.Row": 1,
                          "Command": "core.race_editor.update_field",
                          "IsSearchable": true
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 2,
                          "Text": "Rank Theme"
                        },
                        {
                          "Type": "Select",
                          "Id": "theme_rank",
                          "Grid.Column": 1,
                          "Grid.Row": 2,
                          "Command": "core.race_editor.update_field",
                          "IsSearchable": true
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 3,
                          "Text": "Name Theme"
                        },
                        {
                          "Type": "Select",
                          "Id": "theme_name",
                          "Grid.Column": 1,
                          "Grid.Row": 3,
                          "Command": "core.race_editor.update_field",
                          "IsSearchable": true
                        }
                      ]
                    },
                    {
                      "Type": "Separator",
                      "Id": "installations_sep",
                      "Variant": "Subtle",
                      "Fade": true
                    },
                    {
                      "Type": "Label",
                      "Text": "STARTING CONDITIONS",
                      "Style": "Label.H1",
                      "Classes": [
                        "ps-heading--accent"
                      ]
                    },
                    {
                      "Type": "Grid",
                      "Id": "population_grid",
                      "ColumnDefinitions": [
                        "1fr",
                        "1fr"
                      ],
                      "RowDefinitions": [
                        "auto"
                      ],
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 0,
                          "Text": "Population (m)"
                        },
                        {
                          "Type": "Input",
                          "Id": "population",
                          "Grid.Column": 1,
                          "Grid.Row": 0,
                          "Value": "1000",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        }
                      ]
                    },
                    {
                      "Type": "Label",
                      "Text": "INSTALLATIONS",
                      "Style": "Label.H1",
                      "Classes": [
                        "ps-heading--accent"
                      ]
                    },
                    {
                      "Type": "Grid",
                      "Id": "installations_grid",
                      "ColumnDefinitions": [
                        "1fr",
                        "1fr",
                        "1fr",
                        "1fr"
                      ],
                      "RowDefinitions": [
                        "auto",
                        "auto",
                        "auto",
                        "auto",
                        "auto",
                        "auto",
                        "auto"
                      ],
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 0,
                          "Text": "Shipyards"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_shipyards",
                          "Grid.Column": 1,
                          "Grid.Row": 0,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 2,
                          "Grid.Row": 0,
                          "Text": "Research Facilities"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_research_facilities",
                          "Grid.Column": 3,
                          "Grid.Row": 0,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 1,
                          "Text": "Conventional Industry"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_conventional_industry",
                          "Grid.Column": 1,
                          "Grid.Row": 1,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 2,
                          "Grid.Row": 1,
                          "Text": "Construction Factories"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_construction_factories",
                          "Grid.Column": 3,
                          "Grid.Row": 1,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 2,
                          "Text": "Ordnance Factories"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_ordnance_factories",
                          "Grid.Column": 1,
                          "Grid.Row": 2,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 2,
                          "Grid.Row": 2,
                          "Text": "Fighter Factories"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_fighter_factories",
                          "Grid.Column": 3,
                          "Grid.Row": 2,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 3,
                          "Text": "Mines"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_mines",
                          "Grid.Column": 1,
                          "Grid.Row": 3,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 2,
                          "Grid.Row": 3,
                          "Text": "Automated Mines"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_automated_mines",
                          "Grid.Column": 3,
                          "Grid.Row": 3,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 4,
                          "Text": "Fuel Refineries"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_fuel_refineries",
                          "Grid.Column": 1,
                          "Grid.Row": 4,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 2,
                          "Grid.Row": 4,
                          "Text": "Financial Centres"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_financial_centres",
                          "Grid.Column": 3,
                          "Grid.Row": 4,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 5,
                          "Text": "Maintenance Facilities"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_maintenance_facilities",
                          "Grid.Column": 1,
                          "Grid.Row": 5,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 2,
                          "Grid.Row": 5,
                          "Text": "Ground Force Const. Complexes"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_gfcc",
                          "Grid.Column": 3,
                          "Grid.Row": 5,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 6,
                          "Text": "Deep Space Tracking Stations"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_tracking_stations",
                          "Grid.Column": 1,
                          "Grid.Row": 6,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 2,
                          "Grid.Row": 6,
                          "Text": "Military Academies"
                        },
                        {
                          "Type": "Input",
                          "Id": "inst_military_academies",
                          "Grid.Column": 3,
                          "Grid.Row": 6,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999,
                          "step": 1
                        }
                      ]
                    },
                    {
                      "Type": "Separator",
                      "Id": "resources_sep",
                      "Variant": "Subtle",
                      "Fade": true
                    },
                    {
                      "Type": "Label",
                      "Text": "STARTING RESOURCES",
                      "Style": "Label.H1",
                      "Classes": [
                        "ps-heading--accent"
                      ]
                    },
                    {
                      "Type": "Grid",
                      "Id": "resources_grid",
                      "ColumnDefinitions": [
                        "1fr",
                        "1fr",
                        "1fr",
                        "1fr"
                      ],
                      "RowDefinitions": [
                        "auto",
                        "auto"
                      ],
                      "Gap": 8,
                      "Children": [
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 0,
                          "Text": "Fuel Stockpile (litres)"
                        },
                        {
                          "Type": "Input",
                          "Id": "starting_fuel",
                          "Grid.Column": 1,
                          "Grid.Row": 0,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 2,
                          "Grid.Row": 0,
                          "Text": "MSP Stockpile"
                        },
                        {
                          "Type": "Input",
                          "Id": "starting_msp",
                          "Grid.Column": 3,
                          "Grid.Row": 0,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 0,
                          "Grid.Row": 1,
                          "Text": "Starting Tech Points"
                        },
                        {
                          "Type": "Input",
                          "Id": "starting_tech_points",
                          "Grid.Column": 1,
                          "Grid.Row": 1,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999999,
                          "step": 1
                        },
                        {
                          "Type": "Label",
                          "Grid.Column": 2,
                          "Grid.Row": 1,
                          "Text": "Starting Ship Build Points"
                        },
                        {
                          "Type": "Input",
                          "Id": "starting_ship_bp",
                          "Grid.Column": 3,
                          "Grid.Row": 1,
                          "Value": "0",
                          "Command": "core.race_editor.update_field",
                          "min": 0,
                          "max": 999999999,
                          "step": 1
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "Type": "Grid",
          "Id": "race_editor_footer",
          "Grid.Row": 1,
          "Grid.Column": 0,
          "Width": "100%",
          "ColumnDefinitions": ["*", "auto"],
          "Gap": 8,
          "Margin": "16px 0 0 0",
          "Children": [
            {
              "Type": "StackPanel",
              "Id": "footer_spacer",
              "Grid.Column": 0
            },
            {
              "Type": "StackPanel",
              "Id": "footer_buttons",
              "Grid.Column": 1,
              "Orientation": "Horizontal",
              "HorizontalAlignment": "Right",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Button",
                  "Id": "btn_create_race",
                  "Text": "Create Race",
                  "Style": "Primary",
                  "Command": "core.race_editor.create"
                },
                {
                  "Type": "Button",
                  "Id": "btn_back",
                  "Text": "Back",
                  "Command": "core.race_editor.cancel"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}