anchor.diff:          ? '${credential.issuer} (${credential.name})'
           : credential.name;
   
  +    int remaining = 64;
  +    if (credential.oathType == OathType.totp && credential.period != 30) {
  +      remaining -= '${credential.period}/'.length;
  +    }
  +    if (_issuerController.text.isNotEmpty) {
  +      remaining -= 1;
  +    }
  +    final issuerRemaining = remaining - _nameController.text.length;
  +    final nameRemaining = remaining - _issuerController.text.length;
  +    final isValid = _nameController.text.trim().isNotEmpty;
  +
       return AlertDialog(
         title: Text('Rename $label?'),
         content: Column(
  
positive.code:           child: const Text('Cancel'),
          ),
          ElevatedButton(
            onPressed: _isValid
                ? () async {
                    final issuer = _issuerController.text.trim();
                    final name = _nameController.text.trim();
  
negative.code: }
  
  class _RenameAccountDialogState extends ConsumerState<RenameAccountDialog> {
    late TextEditingController _issuerController;
    late TextEditingController _nameController;
    _RenameAccountDialogState();
  