/* Cashback V36.7.106
   The four Backup & Update actions use the SAME visual glass shell as the
   Admin category navigation above. Theme colors are mirrored at runtime by
   v36-7-106-backup-frame-match-admin-shell.js so every built-in/custom theme
   stays in sync without maintaining a separate palette for each theme.
*/
html body #tab-admin #admin-pane-backups > .backup-update-subnav {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 22px !important;
  padding: 12px !important;
  gap: 9px !important;
  border: 1px solid rgba(148, 163, 184, .34) !important;
  border-radius: 30px !important;
  background: linear-gradient(145deg, rgba(18, 31, 52, .78), rgba(9, 18, 33, .84)) !important;
  background-clip: padding-box !important;
  box-shadow: 0 14px 34px rgba(4, 10, 22, .20), inset 0 1px 0 rgba(255,255,255,.10) !important;
  -webkit-backdrop-filter: blur(16px) saturate(128%) !important;
  backdrop-filter: blur(16px) saturate(128%) !important;
  overflow: visible !important;
}
html body #tab-admin #admin-pane-backups > .backup-update-subnav::before,
html body #tab-admin #admin-pane-backups > .backup-update-subnav::after {
  content: none !important;
  display: none !important;
}
/* Retain compact buttons, but never reduce the outer shell to their dimensions. */
html body #tab-admin #admin-pane-backups .backup-update-tab-btn {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 50px !important;
  height: 50px !important;
  max-height: 50px !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  border-radius: 14px !important;
  font-size: 12.5px !important;
}
/* Palette fallback while the runtime mirror initializes. */
html.theme-bootstrap-light body #tab-admin #admin-pane-backups > .backup-update-subnav,
html body.default-light-mode #tab-admin #admin-pane-backups > .backup-update-subnav {
  color: #26364c !important;
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(245,249,255,.80)) !important;
  border-color: rgba(148, 163, 184, .42) !important;
  box-shadow: 0 12px 28px rgba(51,65,85,.09), inset 0 1px 0 rgba(255,255,255,.92) !important;
}
html.theme-bootstrap-default:not(.theme-bootstrap-light) body #tab-admin #admin-pane-backups > .backup-update-subnav,
html body.default-dark-mode #tab-admin #admin-pane-backups > .backup-update-subnav {
  color: #e7edf8 !important;
  background: linear-gradient(145deg, rgba(27,39,60,.86), rgba(12,20,36,.90)) !important;
  border-color: rgba(142,163,194,.34) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.09) !important;
}
html body.theme-halloween:not(.default-light-mode) #tab-admin #admin-pane-backups > .backup-update-subnav {
  color: #f5edff !important;
  background: linear-gradient(145deg, rgba(53,34,75,.68), rgba(24,18,43,.78)) !important;
  border-color: rgba(205,174,245,.40) !important;
  box-shadow: 0 16px 38px rgba(8,5,20,.26), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
html body.theme-winter:not(.default-light-mode) #tab-admin #admin-pane-backups > .backup-update-subnav {
  color: #edf6ff !important;
  background: linear-gradient(145deg, rgba(30,68,108,.68), rgba(9,34,65,.78)) !important;
  border-color: rgba(160,205,245,.40) !important;
  box-shadow: 0 16px 38px rgba(3,15,35,.26), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
html body.theme-ocean:not(.default-light-mode) #tab-admin #admin-pane-backups > .backup-update-subnav {
  color: #e9fbff !important;
  background: linear-gradient(145deg, rgba(8,67,84,.68), rgba(3,39,58,.78)) !important;
  border-color: rgba(132,225,228,.42) !important;
  box-shadow: 0 16px 38px rgba(0,16,29,.28), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
/* The active button remains accent-colored; inactive light controls stay readable. */
html.theme-bootstrap-light body #tab-admin #admin-pane-backups .backup-update-tab-btn,
html body.default-light-mode #tab-admin #admin-pane-backups .backup-update-tab-btn {
  color: #475569 !important;
  background: rgba(255,255,255,.92) !important;
  border-color: #cbd5e1 !important;
  opacity: 1 !important;
}
html.theme-bootstrap-light body #tab-admin #admin-pane-backups .backup-update-tab-btn.active,
html body.default-light-mode #tab-admin #admin-pane-backups .backup-update-tab-btn.active {
  color: #5b21b6 !important;
  background: #ede9fe !important;
  border-color: #a78bfa !important;
}
@media (max-width: 700px) {
  html body #tab-admin #admin-pane-backups > .backup-update-subnav {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
    padding: 10px !important;
    border-radius: 26px !important;
    gap: 8px !important;
  }
  html body #tab-admin #admin-pane-backups .backup-update-tab-btn {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 6px 8px !important;
    gap: 7px !important;
    font-size: 12px !important;
    border-radius: 13px !important;
  }
}
@media (max-width: 380px) {
  html body #tab-admin #admin-pane-backups > .backup-update-subnav {
    padding: 9px !important;
    border-radius: 23px !important;
    gap: 7px !important;
  }
}
@media (max-width: 360px) {
  html body #tab-admin #admin-pane-backups > .backup-update-subnav {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
