{
  "namespace": "refined_deferred_settings_section",

  // --- Button Definition ---
  "refined_deferred_settings_button@settings_common.section_toggle_base": {
    "$toggle_view_binding_name": "refined_deferred_settings_button_toggle",

    "$glyph_texture": "textures/ui/refined_deferred_icon.png",
    "$glyph_color_texture": "textures/ui/refined_deferred_icon.png",
    "$glyph_size": [ 16, 16 ],

    "$button_text": "Refined Deferred",
    "$toggle_property_bag": {
      "#panel_title": "Refined Deferred"
    }
  },

  // --- Content Panel Definition ---
  "refined_deferred_settings_section": {
    "type": "stack_panel",
    "size": [ "100%", "100%c" ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "bindings": [
      {
        "binding_type": "view",
        "source_control_name": "refined_deferred_settings_button_toggle",
        "source_property_name": "#toggle_state",
        "target_property_name": "#visible"
      }
    ],
    "controls": [
      { "padding_top": { "type": "panel", "size": [ 0, 4 ] } },
      {
        "graphics_mode@settings_common.option_dropdown_no_scroll": {
          "$option_label": "options.graphicsMode",
          "$dropdown_content": "general_section.graphics_mode_dropdown_content",
          "$dropdown_area": "content_area",
          "$dropdown_name": "graphics_mode_dropdown",
          "$option_enabled_binding_name": "#graphics_mode_dropdown_enabled",
          "$options_dropdown_toggle_label_binding": "#graphics_mode_dropdown_toggle_label",
          "$dropdown_scroll_content_size": [ "100%", "100%" ]
        }
      },
      {
        "graphics_quality_preset_mode_dropdown_content@settings_common.option_radio_dropdown_group": {
          "$option_enabled_binding_name": "#graphics_quality_preset_mode_dropdown_enabled",
          "$radio_buttons": [
            {
              "@settings_common.radio_with_label": {
                "$toggle_state_binding_name": "#graphics_quality_preset_mode_radio_performance",
                "$radio_label_text": "options.graphicsQualityPresetMode.performance"
              }
            },
            {
              "@settings_common.radio_with_label": {
                "$toggle_state_binding_name": "#graphics_quality_preset_mode_radio_visuals",
                "$radio_label_text": "options.graphicsQualityPresetMode.visuals"
              }
            },
            {
              "@settings_common.radio_with_label": {
                "$toggle_state_binding_name": "#graphics_quality_preset_mode_radio_custom",
                "$radio_label_text": "options.graphicsQualityPresetMode.custom"
              }
            }
          ],
          "bindings": [
            {
              "binding_name": "#graphics_mode_is_deferred",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "advanced_graphics_options_button@common_buttons.light_content_button": {
          "size": [ "100%", 20 ],
          "$button_content": "general_section.advanced_graphics_options_button_content",
          "$pressed_button_name": "button.expand_advanced_graphics",
          "bindings": [
            {
              "binding_name": "#advanced_graphics_options_button_visible",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "advanced_graphics_options_section@general_section.advanced_graphics_options_section": {
          "bindings": [
            {
              "binding_name": "#advanced_graphics_options_grid_visible",
              "binding_name_override": "#visible"
            }
          ]
        }
      }
    ]
  }
}
