.backup-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d8e1ec;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #536175;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(15,23,42,.04);
}

.backup-reminder {
  margin: -10px 0 22px;
  padding: 16px 18px;
  border: 1px solid #f0c264;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff9e9, #fffdf8);
  box-shadow: 0 10px 28px rgba(126, 86, 8, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.backup-reminder[hidden] { display: none; }
.backup-reminder > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.backup-reminder svg { width: 22px; height: 22px; flex: 0 0 auto; color: #ad7000; }
.backup-reminder p { display: grid; gap: 3px; margin: 0; }
.backup-reminder strong { color: #5f430f; font-size: 14px; }
.backup-reminder span { color: #80642d; font-size: 12px; }
.backup-reminder button { flex: 0 0 auto; border-color: #dfb75e; background: #fff; color: #6a4b0d; }

.backup-status-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e1982d;
  box-shadow: 0 0 0 4px rgba(225,152,45,.13);
}

.backup-status-chip.ready i {
  background: #20a664;
  box-shadow: 0 0 0 4px rgba(32,166,100,.12);
}

.backup-overview {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid #cdd8e5;
  border-radius: 16px;
  background: linear-gradient(135deg,rgba(255,255,255,.98),rgba(244,248,253,.96));
  box-shadow: 0 12px 34px rgba(15,23,42,.055);
}

.backup-overview-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #0868df;
  background: #e8f2ff;
}

.backup-overview-icon svg { width: 24px; height: 24px; }
.backup-overview > div:last-child { display: grid; gap: 5px; min-width: 0; }
.backup-overview span { color: var(--muted); font-size: 12px; }
.backup-overview strong { font-size: 19px; letter-spacing: -.02em; }
.backup-overview small { color: #78869a; }

.backup-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.backup-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 28px;
  border: 1px solid #d2dbe6;
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 15px 40px rgba(15,23,42,.06);
}

.backup-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7d8ba0;
}

.backup-card-head > svg { width: 23px; height: 23px; }
.backup-step { color: #0868df; font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.backup-card h2 { margin: 24px 0 10px; font-size: 23px; letter-spacing: -.035em; }
.backup-card > p { min-height: 67px; margin: 0 0 22px; color: #5b687a; line-height: 1.65; word-break: keep-all; }
.backup-card code { padding: 2px 6px; border-radius: 5px; background: #edf2f8; color: #334155; }

.backup-field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  color: #334155;
  font-size: 12px;
  font-weight: 760;
}

.backup-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd8e4;
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: #fbfcfe;
  transition: border-color .15s ease,box-shadow .15s ease;
}

.backup-field input:focus {
  border-color: #4d91ff;
  box-shadow: 0 0 0 4px rgba(8,104,223,.1);
}

.backup-action {
  width: 100%;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.backup-action svg { width: 17px; height: 17px; }
.backup-action:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.backup-file-name { display: block; min-height: 39px; padding: 10px 2px 8px; color: #78869a; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.privacy-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 19px 21px;
  border: 1px solid #cfe7da;
  border-radius: 14px;
  background: #edf9f2;
  color: #1d6847;
}

.privacy-callout > svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.privacy-callout p { margin: 5px 0 0; color: #4e7764; line-height: 1.55; font-size: 13px; word-break: keep-all; }

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.policy-grid article {
  display: grid;
  gap: 8px;
  min-height: 108px;
  align-content: center;
  padding: 21px 22px;
  border: 1px solid #d3dce7;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.policy-grid span { color: var(--muted); font-size: 11px; font-weight: 760; }
.policy-grid strong { line-height: 1.55; word-break: keep-all; }

@media (max-width: 850px) {
  .backup-reminder { align-items: stretch; flex-direction: column; }
  .backup-reminder button { width: 100%; }
  .backup-grid,.policy-grid { grid-template-columns: 1fr; }
  .backup-card { min-height: 0; padding: 23px 20px; }
  .backup-card > p { min-height: 0; }
  .backup-action { margin-top: 10px; }
}

@media (max-width: 560px) {
  .backup-overview { align-items: flex-start; padding: 19px; }
  .backup-overview-icon { width: 44px; height: 44px; border-radius: 13px; }
  .backup-status-chip { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .backup-field input { transition: none; }
}

@media (prefers-contrast: more) {
  .backup-card,.backup-overview,.policy-grid article { border-color: #8795a8; }
}
