{
  "Type": "Window",
  "Id": "settings",
  "Title": "Settings",
  "Icon": "🔧",
  "Classes": [
    "ps-window-holo"
  ],
  "State": "Maximized",
  "DisplayLocation": "Taskbar",
  "WindowGroup": "static_menu",
  "IsRestorable": false,
  "IsMinimizable": false,
  "Children": [
    {
      "Type": "Grid",
      "Id": "settings_layout",
      "Width": "100%",
      "Height": "100%",
      "HorizontalAlignment": "Stretch",
      "VerticalAlignment": "Stretch",
      "ColumnDefinitions": [
        "1fr"
      ],
      "RowDefinitions": [
        "auto",
        "1fr",
        "auto"
      ],
      "Gap": 8,
      "Children": [
        {
          "Type": "Grid",
          "Id": "settings_header",
          "Grid.Column": 0,
          "Grid.Row": 0,
          "ColumnDefinitions": [
            "1fr",
            "auto"
          ],
          "VerticalAlignment": "Center",
          "Children": [
            {
              "Type": "Label",
              "Id": "settings_title",
              "Grid.Column": 0,
              "Grid.Row": 0,
              "Text": "Settings",
              "Style": "Label.Title",
              "Margin": "0px 0px 0px 4px"
            },
            {
              "Type": "Input",
              "Id": "settings_search",
              "Grid.Column": 1,
              "Grid.Row": 0,
              "Width": "300px",
              "Placeholder": "Search settings…",
              "ShowClearButton": true,
              "CommitOnInput": true,
              "Command": "core.settings.search",
              "IsVisible": true
            }
          ]
        },
        {
          "Type": "TabContainer",
          "Id": "settings_tabs",
          "Grid.Column": 0,
          "Grid.Row": 1,
          "Width": "100%",
          "Height": "100%",
          "Orientation": "Vertical",
          "ActiveIndex": 0,
          "Command": "core.settings.tab_changed",
          "Children": [
            {
              "Type": "TabItem",
              "Id": "tab_audio",
              "Title": "Audio",
              "Children": [
                {
                  "Type": "ScrollBox",
                  "Id": "audio_scroll",
                  "Axis": "Vertical",
                  "Width": "100%",
                  "Height": "100%",
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Id": "audio_settings_panel",
                      "Orientation": "Vertical",
                      "Gap": 16,
                      "Padding": "16px",
                      "Width": "100%",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "panel_audio_volume",
                          "Classes": [
                            "ps-panel--glass",
                            "ps-panel--accent-strip"
                          ],
                          "Width": "100%",
                          "Padding": "16px",
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Volume",
                              "Style": "Label.Heading",
                              "Margin": "0px 0px 12px 0px"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_master_volume",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Master Volume",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Slider",
                                  "Id": "slider_master_volume",
                                  "Width": "100%",
                                  "Min": 0,
                                  "Max": 100,
                                  "Step": 1,
                                  "ShowValue": true,
                                  "Value": 100,
                                  "Command": "core.settings.set_audio"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_master_volume",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "slider_master_volume"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_music_volume",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Music Volume",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Slider",
                                  "Id": "slider_music_volume",
                                  "Width": "100%",
                                  "Min": 0,
                                  "Max": 100,
                                  "Step": 1,
                                  "ShowValue": true,
                                  "Value": 80,
                                  "Command": "core.settings.set_audio"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_music_volume",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "slider_music_volume"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_sfx_volume",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Sound Effects",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Slider",
                                  "Id": "slider_sfx_volume",
                                  "Width": "100%",
                                  "Min": 0,
                                  "Max": 100,
                                  "Step": 1,
                                  "ShowValue": true,
                                  "Value": 80,
                                  "Command": "core.settings.set_audio"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_sfx_volume",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "slider_sfx_volume"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tab_display",
              "Title": "Display",
              "Children": [
                {
                  "Type": "ScrollBox",
                  "Id": "display_scroll",
                  "Axis": "Vertical",
                  "Width": "100%",
                  "Height": "100%",
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Id": "display_settings_panel",
                      "Orientation": "Vertical",
                      "Gap": 16,
                      "Padding": "16px",
                      "Width": "100%",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "panel_display_appearance",
                          "Classes": [
                            "ps-panel--glass",
                            "ps-panel--accent-strip"
                          ],
                          "Width": "100%",
                          "Padding": "16px",
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Appearance",
                              "Style": "Label.Heading",
                              "Margin": "0px 0px 12px 0px"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_theme",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Theme",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Select",
                                  "Id": "select_theme",
                                  "Width": "100%",
                                  "Value": "mission-control",
                                  "Command": "core.settings.set_interface",
                                  "Options": [
                                    {
                                      "Label": "Mission Control",
                                      "Value": "mission-control"
                                    },
                                    {
                                      "Label": "Fleet Command",
                                      "Value": "fleet-command"
                                    }
                                  ]
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_theme",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "select_theme"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Text": "Choose the visual theme for the interface.",
                              "Classes": [
                                "ps-text-secondary",
                                "ps-text--wrap"
                              ],
                              "Margin": "0px 0px 12px 188px"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_ui_scale",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "UI Scale",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Slider",
                                  "Id": "slider_ui_scale",
                                  "Width": "100%",
                                  "Min": 75,
                                  "Max": 150,
                                  "Step": 5,
                                  "ShowValue": true,
                                  "Value": 100,
                                  "Command": "core.settings.set_interface"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_ui_scale",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "slider_ui_scale"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "panel_display_readout",
                          "Classes": [
                            "ps-panel--glass",
                            "ps-panel--accent-strip"
                          ],
                          "Width": "100%",
                          "Padding": "16px",
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Design Readout",
                              "Style": "Label.Heading",
                              "Margin": "0px 0px 12px 0px"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_spec_display",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Statistics Readout",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Select",
                                  "Id": "select_spec_display",
                                  "Width": "100%",
                                  "Value": "card",
                                  "Command": "core.settings.set_interface",
                                  "Options": [
                                    {
                                      "Label": "Modern Card (grouped)",
                                      "Value": "card"
                                    },
                                    {
                                      "Label": "Classic Text (Aurora-style)",
                                      "Value": "classic"
                                    }
                                  ]
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_spec_display",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "select_spec_display"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Text": "How design statistics are shown across all design windows (ship classes, components, missiles, turrets, ground troops).",
                              "Classes": [
                                "ps-text-secondary",
                                "ps-text--wrap"
                              ],
                              "Margin": "0px 0px 0px 188px"
                            }
                          ]
                        },
                        {
                          "Type": "Panel",
                          "Id": "panel_display_map",
                          "Classes": [
                            "ps-panel--glass",
                            "ps-panel--accent-strip"
                          ],
                          "Width": "100%",
                          "Padding": "16px",
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Map",
                              "Style": "Label.Heading",
                              "Margin": "0px 0px 12px 0px"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_map_labels",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Map Labels",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Select",
                                  "Id": "select_map_label_mode",
                                  "Width": "100%",
                                  "Value": "smart",
                                  "Command": "core.settings.set_interface",
                                  "Options": [
                                    {
                                      "Label": "Smart (hide clutter, show on hover/zoom)",
                                      "Value": "smart"
                                    },
                                    {
                                      "Label": "Always show all",
                                      "Value": "always"
                                    }
                                  ]
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_map_label_mode",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "select_map_label_mode"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Text": "How minor-body labels (asteroids and comets) are shown on the system map.",
                              "Classes": [
                                "ps-text-secondary",
                                "ps-text--wrap"
                              ],
                              "Margin": "0px 0px 12px 188px"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_combat_overlay",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Fleet Combat Overlay",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Select",
                                  "Id": "select_combat_overlay",
                                  "Width": "100%",
                                  "Value": "bars",
                                  "Command": "core.settings.set_interface",
                                  "Options": [
                                    {
                                      "Label": "Bars only (under fleet)",
                                      "Value": "bars"
                                    },
                                    {
                                      "Label": "Rings only (around fleet)",
                                      "Value": "rings"
                                    },
                                    {
                                      "Label": "Both bars and rings",
                                      "Value": "both"
                                    },
                                    {
                                      "Label": "None",
                                      "Value": "none"
                                    }
                                  ]
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_combat_overlay",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "select_combat_overlay"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Text": "How shield/damage readouts are drawn around fleet icons on the system map.",
                              "Classes": [
                                "ps-text-secondary",
                                "ps-text--wrap"
                              ],
                              "Margin": "0px 0px 12px 188px"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_pixi_fleet",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Detailed Fleet Rendering",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "check_pixi_fleet",
                                  "IsChecked": true,
                                  "Command": "core.settings.set_interface"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_pixi_fleet",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "check_pixi_fleet"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Text": "Render the detailed multi-ship fleet formation when zoomed in. Off shows only the flat fleet triangle at every zoom.",
                              "Classes": [
                                "ps-text-secondary",
                                "ps-text--wrap"
                              ],
                              "Margin": "0px 0px 12px 188px"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_prediction_speed",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Smooth Motion Up To",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Select",
                                  "Id": "select_prediction_speed",
                                  "Width": "100%",
                                  "Value": "3600",
                                  "Command": "core.settings.set_interface",
                                  "Options": [
                                    {
                                      "Label": "Off (raw snapshots)",
                                      "Value": "off"
                                    },
                                    {
                                      "Label": "1s/s",
                                      "Value": "1"
                                    },
                                    {
                                      "Label": "5s/s",
                                      "Value": "5"
                                    },
                                    {
                                      "Label": "30s/s",
                                      "Value": "30"
                                    },
                                    {
                                      "Label": "2m/s",
                                      "Value": "120"
                                    },
                                    {
                                      "Label": "5m/s",
                                      "Value": "300"
                                    },
                                    {
                                      "Label": "20m/s",
                                      "Value": "1200"
                                    },
                                    {
                                      "Label": "1h/s",
                                      "Value": "3600"
                                    },
                                    {
                                      "Label": "3h/s",
                                      "Value": "10800"
                                    },
                                    {
                                      "Label": "8h/s",
                                      "Value": "28800"
                                    },
                                    {
                                      "Label": "1d/s",
                                      "Value": "86400"
                                    }
                                  ]
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_prediction_speed",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "select_prediction_speed"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Text": "Highest game speed at which fleet and body motion stays smoothly predicted. Above this the map snaps to raw server positions. Higher = smoother at fast speeds but can drift from the server.",
                              "Classes": [
                                "ps-text-secondary",
                                "ps-text--wrap"
                              ],
                              "Margin": "0px 0px 12px 188px"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_nebula_cache",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Nebula Cache",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Slider",
                                  "Id": "slider_nebula_cache",
                                  "Width": "100%",
                                  "Min": 0,
                                  "Max": 100,
                                  "Step": 1,
                                  "ShowValue": true,
                                  "Value": 20,
                                  "Command": "core.settings.set_interface"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_nebula_cache",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "slider_nebula_cache"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Text": "Generated nebulas kept in memory for instant loading. Set to 0 to disable caching.",
                              "Classes": [
                                "ps-text-secondary",
                                "ps-text--wrap"
                              ],
                              "Margin": "0px 0px 0px 188px"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tab_gameplay",
              "Title": "Gameplay",
              "Children": [
                {
                  "Type": "ScrollBox",
                  "Id": "gameplay_scroll",
                  "Axis": "Vertical",
                  "Width": "100%",
                  "Height": "100%",
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Id": "gameplay_settings_panel",
                      "Orientation": "Vertical",
                      "Gap": 16,
                      "Padding": "16px",
                      "Width": "100%",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "panel_gameplay_simulation",
                          "Classes": [
                            "ps-panel--glass",
                            "ps-panel--accent-strip"
                          ],
                          "Width": "100%",
                          "Padding": "16px",
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Simulation",
                              "Style": "Label.Heading",
                              "Margin": "0px 0px 12px 0px"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_auto_pause",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Auto-Pause",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "check_auto_pause",
                                  "IsChecked": true,
                                  "Command": "core.toggle_autopause"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_auto_pause",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "check_auto_pause"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Text": "Pause the simulation when notable events occur.",
                              "Classes": [
                                "ps-text-secondary",
                                "ps-text--wrap"
                              ],
                              "Margin": "0px 0px 0px 188px"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tab_accessibility",
              "Title": "Accessibility",
              "Children": [
                {
                  "Type": "ScrollBox",
                  "Id": "accessibility_scroll",
                  "Axis": "Vertical",
                  "Width": "100%",
                  "Height": "100%",
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Id": "accessibility_settings_panel",
                      "Orientation": "Vertical",
                      "Gap": 16,
                      "Padding": "16px",
                      "Width": "100%",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "panel_accessibility_visual",
                          "Classes": [
                            "ps-panel--glass",
                            "ps-panel--accent-strip"
                          ],
                          "Width": "100%",
                          "Padding": "16px",
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Visual Aids",
                              "Style": "Label.Heading",
                              "Margin": "0px 0px 12px 0px"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_high_contrast",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "High Contrast Mode",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "check_high_contrast",
                                  "Command": "core.settings.set_interface"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_high_contrast",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "check_high_contrast"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_reduce_motion",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Reduce Motion",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "check_reduce_motion",
                                  "Command": "core.settings.set_interface"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_reduce_motion",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "check_reduce_motion"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_show_tooltips",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Show Tooltips",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Checkbox",
                                  "Id": "check_show_tooltips",
                                  "IsChecked": true,
                                  "Command": "core.settings.set_interface"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_show_tooltips",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "check_show_tooltips"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tab_input",
              "Title": "Input",
              "Children": [
                {
                  "Type": "StackPanel",
                  "Id": "input_settings_panel",
                  "Orientation": "Vertical",
                  "Gap": 8,
                  "Padding": "16px",
                  "Width": "100%",
                  "Height": "100%",
                  "Children": [
                    {
                      "Type": "Input",
                      "Id": "keybind_search",
                      "Placeholder": "Search keybindings...",
                      "Command": "core.keybind_set_filter",
                      "CommitOnInput": true,
                      "ShowClearButton": true,
                      "Width": "100%"
                    },
                    {
                      "Type": "DataGrid",
                      "Id": "keybind_grid",
                      "SelectionMode": "None",
                      "Height": "100%",
                      "Columns": [
                        {
                          "Header": "Action Description",
                          "Field": "action",
                          "Width": "1fr"
                        },
                        {
                          "Header": "Binding Controls",
                          "Field": "binding",
                          "Width": "240px"
                        }
                      ],
                      "Rows": []
                    }
                  ]
                }
              ]
            },
            {
              "Type": "TabItem",
              "Id": "tab_network",
              "Title": "Network",
              "Children": [
                {
                  "Type": "ScrollBox",
                  "Id": "network_scroll",
                  "Axis": "Vertical",
                  "Width": "100%",
                  "Height": "100%",
                  "Children": [
                    {
                      "Type": "StackPanel",
                      "Id": "network_settings_panel",
                      "Orientation": "Vertical",
                      "Gap": 16,
                      "Padding": "16px",
                      "Width": "100%",
                      "Children": [
                        {
                          "Type": "Panel",
                          "Id": "panel_network_sync",
                          "Classes": [
                            "ps-panel--glass",
                            "ps-panel--accent-strip"
                          ],
                          "Width": "100%",
                          "Padding": "16px",
                          "Children": [
                            {
                              "Type": "Label",
                              "Text": "Synchronization",
                              "Style": "Label.Heading",
                              "Margin": "0px 0px 12px 0px"
                            },
                            {
                              "Type": "StackPanel",
                              "Id": "row_network_interval",
                              "Orientation": "Horizontal",
                              "HorizontalAlignment": "Stretch",
                              "Gap": 8,
                              "Children": [
                                {
                                  "Type": "Label",
                                  "Text": "Update Interval",
                                  "Width": "180px",
                                  "VerticalAlignment": "Center"
                                },
                                {
                                  "Type": "Slider",
                                  "Id": "slider_network_interval",
                                  "Width": "100%",
                                  "Min": 50,
                                  "Max": 1000,
                                  "Step": 25,
                                  "ShowValue": true,
                                  "Value": 100,
                                  "Command": "core.settings.set_network"
                                },
                                {
                                  "Type": "Button",
                                  "Id": "reset_network_interval",
                                  "Text": "↺",
                                  "TooltipText": "Reset to default",
                                  "Width": "32px",
                                  "Command": "core.settings.reset_field",
                                  "CommandPayload": {
                                    "id": "slider_network_interval"
                                  },
                                  "IsEnabled": false,
                                  "VerticalAlignment": "Center"
                                }
                              ]
                            },
                            {
                              "Type": "Label",
                              "Text": "How often the server sends game state updates. Lower values are smoother but use more bandwidth.",
                              "Classes": [
                                "ps-text-secondary",
                                "ps-text--wrap"
                              ],
                              "Margin": "0px 0px 0px 188px"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "Type": "Grid",
          "Id": "settings_footer",
          "Grid.Column": 0,
          "Grid.Row": 2,
          "ColumnDefinitions": [
            "1fr",
            "auto"
          ],
          "Margin": "10px 0px 0px 0px",
          "Children": [
            {
              "Type": "StackPanel",
              "Grid.Column": 0,
              "Grid.Row": 0,
              "Orientation": "Horizontal",
              "HorizontalAlignment": "Left",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Button",
                  "Id": "btn_reset_all",
                  "Text": "Reset All to Defaults",
                  "Style": "Danger",
                  "Command": "core.settings.open_reset_all",
                  "IsEnabled": false,
                  "IsVisible": true
                }
              ]
            },
            {
              "Type": "StackPanel",
              "Grid.Column": 1,
              "Grid.Row": 0,
              "Orientation": "Horizontal",
              "HorizontalAlignment": "Right",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Button",
                  "Id": "btn_close_settings",
                  "Text": "Back",
                  "Width": "140px",
                  "Command": "core.settings.close"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "keybind_capture_modal",
      "IsVisible": false,
      "IsDismissible": true,
      "CloseOnBackdropClick": true,
      "CloseOnEscape": false,
      "CloseCommand": "core.input.capture_cancel",
      "CloseCommandPayload": {
        "actionId": ""
      },
      "Size": "Small",
      "BadgeText": "Bind",
      "BadgeVariant": "edit",
      "Children": [
        {
          "Type": "StackPanel",
          "Id": "keybind_capture_modal_body",
          "Orientation": "Vertical",
          "Gap": 8,
          "Children": [
            {
              "Type": "Label",
              "Id": "keybind_capture_prompt",
              "Text": "Press any key to bind..."
            },
            {
              "Type": "Label",
              "Id": "keybind_capture_mods",
              "Text": "Modifiers: (none)"
            },
            {
              "Type": "Alert",
              "Id": "keybind_capture_conflict_alert",
              "Severity": "Warning",
              "Title": "Conflict",
              "Message": "",
              "IsDismissible": false,
              "IsVisible": false
            }
          ]
        }
      ]
    },
    {
      "Type": "Modal",
      "Id": "reset_all_confirm",
      "IsVisible": false,
      "Title": "Reset All Settings",
      "BadgeText": "Warning",
      "BadgeVariant": "warn",
      "Size": "Small",
      "IsDismissible": true,
      "CloseOnBackdropClick": false,
      "CloseOnEscape": true,
      "CloseCommand": "core.settings.cancel_reset_all",
      "Children": [
        {
          "Type": "StackPanel",
          "Orientation": "Vertical",
          "Gap": 12,
          "Children": [
            {
              "Type": "Label",
              "Text": "Reset every setting to its default? Audio, Display, Gameplay, Accessibility and Network preferences will all revert.",
              "Style": "Label.Caption",
              "Classes": [
                "ps-text-secondary",
                "ps-text--wrap"
              ]
            },
            {
              "Type": "StackPanel",
              "Orientation": "Horizontal",
              "HorizontalAlignment": "Right",
              "Gap": 8,
              "Children": [
                {
                  "Type": "Button",
                  "Id": "btn_reset_all_cancel",
                  "Text": "Cancel",
                  "Command": "core.settings.cancel_reset_all"
                },
                {
                  "Type": "Button",
                  "Id": "btn_reset_all_confirm",
                  "Text": "Reset All",
                  "Style": "Danger",
                  "Command": "core.settings.reset_all"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "Background": "rgba(0,0,0,0.85)",
  "Padding": "16px"
}
