/* Styling for js/backup.js (home page only). Deliberately reuses
   account-sync.css's classes (.accountSyncNotice, .accountSyncActions,
   .accountSyncStatus, .accountSyncConfirm, .accountSyncLinkBtn, ...) for
   everything that already has an equivalent there, so the two sections
   on the home page read as one visual family. This file only adds the
   handful of things backup.js needs that account-sync.css has no
   equivalent for. */

/* A small, out-of-the-way corner widget rather than a full section in
   the page's main column -- this is a utility, not something the page
   is "about", so it shouldn't compete for attention with the project
   list above it. */
#backup {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 220px;
  max-width: calc(100vw - 32px);
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

#backup .accountSyncHeading {
  font-size: 0.82rem;
  margin: 0 0 8px;
  color: #ccc;
}

#backup .accountSyncActions {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

#backup .accountSyncActions button {
  width: 100%;
  padding: 5px 10px;
  font-size: 0.78rem;
}

#backup .accountSyncStatus {
  font-size: 0.72rem;
  margin-bottom: 0;
}

#backup .accountSyncConfirm {
  margin-top: 6px;
  padding: 8px 10px;
}

#backup .accountSyncConfirm p {
  font-size: 0.74rem;
}

/* The real file input stays off-screen -- the styled label (already
   using .accountSyncLinkBtn) is what's actually visible and clickable,
   and clicking a <label for="..."> opens the associated file input's
   picker natively, no JS needed for that part. */
.backupFileInput {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.backupFileLabel {
  display: inline-flex;
  align-items: center;
}
