<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2026, Jiri Eischmann <jiri@eischmann.cz> and the meshy contributors -->
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
<interface>
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.7"/>
  <template class="MeshyRepeaterView" parent="GtkBox">
    <property name="orientation">vertical</property>

    <!-- Main stack -->
    <child>
      <object class="AdwViewStack" id="stack">
        <property name="vexpand">true</property>

        <!-- ═══ Status page ═══ -->
        <child>
          <object class="AdwViewStackPage">
            <property name="name">status</property>
            <property name="title" translatable="yes">Status</property>
            <property name="icon-name">charge-symbolic</property>
            <property name="child">
              <object class="GtkScrolledWindow">
                <property name="vexpand">true</property>
                <property name="propagate-natural-width">false</property>
                <child>
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <property name="spacing">12</property>
                    <property name="margin-start">12</property>
                    <property name="margin-end">12</property>
                    <property name="margin-top">12</property>
                    <property name="margin-bottom">12</property>

                    <!-- System -->
                    <child>
                      <object class="AdwPreferencesGroup">
                        <property name="title" translatable="yes">System</property>
                        <child>
                          <object class="AdwActionRow" id="st_clock">
                            <property name="title" translatable="yes">Clock at Login</property>
                            <property name="subtitle">--</property>
                            <child type="suffix">
                              <object class="GtkLabel" id="clock_drift_label">
                                <property name="label"></property>
                                <property name="valign">center</property>
                                <property name="visible">false</property>
                                <style>
                                  <class name="error"/>
                                </style>
                              </object>
                            </child>
                            <child type="suffix">
                              <object class="GtkButton" id="clock_sync_btn">
                                <property name="label" translatable="yes">Sync Now</property>
                                <property name="valign">center</property>
                                <property name="visible">false</property>
                                <style>
                                  <class name="suggested-action"/>
                                </style>
                              </object>
                            </child>
                            <child type="suffix">
                              <object class="GtkButton" id="clock_reset_btn">
                                <property name="label" translatable="yes">Reset &amp; Reboot</property>
                                <property name="valign">center</property>
                                <property name="visible">false</property>
                                <style>
                                  <class name="destructive-action"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_battery">
                            <property name="title" translatable="yes">Battery</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_uptime">
                            <property name="title" translatable="yes">Uptime</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_queue">
                            <property name="title" translatable="yes">Message Queue</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_errors">
                            <property name="title" translatable="yes">Error Events</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- Radio -->
                    <child>
                      <object class="AdwPreferencesGroup">
                        <property name="title" translatable="yes">Radio</property>
                        <child>
                          <object class="AdwActionRow" id="st_rssi">
                            <property name="title" translatable="yes">Last RSSI</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_snr">
                            <property name="title" translatable="yes">Last SNR</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_noise">
                            <property name="title" translatable="yes">Noise Floor</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_tx_air">
                            <property name="title" translatable="yes">TX Airtime</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_rx_air">
                            <property name="title" translatable="yes">RX Airtime</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_channel_util">
                            <property name="title" translatable="yes">Channel Utilization</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_duty_cycle">
                            <property name="title" translatable="yes">Duty Cycle</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- Packets -->
                    <child>
                      <object class="AdwPreferencesGroup">
                        <property name="title" translatable="yes">Packets</property>
                        <child>
                          <object class="AdwActionRow" id="st_sent">
                            <property name="title" translatable="yes">Sent</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_recv">
                            <property name="title" translatable="yes">Received</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_recv_errors">
                            <property name="title" translatable="yes">Receive Errors</property>
                            <property name="subtitle">--</property>
                            <property name="visible">false</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_flood">
                            <property name="title" translatable="yes">Flood</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_direct">
                            <property name="title" translatable="yes">Direct</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwActionRow" id="st_dups">
                            <property name="title" translatable="yes">Duplicates</property>
                            <property name="subtitle">--</property>
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- Action buttons -->
                    <child>
                      <object class="GtkBox">
                        <property name="halign">center</property>
                        <property name="spacing">12</property>
                        <child>
                          <object class="GtkButton" id="status_refresh_btn">
                            <property name="label" translatable="yes">Refresh</property>
                            <style>
                              <class name="pill"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="GtkButton" id="tele_btn">
                            <property name="label" translatable="yes">Request Telemetry</property>
                            <style>
                              <class name="pill"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>

                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>

        <!-- ═══ CLI page ═══ -->
        <child>
          <object class="AdwViewStackPage">
            <property name="name">cli</property>
            <property name="title" translatable="yes">CLI</property>
            <property name="icon-name">utilities-terminal-symbolic</property>
            <property name="child">
              <object class="GtkBox">
                <property name="orientation">vertical</property>
                <property name="spacing">4</property>
                <property name="margin-start">8</property>
                <property name="margin-end">8</property>
                <property name="margin-bottom">8</property>

                <!-- Quick command buttons (populated in Python) -->
                <child>
                  <object class="AdwWrapBox" id="cli_quick_box">
                    <property name="child-spacing">4</property>
                    <property name="line-spacing">4</property>
                    <property name="margin-top">4</property>
                    <property name="margin-bottom">4</property>
                    <property name="halign">center</property>
                  </object>
                </child>

                <!-- Output area -->
                <child>
                  <object class="GtkScrolledWindow">
                    <property name="vexpand">true</property>
                    <property name="propagate-natural-width">false</property>
                    <child>
                      <object class="GtkTextView" id="cli_view">
                        <property name="editable">false</property>
                        <property name="wrap-mode">word-char</property>
                        <property name="monospace">true</property>
                      </object>
                    </child>
                  </object>
                </child>

                <!-- Input -->
                <child>
                  <object class="GtkBox">
                    <property name="spacing">8</property>
                    <property name="margin-top">4</property>
                    <child>
                      <object class="GtkEntry" id="cli_entry">
                        <property name="placeholder-text" translatable="yes">CLI command...</property>
                        <property name="hexpand">true</property>
                        <property name="width-request">0</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkButton" id="cli_send_btn">
                        <property name="icon-name">mail-send-symbolic</property>
                        <style>
                          <class name="suggested-action"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </child>

              </object>
            </property>
          </object>
        </child>

        <!-- ═══ Neighbors page ═══ -->
        <child>
          <object class="AdwViewStackPage">
            <property name="name">neighbors</property>
            <property name="title" translatable="yes">Neighbors</property>
            <property name="icon-name">network-server-symbolic</property>
            <property name="child">
              <object class="GtkScrolledWindow">
                <property name="vexpand">true</property>
                <child>
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <property name="spacing">8</property>
                    <property name="margin-start">8</property>
                    <property name="margin-end">8</property>
                    <property name="margin-top">8</property>
                    <property name="margin-bottom">8</property>

                    <child>
                      <object class="GtkBox">
                        <property name="spacing">8</property>
                        <property name="halign">center</property>
                        <child>
                          <object class="GtkSpinner" id="nb_spinner"/>
                        </child>
                        <child>
                          <object class="GtkLabel" id="nb_status">
                            <property name="label"></property>
                            <style>
                              <class name="dim-label"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>

                    <child>
                      <object class="GtkListBox" id="nb_list">
                        <property name="selection-mode">none</property>
                        <style>
                          <class name="boxed-list"/>
                        </style>
                      </object>
                    </child>

                    <child>
                      <object class="GtkBox">
                        <property name="spacing">8</property>
                        <property name="halign">center</property>
                        <child>
                          <object class="GtkButton" id="nb_refresh_btn">
                            <property name="label" translatable="yes">Refresh</property>
                            <style>
                              <class name="pill"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="GtkButton" id="nb_load_more">
                            <property name="label" translatable="yes">Load More</property>
                            <property name="visible">false</property>
                            <style>
                              <class name="pill"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="GtkButton" id="nb_map_btn">
                            <property name="label" translatable="yes">Show on Map</property>
                            <property name="visible">false</property>
                            <style>
                              <class name="pill"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>

                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>

        <!-- ═══ Access Control page ═══ -->
        <child>
          <object class="AdwViewStackPage">
            <property name="name">access</property>
            <property name="title" translatable="yes">Access Control</property>
            <property name="icon-name">system-lock-screen-symbolic</property>
            <property name="child">
              <object class="GtkScrolledWindow">
                <property name="vexpand">true</property>
                <child>
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <property name="spacing">8</property>
                    <property name="margin-start">8</property>
                    <property name="margin-end">8</property>
                    <property name="margin-top">8</property>
                    <property name="margin-bottom">8</property>

                    <child>
                      <object class="GtkBox">
                        <property name="spacing">8</property>
                        <property name="halign">center</property>
                        <child>
                          <object class="GtkSpinner" id="acl_spinner"/>
                        </child>
                        <child>
                          <object class="GtkLabel" id="acl_status">
                            <property name="label"></property>
                            <style>
                              <class name="dim-label"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>

                    <child>
                      <object class="GtkListBox" id="acl_list">
                        <property name="selection-mode">none</property>
                        <style>
                          <class name="boxed-list"/>
                        </style>
                      </object>
                    </child>

                    <child>
                      <object class="GtkBox">
                        <property name="spacing">8</property>
                        <property name="halign">center</property>
                        <child>
                          <object class="GtkButton" id="acl_refresh_btn">
                            <property name="label" translatable="yes">Refresh</property>
                            <style>
                              <class name="pill"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="GtkButton" id="acl_add_btn">
                            <property name="label" translatable="yes">Add</property>
                            <style>
                              <class name="pill"/>
                              <class name="suggested-action"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>

                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>

        <!-- ═══ Regions page ═══ -->
        <child>
          <object class="AdwViewStackPage">
            <property name="name">regions</property>
            <property name="title" translatable="yes">Regions</property>
            <property name="icon-name">region-symbolic</property>
            <property name="child">
              <object class="GtkScrolledWindow">
                <property name="vexpand">true</property>
                <child>
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <property name="spacing">8</property>
                    <property name="margin-start">8</property>
                    <property name="margin-end">8</property>
                    <property name="margin-top">8</property>
                    <property name="margin-bottom">8</property>

                    <!-- Loading state -->
                    <child>
                      <object class="GtkBox" id="reg_loading_box">
                        <property name="orientation">vertical</property>
                        <property name="spacing">8</property>
                        <property name="halign">center</property>
                        <property name="valign">center</property>
                        <property name="vexpand">true</property>
                        <child>
                          <object class="GtkSpinner" id="reg_spinner">
                            <property name="spinning">true</property>
                          </object>
                        </child>
                        <child>
                          <object class="GtkLabel" id="reg_status">
                            <property name="label" translatable="yes">Loading regions...</property>
                            <style>
                              <class name="dim-label"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="GtkButton" id="reg_retry_btn">
                            <property name="label" translatable="yes">Retry</property>
                            <property name="visible">false</property>
                            <style>
                              <class name="pill"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- Content (hidden until loaded) -->
                    <child>
                      <object class="GtkBox" id="reg_content_box">
                        <property name="orientation">vertical</property>
                        <property name="spacing">8</property>
                        <property name="visible">false</property>

                        <child>
                          <object class="GtkListBox">
                            <property name="selection-mode">none</property>
                            <style>
                              <class name="boxed-list"/>
                            </style>
                            <child>
                              <object class="AdwEntryRow" id="reg_default_entry">
                                <property name="title" translatable="yes">Default Region Scope</property>
                                <property name="tooltip-text" translatable="yes">Flood packets will be scoped to the provided region. Only repeaters allowing the region will forward scoped packets. Leave blank for unscoped.</property>
                              </object>
                            </child>
                          </object>
                        </child>

                        <child>
                          <object class="GtkListBox" id="reg_list">
                            <property name="selection-mode">none</property>
                            <style>
                              <class name="boxed-list"/>
                            </style>
                          </object>
                        </child>

                        <child>
                          <object class="GtkBox">
                            <property name="halign">center</property>
                            <property name="spacing">8</property>
                            <child>
                              <object class="GtkButton" id="reg_add_btn">
                                <property name="label" translatable="yes">Add</property>
                                <style>
                                  <class name="pill"/>
                                </style>
                              </object>
                            </child>
                            <child>
                              <object class="GtkButton" id="reg_apply_btn">
                                <property name="label" translatable="yes">Apply</property>
                                <property name="sensitive">false</property>
                                <style>
                                  <class name="pill"/>
                                  <class name="suggested-action"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </child>
                      </object>
                    </child>

                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>

        <!-- ═══ Settings page ═══ -->
        <child>
          <object class="AdwViewStackPage">
            <property name="name">settings</property>
            <property name="title" translatable="yes">Settings</property>
            <property name="icon-name">emblem-system-symbolic</property>
            <property name="child">
              <object class="GtkScrolledWindow">
                <property name="vexpand">true</property>
                <property name="propagate-natural-width">false</property>
                <child>
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <property name="spacing">12</property>
                    <property name="margin-start">12</property>
                    <property name="margin-end">12</property>
                    <property name="margin-top">12</property>
                    <property name="margin-bottom">12</property>

                    <!-- Basic -->
                    <child>
                      <object class="AdwPreferencesGroup">
                        <property name="title" translatable="yes">Basic</property>
                        <child type="header-suffix">
                          <object class="GtkBox">
                            <property name="spacing">4</property>
                            <child>
                              <object class="GtkSpinner" id="basic_fetch_spinner">
                                <property name="visible">false</property>
                              </object>
                            </child>
                            <child>
                              <object class="GtkButton" id="basic_fetch_btn">
                                <property name="label" translatable="yes">Fetch</property>
                                <property name="valign">center</property>
                                <style>
                                  <class name="flat"/>
                                </style>
                              </object>
                            </child>
                            <child>
                              <object class="GtkButton" id="basic_save_btn">
                                <property name="label" translatable="yes">Save</property>
                                <property name="valign">center</property>
                                <style>
                                  <class name="suggested-action"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </child>
                        <child>
                          <object class="AdwEntryRow" id="set_name">
                            <property name="title" translatable="yes">Name</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwSwitchRow" id="set_repeat">
                            <property name="title" translatable="yes">Packet Repeat</property>
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- Passwords -->
                    <child>
                      <object class="AdwPreferencesGroup">
                        <property name="title" translatable="yes">Passwords</property>
                        <child>
                          <object class="AdwPasswordEntryRow" id="set_admin_pwd">
                            <property name="title" translatable="yes">Admin Password</property>
                            <child type="suffix">
                              <object class="GtkButton" id="admin_pwd_save_btn">
                                <property name="icon-name">document-save-symbolic</property>
                                <property name="valign">center</property>
                                <style>
                                  <class name="flat"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </child>
                        <child>
                          <object class="AdwPasswordEntryRow" id="set_guest_pwd">
                            <property name="title" translatable="yes">Guest Password</property>
                            <child type="suffix">
                              <object class="GtkButton" id="guest_pwd_save_btn">
                                <property name="icon-name">document-save-symbolic</property>
                                <property name="valign">center</property>
                                <style>
                                  <class name="flat"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- Location -->
                    <child>
                      <object class="AdwPreferencesGroup">
                        <property name="title" translatable="yes">Location</property>
                        <child type="header-suffix">
                          <object class="GtkBox">
                            <property name="spacing">4</property>
                            <child>
                              <object class="GtkSpinner" id="loc_fetch_spinner">
                                <property name="visible">false</property>
                              </object>
                            </child>
                            <child>
                              <object class="GtkButton" id="loc_fetch_btn">
                                <property name="label" translatable="yes">Fetch</property>
                                <property name="valign">center</property>
                                <style>
                                  <class name="flat"/>
                                </style>
                              </object>
                            </child>
                            <child>
                              <object class="GtkButton" id="loc_save_btn">
                                <property name="label" translatable="yes">Save</property>
                                <property name="valign">center</property>
                                <style>
                                  <class name="suggested-action"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </child>
                        <child>
                          <object class="AdwEntryRow" id="set_lat">
                            <property name="title" translatable="yes">Latitude</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwEntryRow" id="set_lon">
                            <property name="title" translatable="yes">Longitude</property>
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- Radio -->
                    <child>
                      <object class="AdwPreferencesGroup">
                        <property name="title" translatable="yes">Radio</property>
                        <child type="header-suffix">
                          <object class="GtkBox">
                            <property name="spacing">4</property>
                            <child>
                              <object class="GtkSpinner" id="radio_fetch_spinner">
                                <property name="visible">false</property>
                              </object>
                            </child>
                            <child>
                              <object class="GtkButton" id="radio_fetch_btn">
                                <property name="label" translatable="yes">Fetch</property>
                                <property name="valign">center</property>
                                <style>
                                  <class name="flat"/>
                                </style>
                              </object>
                            </child>
                            <child>
                              <object class="GtkButton" id="radio_save_btn">
                                <property name="label" translatable="yes">Save</property>
                                <property name="valign">center</property>
                                <style>
                                  <class name="suggested-action"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </child>
                        <child>
                          <object class="AdwEntryRow" id="set_freq">
                            <property name="title" translatable="yes">Frequency (MHz)</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwEntryRow" id="set_bw">
                            <property name="title" translatable="yes">Bandwidth (kHz)</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwSpinRow" id="set_sf">
                            <property name="title" translatable="yes">Spreading Factor</property>
                            <property name="adjustment">
                              <object class="GtkAdjustment">
                                <property name="lower">5</property>
                                <property name="upper">12</property>
                                <property name="step-increment">1</property>
                              </object>
                            </property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwSpinRow" id="set_cr">
                            <property name="title" translatable="yes">Coding Rate</property>
                            <property name="adjustment">
                              <object class="GtkAdjustment">
                                <property name="lower">5</property>
                                <property name="upper">8</property>
                                <property name="step-increment">1</property>
                              </object>
                            </property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwSpinRow" id="set_tx">
                            <property name="title" translatable="yes">TX Power (dBm)</property>
                            <property name="adjustment">
                              <object class="GtkAdjustment">
                                <property name="lower">1</property>
                                <property name="upper">30</property>
                                <property name="step-increment">1</property>
                              </object>
                            </property>
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- Advertisement -->
                    <child>
                      <object class="AdwPreferencesGroup">
                        <property name="title" translatable="yes">Advertisement</property>
                        <child type="header-suffix">
                          <object class="GtkBox">
                            <property name="spacing">4</property>
                            <child>
                              <object class="GtkSpinner" id="advert_fetch_spinner">
                                <property name="visible">false</property>
                              </object>
                            </child>
                            <child>
                              <object class="GtkButton" id="advert_fetch_btn">
                                <property name="label" translatable="yes">Fetch</property>
                                <property name="valign">center</property>
                                <style>
                                  <class name="flat"/>
                                </style>
                              </object>
                            </child>
                            <child>
                              <object class="GtkButton" id="advert_save_btn">
                                <property name="label" translatable="yes">Save</property>
                                <property name="valign">center</property>
                                <style>
                                  <class name="suggested-action"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </child>
                        <child>
                          <object class="AdwSpinRow" id="set_advert_int">
                            <property name="title" translatable="yes">Local Interval (min)</property>
                            <property name="adjustment">
                              <object class="GtkAdjustment">
                                <property name="lower">0</property>
                                <property name="upper">240</property>
                                <property name="step-increment">1</property>
                              </object>
                            </property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwSpinRow" id="set_flood_int">
                            <property name="title" translatable="yes">Flood Interval (hrs)</property>
                            <property name="adjustment">
                              <object class="GtkAdjustment">
                                <property name="lower">0</property>
                                <property name="upper">168</property>
                                <property name="step-increment">1</property>
                              </object>
                            </property>
                          </object>
                        </child>
                      </object>
                    </child>

                    <!-- Danger Zone -->
                    <child>
                      <object class="AdwPreferencesGroup">
                        <property name="title" translatable="yes">Danger Zone</property>
                        <child>
                          <object class="AdwButtonRow" id="reboot_btn">
                            <property name="title" translatable="yes">Reboot Repeater</property>
                            <property name="start-icon-name">system-reboot-symbolic</property>
                            <style>
                              <class name="destructive-action"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>

                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>

        <!-- ═══ Placeholder ═══ -->
        <child>
          <object class="AdwViewStackPage">
            <property name="name">placeholder</property>
            <property name="visible">false</property>
            <property name="child">
              <object class="AdwStatusPage">
                <property name="title" translatable="yes">Select a repeater</property>
                <property name="icon-name">network-server-symbolic</property>
              </object>
            </property>
          </object>
        </child>

      </object>
    </child>

    <!-- ═══ Bottom bar ═══ -->
    <child>
      <object class="GtkBox">
        <property name="orientation">horizontal</property>
        <property name="margin-start">8</property>
        <property name="margin-end">8</property>
        <property name="margin-top">4</property>
        <property name="margin-bottom">8</property>
        <property name="halign">center</property>
        <property name="spacing">8</property>
        <child>
          <object class="AdwInlineViewSwitcher" id="tab_switcher">
            <property name="stack">stack</property>
            <property name="display-mode">icons</property>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="logout_btn">
            <property name="icon-name">system-log-out-symbolic</property>
            <property name="tooltip-text" translatable="yes">Log Out</property>
            <style>
              <class name="flat"/>
            </style>
          </object>
        </child>
      </object>
    </child>

  </template>
</interface>
