.backup-settings-pane {
  max-width: 980px;
}

.backup-heading,
.backup-history-title,
.backup-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.backup-heading {
  margin-bottom: 8px;
}

.backup-heading h3 {
  margin: 0 0 3px;
}

.backup-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.backup-status-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #d8e0e6;
  border-radius: 7px;
  background: #f9fbfc;
}

.backup-card-label {
  color: #71808c;
  font-size: 10.5px;
}

.backup-status-card strong {
  overflow: hidden;
  color: #263746;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-status-card .hint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-provider-health {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 4px;
}

.backup-provider-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d8e0e6;
  border-radius: 7px;
  background: #fff;
}

.backup-provider-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.backup-provider-card-head > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.backup-provider-card-head strong {
  color: #2f4351;
  font-size: 12px;
}

.backup-provider-card-head div > span,
.backup-provider-card-detail {
  overflow: hidden;
  color: #6d7d88;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-actions-row {
  justify-content: flex-start;
  padding: 8px 0 11px;
}

.backup-actions-row .hint {
  margin-left: auto;
}

.backup-security-note,
.backup-restore-note {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #d8e4eb;
  border-radius: 6px;
  background: #f6f9fb;
  color: #526371;
  font-size: 11.5px;
  line-height: 1.55;
}

.backup-security-note strong,
.backup-restore-note strong {
  color: #304654;
}

.backup-restore-note {
  margin-top: 10px;
  border-color: #e1ddd2;
  background: #fbfaf6;
}

.backup-history-block {
  margin-top: 11px;
}

.backup-history-title {
  margin-bottom: 6px;
}

.backup-history-table-wrap {
  overflow: auto;
  border: 1px solid #d9e1e7;
  border-radius: 6px;
}

.backup-history-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.backup-history-table th,
.backup-history-table td {
  padding: 5px 7px;
  border-bottom: 1px solid #e3e8ed;
  color: #3b4c58;
  font-size: 11px;
  line-height: 1.3;
  text-align: left;
}

.backup-history-table th {
  background: #edf2f5;
  color: #5b6873;
  font-size: 10.5px;
}

.backup-history-table th:nth-child(1),
.backup-history-table td:nth-child(1) { width: 145px; }
.backup-history-table th:nth-child(2),
.backup-history-table td:nth-child(2) { width: 75px; }
.backup-history-table th:nth-child(3),
.backup-history-table td:nth-child(3) { width: 72px; }
.backup-history-table th:nth-child(5),
.backup-history-table td:nth-child(5),
.backup-history-table th:nth-child(6),
.backup-history-table td:nth-child(6) { width: 64px; }
.backup-history-table th:nth-child(7),
.backup-history-table td:nth-child(7) { width: 75px; }
.backup-history-table th:nth-child(8),
.backup-history-table td:nth-child(8) { width: 80px; }

.backup-history-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.backup-run-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-copy-cell {
  text-align: center !important;
}

.backup-run-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}

.backup-run-badge.success {
  background: #e7f4eb;
  color: #287045;
}

.backup-run-badge.failed {
  background: #f8e8e6;
  color: #a34540;
}

.backup-run-badge.neutral {
  background: #edf1f4;
  color: #667681;
}

@media (max-width: 850px) {
  .backup-status-grid,
  .backup-provider-health { grid-template-columns: 1fr; }
  .backup-actions-row { align-items: stretch; flex-direction: column; }
  .backup-actions-row .hint { margin-left: 0; }
}
