/* Public backup index: the same quiet reference surface as the AI寄合所資料庫. */
.backup-page {
  padding-bottom: 3rem;
}

.backup-page .records-hero h2 {
  max-width: 32rem;
}

.backup-page .records-hero p:last-child {
  max-width: 52rem;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  align-items: center;
  margin-top: 1.1rem;
}

.backup-actions .primary-button,
.backup-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.backup-actions .secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .96);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.backup-actions .primary-button {
  justify-content: center;
}

.backup-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.backup-summary > div {
  min-width: 0;
  padding: .95rem 1rem;
  background: var(--paper);
}

.backup-summary strong,
.backup-summary span {
  display: block;
}

.backup-summary strong {
  color: var(--ink);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.backup-summary span {
  margin-top: .25rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.backup-table-wrap {
  margin-top: 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  overscroll-behavior-inline: contain;
}

.backup-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
}

.backup-table th,
.backup-table td {
  padding: .8rem .9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: .82rem;
}

.backup-table th {
  color: var(--muted);
  background: rgba(241, 243, 244, .72);
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}

.backup-table tr:last-child td {
  border-bottom: 0;
}

.backup-table td:first-child {
  color: var(--accent-2);
  white-space: nowrap;
}

.backup-table a {
  color: var(--accent-2);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.backup-table code {
  color: var(--ink);
  font-size: .78rem;
}

.backup-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.75;
}

.backup-note strong {
  color: var(--ink);
}

.backup-note code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 640px) {
  .backup-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-actions > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .backup-summary {
    grid-template-columns: 1fr;
  }

  .backup-table th,
  .backup-table td {
    padding-inline: .7rem;
  }
}
