.material-backup-dialog {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.34);
  backdrop-filter: blur(6px);
}

.material-backup-dialog.is-open {
  display: grid;
}

.material-backup-card {
  width: min(520px, calc(100vw - 48px));
  max-height: min(680px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #e8edf5;
  border-radius: var(--rect-radius, 8px);
  background: #fff;
  box-shadow: 0 22px 60px rgba(33, 43, 67, 0.18);
}

.material-backup-head,
.material-backup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.material-backup-head h2,
.material-backup-head p {
  margin: 0;
}

.material-backup-head h2 {
  font-size: 20px;
}

.material-backup-head p {
  margin-top: 5px;
  color: #667085;
  font-size: 13px;
}

.material-backup-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #e8edf5;
  border-radius: 50%;
  color: #667085;
  background: #fff;
}

.material-backup-list {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.material-backup-option {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e8edf5;
  border-radius: var(--rect-radius, 8px);
  cursor: pointer;
}

.material-backup-option.is-selected {
  border-color: #00afe9;
  background: #eefaff;
}

.material-backup-option input {
  accent-color: #00afe9;
}

.material-backup-option-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.material-backup-option-copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-backup-option-copy small,
.material-backup-empty {
  color: #667085;
}

.material-backup-empty {
  margin: auto;
  text-align: center;
}

.material-backup-error {
  min-height: 20px;
  margin: 0;
  color: #cd140f;
  font-size: 13px;
}

.material-backup-actions {
  justify-content: flex-end;
}

.material-backup-actions button {
  min-width: 96px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rect-radius, 8px);
}

.material-backup-cancel {
  border: 1px solid #e8edf5;
  color: #394150;
  background: #fff;
}

.material-backup-restore {
  color: #fff;
  background: #00afe9;
}

.material-backup-restore:disabled,
.asset-detail-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
