.author-editor,
.author-list {
  display: grid;
  gap: 10px;
}

.author-limit {
  color: #687386;
  font-size: 12px;
  line-height: 1.6;
}

.author-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.author-row small {
  color: #687386;
  font-size: 11px;
}

.author-remove,
.author-add {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d6ddd8;
  background: #fff;
  color: #111827;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.author-remove:hover,
.author-add:hover {
  border-color: #00a47a;
  color: #087e5f;
}

.author-add:disabled,
.author-add:disabled:hover,
.author-add:disabled:active {
  cursor: not-allowed;
  opacity: .48;
  border-color: #d6ddd8;
  background: #eef2ef;
  color: #687386;
  transform: none;
}

.author-remove:active,
.author-add:active {
  transform: translateY(1px);
}

.author-add {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.author-add b {
  font-size: 18px;
  font-weight: 400;
}

.author-remove[hidden] {
  display: none;
}

.registration-workspace .author-editor {
  padding: 14px;
  border: 1px solid var(--ws-line);
  background: #f7faf8;
}

.registration-workspace .author-row {
  padding: 8px 10px;
  border: 1px solid var(--ws-line);
  background: #fff;
}

.registration-workspace .author-row input {
  padding: 8px 4px !important;
  border: 0 !important;
  box-shadow: none !important;
}

.registration-workspace .author-remove {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--ws-soft);
}

.registration-workspace .author-add {
  min-height: 42px;
  border-color: var(--ws-ink);
  background: var(--ws-ink);
  color: #fff;
}

.registration-workspace .author-add:hover {
  border-color: var(--ws-mint);
  background: var(--ws-mint);
  color: #fff;
}

.registration-workspace .author-add:disabled,
.registration-workspace .author-add:disabled:hover,
.registration-workspace .author-add:disabled:active {
  border-color: var(--ws-line);
  background: #dfe5e1;
  color: var(--ws-soft);
}

@media (max-width: 560px) {
  .author-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .author-row small {
    grid-column: 1 / -1;
  }

  .author-add {
    width: 100%;
    justify-content: center;
  }

  .registration-workspace .author-editor {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-remove,
  .author-add {
    transition: none;
  }
}
